/* Save Laurelhurst K-8
   Layout: blue masthead band + sticky nav strip, then content on a washed-marigold page.
   One deliberate light look (campaign colors), so no dark variant. */
:root {
  --page: #fbf1d6;        /* washed-out marigold background */
  --paper: #fffaec;       /* lifted surface for cards and boxes */
  --blue: #226d8c;        /* masthead, headlines */
  --blue-deep: #18536b;   /* nav strip */
  --blue-soft: #d3e6ee;   /* Laurelhurst highlight in tables */
  --gold: #d39b27;        /* rules, borders, lion */
  --gold-soft: #e8cf98;   /* hairlines */
  --gold-bright: #ffcf70; /* numbers on dark */
  --red: #a8321e;         /* math operators, calls to action */
  --ink: #141413;
  --ring: #8b8370;        /* expected-score circles */
  --muted: #55503f;
  --on-dark: #ffffff;
  --on-dark-muted: #d9d3c2;

  --display: "Merriweather", Georgia, "Times New Roman", serif;
  --label: "Archivo", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;

  --max: 1080px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

/* ---------- Masthead ---------- */
.masthead { background: var(--blue); color: var(--on-dark); }
.masthead .wrap {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  padding-block: clamp(18px, 3.5vw, 36px);
}
.masthead .lion { flex: 0 0 auto; width: clamp(64px, 11vw, 120px); height: auto; display: block; }
.masthead .titles { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.site-name {
  margin: 0;
  font-family: var(--label);
  font-weight: 900;
  font-size: clamp(26px, 5.4vw, 52px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.site-name a { color: inherit; text-decoration: none; }
.tagline {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(16px, 2.3vw, 24px);
  line-height: 1.3;
  max-width: 34em;
  text-wrap: balance;
}
.masthead.compact .wrap { padding-block: 14px; }
.masthead.compact .lion { width: clamp(44px, 6vw, 64px); }
.masthead.compact .site-name { font-size: clamp(22px, 3.6vw, 34px); }
.masthead.compact .tagline { font-size: clamp(14px, 1.8vw, 18px); }

/* ---------- Nav: two rows, "The big picture" and "The details" ---------- */
.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--blue-deep);
  border-bottom: 4px solid var(--gold);
}
.nav-bar { display: none; }
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  color: var(--on-dark);
  font: 700 15px/1 var(--label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 0;
  cursor: pointer;
}
.nav-toggle .bars { display: inline-flex; flex-direction: column; gap: 4px; }
.nav-toggle .bars span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 1px; }
.nav-row .wrap { display: flex; align-items: stretch; }
.nav-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-width: 150px;
  padding-right: 14px;
  font: 800 11px/1 var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; flex: 1 1 auto; }
.nav li { display: flex; border-left: 1px solid rgba(255, 255, 255, 0.22); }
.nav a {
  display: flex;
  align-items: center;
  color: var(--on-dark);
  text-decoration: none;
  font: 700 13px/1.1 var(--label);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav a:hover, .nav a:focus-visible { background: var(--gold); color: var(--ink); }
.nav a[aria-current="page"]:hover { box-shadow: none; }

.nav-big .nav-label { color: var(--gold-bright); }
.nav-big a { padding: 13px 10px; }
.nav-big a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--gold-bright); }
.nav-big li.nav-tldr { margin-left: auto; border-right: 1px solid rgba(255, 255, 255, 0.22); }

.nav-details { background: var(--blue-soft); }
.nav-details .nav-label { color: var(--blue-deep); }
.nav-details li { border-left-color: rgba(24, 83, 107, 0.25); }
.nav-details a { color: var(--blue-deep); font-size: 12px; padding: 10px 10px; }
.nav-details a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--gold); }

.nav-more { display: none; }
.nav li.nav-extra { display: none; }

@media (max-width: 899px) {
  .nav-bar { display: block; }
  .nav-toggle { display: inline-flex; }
  .nav-menu { display: none; padding-bottom: 8px; }
  .nav.open .nav-menu { display: block; }
  .nav-row .wrap { flex-direction: column; }
  .nav-details { background: none; }
  .nav-label { min-width: 0; padding: 12px 0 6px; }
  .nav-details .nav-label { color: var(--gold-bright); padding-top: 16px; }
  .nav ul { flex-direction: column; }
  .nav li { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
  .nav-big li.nav-tldr { margin-left: 0; border-right: 0; }
  .nav a, .nav-big a, .nav-details a { width: 100%; padding: 14px 8px; font-size: 15px; color: var(--on-dark); }
  .nav-details a { color: var(--on-dark-muted); font-size: 14px; }
  .nav-more { display: block; }
}
@media (prefers-reduced-motion: reduce) { .nav a { transition: none; } }

/* ---------- Front page ---------- */
.intro { padding-block: clamp(28px, 5vw, 48px) 8px; }
.intro p { margin: 0; max-width: 40em; font-size: clamp(18px, 2vw, 21px); }
.intro p + p { margin-top: 12px; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-block: 24px clamp(40px, 6vw, 72px);
  margin: 0 auto;
  list-style: none;
}
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--paper);
  border: 2px solid var(--gold-soft);
  border-top: 6px solid var(--gold);
  border-radius: 10px;
  padding: 20px 22px 22px;
  min-width: 0;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.card.live:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 10px 24px rgba(90, 64, 10, 0.14); }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card.live:hover { transform: none; } }
.card h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: 21px;
  line-height: 1.25;
  color: var(--blue);
  text-wrap: balance;
}
.card h2 a { color: inherit; text-decoration: none; }
.card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 10px; } /* whole card clickable */
.card .stat {
  font-family: var(--label);
  font-weight: 900;
  font-size: clamp(34px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.card p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--muted); }
.card .more {
  margin-top: auto;
  padding-top: 6px;
  font: 800 14px/1 var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.card.soon { border-top-color: var(--gold-soft); }
.card.soon .more { color: var(--muted); }

/* ---------- Article pages ---------- */
.article { padding-block: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: clamp(24px, 3vw, 32px); }
.article h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(30px, 5.6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--blue);
  text-wrap: wrap;
  max-width: 90%;
}
.src { font-size: 15px; line-height: 1.4; color: var(--muted); }
a.src:hover { color: var(--red); }

/* the math, step by step */
.steps { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--gold); }
.steps li {
  display: grid;
  grid-template-columns: 48px minmax(0, 300px) minmax(0, 1fr);
  align-items: center;
  column-gap: 20px;
  padding: 16px 0;
  border-bottom: 2px solid var(--gold-soft);
}
.steps .op { font: 800 36px/1 var(--label); color: var(--red); text-align: center; }
.steps .num {
  font: 900 clamp(34px, 4.6vw, 52px)/1 var(--label);
  letter-spacing: -0.01em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}
a.num:hover { color: var(--red); }
.steps .what { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.steps .label { font-size: 20px; line-height: 1.3; font-weight: 600; }
@media (max-width: 700px) {
  .steps li { grid-template-columns: 36px minmax(0, 1fr); row-gap: 8px; }
  .steps .op { font-size: 30px; }
  .steps .what { grid-column: 2; }
  .steps .label { font-size: 19px; }
}

.answer {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: 16px;
  padding: clamp(20px, 3vw, 30px) clamp(18px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.answer p { margin: 0; font-size: 20px; line-height: 1.4; }
.answer .big {
  font: 900 clamp(34px, 6vw, 62px)/1.05 var(--label);
  color: var(--gold-bright);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.answer .big:hover { color: var(--on-dark); }
.answer strong { font-size: 21px; }
.answer .src, .answer a.src { color: var(--on-dark-muted); }
.answer a.src:hover { color: var(--gold-bright); }

.factcheck {
  background: var(--paper);
  border: 4px solid var(--gold);
  border-radius: 16px;
  padding: clamp(18px, 3vw, 26px) clamp(16px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.eyebrow { font: 800 16px/1 var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.factcheck .claim { margin: 0; font-size: clamp(21px, 2.8vw, 28px); line-height: 1.32; font-weight: 700; }
.factcheck .claim a { color: var(--blue); }
.factcheck .claim + .claim { padding-top: 4px; }
.factcheck .hl { color: var(--blue); }
.factcheck .kicker { font: 900 clamp(24px, 3.4vw, 32px)/1.2 var(--label); color: var(--red); }

/* cost range strip, drawn to one scale: $9,113 (left edge) to $13,290 (right edge) */
.range { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 17px; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend .tick { display: inline-block; width: 6px; height: 22px; border-radius: 3px; flex: 0 0 auto; }
.legend .lh { color: var(--blue); font-weight: 700; }
.legend .avg { font-weight: 700; }
.legend .mt { color: var(--muted); font-style: italic; }
.range-labels { position: relative; height: 44px; margin: 0 3px -8px; }
.rl { position: absolute; bottom: 0; font: 700 15px/1.2 var(--body); white-space: nowrap; font-variant-numeric: tabular-nums; }
.rl.lh { color: var(--blue); text-align: right; padding-right: 8px; border-right: 2px solid var(--blue); }
.rl.avg { color: var(--ink); padding-left: 8px; border-left: 2px solid var(--ink); }
@media (max-width: 480px) {
  .range-labels { height: 58px; }
  .rl { font-size: 13px; }
  .rl.lh { right: auto !important; left: calc(21.8% - 1px); text-align: left; padding: 0 0 36px 8px; border-right: 0; border-left: 2px solid var(--blue); }
  .rl.lh br { display: none; }
}
.track { position: relative; height: 44px; margin: 0 3px; }
.track .bar { position: absolute; left: 0; right: 0; top: 15px; height: 14px; border-radius: 7px; background: #f1dca6; }
.track .mark { position: absolute; top: 4px; width: 6px; height: 36px; margin-left: -3px; border-radius: 3px; }
.track .mark.mt { top: 10px; height: 24px; }
.c-lh { background: var(--blue); }
.c-avg { background: var(--ink); }
.c-mt { background: var(--muted); }
.ends { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; line-height: 1.25; color: var(--muted); }
.ends span:last-child { text-align: right; }

.question { background: var(--ink); border-radius: 16px; padding: clamp(22px, 3.4vw, 32px) clamp(18px, 3vw, 36px); }
.question p {
  margin: 0;
  font: 900 clamp(24px, 3.6vw, 38px)/1.28 var(--display);
  color: var(--gold-bright);
  text-wrap: balance;
}
.question a { color: var(--on-dark); text-decoration-color: var(--gold); }
.question a:hover { color: var(--gold-bright); }
.question sup { font-size: 0.5em; }
.footnote a { color: inherit; }

.closer { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding-block: 8px; }
.closer .line { font: 900 clamp(32px, 5.6vw, 58px)/1.05 var(--display); letter-spacing: -0.015em; text-wrap: balance; }
.badge {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.35em;
  background: var(--red);
  color: var(--on-dark);
  font: 900 clamp(24px, 4vw, 38px)/1.05 var(--label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 12px;
}

.footnote { border-top: 1px solid var(--gold-soft); padding-top: 12px; font-size: 15px; line-height: 1.45; color: var(--muted); margin: 0; }

/* methods */
.methods { border-top: 3px solid var(--gold); padding-top: clamp(20px, 3vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.methods h2 { margin: 0; font: 900 clamp(24px, 3.2vw, 32px)/1.2 var(--display); color: var(--blue); }
.methods h3 { margin: 12px 0 0; font: 800 15px/1.2 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.methods p, .methods li { max-width: 42em; font-size: 18px; }
.methods p { margin: 0; }
.methods ul, .methods ol { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.methods ol.sources li { font-size: 16px; }

.back { font: 800 15px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Cost page ---------- */
:root { --t1: #a8321e; --t2: #226d8c; --t3: #3d7a3f; --ms: #c9bd9b; }
.lede { display: flex; flex-direction: column; gap: 12px; }
.subhead { margin: 0; font: 800 clamp(17px, 2vw, 20px)/1.3 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--red); }
.lede p:not(.subhead) { margin: 0; max-width: 40em; font-size: clamp(18px, 2vw, 21px); }

.chart { margin: 0; background: var(--paper); border: 2px solid var(--gold-soft); border-radius: 16px; padding: clamp(16px, 3vw, 28px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.chart figcaption { display: flex; flex-direction: column; gap: 4px; }
.chart-title { font: 900 clamp(20px, 2.6vw, 26px)/1.2 var(--display); color: var(--blue); }
.chart-key { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.chart-key li { display: flex; align-items: center; gap: 8px; }
.sw { width: 14px; height: 14px; border-radius: 3px; flex: 0 0 auto; }
.sw.lh { background: var(--gold); } .sw.msch { background: var(--t3); } .sw.pk8 { background: var(--t2); } .sw.hi { background: var(--t3); } .sw.mid { background: var(--t2); } .sw.lo { background: var(--t1); } .sw.t1 { background: var(--t1); } .sw.t2 { background: var(--t2); } .sw.t3 { background: var(--t3); } .sw.ms { background: var(--ms); }
.sw.avg { width: 0; height: 16px; border-radius: 0; border-left: 3px dashed var(--ink); }
.bars-scroll { overflow-x: auto; }
.bar-list { list-style: none; margin: 0; padding: 0; min-width: 300px; }
.bar-row { display: grid; grid-template-columns: minmax(96px, 190px) minmax(0, 1fr); align-items: center; column-gap: 12px; }
.bar-name { font-size: 15px; line-height: 1.1; text-align: right; color: var(--ink); }
.bar-row.ms .bar-name { color: var(--muted); }
.bar-row.lh .bar-name { font-weight: 800; font-size: 17px; }
.bar-area { position: relative; display: block; width: calc(100% - 4.4em); padding-block: 3px; }
.bar-area::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--avg, 79.55%); border-left: 2px dashed var(--ink); z-index: 1; } /* $8,750 on a $0–$11,000 scale */
.bar-fill { position: relative; display: block; height: 18px; border-radius: 0 3px 3px 0; }
.bar-row.t1 .bar-fill { background: var(--t1); } .bar-row.t2 .bar-fill { background: var(--t2); }
.bar-row.t3 .bar-fill { background: var(--t3); } .bar-row.ms .bar-fill { background: var(--ms); }
.bar-row.k8 .bar-fill { background: var(--t2); }
.bar-row.hi .bar-fill { background: var(--t3); } .bar-row.mid .bar-fill { background: var(--t2); } .bar-row.lo .bar-fill { background: var(--t1); }
.bar-list.no-avg .bar-area::before { display: none; }
.bar-row.lh .bar-fill { background: var(--gold); }

.bar-val { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 4px; padding: 0 3px; z-index: 2; background: var(--paper); font-size: 14px; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-row.lh .bar-val { font-weight: 800; color: var(--ink); }
@media (max-width: 520px) { .bar-name .suffix { display: none; } .bar-row { grid-template-columns: 104px minmax(0, 1fr); column-gap: 8px; } .bar-name { font-size: 13px; } .bar-row.lh .bar-name { font-size: 14px; } .bar-val { font-size: 12px; } }

.callout { background: var(--blue); color: var(--on-dark); border-radius: 16px; padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 36px); }
.callout p { margin: 0; font: 700 clamp(22px, 3vw, 30px)/1.3 var(--display); text-wrap: balance; }
.callout strong { color: var(--gold-bright); font-family: var(--label); font-weight: 900; }

.tiers { display: flex; flex-direction: column; gap: 16px; }
.tiers h2 { margin: 0; font: 900 clamp(22px, 3vw, 30px)/1.2 var(--display); color: var(--blue); text-wrap: balance; }
.tier-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tier { background: var(--paper); border: 2px solid var(--gold-soft); border-left: 10px solid var(--ms); border-radius: 12px; padding: 16px clamp(16px, 2.6vw, 24px); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.tier.t1 { border-left-color: var(--t1); } .tier.t2 { border-left-color: var(--t2); } .tier.t3 { border-left-color: var(--t3); }
.tier.ref { background: transparent; }
.tier-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.tier-name { font: 900 20px/1.2 var(--label); }
.tier-avg { font: 900 clamp(26px, 3.4vw, 32px)/1 var(--label); font-variant-numeric: tabular-nums; display: inline-flex; align-items: baseline; gap: 8px; }
.tier-avg small { font: 600 14px/1 var(--body); color: var(--muted); }
.tier-schools { margin: 0; font-size: 17px; line-height: 1.45; }
.tier-facts { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 32px; }
.tier-facts div { display: flex; flex-direction: column; gap: 2px; }
.tier-facts dt { font: 700 13px/1.2 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.tier-facts dd { margin: 0; font-size: 18px; font-variant-numeric: tabular-nums; }
.tier-plan { margin: 0; padding-top: 10px; border-top: 1px solid var(--gold-soft); font-size: 17px; line-height: 1.45; }
.tier-plan span { font: 800 14px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); margin-right: 4px; }

.tiers-lede { margin: 0; max-width: 42em; font-size: 18px; }

/* tabs */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tabs { display: flex; flex-direction: column; min-width: 0; }
.tab-bar { display: flex; gap: 4px; overflow-x: auto; border-bottom: 4px solid var(--gold); scrollbar-width: none; }
.tab-bar button {
  flex: 0 0 auto;
  white-space: nowrap;
  border: 2px solid var(--gold-soft);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: transparent;
  color: var(--blue-deep);
  font: 800 15px/1.1 var(--label);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px clamp(12px, 1.4vw, 20px);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.tab-bar button:hover { background: var(--gold-soft); color: var(--ink); }
.tab-bar button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .tab-bar button { transition: none; } }
.tab-panel { padding-top: clamp(18px, 3vw, 26px); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel-lede { margin: 0; max-width: 40em; font: 700 clamp(20px, 2.6vw, 26px)/1.35 var(--display); color: var(--ink); text-wrap: pretty; }
.panel-lede strong { color: var(--blue); font-family: var(--label); font-weight: 900; }
.panel-notes { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; max-width: 46em; font-size: 17px; color: var(--muted); }
.panel-notes strong { color: var(--ink); }
@media (max-width: 520px) { .tab-bar button { font-size: 13px; letter-spacing: 0.04em; padding: 11px 10px; } }

/* comparison table */
.table-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 520px; border-collapse: collapse; background: var(--paper); border: 2px solid var(--gold-soft); border-radius: 12px; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--gold-soft); }
.compare thead th { font: 800 14px/1.2 var(--label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-deep); vertical-align: bottom; }
.compare thead small { display: block; margin-top: 3px; font: 600 13px/1.2 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.compare tbody th, .compare tfoot th { text-align: left; font-weight: 600; font-size: 17px; }
.compare td { font: 800 20px/1.1 var(--label); }
.compare tr.lh th, .compare tr.lh td { background: var(--blue-soft); color: var(--ink); }
.compare tr.lh th { font-weight: 800; }
.compare tfoot th, .compare tfoot td { border-bottom: 0; border-top: 3px solid var(--gold); color: var(--red); }
.compare tfoot td { font-size: 22px; font-weight: 900; }

/* paired bars (Laurelhurst vs. a comparison) */
.pair-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.pair { display: grid; grid-template-columns: minmax(150px, 230px) minmax(0, 1fr); column-gap: 16px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--gold-soft); }
.pair:last-child { border-bottom: 0; padding-bottom: 0; }
.pair-name { font-weight: 700; font-size: 17px; line-height: 1.25; display: flex; flex-direction: column; gap: 2px; }
.pair-name small { font-weight: 400; font-size: 14px; color: var(--muted); }
.pair-bars { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pair-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; column-gap: 18px; }
.pair-who { font: 700 13px/1 var(--label); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.pair-row .bar-area::before { display: none; }
.pair-row.lh .bar-fill { background: var(--gold); height: 22px; }
.pair-row.pps .bar-fill { background: var(--t2); }
.pair-row.msch .bar-fill { background: var(--t3); }
.pair-row.lh .bar-val { font-weight: 800; color: var(--ink); font-size: 16px; }
@media (max-width: 600px) { .pair { grid-template-columns: minmax(0, 1fr); row-gap: 8px; } .pair-row { grid-template-columns: 100px minmax(0, 1fr); } }

/* slope chart */
.slope-wrap { max-width: 520px; }
.slope { width: 100%; height: auto; display: block; overflow: visible; }
.slope-axis { stroke: var(--gold-soft); stroke-width: 2; }
.slope-head { fill: var(--muted); font: 700 15px var(--label); letter-spacing: 0.06em; text-transform: uppercase; }
.slope-line { stroke-width: 5; stroke-linecap: round; }
.slope-line.pps { stroke: var(--t3); }
.slope-line.lh { stroke: var(--gold); stroke-width: 7; }
.slope-dot.pps { fill: var(--t3); }
.slope-dot.lh { fill: var(--gold); }
.slope-val { fill: var(--muted); font: 800 20px var(--label); }
.slope-val.lhv { fill: var(--ink); font-size: 24px; }
.slope-lab { fill: var(--muted); font: 600 15px var(--body); }
.slope-lab.lhl { fill: var(--ink); font-weight: 800; }

/* boundary page */
.compare-strip { display: flex; align-items: stretch; gap: 16px; flex-wrap: wrap; }
.cs-item { flex: 1 1 220px; background: var(--paper); border: 2px solid var(--gold-soft); border-radius: 14px; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.cs-item.now { border-color: var(--blue); }
.cs-label { font: 800 13px/1.2 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cs-num { font: 900 clamp(34px, 5vw, 48px)/1 var(--label); font-variant-numeric: tabular-nums; }
.cs-item.now .cs-num { color: var(--blue); }
.cs-item.below { border-color: var(--red); }
.cs-item.below .cs-num { color: var(--red); }
.points-lede { margin: 0; max-width: 44em; font-size: 18px; }
.cs-note { font-size: 16px; color: var(--muted); }
.cs-arrow { align-self: center; font: 900 36px/1 var(--label); color: var(--red); }
@media (max-width: 560px) { .cs-arrow { transform: rotate(90deg); margin: -4px auto; } }
.map-frame { position: relative; width: 100%; max-width: 100%; height: clamp(420px, 72vh, 760px); border-radius: 10px; overflow: hidden; border: 2px solid var(--gold-soft); background: var(--page); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 600px) { .map-frame { height: 70vh; min-height: 420px; } }
.points { display: flex; flex-direction: column; gap: 12px; }
.points h2 { margin: 0; font: 900 clamp(22px, 3vw, 30px)/1.2 var(--display); color: var(--blue); }
.points ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 10px; max-width: 44em; }
.points li { font-size: 18px; }

.map-key { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 24px; font-size: 16px; }
.map-key li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mk { flex: 0 0 auto; width: 22px; height: 16px; }
.mk.area { background: color-mix(in srgb, var(--c) 35%, transparent); border: 2px solid var(--c); border-radius: 3px; }
.mk.ring { border: 3px solid var(--c); border-radius: 50%; width: 18px; height: 18px; }
.mk.steps { height: 14px; border-top: 3px solid var(--c); border-right: 3px solid var(--c); background: linear-gradient(var(--c), var(--c)) 0 100% / 50% 3px no-repeat, linear-gradient(var(--c), var(--c)) 50% 40% / 3px 60% no-repeat; }

/* test scores */
.tp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.tp { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); column-gap: 16px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--gold-soft); }
.tp:last-child { border-bottom: 0; padding-bottom: 0; }
.tp:first-child { border-bottom-width: 2px; }
.tp-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; min-width: 0; }
.tp-col { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tp-subj { font: 800 14px/1.2 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-deep); }
.tp-head { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 1fr); column-gap: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gold); }
.tp-head .tp-cols .tp-subj { padding-left: 118px; }
.tp-inline { display: none; }
@media (max-width: 760px) { .tp-head { grid-template-columns: minmax(0, 1fr); } .tp-head > span:first-child { display: none; } }
@media (max-width: 520px) { .tp-head { display: none; } .tp-inline { display: block; } }
.tp .pair-row { grid-template-columns: 100px minmax(0, 1fr); column-gap: 18px; }
.tp .pair-row.lh .bar-fill { height: 18px; }
@media (max-width: 760px) { .tp { grid-template-columns: minmax(0, 1fr); row-gap: 8px; } }
@media (max-width: 520px) { .tp-cols { grid-template-columns: minmax(0, 1fr); } }
.bar-row.msr .bar-fill { background: var(--t3); }
.exp-chart .bar-area { overflow: visible; }
.exp-tick { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 1px; z-index: 3; }
.sw.tick { width: 3px; height: 18px; border-radius: 1px; background: var(--ink); }
.dv { font-style: normal; font-weight: 800; margin-left: 4px; }
.dv.pos { color: var(--t3); }
.dv.neg { color: var(--t1); }
.exp-chart .bar-row.lh .bar-fill { background: var(--gold); }
.bar-val.free { left: auto; transform: translateY(-50%); margin-left: 0; padding-left: 4px; }
.exp-chart .bar-row.lh .bar-val { font-weight: 800; color: var(--ink); }

/* scatter */
.sc-wrap { max-width: 720px; }
.scatter { width: 100%; height: auto; display: block; overflow: visible; }
.sc-grid { stroke: var(--gold-soft); stroke-width: 1; }
.sc-axis { stroke: var(--muted); stroke-width: 1.5; }
.sc-tick { fill: var(--muted); font: 600 11px var(--body); }
.sc-axislab { fill: var(--muted); font: 700 12px var(--body); }
.sc-ylab { margin: 0; font-size: 14px; color: var(--muted); }
.sc-fit { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 5; }
.sc-fitlab { fill: var(--ink); font: 700 12px var(--body); }
.sc-dot { stroke: var(--paper); stroke-width: 1.5; }
.sc-dot.k8 { fill: var(--t2); } .sc-dot.ms { fill: var(--t3); } .sc-dot.lhs { fill: var(--gold); } .sc-dot.lh { fill: var(--gold); stroke: var(--ink); stroke-width: 2; }
.sc-gap { stroke: var(--gold); stroke-width: 3; }
.sc-lhlab { fill: var(--ink); font: 800 14px var(--label); }
.sc-lhsub { fill: var(--muted); font: 600 11px var(--body); }
.sw.dot { border-radius: 50%; }
.sw.fitline { width: 22px; height: 0; border-top: 2px dashed var(--ink); border-radius: 0; }

/* research page */
.studies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 820px) { .studies { grid-template-columns: minmax(0, 1fr); } }
.study.short { border-top-color: var(--gold); }
.study { background: var(--paper); border: 2px solid var(--gold-soft); border-top: 6px solid var(--blue); border-radius: 12px; padding: 18px 22px 20px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.study-org { font: 900 14px/1.2 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); }
.study h3 { margin: 0; font: 900 20px/1.3 var(--display); color: var(--blue); text-wrap: balance; }
.study-cite { margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.study ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px; font-size: 17px; line-height: 1.45; }
.study .src { margin-top: auto; padding-top: 6px; }

/* "why Laurelhurst works" band */
.why { background: var(--blue-deep); color: var(--on-dark); border-top: 4px solid var(--gold); }
.why .wrap { padding-block: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 20px; }
.why h2 { margin: 0; font: 900 clamp(26px, 3.6vw, 38px)/1.15 var(--display); color: var(--on-dark); text-wrap: balance; }
.why .why-cards { padding: 0; padding-left: 0; padding-right: 0; }
.why-card { background: var(--blue); border: 2px solid rgba(255, 255, 255, 0.18); border-top: 6px solid var(--gold); color: var(--on-dark); }
.why-card .why-label { font: 900 13px/1 var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); }
.why-card h3 { margin: 0; font: 900 21px/1.25 var(--display); color: var(--on-dark); text-wrap: balance; }
.why-card .stat { color: var(--gold-bright); }
.why-card p { color: #f1ece0; }
.why-card .more { color: var(--gold-bright); }

/* positives in the phone menu */
@media (max-width: 899px) {
  .nav.open li.nav-extra { display: flex; }
  .nav li.nav-extra-first { border-top: 5px solid var(--gold); margin-top: 8px; }
  .nav .nav-extra a { color: var(--gold-bright); }
  .nav li.nav-extra + li.nav-extra { border-top-color: rgba(255, 255, 255, 0.14); }
}

.ask { background: var(--paper); border: 3px solid var(--gold); border-radius: 16px; padding: clamp(18px, 3vw, 26px) clamp(18px, 3vw, 36px); }
.ask p { margin: 0; font: 700 clamp(20px, 2.6vw, 26px)/1.35 var(--display); color: var(--ink); text-wrap: balance; }

/* dumbbell chart (grades 6–8 reading vs. expected) */
.db-wrap { overflow-x: auto; }
.db-wrap svg { display: block; }
.db-row:hover .bgr { fill: #f6ead0 !important; }
.db-row.me:hover .bgr { fill: var(--blue-soft) !important; }
.db-key svg { flex: 0 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: var(--on-dark-muted); }
.site-footer .wrap { padding-block: 24px 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 15px; }
.site-footer a { color: var(--on-dark); }
.site-footer a:hover { color: var(--gold-bright); }

@media print {
  .nav, .site-footer { display: none; }
  body { background: #fff; }
  .card, .factcheck { break-inside: avoid; }
}

/* K-8 plan table (home page) */
.k8-plan { margin-top: 8px; margin-bottom: 40px; }
.k8-plan h2 { font: 900 clamp(24px, 3.2vw, 32px)/1.2 var(--display); color: var(--blue-deep); margin: 0 0 10px; }
.k8-table { min-width: 0; }
.k8-table th.plan { text-align: left; }
.k8-table tr.table-title th { text-align: left; font: 900 clamp(18px, 2.2vw, 22px)/1.2 var(--display); letter-spacing: 0; text-transform: none; color: var(--blue); padding-top: 16px; padding-bottom: 12px; border-bottom: 4px solid var(--gold); }
.k8-table td.plan { text-align: left; font: 600 17px/1.3 var(--body); }
.k8-table tr.meets td:nth-child(3) { color: var(--blue-deep); }
.k8-table tr.kept th, .k8-table tr.kept td { color: var(--muted); }
.k8-table tr.kept td.plan { font-weight: 700; color: var(--ink); }
.k8-table tbody tr:nth-child(3) th, .k8-table tbody tr:nth-child(3) td,
.k8-table tbody tr:nth-child(7) th, .k8-table tbody tr:nth-child(7) td { border-bottom: 3px solid var(--gold); }
.k8-table tr.kept td:nth-child(3) { color: var(--red); }
.k8-plan .footnote { margin-top: 12px; }
@media (max-width: 480px) {
  .k8-table th, .k8-table td { padding: 9px 7px; }
  .k8-table thead th { font-size: 12px; letter-spacing: 0.03em; }
  .k8-table thead small { font-size: 11px; }
  .k8-table tr.table-title th { font-size: 17px; letter-spacing: 0; }
  .k8-table tbody th, .k8-table td.plan { font-size: 14px; }
  .k8-table td { font-size: 17px; }
}
.k8-plan .table-scroll { margin-top: 16px; }
.nw { white-space: nowrap; }
.lc { text-transform: lowercase; }
.k8-table td.k5.below { color: var(--red); }
.k8-table td.k5.na { color: var(--muted); font-weight: 600; }
.k8-table td sup { font-size: 0.6em; margin-left: 1px; }
.k8-table th sup { font-size: 0.65em; margin-left: 2px; }
.k8-plan .footnote + .footnote { border-top: 0; margin-top: 8px; padding-top: 0; }
.footnote sup { font-size: 0.75em; }
/* page notes at the bottom of the home page */
.page-notes { padding-top: 28px; padding-bottom: 8px; }
.page-notes .footnote { border-top: 0; padding-top: 0; margin: 0 0 8px; }
.page-notes .footnote:first-child { border-top: 1px solid var(--gold-soft); padding-top: 12px; }
.intro sup { font-size: 0.7em; }
/* footnote links */
.fn-ref a { text-decoration: none; color: var(--blue); font-weight: 700; padding: 0 1px; }
.fn-ref a:hover { text-decoration: underline; }
.page-notes .fn-back { display: inline-block; min-width: 1.4em; font-weight: 800; color: var(--blue); text-decoration: none; }
.page-notes .fn-back:hover, .page-notes .fn-up:hover { text-decoration: underline; }
.page-notes .fn-up { color: var(--blue); text-decoration: none; font-weight: 700; }
.page-notes .footnote:target { background: var(--gold-soft); border-radius: 4px; }
[id^="fn"], [id^="ref"] { scroll-margin-top: 110px; }
@media (max-width: 899px) { [id^="fn"], [id^="ref"] { scroll-margin-top: 80px; } }
/* body text spans the full content width, matching the charts, tables, and cards */
.intro p, .lede p:not(.subhead), .panel-lede, .panel-notes, .tiers-lede, .points-lede, .points ul, .methods p, .methods li { max-width: none; }
.article h1.h1-wide { text-wrap: wrap; }
/* home page: Laurelhurst-specific cards get a blue frame */
.card.card-lh { border-color: var(--blue-soft); border-top-color: var(--blue); }
.card.card-lh.live:hover { border-color: var(--blue); }
/* home cards take the color of their nav group */
.card.card-big { background: var(--blue-deep); border-color: rgba(255, 255, 255, 0.18); border-top-color: var(--gold); }
.card.card-big h2 { color: var(--on-dark); }
.card.card-big .stat { color: var(--gold-bright); }
.card.card-big p { color: #f1ece0; }
.card.card-big .more { color: var(--gold-bright); }
.card.card-big.live:hover { border-color: var(--gold); border-top-color: var(--gold); }
.card.card-detail { background: var(--blue-soft); border-color: rgba(24, 83, 107, 0.2); border-top-color: var(--gold); }
.card.card-detail h2 { color: var(--blue-deep); }
.card.card-detail .stat { color: var(--ink); }
.card.card-detail p { color: #1c2a30; }
.card.card-detail.card-lh { border-top-color: var(--blue-deep); }
.card.card-detail.live:hover { border-color: var(--blue-deep); }
.intro .intro-ask { margin-top: 24px; }
/* test scores by group: other converted K-8s */
:root { --bc: #3d7a3f; --ss: #7b5ea7; --vn: #b0457d; }
.sw.bc { background: var(--bc); } .sw.ss { background: var(--ss); } .sw.vn { background: var(--vn); }
.pair-row.bc .bar-fill { background: var(--bc); }
.pair-row.ss .bar-fill { background: var(--ss); }
.pair-row.vn .bar-fill { background: var(--vn); }
.tp .pair-row { grid-template-columns: 124px minmax(0, 1fr); column-gap: 12px; }
.tp-head .tp-cols .tp-subj { padding-left: 136px; }
.pair-row.supp .bar-note { font-size: 13px; font-style: italic; color: var(--muted); }
.tp-col { gap: 3px; }
.pair-row.supp .bar-area { display: flex; align-items: center; min-height: 0; height: 24px; }
.pair-row.supp .bar-note { line-height: 1; }
/* test scores by group: bold the highest score in each column, whichever school it is */
.tp .pair-row.lh .bar-val { font-weight: 400; font-size: 14px; color: var(--muted); }
.tp .pair-row.top .bar-val { font-weight: 800; font-size: 16px; color: var(--ink); }
.tp .pair-row.top .pair-who { color: var(--ink); font-weight: 800; }
/* poverty charts: the four converted K-8s from the student group tab */
.sc-dot.bc { fill: var(--bc); } .sc-dot.ss { fill: var(--ss); } .sc-dot.vn { fill: var(--vn); }
.sc-dot.vn[r="8"] { stroke: var(--ink); stroke-width: 2; }
.sc-gap.vn { stroke: var(--vn); }
/* cost bars: bold the other converted K-8s */
.bar-row.hl .bar-name { font-weight: 800; }
/* thicker, easier-to-see average line on the bar charts */
.bar-area::before { border-left-width: 3px; margin-left: -1px; }
/* cost table: average rows as quieter reference lines */
.compare tr.avg th, .compare tr.avg td { color: var(--muted); }
/* busing page: dark boxes match the blue used elsewhere */
.answer, .question { background: var(--blue); }
/* busing page: plain step numbers, blue operators, 3px fact-check border, busing mark on the range */
.steps .num { text-decoration: none; }
.steps .op { color: var(--blue); }
.factcheck { border-width: 3px; }
.answer .big:hover { color: var(--gold-bright); }
.c-bus { background: var(--paper); border: 2px solid var(--blue); box-sizing: border-box; }
.range-below { position: relative; height: 40px; margin: -4px 3px 0; }
.rl.bus { top: 0; bottom: auto; color: var(--blue); padding-left: 8px; border-left: 2px dashed var(--blue); }
.bigq { padding-block: 16px 20px; }
.closer .line { color: var(--blue); }
.steps li:first-child { padding-top: calc(clamp(18px, 3vw, 26px) - 2px); }
@media (max-width: 700px) { .steps li:first-child { padding-top: 18px; } }
/* busing fact check: same box as the research study cards */
.factcheck { border: 2px solid var(--gold-soft); border-top: 6px solid var(--blue); border-radius: 12px; padding: 18px 22px 20px; }
.factcheck .eyebrow { font: 900 14px/1.2 var(--label); letter-spacing: 0.1em; color: var(--red); }
.factcheck .claim { font: 900 20px/1.3 var(--display); color: var(--ink); text-wrap: pretty; }

/* rounded corners on the comparison tables, to match the charts and cards */
.compare { border-collapse: separate; border-spacing: 0; border-radius: 16px; overflow: hidden; }
.compare > :last-child > tr:last-child > th, .compare > :last-child > tr:last-child > td { border-bottom: 0; }
.compare tbody:has(+ tfoot) > tr:last-child > th, .compare tbody:has(+ tfoot) > tr:last-child > td { border-bottom: 0; }
/* breathing room above the column titles when they sit at the top of the box */
.compare:not(.k8-table) thead th { padding-top: 20px; }
/* enrollment page: census line chart (uses the scatter chart styles) */
.sc-wrap.sc-wide { max-width: none; }
.scatter .ln { fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.scatter .ln.lh { stroke: var(--gold); }
.scatter .ln.pdx { stroke: var(--t2); stroke-width: 2; }
.scatter .sc-fn { font-size: 9px; font-weight: 800; fill: var(--blue); }
.scatter .sc-end { font-size: 13px; }
/* enrollment page: enrollment forecast chart */
.scatter .fc-zone { fill: var(--gold-soft); opacity: 0.25; }
.scatter .ln.fc { stroke-dasharray: 7 6; opacity: 0.5; }
.scatter .sc-dot.fc { stroke: var(--paper); opacity: 0.55; }
.sw.fc { opacity: 0.55; }
.scatter .fc-range { stroke: var(--gold); stroke-width: 6; stroke-linecap: round; opacity: 0.35; }
/* callouts: fill the full width of the box instead of balancing lines */
.callout p { text-wrap: wrap; max-width: none; }
/* tabs laid out like an article page (Boundaries): same spacing between blocks */
.tab-panel.tab-article { gap: clamp(24px, 3vw, 32px); }
.scatter .ln.sr { stroke: var(--t3); stroke-width: 2; }
.scatter .ln.old { stroke-dasharray: 7 5; }
.scatter rect.sc-dot.sq.lh { fill: var(--gold); stroke: var(--ink); stroke-width: 2; }
.scatter rect.sc-dot.sq.k8 { fill: var(--t2); stroke: var(--paper); stroke-width: 1.5; }
.cs-num .cs-unit { font-size: 0.6em; }
/* three-box strips stack before they can wrap unevenly */
@media (max-width: 820px) { .compare-strip.cs-three { flex-direction: column; } .cs-three .cs-item { flex-basis: auto; } .cs-three .cs-arrow { transform: rotate(90deg); margin: -4px auto; } }
/* Keeping families: private share by grade */
.sw.kf19 { background: var(--ms); } .sw.kf24 { background: var(--t2); }
.pair-row.y19 .bar-fill { background: var(--ms); }
.pair-row.y24 .bar-fill { background: var(--t2); }
.pair.hl .pair-name { color: var(--blue); }
.pair.hl .pair-row.y24 .bar-val { font-weight: 800; color: var(--ink); }

/* Real cost, projected savings tab: side-by-side scenario math */
.scenarios .cs-item { gap: 10px; border: 2px solid var(--gold-soft); border-top: 6px solid var(--blue); border-radius: 12px; padding: 18px 22px 20px; min-width: 0; }
.scenarios .cs-label { font: 900 14px/1.2 var(--label); letter-spacing: 0.1em; color: var(--red); }
.mini-math { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.mini-math td { padding: 8px 0; vertical-align: baseline; border-bottom: 1px solid var(--gold-soft); }
.mini-math tr:last-child td { border-bottom: none; }
.mini-math .op { width: 1.3em; font: 800 22px/1 var(--label); color: var(--blue); text-align: center; }
.mini-math .v { font: 800 22px/1.15 var(--label); text-align: right; padding-right: 14px; white-space: nowrap; }
.mini-math .l { font-size: 16px; line-height: 1.3; color: var(--muted); }
.mini-math tr.total td { border-top: 3px solid var(--gold); padding-top: 12px; vertical-align: top; }
.mini-math tr.total .v { font-size: 34px; color: var(--blue); }
.mini-math tr.total .l { color: var(--ink); font-size: 20px; font-weight: 600; padding-top: 14px; }

/* tl;dr page */
.tldr { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 30px); }
.tldr section { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--gold-soft); }
.tldr .eyebrow { text-decoration: none; font-size: 14px; }
.tldr a.eyebrow:hover { color: var(--red); }
.tldr p { margin: 0; max-width: 42em; font-size: clamp(18px, 2vw, 20px); line-height: 1.55; }

/* case studies: history box */
.study.history { max-width: 52em; }
.study.history p { margin: 0; font-size: 18px; line-height: 1.55; }

/* case studies: timeline (built on the busing range line) */
.timeline { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.tl-above, .tl-below { position: relative; height: 92px; margin: 0 3px; }
.tl-ev { position: absolute; font: 700 15px/1.2 var(--body); white-space: nowrap; padding-left: 8px; border-left: 2px solid currentColor; }
.tl-above .tl-ev { bottom: 0; padding-bottom: calc(var(--row) * 22px - 18px); }
.tl-below .tl-ev { top: 0; padding-top: calc(var(--row) * 22px - 18px); }
.tl-ev.right { padding-left: 0; padding-right: 8px; border-left: 0; border-right: 2px dashed currentColor; transform: translateX(calc(-100% + 2px)); }
.tl-ev.k8 { color: var(--blue); }
.tl-ev.k5, .tl-ev.prop { color: var(--red); }
.c-k8 { background: var(--blue); }
.c-k5 { background: var(--red); }
.c-prop { background: var(--paper); border: 2px dashed var(--red); box-sizing: border-box; }
.sw.tl-k8 { background: var(--blue); }
.sw.tl-k5 { background: var(--red); }
.sw.tl-prop { background: var(--paper); border: 2px dashed var(--red); box-sizing: border-box; }
@media (max-width: 700px) {
  .tl-above, .tl-below { height: auto; display: flex; flex-direction: column; gap: 6px; }
  .tl-ev { position: static; transform: none !important; padding: 0 0 0 8px !important; border-right: 0 !important; border-left: 2px solid currentColor !important; white-space: normal; font-size: 14px; }
}

.eras { display: flex; flex-direction: column; gap: 16px; }
.eras .study.history { max-width: none; }

/* draft: claims still being verified */
.verify { background: color-mix(in srgb, var(--gold) 22%, transparent); border-bottom: 2px dashed var(--gold); }
.verify-note { font-style: italic; }

/* case studies: up/down bar chart of K-8 changes */
.dbar { display: flex; flex-direction: column; gap: 8px; }
.dbar-plot, .dbar-labels { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.dbar-up, .dbar-down { height: 158px; display: flex; flex-direction: column; align-items: center; }
.dbar-up { justify-content: flex-end; }
.dbar-down { justify-content: flex-start; }
.dbar-plot { position: relative; }
.dbar-plot::after { content: ""; position: absolute; left: 0; right: 0; top: 158px; border-top: 2px solid var(--ink); }
.dbar-b { width: 70%; max-width: 64px; border-radius: 4px 4px 0 0; }
.dbar-down .dbar-b { border-radius: 0 0 4px 4px; }
.dbar-b.k8 { background: var(--blue); }
.dbar-b.k5 { background: var(--red); }
.dbar-b.prop { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--red) 35%, transparent) 0 5px, transparent 5px 10px); border: 2px dashed var(--red); border-top: 0; box-sizing: border-box; }
.dbar-v { font: 800 18px/1.3 var(--label); font-variant-numeric: tabular-nums; }
.dbar-v.k8 { color: var(--blue); }
.dbar-v.k5, .dbar-v.prop { color: var(--red); }
.dbar-labels > div { text-align: center; font-size: 15px; line-height: 1.25; }
.dbar-labels strong { display: block; font-family: var(--label); }
.dbar-labels span { display: block; color: var(--muted); font-size: 13px; }
.sw.tl-prop { background: repeating-linear-gradient(45deg, color-mix(in srgb, var(--red) 35%, transparent) 0 3px, transparent 3px 6px); }
@media (max-width: 560px) {
  .dbar-plot, .dbar-labels { gap: 4px; }
  .dbar-v { font-size: 15px; }
  .dbar-labels > div { font-size: 13px; }
  .dbar-labels span { font-size: 11px; }
}

/* case studies: school lifelines */
.lifelines { display: flex; flex-direction: column; gap: 10px; }
.ll-row { display: grid; grid-template-columns: 11em minmax(0, 1fr); align-items: center; gap: 12px; }
.ll-name { font: 800 15px/1.2 var(--label); text-align: right; }
.ll-track { position: relative; height: 34px; }
.ll-seg { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; border-left: 2px solid var(--paper); box-sizing: border-box; }
.ll-seg span { font: 700 13px/1.1 var(--label); color: #fff; white-space: nowrap; padding: 0 6px; overflow: hidden; text-overflow: ellipsis; }
.ll-seg.k8 { background: var(--blue); }
.ll-seg.k5 { background: var(--red); }
.ll-seg.ms { background: var(--gold); }
.ll-seg.ms span { color: var(--ink); }
.ll-seg.prop { background: repeating-linear-gradient(45deg, var(--red) 0 4px, color-mix(in srgb, var(--red) 25%, var(--paper)) 4px 8px); }
.ll-seg.close { background: repeating-linear-gradient(45deg, #6f6f6f 0 4px, #d8d8d8 4px 8px); }
.ll-axis .ll-track { height: 20px; border-top: 2px solid var(--ink); }
.ll-axis .ll-track span { position: absolute; top: 4px; transform: translateX(-50%); font-size: 13px; color: var(--muted); }
.sw.ll-k8 { background: var(--blue); }
.sw.ll-k5 { background: var(--red); }
.sw.ll-ms { background: var(--gold); }
.sw.ll-prop { background: repeating-linear-gradient(45deg, var(--red) 0 3px, color-mix(in srgb, var(--red) 25%, var(--paper)) 3px 6px); }
.sw.ll-close { background: repeating-linear-gradient(45deg, #6f6f6f 0 3px, #d8d8d8 3px 6px); }
@media (max-width: 640px) {
  .ll-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ll-name { text-align: left; font-size: 14px; }
  .ll-axis .ll-name { display: none; }
  .ll-track { height: 26px; }
  .ll-seg span { font-size: 11px; padding: 0 3px; }
  .ll-axis .ll-track span { font-size: 11px; }
}

/* case studies: school-vs-school comparison table */
.sv-table { min-width: 0; margin: 4px 0 8px; }
.sv-table thead th small { margin-top: 4px; }
.sv-table td small { display: block; margin-top: 4px; font: 600 14px/1.2 var(--body); color: var(--muted); }
.sv-table td.up { color: var(--blue); }
.sv-table td.down { color: var(--red); }
@media (max-width: 560px) {
  .sv-table th, .sv-table td { padding: 9px 8px; }
  .sv-table thead th { font-size: 12px; letter-spacing: 0.03em; }
  .sv-table tbody th { font-size: 14px; }
  .sv-table td { font-size: 17px; }
}
.sv-table thead th:first-child, .sv-table tbody th { width: 34%; }
.sv-table th:last-child, .sv-table td:last-child { padding-right: 28px; }
@media (max-width: 560px) { .sv-table th:last-child, .sv-table td:last-child { padding-right: 14px; } }

/* case studies: Sabin vs. Vernon enrollment lines (orange and green from the Enrollment long-term chart) */
:root { --sab: #D85A30; --vng: #5DCAA5; --vng-text: #2A8466; }
.encl-thr { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 8 5; opacity: 0.7; }
.encl-thlab { fill: var(--ink); font: 700 14px var(--label); letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }
.encl-mlab tspan.sab { fill: var(--sab); } .encl-mlab tspan.vn { fill: var(--vng-text); }
.encl-wrap { margin-top: 4px; }
.encl { width: 100%; height: auto; display: block; overflow: visible; }
.encl-grid { stroke: var(--gold-soft); stroke-width: 1; }
/* axis labels match the Enrollment charts (.sc-tick at a 600-wide viewBox; these are 680 wide) */
.encl-ax { fill: var(--muted); font: 600 12.5px var(--body); font-variant-numeric: tabular-nums; }
.encl-axis { stroke: var(--muted); stroke-width: 1.5; }
.encl-mark { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: 0.5; }
.encl-mlab { fill: var(--muted); font: 700 13px var(--label); letter-spacing: 0.04em; text-transform: uppercase; }
.encl-line { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.encl-line.sab { stroke: var(--sab); }
.encl-line.vn { stroke: var(--vng); }
.encl-line.proj { stroke-dasharray: 9 7; }
.encl-line.ghost { opacity: 0.4; }
.encl-pt.sab { fill: var(--sab); } .encl-pt.vn { fill: var(--vng); }
.encl-pt.ghost { opacity: 0.45; }
.encl-val { font: 900 20px var(--label); font-variant-numeric: tabular-nums; }
.encl-val.sab { fill: var(--sab); } .encl-val.vn { fill: var(--vng-text); }
.encl-val.ghost { opacity: 0.6; }
.encl-brk { stroke: var(--sab); stroke-width: 1.5; }
.encl-call { fill: var(--sab); font: 900 26px var(--label); }
.encl-callsub { fill: var(--ink); font: 600 15px var(--body); }
.sw.ln { width: 26px; height: 0; border-radius: 0; border-top: 4px solid; background: none; }
.sw.ln.sab { border-top-color: var(--sab); } .sw.ln.vn { border-top-color: var(--vng); }
.sw.ln.proj { border-top-style: dashed; }
.sw.ln.ghost { opacity: 0.4; }
@media (max-width: 600px) { .encl-wrap { overflow-x: auto; } .encl { min-width: 580px; } }
.callout a { color: var(--on-dark); text-decoration-color: var(--gold-bright); text-decoration-thickness: 2px; }
.callout a:hover { color: var(--gold-bright); }
.map-img { display: block; }
.map-img img { display: block; width: 100%; height: auto; border-radius: 8px; }
/* case studies: K-8s vs. middle schools line chart */
.encl-line.types-k8 { stroke: var(--blue); }
.encl-line.types-ms { stroke: var(--sab); }
.encl-pt.types-k8 { fill: var(--blue); } .encl-pt.types-ms { fill: var(--sab); }
.encl-pt.hollow { fill: var(--paper); stroke: var(--blue); stroke-width: 3; }
.encl-val.types-k8 { fill: var(--blue); } .encl-val.types-ms { fill: var(--sab); }
.types-era { fill: var(--gold-soft); opacity: 0.35; }
.sw.ln.types-k8 { border-top-color: var(--blue); } .sw.ln.types-ms { border-top-color: var(--sab); }
.encl-mlab tspan.lc { text-transform: none; }

/* Overview line chart: line weight and dots match the Enrollment charts (scaled from a 600-wide to a 680-wide viewBox) */
.encl-line.types-k8, .encl-line.types-ms { stroke-width: 2.2; }
.types-dot { stroke: var(--paper); stroke-width: 1.5; }
.types-dot.types-k8 { fill: var(--blue); } .types-dot.types-ms { fill: var(--sab); }
.types-dot.hollow { fill: var(--paper); stroke-width: 2; }
.types-dot.ghost { opacity: 0.5; }
.types-dot.types-k8.hollow { stroke: var(--blue); } .types-dot.types-ms.hollow { stroke: var(--sab); }
.sw.ln.types-k8, .sw.ln.types-ms { border-top-width: 2.5px; }

/* Overview line chart: label weights match the Enrollment charts (.sc-lhlab 800 14px label, .sc-fitlab 700 12px body), scaled to a 680-wide viewBox */
.types .encl-val { font: 800 16px var(--label); }
.types .encl-mlab { fill: var(--ink); font: 700 13.6px var(--body); letter-spacing: 0; text-transform: none; }

/* Hidden costs: closed schools table */
.closed-table { min-width: 620px; }
.closed-table th, .closed-table td { text-align: left; vertical-align: top; }
.closed-table tr.table-title th { font: 900 clamp(18px, 2.2vw, 22px)/1.2 var(--display); letter-spacing: 0; text-transform: none; color: var(--blue); padding-top: 16px; padding-bottom: 12px; border-bottom: 4px solid var(--gold); }
.closed-table tr.section th { font: 800 13px/1.2 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-deep); background: var(--blue-soft); padding-top: 10px; padding-bottom: 10px; }
.closed-table tbody.reused tr.section th { border-top: 4px solid var(--gold); }
.closed-table td.yr, .closed-table td.yrs { font: 800 18px/1.2 var(--label); white-space: nowrap; }
.closed-table td.yrs strong { color: var(--red); font-weight: 900; }
.closed-table td.yrs .nf { font: 600 14px/1.2 var(--body); color: var(--muted); }
.closed-table td.since { font: 400 16px/1.45 var(--body); }
.closed-table tbody th { white-space: nowrap; }
@media (max-width: 719px) { .closed-table tbody th { white-space: normal; } .closed-table td.since { font-size: 15px; } }
