/* Halloween Horror Nights 2026 guide — Universal Orlando.
   Scoped to .hhn. Builds on the site's indigo/gold tokens (v1.css) but shifts the article into a
   darker, warmer aubergine mood and spends its one bold accent on a toxic-green signature (the
   "35" lockup and the value markers in the Fear Forecast). Crowd dots reuse the global heat
   tokens. The night table collapses to stacked cards on mobile via data-label. */

.hhn {
  /* local mood tokens */
  --hhn-bg:       oklch(15% 0.055 332);     /* deep aubergine, darker + warmer than site bg */
  --hhn-bg-2:     oklch(12% 0.05 330);
  --hhn-surface:  oklch(21% 0.06 331);      /* raised card */
  --hhn-surface-2: oklch(25% 0.062 331);
  --hhn-line:     oklch(38% 0.06 332);
  --hhn-line-2:   oklch(48% 0.06 332);
  --hhn-toxic:    oklch(90% 0.205 128);     /* signature chartreuse, used sparingly */
  --hhn-toxic-dim: oklch(82% 0.17 130);
  --hhn-amber:    var(--brand);             /* primary = site gold */
  --hhn-amber-deep: var(--brand-press);
  --hhn-ember:    oklch(70% 0.20 35);       /* warm ember, the peak flag */

  background:
    radial-gradient(120% 70% at 50% -5%, oklch(26% 0.09 24 / 0.55), transparent 60%),
    linear-gradient(180deg, var(--hhn-bg) 0%, var(--hhn-bg-2) 100%);
  color: var(--ink);
  overflow-clip-margin: content-box;
}

.hhn .wrap { max-width: 1080px; }
.hhn-prose { max-width: 760px; }

/* shared section heads */
.hhn-h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.025em; line-height: 1.05;
  color: var(--ink);
}
.hhn-lede { color: var(--ink-2); font-size: 16.5px; line-height: 1.6; max-width: 680px; margin: 10px 0 22px; }
.hhn-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ============================================================ hero === */
.hhn-hero {
  position: relative; isolation: isolate; overflow: hidden;
  border-bottom: 1px solid var(--hhn-line);
  padding: clamp(54px, 9vw, 104px) 0 clamp(34px, 5vw, 54px);
  background:
    radial-gradient(80% 60% at 50% 0%, oklch(34% 0.12 28 / 0.6), transparent 60%),
    radial-gradient(60% 80% at 88% 18%, oklch(40% 0.13 130 / 0.16), transparent 60%),
    linear-gradient(180deg, oklch(11% 0.05 330) 0%, var(--hhn-bg) 100%);
}
.hhn-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; pointer-events: none; }
.hhn-hero-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5; mix-blend-mode: overlay;
  background-image: radial-gradient(oklch(100% 0 0 / 0.5) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}
.hhn-hero-in { position: relative; z-index: 2; text-align: center; }

.hhn-kicker {
  display: inline-block; font-family: var(--ui); font-weight: 700;
  font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3);
}
.hhn-eyebrow {
  margin: 18px 0 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(15px, 2.4vw, 19px); letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--hhn-amber);
}
.hhn-title {
  display: flex; align-items: baseline; justify-content: center; gap: clamp(10px, 2vw, 22px);
  margin: 2px 0 0; line-height: 0.86;
}
.hhn-title-word {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(64px, 16vw, 168px); color: var(--ink);
  text-shadow: 0 0 44px oklch(70% 0.13 84 / 0.25);
}
.hhn-title-num {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.04em;
  font-size: clamp(74px, 18vw, 188px);
  color: var(--hhn-toxic);
  text-shadow: 0 0 34px oklch(85% 0.2 129 / 0.4);
}
.hhn-standfirst {
  max-width: 640px; margin: 22px auto 0; color: var(--ink-2);
  font-size: clamp(16px, 2.1vw, 19px); line-height: 1.58; text-wrap: balance;
}
.hhn-standfirst, .hhn-eyebrow, .hhn-kicker { text-wrap: balance; }

.hhn-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.hhn-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ui); font-weight: 700; font-size: 15px; letter-spacing: 0.005em;
  padding: 12px 22px; border-radius: var(--r-pill); text-decoration: none;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.hhn-btn-glow { background: var(--hhn-amber); color: var(--brand-ink); box-shadow: var(--halo); }
.hhn-btn-glow:hover { transform: translateY(-1px); background: var(--hhn-amber-deep); }
.hhn-btn-ghost { background: oklch(100% 0 0 / 0.04); color: var(--ink); border-color: var(--hhn-line-2); }
.hhn-btn-ghost:hover { transform: translateY(-1px); border-color: var(--ink-3); background: oklch(100% 0 0 / 0.08); }

.hhn-glance {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  max-width: 760px; margin: 34px auto 0; border: 1px solid var(--hhn-line);
  border-radius: var(--r); overflow: hidden; background: var(--hhn-line);
}
.hhn-glance-item { background: oklch(17% 0.05 331 / 0.85); padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.hhn-glance-k { font-family: var(--ui); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.hhn-glance-v { font-family: var(--display); font-weight: 800; font-size: clamp(13px, 1.6vw, 15.5px); letter-spacing: -0.01em; color: var(--ink); line-height: 1.15; }

/* ============================================================ note / callout === */
.hhn-note {
  display: flex; gap: 13px; align-items: flex-start;
  background: linear-gradient(180deg, oklch(26% 0.075 40 / 0.5), oklch(20% 0.06 331 / 0.45));
  border: 1px solid oklch(48% 0.09 50 / 0.55);
  border-radius: var(--r); padding: 16px 18px; margin-bottom: 28px; color: var(--ink-2); line-height: 1.55; font-size: 15px;
}
.hhn-note b { color: var(--ink); }
.hhn-note-ico { color: var(--hhn-amber); font-size: 13px; line-height: 1.5; flex: none; }

.hhn-callout {
  margin-top: 26px; background: var(--hhn-surface); border: 1px solid var(--hhn-line);
  border-radius: var(--r-lg); padding: 20px 22px;
}
.hhn-callout-h { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; color: var(--hhn-toxic-dim); margin-bottom: 6px; }
.hhn-callout p { color: var(--ink-2); line-height: 1.6; font-size: 15.5px; }
.hhn-callout b { color: var(--ink); }

/* ============================================================ quick picks === */
.hhn-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
.hhn-pick {
  background: var(--hhn-surface); border: 1px solid var(--hhn-line); border-radius: var(--r-lg);
  padding: 15px 16px; display: flex; flex-direction: column; gap: 3px; position: relative; overflow: hidden;
}
.hhn-pick.is-value { border-color: oklch(62% 0.16 130 / 0.45); background: linear-gradient(180deg, oklch(32% 0.10 132 / 0.18), var(--hhn-surface) 60%); }
.hhn-pick.is-peak { border-color: oklch(62% 0.18 28 / 0.45); background: linear-gradient(180deg, oklch(34% 0.12 28 / 0.18), var(--hhn-surface) 60%); }
.hhn-pick-label { font-family: var(--ui); font-size: 11px; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.hhn-pick-date { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.hhn-pick-tag { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }

/* ============================================================ controls === */
.hhn-controls {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  padding: 14px 16px; background: var(--hhn-surface); border: 1px solid var(--hhn-line);
  border-radius: var(--r) var(--r) 0 0; border-bottom: none;
}
.hhn-ctl-group { display: flex; align-items: center; gap: 8px; }
.hhn-ctl-cap { font-family: var(--ui); font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.hhn-select {
  font-family: var(--ui); font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--hhn-surface-2); border: 1px solid var(--hhn-line-2); border-radius: var(--r-sm);
  padding: 8px 30px 8px 11px; cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.hhn-toggle { display: inline-flex; align-items: center; gap: 9px; font-family: var(--ui); font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; }
.hhn-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.hhn-track { width: 38px; height: 22px; border-radius: var(--r-pill); background: var(--hhn-surface-2); border: 1px solid var(--hhn-line-2); position: relative; transition: background .15s ease; flex: none; }
.hhn-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink-3); transition: transform .15s ease, background .15s ease; }
.hhn-toggle input:checked + .hhn-track { background: oklch(60% 0.16 130 / 0.4); border-color: var(--hhn-toxic-dim); }
.hhn-toggle input:checked + .hhn-track::after { transform: translateX(16px); background: var(--hhn-toxic); }
.hhn-count { margin-left: auto; font-family: var(--ui); font-size: 13px; color: var(--ink-3); }
.hhn-count b { color: var(--ink); font-weight: 800; }

/* ============================================================ table === */
.hhn-table-wrap { border: 1px solid var(--hhn-line); border-radius: 0 0 var(--r) var(--r); overflow: hidden; }
.hhn-table { width: 100%; border-collapse: collapse; background: oklch(17% 0.05 331 / 0.6); }
.hhn-table thead th {
  text-align: left; font-family: var(--ui); font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-3); padding: 12px 16px; background: var(--hhn-surface); border-bottom: 1px solid var(--hhn-line); white-space: nowrap;
}
.hhn-sortable { cursor: pointer; user-select: none; }
.hhn-sortable:hover { color: var(--ink); }
.hhn-sortable[aria-sort] { color: var(--hhn-amber); }
.hhn-arrow { font-size: 9px; opacity: 0.6; margin-left: 2px; }
.hhn-sortable[aria-sort] .hhn-arrow { opacity: 1; }

.hhn-table tbody tr { border-bottom: 1px solid oklch(38% 0.05 332 / 0.4); }
.hhn-table tbody tr:last-child { border-bottom: none; }
.hhn-table tbody tr.is-pick { background: oklch(30% 0.08 130 / 0.14); }
.hhn-table tbody tr.is-hidden { display: none; }
.hhn-table td { padding: 13px 16px; vertical-align: middle; font-size: 14.5px; }

.hhn-cell-date { display: flex; flex-direction: column; gap: 5px; }
.hhn-d-main { font-family: var(--display); font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; color: var(--ink); }
.hhn-dow { color: var(--ink-3); font-weight: 600; }
.hhn-badges { display: flex; flex-wrap: wrap; gap: 5px; }
.hhn-badge { font-family: var(--ui); font-size: 10.5px; font-weight: 800; letter-spacing: 0.03em; padding: 2px 7px; border-radius: var(--r-pill); white-space: nowrap; }
.b-open { background: oklch(40% 0.12 280 / 0.4); color: oklch(86% 0.08 280); border: 1px solid oklch(60% 0.1 280 / 0.5); }
.b-final { background: oklch(40% 0.16 28 / 0.4); color: oklch(86% 0.12 35); border: 1px solid oklch(60% 0.16 28 / 0.5); }
.b-last { background: oklch(36% 0.06 280 / 0.5); color: var(--ink-2); border: 1px solid var(--hhn-line-2); }
.b-value { background: oklch(40% 0.14 130 / 0.32); color: var(--hhn-toxic); border: 1px solid oklch(60% 0.14 130 / 0.5); }

.hhn-tier { display: inline-flex; align-items: center; gap: 7px; font-family: var(--ui); font-weight: 700; font-size: 13.5px; }
.hhn-tier-mark { font-family: var(--display); font-weight: 800; font-size: 14px; }
.tier-value { color: var(--hhn-toxic); }
.tier-reg { color: var(--ink-2); }
.tier-peak { color: oklch(78% 0.16 35); }

.hhn-crowd { display: inline-flex; align-items: center; gap: 8px; font-family: var(--ui); font-weight: 600; font-size: 13.5px; color: var(--ink-2); }
.hhn-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 8px currentColor; }
.heat-low .hhn-dot, .hhn-crowd.heat-low { color: var(--heat-low); }
.hhn-crowd.heat-low .hhn-dot { background: var(--heat-low); }
.hhn-crowd.heat-med { color: var(--heat-med); }
.hhn-crowd.heat-med .hhn-dot { background: var(--heat-med); }
.hhn-crowd.heat-high { color: var(--heat-high); }
.hhn-crowd.heat-high .hhn-dot { background: var(--heat-high); }

.hhn-empty { padding: 22px 16px; text-align: center; color: var(--ink-3); font-size: 14px; }
.is-hidden { display: none; }
.hhn-fineprint { margin-top: 14px; font-size: 12.5px; color: var(--ink-3); line-height: 1.55; max-width: 760px; }

/* ============================================================ houses === */
.hhn-houses { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.hhn-house {
  background: var(--hhn-surface); border: 1px solid var(--hhn-line); border-radius: var(--r-lg);
  padding: 18px; display: flex; flex-direction: column; gap: 9px; transition: border-color .15s ease, transform .15s ease;
}
.hhn-house:hover { border-color: var(--hhn-line-2); transform: translateY(-2px); }
.hhn-house.is-tba { border-style: dashed; background: oklch(17% 0.04 331 / 0.5); }
.hhn-house-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hhn-house-kind { font-family: var(--ui); font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hhn-amber); }
.hhn-house-status { font-family: var(--ui); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; color: var(--hhn-toxic); display: inline-flex; align-items: center; gap: 5px; }
.hhn-house-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hhn-toxic); box-shadow: 0 0 8px var(--hhn-toxic); }
.hhn-house-name { font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.hhn-house-blurb { font-size: 14px; line-height: 1.55; color: var(--ink-2); }

/* ============================================================ tickets === */
.hhn-tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 24px; }
.hhn-ticket { background: var(--hhn-surface); border: 1px solid var(--hhn-line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.hhn-ticket.is-soon { background: oklch(17% 0.04 331 / 0.5); border-style: dashed; }
.hhn-ticket-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.hhn-ticket-name { font-family: var(--display); font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; color: var(--ink); }
.hhn-ticket-price { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--hhn-amber); white-space: nowrap; }
.hhn-ticket-for { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.hhn-ticket-flag { font-family: var(--ui); font-size: 10.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }

/* ============================================================ prose / tips / faq === */
.hhn-prose p { color: var(--ink-2); line-height: 1.68; font-size: 16px; margin-top: 14px; }
.hhn-prose p:first-of-type { margin-top: 0; }
.hhn-prose a { color: var(--hhn-amber); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; text-decoration-color: oklch(70% 0.13 84 / 0.5); }
.hhn-prose a:hover { text-decoration-color: var(--hhn-amber); }

.hhn-tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.hhn-tips li { position: relative; padding: 14px 16px 14px 44px; background: var(--hhn-surface); border: 1px solid var(--hhn-line); border-radius: var(--r); color: var(--ink-2); line-height: 1.55; font-size: 15px; }
.hhn-tips li b { color: var(--ink); }
.hhn-tips li::before { content: "✦"; position: absolute; left: 16px; top: 14px; color: var(--hhn-toxic); font-size: 14px; }

.hhn-faq { display: grid; gap: 10px; max-width: 820px; }
.hhn-faq details { background: var(--hhn-surface); border: 1px solid var(--hhn-line); border-radius: var(--r); overflow: hidden; }
.hhn-faq summary { cursor: pointer; padding: 15px 18px; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hhn-faq summary::-webkit-details-marker { display: none; }
.hhn-faq summary::after { content: "+"; font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--hhn-amber); line-height: 1; flex: none; transition: transform .15s ease; }
.hhn-faq details[open] summary::after { transform: rotate(45deg); }
.hhn-faq p { padding: 0 18px 16px; margin: 0; color: var(--ink-2); line-height: 1.62; font-size: 15px; }

/* ============================================================ focus states === */
.hhn a:focus-visible,
.hhn .hhn-btn:focus-visible,
.hhn .hhn-select:focus-visible,
.hhn .hhn-sortable:focus-visible,
.hhn summary:focus-visible,
.hhn .hhn-toggle input:focus-visible + .hhn-track {
  outline: 3px solid var(--hhn-amber); outline-offset: 2px; border-radius: var(--r-xs);
}

/* ============================================================ responsive === */
@media (max-width: 760px) {
  .hhn-glance { grid-template-columns: repeat(2, 1fr); }
  .hhn-picks { grid-template-columns: repeat(2, 1fr); }
  .hhn-title { flex-direction: row; gap: 8px; }

  /* table → stacked cards */
  .hhn-table, .hhn-table tbody, .hhn-table tr, .hhn-table td { display: block; width: 100%; }
  .hhn-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .hhn-table tbody tr { padding: 12px 14px; border-bottom: 1px solid var(--hhn-line); }
  .hhn-table td { padding: 5px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
  .hhn-table td::before { content: attr(data-label); font-family: var(--ui); font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
  .hhn-table td[data-label="Night"] { display: block; }
  .hhn-table td[data-label="Night"]::before { display: none; }
  .hhn-count { margin-left: 0; width: 100%; }
}

@media (max-width: 480px) {
  .hhn-picks { grid-template-columns: 1fr; }
}

/* ============================================================ reduced motion === */
@media (prefers-reduced-motion: reduce) {
  .hhn-btn, .hhn-house, .hhn-faq summary::after, .hhn-track, .hhn-track::after { transition: none; }
}
