/* ============================================================================
   What You Can Bring Into Disney World — the "bag check" service guide.
   Built on the site's Nightfall tokens (--paper, --ink, --gold, --red, --rule).
   The hero is an interactive scanner: a WebGL inspection table (what-to-bring.js)
   lazy-loads into the canvas as pure enhancement; the chip tray + green/red lists
   below are fully server-rendered, so the page is complete with no JS and no WebGL.
   Namespaced wtb- so it never collides with other guides.
   ========================================================================== */

:root {
  --wtb-go:       oklch(80% 0.16 150);          /* cleared / comes in */
  --wtb-go-soft:  oklch(80% 0.16 150 / 0.14);
  --wtb-go-line:  oklch(80% 0.16 150 / 0.45);
  --wtb-no:       var(--red);
  --wtb-no-soft:  oklch(67% 0.205 8 / 0.14);
  --wtb-no-line:  oklch(67% 0.205 8 / 0.45);
}

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

/* ── Hero ─────────────────────────────────────────────────────────────── */
.wtb-hero { max-width: 880px; margin: 0 auto; text-align: center; padding-top: var(--space-xl); }
.wtb-kicker {
  font-family: var(--label); font-size: 13px; letter-spacing: 0.04em;
  color: var(--gold); text-transform: none; margin-bottom: var(--space-md);
}
.wtb-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;
}
.wtb-standfirst {
  font-size: clamp(17px, 2.2vw, 20px); line-height: 1.5; color: var(--ink-soft);
  max-width: 62ch; margin: 0 auto var(--space-xl); text-wrap: pretty;
}

/* ── The scanner ──────────────────────────────────────────────────────── */
.wtb-scanner {
  background: linear-gradient(180deg, var(--paper-2), color-mix(in oklab, var(--paper-2) 60%, var(--paper)));
  border: 1px solid var(--rule); border-radius: 22px;
  padding: var(--space-lg); margin-bottom: var(--space-2xl);
  box-shadow: 0 30px 80px -40px oklch(0% 0 0 / 0.7);
}
.wtb-scanner-stage {
  position: relative; border-radius: 16px; overflow: hidden;
  aspect-ratio: 16 / 8; min-height: 300px;
  background:
    radial-gradient(120% 90% at 50% 8%, oklch(36% 0.06 280 / 0.9), transparent 60%),
    linear-gradient(180deg, oklch(20% 0.04 277), oklch(15% 0.03 277));
  border: 1px solid var(--hair);
}
.wtb-scanner-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wtb-scanner-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: radial-gradient(120% 120% at 50% 42%, transparent 52%, oklch(10% 0.02 270 / 0.6) 100%);
}
.wtb-scanner-readout {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 12px 18px; text-align: center;
  font-family: var(--label); font-size: clamp(14px, 2vw, 17px);
  background: linear-gradient(0deg, oklch(12% 0.03 277 / 0.92), transparent);
  color: var(--ink-soft); z-index: 2;
}
.wtb-scanner-readout .wtb-scanner-prompt { color: var(--muted); }
.wtb-scanner-readout.is-go    { color: var(--wtb-go); font-weight: 600; }
.wtb-scanner-readout.is-no    { color: var(--wtb-no); font-weight: 600; }
.wtb-scanner-readout b { font-weight: 800; }

.wtb-scanner-tray {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  margin-top: var(--space-md);
}
.wtb-chip {
  font-family: var(--label); font-size: 14px; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--paper);
  color: var(--ink-soft); transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
.wtb-chip:hover { transform: translateY(-1px); border-color: var(--gold); color: var(--ink); }
.wtb-chip.is-active.is-go { background: var(--wtb-go-soft); border-color: var(--wtb-go-line); color: var(--wtb-go); }
.wtb-chip.is-active.is-no { background: var(--wtb-no-soft); border-color: var(--wtb-no-line); color: var(--wtb-no); }
.wtb-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ── Body prose ───────────────────────────────────────────────────────── */
.wtb-body { max-width: 720px; margin: 0 auto; }
.wtb-body p { font-size: 18px; line-height: 1.66; color: var(--ink-soft); margin: 0 0 var(--space-lg); }
.wtb-lede { font-size: 21px !important; line-height: 1.55 !important; color: var(--ink) !important; }
.wtb-lede::first-letter {
  font-family: var(--display); font-weight: 800; float: left;
  font-size: 3.1em; line-height: 0.78; padding: 6px 10px 0 0; color: var(--gold);
}
.wtb-body h2 {
  font-family: var(--display); font-weight: 800; font-size: clamp(24px, 3.4vw, 32px);
  color: var(--ink); letter-spacing: -0.01em; line-height: 1.12;
  margin: var(--space-2xl) 0 var(--space-md); text-wrap: balance;
}
.wtb-body strong { color: var(--ink); font-weight: 700; }
.wtb-close { font-size: 19px !important; color: var(--ink) !important; border-top: 1px solid var(--hair); padding-top: var(--space-xl); }

/* ── Allowed / banned lists ───────────────────────────────────────────── */
.wtb-list { list-style: none; padding: 0; margin: 0 0 var(--space-lg); display: grid; gap: 10px; }
.wtb-list li {
  display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start;
  font-size: 17px; line-height: 1.5; color: var(--ink-soft);
  padding: 14px 16px; border-radius: 12px; border: 1px solid var(--hair);
}
.wtb-list--go li { background: var(--wtb-go-soft); border-color: var(--wtb-go-line); }
.wtb-list--no li { background: var(--wtb-no-soft); border-color: var(--wtb-no-line); }
.wtb-li-text { min-width: 0; }
.wtb-tick { color: var(--wtb-go); font-weight: 900; font-size: 18px; }
.wtb-cross { color: var(--wtb-no); font-weight: 900; font-size: 18px; }

/* ── The three numbers ────────────────────────────────────────────────── */
.wtb-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin: var(--space-lg) 0 var(--space-xl); }
.wtb-num {
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: 16px;
  padding: var(--space-lg); text-align: center; display: flex; flex-direction: column; gap: 6px;
}
.wtb-num-k { font-family: var(--label); font-size: 13px; letter-spacing: 0.03em; color: var(--gold); }
.wtb-num-v { font-family: var(--display); font-weight: 800; font-size: clamp(17px, 2vw, 21px); color: var(--ink); line-height: 1.12; }
.wtb-num-n { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.wtb-faq { display: grid; gap: 8px; margin-bottom: var(--space-xl); }
.wtb-faq-item { border: 1px solid var(--hair); border-radius: 12px; background: var(--paper-2); overflow: hidden; }
.wtb-faq-item summary {
  cursor: pointer; list-style: none; padding: 16px 18px;
  font-family: var(--label); font-weight: 600; font-size: 17px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.wtb-faq-item summary::-webkit-details-marker { display: none; }
.wtb-faq-item summary::after { content: "+"; color: var(--gold); font-size: 22px; line-height: 1; transition: transform .2s ease; }
.wtb-faq-item[open] summary::after { transform: rotate(45deg); }
.wtb-faq-item p { margin: 0; padding: 0 18px 18px; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }

/* ── Related ──────────────────────────────────────────────────────────── */
.wtb-related { border-top: 1px solid var(--hair); margin-top: var(--space-2xl); padding-top: var(--space-lg); }
.wtb-related h2 { font-family: var(--display); font-size: 20px; color: var(--ink); margin: 0 0 var(--space-sm); }
.wtb-related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.wtb-related a { color: var(--blue); font-size: 17px; text-decoration: none; }
.wtb-related a:hover { text-decoration: underline; }

@media (max-width: 680px) {
  .wtb-numbers { grid-template-columns: 1fr; }
  .wtb-scanner-stage { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .wtb-chip { transition: none; }
}
