/* /badges/: every badge, one plate per category. Builds on the homepage's .badge-plate. */

/* break the title after "badge" on wide screens */
.page-head h1 { max-width: 10.8em; text-wrap: pretty; }

/* intro and contents */
.bx-intro { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.bx-intro .prose p { color: var(--ink-2); text-wrap: pretty; }
.bx-intro .prose strong { color: var(--ink); }

.contents {
  background: var(--paper-hi);
  border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--sand);
  padding: 18px 24px 14px;
}
.contents-title {
  font-family: var(--display); font-weight: 600; font-variation-settings: 'opsz' 72, 'SOFT' 100;
  font-size: 26px; line-height: 1.1;
  padding-bottom: 12px; border-bottom: 1.5px solid var(--ink);
}
.contents ol { columns: 2; column-gap: 36px; padding-top: 6px; }
.contents li { break-inside: avoid; }
.contents a { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; text-decoration: none; color: var(--ink); font-size: 15.5px; line-height: 1.35; }
.tn {
  flex: none; width: 2.3em;
  font-family: var(--display); font-style: italic; font-variation-settings: 'opsz' 14, 'SOFT' 100;
  font-size: 15px; color: var(--forest);
}
.tt { font-weight: 500; }
.tl { flex: 1; min-width: 12px; border-bottom: 1.5px dotted #BDB09A; transform: translateY(-4px); }
.tc { font-size: 14px; font-weight: 500; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.contents a:hover .tt { text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* a category */
.bcat { padding-top: 96px; scroll-margin-top: 16px; }
.bcat .plate { margin-bottom: 22px; }
.plate .pcount { font-weight: inherit; white-space: nowrap; }
.plate .gc { font-style: normal; display: inline-flex; gap: 14px; white-space: nowrap; }
.plate .gc::before { content: '·'; color: var(--ink-2); }
.bcat-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: end; margin-bottom: 30px; }
.bcat-head h2 { font-size: clamp(32px, 3.1vw, 46px); line-height: 1.06; }
.bcat-head h2 em {
  font-style: italic; font-weight: 480; color: var(--forest);
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
}
.bcat-head p { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); max-width: 30em; padding-bottom: 4px; text-wrap: pretty; }
.bcat-head .link-arrow { white-space: nowrap; }

/* the plate: full width, with a column count that suits the category */
.bplate { padding: 32px 26px 20px; }
.bgrid { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 32px 16px; }
.bgrid .b { display: flex; flex-direction: column; align-items: center; text-align: center; }
.bgrid img, .b-blank { width: 96px; height: 96px; flex: none; }
.bgrid img { clip-path: inset(1px); }   /* a few badge files carry a faint 1-2 px frame */
.bgrid h3 {
  margin-top: 10px;
  font-family: var(--display); font-weight: 560; font-variation-settings: 'opsz' 36, 'SOFT' 100;
  font-size: 18px; line-height: 1.2; letter-spacing: -0.005em;
}
.bgrid p { text-wrap: pretty; margin: 5px 0 12px; font-size: 14px; line-height: 1.4; color: var(--ink-2); max-width: 15em; }
.b-xp {
  margin-top: auto;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--ink); background: var(--paper-hi);
  border: 1px solid #D6C8AF; border-radius: 999px; padding: 3px 10px 2px;
}

/* the secret badge */
.b-blank {
  display: grid; place-items: center;
  border: 2px dashed #B3A283; border-radius: 50%;
  background: rgba(255, 253, 248, 0.55);
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  font-size: 46px; line-height: 1; color: var(--ink-2);
}
.b-secret .b-xp { color: var(--ink-2); font-style: italic; font-family: var(--display); font-weight: 500; letter-spacing: 0; font-size: 13px; }

/* two or three badges: centred, at a badge's natural width */
.bplate.few .bgrid { grid-template-columns: repeat(var(--cols), minmax(0, 240px)); justify-content: center; }

/* the specialist plate: one row per plant type, its label in a column of its own */
.bgroup { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 0 16px; align-items: start; }
.bgroup + .bgroup { margin-top: 26px; padding-top: 26px; border-top: 1px solid #D6C8AF; }
.bsub {
  padding-top: 36px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; line-height: 1.5; text-transform: uppercase; color: var(--forest);
}
.bsub span { display: block; margin-top: 4px; font-family: var(--display); font-style: italic; font-weight: 400; font-variation-settings: 'opsz' 14, 'SOFT' 100; letter-spacing: 0; text-transform: none; font-size: 14px; color: var(--ink-2); }

.bx-notice { margin-top: 96px; max-width: 52em; }
.bx-notice + .cta-band { margin-top: 40px; }

@media (max-width: 980px) {
  .bx-intro { grid-template-columns: 1fr; gap: 40px; }
  .contents { max-width: 560px; }
  .bcat { padding-top: 72px; }
  .bcat-head { grid-template-columns: 1fr; gap: 12px; }
  .bgrid, .bplate.few .bgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .bplate.few .bgrid { grid-template-columns: repeat(var(--cols), minmax(0, 200px)); }
  .bgroup { grid-template-columns: 1fr; }
  .bsub { padding-top: 0; margin-bottom: 18px; }
  .bsub span { display: inline; margin: 0 0 0 6px; }
}

@media (max-width: 560px) {
  .contents { padding: 16px 18px 12px; box-shadow: 6px 6px 0 0 var(--sand); }
  .contents ol { columns: 1; }
  .bcat { padding-top: 64px; }
  .bcat .plate { margin-bottom: 16px; font-size: 11px; letter-spacing: 0.12em; gap: 4px 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--rule-ink); }
  .bcat .plate::after { display: none; }
  .plate .gc { gap: 10px; }
  .bcat-head h2 { font-size: 30px; }
  .bcat-head p { font-size: 16px; }
  .bplate { padding: 24px 14px 14px; margin: 0 -6px; }
  .bgrid, .bplate.few .bgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
  .bgrid img, .b-blank { width: 80px; height: 80px; }
  .b-blank { font-size: 38px; }
  .bgrid h3 { font-size: 17px; }
  .bgrid p { font-size: 13.5px; }
  .bx-notice { margin-top: 72px; }
}
