/* ============================================================================
   Best Snacks at Disney World, Ranked — a service guide built on the site's
   Nightfall tokens. The centerpiece is a server-rendered, park-filterable snack
   board (best-snacks.js). Namespaced sn- so it never collides with other guides.
   ========================================================================== */

.sn { max-width: 1080px; margin: 0 auto; padding: 0 var(--space-md); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.sn-hero {
  position: relative; max-width: 880px; margin: 0 auto; text-align: center;
  padding-top: var(--space-2xl); padding-bottom: var(--space-md);
}
.sn-hero-glow {
  position: absolute; inset: -40px 0 auto 0; height: 360px; z-index: -1;
  background: radial-gradient(60% 80% at 50% 0%, var(--gold-deep) 0%, transparent 70%);
  opacity: 0.16; filter: blur(8px); pointer-events: none;
}
.sn-kicker {
  font-family: var(--label); font-size: 13px; letter-spacing: 0.04em;
  color: var(--gold); margin-bottom: var(--space-md);
}
.sn-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(34px, 6vw, 60px); line-height: 1.02; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 var(--space-md); text-wrap: balance;
}
.sn-standfirst {
  font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; color: var(--ink-soft);
  max-width: 60ch; margin: 0 auto var(--space-lg); text-wrap: pretty;
}

/* ── Body prose ───────────────────────────────────────────────────────── */
.sn-body { max-width: 720px; margin: 0 auto; }
.sn-body > p { font-size: 18px; line-height: 1.72; color: var(--ink-soft); margin: 0 0 var(--space-md); }
.sn-lede { font-size: 20px !important; line-height: 1.6 !important; color: var(--ink) !important; }
.sn-lede::first-letter {
  float: left; font-family: var(--display); font-weight: 800; font-size: 3.6em;
  line-height: 0.74; padding: 6px 10px 0 0; color: var(--gold);
}
.sn-body h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(24px, 3.4vw, 32px); line-height: 1.1; letter-spacing: -0.01em;
  color: var(--ink); margin: var(--space-2xl) 0 var(--space-sm);
}
.sn-body a { color: var(--gold); text-underline-offset: 3px; }
.sn-body a:hover { color: var(--gold-deep); }
.sn-body a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }

/* ── The board tool ───────────────────────────────────────────────────── */
.sn-tool {
  background: linear-gradient(180deg, var(--paper-2), color-mix(in oklab, var(--paper-2) 55%, var(--paper)));
  border: 1px solid var(--rule); border-radius: 22px;
  padding: var(--space-lg); margin: var(--space-xl) 0 var(--space-2xl);
  box-shadow: 0 30px 80px -48px oklch(0% 0 0 / 0.7);
}
.sn-tool-head { text-align: center; max-width: 60ch; margin: 0 auto var(--space-lg); }
.sn-tool-title { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3.4vw, 32px); color: var(--ink); margin: 0 0 8px; }
.sn-tool-sub { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }

/* filter */
.sn-filter {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  margin-bottom: var(--space-sm);
}
.sn-board-count {
  text-align: center; font-family: var(--label); font-size: 12.5px;
  color: var(--muted); margin: 0 0 var(--space-md);
}
.sn-filter-btn {
  font-family: var(--label); font-size: 13px; color: var(--ink-soft);
  background: color-mix(in oklab, var(--paper) 70%, transparent);
  border: 1px solid var(--rule); border-radius: 999px; padding: 8px 15px;
  cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.sn-filter-btn:hover { border-color: var(--gold); }
.sn-filter-btn.is-active { background: var(--gold); color: oklch(20% 0.03 277); border-color: var(--gold); font-weight: 700; }
.sn-filter-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* board */
.sn-board { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sn-card {
  display: grid; grid-template-columns: 44px 1fr; gap: var(--space-md); align-items: start;
  background: color-mix(in oklab, var(--paper) 55%, transparent);
  border: 1px solid var(--hair); border-radius: 14px; padding: var(--space-md);
}
.sn-card[hidden] { display: none; }
.sn-rank {
  font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1;
  color: var(--gold); width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--gold-soft, oklch(80% 0.12 85 / 0.1));
  border: 1px solid var(--gold-line, oklch(80% 0.12 85 / 0.35)); border-radius: 50%;
}
.sn-card-b { min-width: 0; }
.sn-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 4px; }
.sn-name { font-family: var(--display); font-weight: 700; font-size: 19px; color: var(--ink); margin: 0; }
.sn-tier {
  font-family: var(--label); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 4px; padding: 2px 7px; white-space: nowrap;
}
.sn-tier--icon { color: oklch(20% 0.03 277); background: var(--gold); }
.sn-tier--worth { color: var(--gold); border: 1px solid var(--gold-line, oklch(80% 0.12 85 / 0.4)); }
.sn-tier--anytime { color: var(--muted); border: 1px solid var(--rule); }
.sn-where { font-size: 13.5px; color: var(--muted); margin: 0 0 6px; }
.sn-park { color: var(--ink-soft); font-weight: 600; }
.sn-park::after { content: " · "; color: var(--muted); font-weight: 400; }
.sn-verdict { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0; }
.sn-board-empty { text-align: center; color: var(--muted); padding: var(--space-lg) 0; }
.sn-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Key five (ordered) ───────────────────────────────────────────────── */
.sn-key { list-style: none; counter-reset: sn; padding: 0; margin: var(--space-md) 0; }
.sn-key li {
  position: relative; counter-increment: sn; padding: 0 0 0 56px;
  margin: 0 0 var(--space-md); font-size: 17px; line-height: 1.6; color: var(--ink-soft);
}
.sn-key li::before {
  content: counter(sn); position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 17px;
  color: var(--gold); background: var(--gold-soft, oklch(80% 0.12 85 / 0.12));
  border: 1px solid var(--gold-line, oklch(80% 0.12 85 / 0.4)); border-radius: 50%;
}
.sn-key strong { color: var(--ink); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.sn-faq { margin: var(--space-md) 0; }
.sn-faq-item { border-bottom: 1px solid var(--hair); }
.sn-faq-item summary {
  cursor: pointer; list-style: none; padding: var(--space-sm) 0;
  font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink);
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.sn-faq-item summary::-webkit-details-marker { display: none; }
.sn-faq-item summary::after { content: "+"; color: var(--gold); font-size: 22px; font-weight: 400; transition: transform .2s ease; }
.sn-faq-item[open] summary::after { transform: rotate(45deg); }
.sn-faq-item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.sn-faq-item p { font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 var(--space-sm); }

/* ── Related ──────────────────────────────────────────────────────────── */
.sn-related { margin: var(--space-2xl) 0 var(--space-3xl); padding-top: var(--space-md); border-top: 1px solid var(--rule); }
.sn-related h2 { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--ink); margin: 0 0 var(--space-sm); }
.sn-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sn-related a { color: var(--gold); font-size: 16px; text-underline-offset: 3px; }
.sn-related a:hover { color: var(--gold-deep); }
.sn-related a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
.sn-close { font-style: italic; color: var(--ink) !important; }

/* ── Responsive + reduced motion ──────────────────────────────────────── */
@media (max-width: 560px) {
  .sn-card { grid-template-columns: 36px 1fr; gap: 12px; }
  .sn-rank { width: 36px; height: 36px; font-size: 18px; }
}
@media (pointer: coarse) {
  .sn-filter-btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .sn-filter-btn, .sn-faq-item summary::after { transition: none; }
}
