/* How to play: the pieces only this page uses. Everything else (page kit, stamps, specimen
   cards, the quest card, badge plate, FAQ) comes from site.css. */

/* ---------- the guide column ---------- */
.guide-main > section { scroll-margin-top: 24px; }
.guide-main > section + section { margin-top: 96px; }
.guide-main > section > * + * { margin-top: 28px; }
.guide-main > section > .plate { margin: 0; }
.guide-main > section > .plate + * { margin-top: 18px; }
.guide-main .prose > h2:first-child { margin-top: 0; }
.guide-main .prose h3 { margin-top: 1.7em; }
.guide-main .prose em { font-family: var(--display); font-style: italic; font-variation-settings: 'opsz' 14, 'SOFT' 100; }
.guide-main .prose p { color: #33333F; }

/* ---------- on this page ---------- */
.toc { padding: 24px 24px 22px; }
.toc h2 { font-size: 22px; }
.toc ol { margin-top: 14px; border-top: 1.5px solid var(--ink); counter-reset: toc; }
.toc li { border-bottom: 1px solid var(--rule); }
.toc ol a { display: grid; grid-template-columns: 30px 1fr; align-items: baseline; padding: 8px 0; font-size: 15px; color: var(--ink); text-decoration: none; }
.toc ol a::before {
  counter-increment: toc; content: counter(toc);
  font-family: var(--display); font-style: italic; font-variation-settings: 'opsz' 36, 'SOFT' 100;
  font-size: 17px; color: var(--forest);
}
.toc ol a:hover span { text-decoration: underline; text-decoration-color: var(--leaf); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.toc-faq { margin-top: 14px; font-size: 15px; }
.toc-faq a { font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--forest); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ---------- 1. catching: the four steps beside a specimen card ---------- */
.catch-grid { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 44px; align-items: start; }
.walk { border-top: 1.5px solid var(--ink); }
.walk li { display: grid; grid-template-columns: 46px 1fr; gap: 10px; padding: 16px 0 15px; border-bottom: 1px solid var(--rule); counter-increment: walk; }
.walk { counter-reset: walk; }
.walk li::before {
  content: counter(walk);
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  font-size: 40px; line-height: 0.9; color: var(--forest);
}
.walk b { display: block; font-weight: 600; font-size: 17px; }
.walk p { margin-top: 2px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.catch-fig { padding-top: 8px; }
.catch-fig .spec { --w: 100%; transform: rotate(1.5deg); }
.catch-fig .spec-name { font-size: 18px; white-space: nowrap; }
.catch-fig .margin-note { margin-top: 18px; font-size: 15px; padding-left: 4px; }

/* ---------- 2. rarity: six stamps and their odds ---------- */
.stamp-row {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  background: var(--paper-hi); border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 0 var(--sand);
}
.stamp-row li { display: flex; flex-direction: column; align-items: center; padding: 22px 4px 16px; border-left: 1px solid var(--rule); }
.stamp-row li:first-child { border-left: 0; }
.stamp-row .stamp { justify-self: center; font-size: 10.5px; letter-spacing: 0.12em; }
.stamp-row .pct {
  margin-top: 14px;
  font-family: var(--display); font-weight: 500; font-variation-settings: 'opsz' 36, 'SOFT' 100;
  font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.stamp-row .about { font-size: 13px; color: var(--ink-2); }

/* ---------- tables in the odds-card look ---------- */
.ledger-card { background: var(--paper-hi); border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 0 var(--sand); }
.ledger { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ledger caption { caption-side: top; text-align: left; padding: 18px 22px 14px; }
.ledger-title { display: block; font-family: var(--display); font-weight: 600; font-variation-settings: 'opsz' 72, 'SOFT' 100; font-size: 24px; line-height: 1.1; }
.ledger-sub { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.ledger th, .ledger td { padding: 12px 22px; text-align: left; border-top: 1px solid var(--rule); vertical-align: middle; font-size: 16px; }
.ledger thead th {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
  border-top: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); padding-top: 10px; padding-bottom: 10px;
}
.ledger caption.visually-hidden + thead th { border-top: 0; }
.ledger tbody th { font-weight: 500; }
.ledger .sub { display: block; font-size: 13.5px; font-weight: 400; color: var(--ink-2); line-height: 1.4; margin-top: 2px; }
.ledger .num { text-align: right; white-space: nowrap; }
.ledger thead .num { white-space: normal; }
.ledger td.num { font-family: var(--display); font-variation-settings: 'opsz' 36, 'SOFT' 100; font-size: 19px; font-weight: 500; }
.ledger .note { font-size: 14.5px; color: var(--ink-2); }
.levels .lv { width: 72px; font-family: var(--display); font-style: italic; font-variation-settings: 'opsz' 36, 'SOFT' 100; font-size: 20px; color: var(--forest); }
.levels tbody th { font-weight: 600; }

/* ---------- 4. quests: the taped card beside the text ---------- */
.quests-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.guide-main .quest-card { width: auto; margin: 18px 4px 0 0; transform: rotate(2deg); }
.quest-card .qc-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 12px; font-weight: 600; color: var(--ink-2); }

/* ---------- 5. streaks: a week, with one day covered by a freeze ---------- */
.week-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-days li {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 12px 2px 12px; background: var(--paper-hi); border: 1px solid #E4DACA;
}
.week-days .d { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); }
.week-days .mark { height: 32px; display: grid; place-items: center; }
.week-days .hit .mark svg { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--leaf); color: var(--ink); box-shadow: 0 2px 0 0 var(--leaf-dk); }
.week-days .frz { background: #F1F6FC; border-color: #C9DBF0; }
.week-days .frz .stamp { font-size: 10px; letter-spacing: 0.1em; padding: 5px 5px 4px 7px; }
.week-days .n { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.week-days .frz .n { color: var(--st-rare); font-weight: 500; }
.week .margin-note { margin-top: 14px; font-size: 15px; }

/* ---------- 6. badges ---------- */
.guide-main .badge-plate { padding: 28px 22px 20px; }

/* ---------- 11. the event, as a wide tile ---------- */
.tile-wide { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: stretch; }
.tile-wide img { aspect-ratio: auto; height: 100%; min-height: 220px; }
.tile-wide .tile-body { padding: 24px 26px; align-self: center; }

/* ---------- questions, the notice ---------- */
.guide-faq { margin-top: 104px; padding-top: 72px; border-top: 1px solid var(--rule); scroll-margin-top: 24px; }
.guide-faq .faq-head h2 { font-size: clamp(34px, 3.6vw, 52px); }
.guide-notice { margin-top: 64px; max-width: 52rem; }

@media (max-width: 980px) {
  .layout-aside.guide { grid-template-columns: minmax(0, 1fr); }
  .guide .toc { order: -1; }
  .toc ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .guide-main > section + section { margin-top: 80px; }
  .guide-faq { margin-top: 80px; padding-top: 56px; }
}

@media (max-width: 700px) {
  .catch-grid { grid-template-columns: 1fr; gap: 32px; }
  .catch-fig { max-width: 250px; margin-left: 12px; }
  .quests-grid { grid-template-columns: 1fr; gap: 0; }
  .guide-main .quest-card { margin: 32px 8px 0 10px; max-width: 340px; }
  .stamp-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stamp-row li:nth-child(4) { border-left: 0; }
  .stamp-row li:nth-child(n+4) { border-top: 1px solid var(--rule); }
  .tile-wide { grid-template-columns: 1fr; }
  .tile-wide img { aspect-ratio: 16 / 9; height: auto; min-height: 0; }
}

@media (max-width: 560px) {
  .toc { padding: 20px 18px 18px; }
  .toc ol { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 14px; }
  .toc ol a { grid-template-columns: 22px 1fr; padding: 7px 0; font-size: 14px; line-height: 1.35; }
  .toc ol a::before { font-size: 15px; }
  .ledger caption { padding: 14px 14px 12px; }
  .ledger-title { font-size: 21px; }
  .ledger th, .ledger td { padding: 11px 14px; font-size: 15px; }
  .ledger td.num { font-size: 17px; }
  .ledger thead th { font-size: 10px; letter-spacing: 0.1em; }
  .levels .lv { width: 48px; font-size: 18px; }
  .levels .note { font-size: 13.5px; }
  .week-days { gap: 4px; }
  .week-days li { padding: 10px 0; gap: 8px; }
  .week-days .d { font-size: 10px; letter-spacing: 0.06em; }
  .week-days .hit .mark svg { width: 26px; height: 26px; padding: 6px; }
  .week-days .frz .stamp { font-size: 8px; letter-spacing: 0.04em; padding: 4px 3px 3px 4px; border-width: 1.5px; }
  .week-days .n { font-size: 11px; }
  .guide-main .badge-plate { padding: 22px 14px 16px; }
  .guide-notice { margin-top: 48px; }
}
