/* ============================================================
   /guides hub
   _Layout page (site.css Nightfall tokens: --paper, --paper-2, --ink, --ink-soft, --muted,
   --hair, --gold, --display, --text, --space-*). Scoped under .gh; page links use
   `.gh :where(a)` so classed controls keep their own ink.
   Built for finding things: search + intent chips, the season timeline, a three-step
   start path, shelves of guides, then the ride and resort families.
   ============================================================ */

.gh {
  --gh-rose: oklch(74% 0.14 10);
  --gh-teal: oklch(76% 0.1 190);
  --gh-ever: oklch(74% 0.09 160);
  --gh-violet: oklch(70% 0.13 295);
  --gh-ease: cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 var(--space-3xl);
}
.gh :where(a) { color: var(--gold); text-decoration: none; }
.gh :where(a:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---- hero + finder ------------------------------------------------------ */
.gh-hero {
  position: relative;
  text-align: center;
  padding: clamp(36px, 7vw, 88px) clamp(8px, 3vw, 24px) clamp(28px, 4vw, 44px);
}
.gh-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 70% at 50% 0%, oklch(42% 0.1 290 / 0.4), transparent 72%);
  pointer-events: none;
}
.gh-kicker { font-family: var(--text); font-size: 14px; font-weight: 600; color: var(--gold); margin: 0; }
.gh h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(42px, 7vw, 80px); line-height: 0.98; letter-spacing: -0.03em;
  color: var(--ink); margin: 14px 0 0; text-wrap: balance;
}
.gh-lede {
  font-family: var(--text); font-size: clamp(17px, 1.7vw, 19px); line-height: 1.6;
  color: var(--ink-soft); max-width: 58ch; margin: 18px auto 0; text-wrap: balance;
}

.gh-find { max-width: 760px; margin: clamp(24px, 4vw, 36px) auto 0; }
.gh-find-label { display: block; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.gh-find-box {
  position: relative; display: flex; align-items: center; gap: 12px;
  height: 62px; padding: 0 16px 0 20px;
  background: var(--paper-2); border: 1px solid var(--hair); border-radius: 999px;
  transition: border-color 0.2s, box-shadow 0.3s;
}
.gh-find-box:focus-within { border-color: oklch(84% 0.13 86 / 0.7); box-shadow: 0 0 0 4px oklch(84% 0.13 86 / 0.14); }
.gh-find-box svg { flex: 0 0 auto; width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }
.gh-find-box input {
  flex: 1 1 auto; min-width: 0; height: 100%;
  border: 0; background: transparent; outline: none;
  font-family: var(--text); font-size: 18px; color: var(--ink);
}
.gh-find-box input::placeholder { color: var(--muted); }
.gh-find-box input::-webkit-search-cancel-button { filter: invert(0.8); }
.gh-find-box kbd {
  flex: 0 0 auto; font-family: var(--text); font-size: 12px; font-weight: 700; color: var(--muted);
  border: 1px solid var(--hair); border-radius: 6px; padding: 2px 8px;
}
.gh-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.gh-chip {
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--hair); background: transparent;
  font-family: var(--text); font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
  cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--gh-ease);
}
.gh-chip:hover { border-color: oklch(84% 0.13 86 / 0.6); color: var(--ink); transform: translateY(-1px); }
.gh-chip:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gh-chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--paper); }
.gh-status { min-height: 1.4em; margin: 14px 0 0; font-family: var(--text); font-size: 14.5px; font-weight: 600; color: var(--gold); }

/* ---- jump nav ------------------------------------------------------------ */
.gh-jump {
  position: sticky; top: 0; z-index: 5;
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 10px 2px; margin: 0 0 var(--space-lg);
  background: var(--paper); border-bottom: 1px solid var(--hair);
}
.gh-jump::-webkit-scrollbar { display: none; }
.gh .gh-jump a {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px;
  font-family: var(--text); font-size: 14px; font-weight: 600; color: var(--ink-soft);
}
.gh .gh-jump a:hover { background: var(--paper-2); color: var(--ink); }
.gh.is-filtering .gh-jump { display: none; }

/* shared section head */
.gh-sec-head { max-width: 720px; margin: 0 auto var(--space-lg); text-align: center; }
.gh-sec-head h2 {
  font-family: var(--display); font-size: clamp(28px, 3.6vw, 42px); line-height: 1.06;
  letter-spacing: -0.015em; color: var(--ink); margin: 0; text-wrap: balance;
}
.gh-sec-head p { font-family: var(--text); font-size: 16.5px; line-height: 1.55; color: var(--ink-soft); margin: 10px auto 0; max-width: 56ch; }
.gh-intro-sec { margin: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 88px); scroll-margin-top: 70px; }
.gh.is-filtering .gh-intro-sec { display: none; }

/* ---- the season timeline -------------------------------------------------- */
.gh-tl-wrap {
  overflow-x: auto; scrollbar-width: thin;
  padding: 18px clamp(14px, 2.5vw, 28px) 20px;
  border-radius: 18px; border: 1px solid var(--hair);
  background: linear-gradient(180deg, oklch(27% 0.05 276), oklch(22% 0.045 276));
}
.gh-tl { position: relative; min-width: 720px; padding-top: 34px; }
.gh-tl-months { position: absolute; inset: 0 0 0 0; pointer-events: none; }
.gh-tl-months span {
  position: absolute; top: 0; bottom: 0; padding-left: 8px;
  border-left: 1px solid oklch(37% 0.05 278 / 0.8);
  font-family: var(--text); font-size: 13px; font-weight: 700; color: var(--ink-soft);
}
.gh-tl-today { position: absolute; top: 24px; bottom: -6px; z-index: 2; border-left: 2px solid var(--gold); pointer-events: none; }
.gh-tl-today i {
  position: absolute; top: -2px; left: 6px; font-style: normal;
  font-family: var(--text); font-size: 11.5px; font-weight: 800; color: var(--paper);
  background: var(--gold); border-radius: 999px; padding: 1px 8px;
}
.gh-tl-rows { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 8px; }
.gh-tl-rows li { position: relative; height: 48px; }
.gh .gh-bar {
  position: absolute; left: var(--l); width: max(var(--w), 150px); top: 0; bottom: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 1px;
  padding: 0 14px; border-radius: 10px; overflow: hidden;
  color: oklch(20% 0.04 270);
  transition: transform 0.3s var(--gh-ease), filter 0.2s;
}
.gh-bar b { font-family: var(--display); font-size: 15px; font-weight: 800; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gh-bar span { font-family: var(--text); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.85; }
.gh-bar.is-wdw { background: linear-gradient(90deg, oklch(86% 0.12 86), oklch(80% 0.14 72)); }
.gh-bar.is-disneyland { background: linear-gradient(90deg, oklch(80% 0.12 10), var(--gh-rose)); }
.gh-bar.is-universal { background: linear-gradient(90deg, oklch(82% 0.09 190), var(--gh-teal)); }
.gh .gh-bar:hover { transform: translateY(-2px); filter: brightness(1.06); }
.gh-bar.is-on::after {
  content: ""; position: absolute; right: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: oklch(20% 0.04 270);
  animation: gh-pulse 1.8s ease-in-out infinite;
}
@keyframes gh-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.gh-tl-key { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin: 14px 0 0; font-family: var(--text); font-size: 13px; color: var(--ink-soft); }
.gh-tl-key span { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-left: 8px; }
.gh-tl-key span:first-child { margin-left: 0; }
.gh-tl-key .k-wdw { background: var(--gold); }
.gh-tl-key .k-disneyland { background: var(--gh-rose); }
.gh-tl-key .k-universal { background: var(--gh-teal); }

/* ---- start here: three steps --------------------------------------------- */
.gh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gh .gh-step {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 26px 24px 22px; border-radius: 18px;
  color: var(--ink);
  transition: transform 0.35s var(--gh-ease);
}
.gh-step.is-s1 { background: linear-gradient(150deg, oklch(40% 0.13 290), oklch(28% 0.07 280)); }
.gh-step.is-s2 { background: linear-gradient(150deg, oklch(44% 0.11 50), oklch(29% 0.06 40)); }
.gh-step.is-s3 { background: linear-gradient(150deg, oklch(40% 0.08 175), oklch(27% 0.05 190)); }
.gh .gh-step:hover { transform: translateY(-4px); }
.gh-step-n {
  position: absolute; right: 14px; top: -18px;
  font-family: var(--display); font-size: 150px; font-weight: 800; line-height: 1;
  color: oklch(100% 0 0 / 0.08); pointer-events: none;
}
.gh-step-k { font-family: var(--text); font-size: 13px; font-weight: 800; color: oklch(92% 0.06 86); }
.gh-step b { font-family: var(--display); font-size: 22px; line-height: 1.15; color: var(--ink); max-width: 18ch; }
.gh-step-x { font-family: var(--text); font-size: 15px; line-height: 1.5; color: oklch(88% 0.02 84); }
.gh-step-go { margin-top: auto; padding-top: 8px; font-family: var(--text); font-size: 14.5px; font-weight: 800; color: oklch(92% 0.06 86); }
.gh .gh-step:hover .gh-step-go { text-decoration: underline; text-underline-offset: 4px; }

/* ---- shelves ------------------------------------------------------------- */
.gh-shelf { margin: 0 0 clamp(48px, 6vw, 72px); scroll-margin-top: 70px; }
.gh-shelf-head { display: flex; align-items: flex-start; gap: 16px; margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--hair); }
.gh-shelf-ic {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: oklch(84% 0.13 86 / 0.12); border: 1px solid oklch(84% 0.13 86 / 0.3);
}
.gh-shelf-ic svg, .gh-thumb.is-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gh-shelf-head h2 { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; color: var(--ink); margin: 2px 0 4px; }
.gh-shelf-head p { font-family: var(--text); font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); margin: 0; }
.gh-count {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  padding: 2px 10px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--hair);
  font-family: var(--text); font-size: 13px; font-weight: 700; color: var(--muted);
}

.gh-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; }
.gh .gh-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 12px; margin: 0 -12px; border-radius: 14px;
  color: var(--ink); transition: background-color 0.2s;
}
.gh .gh-item:hover { background: var(--paper-2); }
.gh-thumb {
  flex: 0 0 auto; width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
  background: var(--paper-2);
}
.gh-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s var(--gh-ease); }
.gh .gh-item:hover .gh-thumb img { transform: scale(1.06); }
.gh-thumb.is-ic { display: grid; place-items: center; border: 1px solid var(--hair); }
.gh-item-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gh-item-k { font-family: var(--text); font-size: 12.5px; font-weight: 700; color: var(--muted); }
.gh-new { font-style: normal; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: var(--paper); font-size: 11px; font-weight: 800; }
.gh-item b { font-family: var(--display); font-size: 17.5px; font-weight: 700; line-height: 1.22; color: var(--ink); }
.gh .gh-item:hover b { color: var(--gold); }
.gh-item-x {
  font-family: var(--text); font-size: 14.5px; line-height: 1.5; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---- families ------------------------------------------------------------ */
.gh-scary { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.gh .gh-scary a {
  display: grid; grid-template-columns: minmax(0, 1fr) 74px 20px; grid-template-rows: auto auto; gap: 2px 10px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--hair);
  color: var(--ink); transition: border-color 0.2s, transform 0.25s var(--gh-ease);
}
.gh .gh-scary a:hover { border-color: oklch(84% 0.13 86 / 0.55); transform: translateY(-2px); }
.gh-scary b { font-family: var(--display); font-size: 16px; font-weight: 700; line-height: 1.2; }
.gh-fear { position: relative; height: 8px; border-radius: 4px; background: oklch(37% 0.05 278); overflow: hidden; }
.gh-fear i { position: absolute; inset: 0 auto 0 0; width: var(--f); border-radius: 4px; background: linear-gradient(90deg, var(--gh-ever), oklch(80% 0.14 72), var(--gh-rose)); background-size: 74px 100%; }
.gh-fear-n { font-family: var(--display); font-size: 16px; font-weight: 800; color: var(--gold); text-align: right; }
.gh-scary-park { grid-column: 1 / -1; font-family: var(--text); font-size: 12.5px; color: var(--muted); }

.gh-dvc-g { font-family: var(--text); font-size: 13.5px; font-weight: 800; color: var(--gh-ever); margin: 16px 0 8px; }
.gh-dvc-g:first-of-type { margin-top: 0; }
.gh-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gh .gh-pills a {
  display: inline-block; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--hair); background: var(--paper-2);
  font-family: var(--text); font-size: 14.5px; font-weight: 600; color: var(--ink);
  transition: border-color 0.2s, color 0.2s;
}
.gh .gh-pills a:hover { border-color: var(--gold); color: var(--gold); }

.gh-more { margin: 16px 0 0; font-family: var(--text); font-size: 15px; font-weight: 700; }
.gh-more a:hover { text-decoration: underline; text-underline-offset: 4px; }
.gh.is-filtering .gh-more { display: none; }
.gh-family.explains-band { background: none; padding: 0; border: 0; }

/* ---- filtering states ---------------------------------------------------- */
.gh [data-gh-item][hidden], .gh [data-gh-group][hidden], .gh .gh-dvc-g[hidden] { display: none; }
.gh-empty { text-align: center; padding: 40px 16px; border: 1px dashed var(--hair); border-radius: 18px; margin: 0 0 64px; }
.gh-empty h2 { font-family: var(--display); font-size: 26px; color: var(--ink); margin: 0; }
.gh-empty p { font-family: var(--text); font-size: 16px; color: var(--ink-soft); margin: 8px 0 0; }
.gh-empty-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px !important; }
.gh .gh-empty-links a { padding: 8px 14px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--hair); font-weight: 600; }

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .gh-steps { grid-template-columns: 1fr; }
  .gh-step b { max-width: none; }
}
@media (max-width: 720px) {
  .gh-list { grid-template-columns: 1fr; }
  .gh-find-box { height: 56px; }
  .gh-find-box kbd { display: none; }
  .gh-find-box input { font-size: 16px; }
  .gh-thumb { width: 60px; height: 60px; }
  .gh-shelf-ic { width: 40px; height: 40px; border-radius: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .gh *, .gh *::before, .gh *::after { animation: none !important; transition: none !important; }
}
