:root {
  color-scheme: light;
  --page: #f7f8fc;
  --surface: #ffffff;
  --ink: #172038;
  --muted: #667085;
  --line: #e4e7ec;
  --accent: #4f46e5;
  --accent-soft: #eef2ff;
  --yes: #087443;
  --yes-soft: #e9f8f0;
  --no: #b42318;
  --no-soft: #fff0ee;
  --conditional: #9a6700;
  --conditional-soft: #fff7d6;
  --shadow: 0 12px 35px rgba(16, 24, 40, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.shell { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 20; padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner, .footer-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; text-decoration: none; letter-spacing: -.02em; }
.brand-logo { width: 40px; height: 40px; flex: 0 0 auto; }
.park-pill, .land-badge { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 5px 10px; font-size: .78rem; font-weight: 700; }

.hero { padding-block: 64px 26px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 48px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: .78rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { max-width: 760px; margin: 0; font-size: clamp(2.35rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -.055em; }
.intro { margin: 22px 0 0; color: var(--muted); font-size: 1.14rem; }
.height-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }

.name-field { margin-bottom: 22px; }
.name-field label { display: block; margin-bottom: 8px; font-weight: 800; }
.name-field label span { color: var(--muted); font-size: .82rem; font-weight: 650; }
#child-name { width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--page); color: var(--ink); padding: 12px 14px; outline: none; }
#child-name:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

fieldset { border: 0; padding: 0; margin: 0; }
legend { width: 100%; margin-bottom: 16px; font-weight: 800; }
.unit-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 4px; background: var(--page); border-radius: 12px; }
.unit-button, .filter-button,
.park-button { border: 0; border-radius: 9px; background: transparent; color: var(--muted); padding: 9px 14px; font-weight: 750; }
.unit-button.is-active, .filter-button.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(16,24,40,.08); }
.height-input-row { margin-top: 18px; display: flex; align-items: baseline; gap: 10px; }
#height-input { width: 100%; min-width: 0; border: 0; border-bottom: 3px solid var(--accent); background: transparent; color: var(--ink); font-size: clamp(3.2rem, 9vw, 5.6rem); font-weight: 900; line-height: 1; outline: none; }
.unit-label { color: var(--muted); font-size: 1.35rem; font-weight: 800; }
.conversion { min-height: 24px; margin: 10px 0 0; color: var(--muted); font-size: .92rem; }

.summary-section { padding-block: 10px 22px; }
.summary-card { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; background: var(--ink); color: white; border-radius: var(--radius); }
.summary-card > div { padding: 22px; text-align: center; }
.summary-card > div + div { border-left: 1px solid rgba(255,255,255,.14); }
.summary-number { display: block; font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 900; letter-spacing: -.04em; }
.summary-label { color: rgba(255,255,255,.7); font-size: .84rem; }

.controls { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, .8fr); align-items: end; gap: 18px; padding-block: 12px 20px; }
.filter-buttons { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); background: var(--surface); border-radius: 13px; }
.checkbox-label { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: .9rem; font-weight: 650; }
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--accent); }
.ad-slot { min-height: 90px; width: min(728px, calc(100% - 32px)); margin: 10px auto 34px; display: grid; place-items: center; border: 1px dashed #cbd0d9; color: #98a2b3; background: rgba(255,255,255,.45); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }

.results-section { padding-bottom: 36px; }
.results-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.results-heading h2 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.25rem); letter-spacing: -.035em; }
.visible-count { margin: 0; color: var(--muted); font-size: .9rem; }
.ride-list { display: grid; gap: 10px; }
.ride-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.ride-card[data-status="available"] { border-left: 5px solid var(--yes); }
.ride-card[data-status="restricted"] { border-left: 5px solid var(--no); }
.ride-card[data-status="conditional"] { border-left: 5px solid var(--conditional); }
.status-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 900; }
.ride-card[data-status="available"] .status-icon { color: var(--yes); background: var(--yes-soft); }
.ride-card[data-status="restricted"] .status-icon { color: var(--no); background: var(--no-soft); }
.ride-card[data-status="conditional"] .status-icon { color: var(--conditional); background: var(--conditional-soft); }
.ride-title-row { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.ride-name { margin: 2px 0 4px; font-size: 1.02rem; letter-spacing: -.015em; }
.ride-rule, .ride-detail { margin: 0; color: var(--muted); font-size: .9rem; }
.ride-detail { margin-top: 4px; font-weight: 700; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--radius); }
.info-card { margin-bottom: 50px; padding: 26px; border-radius: var(--radius); background: var(--accent-soft); }
.info-card h2 { margin: 0 0 8px; }
.info-card p { margin: 7px 0 0; color: #454b68; }
.verified { font-size: .84rem; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .86rem; }
.footer-inner nav { display: flex; gap: 18px; }
.footer-inner a:hover { color: var(--ink); }

.content-page { padding-block: 54px 80px; max-width: 760px; }
.content-page h1 { font-size: clamp(2.5rem, 7vw, 4rem); }
.content-page h2 { margin-top: 34px; }
.content-page p, .content-page li { color: var(--muted); }

.control-group {
  display: grid;
  gap: 0.5rem;
}

.control-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ride-park-heading {
  grid-column: 1 / -1;
  margin: 1.5rem 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.ride-park-heading:first-child {
  margin-top: 0;
}

.park-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 13px;
}
.park-button { white-space: nowrap; }
.park-button.is-active { background: var(--accent); color: white; box-shadow: 0 2px 8px rgba(79,70,229,.24); }
.control-group-wide { min-width: 0; }

.site-footer {
  margin-top: 5rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: .75rem;
}

.footer-brand p {
  margin: .35rem 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-credit {
  margin-top: 1rem;
}

.site-credit a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.site-credit a:hover {
  text-decoration: underline;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.footer-column h3 {
  margin: 0 0 .5rem;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.footer-column a {
  color: inherit;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-disclaimer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.6;
}

@media (max-width: 768px) {

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

}

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 26px; padding-top: 42px; }
  .controls { grid-template-columns: 1fr; align-items: stretch; }
  .filter-buttons { width: 100%; }
  .filter-button { flex: 1; padding-inline: 8px; }
  .results-heading { align-items: start; flex-direction: column; }
  .ride-title-row { flex-direction: column; gap: 6px; }
  .land-badge { align-self: flex-start; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 22px; }
}

@media (max-width: 460px) {
  .shell { width: min(100% - 22px, 1080px); }
  .park-pill { display: none; }
  .summary-card > div { padding: 16px 8px; }
  .summary-label { font-size: .72rem; }
  .ride-card { padding: 15px; }
}


.trust-list { display: grid; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); }
.trust-list li { display: flex; gap: 9px; align-items: center; }
.trust-list li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--yes-soft); color: var(--yes); font-weight: 900; }
.seo-content { margin-bottom: 50px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.seo-content h2 { margin: 0 0 10px; font-size: clamp(1.5rem, 4vw, 2rem); }
.seo-content p { color: var(--muted); }
.height-guide-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; }
.height-guide-links a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 750; }
.height-guide-links a:hover { border-color: var(--accent); color: var(--accent); }
.footer-inner strong { color: var(--ink); }
.footer-inner p { margin: 4px 0 0; }
.footer-disclaimer { margin-top: 0; padding: 0 0 22px; text-align: center; color: var(--muted); font-size: .78rem; }
@media (max-width: 760px) {
  .brand span { max-width: 210px; line-height: 1.05; }
  .park-button { padding: 10px 13px; }
}

.park-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.park-page-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.park-page-links a:hover,
.park-page-links a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}


/* Resort-grouped park navigation */
.resort-filter-group {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.resort-filter-label {
  padding-left: 4px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.resort-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
@media (max-width: 700px) {
  .park-filter {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .park-filter > .park-button {
    justify-self: start;
  }
  .resort-filter-group {
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .resort-filter-group:first-of-type {
    padding-top: 0;
    border-top: 0;
  }
  .resort-filter-label { font-size: .62rem; }
}


.retirement-badge {
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: .74rem;
  font-weight: 800;
  white-space: nowrap;
}
