/* =========================================================================
   Ride Ready Guide — design system
   One stylesheet, no framework, no build step. Ordered: tokens, reset,
   primitives, layout, components, pages, utilities, motion.
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */

:root {
  color-scheme: dark;
  --paper:       #0b0f0e;
  --surface:     #121817;
  --surface-2:   #18201e;
  --surface-3:   #1f2926;
  --ink:         #e9efec;
  --ink-2:       #c3cfca;
  --muted:       #93a49e;
  --line:        #26312e;
  --line-strong: #35433f;

  --brand:       #4fbf95;
  --brand-2:     #3fae87;
  --brand-3:     #6ed6b0;
  --brand-soft:  #12241d;

  --accent:      #e9b264;
  --accent-2:    #f0c384;
  --accent-soft: #2a2113;

  --danger:      #f08a7c;
  --danger-soft: #2b1714;
  --warn:        #e3b458;
  --warn-soft:   #2a2213;
  --good:        #63c99b;
  --good-soft:   #12241d;

  --focus:       #6ed6b0;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-lg: 12px;
  --radius: 10px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow:    0 2px 4px rgba(0, 0, 0, .3), 0 10px 30px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, .35), 0 30px 70px -28px rgba(0, 0, 0, .8);
}

/* ---------- 2. Reset ----------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

/* Components below set explicit display values, which would otherwise beat the UA rule for
   [hidden]. Filtering in the food tracker and the map controls both depend on this. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -.018em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
h4 { font-size: var(--step-0); }
p  { text-wrap: pretty; }

a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: .17em; }
a:hover { color: var(--brand-3); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

code { font-family: var(--font-mono); font-size: .92em; background: var(--surface-2); padding: .1em .35em; border-radius: var(--radius-xs); }

main { flex: 1 0 auto; }
main:focus { outline: none; }

::selection { background: var(--brand-soft); color: var(--ink); }

/* ---------- 3. Layout primitives ---------------------------------------- */

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }
.shell--narrow { max-width: var(--shell-narrow); }
.shell--wide { max-width: var(--shell-wide); }

.band { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.band--tint { background: var(--surface-2); }
.band--brand { background: var(--brand); color: #fff; }
.band--tight { padding-block: clamp(1.75rem, 3vw, 2.75rem); }
.band__head { max-width: 62ch; margin-bottom: var(--space-6); }
.band__head h2 { margin-bottom: var(--space-3); }
.band__intro { color: var(--muted); font-size: var(--step-1); }

.kicker {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100%;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem;
  border-radius: var(--radius-sm); z-index: 200; font-weight: 600;
  transition: top .15s ease;
}
.skip-link:focus { top: var(--space-4); color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- 4. Header / nav --------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-4);
  min-height: 4.25rem;
}

.brandmark { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); flex: 0 0 auto; }
.brandmark__mark {
  display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--brand-2), var(--brand));
  color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .04em;
}
:root[data-theme="dark"] .brandmark__mark,
:root:not([data-theme="light"]) .brandmark__mark { color: #06120e; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .brandmark__mark { color: #fff; } }
.brandmark__text { display: flex; flex-direction: column; line-height: 1.15; }
.brandmark__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: -.02em; }
.brandmark__tag { font-size: .68rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: var(--space-1); list-style: none; padding: 0; }
.primary-nav a {
  display: block; padding: .5rem .75rem; border-radius: var(--radius-sm);
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem;
}
.primary-nav a:hover { background: var(--surface-2); color: var(--ink); }
/* Amber underline wipes in from the left — the masthead's one flourish (from the design comp). */
.primary-nav a { position: relative; }
.primary-nav a::after {
  content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .3rem; height: 1.5px;
  background: var(--accent-2); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.primary-nav a:hover::after, .primary-nav a[aria-current]::after { transform: scaleX(1); }
.primary-nav a[aria-current] { color: var(--brand-2); background: var(--brand-soft); }

.header-actions { display: flex; gap: .25rem; flex: 0 0 auto; }
.icon-button {
  display: grid; place-items: center; width: 2.4rem; height: 2.4rem;
  border-radius: var(--radius-sm); color: var(--ink-2);
}
.icon-button:hover { background: var(--surface-2); color: var(--ink); }
.icon-button svg { width: 1.15rem; height: 1.15rem; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
  :root[data-theme="light"] .icon-sun { display: block; }
  :root[data-theme="light"] .icon-moon { display: none; }
}

.nav-toggle { display: none; width: 2.4rem; height: 2.4rem; border-radius: var(--radius-sm); margin-left: auto; }
.nav-toggle__bars { display: grid; gap: 4px; width: 1.1rem; }
.nav-toggle__bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; place-items: center; }
  .primary-nav {
    position: absolute; inset: 100% 0 auto; margin: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: var(--space-3) var(--gutter) var(--space-5);
    box-shadow: var(--shadow); display: none;
  }
  .site-header[data-open] .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav a { padding: .75rem .5rem; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .header-actions { order: 3; }
  .brandmark__tag { display: none; }
}

/* ---------- 5. Breadcrumbs ---------------------------------------------- */

.breadcrumbs { border-bottom: 1px solid var(--line); background: var(--surface); }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  list-style: none; padding: .7rem 0; margin: 0;
  font-size: var(--step--1); color: var(--muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand-2); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink-2); font-weight: 600; }

/* ---------- 6. Hero ------------------------------------------------------ */

.hero {
  padding-block: clamp(2.25rem, 5vw, 4rem);
  background:
    radial-gradient(1100px 380px at 12% -10%, var(--brand-soft), transparent 62%),
    radial-gradient(900px 340px at 88% 0%, var(--accent-soft), transparent 58%);
  border-bottom: 1px solid var(--line);
}
.hero__inner { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 960px) {
  .hero__inner:has(.hero__aside) { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; }
}
.hero__eyebrow {
  font-size: var(--step--1); text-transform: uppercase; letter-spacing: .12em;
  font-weight: 700; color: var(--accent); margin-bottom: var(--space-3);
}
.hero__title { max-width: 20ch; }
.hero__lede { font-size: var(--step-2); color: var(--ink-2); max-width: 58ch; margin-top: var(--space-4); line-height: 1.45; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  list-style: none; padding: 0; margin-top: var(--space-5);
  border-top: 1px solid var(--line); padding-top: var(--space-4);
}
.hero__meta li { display: flex; flex-direction: column; gap: .1rem; }
.hero__meta-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 600; }
.hero__meta-value { font-weight: 700; font-family: var(--font-display); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.hero--compact { padding-block: clamp(1.75rem, 3.5vw, 2.75rem); }
.hero--plain { background: var(--surface); }

/* ---------- 6b. Photography ---------------------------------------------- */

/*
 * A photo reserves its space before it has any bytes.
 *
 * aspect-ratio plus the LQIP means the layout is final at first paint and the image fades into a
 * blur rather than into a hole. On a slow connection — the one this site claims to work on — that
 * is the whole difference between "loading" and "broken".
 */
.photo {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: var(--photo-ratio, 16 / 9);
  background-color: var(--surface-3);
  background-image: var(--lqip, none);
  background-size: cover; background-position: center;
}
.photo img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  animation: photo-in .5s ease both;
}
@media (prefers-reduced-motion: reduce) { .photo img { animation: none; } }
@keyframes photo-in { from { opacity: 0; } to { opacity: 1; } }

/*
 * The photographic hero.
 *
 * Two scrim layers, not one. The linear gradient carries the contrast where the text actually sits;
 * the radial vignette stops the corners going flat and keeps the eye centred. Measured against the
 * brightest hero candidate (a firework burst, roughly #f6e6b8): the .78 floor on the linear layer
 * puts the text background at ~#2a2a24, giving white text about 12.4:1 — comfortably past AA, with
 * headroom for a brighter photograph than the ones currently briefed.
 */
.hero--photo { position: relative; isolation: isolate; border-bottom: 0; background: var(--ink); }
.hero--photo .hero__inner { position: relative; z-index: 2; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media .photo, .hero__media .photo img { width: 100%; height: 100%; aspect-ratio: auto; }
.hero__media .hero__poster, .hero__media .hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero__media .hero__poster { z-index: 0; }
.hero__media .hero__video { z-index: 1; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(6, 10, 9, .30) 0%, rgba(6, 10, 9, .55) 45%, rgba(6, 10, 9, .78) 100%),
    radial-gradient(120% 90% at 50% 40%, transparent 35%, rgba(6, 10, 9, .45) 100%);
}
@media (min-width: 900px) {
  .hero--photo { min-height: min(78vh, 720px); display: grid; align-items: end; }
  .hero--photo .hero__inner { padding-block: clamp(3rem, 6vw, 5rem); }
  .hero__scrim {
    background:
      linear-gradient(90deg, rgba(6, 10, 9, .82) 0%, rgba(6, 10, 9, .62) 45%, rgba(6, 10, 9, .25) 100%),
      linear-gradient(180deg, rgba(6, 10, 9, .25) 0%, transparent 40%, rgba(6, 10, 9, .55) 100%);
  }
}

/* Over photography the type is light regardless of theme — the scrim is always dark. */
.hero--photo .hero__title, .hero--photo .hero__meta-value { color: #fff; }
.hero--photo .hero__lede { color: rgba(255, 255, 255, .88); }
.hero--photo .hero__eyebrow { color: var(--accent-2); }
.hero--photo .hero__meta { border-top-color: rgba(255, 255, 255, .22); }
.hero--photo .hero__meta-label { color: rgba(255, 255, 255, .72); }
.hero--photo .btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); }
.hero--photo .btn--ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }

/* A slow drift. Long enough that it reads as depth rather than as movement. */
@media (prefers-reduced-motion: no-preference) {
  .hero--photo .hero__photo img { animation: photo-in .5s ease both, hero-drift 24s ease-in-out infinite alternate; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--video .hero__video { display: none; }
}
@keyframes hero-drift { from { transform: scale(1.02); } to { transform: scale(1.09); } }

/* ---------- 6c. Trust strip ---------------------------------------------- */

.trust-strip__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: var(--space-4) var(--space-6);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.trust-strip__item { display: flex; gap: var(--space-3); align-items: flex-start; }
.trust-strip__icon { flex: none; color: var(--brand-3); margin-top: .1rem; }
.trust-strip__icon svg { display: block; width: 20px; height: 20px; }
.trust-strip__text { font-size: var(--step--1); color: var(--ink-2); line-height: 1.5; }
.trust-strip__text strong { color: var(--ink); font-family: var(--font-display); display: block; }

/* ---------- 6d. Masthead scroll state ------------------------------------ */

.site-header { transition: box-shadow .2s ease, background-color .2s ease; }
.site-header[data-scrolled] {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.6) blur(10px);
  box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
@supports not (backdrop-filter: blur(1px)) {
  .site-header[data-scrolled] { background: var(--paper); }
}

/* ---------- 7. Buttons --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .68rem 1.15rem; border-radius: 999px;
  font-weight: 650; font-size: .95rem; text-decoration: none;
  border: 1.5px solid transparent; transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-2); color: #fff; }
:root[data-theme="dark"] .btn--primary { color: #061310; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn--primary { color: #061310; } }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: var(--surface); }
.btn--ghost:hover { border-color: var(--brand-2); color: var(--brand-2); }
.btn--small { padding: .4rem .8rem; font-size: .85rem; }

/* ---------- 8. Prose ----------------------------------------------------- */

.prose { max-width: 68ch; }
.prose p + p { margin-top: var(--space-4); }
.prose p { color: var(--ink-2); }
.prose--lede p { font-size: var(--step-1); color: var(--ink-2); }
.prose--wide { max-width: none; }

.doc-section { max-width: 72ch; margin-block: clamp(2rem, 4vw, 3rem); scroll-margin-top: 6rem; }
.doc-section > h2 { margin-bottom: var(--space-4); padding-top: var(--space-2); }
.doc-section p + p, .doc-section > * + * { margin-top: var(--space-4); }
.doc-section p { color: var(--ink-2); }

.rich-list { padding-left: 1.15rem; display: grid; gap: .55rem; color: var(--ink-2); }
.rich-list li::marker { color: var(--brand-2); font-weight: 700; }
.rich-list--number { list-style: decimal; }

/* ---------- 9. Cards ----------------------------------------------------- */

.card-grid { display: grid; gap: var(--space-4); }
@media (min-width: 620px) { .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 940px) {
  .card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card__eyebrow { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.card__title { font-size: var(--step-1); letter-spacing: -.015em; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card { position: relative; }
.card__title a:hover { color: var(--brand-2); }
.card__summary { color: var(--muted); font-size: .95rem; }
.card__badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.card__meta {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4);
  list-style: none; padding: 0; margin-top: auto;
  border-top: 1px solid var(--line); padding-top: var(--space-3);
  font-size: .82rem;
}
.card__meta li { display: flex; flex-direction: column; }
.card__meta span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.card--feature { background: linear-gradient(160deg, var(--brand-soft), var(--surface) 65%); }

/*
 * Card imagery. A card with no image must look equally deliberate — most of them have none, and a
 * grid where some cards are photographic and some are not should read as a designed mix rather than
 * as missing assets. So the media block is a full-bleed top edge and everything else is unchanged.
 */
.card--media { padding-top: 0; overflow: hidden; }
.card__media { margin: 0 calc(var(--space-5) * -1) var(--space-1); }
.card__media .photo { aspect-ratio: 16 / 9; border-radius: 0; }
.card--media:hover .card__photo img { transform: scale(1.03); }
@media (prefers-reduced-motion: no-preference) {
  .card__photo img { transition: transform .4s cubic-bezier(.2, .6, .2, 1); }
}

.link-grid { display: grid; gap: .75rem; }
@media (min-width: 620px) { .link-grid--2, .link-grid--3, .link-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 940px) {
  .link-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .link-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.link-tile {
  display: grid; gap: .2rem; padding: var(--space-4) var(--space-5) var(--space-4) var(--space-4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink); position: relative;
  transition: border-color .15s ease, transform .15s ease;
}
.link-tile:hover { border-color: var(--brand-2); transform: translateX(2px); color: var(--ink); }
.link-tile__title { font-weight: 650; font-family: var(--font-display); letter-spacing: -.01em; }
.link-tile__summary { color: var(--muted); font-size: .87rem; }
.link-tile__chev { position: absolute; right: .9rem; top: 1.15rem; width: 1rem; height: 1rem; color: var(--line-strong); }
.link-tile:hover .link-tile__chev { color: var(--brand-2); }

/* ---------- 10. Pills, badges, meters ----------------------------------- */

.pill {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .15rem .55rem; border-radius: 999px;
  font-size: .74rem; font-weight: 650; letter-spacing: .01em;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.pill--good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill--warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill--closed { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.pill--height { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.pill--ll { background: var(--brand-soft); color: var(--brand-2); border-color: transparent; }
.pill--must { background: var(--accent); color: #fff; border-color: transparent; }
:root[data-theme="dark"] .pill--must { color: #241a08; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill--must { color: #241a08; } }
.pill--diet { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill--price { font-family: var(--font-mono); letter-spacing: -.04em; }

.hbadge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 3.4rem; padding: .25rem .5rem; border-radius: var(--radius-sm);
  line-height: 1.1; font-size: .68rem; text-align: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--muted);
}
.hbadge strong { font-size: .95rem; font-family: var(--font-display); color: var(--ink); }
.hbadge--any { background: var(--good-soft); border-color: transparent; color: var(--good); font-weight: 650; padding: .45rem .7rem; }
.hbadge--short { background: var(--good-soft); border-color: transparent; }
.hbadge--short strong { color: var(--good); }
.hbadge--mid { background: var(--warn-soft); border-color: transparent; }
.hbadge--mid strong { color: var(--warn); }
.hbadge--tall { background: var(--danger-soft); border-color: transparent; }
.hbadge--tall strong { color: var(--danger); }

.meter { display: grid; gap: .3rem; }
.meter__head { display: flex; justify-content: space-between; align-items: baseline; font-size: .85rem; font-weight: 600; }
.meter__value { font-family: var(--font-display); color: var(--ink); }
.meter__value i { font-style: normal; color: var(--muted); font-weight: 400; font-size: .8em; }
.meter__track { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-3), var(--brand-2)); }
.meter--hot .meter__fill { background: linear-gradient(90deg, var(--accent-2), var(--danger)); }
.meter-grid { display: grid; gap: var(--space-3); }
@media (min-width: 620px) { .meter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3) var(--space-5); } }

.stat-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--space-4); list-style: none; padding: 0;
}
.stat-row li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-4); display: grid; gap: .15rem;
}
.stat-row__value { font-family: var(--font-display); font-size: var(--step-3); font-weight: 800; letter-spacing: -.03em; color: var(--brand-2); }
.stat-row__label { font-size: .8rem; color: var(--muted); line-height: 1.35; }

/* ---------- 11. Facts panel --------------------------------------------- */

.facts {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-5);
}
.facts__title { font-size: var(--step-0); margin-bottom: var(--space-3); }
.facts dl { display: grid; gap: 0; margin: 0; }
.facts__row {
  display: grid; grid-template-columns: minmax(7.5rem, 38%) 1fr;
  gap: var(--space-3); padding: .6rem 0; border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.facts__row:last-child { border-bottom: 0; padding-bottom: 0; }
.facts__row:first-of-type { padding-top: 0; }
.facts dt { color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 0; font-weight: 600; }
.facts__hint { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: .15rem; }

/* ---------- 12. Callouts, tips, key points ------------------------------ */

.callout {
  display: flex; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface-2); margin-block: var(--space-5);
}
.callout__icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; margin-top: .2rem; color: var(--muted); }
.callout__title { font-weight: 700; font-family: var(--font-display); margin-bottom: .25rem; }
.callout__body > p { color: var(--ink-2); font-size: .95rem; }
.callout--tip { background: var(--brand-soft); border-color: transparent; }
.callout--tip .callout__icon { color: var(--brand-2); }
.callout--warning { background: var(--warn-soft); border-color: transparent; }
.callout--warning .callout__icon { color: var(--warn); }
.callout--money { background: var(--accent-soft); border-color: transparent; }
.callout--money .callout__icon { color: var(--accent); }
.callout--legal { background: var(--surface-2); }

.tips {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand-2);
  border-radius: var(--radius); padding: var(--space-5); margin-block: var(--space-5);
}
.tips__title { font-size: var(--step-0); margin-bottom: var(--space-3); }
.tips ul { list-style: none; padding: 0; display: grid; gap: .7rem; }
.tips li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .6rem; color: var(--ink-2); font-size: .95rem; }
.tips li::before {
  content: ""; width: .45rem; height: .45rem; margin-top: .55rem; margin-left: .3rem;
  border-radius: 50%; background: var(--accent);
}

.keypoints {
  background: linear-gradient(155deg, var(--brand-soft), var(--surface) 70%);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6); margin-block: var(--space-6);
}
.keypoints__title { font-size: var(--step-1); margin-bottom: var(--space-3); }
.keypoints ul { list-style: none; padding: 0; display: grid; gap: .65rem; }
.keypoints li { display: grid; grid-template-columns: 1.2rem 1fr; gap: .6rem; color: var(--ink-2); }
.keypoints li::before {
  content: ""; width: .8rem; height: .8rem; margin-top: .45rem;
  border-radius: 3px; background: var(--brand-2); opacity: .85;
}

.verified {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; color: var(--muted); margin-top: var(--space-4);
}
.verified svg { width: .85rem; height: .85rem; color: var(--good); stroke-width: 2.2; }

/* ---------- 13. Tables --------------------------------------------------- */

/*
 * A table that is cut off must look cut off.
 *
 * These tables scroll horizontally on a phone, and a scrolled-out column is invisible — the table
 * simply looks complete and narrower than it is. The classic four-layer background trick shows a
 * shadow at whichever edge has more content, using background-attachment: local against scroll, and
 * costs no JavaScript and no scroll listener.
 */
.table-wrap {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    linear-gradient(to right, var(--surface) 30%, transparent),
    linear-gradient(to left,  var(--surface) 30%, transparent),
    linear-gradient(to right, rgba(20, 25, 26, .13), transparent 18px),
    linear-gradient(to left,  rgba(20, 25, 26, .13), transparent 18px);
  background-color: var(--surface);
  background-repeat: no-repeat;
  background-size: 42px 100%, 42px 100%, 16px 100%, 16px 100%;
  background-position: 0 0, 100% 0, 0 0, 100% 0;
  background-attachment: local, local, scroll, scroll;
  margin-block: var(--space-5);
}
/* The shadow layers need more weight on a dark surface to register at all. */
:root[data-theme="dark"] .table-wrap {
  background-image:
    linear-gradient(to right, var(--surface) 30%, transparent),
    linear-gradient(to left,  var(--surface) 30%, transparent),
    linear-gradient(to right, rgba(0, 0, 0, .55), transparent 18px),
    linear-gradient(to left,  rgba(0, 0, 0, .55), transparent 18px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .table-wrap {
    background-image:
      linear-gradient(to right, var(--surface) 30%, transparent),
      linear-gradient(to left,  var(--surface) 30%, transparent),
      linear-gradient(to right, rgba(0, 0, 0, .55), transparent 18px),
      linear-gradient(to left,  rgba(0, 0, 0, .55), transparent 18px);
  }
}

/*
 * Tabular numerals across the whole table rather than only in .ta-num columns.
 *
 * Every figure on this site sits in a column next to another figure — heights, prices, wait times,
 * crowd grades. Proportional digits make those columns ragged and genuinely harder to compare,
 * which is the one thing a table exists to make easy.
 */
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; }
.data-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.data-table caption {
  text-align: left; padding: var(--space-4) var(--space-5) 0;
  color: var(--muted); font-size: .85rem;
}
.data-table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--surface-2); text-align: left;
  padding: .7rem var(--space-4); font-size: .74rem;
  text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table[data-sortable] thead th { cursor: pointer; user-select: none; }
.data-table[data-sortable] thead th::after { content: "↕"; margin-left: .4rem; opacity: .35; font-size: .9em; }
.data-table[data-sortable] thead th[aria-sort="ascending"]::after { content: "↑"; opacity: 1; color: var(--brand-2); }
.data-table[data-sortable] thead th[aria-sort="descending"]::after { content: "↓"; opacity: 1; color: var(--brand-2); }
.data-table tbody th, .data-table td { padding: .7rem var(--space-4); border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tbody th { text-align: left; font-weight: 650; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table--dense tbody th, .data-table--dense td { padding: .45rem var(--space-3); font-size: .88rem; }
.data-table a { text-decoration: none; font-weight: 600; }
.data-table a:hover { text-decoration: underline; }
.ta-center { text-align: center; }
.ta-right { text-align: right; }
.ta-num { text-align: right; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .data-table--stack thead { display: none; }
  .data-table--stack tbody tr { display: block; border-bottom: 1px solid var(--line-strong); padding: var(--space-3) 0; }
  .data-table--stack tbody th { display: block; border: 0; font-size: var(--step-0); padding-bottom: .25rem; }
  .data-table--stack tbody td { display: flex; justify-content: space-between; gap: var(--space-4); border: 0; padding: .2rem var(--space-4); }
  .data-table--stack tbody td::before {
    content: attr(data-label); color: var(--muted); font-size: .78rem;
    text-transform: uppercase; letter-spacing: .05em; font-weight: 650; flex: 0 0 auto;
  }
}

/* ---------- 14. FAQ ------------------------------------------------------ */

.faq__title { margin-bottom: var(--space-5); }
.faq { display: grid; gap: .6rem; }
.faq__item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.faq__item summary {
  cursor: pointer; list-style: none; padding: var(--space-4) var(--space-5);
  font-weight: 650; font-family: var(--font-display); display: flex;
  justify-content: space-between; align-items: center; gap: var(--space-4);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: 0 0 auto; width: .55rem; height: .55rem;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq__item[open] summary { border-bottom: 1px solid var(--line); }
.faq__answer { padding: var(--space-4) var(--space-5); color: var(--ink-2); font-size: .95rem; }
.faq__answer p + p { margin-top: var(--space-3); }

/* ---------- 15. Table of contents --------------------------------------- */

.toc {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-4) var(--space-5);
  margin-block: var(--space-5);
}
.toc__title { font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 700; margin-bottom: var(--space-3); }
.toc ol { list-style: none; padding: 0; display: grid; gap: .3rem; counter-reset: toc; }
.toc li { counter-increment: toc; display: grid; grid-template-columns: 1.4rem 1fr; gap: .3rem; }
.toc li::before { content: counter(toc, decimal-leading-zero); color: var(--line-strong); font-size: .78rem; font-family: var(--font-mono); padding-top: .12rem; }
.toc a { text-decoration: none; color: var(--ink-2); font-size: .92rem; }
.toc a:hover { color: var(--brand-2); text-decoration: underline; }

@media (min-width: 1080px) {
  .doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 16rem; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
  .doc-layout__aside { position: sticky; top: 6rem; }
  .doc-layout__aside .toc { margin-top: 0; }
}

/* ---------- 16. Inline attractions -------------------------------------- */

.inline-attraction {
  padding: var(--space-5) 0; border-bottom: 1px solid var(--line);
  scroll-margin-top: 6rem;
}
.inline-attraction:last-child { border-bottom: 0; }
.inline-attraction__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); }
.inline-attraction__head h3 { font-size: var(--step-1); }
.inline-attraction__head a { color: inherit; text-decoration: none; }
.inline-attraction__head a:hover { color: var(--brand-2); }
.inline-attraction__meta { font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.inline-attraction__summary { margin-top: var(--space-3); color: var(--ink-2); }
.inline-attraction__body { margin-top: var(--space-3); color: var(--muted); font-size: .95rem; max-width: 70ch; }
.inline-attraction__tips { margin-top: var(--space-3); }
.inline-attraction__tips summary { cursor: pointer; font-size: .88rem; color: var(--brand-2); font-weight: 600; }
.inline-attraction__tips .rich-list { margin-top: var(--space-3); font-size: .92rem; }
.inline-attraction__more { margin-top: var(--space-3); font-size: .9rem; font-weight: 600; }
.is-closed { color: var(--danger); }

/* ---------- 17. Food cards + tracker ------------------------------------ */

.food-grid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .food-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.food-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-4) var(--space-5) var(--space-4);
  display: flex; flex-direction: column; gap: .6rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.food-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.food-card[data-state="tried"] { border-color: var(--good); background: linear-gradient(180deg, var(--good-soft), var(--surface) 30%); }
.food-card[data-state="want"] { border-color: var(--accent); }
.food-card[data-state="skip"] { opacity: .55; }
.food-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); }
.food-card__name { font-size: var(--step-0); letter-spacing: -.01em; }
.food-card__where { font-size: .82rem; color: var(--muted); margin-top: .1rem; }
.food-card__where a { color: var(--muted); }
.food-card__park { display: block; font-size: .74rem; opacity: .8; }
.food-card__price { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); color: var(--brand-2); letter-spacing: -.03em; }
.food-card__desc { font-size: .9rem; color: var(--ink-2); }
.food-card__verdict { font-size: .87rem; color: var(--muted); border-left: 2px solid var(--accent); padding-left: .7rem; }
.food-card__tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: auto; padding-top: .3rem; }

.tracker { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; margin-top: .4rem; }
.tracker button {
  display: inline-flex; align-items: center; justify-content: center; gap: .3rem;
  padding: .4rem .3rem; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: .78rem; font-weight: 650; color: var(--muted);
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.tracker button svg { width: .85rem; height: .85rem; stroke-width: 2; }
.tracker button:hover { border-color: var(--line-strong); color: var(--ink); }
.tracker button[aria-pressed="true"][data-track="want"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.tracker button[aria-pressed="true"][data-track="tried"] { background: var(--good-soft); color: var(--good); border-color: var(--good); }
.tracker button[aria-pressed="true"][data-track="skip"] { background: var(--surface-3); color: var(--ink-2); border-color: var(--line-strong); }

/* Tracker toolbar */
.tracker-bar {
  position: sticky; top: 4.25rem; z-index: 20;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding-block: var(--space-3);
}
.tracker-bar__inner { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; }
.tracker-progress { display: flex; align-items: center; gap: var(--space-3); flex: 1 1 16rem; min-width: 0; }
.tracker-progress__ring { flex: 0 0 auto; width: 2.75rem; height: 2.75rem; }
.tracker-progress__ring circle { fill: none; stroke-width: 4; }
.tracker-progress__bg { stroke: var(--surface-3); }
.tracker-progress__fg { stroke: var(--brand-2); stroke-linecap: round; transition: stroke-dasharray .4s ease; }
.tracker-progress__text { display: grid; line-height: 1.2; }
.tracker-progress__count { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); letter-spacing: -.02em; }
.tracker-progress__label { font-size: .78rem; color: var(--muted); }
.tracker-actions { display: flex; flex-wrap: wrap; gap: .4rem; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-block: var(--space-4); }
.filter-bar label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-right: .2rem; }
.chip {
  padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); font-size: .84rem; font-weight: 600; color: var(--ink-2);
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
:root[data-theme="dark"] .chip[aria-pressed="true"] { color: #061310; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .chip[aria-pressed="true"] { color: #061310; } }
.field-inline {
  display: flex; align-items: center; gap: .5rem; padding: .3rem .3rem .3rem .8rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.field-inline input, .field-inline select { border: 0; background: none; outline: none; font-size: .88rem; padding: .25rem; }
.field-inline input:focus-visible, .field-inline select:focus-visible { outline: 2px solid var(--focus); border-radius: var(--radius-xs); }

.empty-state { text-align: center; padding: var(--space-8) var(--space-4); color: var(--muted); }
.empty-state h3 { color: var(--ink); margin-bottom: var(--space-2); }

/* ---------- 18. Height checker ------------------------------------------ */

.hchecker { display: grid; gap: var(--space-5); }
.hchecker__control {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
}
.hchecker__readout { display: flex; align-items: baseline; gap: .5rem; justify-content: center; margin-bottom: var(--space-4); }
.hchecker__value { font-family: var(--font-display); font-size: var(--step-5); font-weight: 800; letter-spacing: -.04em; color: var(--brand-2); font-variant-numeric: tabular-nums; }
.hchecker__unit { font-size: var(--step-1); color: var(--muted); font-weight: 600; }
.hchecker__cm { font-size: var(--step-0); color: var(--muted); }
.hchecker input[type="range"] { width: 100%; accent-color: var(--brand-2); height: 2rem; }
.hchecker__scale { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.hchecker__summary {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: var(--space-3); margin-top: var(--space-5);
}
.hchecker__stat { text-align: center; padding: var(--space-3); border-radius: var(--radius); background: var(--surface-2); }
.hchecker__stat b { display: block; font-family: var(--font-display); font-size: var(--step-2); color: var(--brand-2); letter-spacing: -.03em; }
.hchecker__stat span { font-size: .78rem; color: var(--muted); }
.hchecker__park { margin-block: var(--space-5); }
.hchecker__park h3 { display: flex; align-items: baseline; gap: .6rem; margin-bottom: var(--space-3); }
.hchecker__park h3 small { font-weight: 500; color: var(--muted); font-size: .8rem; font-family: var(--font-sans); }

/*
 * The near-miss block.
 *
 * This is the most useful thing the tool says and it was rendered in `.small .muted` — the least
 * prominent styling on the site. "Your child misses this one by an inch" is what decides whether a
 * family waits a season or books now, and it deserves to be the thing the eye lands on after the
 * height itself.
 */
.nearmiss {
  margin-block: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}
.nearmiss__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: .88rem; color: var(--accent); margin: 0 0 .35rem;
}
.nearmiss__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.nearmiss__list li { font-size: .9rem; color: var(--ink-2); display: flex; gap: .5rem; align-items: baseline; }
.nearmiss__gap {
  font-family: var(--font-display); font-weight: 800;
  font-variant-numeric: tabular-nums; color: var(--accent);
  min-width: 2.4rem; flex: none;
}

/* Tick marks on the scale, so the next threshold is visible rather than merely listed. */
.hchecker__scale { position: relative; padding-top: .5rem; }
.hchecker__scale span { position: relative; }
.hchecker__scale span::before {
  content: ""; position: absolute; top: -.5rem; left: 50%;
  width: 1px; height: .3rem; background: var(--line-strong);
}
.ride-chiplist { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; }
.ride-chiplist li {
  font-size: .82rem; padding: .25rem .6rem; border-radius: var(--radius-sm);
  background: var(--good-soft); color: var(--good); font-weight: 600;
}
.ride-chiplist li[data-blocked] { background: var(--danger-soft); color: var(--danger); }
.ride-chiplist li[data-blocked]::after { content: " · " attr(data-need) "\""; opacity: .8; font-weight: 500; }

/* ---------- 19. Maps ----------------------------------------------------- */

/* The map is a printed artefact embedded in the page, so it deliberately keeps its paper tone in
   both themes rather than inverting. The frame around it adapts instead. */
.parkmap-wrap {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: var(--space-3); position: relative;
}
.parkmap { width: 100%; height: auto; display: block; touch-action: pan-y; border-radius: var(--radius-sm); }
.parkmap text { stroke: none; }

.parkmap--vintage .land-shape { stroke: #f2e6cd; stroke-width: 2.6; opacity: .9; transition: filter .15s ease; }
.parkmap--vintage .ground { fill: #e9dcc0; stroke: #a08a63; stroke-width: 1.6; }
.parkmap--vintage .water { fill: #9dbdc9; opacity: .72; }
.parkmap--vintage .path-line {
  stroke: #a08a63; stroke-width: 4; fill: none; opacity: .6;
  stroke-linecap: round; stroke-dasharray: 1 7;
}

.parkmap--vintage .vmap-title {
  font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  font-weight: 700; font-size: 30px; fill: #7c2d16;
  text-anchor: middle; letter-spacing: .04em;
}
.parkmap--vintage .vmap-compass-letter {
  font-family: Georgia, serif; font-weight: 700; font-size: 13px; fill: #3d2f1c; text-anchor: middle;
}
.parkmap--vintage .vmap-note-text {
  font-family: Georgia, serif; font-style: italic; font-size: 12px; fill: #6b5636; text-anchor: middle;
}
.parkmap--vintage .land-label {
  font-family: Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  font-weight: 700; font-size: 20px; fill: #4a3218; text-anchor: middle;
  letter-spacing: .08em; font-variant: small-caps;
  paint-order: stroke; stroke: #f2e6cd; stroke-width: 6px;
}
.parkmap--vintage .marker text {
  font-family: Georgia, serif; font-weight: 600; font-size: 11px; fill: #2f2413; text-anchor: middle;
  paint-order: stroke; stroke: #f2e6cd; stroke-width: 4px;
}
.parkmap--vintage .marker circle { fill: #f2e6cd; stroke: #3d2f1c; stroke-width: 1.8; }
.parkmap--vintage .marker--headliner circle { fill: #b5722a; }
.parkmap--vintage .marker--dining circle { fill: #4f7350; }
.parkmap--vintage .marker--entrance circle { fill: #7c2d16; }

.parkmap a { cursor: pointer; }
.parkmap a:hover .marker-hit { opacity: .16; }
.marker-hit { fill: #3d2f1c; opacity: 0; transition: opacity .12s ease; }

.map-legend { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4); font-size: .84rem; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: .4rem; }
/* Swatches are inline SVG rather than CSS backgrounds so they survive printing, where
   background colours are stripped but SVG fill attributes are not. */
.map-legend svg { flex: 0 0 auto; stroke-width: 2; }

.map-attribution { font-size: .78rem; color: var(--muted); margin-top: var(--space-3); }

/* ---------- 20. Affiliate ------------------------------------------------ */

.affiliate {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 68%);
  padding: var(--space-5) var(--space-6); margin-block: var(--space-6);
}
.affiliate__disclosure {
  font-size: .78rem; color: var(--muted); line-height: 1.5;
  padding-bottom: var(--space-3); margin-bottom: var(--space-4);
  border-bottom: 1px dashed var(--line-strong);
}
.affiliate__body h3 { font-size: var(--step-1); margin-bottom: var(--space-2); }
.affiliate__body p { color: var(--ink-2); margin-bottom: var(--space-4); max-width: 58ch; }

/* ---------- 21. Search overlay ------------------------------------------ */

.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  backdrop-filter: blur(4px);
  display: grid; align-items: start; justify-items: center;
  padding: clamp(3rem, 12vh, 8rem) var(--gutter) var(--gutter);
}
.search-overlay[hidden] { display: none; }
.search-panel {
  width: min(42rem, 100%); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  display: flex; flex-direction: column; max-height: min(32rem, 70vh);
}
.search-panel__field { display: flex; align-items: center; gap: .6rem; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.search-panel__field svg { width: 1.1rem; height: 1.1rem; color: var(--muted); flex: 0 0 auto; }
.search-panel__field input { flex: 1; border: 0; outline: none; background: none; font-size: var(--step-1); }
.search-panel__close { font-size: .72rem; padding: .2rem .45rem; border: 1px solid var(--line); border-radius: var(--radius-xs); color: var(--muted); font-family: var(--font-mono); }
.search-panel__results { overflow-y: auto; padding: var(--space-2); }
.search-panel__hint { padding: var(--space-5); color: var(--muted); font-size: .9rem; text-align: center; }
.search-result {
  display: block; padding: .6rem var(--space-4); border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink);
}
.search-result:hover, .search-result[data-active] { background: var(--surface-2); color: var(--ink); }
.search-result strong { display: block; font-weight: 650; font-family: var(--font-display); }
.search-result span { font-size: .8rem; color: var(--muted); }
.search-result mark { background: var(--accent-soft); color: var(--accent); padding: 0 .1em; border-radius: 2px; }

/* ---------- 22. Footer --------------------------------------------------- */

.site-footer {
  background: var(--surface); border-top: 1px solid var(--line);
  padding-block: clamp(2.5rem, 5vw, 4rem) var(--space-6); margin-top: var(--space-8);
}
.site-footer__grid { display: grid; gap: var(--space-6); }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: var(--space-5); } }
.brandmark--footer { margin-bottom: var(--space-3); }
.site-footer__tagline { color: var(--ink-2); font-size: .92rem; max-width: 34ch; }
.site-footer__note { color: var(--muted); font-size: .82rem; margin-top: var(--space-3); max-width: 42ch; line-height: 1.55; }
.site-footer__col h2 { font-size: .76rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: var(--space-3); font-weight: 700; }
.site-footer__col ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
.site-footer__col a { color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.site-footer__col a:hover { color: var(--brand-2); text-decoration: underline; }
.site-footer__legal { margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.disclaimer { font-size: .78rem; color: var(--muted); line-height: 1.6; max-width: 88ch; }
.copyright { font-size: .78rem; color: var(--muted); margin-top: var(--space-3); }
.copyright a { color: var(--muted); }

/* ---------- 23. Page-specific -------------------------------------------- */

.park-hero__badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand-2); background: var(--brand-soft);
  padding: .25rem .7rem; border-radius: 999px; margin-bottom: var(--space-4);
}

.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
@media (min-width: 900px) { .split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split__aside { position: sticky; top: 6rem; display: grid; gap: var(--space-4); }

.timeline { display: grid; gap: var(--space-4); position: relative; padding-left: var(--space-6); }
.timeline::before { content: ""; position: absolute; left: .55rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--line); }
.timeline__item { position: relative; }
.timeline__item::before {
  content: ""; position: absolute; left: calc(-1 * var(--space-6) + .2rem); top: .45rem;
  width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--brand-2);
}
.timeline__time { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent); }
.timeline__body { color: var(--ink-2); margin-top: .2rem; }

.compare-table th[data-winner] { color: var(--brand-2); }
.winner-flag { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; color: var(--good); text-transform: uppercase; letter-spacing: .05em; }

.rank-list { display: grid; gap: var(--space-5); counter-reset: rank; }
.rank-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6); display: grid; gap: var(--space-3);
  position: relative; overflow: hidden;
}
.rank-item::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand-2), var(--accent));
}
.rank-item__head { display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.rank-item__num {
  font-family: var(--font-display); font-size: var(--step-3); font-weight: 800;
  color: var(--accent); letter-spacing: -.04em; line-height: 1;
}
.rank-item__name { font-size: var(--step-2); }
.rank-item__name a { color: inherit; text-decoration: none; }
.rank-item__name a:hover { color: var(--brand-2); }
.rank-item__headline { color: var(--ink-2); font-size: var(--step-0); font-style: italic; }
.proscons { display: grid; gap: var(--space-4); margin-top: var(--space-2); }
@media (min-width: 620px) { .proscons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proscons h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .4rem; }
.proscons__pro h4 { color: var(--good); }
.proscons__con h4 { color: var(--danger); }
.proscons ul { list-style: none; padding: 0; display: grid; gap: .35rem; font-size: .9rem; color: var(--ink-2); }
.proscons li { display: grid; grid-template-columns: .9rem 1fr; gap: .4rem; }
.proscons__pro li::before { content: "+"; color: var(--good); font-weight: 800; }
.proscons__con li::before { content: "−"; color: var(--danger); font-weight: 800; }

.verdict-box {
  background: linear-gradient(155deg, var(--brand), var(--brand-2));
  color: #fff; border-radius: var(--radius-lg);
  padding: var(--space-6) clamp(1.5rem, 4vw, 2.5rem); margin-block: var(--space-6);
}
.verdict-box h2 { color: #fff; font-size: var(--step-2); margin-bottom: var(--space-3); }
.verdict-box .verdict-box__short { font-size: var(--step-1); font-weight: 650; }
.verdict-box p { color: rgba(255, 255, 255, .88); }
.verdict-box p + p { margin-top: var(--space-3); }
:root[data-theme="dark"] .verdict-box { color: #061310; }
:root[data-theme="dark"] .verdict-box h2 { color: #061310; }
:root[data-theme="dark"] .verdict-box p { color: rgba(6, 19, 16, .82); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .verdict-box { color: #061310; }
  :root:not([data-theme="light"]) .verdict-box h2 { color: #061310; }
  :root:not([data-theme="light"]) .verdict-box p { color: rgba(6, 19, 16, .82); }
}

.pickif { display: grid; gap: var(--space-4); margin-block: var(--space-5); }
@media (min-width: 720px) { .pickif { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); } }
.pickif__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); }
.pickif__col h3 { font-size: var(--step-0); margin-bottom: var(--space-3); }
.pickif__col ul { list-style: none; padding: 0; display: grid; gap: .5rem; font-size: .92rem; color: var(--ink-2); }
.pickif__col li { display: grid; grid-template-columns: 1rem 1fr; gap: .4rem; }
.pickif__col li::before { content: "✓"; color: var(--brand-2); font-weight: 800; }

.guide-index-group { margin-block: var(--space-6); }
.guide-index-group h2 { margin-bottom: var(--space-4); font-size: var(--step-2); }

.legal-page { max-width: 74ch; }
.legal-page h2 { margin-top: var(--space-7); margin-bottom: var(--space-3); font-size: var(--step-2); }
.legal-page h3 { margin-top: var(--space-5); margin-bottom: var(--space-2); }
.legal-page p, .legal-page li { color: var(--ink-2); }
.legal-page ul, .legal-page ol { padding-left: 1.25rem; display: grid; gap: .5rem; margin-block: var(--space-4); }
.legal-page__updated { color: var(--muted); font-size: .85rem; }

.error-page { text-align: center; padding-block: var(--space-9); }
.error-page__code { font-family: var(--font-display); font-size: clamp(4rem, 15vw, 8rem); font-weight: 800; color: var(--brand-soft); line-height: 1; letter-spacing: -.05em; }

/* Offline / PWA status */
.offline-note {
  display: none; position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: .5rem 1rem; border-radius: 999px;
  font-size: .82rem; z-index: 250; box-shadow: var(--shadow);
}
body[data-offline] .offline-note { display: block; }

/* ---------- 24. Utilities ------------------------------------------------ */

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.muted { color: var(--muted); }
.small { font-size: var(--step--1); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.stack { display: grid; gap: var(--space-4); }
.stack-lg { display: grid; gap: var(--space-6); }
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--space-6); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 25. Dated content ------------------------------------------
   The site carries two kinds of page and one brand. These are the pieces that
   exist only because part of the content expires.
   ------------------------------------------------------------------------ */

/* Freshness ribbon — the provenance strip on every dated page. */
.freshness {
  display: grid; gap: .3rem;
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-left: 4px solid var(--line-strong);
}
.freshness__lead { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .92rem; }
.freshness__lead strong { font-family: var(--font-display); letter-spacing: -.01em; }
.freshness__sep { color: var(--muted); }
/*
 * The dot encodes state by SHAPE as well as colour.
 *
 * Four states differing only in hue fails for anyone with a colour-vision deficiency, fails in
 * greyscale print, and fails on a phone in direct sun at a park — which is precisely where this
 * ribbon gets read. Filled / ring / half / hollow survives all three, and the label beside it still
 * says the word, so the shape is reinforcement rather than the only signal.
 */
.freshness__dot {
  width: .62rem; height: .62rem; border-radius: 999px; flex: none;
  background: var(--line-strong);
  border: 2px solid var(--line-strong);
  box-sizing: border-box;
}
.freshness__note { font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.freshness__meta { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .8rem; color: var(--muted); }
.freshness__overdue { color: var(--danger); font-weight: 650; }

/* Tone suffixes come straight from staleness.mjs: good | warn | muted | danger. A stale page is
   forced to `danger` there, so a confirmed-but-unreviewed fact can never wear a green ribbon. */
/* good — solid. Checked and in date. */
.freshness--good { background: var(--good-soft); border-color: transparent; border-left-color: var(--good); }
.freshness--good .freshness__dot { background: var(--good); border-color: var(--good); }
.freshness--good .freshness__lead strong { color: var(--good); }

/* warn — half. Expected rather than confirmed. */
.freshness--warn { background: var(--warn-soft); border-color: transparent; border-left-color: var(--warn); }
.freshness--warn .freshness__dot {
  border-color: var(--warn);
  background: linear-gradient(90deg, var(--warn) 0 50%, transparent 50% 100%);
}
.freshness--warn .freshness__lead strong { color: var(--warn); }

/* muted — hollow. Historical, stated as the past. */
.freshness--muted .freshness__dot { background: transparent; border-color: var(--muted); }
.freshness--muted .freshness__lead strong { color: var(--ink-2); }

/* danger — ring. Past its review date, and saying so. */
.freshness--danger { background: var(--danger-soft); border-color: transparent; border-left-color: var(--danger); }
.freshness--danger .freshness__dot {
  background: transparent; border-color: var(--danger); border-width: 3px;
}
.freshness--danger .freshness__lead strong { color: var(--danger); }
.freshness--stale { border-left-color: var(--danger); }
.freshness--stale .freshness__dot { background: transparent; border-color: var(--danger); border-width: 3px; }

.pill--conf-confirmed { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill--conf-expected { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill--conf-historical { background: var(--surface-3); color: var(--muted); border-color: transparent; }
.pill--conf-unknown { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.pill--muted { background: var(--surface-3); color: var(--muted); border-color: transparent; }
.pill--danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.pill--level-great { background: var(--good-soft); color: var(--good); border-color: transparent; }
.pill--level-good { background: var(--brand-soft); color: var(--brand-2); border-color: transparent; }
.pill--level-mixed { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill--level-poor { background: var(--danger-soft); color: var(--danger); border-color: transparent; }

/* Money. The as-of is welded to the figure so neither can ship without the other. */
.price-range { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .35rem; }
.price-range__label { font-size: .8rem; color: var(--muted); }
.price-range__figure { font-family: var(--font-display); font-weight: 750; letter-spacing: -.02em; color: var(--ink); }
.price-range__figure i { font-style: normal; color: var(--muted); padding-inline: .1rem; }
.price-range__per { font-size: .8rem; color: var(--ink-2); }
.price-range__asof { font-size: .72rem; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: .05rem .45rem; }

/* The pattern strip — what stays true when this year's dates do not. */
.window-strip {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--space-5);
}
.window-strip__title { font-family: var(--font-display); font-size: .78rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: var(--space-3); }
.window-strip dl { display: grid; gap: var(--space-3); }
@media (min-width: 640px) { .window-strip dl { grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); } }
.window-strip dt { font-size: .76rem; color: var(--muted); }
.window-strip dd { font-family: var(--font-display); font-weight: 650; color: var(--ink); line-height: 1.3; }

/* Give and take. A page with only a left-hand column is an advert. */
.give-take { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .give-take { grid-template-columns: 1fr 1fr; gap: var(--space-5); } }
.give-take__col { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); background: var(--surface); }
.give-take__col h3 { display: flex; align-items: center; gap: .45rem; font-size: var(--step-0); margin-bottom: var(--space-3); }
.give-take__col svg { width: 1rem; height: 1rem; fill: none; stroke-width: 2.2; stroke-linecap: round; }
.give-take__col--get { border-left: 4px solid var(--good); }
.give-take__col--get h3 { color: var(--good); }
.give-take__col--get svg { stroke: var(--good); }
.give-take__col--dont { border-left: 4px solid var(--danger); }
.give-take__col--dont h3 { color: var(--danger); }
.give-take__col--dont svg { stroke: var(--danger); }

/* Verdict panel. */
.verdict { background: var(--brand-soft); border-radius: var(--radius-lg); padding: var(--space-6); }
.verdict__title { font-size: var(--step-2); color: var(--brand); margin-bottom: var(--space-3); }
.verdict__short { font-size: var(--step-1); line-height: 1.45; color: var(--ink); margin-bottom: var(--space-5); }
.verdict__cols { display: grid; gap: var(--space-4); }
@media (min-width: 760px) { .verdict__cols { grid-template-columns: 1fr 1fr; gap: var(--space-5); } }
.verdict__col { background: var(--surface); border-radius: var(--radius); padding: var(--space-4) var(--space-5); }
.verdict__col h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--space-3); }
.verdict__col--yes h3 { color: var(--good); }
.verdict__col--no h3 { color: var(--danger); }

/* Editions — one block per cycle, newest first. */
.editions { list-style: none; padding: 0; display: grid; gap: var(--space-4); }
.editions__item { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); background: var(--surface); }
.editions__head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.editions__head h3 { font-size: var(--step-2); letter-spacing: -.02em; }
.editions__dates { font-family: var(--font-display); font-weight: 650; color: var(--ink); }
.editions__dates--none { color: var(--muted); font-weight: 400; font-style: italic; }
.editions__meta { display: flex; flex-wrap: wrap; gap: var(--space-5); list-style: none; padding: 0; margin-block: var(--space-3); }
.editions__meta li { display: grid; gap: .1rem; }
.editions__meta span { font-size: .72rem; color: var(--muted); }
.editions__meta strong { font-family: var(--font-display); }
.editions__more { margin-top: var(--space-3); font-size: .88rem; }

/* Month grades. The letter is authored; refusing to spread the distribution is the failure mode. */
.grade {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.1rem; padding: .1rem .4rem; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em;
  font-size: 1rem; line-height: 1.4;
}
.grade--lg { min-width: 3.4rem; font-size: var(--step-3); padding: .2rem .6rem; border-radius: var(--radius); }
.grade--great { background: var(--good); color: #fff; }
.grade--good { background: var(--good-soft); color: var(--good); }
.grade--mixed { background: var(--warn-soft); color: var(--warn); }
.grade--poor { background: var(--danger-soft); color: var(--danger); }
:root[data-theme="dark"] .grade--great { color: #08251a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grade--great { color: #08251a; } }

.month-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.month-card {
  display: grid; gap: .45rem; grid-template-areas: "name grade" "short short" "levels levels";
  grid-template-columns: 1fr auto; align-items: center;
  padding: var(--space-4) var(--space-5); border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.month-card:hover { border-color: var(--brand-3); transform: translateY(-2px); box-shadow: var(--shadow); }
.month-card__name { grid-area: name; font-family: var(--font-display); font-size: var(--step-1); font-weight: 750; letter-spacing: -.02em; }
.month-card .grade { grid-area: grade; }
.month-card__short { grid-area: short; font-size: .86rem; color: var(--ink-2); line-height: 1.45; }
.month-card__levels { grid-area: levels; display: flex; flex-wrap: wrap; gap: .35rem; }
.month-card__level { font-size: .7rem; font-weight: 650; padding: .1rem .45rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.month-card__level--great { background: var(--good-soft); color: var(--good); }
.month-card__level--good { background: var(--brand-soft); color: var(--brand-2); }
.month-card__level--mixed { background: var(--warn-soft); color: var(--warn); }
.month-card__level--poor { background: var(--danger-soft); color: var(--danger); }

/* Year-at-a-glance Gantt. CSS grid, no library, and it prints. */
.gantt-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gantt__title { font-family: var(--font-display); font-weight: 700; margin-bottom: var(--space-3); }
.gantt { min-width: 46rem; display: grid; gap: .25rem; }
.gantt__head, .gantt__row { display: grid; grid-template-columns: 14rem 1fr; gap: var(--space-3); align-items: center; }
.gantt__head { position: sticky; top: 0; }
.gantt__corner { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.gantt__head { grid-template-columns: 14rem repeat(12, 1fr); }
.gantt__month { font-size: .7rem; text-align: center; color: var(--muted); font-weight: 650; }
.gantt__label { font-size: .84rem; line-height: 1.3; display: grid; gap: .1rem; }
.gantt__label a { color: inherit; text-decoration: none; font-weight: 600; }
.gantt__label a:hover { color: var(--brand-2); text-decoration: underline; }
.gantt__resort { font-style: normal; font-size: .68rem; color: var(--muted); letter-spacing: .06em; }
.gantt__track { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0; }
.gantt__cell { grid-row: 1; height: 1.6rem; border-right: 1px solid var(--line); }
.gantt__cell:first-child { border-left: 1px solid var(--line); }
.gantt__bar { grid-row: 1; height: 1.6rem; border-radius: var(--radius-xs); align-self: center; }
.gantt__bar--confirmed { background: var(--good); }
.gantt__bar--expected { background: var(--accent-2); }
.gantt__bar--historical { background: var(--line-strong); }
.gantt__key { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-top: var(--space-4); font-size: .78rem; color: var(--muted); }
.gantt__keyitem { display: inline-flex; align-items: center; gap: .35rem; }
.gantt__swatch { width: .85rem; height: .85rem; border-radius: var(--radius-xs); display: inline-block; }
.gantt__swatch--confirmed { background: var(--good); }
.gantt__swatch--expected { background: var(--accent-2); }
.gantt__swatch--historical { background: var(--line-strong); }

/* Two-resort split. */
.resort-split { display: grid; gap: var(--space-5); }
@media (min-width: 820px) { .resort-split { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
.resort-split__col { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); background: var(--surface); }
.resort-split__title { font-size: var(--step-1); color: var(--brand-2); margin-bottom: var(--space-4); }

/* Handoff back to the evergreen site. */
.evergreen__title { font-size: var(--step-2); margin-bottom: var(--space-2); }
.evergreen__intro { color: var(--ink-2); max-width: 60ch; margin-bottom: var(--space-5); }
.link-tile--external .link-tile__chev { transform: rotate(-45deg); }

/* Trip-timing tool. */
.timing-controls { display: grid; gap: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); }
.timing-priorities { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.timing-priority { display: flex; align-items: center; gap: .6rem; padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; }
.timing-priority input { accent-color: var(--brand-2); width: 1.05rem; height: 1.05rem; }
.timing-priority:has(input:checked) { border-color: var(--brand-3); background: var(--brand-soft); }
.timing-results { display: grid; gap: var(--space-2); margin-top: var(--space-5); }
.timing-result { display: grid; grid-template-columns: 3rem 1fr auto; gap: var(--space-4); align-items: center; padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.timing-result__rank { font-family: var(--font-display); font-size: var(--step-1); font-weight: 800; color: var(--muted); }
.timing-result:first-child .timing-result__rank { color: var(--brand-2); }
.timing-result__bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.timing-result__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-3), var(--brand-2)); }
.timing-result__name { font-weight: 650; }

/* ---------- Consent bar (analytics gate) --------------------------------- */

.consent-bar {
  position: fixed; left: 50%; bottom: var(--space-4); transform: translateX(-50%);
  z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5);
  max-width: min(46rem, calc(100vw - 2rem));
  padding: var(--space-4) var(--space-5);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}
.consent-bar p { margin: 0; font-size: var(--step--1); color: var(--ink-2); max-width: 34rem; }
.consent-bar__actions { display: flex; gap: var(--space-2); margin-left: auto; }
@media print { .consent-bar { display: none; } }

/* ---------- Ported polish (from the Bolt design comps) -------------------- */

/* Restrained scroll reveal: the .reveal class is added by JavaScript only, so the page
   without JS renders exactly as it always has, and reduced motion never adds it. */
.reveal { opacity: 0; transform: translateY(12px); }
.reveal.is-revealed { opacity: 1; transform: none; transition: opacity .2s ease-out, transform .2s ease-out; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* Height checker: near-miss cards carry a progress bar — how close the child already is. */
.nearmiss__item { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.nearmiss__item + .nearmiss__item { margin-top: .5rem; }
.nearmiss__bar { flex: 1 1 6rem; height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.nearmiss__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-2), var(--brand-3)); }
.nearmiss__pct { font-size: var(--step--2); color: var(--muted); white-space: nowrap; }

/* Height checker: the quiet unlock moment — one soft glow pulse on the chip, one line of prose. */
.ride-chiplist li[data-unlocked] { animation: unlock-glow 1.2s ease-out 1; }
@keyframes unlock-glow {
  0% { box-shadow: 0 0 0 0 rgba(42, 138, 107, 0); }
  30% { box-shadow: 0 0 0 5px rgba(42, 138, 107, .28); }
  100% { box-shadow: 0 0 0 0 rgba(42, 138, 107, 0); }
}
.hchecker__toast {
  position: fixed; left: 50%; bottom: var(--space-4); transform: translateX(-50%) translateY(8px);
  margin: 0; padding: .6rem 1.1rem; border-radius: 999px;
  background: var(--brand); color: #f6efe4; font-size: var(--step--1); font-weight: 600;
  box-shadow: 0 10px 26px rgba(6, 24, 17, .35);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.hchecker__toast[data-open] { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Food tracker: the segmented toggle settles with a spring; the ring eases its arc. */
@media (prefers-reduced-motion: no-preference) {
  .food-card [data-track] { transition: transform .18s cubic-bezier(.34,1.56,.64,1), background-color .15s ease, border-color .15s ease, color .15s ease; }
  .food-card [data-track]:active { transform: scale(.94); }
  .tracker-progress__fg { transition: stroke-dasharray .35s ease; }
  .timing-result__fill { transition: width .3s ease; }
}

/* Theme cross-fade: structural surfaces ease their colours over a third of a second.
   Component-level hover transitions are untouched — this only smooths the light/dark swap. */
@media (prefers-reduced-motion: no-preference) {
  html, body { transition: background-color .32s ease; }
  .site-header, .site-footer, .band { transition: background-color .32s ease, border-color .32s ease; }
}

/* ---------- Season spotlight (homepage, self-retiring by config) ---------- */

.spotlight { position: relative; background: #170d24; color: #f4ecdd; overflow: hidden; }
.spotlight__inner { position: relative; padding: var(--space-8) 0; }
.spotlight__scene { position: absolute; inset: 0; z-index: 0; }
.spotlight__scene svg { width: 100%; height: 100%; display: block; }
.spotlight__content { position: relative; z-index: 1; max-width: 46rem; }
.spotlight__label {
  margin: 0 0 var(--space-3); font-size: .72rem; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; color: #e8a13c;
}
.spotlight__title { margin: 0 0 var(--space-3); font-family: var(--font-display); font-size: var(--step-3); line-height: 1.05; letter-spacing: -.02em; color: #faf4e6; }
.spotlight__lede { margin: 0 0 var(--space-5); max-width: 40rem; color: rgba(244, 236, 221, .82); }
.spotlight__events { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-bottom: var(--space-5); }
.spotlight__events .card { background: rgba(13, 7, 20, .55); border-color: rgba(232, 161, 60, .28); }
.spotlight__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: 0; }
.spotlight__cta.btn--solid { background: #e8a13c; border-color: #e8a13c; color: #241238; }
.spotlight__cta.btn--ghost { color: #f4ecdd; border-color: rgba(244, 236, 221, .45); }
.spotlight__cta.btn--ghost:hover { background: rgba(244, 236, 221, .1); color: #fff; }
[data-theme="dark"] .spotlight { background: #120a1c; }

/* ---------- Ride status board (guest-report layer) ------------------------ */
/* Deliberately unlike anything else on the site: verified facts wear solid
   pills; guest reports wear dashed borders and their own vocabulary. */

.status-board { display: grid; gap: .5rem; }
.status-row {
  display: grid; grid-template-columns: minmax(12rem, 1fr) auto; gap: .5rem 1rem; align-items: center;
  padding: .65rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
.status-row__name { font-weight: 650; }
.status-row__note { grid-column: 1 / -1; font-size: var(--step--1); color: var(--muted); }
.status-row__report { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.status-row__pill--open { background: var(--good-soft); color: var(--good); border: 1px solid var(--good); }
.status-row--scheduled { border-left: 4px solid var(--warn); }
.status-row--amber { border: 1px dashed var(--warn); background: var(--warn-soft); }
.status-row--amber-faint { border: 1px dashed var(--line-strong); }
.status-row--red { border: 2px dashed var(--danger); background: var(--danger-soft); }
.status-pill--guest {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; border: 1px dashed currentColor;
}
.status-row--amber .status-pill--guest { color: var(--warn); }
.

/* ---------- Ride status board (guest-report layer) ------------------------ */
/* Deliberately unlike anything else on the site: verified facts wear solid
   pills; guest reports wear dashed borders and their own vocabulary. */

.status-board { display: grid; gap: .5rem; }
.status-row {
  display: grid; grid-template-columns: minmax(12rem, 1fr) auto; gap: .5rem 1rem; align-items: center;
  padding: .65rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
.status-row__name { font-weight: 650; }
.status-row__note { grid-column: 1 / -1; font-size: var(--step--1); color: var(--muted); }
.status-row__report { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.status-row__pill--open { background: var(--good-soft); color: var(--good); border: 1px solid var(--good); }
.status-row--scheduled { border-left: 4px solid var(--warn); }
.status-row--amber { border: 1px dashed var(--warn); background: var(--warn-soft); }
.status-row--amber-faint { border: 1px dashed var(--line-strong); }
.status-row--red { border: 2px dashed var(--danger); background: var(--danger-soft); }
.status-pill--guest {
  display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; border: 1px dashed currentColor;
}
.status-row--amber .status-pill--guest { color: var(--warn); }
.status-row--red .status-pill--guest { color: var(--danger); }
.status-hint { font-size: .75rem; color: var(--muted); }
.status-report-btn { padding: .25rem .7rem; font-size: .78rem; }
@media (max-width: 640px) { .status-row { grid-template-columns: 1fr; } }

/* ---------- C1: Reading mode ("night before your trip") ------------------- */

html[data-lamp] {
  --paper: #f5ead0;
  --surface: #f9f1dc;
  --surface-2: #f0e4c8;
  --surface-3: #e8dab8;
  --ink: #3d3528;
  --ink-2: #5a4e3a;
  --muted: #8a7a60;
  --line: #d8c8a4;
  --line-strong: #c4b088;
  --brand: #1a4a34;
  --brand-2: #256b4e;
  --brand-3: #3a8a66;
  --brand-soft: #e8e0c8;
  --accent: #b8750e;
  --accent-2: #d89228;
  --accent-soft: #f5e8cc;
}

html[data-lamp] body {
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, transparent 40%, rgba(120, 90, 40, .06) 100%),
    var(--paper);
}

@media (prefers-reduced-motion: no-preference) {
  html, body, .band, .site-header, .site-footer, .card, .data-table, .callout {
    transition: background-color .4s ease, color .4s ease, border-color .4s ease;
  }
}

.lamp-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .9rem; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
  font-size: .8rem; font-weight: 600; cursor: pointer;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.lamp-toggle:hover { border-color: var(--accent-2); color: var(--accent); }
.lamp-toggle[aria-pressed="true"] {
  background: var(--accent-soft); border-color: var(--accent-2); color: var(--accent);
}
.lamp-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* ---------- C2: Hidden fairground details ---------------------------------- */

/* The footer ferris wheel: 12px, barely there, slowly turning. */
.footer-ferris {
  display: inline-block; width: 14px; height: 14px; vertical-align: -2px;
  margin-left: .4rem; opacity: .35;
}
@media (prefers-reduced-motion: no-preference) {
  .footer-ferris { animation: ferris-turn 42s linear infinite; }
}
@keyframes ferris-turn { to { transform: rotate(360deg); } }

/* The 404 bumper car */
.bumper-404 {
  display: block; margin: var(--space-6) auto; width: 120px; height: auto;
  opacity: .8;
}
@media (prefers-reduced-motion: no-preference) {
  .bumper-404 { animation: bumper-bump 3s ease-in-out infinite; }
}
@keyframes bumper-bump {
  0%, 100% { transform: translateX(0); }
  30% { transform: translateX(6px) rotate(2deg); }
  60% { transform: translateX(-4px) rotate(-1deg); }
}

/* C4: Golden-hour palette for the when-to-go family */
.palette--dawn {
  --paper: #faf5ea;
  --surface: #fdf9f0;
  --surface-2: #f5eddc;
  --brand: #1a4a34;
  --accent: #c47f1a;
  --accent-2: #e09a2e;
  --accent-soft: #fdf3dc;
}
.palette--dawn .band--tint {
  background: linear-gradient(180deg, rgba(228, 180, 100, .08), transparent);
}

/* C8: Return-visitor greeting bar */
.welcome-back {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  padding: .6rem 1rem; background: var(--brand-soft);
  border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--ink-2);
}
.welcome-back a { color: var(--brand-2); font-weight: 650; }
.welcome-back__close {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-size: 1rem; line-height: 1; padding: .2rem .4rem;
}

/* ---------- Typography: Fraunces display face -------------------------------- */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/fraunces-variable.woff2') format('woff2');
}



h1, h2, h3, .hero__title, .spotlight__title, .timing-result__rank {
  font-optical-sizing: auto;
}

.hero__title { letter-spacing: -.015em; }
.spotlight__title { letter-spacing: -.01em; }

/* ---------- Stardust: golden shimmer on scroll reveal ------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal.is-revealed::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      105deg,
      transparent 20%,
      rgba(232, 161, 60, 0.06) 35%,
      rgba(232, 161, 60, 0.12) 45%,
      rgba(246, 233, 201, 0.15) 50%,
      rgba(232, 161, 60, 0.12) 55%,
      rgba(232, 161, 60, 0.06) 65%,
      transparent 80%
    );
    background-size: 250% 100%;
    background-position: 200% 0;
    animation: stardust-sweep 1.2s ease-out forwards;
    z-index: 1;
    border-radius: inherit;
  }
  @keyframes stardust-sweep {
    from { background-position: 200% 0; }
    to { background-position: -50% 0; }
  }
  .reveal { position: relative; }
}

/* ---------- Easter egg: sparkle burst on height checker unlock ---------------- */

@media (prefers-reduced-motion: no-preference) {
  .ride-chiplist li[data-unlocked] {
    animation: unlock-glow 1.2s ease-out 1, sparkle-burst .6s ease-out .1s 1;
  }
  @keyframes sparkle-burst {
    0% { box-shadow: 0 0 0 0 rgba(232,161,60,0), 2px -2px 0 -3px rgba(246,233,201,.8), -3px 1px 0 -3px rgba(232,161,60,.6), 1px 3px 0 -3px rgba(246,233,201,.7); }
    50% { box-shadow: 0 0 12px 2px rgba(232,161,60,.3), 5px -5px 0 -4px rgba(246,233,201,.5), -6px 3px 0 -4px rgba(232,161,60,.4), 3px 6px 0 -4px rgba(246,233,201,.5); }
    100% { box-shadow: 0 0 0 0 rgba(232,161,60,0), 8px -8px 0 -6px rgba(246,233,201,0), -9px 5px 0 -6px rgba(232,161,60,0), 5px 9px 0 -6px rgba(246,233,201,0); }
  }
}
