/* Durham PreK redesign concept, Stoa. World brief: DESIGN-DNA.md.
   Palette = the program's real four-color scheme; type = Baloo 2 + Lexend. */

:root {
  --teal: #1779a6;       /* primary brand blue */
  --rust: #cb3a00;       /* signature accent */
  --plum: #7b3dc9;       /* educators / secondary */
  --grass: #437f00;      /* "open" / success */
  --teal-ink: #105e84;   /* AA-safe teal for links/body */
  --rust-deep: #a02d00;
  --rug: #0e4e6b;        /* deep teal register band */
  --rug-2: #0a3d54;
  --ink: #333333;
  --muted: #5f5a54;
  --paper: #fffbf5;      /* warm off-white */
  --white: #ffffff;
  --line: #e7ded1;       /* warm hairline */
  --line-2: #d9cebb;

  --shadow-sm: 0 2px 6px rgba(14, 78, 107, 0.08);
  --shadow: 0 10px 30px rgba(14, 78, 107, 0.12);
  --radius: 18px;
  --radius-sm: 11px;
  --wrap: 1120px;

  --display: "Baloo 2", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: "Lexend", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("/durhamprek/assets/paper-texture.jpg");
  background-size: 460px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--rug-2);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
p { margin: 0 0 1rem; }

a { color: var(--teal-ink); text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--rust-deep); }

img { max-width: 100%; height: auto; }

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.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;
}
.eyebrow {
  font-family: var(--display);
  font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--rust); margin: 0 0 0.5rem;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: 0.75rem; top: -3rem; z-index: 200;
  background: var(--rug-2); color: #fff; padding: 0.6rem 1rem;
  border-radius: 0 0 10px 10px; text-decoration: none; font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; color: #fff; }
@media (prefers-reduced-motion: reduce) { .skip-link { transition: none; } }

/* ---------- proto banner ---------- */
.proto-banner {
  background: repeating-linear-gradient(135deg, #fff4ec, #fff4ec 14px, #ffe9da 14px, #ffe9da 28px);
  border-bottom: 2px solid var(--rust);
  color: #5a2a14; font-size: 0.86rem; line-height: 1.45;
  padding: 0.55rem 1.25rem; text-align: center;
}
.proto-banner strong { color: var(--rust-deep); }
.proto-banner a { color: var(--rust-deep); font-weight: 600; }

/* ---------- util bar ---------- */
.util-bar {
  background: var(--rug-2); color: #eaf4fa; font-size: 0.84rem;
}
.util-bar .wrap {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem;
  align-items: center; justify-content: space-between; padding-top: 0.45rem; padding-bottom: 0.45rem;
}
.util-bar a { color: #eaf4fa; text-decoration: none; }
.util-bar a:hover { color: #fff; text-decoration: underline; }
.util-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; align-items: center; }
.text-dpk { font-weight: 600; color: #ffe9dd; }

/* language switch (top bar) */
.lang { display: inline-flex; align-items: center; gap: 0.3rem; }
.lang label { font-weight: 600; }
.lang select {
  font: inherit; font-size: 0.84rem; color: #0e3247; background: #eaf4fa;
  border: 1px solid #2b6c8c; border-radius: 7px; padding: 0.15rem 0.4rem; cursor: pointer;
}

/* ---------- header / brand ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1rem; padding-bottom: 1rem; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand:hover { color: inherit; }
.brand .dots { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; flex: none; }
.brand .dots i {
  width: 13px; height: 13px; border-radius: 50%; display: block;
}
.brand .dots i:nth-child(1) { background: var(--teal); }
.brand .dots i:nth-child(2) { background: var(--rust); }
.brand .dots i:nth-child(3) { background: var(--plum); }
.brand .dots i:nth-child(4) { background: var(--grass); }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1; }
.brand .org { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--rug-2); }
.brand .tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; margin-top: 2px; }

.header-actions { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.header-search { display: flex; align-items: stretch; }
.header-search input {
  font: inherit; font-size: 0.95rem; padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--line-2); border-right: 0;
  border-radius: 10px 0 0 10px; min-width: 12rem; background: var(--paper);
}
.header-search input:focus-visible { outline-offset: -1px; }
.header-search button {
  font: inherit; font-weight: 600; cursor: pointer; border: 0;
  background: var(--teal); color: #fff; padding: 0 0.95rem; border-radius: 0 10px 10px 0;
}
.header-search button:hover { background: var(--rug); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem; justify-content: center;
  font-family: var(--display); font-weight: 600; font-size: 1rem;
  padding: 0.7rem 1.3rem; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; min-height: 44px; line-height: 1.1;
  transition: transform 0.12s ease, background 0.12s ease;
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.btn:hover { transform: translateY(-1px); }
.btn-rust { background: var(--rust); color: #fff; border-color: var(--rust); }
.btn-rust:hover { background: var(--rust-deep); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-teal:hover { background: var(--rug); color: #fff; }
.btn-ghost { background: transparent; color: var(--rug-2); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--rug-2); color: var(--rug-2); }
/* white-on-dark ghost variant (e.g. the hero over the teal banner) */
.btn-ghost-invert { background: transparent; color: #fff; border-color: rgba(255,255,255,0.65); }
.btn-ghost-invert:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
.btn-lg { font-size: 1.15rem; padding: 0.9rem 1.7rem; }
.btn-white { background: #fff; color: var(--rug-2); border-color: #fff; }
.btn-white:hover { background: #f0f7fb; color: var(--rug-2); }

/* ---------- primary nav (centered ul, flush-left banned) ---------- */
.primary-nav { background: var(--white); border-bottom: 3px solid var(--line); position: relative; }
.nav-toggle {
  display: none; font: inherit; font-family: var(--display); font-weight: 600;
  align-items: center; gap: 0.5rem; background: var(--paper); color: var(--rug-2);
  border: 1.5px solid var(--line-2); border-radius: 10px; padding: 0.55rem 0.95rem;
  margin: 0.6rem 1.25rem; cursor: pointer; min-height: 44px;
}
.primary-nav ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.15rem;
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--wrap);
}
.primary-nav a {
  display: block; font-family: var(--display); font-weight: 600; font-size: 0.98rem;
  color: var(--rug-2); text-decoration: none; padding: 0.85rem 0.95rem;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
}
.primary-nav a:hover { color: var(--rust-deep); border-bottom-color: var(--rust); }
.primary-nav a[aria-current="page"] { color: var(--rust-deep); border-bottom-color: var(--rust); }

/* ---------- motif: row of four dots ---------- */
.dot-rule {
  display: flex; gap: 0.55rem; justify-content: center; align-items: center;
  margin: 2.5rem 0; list-style: none; padding: 0;
}
.dot-rule i { width: 13px; height: 13px; border-radius: 50%; display: block; }
.dot-rule i:nth-child(1) { background: var(--teal); }
.dot-rule i:nth-child(2) { background: var(--rust); }
.dot-rule i:nth-child(3) { background: var(--plum); }
.dot-rule i:nth-child(4) { background: var(--grass); }

/* hand-drawn crayon divider (raster motif) */
.crayon-divider { display: block; margin: 2.6rem auto; width: min(360px, 70%); height: auto; }
/* short crayon underline accent beneath a heading */
.scribble-under { display: block; width: 168px; height: auto; margin: -0.1rem 0 1.1rem; }
.band-rug .scribble-under, .center .scribble-under { margin-left: auto; margin-right: auto; }

/* ---------- layout helpers ---------- */
main { display: block; }
section { padding: 3rem 0; }
.section-tight { padding: 2rem 0; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 44rem; }
.center { text-align: center; }
.grid { display: grid; gap: 1.25rem; }

/* ---------- enrollment status banner ---------- */
.status-banner {
  background: linear-gradient(120deg, var(--rug) 0%, var(--teal) 100%);
  color: #fff; border-radius: var(--radius); padding: 2.2rem 2rem;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
}
/* playful crayon-dot corner flourish on the dark banner */
.status-banner::after {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 30% 35%, rgba(255,255,255,0.14) 0 70%, transparent 71%);
}
.status-banner h1 { color: #fff; }
.status-banner .lede { color: #e5f2f9; }

/* home hero: text + crayon art panel */
.status-hero { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 2.2rem; align-items: center; }
.status-hero > div:first-child { position: relative; z-index: 1; }
.status-hero .status-art {
  display: block; width: 100%; border-radius: 16px;
  border: 6px solid #fff; box-shadow: 0 14px 34px rgba(7, 44, 61, 0.34);
  transform: rotate(-1.4deg); background: #fff;
}
.status-hero .art-frame { position: relative; }
.status-hero .art-frame .tape {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 92px; height: 26px; background: rgba(255, 233, 221, 0.72);
  border: 1px solid rgba(255,255,255,0.5); border-radius: 3px; z-index: 2;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 0.5rem; background: var(--grass);
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 0.92rem;
  padding: 0.3rem 0.85rem; border-radius: 999px; margin-bottom: 0.9rem;
}
.status-pill .dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.status-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.3rem; }

/* ---------- hero block ---------- */
.hero {
  background: var(--white); border-bottom: 1px solid var(--line);
  padding: 2.5rem 0 0;
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 2.5rem; align-items: center; }
.crayon-panel {
  border-radius: 22px; min-height: 320px; padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,0.07), var(--shadow);
  position: relative; color: #fff;
  background:
    radial-gradient(circle at 22% 28%, rgba(255,255,255,0.22) 0 9px, transparent 10px),
    radial-gradient(circle at 76% 20%, rgba(255,255,255,0.18) 0 7px, transparent 8px),
    radial-gradient(circle at 60% 70%, rgba(255,255,255,0.16) 0 12px, transparent 13px),
    linear-gradient(150deg, var(--teal), var(--plum));
}
.crayon-panel.alt { background: linear-gradient(150deg, var(--rust), #e9820f); }
.crayon-panel.grass { background: linear-gradient(150deg, var(--grass), #2d8f6a); }
.crayon-panel .stand-in {
  position: absolute; top: 0.8rem; left: 0.8rem; background: rgba(0,0,0,0.32);
  color: #fff; font-size: 0.68rem; letter-spacing: 0.04em; padding: 0.25rem 0.6rem;
  border-radius: 7px;
}
.crayon-panel p { margin: 0; font-family: var(--display); font-weight: 600; font-size: 1.25rem; }

/* ---------- hero art card (fills hero side column) ---------- */
.hero-art-card {
  border-radius: 20px; padding: 1.6rem; text-align: center;
  background-color: #eef6fb;
  background-image: url("/durhamprek/assets/paper-texture.jpg");
  background-size: 380px;
  border: 2px solid var(--line-2); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.7rem;
  min-height: 300px; position: relative; overflow: hidden;
}
.hero-art-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(23,121,166,0.10) 0 16px, transparent 17px),
    radial-gradient(circle at 86% 30%, rgba(203,58,0,0.10) 0 12px, transparent 13px),
    radial-gradient(circle at 78% 82%, rgba(67,127,0,0.10) 0 18px, transparent 19px),
    radial-gradient(circle at 24% 84%, rgba(123,61,201,0.10) 0 14px, transparent 15px);
}
.hero-art-card img { width: min(220px, 62%); height: auto; position: relative; z-index: 1; }
.hero-art-card .cap {
  font-family: var(--display); font-weight: 700; color: var(--rug-2);
  font-size: 1.1rem; position: relative; z-index: 1; margin: 0;
}

/* ---------- name-tag stat cards ---------- */
.nametag {
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.nametag .cap {
  background: var(--rust); color: #fff; font-family: var(--display); font-weight: 700;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; text-align: center;
}
.nametag.teal .cap { background: var(--teal); }
.nametag.grass .cap { background: var(--grass); }
.nametag.plum .cap { background: var(--plum); }
.nametag .big { font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--rug-2); line-height: 1; margin: 0.9rem 0 0.3rem; text-align: center; }
.nametag .lbl { font-size: 0.95rem; color: var(--muted); padding: 0 1rem 1.1rem; text-align: center; margin: 0; }

/* ---------- card / switchboard ---------- */
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.switch-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  border: 1.5px solid var(--line); padding: 1.6rem; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-sm); border-top: 6px solid var(--teal);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
@media (prefers-reduced-motion: reduce) { .switch-card { transition: none; } }
.switch-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.switch-card.rust { border-top-color: var(--rust); }
.switch-card.plum { border-top-color: var(--plum); }
.switch-card.grass { border-top-color: var(--grass); }
.switch-card .card-icon {
  width: 66px; height: 66px; object-fit: contain; margin-bottom: 0.6rem;
  transition: transform 0.18s ease;
}
@media (prefers-reduced-motion: reduce) { .switch-card .card-icon { transition: none; } }
.switch-card:hover .card-icon { transform: rotate(-4deg) scale(1.06); }
.switch-card h3 { color: var(--rug-2); margin-bottom: 0.35rem; }
.switch-card .go { font-family: var(--display); font-weight: 600; color: var(--rust-deep); margin-top: auto; padding-top: 0.8rem; }

/* real-photo frame (construction-paper card holding the program's own photography) */
.photo-frame { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0.5rem; box-shadow: var(--shadow); transform: rotate(-1.2deg); }
@media (prefers-reduced-motion: reduce) { .photo-frame { transform: none; } }
.photo-frame img { display: block; width: 100%; height: auto; border-radius: 11px; }
.photo-frame figcaption { font-size: 0.78rem; color: var(--muted); padding: 0.5rem 0.4rem 0.2rem; text-align: center; }
.photo-band { position: relative; overflow: hidden; }
.photo-band img { display: block; width: 100%; height: clamp(220px, 38vw, 420px); object-fit: cover; object-position: center 38%; }
.photo-band .photo-caption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 1.4rem 1.25rem 0.9rem;
  color: #fff; font-size: 0.82rem; text-align: center;
  background: linear-gradient(transparent, rgba(14,49,68,0.72));
}

/* promo band (e.g. apprenticeship highlight) */
.promo-band {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: space-between;
  background: var(--rug-2); color: #eaf4fa; border-radius: var(--radius); padding: 1.6rem 1.8rem;
  border-left: 8px solid var(--rust);
}
.promo-band .promo-head { font-family: var(--display); font-weight: 800; font-size: 1.7rem; color: #fff; margin: 0.1rem 0 0.3rem; line-height: 1.1; }
.promo-band .promo-sub { margin: 0; max-width: 42rem; color: #cfe4ef; }
.promo-band .btn { flex: none; }

/* generic content card */
.card {
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.card h3 { color: var(--rug-2); }

/* ---------- steps (dot-numbered) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; counter-reset: step; }
.steps li {
  position: relative; padding-left: 3.6rem; counter-increment: step;
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 1.25rem;
}
.steps li:nth-child(4n+1)::before { background: var(--teal); }
.steps li:nth-child(4n+2)::before { background: var(--rust); }
.steps li:nth-child(4n+3)::before { background: var(--plum); }
.steps li:nth-child(4n+4)::before { background: var(--grass); }
.steps h3 { margin: 0.2rem 0 0.25rem; }
.steps p { margin: 0; color: var(--muted); }

/* dot list markers */
.dot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.dot-list li { position: relative; padding-left: 1.6rem; }
.dot-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 11px; height: 11px;
  border-radius: 50%;
}
.dot-list li:nth-child(4n+1)::before { background: var(--teal); }
.dot-list li:nth-child(4n+2)::before { background: var(--rust); }
.dot-list li:nth-child(4n+3)::before { background: var(--plum); }
.dot-list li:nth-child(4n+4)::before { background: var(--grass); }

/* ---------- register band (rug) ---------- */
.band-rug { background: var(--rug-2); color: #eaf4fa; }
.band-rug h2, .band-rug h3 { color: #fff; }
.band-rug .eyebrow { color: #ffe9dd; }
.band-rug a:not(.btn) { color: #cfe9f5; }
.band-paper {
  background-color: #fffefb;
  background-image: url("/durhamprek/assets/paper-texture.jpg");
  background-size: 420px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* ---------- partners band ---------- */
.partners { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: center; justify-content: center; }
.partners figure { margin: 0; text-align: center; }
.partners img { height: 64px; width: auto; }
.partners figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }

/* ---------- news ledger ---------- */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.ledger li:last-child { border-bottom: 0; }
.ledger .meta { display: flex; gap: 0.6rem; align-items: center; font-size: 0.82rem; color: var(--muted); margin-bottom: 0.3rem; }
.tag {
  font-family: var(--display); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.12rem 0.5rem; border-radius: 6px;
  background: #eaf4fa; color: var(--rug);
}
.ledger h3 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.ledger h3 a { color: var(--rug-2); text-decoration: none; }
.ledger h3 a:hover { color: var(--rust-deep); }

/* ---------- search ---------- */
.searchbox { display: flex; gap: 0.5rem; margin: 1.25rem 0; }
.searchbox input {
  flex: 1; font: inherit; font-size: 1.1rem; padding: 0.8rem 1rem;
  border: 2px solid var(--line-2); border-radius: 12px; background: #fff;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.chip {
  font-size: 0.88rem; font-weight: 600; text-decoration: none; color: var(--teal-ink);
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 0.35rem 0.85rem;
}
.chip:hover { border-color: var(--rust); color: var(--rust-deep); }
.answer {
  background: #fff; border: 1.5px solid var(--line-2); border-left: 6px solid var(--grass);
  border-radius: 14px; padding: 1.3rem 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm);
}
.answer .src { font-size: 0.78rem; color: var(--grass); text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--display); font-weight: 700; margin: 0; }
.answer .answer-h { margin: 0.2rem 0 0.5rem; }
.answer .answer-cta { margin: 0 0 1rem; }
.answer .src-head { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-family: var(--display); font-weight: 700; margin: 0 0 0.5rem; }
.src-cards { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.src-card {
  display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none;
  background: var(--paper); border: 1.5px solid var(--line-2); border-radius: 10px;
  padding: 0.5rem 0.8rem; color: var(--rug-2); font-size: 0.88rem; font-weight: 600;
}
.src-card:hover { border-color: var(--teal); color: var(--teal-ink); }
.src-card .src-doc { color: var(--teal); font-size: 1rem; flex: none; }
.result { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.result .rel { font-size: 0.78rem; color: var(--grass); font-weight: 700; }
.result .kind { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.result h3 { margin: 0.2rem 0 0.3rem; font-size: 1.2rem; }
.result h3 a { color: var(--rug-2); text-decoration: none; }
.result h3 a:hover { color: var(--rust-deep); }
.result p { margin: 0; color: var(--muted); }
.reviewer-note {
  background: #f4f9e9; border: 1px dashed var(--grass); border-radius: 12px;
  padding: 1rem 1.2rem; margin: 1.5rem 0; font-size: 0.92rem;
}
.reviewer-note .rn-tag { font-family: var(--display); font-weight: 700; color: var(--grass); display: block; margin-bottom: 0.3rem; }
.reviewer-note code { background: #e4efce; padding: 0.1rem 0.35rem; border-radius: 5px; font-size: 0.88em; }
.eyes-loader { color: var(--muted); font-style: italic; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 0.75rem; }
.faq details {
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 1.2rem;
}
.faq summary {
  font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--rug-2);
  cursor: pointer; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.6rem; color: var(--rust); line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .a { padding: 0.9rem 0 1.1rem; color: var(--ink); }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- locations filter ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin-bottom: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label { font-family: var(--display); font-weight: 600; font-size: 0.9rem; color: var(--rug-2); }
.field input, .field select {
  font: inherit; padding: 0.55rem 0.7rem; border: 1.5px solid var(--line-2);
  border-radius: 10px; background: #fff; min-width: 12rem;
}
.loc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.loc-list li {
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-left: 5px solid var(--teal);
}
.loc-list li[hidden] { display: none; }
.loc-list li[data-type="Public school"] { border-left-color: var(--teal); }
.loc-list li[data-type="Head Start"] { border-left-color: var(--rust); }
.loc-list li[data-type="Community site"] { border-left-color: var(--plum); }
.loc-list li[data-type="NC Pre-K"] { border-left-color: var(--grass); }
.loc-name { font-family: var(--display); font-weight: 700; color: var(--rug-2); font-size: 1.1rem; }
.loc-meta { font-size: 0.9rem; color: var(--muted); }
.loc-badge { font-size: 0.74rem; font-weight: 700; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.06em; color: var(--rug); white-space: nowrap; }

/* ---------- contact form ---------- */
.form-grid { display: grid; gap: 1rem; max-width: 38rem; }
.form-grid label { font-family: var(--display); font-weight: 600; color: var(--rug-2); display: block; margin-bottom: 0.3rem; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; font: inherit; padding: 0.65rem 0.8rem; border: 1.5px solid var(--line-2);
  border-radius: 10px; background: #fff;
}
.form-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- accessibility scorecard ---------- */
.scorecard { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.score {
  border-radius: var(--radius); padding: 1.5rem; border: 1.5px solid var(--line);
  background: #fff; box-shadow: var(--shadow-sm);
}
.score.before { border-top: 6px solid var(--rust); }
.score.after { border-top: 6px solid var(--grass); }
.score .num { font-family: var(--display); font-weight: 800; font-size: 3rem; line-height: 1; }
.score .num-sub { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin: 0.35rem 0 0; }
.score.before .num { color: var(--rust); }
.score.after .num { color: var(--grass); }
.a11y-rows { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.a11y-rows li { display: flex; gap: 0.6rem; font-size: 0.95rem; align-items: flex-start; }
.a11y-rows .mk { font-family: var(--display); font-weight: 800; flex: none; }
.a11y-rows .x { color: var(--rust); }
.a11y-rows .ok { color: var(--grass); }

/* ---------- 404 ---------- */
.lost { max-width: 40rem; margin: 0 auto; padding: 1rem 0 1.5rem; }
.lost-art { width: min(320px, 72%); height: auto; margin: 0 auto 0.5rem; display: block; }
.lost h1 { max-width: 18ch; margin-left: auto; margin-right: auto; }
.lost-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--rug-2); color: #cfe1ea; margin-top: 1rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem;
  padding: 3rem 0 2rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: 0.04em; }
.site-footer a { color: #cfe1ea; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-brand .org { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: #fff; }
.footer-partners img { height: 42px; width: auto; background: #fff; border-radius: 8px; padding: 5px 8px; margin: 0.4rem 0.5rem 0 0; }
.footer-bottom {
  border-top: 1px solid #2b5a73; padding: 1.2rem 0; font-size: 0.82rem;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; color: #a8c4d2;
}
.footer-bottom a { color: #cfe1ea; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-grid, .cards-3, .cards-2, .scorecard, .footer-grid, .status-hero { grid-template-columns: 1fr; }
  .status-hero .art-frame { margin-top: 0.5rem; max-width: 22rem; }
  .status-hero .status-art { transform: rotate(-1deg); }
  .footer-grid { gap: 1.5rem; }
  .nav-toggle { display: inline-flex; }
  .primary-nav ul {
    display: none; flex-direction: column; align-items: stretch; padding: 0 1.25rem 0.75rem;
  }
  .primary-nav.open ul { display: flex; }
  .primary-nav a { padding: 0.8rem 0.5rem; border-bottom: 1px solid var(--line); margin-bottom: 0; }
  .primary-nav a:hover, .primary-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .header-search input { min-width: 0; width: 100%; }
  .header-actions { width: 100%; }
}
@media (max-width: 560px) {
  /* Slim the utility bar on phones so the enrollment message shows with one short scroll. */
  .util-bar .wrap { justify-content: flex-start; gap: 0.3rem 0.9rem; }
  .util-bar .wrap > span:first-child { display: none; } /* hide the tagline; it repeats the hero */
  .util-links .text-dpk { display: none; }              /* Text-DPK lives in the hero + footer */
  .status-banner { padding: 1.6rem 1.3rem; }
}
