/* ==========================================================
   Rugrat Racers Early Childhood Center
   Colors are pulled straight from the logo.
   ========================================================== */
:root {
  --royal: #003ec2;        /* logo royal blue */
  --royal-dark: #002a85;
  --royal-tint: #e8eefc;
  --sky: #5abcee;          /* "ug" letters in the logo */
  --sky-soft: #a8dcf7;     /* same blue, light enough for small text on royal */
  --gray: #8d8d8d;         /* "rat" letters in the logo */
  --black: #0d0d0d;
  --ink: #1b1f2a;          /* body text */
  --muted: #5f6572;
  --white: #ffffff;
  --paper: #fbf7f1;        /* warm off-white, replaces the old cool grey */
  --cream: #fff8ee;
  --sand: #f7efe3;
  --peach: #ffeadf;
  --blush: #fdeef3;
  --mint: #eaf6ef;
  --sun: #ffd34d;

  --radius: 22px;
  --shadow: 0 8px 24px rgba(70, 50, 30, .10);
  --max: 1120px;

  --font-display: "Fredoka", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--royal); }
a:hover { color: var(--royal-dark); }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--black);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--black); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

/* ---------- Racing details ---------- */
.checker {
  height: 20px;
  background: conic-gradient(var(--black) 25%, var(--white) 0 50%, var(--black) 0 75%, var(--white) 0) 0 0 / 20px 20px;
}
.road {
  height: 34px;
  background:
    repeating-linear-gradient(90deg, var(--white) 0 40px, transparent 40px 80px) center / 100% 4px no-repeat,
    var(--black);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; font-size: .85rem;
  color: var(--royal);
  margin-bottom: .6em;
}
.eyebrow::before {
  content: ""; width: 18px; height: 12px;
  background: conic-gradient(currentColor 25%, transparent 0 50%, currentColor 0 75%, transparent 0) 0 0 / 6px 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
  text-decoration: none; text-align: center;
  padding: .75em 1.4em; border-radius: 999px;
  border: 3px solid transparent;
  transition: transform .15s ease, background-color .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--royal); color: var(--white); }
.btn-primary:hover { background: var(--royal-dark); color: var(--white); }
.btn-light { background: var(--white); color: var(--royal); }
.btn-light:hover { color: var(--royal-dark); }
.btn-outline-light { border-color: var(--white); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: var(--white); }

/* ---------- Draft placeholders (remove .draft from <body> at launch) ---------- */
.draft .todo {
  background: #fff1a8;
  outline: 2px dashed #d4a600;
  outline-offset: 1px;
  border-radius: 4px;
  padding: 0 4px;
  color: #3d3000;
}
.draft-banner {
  display: none;
  background: #fff1a8; color: #3d3000;
  text-align: center; font-size: .9rem; padding: 6px 12px;
  border-bottom: 2px dashed #d4a600;
}
.draft .draft-banner { display: block; }

/* ---------- Top bar + header ---------- */
.topbar {
  background: var(--black); color: var(--white);
  font-size: .9rem;
}
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 24px;
  justify-content: space-between; padding-top: 6px; padding-bottom: 6px;
}
.topbar a { color: var(--white); }

.site-header {
  background: var(--white);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 0 var(--royal);
}
.site-header .wrap {
  max-width: 1300px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 10px; padding-bottom: 10px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--black);
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.05;
}
.brand { flex-shrink: 0; white-space: nowrap; }
.brand img { width: 64px; }
.brand small { display: block; font-size: .72rem; font-weight: 500; color: var(--royal); letter-spacing: .04em; text-transform: uppercase; }

.nav-toggle {
  display: none;
  background: var(--royal); color: var(--white);
  border: 0; border-radius: 10px; padding: 8px 14px;
  font-family: var(--font-display); font-size: 1rem; cursor: pointer;
}
.main-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 4px;
}
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500;
  color: var(--black); text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--royal-tint); color: var(--royal); }
.main-nav .btn[aria-current="page"] { background: var(--royal-dark); }
.main-nav .btn { padding: .5em 1.1em; font-size: 1rem; color: var(--white); margin-left: 6px; }
.main-nav .btn:hover { background: var(--royal-dark); color: var(--white); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); box-shadow: var(--shadow); }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 18px; }
  .main-nav .btn { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--royal);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* faint checkered flag texture */
  content: ""; position: absolute; inset: 0;
  background: conic-gradient(rgba(255,255,255,.06) 25%, transparent 0 50%, rgba(255,255,255,.06) 0 75%, transparent 0) 0 0 / 56px 56px;
  mask-image: linear-gradient(110deg, transparent 35%, #000 100%);
  -webkit-mask-image: linear-gradient(110deg, transparent 35%, #000 100%);
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px;
  padding-top: 56px; padding-bottom: 56px;
}
.hero h1 { color: var(--white); }
.hero .eyebrow { color: var(--sky-soft); }
.hero .lead { font-size: 1.2rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-logo img { width: 100%; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.3)); }
.opening-badge {
  display: inline-block;
  background: var(--black); color: var(--white);
  font-family: var(--font-display); font-weight: 600;
  padding: 6px 16px; border-radius: 999px; margin-bottom: 16px;
  border: 2px solid var(--white);
}
.hero .todo { color: #3d3000; }

@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 32px; }
  .hero-logo { order: -1; }
  .hero-logo img { max-width: 360px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* ---------- Quick facts ---------- */
.facts { background: var(--paper); padding: 28px 0; }
.facts ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.facts li {
  background: var(--white); border-radius: var(--radius); padding: 16px 18px;
  border-left: 6px solid var(--royal);
  box-shadow: 0 2px 8px rgba(0,30,90,.06);
}
.facts strong { display: block; font-family: var(--font-display); font-weight: 600; color: var(--royal); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 820px) { .facts ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .facts { padding: 18px 0; }
  .facts ul { gap: 10px; }
  .facts li { padding: 12px 12px; font-size: .92rem; border-left-width: 5px; }
  .facts strong { font-size: .72rem; }
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 44em; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-note { font-size: .9rem; color: var(--muted); font-style: italic; }

/* Programs */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .card-grid { grid-template-columns: 1fr; } }
.program {
  position: relative;
  background: var(--white); border-radius: var(--radius);
  padding: 26px 22px 22px;
  box-shadow: var(--shadow);
  border-top: 8px solid var(--royal);
}
.program .car-number {
  position: absolute; top: -22px; right: 18px;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--white); color: var(--royal);
  border: 4px solid var(--royal);
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
}
.program .ages { font-weight: 700; color: var(--royal); margin-bottom: .4em; }
.program p:last-child { margin-bottom: 0; }

/* Safety / trust */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
  position: relative; background: var(--white); border-radius: 14px;
  padding: 14px 16px 14px 62px; box-shadow: 0 2px 8px rgba(0,30,90,.06);
}
.checklist li::before {
  content: ""; position: absolute; left: 16px; top: 14px;
  width: 34px; height: 34px; border-radius: 8px; box-sizing: border-box;
  background: conic-gradient(var(--black) 25%, var(--white) 0 50%, var(--black) 0 75%, var(--white) 0) 0 0 / 17px 17px;
  border: 2px solid var(--black);
}
.checklist strong { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; display: block; }
.callout {
  background: var(--royal); color: var(--white);
  border-radius: var(--radius); padding: 28px;
}
.callout h2,
.callout h3 { color: var(--white); }
/* a callout heading can be an h2 for document structure without growing */
.callout h2 { font-size: 1.35rem; font-weight: 600; }
.callout a { color: var(--white); font-weight: 700; }

/* Enrollment laps */
.laps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: lap; }
@media (max-width: 900px) { .laps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .laps { grid-template-columns: 1fr; } }
.laps li {
  counter-increment: lap;
  background: var(--white); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
}
.laps li::before {
  content: "Lap " counter(lap);
  display: inline-block; margin-bottom: 10px;
  background: var(--black); color: var(--white);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem;
  padding: 3px 12px; border-radius: 999px;
}
.laps li:last-child::before { content: "Finish line"; background: var(--royal); }

/* Resources */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 700px) { .resource-grid { grid-template-columns: 1fr; } }
.resource {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--white); border: 2px solid var(--royal-tint); border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color .15s ease, transform .15s ease;
}
.resource:hover { border-color: var(--royal); transform: translateY(-2px); color: var(--ink); }
.resource h3 { color: var(--royal); margin-bottom: .3em; }
.resource h3::after { content: " \2192"; }
.resource p { margin: 0; color: var(--muted); }
.resource .source { display: block; margin-top: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); }

/* Interest list / contact */
.contact { background: var(--royal); color: var(--white); }
.contact h2, .contact h3 { color: var(--white); }
.contact .eyebrow { color: var(--sky-soft); }
.contact a { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
@media (max-width: 820px) {
  .contact-grid { grid-template-columns: 1fr; }
  /* on a phone the tour card is what the page is for, so it goes first and the
     address, hours and tour times follow it */
  .contact-grid > .form-card { order: -1; }
}
.contact dl { margin: 0; display: grid; gap: 14px; }
.contact dt { font-family: var(--font-display); font-weight: 600; color: var(--sky); }
.contact dd { margin: 0; }
.form-card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); padding: 26px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.form-card h3 { color: var(--black); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 4px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink);
  padding: 10px 12px; border-radius: 10px;
  border: 2px solid #cfd6e4; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--royal); outline: none; }
.form-card .btn { width: 100%; }
.form-card .fine { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #d9dce3; font-size: .95rem; }
.site-footer .wrap { padding-top: 44px; padding-bottom: 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--white); font-size: 1.1rem; }
.site-footer a { color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-brand img { width: 120px; margin-bottom: 10px; }
.footer-legal {
  border-top: 1px solid #333; margin-top: 32px; padding-top: 18px;
  font-size: .85rem; color: #a9aebb;
}
.footer-legal p { margin: 0 0 .5em; }

/* ---- Team photos: round portrait, cartoon badge tucked in the corner ---- */
.team-photo { position: relative; aspect-ratio: 1 / 1; margin-bottom: 12px; }
.team-photo .frame { position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--white); box-shadow: 0 0 0 5px var(--royal), 0 12px 26px rgba(0,30,90,.22);
  background: linear-gradient(160deg, var(--royal-tint), #dbe7ff); }
.team-photo img.real { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-photo img.toon { position: absolute; right: -4%; bottom: -6%; width: 42%; height: auto; z-index: 2;
  filter: drop-shadow(0 6px 12px rgba(0,30,90,.3)); }
.team-photo:not(.has-photo) img.toon { position: static; width: 100%; filter: none; }
.team-photo .checker-ring { position: absolute; inset: -14px; border-radius: 50%; z-index: -1;
  background: repeating-conic-gradient(var(--black) 0 12deg, var(--white) 12deg 24deg); opacity: .9; }
.team-photo .todo { position: absolute; inset: 0; display: grid; place-items: center; font-size: .8rem; }

/* ---- Promo banners ---- */
.promo { display: block; margin: 18px 0; border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,30,90,.18); }
.promo img { display: block; width: 100%; height: auto; }
.promo-pair { display: grid; gap: 16px; }
@media (min-width: 900px) { .promo-pair { grid-template-columns: 1fr 1fr; } }

/* ---- Pit crew cards ---- */
.pit-crew { display: grid; gap: 22px; }
.crew-card { display: grid; gap: 18px; align-items: start; background: var(--white);
  border: 2px solid var(--royal-tint); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
@media (min-width: 820px) { .crew-card { grid-template-columns: 260px 1fr; } }
.crew-card .team-photo { margin: 0; }
.crew-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 2px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; color: var(--royal); }
.crew-flag { width: 18px; height: 18px; }
.crew-card h3 { margin: 0 0 4px; font-size: 1.5rem; }
.crew-badge { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px;
  background: var(--royal); color: var(--white); font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.crew-body p { margin: 0 0 10px; }
.crew-body p:last-child { margin-bottom: 0; }

/* ---- Now hiring card ---- */
.crew-card.hiring { border-style: dashed; border-color: var(--royal); background:
  repeating-linear-gradient(135deg, var(--royal-tint) 0 14px, #fff 14px 28px); }
.hiring-art { position: relative; aspect-ratio: 1 / 1; border-radius: 16px; background: var(--white);
  border: 2px solid var(--royal-tint); display: grid; place-items: center; overflow: hidden; }
.hiring-art .hiring-helmet { width: 58%; filter: drop-shadow(0 6px 12px rgba(0,30,90,.2)); }
.hiring-art .hiring-lights { position: absolute; right: 10px; bottom: 10px; width: 26%; }
.crew-card.hiring .btn { margin-right: 8px; }

/* ---- Credentials grid ---- */
.cred-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cred { background: var(--white); border: 2px solid var(--royal-tint); border-radius: var(--radius);
  padding: 18px 18px 16px; box-shadow: var(--shadow); position: relative; transition: transform .15s ease, border-color .15s ease; }
.cred:hover { transform: translateY(-3px); border-color: var(--royal); }
.cred img { width: 42px; height: 42px; margin-bottom: 8px; }
.cred h3 { margin: 0 0 6px; font-size: 1.05rem; color: var(--royal-dark); }
.cred p { margin: 0; font-size: .92rem; color: var(--muted); }
.eyebrow-doodle { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }

/* ================= the little racer ================= */
.road-track { position: relative; overflow: hidden; }
.road-car {
  position: absolute; bottom: 2px; left: -90px; width: 64px; height: 64px;
  animation: drive 14s linear infinite;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,.45));
}
@keyframes drive {
  0%   { left: -90px; transform: translateY(0) rotate(-1deg); }
  48%  { transform: translateY(-2px) rotate(1deg); }
  100% { left: 102%;  transform: translateY(0) rotate(-1deg); }
}
@media (prefers-reduced-motion: reduce) {
  .road-car { animation: none; left: 24px; }
}

/* ================= FAQ ================= */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--white); border: 2px solid var(--royal-tint); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden; transition: border-color .15s ease, transform .15s ease;
}
.faq details:hover { border-color: var(--royal); transform: translateY(-2px); }
.faq details[open] { border-color: var(--royal); }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 52px; position: relative;
  font-weight: 700; color: var(--royal-dark); font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: ""; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; background: url("../images/doodles/flag.svg") center / contain no-repeat;
}
.faq summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 11px; height: 11px;
  border-right: 3px solid var(--royal); border-bottom: 3px solid var(--royal);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > :not(summary) { margin: 0 20px 14px 52px; color: var(--muted); }
.faq details > :not(summary):last-child { margin-bottom: 20px; }
.faq details > .table-wrap { margin-top: 4px; }
@media (max-width: 680px) {
  .faq details > :not(summary) { margin-left: 18px; margin-right: 18px; }
}
.faq details[open] > p { animation: faqIn .18s ease-out; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ================= doodle flourishes ================= */
.section { position: relative; }
.section.alt { background: var(--paper); }
.section.alt::after {
  content: ""; position: absolute; right: 2%; top: 18px; width: 92px; height: 92px; opacity: .10;
  background: url("../images/doodles/race-car.svg") center / contain no-repeat; pointer-events: none;
}
.section-head { position: relative; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border: 2px solid var(--royal-tint); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-3px); border-color: var(--royal); }
.card h3 { margin-top: 0; color: var(--royal-dark); }

/* ================= application form ================= */
.wrap.narrow { max-width: 820px; }
.apply-intro { background: var(--royal-tint); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; }
.apply-intro h2 { margin-top: 0; }
.apply-form { background: var(--white); border: 2px solid var(--royal-tint); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); }
.apply-form h2 { margin-top: 0; }
.apply-form h3 { margin: 22px 0 8px; color: var(--royal-dark); font-size: 1.05rem;
  padding-bottom: 6px; border-bottom: 3px dashed var(--royal-tint); }
.apply-form label { display: block; margin-bottom: 12px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.apply-form input[type="text"], .apply-form input[type="tel"], .apply-form input[type="email"],
.apply-form input[type="date"], .apply-form textarea {
  width: 100%; margin-top: 5px; padding: 10px 12px; font: inherit; color: var(--ink);
  border: 2px solid #d8e2f6; border-radius: 12px; background: #fbfcff;
}
.apply-form input:focus, .apply-form textarea:focus { outline: none; border-color: var(--royal); background: var(--white); }
.field-row { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.apply-form .checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 10px; }
.apply-form .checks label { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 0;
  background: var(--paper); border: 2px solid var(--royal-tint); border-radius: 12px; padding: 9px 12px; cursor: pointer; }
.apply-form .checks label:hover { border-color: var(--royal); }
.apply-form .checks input { accent-color: var(--royal); width: 18px; height: 18px; }
.apply-form .mini { color: var(--muted); font-size: .86rem; margin: 0 0 10px; }
.apply-form button { margin-top: 16px; }
.apply-alt { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius);
  border: 2px dashed var(--royal); background: repeating-linear-gradient(135deg, var(--royal-tint) 0 14px, #fff 14px 28px); }
.apply-alt h2 { margin-top: 0; }

/* ================= hiring page ================= */
.hire-hero { background: linear-gradient(135deg, var(--royal) 0%, var(--royal-dark) 60%, #001b57 100%);
  color: var(--white); padding: 38px 0 32px; position: relative; overflow: hidden; }
.hire-hero::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 18px, transparent 18px 36px); pointer-events: none; }
.hire-hero-inner { display: grid; gap: 22px; align-items: center; position: relative; z-index: 1; }
@media (min-width: 900px) { .hire-hero-inner { grid-template-columns: 1.3fr .7fr; } }
.hire-hero h1 { color: var(--white); margin: 6px 0 10px; }
.hire-hero .eyebrow { color: var(--sky-soft); }
.hire-lede { font-size: 1.05rem; max-width: 46ch; color: rgba(255,255,255,.92); }
.hire-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hire-crew { display: flex; justify-content: center; gap: 6px; }
.hire-crew img { width: 46%; max-width: 190px; filter: drop-shadow(0 10px 20px rgba(0,0,0,.35)); }
.hire-crew img:first-child { transform: rotate(-4deg); }
.hire-crew img:last-child { transform: rotate(4deg); }

.perks { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.perk { background: var(--white); border: 2px solid var(--royal-tint); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.perk:hover { transform: translateY(-3px); border-color: var(--royal); }
.perk img { width: 44px; height: 44px; margin-bottom: 10px; }
.perk h3 { margin: 0 0 6px; color: var(--royal-dark); font-size: 1.1rem; }
.perk p { margin: 0; color: var(--muted); font-size: .94rem; }

.steps { display: grid; gap: 16px; }
.steps.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 22px 20px 18px;
  border: 2px solid var(--royal-tint); box-shadow: var(--shadow); }
.step-no { position: absolute; top: -16px; left: 18px; width: 38px; height: 38px; border-radius: 50%;
  background: var(--royal); color: var(--white); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; box-shadow: 0 4px 10px rgba(0,30,90,.3); }
.step h3 { margin: 8px 0 6px; color: var(--royal-dark); font-size: 1.08rem; }
.step p { margin: 0; color: var(--muted); font-size: .94rem; }

.form-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 4px solid var(--royal-tint); }
.form-head img { width: 46px; height: 46px; }
.form-head h2 { margin: 0; }
.form-head p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

/* ---- fixes: readable button on the dark hero, tidy lap cards ---- */
.btn-ghost-light { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.75); }
.btn-ghost-light:hover { background: var(--white); color: var(--royal-dark); border-color: var(--white); }
.laps li strong { display: block; font-family: var(--font-display); font-size: 1.05rem;
  color: var(--royal-dark); margin: 4px 0 6px; }
.laps li::before { margin-bottom: 4px; }
.laps li { font-size: .94rem; color: var(--muted); }
.hire-crew.solo { flex-direction: column; align-items: center; gap: 4px; }
.hire-crew.solo img { width: 100%; max-width: 280px; transform: none !important; }
.crew-caption { margin: 0; text-align: center; font-family: var(--font-display); font-weight: 600;
  color: var(--white); line-height: 1.25; }
.crew-caption span { display: block; font-family: var(--font-body); font-weight: 400;
  font-size: .85rem; color: rgba(255,255,255,.8); }
.next-head { display: grid; gap: 18px; align-items: center; margin-bottom: 18px; }
@media (min-width: 900px) { .next-head { grid-template-columns: 1fr 240px; } }
.next-head .crew-caption { color: var(--royal-dark); }
.next-head .crew-caption span { color: var(--muted); }
.next-head .hire-crew.solo img { max-width: 220px; filter: drop-shadow(0 8px 16px rgba(0,30,90,.25)); }

/* hiring hero: crew on both sides, copy in the middle */
.hire-hero-inner { grid-template-columns: 1fr; text-align: center; }
.hire-copy { order: -1; }
.hire-copy .hire-lede { margin-left: auto; margin-right: auto; }
.hire-cta { justify-content: center; }
@media (min-width: 980px) {
  .hire-hero-inner { grid-template-columns: 230px minmax(0, 1fr) 230px; text-align: center; gap: 26px; }
  .hire-copy { order: 0; }
}
.hire-crew.solo img { max-width: 230px; }
@media (max-width: 979px) { .hire-crew.solo img { max-width: 160px; } }

.story-cta { margin-top: 22px }

/* placeholder frame for a photo we do not have yet */
.photo-slot {
  display: grid; place-items: center; text-align: center;
  min-height: 340px; aspect-ratio: 4 / 3; padding: 24px;
  border: 3px dashed var(--royal); border-radius: var(--radius);
  background: var(--royal-tint);
  background-image: radial-gradient(var(--sky) 1.5px, transparent 1.6px);
  background-size: 18px 18px;
  color: var(--royal-dark); font-weight: 600;
}
.photo-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) - 4px); }

/* ================= guide accordions ================= */
.guides { display: grid; gap: 14px; }
.guides details {
  background: var(--white); border: 2px solid var(--royal-tint); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.guides details:hover { border-color: var(--sky); transform: translateY(-2px); }
.guides details[open] { border-color: var(--royal); }
.guides summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 24px; align-items: center; gap: 16px;
  padding: 18px 22px;
}
.guides summary::-webkit-details-marker { display: none; }
.g-ico {
  width: 52px; height: 52px; padding: 11px; border-radius: 50%;
  background: var(--royal-tint); box-sizing: border-box;
}
.guides details[open] .g-ico { background: var(--white); box-shadow: 0 0 0 2px var(--royal) inset; }
.guides summary::after {
  content: ""; width: 12px; height: 12px; justify-self: end;
  border-right: 3px solid var(--royal); border-bottom: 3px solid var(--royal);
  transform: translateY(-3px) rotate(45deg); transition: transform .2s ease;
}
.guides details[open] summary { background: var(--royal-tint); }
.guides details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.g-text { min-width: 0; }
.g-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.14rem;
  color: var(--royal-dark); line-height: 1.25; }
.g-teaser { display: block; color: var(--muted); font-size: .93rem; margin-top: 4px; line-height: 1.4; }
.g-body { padding: 20px 26px 26px 90px; animation: faqIn .18s ease-out; }
.g-body > :first-child { margin-top: 0; }
.g-body > :last-child { margin-bottom: 0; }
.g-body .laps { grid-template-columns: 1fr; gap: 14px; }
.g-body .laps li { font-size: 1rem; color: var(--ink); }
.g-body .checklist li { font-size: 1rem; }
@media (max-width: 680px) {
  .guides summary { grid-template-columns: 44px minmax(0, 1fr) 18px; gap: 12px; padding: 14px 16px; }
  .g-ico { width: 44px; height: 44px; padding: 9px; }
  .g-body { padding: 16px 18px 22px; }
}

/* ================= page flourishes ================= */
.card-doodle { width: 38px; height: 38px; display: block; margin-bottom: 12px; }
.cards.four { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.section-head.centered { margin-left: auto; margin-right: auto; text-align: center; }
.callout-wide { display: grid; grid-template-columns: 84px 1fr; gap: 22px; align-items: start; margin-top: 30px; }
.callout-doodle { width: 64px; height: 64px; background: var(--white); border-radius: 50%; padding: 10px; }
@media (max-width: 680px) { .callout-wide { grid-template-columns: 1fr; } }
.closing-band {
  display: grid; grid-template-columns: 130px 1fr; gap: 30px; align-items: center;
  background: var(--white); border: 3px solid var(--royal-tint); border-radius: 28px;
  padding: 34px 38px; box-shadow: var(--shadow);
}
.closing-band h2 { margin-top: 0; }
.closing-car { width: 120px; height: auto; }
@media (max-width: 680px) { .closing-band { grid-template-columns: 1fr; text-align: center; padding: 26px 20px; }
  .closing-car { width: 90px; margin: 0 auto; } }

.steps.four { grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }

/* ================= cozy cards ================= */
.cards.cozy {
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}
.cards.cozy .card {
  --tint: #eef3fe; --edge: #d7e3fb;
  display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 20px; align-items: start;
  padding: 28px 30px; border-radius: 26px;
  background: var(--tint); border: 2px solid var(--edge);
  box-shadow: 0 6px 18px rgba(13, 13, 13, .05);
}
.cards.cozy .card:nth-child(4n+2) { --tint: #e8f6fd; --edge: #cfeafa; }
.cards.cozy .card:nth-child(4n+3) { --tint: #fff6e0; --edge: #f4e3b4; }
.cards.cozy .card:nth-child(4n+4) { --tint: #fdeef3; --edge: #f7d9e3; }
.cards.cozy .card:hover {
  transform: translateY(-3px); border-color: var(--royal);
  box-shadow: 0 16px 34px rgba(0, 62, 194, .14);
}
.cards.cozy .card-doodle {
  width: 76px; height: 76px; padding: 13px; border-radius: 50%; box-sizing: border-box;
  background: var(--white); box-shadow: 0 0 0 2px var(--edge) inset; margin: 0;
  grid-row: 1 / span 2; align-self: start;
}
.cards.cozy .card > h3, .cards.cozy .card > p { grid-column: 2; }
.cards.cozy .card h3 { font-size: 1.24rem; margin: 2px 0 8px; }
.cards.cozy .card p { color: #4a5668; line-height: 1.68; margin: 0; font-size: 1.02rem; }
@media (max-width: 900px) {
  .cards.cozy { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .cards.cozy .card { grid-template-columns: 1fr; gap: 14px; padding: 24px 22px; }
  .cards.cozy .card-doodle { width: 66px; height: 66px; }
}

/* soft pastel cycle for the guide icons */
.guides details:nth-child(4n+2) .g-ico { background: #e4f4fd; }
.guides details:nth-child(4n+3) .g-ico { background: #fff3d4; }
.guides details:nth-child(4n+4) .g-ico { background: #fde8ef; }
.guides details[open] .g-ico { background: var(--white); }

/* ================= about: our story ================= */
.story-grid {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(290px, .88fr);
  gap: 12px 52px; align-items: start;
}
.story-text h2 { margin-top: 0; }
.story-lead { font-size: 1.16rem; line-height: 1.72; color: var(--ink); }
.story-text p { line-height: 1.72; color: var(--ink); }
.story-text p:last-child { margin-bottom: 0; }
.story-figure { margin: 0; }
.story-photo { margin: 0; width: 100%; aspect-ratio: 4 / 3; min-height: 0; max-height: 460px; }
.story-figure figcaption {
  margin-top: 12px; text-align: center; color: var(--muted); font-size: .92rem;
}
.pull-quote {
  grid-column: 1 / -1; margin: 48px auto 0; max-width: 26em; text-align: center;
  border: 0; padding: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; line-height: 1.38;
  color: var(--royal-dark);
}
.pull-quote::before {
  content: ""; display: block; width: 56px; height: 56px; margin: 0 auto 16px;
  background: url("../images/doodles/heart.svg") center / contain no-repeat;
}
.story-cta.centered { grid-column: 1 / -1; text-align: center; margin-top: 30px; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; gap: 28px; }
  .story-photo { aspect-ratio: 16 / 10; }
  .pull-quote { font-size: 1.3rem; margin-top: 30px; }
}

/* ================= home: link cards ================= */
.link-card {
  position: relative; display: block; text-decoration: none;
  background: var(--white); border: 2px solid var(--royal-tint); border-radius: 22px;
  padding: 30px 26px 26px; box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.link-card::after {
  content: ""; position: absolute; right: 24px; bottom: 24px; width: 11px; height: 11px;
  border-right: 3px solid var(--royal); border-top: 3px solid var(--royal);
  transform: rotate(45deg); transition: transform .18s ease;
}
.link-card:hover {
  transform: translateY(-4px); border-color: var(--royal);
  box-shadow: 0 16px 34px rgba(0, 62, 194, .16);
}
.link-card:hover::after { transform: rotate(45deg) translate(3px, -3px); }
.link-card h3 { margin: 0 0 8px; color: var(--royal-dark); font-size: 1.22rem; }
.link-card p { margin: 0; color: var(--muted); line-height: 1.6; padding-right: 26px; }
.car-number {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px;
  border-radius: 50%; background: var(--royal); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  box-shadow: 0 0 0 4px var(--royal-tint);
}
.link-card:nth-child(3n+2) .car-number { background: var(--sky); color: var(--black); }
.link-card:nth-child(3n+3) .car-number { background: var(--black); }

/* ================= home: closing tour band ================= */
.cta-band { background: var(--royal); color: var(--white); padding: 52px 0; position: relative; }
.cta-band .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band h2 { margin: 0 0 8px; color: var(--white); }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 1.08rem; }
@media (max-width: 680px) { .cta-band { padding: 38px 0; } .cta-band .wrap { flex-direction: column; align-items: flex-start; } }
.hero-sign { margin: 10px 0 0; font-family: var(--font-display); font-weight: 600;
  color: rgba(255, 255, 255, .9); font-size: 1rem; }

/* ================= programs ================= */
.program-row {
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start;
  background: var(--white); border: 2px solid var(--royal-tint); border-radius: 24px;
  padding: 30px 32px; box-shadow: var(--shadow); margin-bottom: 22px;
}
.program-row:hover { border-color: var(--sky); }
.program-tag h2 { margin: 14px 0 6px; font-size: 1.45rem; color: var(--royal-dark); }
.ages { margin: 0; color: var(--muted); font-weight: 600; line-height: 1.5; }
.room {
  display: inline-block; margin-top: 8px; background: var(--royal-tint); color: var(--royal-dark);
  border-radius: 999px; padding: 4px 13px; font-size: .84rem; font-weight: 700;
}
.program-body > p:first-child { margin-top: 0; line-height: 1.72; }
.program-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 14px; margin: 22px 0 0;
}
.program-facts > div { background: var(--paper); border-radius: 14px; padding: 14px 16px; }
.program-facts dt {
  font-family: var(--font-display); font-weight: 600; color: var(--royal);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px;
}
.program-facts dd { margin: 0; color: var(--ink); font-size: .95rem; line-height: 1.55; }
@media (max-width: 820px) {
  .program-row { grid-template-columns: 1fr; gap: 18px; padding: 24px 22px; }
}

/* ================= tables ================= */
.table-wrap {
  overflow-x: auto; border: 2px solid var(--royal-tint); border-radius: 18px;
  background: var(--white); box-shadow: var(--shadow);
}
.schedule { width: 100%; border-collapse: collapse; min-width: 460px; }
.schedule th, .schedule td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--royal-tint); }
.schedule thead th {
  background: var(--royal); color: var(--white); font-family: var(--font-display); font-weight: 600;
  font-size: .84rem; text-transform: uppercase; letter-spacing: .05em; border-bottom: 0;
}
.schedule tbody tr:nth-child(even) { background: var(--paper); }
.schedule tbody tr:last-child td { border-bottom: 0; }
.schedule td:first-child { font-weight: 700; color: var(--royal-dark); white-space: nowrap; }

/* ================= jump links ================= */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.jump a {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: .92rem;
  color: var(--royal-dark); background: var(--white); border: 2px solid var(--royal-tint);
  border-radius: 999px; padding: 8px 16px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.jump a:hover, .jump a:focus-visible { background: var(--royal); border-color: var(--royal); color: var(--white); }

/* two-up program facts read better than a ragged three-up */
.program-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .program-facts { grid-template-columns: 1fr; } }

/* ================= page head spacing ================= */
.page-head { padding: 38px 0 34px; }
.page-head h1 { margin: 6px 0 14px; }
.page-head > .wrap > p { color: var(--muted); font-size: 1.1rem; max-width: 60em; margin: 0; }

/* ================= programs: doodles beside the number ================= */
.tag-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.program-doodle {
  width: 54px; height: 54px; padding: 11px; border-radius: 50%; box-sizing: border-box;
  background: var(--royal-tint);
}
.program-row:nth-child(4n+2) .program-doodle { background: #e4f4fd; }
.program-row:nth-child(4n+3) .program-doodle { background: #fff3d4; }
.program-row:nth-child(4n+4) .program-doodle { background: #fde8ef; }
.program-tag h2 { margin: 0 0 6px; }

/* ================= schedule carousel ================= */
.sched-radio { position: absolute; opacity: 0; pointer-events: none; }
.sched-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.sched-tabs label {
  cursor: pointer; font-weight: 700; font-size: .93rem; color: var(--royal-dark);
  background: var(--white); border: 2px solid var(--royal-tint); border-radius: 999px; padding: 9px 18px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.sched-tabs label:hover { border-color: var(--royal); }
.sched-radio#sched-infants:checked ~ .sched-tabs label[for="sched-infants"] { background: var(--royal); border-color: var(--royal); color: var(--white); }
.sched-radio#sched-ones:checked ~ .sched-tabs label[for="sched-ones"] { background: var(--royal); border-color: var(--royal); color: var(--white); }
.sched-radio#sched-twos:checked ~ .sched-tabs label[for="sched-twos"] { background: var(--royal); border-color: var(--royal); color: var(--white); }
.sched-radio#sched-threes:checked ~ .sched-tabs label[for="sched-threes"] { background: var(--royal); border-color: var(--royal); color: var(--white); }
.sched-radio#sched-prek:checked ~ .sched-tabs label[for="sched-prek"] { background: var(--royal); border-color: var(--royal); color: var(--white); }
.sched-radio#sched-schoolage:checked ~ .sched-tabs label[for="sched-schoolage"] { background: var(--royal); border-color: var(--royal); color: var(--white); }
.sched-radio:focus-visible ~ .sched-tabs label { outline: 3px solid var(--sky); outline-offset: 2px; }
.sched-panel { display: none; }
.sched-radio#sched-infants:checked ~ .sched-panels .sched-infants { display: block; }
.sched-radio#sched-ones:checked ~ .sched-panels .sched-ones { display: block; }
.sched-radio#sched-twos:checked ~ .sched-panels .sched-twos { display: block; }
.sched-radio#sched-threes:checked ~ .sched-panels .sched-threes { display: block; }
.sched-radio#sched-prek:checked ~ .sched-panels .sched-prek { display: block; }
.sched-radio#sched-schoolage:checked ~ .sched-panels .sched-schoolage { display: block; }
.sched-note {
  margin: 0 0 18px; color: var(--muted); line-height: 1.65;
  background: var(--white); border-left: 6px solid var(--royal); border-radius: 12px; padding: 14px 18px;
}
.sched-note strong { color: var(--royal-dark); }

/* ================= page art ================= */
.page-head { position: relative; }
.page-head > .wrap { position: relative; }
.head-art {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 170px; height: auto; pointer-events: none;
}
/* keep the art inside the content column, and leave it room so it never
   sits on top of the heading or the jump links */
@media (min-width: 901px) { .page-head > .wrap { padding-right: 220px; } }
@media (max-width: 900px) { .head-art { display: none; } }

.doodle-rail {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 26px; padding: 30px 20px 34px;
}
.doodle-rail img { width: 46px; height: 46px; opacity: .85; }
.doodle-rail img:nth-child(odd) { transform: rotate(-7deg); }
.doodle-rail img:nth-child(even) { transform: rotate(6deg); }
@media (max-width: 680px) { .doodle-rail { gap: 16px; } .doodle-rail img { width: 36px; height: 36px; } }

/* ================= the racer parade ================= */
.parade { position: relative; height: 168px; overflow: hidden; }
.parade-road {
  position: absolute; left: 0; right: 0; bottom: 0; height: 34px; background: var(--black);
}
.parade-road::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 5px; transform: translateY(-50%);
  background: repeating-linear-gradient(to right, var(--white) 0 38px, transparent 38px 76px);
}
.racer { position: absolute; bottom: 14px; width: 150px; height: 132px; will-change: transform; }
.racer .kart { position: absolute; left: 0; bottom: 0; width: 150px; height: auto; z-index: 2; }
.racer .kart.solo { width: 128px; }
.racer .rider {
  position: absolute; left: 20px; bottom: 33px; width: 90px; height: auto; z-index: 1;
}
.racer-1 { animation: parade 17s linear infinite; }
.racer-2 { animation: parade 17s linear infinite; animation-delay: -5.6s; }
.racer-3 { animation: parade 17s linear infinite; animation-delay: -11.2s; }
@keyframes parade {
  from { transform: translateX(-170px); }
  to   { transform: translateX(calc(100vw + 20px)); }
}
@media (prefers-reduced-motion: reduce) {
  .racer { animation: none; }
  .racer-1 { left: 8%; } .racer-2 { left: 42%; } .racer-3 { left: 74%; }
}
@media (max-width: 680px) {
  .parade { height: 132px; }
  .racer { width: 112px; height: 86px; bottom: 12px; }
  .racer .kart { width: 112px; } .racer .kart.solo { width: 96px; }
  .racer .rider { left: 14px; bottom: 25px; width: 68px; }
}

/* ================= about: story rhythm ================= */
.story-lead { font-size: 1.22rem; line-height: 1.68; color: var(--ink); }
.story-stats {
  list-style: none; margin: 26px 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;
}
.story-stats li {
  background: var(--royal-tint); border-radius: 16px; padding: 16px 14px; text-align: center;
}
.story-stats img { width: 34px; height: 34px; display: block; margin: 0 auto 8px; }
.story-stats strong {
  display: block; font-family: var(--font-display); font-weight: 700; color: var(--royal-dark);
  font-size: 1.02rem; line-height: 1.25;
}
.story-stats span { display: block; color: var(--muted); font-size: .84rem; margin-top: 4px; line-height: 1.35; }
.story-aside {
  display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 16px; align-items: start;
  background: var(--white); border: 2px solid var(--royal-tint); border-left: 6px solid var(--royal);
  border-radius: 16px; padding: 18px 20px; margin: 26px 0;
}
.story-aside img { width: 44px; height: 44px; }
.story-aside h3 { margin: 0 0 6px; color: var(--royal-dark); font-size: 1.12rem; }
.story-aside p { margin: 0; color: var(--muted); line-height: 1.65; }
@media (max-width: 560px) {
  .story-stats { grid-template-columns: 1fr; }
  .story-aside { grid-template-columns: 1fr; }
}

/* ================= nav dropdowns ================= */
.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;
}
.main-nav li.has-sub { position: relative; display: flex; align-items: center; }
.sub-toggle {
  border: 0; background: none; cursor: pointer; padding: 6px 8px 6px 2px; margin-left: -6px;
  line-height: 0; border-radius: 8px;
}
.sub-toggle::after {
  content: ""; display: block; width: 7px; height: 7px;
  border-right: 2.5px solid var(--royal); border-bottom: 2.5px solid var(--royal);
  transform: translateY(-2px) rotate(45deg); transition: transform .18s ease;
}
.has-sub:hover .sub-toggle::after,
.has-sub.open .sub-toggle::after { transform: translateY(1px) rotate(-135deg); }
.sub-toggle:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.main-nav .subnav {
  display: none; position: absolute; top: 100%; left: 0; z-index: 60;
  min-width: 248px; margin: 0; padding: 8px; list-style: none;
  background: var(--white); border: 2px solid var(--royal-tint); border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0, 30, 90, .18);
}
.main-nav .subnav { flex-direction: column; align-items: stretch; gap: 2px; }
.main-nav .has-sub:hover > .subnav,
.main-nav .has-sub:focus-within > .subnav,
.main-nav .has-sub.open > .subnav { display: flex; }
.subnav a {
  display: block; padding: 9px 13px; border-radius: 10px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 500; font-size: .96rem; color: var(--ink);
}
.subnav a:hover, .subnav a[aria-current="page"] { background: var(--royal-tint); color: var(--royal-dark); }

@media (max-width: 900px) {
  .main-nav li.has-sub { flex-wrap: wrap; }
  .main-nav li.has-sub > a { flex: 1; }
  .sub-toggle { padding: 10px 14px; margin-left: 0; }
  .main-nav .subnav {
    position: static; width: 100%; min-width: 0; box-shadow: none; border: 0;
    border-left: 3px solid var(--royal-tint); border-radius: 0;
    margin: 0 0 8px 14px; padding: 2px 0 2px 10px; background: none;
  }
  .main-nav .has-sub:hover > .subnav,
  .main-nav .has-sub:focus-within > .subnav { display: none; }
  .main-nav .has-sub.open > .subnav { display: flex; }
}

/* ================= "never here" block ================= */
.never {
  background: var(--white); border: 3px solid var(--royal); border-radius: 22px;
  padding: 28px 32px; box-shadow: var(--shadow);
}
.never h2 { margin-top: 0; color: var(--royal-dark); }
.never ul { margin: 18px 0 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.never li { position: relative; padding-left: 34px; color: var(--ink); line-height: 1.6; }
.never li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--royal); box-shadow: inset 0 0 0 2px var(--white);
}
.never li::after {
  content: ""; position: absolute; left: 5px; top: 12.5px; width: 10px; height: 3px;
  background: var(--white); border-radius: 2px;
}
.rewards-banner { display: block; margin: 32px 0 10px; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.rewards-banner:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(0, 62, 194, .22); }
.rewards-banner img { display: block; width: 100%; height: auto; }
.fine { color: var(--muted); font-size: .88rem; }
.fine.centered { text-align: center; }
.card-icon { width: 40px; height: 40px; display: block; margin-bottom: 10px; }

/* ================= calendar ================= */
.float-doodles { position: absolute; inset: 0; pointer-events: none; }
.float-doodles img { position: absolute; width: 42px; height: 42px; opacity: .38; }
.float-doodles .fd1 { right: 1%; top: 6%; transform: rotate(-12deg); }
.float-doodles .fd2 { right: 8%; top: 2%; transform: rotate(9deg); }
.float-doodles .fd3 { right: 15%; top: 10%; transform: rotate(-5deg); }
@media (max-width: 900px) { .float-doodles { display: none; } }

.announce {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px; align-items: start;
  background: var(--white); border: 3px solid var(--royal); border-radius: 22px;
  padding: 26px 30px; box-shadow: var(--shadow);
}
.announce-flag { width: 56px; height: 56px; }
.announce h2, .announce .h3 { margin: 4px 0 8px; color: var(--royal-dark); font-size: 1.35rem; }
.announce p { margin: 0; color: var(--muted); line-height: 1.65; }
@media (max-width: 600px) { .announce { grid-template-columns: 1fr; padding: 22px; } }

.cal-toolbar { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 18px; }
.cal-toolbar h2 { margin: 0; min-width: 11em; text-align: center; font-size: 1.6rem; }
.cal-nav { padding: .45em .9em; font-size: 1.1rem; line-height: 1; }
.cal-nav[disabled] { opacity: .35; cursor: not-allowed; }

.cal-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-bottom: 20px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.cal-legend img { width: 20px; height: 20px; }

.cal-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px;
  background: var(--white); border: 2px solid var(--royal-tint); border-radius: 18px;
  padding: 12px; box-shadow: var(--shadow);
}
.cal-dow {
  text-align: center; font-family: var(--font-display); font-weight: 600; color: var(--royal);
  font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; padding: 6px 0 2px;
}
.cal-day {
  min-height: 86px; border-radius: 12px; background: var(--paper); padding: 6px 7px;
  display: flex; flex-direction: column; gap: 4px;
}
.cal-day.empty { background: none; }
.cal-day.weekend { background: #f3f5fa; }
.cal-day.today { box-shadow: 0 0 0 2.5px var(--royal) inset; }
.cal-day.closed { background: var(--royal-tint); }
.cal-num { font-weight: 700; color: var(--royal-dark); font-size: .92rem; }
.cal-chip {
  display: flex; align-items: flex-start; gap: 5px;
  background: var(--white); border-radius: 8px; padding: 3px 5px;
  font-size: .72rem; line-height: 1.25; color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 30, 90, .1);
}
.cal-chip img { width: 14px; height: 14px; flex: 0 0 auto; margin-top: 1px; }
.cal-chip.closed { box-shadow: 0 1px 3px rgba(0, 30, 90, .1), inset 3px 0 0 var(--royal); padding-left: 8px; }
.cal-chip-text { min-width: 0; }

.cal-actions { margin-top: 24px; text-align: center; }
.cal-actions .fine { margin: 10px 0 0; }
#cal-table tr.past td { opacity: .5; }

@media (max-width: 760px) {
  .cal-grid { gap: 4px; padding: 8px; }
  .cal-day { min-height: 62px; padding: 4px; }
  .cal-chip { font-size: 0; padding: 3px; gap: 0; justify-content: center; }
  .cal-chip img { width: 13px; height: 13px; }
  .cal-toolbar h2 { font-size: 1.2rem; min-width: 8em; }
}

/* ================= footer social ================= */
.footer-social { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.site-footer .footer-social a {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  color: var(--white); font-weight: 700; text-decoration: none;
}
.site-footer .footer-social a:hover { text-decoration: underline; }
.footer-social img { width: 26px !important; height: 26px !important; flex: 0 0 auto; }

.checklist.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 780px) { .checklist.two-col { grid-template-columns: 1fr; } }

.tribal-table td:first-child { white-space: normal; }
.tribal-table .muted { color: var(--muted); font-size: .9rem; }

/* ================= form dropdowns ================= */
.form-when { color: var(--royal-dark); background: var(--royal-tint); border-radius: 10px;
  padding: 8px 12px; display: inline-block; font-size: .92rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 0; }
.form-note { color: var(--muted); font-size: .94rem; font-style: italic; }

/* ================= PDF preview pop-up ================= */
.pdf-preview-btn { white-space: nowrap; }
html.pdf-open, html.pdf-open body { overflow: hidden; }
.pdf-dialog {
  width: min(960px, 94vw); max-width: 94vw; height: min(88vh, 1000px); max-height: 88vh;
  padding: 0; border: 0; border-radius: 22px; overflow: hidden;
  background: var(--paper); box-shadow: 0 30px 80px rgba(0, 20, 60, .4);
}
.pdf-dialog::backdrop { background: rgba(5, 15, 40, .62); backdrop-filter: blur(2px); }
.pdf-dialog[open] { display: flex; flex-direction: column; }
.pdf-bar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 20px; background: var(--royal); color: var(--white); flex: 0 0 auto;
}
.pdf-title {
  margin: 0; flex: 1 1 14em; min-width: 0; color: var(--white);
  font-size: 1.12rem; line-height: 1.3;
}
.pdf-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pdf-actions [hidden] { display: none !important; }
.pdf-actions .btn { padding: .42em .95em; font-size: .92rem; }
.pdf-actions .btn-ghost {
  background: transparent; border: 2px solid rgba(255, 255, 255, .6); color: var(--white);
}
.pdf-actions .btn-ghost:hover { background: var(--white); color: var(--royal-dark); border-color: var(--white); }
.pdf-actions .btn-primary { background: var(--white); color: var(--royal-dark); }
.pdf-actions .btn-primary:hover { background: var(--royal-tint); color: var(--royal-dark); }
.pdf-close {
  border: 0; background: transparent; color: var(--white); cursor: pointer;
  font-size: 1.9rem; line-height: 1; padding: 0 6px; border-radius: 8px;
}
.pdf-close:hover { background: rgba(255, 255, 255, .18); }
.pdf-pages { flex: 1 1 auto; overflow: auto; padding: 22px; display: grid; gap: 18px; justify-items: center; }
.pdf-pages:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
.pdf-page {
  width: 100%; max-width: 820px; background: var(--white); border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 20, 60, .16); overflow: hidden; min-height: 60px;
}
.pdf-page canvas { display: block; width: 100%; height: auto; }
.pdf-status { margin: 0; padding: 28px 20px; text-align: center; color: var(--muted); line-height: 1.6; }
.pdf-status .btn { margin-top: 12px; }
.pdf-print-frame { position: fixed; width: 0; height: 0; border: 0; opacity: 0; pointer-events: none; }
html.pdf-printing body > *:not(.pdf-print-frame) { display: none !important; }
@media (max-width: 640px) {
  .pdf-dialog { width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh; border-radius: 0; }
  .pdf-bar { padding: 12px 14px; }
  .pdf-title { flex-basis: 100%; font-size: 1rem; }
  .pdf-pages { padding: 12px; }
}

.split.wide-left { grid-template-columns: 1.5fr 1fr; }
@media (max-width: 820px) { .split.wide-left { grid-template-columns: 1fr; } }

.inspection-note { background: rgba(255,255,255,.14); border-radius: 12px; padding: 12px 14px; }

/* ================= van route map ================= */
.van-map {
  height: 460px; border-radius: 20px; border: 3px solid var(--royal-tint);
  box-shadow: var(--shadow); background: var(--paper); z-index: 0;
}
.van-map .leaflet-container { font-family: var(--font-body, inherit); }
.van-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.sched-tab {
  cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: .93rem;
  color: var(--royal-dark); background: var(--white); border: 2px solid var(--royal-tint);
  border-radius: 999px; padding: 9px 18px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.sched-tab:hover { border-color: var(--royal); }
.sched-tab[aria-pressed="true"] { background: var(--royal); border-color: var(--royal); color: var(--white); }
.van-clock {
  display: inline-flex; align-items: baseline; gap: 10px; margin-left: auto;
  background: var(--royal-tint); border-radius: 999px; padding: 8px 18px;
}
.van-clock span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--royal-dark);
}
.van-clock small { color: var(--muted); font-size: .9rem; }
.van-stop img { width: 36px !important; height: 36px !important; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); }
.van-car { position: relative; }
.van-car .van-kart { position: absolute; left: 0; bottom: 0; width: 74px; height: auto; z-index: 2; }
.van-car .van-driver { position: absolute; left: 12px; bottom: 16px; width: 42px; height: auto; z-index: 1; }
.leaflet-popup-content { font-size: .95rem; line-height: 1.45; }
@media (max-width: 680px) {
  .van-map { height: 340px; }
  .van-clock { margin-left: 0; }
}

/* ================= balanced, centred grids =================
   Grid columns leave the last row hanging left when the item count
   doesn't divide evenly. Flex wrapping centres the remainder instead. */
.laps, .cards, .card-grid, .steps, .perks, .cred-grid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch;
}
.laps > li { flex: 1 1 210px; max-width: 272px; }
.cards > *, .card-grid > * { flex: 1 1 262px; max-width: 360px; }
.steps > * { flex: 1 1 232px; max-width: 322px; }
.perks > * { flex: 1 1 230px; max-width: 330px; }
.cred-grid > * { flex: 1 1 196px; max-width: 280px; }
.cards.cozy > .card { flex: 1 1 420px; max-width: 560px; }
.g-body .laps > li { flex: 1 1 100%; max-width: none; }
@media (max-width: 560px) {
  .laps > li, .cards > *, .card-grid > *, .steps > *, .perks > *, .cred-grid > * {
    flex-basis: 100%; max-width: none;
  }
}

/* ================= warmth pass ================= */
/* alternate the long pages between warm neutrals instead of white-on-grey */
.section.alt, .section-alt { background: var(--paper); }
.section.warm { background: var(--cream); }
.section.sand { background: var(--sand); }

/* cards and callouts sit on warm paper, so soften their edges */
.card, .program, .link-card, .doc-card, .guides details, .checklist li, .table-wrap {
  border-radius: 20px;
}
.checklist li { box-shadow: 0 3px 10px rgba(70, 50, 30, .07); }
.callout { background: var(--royal); }

/* photo slots, ready for real pictures */
.photo-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 32px 0 0;
}
.photo-strip > * { flex: 1 1 240px; max-width: 340px; }
.photo-card {
  display: grid; place-items: center; text-align: center;
  aspect-ratio: 4 / 3; padding: 18px; border-radius: 20px;
  border: 3px dashed var(--royal); background: var(--royal-tint);
  background-image: radial-gradient(var(--sky) 1.4px, transparent 1.5px);
  background-size: 16px 16px;
  color: var(--royal-dark); font-weight: 600; font-size: .95rem;
}
.photo-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 17px; }
.photo-card.filled { border: 0; padding: 0; background: none; }

/* a warm quote from someone who works here */
.voice {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 26px; align-items: center;
  background: var(--cream); border: 3px solid var(--sand); border-radius: 26px;
  padding: 30px 34px; box-shadow: var(--shadow);
}
.voice img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover;
  background: var(--white); box-shadow: 0 0 0 4px var(--white), 0 0 0 7px var(--royal-tint); }
.voice blockquote {
  margin: 0; border: 0; padding: 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; line-height: 1.45;
  color: var(--royal-dark);
}
.voice cite { display: block; margin-top: 12px; font-style: normal; color: var(--muted); font-size: .95rem; }
@media (max-width: 620px) {
  .voice { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 22px; }
}

.room-photo { margin-top: 16px; aspect-ratio: 4 / 3; font-size: .85rem; }

/* ================= openings board ================= */
.openings { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.opening {
  flex: 1 1 290px; max-width: 340px; position: relative;
  background: var(--white); border: 2px solid var(--sand); border-radius: 20px;
  padding: 26px 20px 22px; text-align: center; box-shadow: var(--shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.opening:hover { transform: translateY(-3px); }
.opening h3 { margin: 10px 0 4px; font-size: 1.14rem; color: var(--royal-dark); }
.opening p { margin: 0; color: var(--muted); font-size: .93rem; }
.opening-chip {
  display: inline-block; border-radius: 999px; padding: 5px 14px;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.opening.open { border-color: #bfe6cd; }
.opening.open .opening-chip { background: var(--mint); color: #1d7a45; }
.opening.waitlist .opening-chip { background: var(--sand); color: #8a6a2f; }

/* ================= build-your-own packet ================= */
.packet {
  background: var(--white); border: 3px solid var(--sand); border-radius: 24px;
  padding: 26px 28px; box-shadow: var(--shadow);
}
.packet-list { display: grid; gap: 8px; margin-bottom: 22px; }
.packet-row {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 11px 14px; border-radius: 14px; cursor: pointer;
  border: 2px solid transparent; transition: background .12s ease, border-color .12s ease;
}
.packet-row:hover { background: var(--cream); border-color: var(--sand); }
.packet-row input { width: 20px; height: 20px; accent-color: var(--royal); cursor: pointer; }
.packet-name { font-weight: 700; color: var(--ink); }
.packet-note {
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--royal); background: var(--royal-tint); border-radius: 999px; padding: 4px 11px; white-space: nowrap;
}
.packet-actions, .packet-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 0; }
.packet-links { margin-top: 16px; }
.packet-status { color: var(--muted); font-weight: 600; }
@media (max-width: 560px) {
  .packet-row { grid-template-columns: 24px minmax(0, 1fr); }
  .packet-note { grid-column: 2; justify-self: start; }
}

/* ================= photo gallery ================= */
.gallery {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.shot {
  margin: 0; background: var(--white); border-radius: 22px; overflow: hidden;
  box-shadow: 0 10px 28px rgba(70, 50, 30, .14);
  transition: transform .18s ease, box-shadow .18s ease;
}
.shot:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(70, 50, 30, .2); }
.shot img { display: block; width: 100%; height: 260px; object-fit: cover; background: var(--sand); }
.shot figcaption {
  padding: 14px 18px 18px; color: var(--muted); font-size: .94rem; line-height: 1.55;
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .shot img { height: 360px; }
}

.lang-link {
  display: inline-block; margin-left: 14px; padding: 2px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .18); color: var(--white) !important;
  font-weight: 700; text-decoration: none; font-size: .88em;
}
.lang-link:hover { background: var(--white); color: var(--royal-dark) !important; }

.photo-slot.filled { border: 0; padding: 0; background: none; }

/* a panoramic shot spans the row */
@media (min-width: 900px) { .shot.wide { grid-column: 1 / -1; } .shot.wide img { height: 300px; } }

/* =====================================================================
   Little touches: reveals, hovers, highlights and decorative bits.
   Everything here switches off under prefers-reduced-motion.
   ===================================================================== */

/* ---- things rise into place as you scroll to them ---- */
/* hidden from the first frame, so nothing flashes in and back out */
.js .card,
.js .program,
.js .link-card,
.js .shot,
.js .opening,
.js .step,
.js .perk,
.js .cred,
.js .crew-card,
.js .guides > details,
.js .checklist > li,
.js .laps > li,
.js .closing-band,
.js .voice,
.js .announce,
.js .callout-wide,
.js .table-wrap,
.js .photo-slot,
.js .never {
  opacity: 0; transform: translateY(18px);
}
.js .card.is-in,
.js .program.is-in,
.js .link-card.is-in,
.js .shot.is-in,
.js .opening.is-in,
.js .step.is-in,
.js .perk.is-in,
.js .cred.is-in,
.js .crew-card.is-in,
.js .guides > details.is-in,
.js .checklist > li.is-in,
.js .laps > li.is-in,
.js .closing-band.is-in,
.js .voice.is-in,
.js .announce.is-in,
.js .callout-wide.is-in,
.js .table-wrap.is-in,
.js .photo-slot.is-in,
.js .never.is-in {
  opacity: 1; transform: none;
  transition: opacity .5s ease var(--d, 0ms), transform .5s cubic-bezier(.2, .7, .3, 1) var(--d, 0ms);
}

/* ---- highlighter pen, for a phrase that matters ---- */
.hl {
  background: linear-gradient(transparent 58%, var(--sun) 58% 92%, transparent 92%);
  padding: 0 .12em; font-weight: 700;
}
.hl-sky { background: linear-gradient(transparent 58%, #bfe6fb 58% 92%, transparent 92%); }
.hl-pink { background: linear-gradient(transparent 58%, #ffd4e1 58% 92%, transparent 92%); }

/* ---- a hand-drawn swash under section headings ---- */
.section-head h2 { position: relative; display: block; width: max-content; max-width: 100%; }
.section-head.centered h2 { margin-left: auto; margin-right: auto; }
.section-head h2::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -10px; height: 7px;
  background: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'>\
<path d='M1 5 C 40 1, 70 7, 110 3 S 180 2, 199 5' fill='none' stroke='%235abcee' stroke-width='3.4' stroke-linecap='round'/>\
</svg>") center / 100% 100% no-repeat;
  opacity: .85; pointer-events: none;
}
.section-head.centered h2::after { left: 8%; right: 8%; }

/* ---- photos lean in when you hover ---- */
.shot { position: relative; }
.shot img { transition: transform .5s cubic-bezier(.2, .7, .3, 1); }
.shot:hover img { transform: scale(1.045); }
.shot figcaption { position: relative; }
.shot::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: conic-gradient(var(--black) 25%, var(--white) 0 50%, var(--black) 0 75%, var(--white) 0) 0 0 / 12px 12px;
  opacity: 0; transition: opacity .25s ease;
}
.shot:hover::after { opacity: 1; }

/* ---- cards get a little lift and a coloured edge ---- */
.card, .program, .link-card, .opening, .guides details {
  will-change: transform;
}
.link-card::before, .opening::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px; border-radius: 0 0 18px 18px;
  background: linear-gradient(90deg, var(--royal), var(--sky));
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.link-card, .opening { position: relative; overflow: hidden; }
.link-card:hover::before, .opening:hover::before { transform: scaleX(1); }

/* ---- the checkered flag in an eyebrow gives a small wave ---- */
.eyebrow-doodle { transition: transform .3s ease; }
.section-head:hover .eyebrow-doodle,
.page-head:hover .eyebrow-doodle { transform: rotate(-8deg) scale(1.08); }

/* ---- the little racer in a page head bobs along ---- */
@keyframes bob { 0%, 100% { transform: translateY(-50%) } 50% { transform: translateY(calc(-50% - 7px)) } }
.head-art { animation: bob 3.6s ease-in-out infinite; }

/* ---- doodles in the rail drift gently ---- */
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)) }
                   50% { transform: translateY(-6px) rotate(var(--r, 0deg)) } }
.doodle-rail img:nth-child(odd) { --r: -7deg; animation: drift 4.2s ease-in-out infinite; }
.doodle-rail img:nth-child(even) { --r: 6deg; animation: drift 4.8s ease-in-out infinite .4s; }
.doodle-rail img:nth-child(3n) { animation-duration: 5.4s; }

/* ---- buttons press in ---- */
.btn { transition: transform .12s ease, background .15s ease, color .15s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(0, 62, 194, .3); }

/* ---- the open guide's icon gives a tiny pop ---- */
@keyframes pop { 0% { transform: scale(.82) } 60% { transform: scale(1.08) } 100% { transform: scale(1) } }
.guides details[open] .g-ico { animation: pop .32s ease-out; }

/* ---- quick-facts bar: each card underlines itself on hover ---- */
.facts li { position: relative; transition: transform .15s ease; }
.facts li:hover { transform: translateY(-2px); }

/* ---- every one of these is off if the visitor asked for less motion ---- */
@media (prefers-reduced-motion: reduce) {
  .js .card,
  .js .program,
  .js .link-card,
  .js .shot,
  .js .opening,
  .js .step,
  .js .perk,
  .js .cred,
  .js .crew-card,
  .js .guides > details,
  .js .checklist > li,
  .js .laps > li,
  .js .closing-band,
  .js .voice,
  .js .announce,
  .js .callout-wide,
  .js .table-wrap,
  .js .photo-slot,
  .js .never { opacity: 1; transform: none; }
  .head-art, .doodle-rail img, .guides details[open] .g-ico { animation: none; }
  .shot:hover img { transform: none; }
}

/* the aside sits under the building photo and shares the column */
.story-figure .story-aside { margin: 22px 0 0; }

/* ================= brand panels ================= */
.brand-band {
  margin: 0 0 34px; border-radius: 24px; overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 30, 90, .18);
  line-height: 0;
}
.brand-band img { display: block; width: 100%; height: auto; }
.brand-band a { display: block; transition: transform .2s ease; }
.brand-band a:hover { transform: scale(1.012); }
.brand-band.inline { margin: 0 0 28px; }
.brand-band.narrow { max-width: 700px; margin-left: auto; margin-right: auto; }

/* =====================================================================
   Brand match: the look of the Rugrat Racers panels — deep blue with a
   track behind it, chunky white display type with a navy outline,
   checkered flashes and shield badges.
   ===================================================================== */

/* ---- chunky outlined display type, as on the panels ---- */
.hero h1,
.cta-band h2,
.section.race h2,
.hire-hero h1 {
  color: var(--white);
  text-shadow:
    0 3px 0 var(--royal-dark),
    0 0 1px var(--royal-dark),
    2px 2px 0 var(--royal-dark),
    -2px 2px 0 var(--royal-dark),
    0 7px 18px rgba(0, 18, 60, .35);
  letter-spacing: .005em;
}

/* ---- the race track behind a blue section ---- */
.hero, .cta-band, .section.race {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(135deg, #0049e0 0%, var(--royal) 46%, var(--royal-dark) 100%);
}
.hero::before, .cta-band::before, .section.race::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: repeating-linear-gradient(118deg,
    rgba(255, 255, 255, .07) 0 28px, transparent 28px 78px);
}
/* a checkered flash in the top corner, like the panel art */
.hero::after, .section.race::after {
  content: ""; position: absolute; right: -40px; top: -28px; width: 300px; height: 150px;
  z-index: -1; pointer-events: none; opacity: .22; transform: rotate(-9deg);
  background: conic-gradient(#fff 25%, transparent 0 50%, #fff 0 75%, transparent 0) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(200deg, #000 20%, transparent 78%);
  mask-image: linear-gradient(200deg, #000 20%, transparent 78%);
}
.section.race { color: var(--white); padding: 66px 0; }
/* only the text sitting directly on the blue turns white — cards keep their own colours */
.section.race > .wrap > p,
.section.race > .wrap > .section-head p,
.section.race > .wrap > .story-cta { color: rgba(255, 255, 255, .92); }
.section.race .card, .section.race .opening, .section.race .program,
.section.race .closing-band, .section.race .table-wrap { color: var(--ink); }
.section.race .opening p, .section.race .card p { color: var(--muted); }
.section.race .section-head h2::after { filter: brightness(1.6); }

/* ---- shield badges, echoing the programme panel ---- */
.car-number, .opening-chip {
  position: relative;
}
.opening {
  border-width: 3px;
}


/* ---- buttons get the panel's glossy pill look ---- */
.btn-primary {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 58%);
  box-shadow: 0 3px 0 var(--royal-dark), 0 8px 18px rgba(0, 40, 130, .28);
}
.btn-primary:hover { box-shadow: 0 3px 0 var(--royal-dark), 0 12px 24px rgba(0, 40, 130, .34); }
.btn-primary:active { box-shadow: 0 1px 0 var(--royal-dark), 0 5px 12px rgba(0, 40, 130, .28); }
.btn-light {
  box-shadow: 0 3px 0 rgba(0, 32, 100, .28), 0 8px 18px rgba(0, 20, 60, .22);
}

/* ---- section heads carry a small checkered flash ---- */
.section.race .eyebrow { color: var(--sun); }

/* ================= sticker art ================= */
.sticker-card { text-align: center; }
.sticker-card .sticker {
  display: block; width: 128px; height: auto; margin: 0 auto 12px;
  filter: drop-shadow(0 6px 10px rgba(70, 50, 30, .18));
  transition: transform .25s cubic-bezier(.2, .7, .3, 1);
}
.sticker-card:hover .sticker { transform: translateY(-4px) rotate(-2deg) scale(1.04); }
.doodle-rail img { width: 58px; height: 58px; object-fit: contain; }
@media (max-width: 680px) { .doodle-rail img { width: 44px; height: 44px; } }

/* stickers carry their own white outline, so drop the tinted circles behind them */
.card-doodle[src*="stickers"],
.program-doodle[src*="stickers"],
.g-ico[src*="stickers"],
.callout-doodle[src*="stickers"] {
  background: none !important; box-shadow: none !important; padding: 0 !important;
  object-fit: contain;
  filter: drop-shadow(0 4px 7px rgba(70, 50, 30, .22));
}
.card-doodle[src*="stickers"] { width: 74px; height: 74px; }
.program-doodle[src*="stickers"] { width: 62px; height: 62px; }
.g-ico[src*="stickers"] { width: 54px; height: 54px; }
.callout-doodle[src*="stickers"] { width: 70px; height: 70px; }
.closing-car[src*="stickers"] { width: 118px; height: auto; }

/* ================= Ruggy the Racer ================= */
.mascot {
  display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 1fr);
  gap: 34px; align-items: center;
  background: var(--cream); border: 3px solid var(--sand); border-radius: 26px;
  padding: 30px 34px; box-shadow: var(--shadow);
}
.mascot img {
  display: block; width: 100%; height: auto;
  filter: drop-shadow(0 8px 14px rgba(70, 50, 30, .22));
  transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}
.mascot:hover img { transform: translateY(-5px) rotate(-2deg) scale(1.03); }
.mascot h2 { margin: 2px 0 10px; }
.mascot p:last-child { margin-bottom: 0; }
.head-art-lg { width: 210px; }
@media (max-width: 620px) {
  .mascot { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 22px; }
  .mascot img { max-width: 210px; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot img { transition: none; }
  .mascot:hover img { transform: none; }
}

/* ================= secondary button ================= */
/* .btn-ghost had no base rule outside .pdf-actions, so it inherited nothing and
   went blue-on-blue inside the blue bands. */
.btn-ghost {
  background: var(--white); color: var(--royal-dark); border-color: var(--royal-tint);
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--royal-tint); color: var(--royal-dark); border-color: var(--royal);
}
/* on the blue bands it flips to an outline so it always reads */
.section.race .btn-ghost,
.cta-band .btn-ghost,
.callout .btn-ghost {
  background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .8);
}
.section.race .btn-ghost:hover, .section.race .btn-ghost:focus-visible,
.cta-band .btn-ghost:hover, .cta-band .btn-ghost:focus-visible,
.callout .btn-ghost:hover, .callout .btn-ghost:focus-visible {
  background: var(--white); color: var(--royal-dark); border-color: var(--white);
}
/* the primary button needs the same treatment on blue */
.section.race .btn-primary, .cta-band .btn-primary {
  background: var(--white); color: var(--royal-dark);
}
.section.race .btn-primary:hover, .cta-band .btn-primary:hover {
  background: var(--cream); color: var(--royal-dark);
}

/* ================= tables on a phone ================= */
/* Two-column tables wrap instead of scrolling sideways; wider ones still scroll,
   because squeezing four columns into 375px helps nobody. */
@media (max-width: 620px) {
  .schedule.wraps { min-width: 0; }
  .schedule.wraps th, .schedule.wraps td { padding: 11px 13px; }
  .schedule.wraps td:first-child { white-space: normal; }
  .schedule.wraps thead th { font-size: .78rem; letter-spacing: .03em; }
}

/* ================= blue splashes ================= */
/* Scattered through the light sections as a soft background shape. Pale enough
   to sit under text, never on the blue bands (same colour family, so it just
   disappears), and each variant lands somewhere different so it reads as
   scattered rather than as a pattern. */
.splash-a, .splash-b, .splash-c, .splash-d { position: relative; overflow: hidden; }
.splash-a > .wrap, .splash-b > .wrap, .splash-c > .wrap, .splash-d > .wrap {
  position: relative; z-index: 1;
}
.splash-a::before, .splash-b::before, .splash-c::before, .splash-d::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  background-position: center; background-size: contain; background-repeat: no-repeat;
  opacity: .085;
}
.splash-a::before {
  right: -90px; top: -60px; width: 380px; height: 240px; transform: rotate(-9deg);
  background-image: url("../images/splash/splat-wide.png");
}
.splash-b::before {
  left: -110px; bottom: -70px; width: 330px; height: 215px; transform: rotate(14deg);
  background-image: url("../images/splash/splat-star.png");
}
.splash-c::before {
  right: -60px; bottom: -80px; width: 300px; height: 195px; transform: rotate(-20deg);
  background-image: url("../images/splash/splat-small.png");
}
.splash-d::before {
  left: -80px; top: -50px; width: 350px; height: 225px; transform: rotate(6deg);
  background-image: url("../images/splash/splat-star.png");
}
@media (max-width: 760px) {
  .splash-a::before, .splash-b::before, .splash-c::before, .splash-d::before {
    width: 220px; height: 145px; opacity: .07;
  }
}

/* Ruggy keeps a bigger one of his own, since his band is otherwise plain */
.mascot { position: relative; overflow: hidden; }
.mascot::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  right: -70px; bottom: -90px; width: 340px; height: 215px;
  background: url("../images/splash/splat-wide.png") center / contain no-repeat;
  opacity: .14; transform: rotate(-8deg);
}
.mascot > * { position: relative; z-index: 1; }
@media (max-width: 620px) { .mascot::before { width: 240px; height: 150px; right: -60px; bottom: -60px; } }

/* ================= forms ================= */
/* honeypot: bots fill it, people never see it */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-offline {
  margin: 16px 0 0; padding: 14px 16px; border-radius: 14px;
  background: var(--sand); border: 2px solid #e8d49a; color: var(--ink); font-size: .98rem;
}
.form-offline a { color: var(--royal-dark); font-weight: 700; }

/* ================= text-a-message forms ================= */
.form-lead { color: var(--muted); margin: 0 0 18px; font-size: .98rem; }
.text-now { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.text-now .btn { flex: 1 1 auto; }
.or-rule {
  display: flex; align-items: center; gap: 14px; margin: 0 0 20px;
  color: var(--muted); font-size: .86rem; text-transform: uppercase; letter-spacing: .06em;
}
.or-rule::before, .or-rule::after {
  content: ""; flex: 1; height: 2px; background: var(--royal-tint); border-radius: 2px;
}
.text-fallback { margin-top: 18px; }
.text-fallback-lead { margin: 0 0 10px; color: var(--muted); font-size: .94rem; }
.text-fallback-body {
  margin: 0 0 14px; padding: 14px 16px; white-space: pre-wrap; word-break: break-word;
  background: var(--paper); border: 2px solid var(--royal-tint); border-radius: 14px;
  font-family: inherit; font-size: .96rem; color: var(--ink);
}
.text-fallback-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* the form card sits on a blue section, so stop the white text leaking in */
.form-card { color: var(--ink); }
.form-card h2, .form-card h3 { color: var(--royal-dark); }
.form-card .btn-ghost {
  background: var(--white); color: var(--royal-dark); border-color: var(--royal-tint);
}
.form-card .btn-ghost:hover, .form-card .btn-ghost:focus-visible {
  background: var(--royal-tint); color: var(--royal-dark); border-color: var(--royal);
}

/* ================= form -> PDF ================= */
.pdf-done { margin-top: 20px; padding-top: 18px; border-top: 2px solid var(--royal-tint); }
.pdf-working, .pdf-ready { margin: 0 0 14px; font-weight: 600; color: var(--royal-dark); }
.pdf-error { margin: 0; color: #a3341f; font-weight: 600; }
.pdf-done-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.pdf-done-actions .btn { flex: 1 1 auto; }

/* ================= mobile: thumbs and keyboards ================= */
/* iOS zooms the whole page when you focus an input smaller than 16px, which
   throws a parent out of the layout mid-form. 16px exactly stops it. */
@media (max-width: 900px) {
  /* the attribute selectors are deliberate: .apply-form input[type="text"]
     sets `font: inherit` and would otherwise win on specificity */
  .field input, .field select, .field textarea,
  .apply-form input[type="text"], .apply-form input[type="tel"],
  .apply-form input[type="email"], .apply-form input[type="date"],
  .apply-form input[type="month"], .apply-form select, .apply-form textarea,
  input[type="text"], input[type="tel"], input[type="email"],
  input[type="date"], input[type="month"], select, textarea {
    font-size: 16px;
  }
  /* the checkbox labels shrink the box itself */
  .apply-form .checks label { font-size: 16px; }
}

/* the phone numbers are the most-tapped thing on a daycare site — make them
   a thumb's worth of target, not a 20px line of text */
@media (max-width: 760px) {
  .topbar .wrap { padding-top: 2px; padding-bottom: 2px; }
  .topbar a { display: inline-block; padding: 13px 2px; line-height: 1.2; }
  .lang-chip, .topbar .lang { padding: 9px 14px; }
  .nav-toggle { padding: 12px 18px; min-height: 44px; }
  .site-footer li { margin-bottom: 2px; }
  .site-footer li a,
  .footer-legal a,
  .site-footer .footer-social a { display: inline-block; padding: 12px 0; line-height: 1.25; }
  .footer-brand p a { display: inline-block; padding: 7px 0; }
}

/* a form card on a phone should not waste its width */
@media (max-width: 520px) {
  .form-card { padding-left: 18px; padding-right: 18px; }
  .text-now { flex-direction: column; }
  .text-now .btn, .pdf-done-actions .btn { width: 100%; }
}

/* ================= mobile nav: whole row is the target ================= */
@media (max-width: 900px) {
  .main-nav .has-sub { position: relative; }
  .main-nav .has-sub > a { padding-right: 52px; }
  /* the chevron spans the row, so a thumb anywhere on it works */
  /* 44px tall, not the full open block: any taller and it would sit on top of
     the submenu links and swallow their taps */
  .main-nav .has-sub > .sub-toggle {
    position: absolute; right: 0; top: 0; bottom: auto;
    width: 52px; height: 44px; display: flex;
    align-items: center; justify-content: center;
  }
  .main-nav .subnav a { padding-top: 12px; padding-bottom: 12px; }
}

@media (max-width: 900px) {
  /* 44px is the smallest target a thumb hits reliably */
  .main-nav > ul > li > a, .main-nav .subnav a { min-height: 44px; display: flex; align-items: center; }
  .lang-chip, .topbar .lang { min-height: 44px; display: inline-flex; align-items: center; }
}
