/* Disney After Hours guide (ah-). Committed to the site's Nightfall dark theme: the page
   lives at night on the indigo body v1.css ships, hero darkest, sections on lifted surfaces.
   Inks and rules come from the site tokens so contrast holds on the real background. */

.ah { --ah-gold: #e0a96b; --ah-gold-bright: #ecc084;
      --ah-night: #0b1026; --ah-night2: #171d40;
      --ah-rule: oklch(100% 0 0 / 0.12);
      color: var(--ink); }

/* Scoped default links; :where keeps specificity at zero so component classes always win. */
.ah :where(a) { color: var(--ah-gold); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.ah :where(a:hover) { color: var(--ah-gold-bright); }
.ah :where(a:focus-visible) { outline: 2px solid var(--ah-gold); outline-offset: 2px; border-radius: 2px; }

/* Anchor jumps clear the sticky appbar. */
.ah [id] { scroll-margin-top: 84px; }

/* ---------------------------------------------------------------- hero */
.ah-hero { position: relative; overflow: hidden; background:
  radial-gradient(120% 90% at 50% 110%, #2a2348 0%, transparent 55%),
  linear-gradient(180deg, #070b1c 0%, var(--ah-night) 45%, var(--ah-night2) 100%);
  color: #f7f2e7; padding: 84px 0 58px; }
.ah-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ah-hero-fade { position: absolute; inset: auto 0 0 0; height: 90px; background:
  linear-gradient(180deg, transparent, oklch(21% 0.046 280 / 0.85)); pointer-events: none; }
.ah-hero-in { position: relative; z-index: 2; max-width: 880px; }

.ah-kicker { display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: oklch(93% 0.03 84 / 0.72); margin-bottom: 18px; }
.ah-eyebrow { font-size: 1rem; color: var(--ah-gold); margin: 0 0 6px; font-weight: 600;
  letter-spacing: .02em; }
.ah-title { font-size: clamp(2.3rem, 6vw, 4rem); line-height: 1.02; margin: 0 0 18px;
  font-weight: 800; letter-spacing: -.02em; color: #f7f2e7; text-wrap: balance; }
.ah-title-year { color: var(--ah-gold); font-weight: 700; }
.ah-standfirst { font-size: 1.08rem; line-height: 1.65; color: oklch(93% 0.03 84 / 0.88);
  max-width: 62ch; margin: 0 0 24px; }

.ah-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.ah-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700;
  font-size: .95rem; text-decoration: none; }
.ah-btn-gold { background: var(--ah-gold); color: #221a10; }
.ah-btn-gold:hover { background: var(--ah-gold-bright); color: #221a10; }
.ah-btn-ghost { color: #f7f2e7; border: 1px solid oklch(93% 0.03 84 / 0.45); }
.ah-btn-ghost:hover { border-color: #f7f2e7; color: #fff; }
.ah-btn:focus-visible { outline: 2px solid var(--ah-gold); outline-offset: 3px; }

.ah-glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ah-glance-item { border: 1px solid oklch(93% 0.03 84 / 0.2); border-radius: 12px; padding: 10px 14px;
  background: oklch(10% 0.04 280 / 0.35); }
.ah-glance-k { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: oklch(93% 0.03 84 / 0.62); margin-bottom: 2px; }
.ah-glance-v { font-weight: 700; font-size: .98rem; }

/* ---------------------------------------------------------------- body */
.ah .sec { padding: 34px 0; }
.ah .ah-sec-tight { padding-top: 0; }
.ah-h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.2; margin: 0 0 10px;
  letter-spacing: -.01em; text-wrap: balance; }
.ah-h2-snug { margin-bottom: 6px; }
.ah-h3 { font-size: 1.08rem; margin: 0 0 8px; }
.ah-lead { max-width: 68ch; line-height: 1.65; margin: 0 0 22px; color: var(--ink-2); }

.ah-toc { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin: 0 0 18px;
  font-size: .9rem; }
.ah-toc-k { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
  font-weight: 700; margin-right: 2px; }
.ah-toc a { font-weight: 600; padding: 6px 0; }

.ah-note { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line);
  border-radius: 12px; padding: 16px 18px; line-height: 1.6; background: var(--surface); }
.ah-note > span:last-child { max-width: 74ch; }
.ah-note-ico { font-size: 1.3rem; line-height: 1; margin-top: 2px; color: var(--ah-gold); }

/* park night cards */
.ah-parks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.ah-park { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--surface); }
.ah-park.is-out { background: oklch(24% 0.045 280); }
.ah-park-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.ah-badge { font-size: .74rem; font-weight: 700; letter-spacing: .04em; padding: 4px 10px;
  border-radius: 999px; white-space: nowrap; }
.ah-badge-on { background: oklch(35% 0.07 75); color: var(--ah-gold-bright); }
.ah-badge-out { background: var(--surface-3); color: var(--ink-2); }
.ah-park-meta { font-size: .9rem; color: var(--ink-3); margin: 6px 0 14px; }

.ah-nights { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ah-night { display: flex; align-items: center; gap: 10px; border: 1px solid var(--ah-rule);
  border-radius: 10px; padding: 8px 12px; font-size: .95rem; }
.ah-night-day { font-weight: 700; width: 2.6em; color: var(--ink-3); }
.ah-night-date { font-weight: 600; color: var(--ink); }
.ah-night-tag { margin-left: auto; font-size: .74rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #221a10; background: var(--ah-gold);
  padding: 3px 9px; border-radius: 999px; }
.ah-night.is-tonight { border-color: var(--ah-gold); box-shadow: 0 0 0 1px var(--ah-gold) inset; }
.ah-night-alt { text-transform: none; letter-spacing: 0; color: var(--ah-gold-bright); background: oklch(35% 0.07 75); }
.ah-park-note { font-size: .92rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 10px; }

.ah-season summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--ink-3);
  padding: 10px 0; }
.ah-season summary:hover { color: var(--ink-2); }
.ah-season summary:focus-visible { outline: 2px solid var(--ah-gold); outline-offset: 2px; }
.ah-season-list { list-style: none; padding: 6px 0 0; margin: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 5px; font-size: .85rem;
  color: var(--ink-2); }
.ah-season-list .is-past { color: oklch(67% 0.03 84); text-decoration: line-through; }

/* the night timeline (signature) */
.ah-timeline { margin: 6px 0 26px; }
.ah-tl-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line-2); }
.ah-tl-seg { display: block; height: 100%; }
.ah-tl-dusk { flex: 0 0 45%; background: linear-gradient(90deg, #e8933f 0%, #a5537a 55%, #3c3670 100%); }
.ah-tl-event { flex: 1; background: linear-gradient(90deg, #232a5c 0%, var(--ah-night) 40%, #05070f 100%);
  position: relative; }
.ah-tl-event::after { content: ""; position: absolute; inset: 3px 4px; border-radius: 999px;
  background: repeating-linear-gradient(90deg, transparent 0 26px, oklch(75% 0.09 75 / 0.55) 26px 28px); }
.ah-tl-marks { list-style: none; position: relative; height: 74px; margin: 10px 0 0; padding: 0; }
.ah-tl-mark { position: absolute; top: 0; left: var(--at, 0%); transform: translateX(-50%);
  width: 160px; max-width: 24vw; }
.ah-tl-mark:first-child { transform: none; text-align: left; }
.ah-tl-mark:last-child { transform: translateX(-100%); text-align: right; }
.ah-tl-time { display: block; font-weight: 800; font-size: .92rem; color: var(--ink); }
.ah-tl-gold .ah-tl-time { color: var(--ah-gold); }
.ah-tl-what { display: block; font-size: .84rem; line-height: 1.45; color: var(--ink-3); }
.ah-tl-note { margin: 12px 0 0; font-size: .85rem; color: var(--ink-3); }
@media (max-width: 768px) {
  .ah-tl-marks { position: static; height: auto; display: flex; flex-direction: column; gap: 10px; }
  .ah-tl-mark { position: static; transform: none; width: auto; max-width: none;
    display: grid; grid-template-columns: 84px 1fr; gap: 8px; align-items: baseline; }
  .ah-tl-mark:last-child { transform: none; text-align: left; }
}

/* wait bars: the length of the line, literally */
.ah-ridename { display: block; color: var(--ink); }
.ah-waitbar { display: block; height: 5px; border-radius: 999px; background: oklch(100% 0 0 / 0.1);
  margin-top: 5px; max-width: 240px; }
.ah-waitbar i { display: block; height: 100%; width: var(--w, 0%); border-radius: 999px;
  background: linear-gradient(90deg, var(--ah-gold), #b5762a); }

/* wait math */
.ah-math { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; margin-bottom: 18px; }
.ah-mathcard { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--surface); }
.ah-mathcap { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 10px; }
.ah-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.ah-table th { text-align: left; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); padding: 0 0 6px; border-bottom: 1px solid var(--ah-rule); }
.ah-table th:last-child, .ah-table td:last-child { text-align: right; }
.ah-table td { padding: 7px 0; border-bottom: 1px solid oklch(100% 0 0 / 0.07); color: var(--ink-2); }
.ah-table td b { color: var(--ink); }
.ah-table tr:last-child td { border-bottom: 0; }
.ah-mathsum { margin: 12px 0 0; line-height: 1.6; font-size: .97rem; color: var(--ink-2); }
.ah-mathsum b { color: var(--ink); }

.ah-callout { border: 1px solid var(--line-2); border-radius: 12px; padding: 16px 18px;
  line-height: 1.65; margin: 0 0 18px;
  background: linear-gradient(180deg, oklch(35% 0.07 75 / 0.25), var(--surface)); }
.ah-callout p { margin: 0; max-width: 74ch; }
.ah-callout-soft { background: var(--surface); }
.ah-compare p { line-height: 1.7; max-width: 74ch; margin: 0; color: var(--ink-2); }

/* cards */
.ah-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.ah-grid2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.ah-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; line-height: 1.6;
  background: var(--surface); }
.ah-card p { margin: 0; font-size: .97rem; color: var(--ink-2); }
.ah-pick .ah-badge { margin: -2px 0 10px; display: inline-block; }
.ah-ridelist { margin: 10px 0; padding-left: 18px; font-size: .93rem; line-height: 1.7; color: var(--ink-2); }
.ah-pick-foot { font-size: .88rem; color: var(--ink-3); }

.ah-twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 22px; margin-bottom: 18px; }
.ah-twocol p { line-height: 1.7; margin: 0; color: var(--ink-2); }

/* faq */
.ah-faq details { border-bottom: 1px solid var(--ah-rule); padding: 6px 0; }
.ah-faq summary { cursor: pointer; font-weight: 700; line-height: 1.45; color: var(--ink);
  padding: 8px 0; }
.ah-faq summary:focus-visible { outline: 2px solid var(--ah-gold); outline-offset: 3px; }
.ah-faq p { margin: 6px 0 10px; line-height: 1.65; max-width: 74ch; color: var(--ink-2); }

@media (max-width: 640px) {
  .ah-hero { padding: 64px 0 44px; }
  .ah .sec { padding: 26px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ah-hero-canvas { display: none; }
  .ah-hero { background-image:
    radial-gradient(1px 1px at 18% 30%, rgba(247,242,231,.8), transparent),
    radial-gradient(1px 1px at 42% 16%, rgba(247,242,231,.6), transparent),
    radial-gradient(1.5px 1.5px at 68% 38%, rgba(224,169,107,.8), transparent),
    radial-gradient(1px 1px at 84% 22%, rgba(247,242,231,.7), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(247,242,231,.5), transparent),
    radial-gradient(120% 90% at 50% 110%, #2a2348 0%, transparent 55%),
    linear-gradient(180deg, #070b1c 0%, #0b1026 45%, #171d40 100%); }
}
