/* Mobile-first, sun-readable design tokens */
:root {
  --bg: #f7f5fd; --surface: #ffffff; --surface-2: #efebfa; --ink: #1a1640; --ink-2: #4b4870;
  --line: #ddd7f0; --teal: #1f2f86; --teal-2: #3343b8; --teal-ink: #ffffff;
  --citrus: #f6c33b; --citrus-ink: #1a1640; --violet: #6a3fb5; --violet-soft: #efe7fb;
  --pink: #e0569a; --sky: #46a8e0; --night: #0f1446; --night-2: #2b1d6e;
  --ok: #19703f; --ok-soft: #e1f3e8; --warn: #8a4b00; --warn-soft: #fff1d6;
  --bad: #a3174a; --bad-soft: #fde6ef; --unk: #5d5a78; --unk-soft: #ecebf3;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 1px 2px rgb(31 20 90 / .06), 0 6px 18px rgb(31 20 90 / .07);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-serif, Georgia, "Times New Roman", serif;
  --tap: 44px; --bar-h: 62px;
  --sky-grad: linear-gradient(135deg, #0f1446 0%, #2b1d6e 55%, #6a3fb5 100%);
  --stars: radial-gradient(1.5px 1.5px at 12% 30%, #fff9 50%, transparent 51%), radial-gradient(1px 1px at 28% 70%, #fff8 50%, transparent 51%), radial-gradient(2px 2px at 46% 22%, #ffe9a8 50%, transparent 51%), radial-gradient(1px 1px at 63% 58%, #fff9 50%, transparent 51%), radial-gradient(1.5px 1.5px at 78% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 88% 66%, #ffe9a8 50%, transparent 51%), radial-gradient(1px 1px at 6% 82%, #fff7 50%, transparent 51%), radial-gradient(1.5px 1.5px at 94% 40%, #fff9 50%, transparent 51%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d2a; --surface: #151a44; --surface-2: #1e2456; --ink: #f1efff; --ink-2: #c3bfe6;
    --line: #2f3570; --teal: #8fa2ff; --teal-2: #aab8ff; --teal-ink: #0b0d2a;
    --citrus: #f6c33b; --violet: #c9a8ff; --violet-soft: #2a2160; --pink: #ff8cc0;
    --ok: #7fdca2; --ok-soft: #133524; --warn: #f6c97a; --warn-soft: #3a2b10;
    --bad: #ff9ab9; --bad-soft: #401a2c; --unk: #b8b5d8; --unk-soft: #252a55; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d2a; --surface: #151a44; --surface-2: #1e2456; --ink: #f1efff; --ink-2: #c3bfe6;
    --line: #2f3570; --teal: #8fa2ff; --teal-2: #aab8ff; --teal-ink: #0b0d2a;
    --citrus: #f6c33b; --violet: #c9a8ff; --violet-soft: #2a2160; --pink: #ff8cc0;
    --ok: #7fdca2; --ok-soft: #133524; --warn: #f6c97a; --warn-soft: #3a2b10;
    --bad: #ff9ab9; --bad-soft: #401a2c; --unk: #b8b5d8; --unk-soft: #252a55; color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--font); padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg { max-width: 100%; }
a { color: var(--teal-2); text-underline-offset: 2px; }
a.ext::after { content: "↗"; font-size: .8em; margin-left: 2px; }
:focus-visible { outline: 3px solid var(--citrus); outline-offset: 2px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--s4); }
.skip { position: absolute; left: -9999px; top: 0; background: var(--citrus); color: var(--citrus-ink); padding: var(--s3); z-index: 100; }
.skip:focus { left: var(--s3); top: var(--s3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { line-height: 1.2; margin: 1.2em 0 .5em; }
h1 { font-family: var(--display); font-size: clamp(1.75rem, 5vw, 2.6rem); margin-top: .6em; letter-spacing: -.01em; }
h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; }
p { margin: 0 0 .9em; } .lede { font-size: 1.12rem; color: var(--ink-2); max-width: 70ch; }
.fine { font-size: .88rem; color: var(--ink-2); }
.meta { font-size: .9rem; color: var(--ink-2); }
code { background: var(--surface-2); padding: 1px 5px; border-radius: 4px; font-size: .9em; }

/* Header */
.site-header { background: var(--stars), var(--sky-grad); color: #fff; position: sticky; top: 0; z-index: 50; padding-top: env(safe-area-inset-top); }
.header-row { display: flex; align-items: center; gap: var(--s4); min-height: 56px; }
.brand { color: inherit; text-decoration: none; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: var(--s2); white-space: nowrap; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-small { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 400; font-size: .72em; letter-spacing: .02em; color: var(--citrus, #f6c33b); }
.brand-big { font-family: Georgia, 'Times New Roman', serif; font-size: 1.12em; letter-spacing: .01em; }
.brand-mark { width: 28px; height: 28px; background: radial-gradient(circle at 50% 50%, #fff6cf 0 18%, var(--citrus) 19% 100%); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 0 6px #f6c33b88); }
.main-nav { display: none; gap: var(--s1); }
.main-nav a { color: inherit; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current] { background: rgb(255 255 255 / .14); }
.header-actions { margin-left: auto; display: flex; gap: var(--s2); align-items: center; }
.icon-btn { color: inherit; display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); border-radius: 10px; }
.btn-trip { background: var(--citrus); color: var(--citrus-ink); }
.trip-count { background: var(--night); color: #fff; border-radius: 999px; padding: 0 7px; font-size: .78rem; margin-left: 4px; }
@media (min-width: 900px) { .main-nav { display: flex; } }

/* Bottom bar (mobile) */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 16px rgb(0 0 0 / .06); }
.bottom-bar a { min-height: var(--bar-h); display: grid; place-items: center; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.bottom-bar a[aria-current] { color: var(--teal-2); box-shadow: inset 0 3px 0 var(--teal-2); }
@media (min-width: 900px) { .bottom-bar { display: none; } }

.crumbs { font-size: .88rem; margin-top: var(--s4); color: var(--ink-2); }
.crumbs a { color: var(--ink-2); }

/* Buttons */
.btn, .btn-sm { font: inherit; cursor: pointer; border: 0; border-radius: 10px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.btn { min-height: var(--tap); padding: 0 18px; font-weight: 650; }
.btn-primary { background: var(--teal); color: var(--teal-ink); }
.btn-primary:hover { background: var(--teal-2); }
.btn-ghost { background: transparent; color: var(--teal-2); box-shadow: inset 0 0 0 2px var(--teal-2); }
.btn-citrus { background: var(--citrus); color: var(--citrus-ink); }
.btn-danger { background: transparent; color: var(--bad); box-shadow: inset 0 0 0 2px var(--bad); }
.btn-sm { min-height: 36px; min-width: 36px; padding: 0 12px; font-size: .9rem; font-weight: 600; background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-sm:hover { background: var(--violet-soft); }
.btn-sm[aria-pressed="true"], .btn-sm.added { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1px var(--ok); }
.btn-row { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: end; }

/* Chips */
.chip { display: inline-block; font-size: .78rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; vertical-align: middle; white-space: nowrap; border: 1px solid transparent; }
.chip-dated { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); }
.chip-secondary { background: var(--violet-soft); color: var(--violet); }
.chip-estimate { background: var(--violet-soft); color: var(--violet); }
.chip-conflict { background: var(--bad-soft); color: var(--bad); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-future { background: var(--unk-soft); color: var(--unk); }
.chip-neutral { background: var(--surface-2); color: var(--ink-2); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.unk { color: var(--unk); font-style: italic; }
.yn { font-weight: 700; font-size: .88rem; padding: 2px 8px; border-radius: 6px; }
.yn.yes { background: var(--ok-soft); color: var(--ok); } .yn.no { background: var(--unk-soft); color: var(--unk); } .yn.unk { background: var(--warn-soft); color: var(--warn); font-style: normal; }

/* Layout bits */
.section { margin: var(--s6) 0; }
.grid { display: grid; gap: var(--s4); }
.cards-2, .cards-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards-2, .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.two-col { display: grid; gap: var(--s5); }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); box-shadow: var(--shadow); }
.link-card { display: block; text-decoration: none; color: inherit; transition: transform .12s ease; }
.link-card:hover { transform: translateY(-2px); border-color: var(--teal-2); }
.link-card h2, .link-card h3 { margin-top: 0; color: var(--teal-2); }
.banner { border-radius: var(--radius-sm); padding: var(--s3) var(--s4); margin: var(--s4) 0; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.info { background: var(--violet-soft); color: var(--violet); }
.banner.ok { background: var(--ok-soft); color: var(--ok); }

/* Hero */
.hero { display: grid; gap: var(--s5); padding: var(--s5) 0 var(--s4); align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.3fr 1fr; padding-top: var(--s6); } }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--teal-2); margin: 0; }
.hero-cta { display: flex; gap: var(--s3); flex-wrap: wrap; margin: var(--s4) 0; }
.hero-card { background: var(--surface); border-radius: var(--radius); padding: var(--s5); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--teal), var(--citrus), var(--violet)); }
.hc-label { font-weight: 650; }
.hc-row { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px dashed var(--line); }
.hc-row strong { font-variant-numeric: tabular-nums; font-size: 1.15rem; }
.hc-note { margin-top: var(--s3); }
.facts li, .notices li { margin-bottom: var(--s3); }
.notices { list-style: none; padding: 0; }

.fact-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s3); margin: var(--s4) 0; }
.fact-strip > div, .perk-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s3); display: flex; flex-direction: column; gap: 4px; }
.k { font-size: .82rem; color: var(--ink-2); font-weight: 600; } .v { font-weight: 700; font-size: 1.1rem; }
.perk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3); margin: var(--s4) 0; }

/* Forms */
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem; }
label.check { flex-direction: row; align-items: center; gap: var(--s2); min-height: var(--tap); }
input, select, textarea { font: inherit; font-size: 16px; min-height: var(--tap); padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
input[type="checkbox"] { width: 22px; height: 22px; min-height: 0; accent-color: var(--teal); }
.input-suffix { display: flex; align-items: center; gap: 6px; }
.filters { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s4); margin: var(--s4) 0; align-items: end; }
.form-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.status { font-weight: 600; color: var(--ink-2); }
.tool { margin: var(--s5) 0; } .tool h2 { margin-top: 0; }

/* Tables → cards on mobile */
.table-wrap { width: 100%; }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; font-size: .95rem; }
table.data th, table.data td { overflow-wrap: anywhere; padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data thead th { background: var(--surface-2); font-size: .85rem; }
table.data tbody tr:hover { background: color-mix(in srgb, var(--violet-soft) 45%, transparent); }
tr.hidden { display: none; }
@media (max-width: 759px) {
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data th, table.data td { display: block; width: 100%; }
  table.data { background: transparent; }
  table.data tr { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: var(--s3); padding: var(--s2) var(--s3); }
  table.data th[scope="row"], table.data tr > td:first-child:not([data-label]) { font-size: 1.02rem; border: 0; padding: 6px 0; }
  table.data td { border: 0; padding: 4px 0; display: grid; grid-template-columns: 40% 1fr; gap: var(--s2); }
  table.data td[data-label=""] { display: inline-block; width: auto; margin-right: var(--s2); }
  table.data td::before { content: attr(data-label); font-weight: 600; color: var(--ink-2); font-size: .85rem; }
  table.data td[data-label=""]::before { content: none; }
  table.data tr.hidden { display: none; }
}
@media (min-width: 760px) { .table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); } }
.ride-ok .yes { color: var(--ok); font-weight: 700; } .ride-ok .no { color: var(--bad); font-weight: 700; } .ride-ok .chk { color: var(--warn); font-weight: 700; }

/* Prose from research notes */
.prose { max-width: 80ch; }
.prose .table-wrap { max-width: none; margin: var(--s4) 0; }
.prose li { margin-bottom: .45em; }
details.sources { margin: var(--s5) 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s3) var(--s4); }
details summary { cursor: pointer; font-weight: 650; min-height: var(--tap); display: flex; align-items: center; }
.link-list { columns: 2 260px; } .link-list li { margin-bottom: 6px; break-inside: avoid; }

/* Benefits */
.benefits { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 760px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
.benefit header { display: flex; justify-content: space-between; gap: var(--s2); align-items: start; }
.benefit h3 { margin: 0 0 var(--s2); }
.benefit dl { margin: 0; } .benefit dt { font-weight: 700; font-size: .85rem; color: var(--ink-2); margin-top: var(--s2); } .benefit dd { margin: 2px 0 0; }

/* Calculator */
.options { display: grid; gap: var(--s4); margin-top: var(--s4); }
@media (min-width: 1000px) { .options { grid-template-columns: repeat(3, 1fr); } }
.option { border-top: 5px solid var(--teal); }
.option:nth-child(2) { border-top-color: var(--violet); } .option:nth-child(3) { border-top-color: var(--citrus); }
.option h3 { margin-top: 0; }
.option fieldset { border: 0; padding: 0; margin: 0 0 var(--s3); display: grid; gap: var(--s3); }
.option legend { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: var(--s2); }
.ref { font-size: .84rem; color: var(--violet); background: var(--violet-soft); padding: 6px 8px; border-radius: 6px; }
.results { margin-top: var(--s5); display: grid; gap: var(--s4); }
@media (min-width: 1000px) { .results { grid-template-columns: repeat(3, 1fr); } .results .summary { grid-column: 1 / -1; } }
.ledger { width: 100%; border-collapse: collapse; font-size: .93rem; }
.ledger td { padding: 5px 0; border-bottom: 1px dotted var(--line); }
.ledger td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger tr.unknown td { color: var(--warn); font-weight: 600; }
.total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.2rem; padding-top: var(--s3); font-variant-numeric: tabular-nums; }
.score-grid { overflow-x: auto; }
.score-grid table { border-collapse: collapse; width: 100%; min-width: 520px; background: var(--surface); }
.score-grid th, .score-grid td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.score-grid select, .score-grid input { min-width: 70px; }
.presets { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin: var(--s3) 0; }
.bar { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; } .bar > span { display: block; height: 100%; background: var(--violet); }

/* Planner */
.tabs { display: flex; gap: var(--s2); overflow-x: auto; padding-bottom: var(--s2); margin: var(--s4) 0; scrollbar-width: thin; }
.tabs button { flex: none; }
.tabs button[aria-selected="true"] { background: var(--teal); color: var(--teal-ink); box-shadow: none; }
.day { margin-bottom: var(--s4); }
.day header { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; justify-content: space-between; }
.day h3 { margin: 0; }
.items { list-style: none; padding: 0; margin: var(--s3) 0; }
.items li { display: grid; grid-template-columns: 1fr auto; gap: var(--s2); padding: var(--s2) 0; border-bottom: 1px solid var(--line); align-items: center; }
.items .it-main { display: flex; flex-direction: column; }
.items .it-ctrl { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.status-confirmed { color: var(--ok); } .status-canceled { text-decoration: line-through; color: var(--unk); }
.warnings { list-style: none; padding: 0; margin: var(--s2) 0; } .warnings li { background: var(--warn-soft); color: var(--warn); padding: 6px 10px; border-radius: 6px; margin-bottom: 6px; font-size: .92rem; }

/* Today (in-park) */
.today { display: grid; gap: var(--s3); }
.today .big { font-size: 1.6rem; font-weight: 800; font-family: var(--display); margin: 0; }
.today .next { border-left: 5px solid var(--citrus); }
.quick-height { display: flex; gap: var(--s2); align-items: end; }
.quick-height input { max-width: 120px; font-size: 1.2rem; }
.can-ride { columns: 2 150px; padding-left: 1.1em; }

.install { display: flex; gap: var(--s3); align-items: center; justify-content: space-between; background: var(--violet-soft); color: var(--violet); border-radius: var(--radius); padding: var(--s3) var(--s4); margin: var(--s4) 0; }
.install p { margin: 0; }

.search-results { list-style: none; padding: 0; } .search-results li { padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.search-results a { font-weight: 650; font-size: 1.05rem; }

.site-footer { margin-top: var(--s7); background: var(--surface-2); padding: var(--s5) 0; border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin: var(--s3) 0; }
.footer-links a { color: var(--ink); min-height: 32px; display: inline-flex; align-items: center; }
.disclaimer { font-size: .9rem; max-width: 90ch; }
.copyright { font-size: .82rem; color: var(--ink-2); }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--bar-h) + 16px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 80; font-weight: 600; }
@media (min-width: 900px) { .toast { bottom: 24px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print {
  .site-header, .bottom-bar, .site-footer .footer-links, .btn, .btn-sm, .filters, .install, .it-ctrl, .tabs { display: none !important; }
  body { background: #fff; color: #000; padding: 0; } .card { box-shadow: none; }
}
.prose p, .prose li { overflow-wrap: anywhere; }
/* Mobile tightening for in-park use */
.btn-trip { white-space: nowrap; }
@media (max-width: 899px) {
  body { font-size: 16px; }
  .btn-trip { display: none; }
  .brand { font-size: 1rem; }
  .crumbs { display: none; }
  table.data tr { padding: 10px 12px; }
  table.data td { grid-template-columns: 38% 1fr; font-size: .93rem; }
  .ride-ok:not(:empty) { order: -1; }
  .trip-page h1 { font-size: 1.5rem; margin: .5em 0 .2em; }
  .trip-page .lede { font-size: .85rem; margin-bottom: 0; }
}
@media (max-width: 759px) { .score-grid table { min-width: 0; } }

/* Magical theme accents */
h1 { color: var(--night); }
:root:not([data-theme="light"]) h1 { color: inherit; }
@media (prefers-color-scheme: light) { h1 { color: var(--night); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) h1 { color: #fff; } }
.hero { position: relative; isolation: isolate; color: #fff; background: var(--stars), var(--sky-grad); border-radius: 0 0 28px 28px; margin: 0 calc(-1 * var(--s4)); padding: var(--s5) var(--s4) var(--s6); overflow: hidden; }
@media (min-width: 1240px) { .hero { margin: 0; border-radius: 28px; margin-top: var(--s4); padding: var(--s6); } }
.hero::after { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; border: 2px dashed #f6c33b55; transform: rotate(-12deg); }
.hero h1 { color: #fff; } .hero .lede { color: #e6e1ff; } .hero .eyebrow { color: var(--citrus); }
.hero .fine { color: #d4cff5; } .hero .chip-dated { background: #ffffff1f; color: #fff; border-color: #ffffff33; }
.hero .btn-primary { background: var(--citrus); color: var(--citrus-ink); } .hero .btn-primary:hover { background: #ffd669; }
.hero .btn-ghost { color: #fff; box-shadow: inset 0 0 0 2px #ffffffaa; }
.hero-card { color: var(--ink); }
.hero-card::before { background: linear-gradient(90deg, var(--sky), var(--violet), var(--pink), var(--citrus)); }
.btn-primary { background: linear-gradient(135deg, var(--teal), var(--violet)); }
.btn-primary:hover { background: linear-gradient(135deg, var(--teal-2), var(--violet)); }
.link-card { border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--sky), var(--violet), var(--pink)) 1; border-image-slice: 1; }
.link-card h2, .link-card h3 { color: var(--teal); }
.link-card:hover { box-shadow: 0 10px 28px rgb(106 63 181 / .18); }
.option { border-top-color: var(--teal); } .option:nth-child(2) { border-top-color: var(--pink); } .option:nth-child(3) { border-top-color: var(--citrus); }
.tabs button[aria-selected="true"] { background: var(--sky-grad); color: #fff; }
.today .big { color: var(--violet); }
.today .next { border-left-color: var(--pink); }
.bottom-bar a[aria-current] { color: var(--violet); box-shadow: inset 0 3px 0 var(--citrus); }
.bar > span { background: linear-gradient(90deg, var(--sky), var(--violet), var(--pink)); }
.site-footer { background: var(--stars), var(--sky-grad); color: #e6e1ff; border-top: 0; }
.site-footer .footer-links a { color: #fff; } .site-footer .copyright { color: #c8c2f0; }
.eyebrow { color: var(--pink); }
.park-card h2::before { content: "✦ "; color: var(--citrus); }
/* Crowd calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.cal-head h2 { margin: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin: var(--s3) 0; }
.cal-dow { text-align: center; font-size: .75rem; font-weight: 700; color: var(--ink-2); }
.cal-day { font: inherit; border: 0; border-radius: 10px; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.cal-day .cd-n { font-size: .8rem; opacity: .8; } .cal-day .cd-s { font-weight: 800; font-size: 1.05rem; }
.cal-day[aria-pressed="true"] { outline: 3px solid var(--violet); outline-offset: 1px; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--citrus); }
.lvl-lower { background: #d9f2e4; color: #0f4d2b; } .lvl-moderate { background: #e3e8ff; color: #1f2f86; }
.lvl-busy { background: #fde8c8; color: #7a3f00; } .lvl-peak { background: #fbd3e3; color: #8a0f43; }
.big-score { display: inline-block; font-size: 1.4rem; font-weight: 800; padding: 6px 14px; border-radius: 12px; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s2); font-size: .85rem; } .legend span { padding: 2px 10px; border-radius: 999px; font-weight: 700; }
@media (min-width: 900px) { .cal-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--s5); align-items: start; } }
/* Ads (only rendered when configured, consented and not premium) */
.ad-slot { margin: var(--s5) 0; text-align: center; min-height: 0; }
.ad-slot.filled { min-height: 120px; }
.ad-slot .ad-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); display: block; margin-bottom: 4px; }
.consent { position: fixed; left: var(--s3); right: var(--s3); bottom: calc(var(--bar-h) + 12px + env(safe-area-inset-bottom)); z-index: 70; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s4); max-width: 640px; margin: 0 auto; }
@media (min-width: 900px) { .consent { bottom: var(--s4); } }
.account-box { max-width: 560px; }
.premium-badge { background: linear-gradient(135deg, var(--citrus), #ffd669); color: var(--citrus-ink); font-weight: 800; padding: 2px 10px; border-radius: 999px; font-size: .8rem; }
/* Mobile menu (no JS needed) */
.mobile-menu { position: relative; }
.mobile-menu summary { list-style: none; cursor: pointer; min-height: var(--tap); display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 10px; color: #fff; font-weight: 700; box-shadow: inset 0 0 0 1px #ffffff55; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s2); width: min(86vw, 300px); display: grid; z-index: 90; max-height: 75vh; overflow: auto; }
.mobile-menu nav a { color: var(--ink); text-decoration: none; padding: 12px; border-radius: 8px; font-weight: 600; min-height: var(--tap); }
.mobile-menu nav a:hover { background: var(--violet-soft); }
@media (min-width: 900px) { .mobile-menu { display: none; } }
.bottom-bar { grid-template-columns: repeat(5, 1fr); }
.bottom-bar a { font-size: .86rem; }
/* misc */
.pill-nav { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s4) 0; }
.pill-nav a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; text-decoration: none; font-weight: 600; min-height: 40px; display: inline-flex; align-items: center; }
.checklist { list-style: none; padding: 0; } .checklist li::before { content: "☐ "; color: var(--violet); font-weight: 700; }
details.menu { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 var(--s4); margin-bottom: var(--s3); }
details.menu[open] { padding-bottom: var(--s4); }
input.qty { width: 72px; min-height: 36px; padding: 4px 8px; }
input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 2px var(--bad-soft); }
.cal-day .cd-n { opacity: 1; }
.lvl-busy { color: #6b3400; }
.option.excluded { opacity: .6; }
.opt-head { display: flex; align-items: center; gap: var(--s3); justify-content: space-between; flex-wrap: wrap; }
.opt-head h3 { margin: 0; }
.ok-text { color: var(--ok); }
.ideas { padding-left: 1.2em; } .ideas > li { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); align-items: start; }
.ideas .why { margin: 4px 0 0; padding-left: 1.1em; font-size: .9rem; color: var(--ink-2); }
.file-btn { flex-direction: row; cursor: pointer; }
.tool .out { margin-top: var(--s3); }
@media (max-width: 420px) { .brand { font-size: .92rem; } .brand-mark { width: 22px; height: 22px; } .header-actions { gap: 2px; } }
/* Map */
.map { height: min(62vh, 520px); min-height: 320px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); margin: var(--s3) 0; z-index: 0; }
.map-controls { align-items: center; margin: var(--s3) 0; }
.map-list { list-style: none; padding: 0; }
.map-list li { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); align-items: start; }
.map-list .dist { font-weight: 800; color: var(--violet); white-space: nowrap; }
.leaflet-popup-content { font: 14px/1.4 var(--font); }
[data-cat][aria-pressed="true"] { background: var(--sky-grad); color: #fff; box-shadow: none; }
/* Forms */
.form-card { display: grid; gap: var(--s3); max-width: 820px; }
.form-card textarea { width: 100%; font: inherit; }
fieldset.checks { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--s3); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 var(--s3); }
fieldset.checks legend { font-weight: 700; padding: 0 6px; }
textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
@media (max-width: 899px) {
  .map-controls { flex-direction: column; align-items: stretch; }
  .map-controls .presets { flex-wrap: nowrap; overflow-x: auto; margin: 0; padding-bottom: 4px; }
  .map-controls .presets .btn-sm { flex: none; }
  .map { height: 55vh; }
}

/* ===== Trip planner ===== */
.planner { margin-top: var(--s4); }
.pl-setup { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s4); align-items: end; }
.pl-setup label { display: grid; gap: 4px; font-size: .9rem; font-weight: 600; }
.pl-setup label.check { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.pl-setup input, .pl-setup select { min-height: 40px; }
.pl-strip { display: flex; gap: 6px; overflow-x: auto; margin: var(--s4) 0 var(--s3); padding-bottom: 6px; scrollbar-width: thin; }
.pl-strip button { flex: none; flex-direction: column; gap: 0; line-height: 1.15; padding: 6px 12px; }
.pl-strip button .fine { font-size: .72rem; font-weight: 500; }
.pl-strip button[aria-pressed="true"] { background: var(--sky-grad); color: #fff; box-shadow: none; }
.pl-strip button[aria-pressed="true"] .fine { color: #fff; }
.pl-grid { display: grid; gap: var(--s4); }
.pl-catalog { display: flex; flex-direction: column; min-height: 0; }
.pl-cat-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.pl-cat-head h2 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pl-cat-head select { font: inherit; font-weight: 600; min-height: 38px; max-width: 100%; }
.pl-tabs { margin: var(--s3) 0 var(--s2); }
.pl-filters { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pl-filters label { display: grid; gap: 2px; font-size: .82rem; font-weight: 600; flex: 1 1 140px; }
.pl-filters input, .pl-filters select { min-height: 38px; font: inherit; font-size: .95rem; }
.pl-count { margin: var(--s2) 0; }
.pl-cat, .pl-list { list-style: none; margin: 0; padding: 0; }
.pl-cat { overflow-y: auto; display: grid; gap: 6px; padding-right: 2px; }
.pl-card, .pl-item { display: flex; gap: 8px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius-sm); padding: 8px; }
.pl-card { align-items: center; cursor: grab; }
.pl-card-main, .pl-item-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pl-name { font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.pl-name a { color: inherit; text-decoration: none; } .pl-name a:hover { text-decoration: underline; }
.pl-add { font-size: 1.2rem; min-width: 44px; min-height: 44px; background: var(--teal); color: var(--teal-ink); box-shadow: none; }
.drag { flex: none; width: 28px; min-height: 36px; display: grid; place-items: center; color: var(--ink-2); font-size: 1.15rem; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 6px; }
.drag:hover { background: var(--surface-2); }
.kind-ride { border-left-color: var(--violet); } .kind-dining { border-left-color: var(--pink); } .kind-travel { border-left-color: var(--sky); background: var(--surface-2); }
.kind-place { border-left-color: var(--citrus); } .kind-break { border-left-color: var(--ok); } .kind-note { border-left-color: var(--unk); }
.pl-empty, .pl-drop-hint { color: var(--ink-2); font-size: .92rem; padding: var(--s3); text-align: center; border: 2px dashed var(--line); border-radius: var(--radius-sm); }
.pl-drop-hint { margin: 0; }
.pl-board { min-width: 0; }
.pl-days { display: grid; gap: var(--s3); }
.pl-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3); box-shadow: var(--shadow); scroll-margin: 80px; }
.pl-day.active { outline: 3px solid var(--citrus); outline-offset: -1px; }
.pl-day.drop { background: var(--violet-soft); }
.pl-day-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pl-day-title { font: inherit; background: none; border: 0; padding: 4px 0; color: inherit; cursor: pointer; display: flex; gap: 8px; align-items: baseline; }
.pl-day-title span { color: var(--ink-2); font-size: .92rem; }
.pl-day-opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; align-items: center; }
.pl-day-opts select { font: inherit; font-size: .92rem; min-height: 38px; max-width: 100%; }
.pl-hop { display: flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.pl-day-tools { margin: 0 0 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pl-list { display: grid; gap: 6px; min-height: 12px; }
.pl-item-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pl-time { font: inherit; font-size: .85rem; min-height: 34px; padding: 2px 4px; width: 7.2em; }
.pl-mins { width: 4.2em; font: inherit; font-size: .85rem; min-height: 30px; }
.pl-item-ctrl { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.pl-item-ctrl select { font: inherit; font-size: .85rem; min-height: 36px; max-width: 11em; }
.pl-item.canceled .pl-name { text-decoration: line-through; opacity: .6; }
.pl-item.has-bad { border-color: var(--bad); }
.pl-issue { margin: 4px 0 0; font-size: .85rem; padding: 4px 8px; border-radius: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pl-issue.lvl-bad { background: var(--bad-soft); color: var(--bad); }
.pl-issue.lvl-warn { background: var(--warn-soft); color: var(--warn); }
.pl-issue.lvl-info { background: var(--unk-soft); color: var(--ink-2); }
.pl-placeholder { height: 44px; border: 2px dashed var(--violet); border-radius: var(--radius-sm); background: var(--violet-soft); }
.pl-ghost { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; opacity: .92; box-shadow: 0 12px 30px rgb(0 0 0 / .25); transform-origin: 0 0; }
.pl-dragging { opacity: .35; }
body.pl-is-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.pl-actions { margin-top: var(--s4); }
.pl-dialog { border: 0; border-radius: var(--radius); padding: var(--s5); max-width: min(560px, calc(100vw - 24px)); width: 100%; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgb(0 0 0 / .35); max-height: calc(100vh - 32px); overflow: auto; }
.pl-dialog::backdrop { background: rgb(15 20 70 / .55); }
.pl-dialog h2 { margin-top: 0; }
.pl-opts { border: 0; padding: 0; margin: var(--s3) 0; display: grid; gap: 8px; }
.pl-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.pl-opt:has(input:checked) { border-color: var(--teal-2); background: var(--surface-2); }
.pl-opt.warn { border-color: var(--warn); }
.pl-opt input { margin-top: 4px; }
.pl-dialog .form-grid label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.pl-fab { display: none; }
.pl-sheet-close { display: none; }
@media (min-width: 900px) {
  .pl-grid { grid-template-columns: minmax(300px, 360px) 1fr; align-items: start; }
  .pl-catalog { position: sticky; top: 76px; max-height: calc(100vh - 92px); }
  .pl-days { grid-auto-flow: column; grid-auto-columns: minmax(290px, 320px); overflow-x: auto; padding-bottom: var(--s3); align-items: stretch; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .pl-day { scroll-snap-align: start; display: flex; flex-direction: column; } .pl-day .pl-list { flex: 1; min-height: 80px; align-content: start; }
}
@media (max-width: 899px) {
  .pl-catalog { position: fixed; left: 0; right: 0; bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); z-index: 70; max-height: 62vh; border-radius: 18px 18px 0 0; transform: translateY(105%); transition: transform .22s ease, opacity .2s; box-shadow: 0 -10px 40px rgb(0 0 0 / .25); padding-bottom: var(--s3); }
  .pl-catalog.open { transform: none; }
  .pl-catalog.open.peek { opacity: .35; pointer-events: none; }
  .pl-sheet-close { display: inline-flex; }
  .pl-fab { display: inline-flex; position: fixed; right: 16px; bottom: calc(var(--bar-h) + 14px + env(safe-area-inset-bottom)); z-index: 65; box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
  .pl-catalog.open ~ .pl-fab, .planner:has(.pl-catalog.open) .pl-fab { display: none; }
  .planner { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { .pl-catalog { transition: none; } }
@media print { .pl-catalog, .pl-fab, .pl-strip, .pl-setup, .pl-item-ctrl, .drag, .pl-actions, .pl-drop-hint { display: none !important; } .pl-days { display: block !important; } .pl-day { break-inside: avoid; margin-bottom: 12px; box-shadow: none; } .pl-time { border: 0; } }

/* ===== Everything we cover (outline) ===== */
.ol-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); margin: var(--s4) 0; }
.ol-stats a { text-decoration: none; color: inherit; display: grid; gap: 2px; text-align: center; }
.ol-stats strong { font-family: var(--display); font-size: 1.8rem; color: var(--violet); }
.ol-stats span { font-size: .9rem; color: var(--ink-2); }
.ol-tree > details.outline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: var(--s3); box-shadow: var(--shadow); }
details.outline > summary { cursor: pointer; padding: 12px 16px; min-height: 44px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; list-style-position: inside; }
details.outline details.outline { margin: 0 var(--s3) 4px; border-left: 3px solid var(--violet-soft); }
details.outline details.outline > summary { padding: 8px 12px; }
.ol-count { font-size: .8rem; color: var(--ink-2); background: var(--surface-2); padding: 1px 8px; border-radius: 999px; }
.ol-list { margin: 0 0 var(--s3); padding: 0 var(--s4) 0 calc(var(--s4) + 18px); columns: 2 260px; column-gap: var(--s5); }
.ol-list li { break-inside: avoid; margin-bottom: 4px; }
details.outline .fine { padding: 0 var(--s4); }
.pl-cta { text-align: center; background: var(--sky-grad); color: #fff; } .pl-cta h2 { color: #fff; }
.pl-away { color: var(--warn); font-weight: 600; }
/* planner fixes */
input[type="radio"] { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; accent-color: var(--teal); }
.pl-catalog > * { flex-shrink: 0; }
.pl-catalog > .pl-cat { flex: 1 1 auto; min-height: 0; flex-shrink: 1; }
.pl-day-opts select { width: auto; flex: 1 1 160px; }
.pl-day-opts .pl-hop { flex-direction: row; align-items: center; flex: 1 1 200px; white-space: nowrap; }
.pl-day-opts .pl-hop select { flex: 1 1 auto; min-width: 0; }
.pl-time { width: 8.6em; min-height: 36px; padding: 2px 6px; font-size: 15px; }
.pl-mins { width: 4.6em; min-height: 32px; padding: 2px 6px; font-size: 15px; display: inline-block; }
.pl-item-ctrl select { width: auto; flex: 1 1 8em; min-height: 36px; padding: 2px 8px; font-size: 15px; }
.pl-filters input, .pl-filters select, .pl-cat-head select { width: 100%; }
.pl-item .fine label { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; font-weight: 500; }
@media (max-width: 899px) {
  .pl-catalog { visibility: hidden; transition: transform .22s ease, opacity .2s, visibility 0s .22s; }
  .pl-catalog.open { visibility: visible; transition: transform .22s ease, opacity .2s; }
}
.pl-opt { flex-direction: row; font-weight: 400; font-size: 1rem; } .pl-opt > span { flex: 1; }
.pl-day .pl-list:empty { flex: 0 0 auto; min-height: 0; } .pl-day .pl-drop-hint { flex: 1; display: grid; place-content: center; gap: 8px; }
