/* K12IQ district plan site (Burbank-style layout). One stylesheet for every page.
   District colors are set in :root by the config (--brand, --accent, --gold). */
:root {
  --brand: #620c2f;   /* main district color (headings, hero) */
  --accent: #2f5d8a;  /* second color (charts, links) */
  --gold: #c58b1a;    /* highlight (buttons, markers) */
  --gold-tint: #fbf3e2;
  --maroon: var(--brand);
  --slate: var(--accent);
  --border: #e5e7eb;
  --text: #222;
  --muted: #6b7280;
  --navy: #24364f;
  --head: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: #fff; color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; top: 0 !important; position: static !important; }
img { max-width: 100%; display: block; }
a { color: var(--slate); }
a:hover { color: var(--maroon); }
h1, h2, h3 { font-family: var(--head); color: var(--maroon); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-weight: 800; }
h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-weight: 600; font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Source labels and missing data */
.src { display: block; margin-top: 6px; font-size: 12px; line-height: 1.35; color: #8a8f98; font-weight: 400; letter-spacing: 0; font-family: var(--body); }
.src.inline { display: inline; margin: 0 0 0 6px; }
.dn { color: #9ca3af; font-size: 0.9em; font-style: italic; font-weight: 400; }
.dn-box { display: flex; align-items: center; justify-content: center; min-height: 220px; border: 1px dashed var(--border); border-radius: var(--radius); background: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--border); min-height: 70px; }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.logo img { height: var(--logo-h, 46px); width: auto; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a { color: var(--text); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.main-nav a:hover { color: var(--maroon); background: #f9fafb; }
.main-nav a[aria-current='page'] { color: var(--maroon); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.lang { display: flex; align-items: center; gap: 6px; color: var(--slate); border: 1px solid var(--border); border-radius: 999px; padding: 4px 6px 4px 10px; }
.lang svg { width: 18px; height: 18px; flex: none; }
.lang select { border: 0; background: transparent; font: 500 14px var(--body); color: var(--text); max-width: 150px; cursor: pointer; padding: 4px 2px; }
.lang select:focus { outline: none; }
.lang:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
.menu-btn { display: none; margin-left: auto; border: 1px solid var(--border); background: #fff; border-radius: 10px; width: 42px; height: 42px; color: var(--maroon); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

/* Google translator: no banner bar, no hover balloons, no highlight */
.goog-te-banner-frame, iframe.skiptranslate, .goog-te-balloon-frame, #goog-gt-tt, .goog-tooltip, .goog-te-spinner-pos,
.VIpgJd-ZVi9od-ORHb-OEVmcd, .VIpgJd-ZVi9od-aZ2wEe-wOHMyf, .VIpgJd-yAWNEb-L7lbkb { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
#google_translate_element { display: none; }

/* Buttons and pills */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 700 16px/1 var(--body); padding: 15px 24px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #ad7814; color: #fff; }
.btn-outline { border-color: rgba(255, 255, 255, 0.8); color: #fff; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.pills li { background: var(--gold-tint); color: var(--gold-ink, #7a5410); border: 1px solid color-mix(in srgb, var(--gold) 30%, white); border-radius: 999px; padding: 7px 16px; font-weight: 700; font-size: 14px; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(120deg, var(--brand) 0%, var(--brand) 55%, var(--accent) 100%); padding: 84px 0 150px; }
.hero .rays { position: absolute; top: -260px; right: -220px; width: 760px; height: 760px; opacity: 0.16; pointer-events: none; }
.hero-in { position: relative; max-width: 780px; }
.eyebrow { font: 700 13px/1.4 var(--body); letter-spacing: 0.14em; color: #f3d48f; margin: 0 0 18px; text-transform: uppercase; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.6vw, 4rem); margin-bottom: 20px; }
.hero .sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255, 255, 255, 0.92); max-width: 640px; margin-bottom: 32px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stat cards */
.stats { position: relative; z-index: 2; margin-top: -92px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 22px 18px; }
.stat .num { font: 800 clamp(2rem, 3.6vw, 2.75rem)/1 var(--head); letter-spacing: -0.02em; display: block; }
.stat .lbl { display: block; margin-top: 8px; font-weight: 700; font-size: 15px; line-height: 1.35; }
.c-maroon { color: var(--maroon); }
.c-slate { color: var(--slate); }

/* Sections */
.section { padding: 72px 0 0; }
.section:last-of-type { padding-bottom: 80px; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 24px; margin-bottom: 26px; }
.section-head p { color: #4b5563; margin: 0; max-width: 640px; }
.section-head h2 { margin: 0 0 6px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 14px; }
.lead-num { font: 800 2.3rem/1 var(--head); }

/* Module cards */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.module { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s; }
.module:hover { color: var(--text); box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d1d5db; }
.module .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.module .ic svg { width: 26px; height: 26px; }
.module h3 { margin: 6px 0 0; }
.module p { margin: 0; color: #4b5563; font-size: 15px; }
.module .go { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 14px; color: var(--slate); }

/* Charts */
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--body); }
.hbars { display: grid; gap: 12px; }
.hbar { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 12px; }
.hbar .name { font-weight: 700; font-size: 14px; line-height: 1.25; }
.hbar .name a { color: var(--text); text-decoration: none; }
.hbar .name a:hover { color: var(--maroon); text-decoration: underline; }
.hbar .track { position: relative; height: 26px; border-radius: 6px; background: #f3f4f6; }
.hbar .fill { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--slate); min-width: 3px; }
.hbar .fill.gold { background: var(--gold); }
.hbar .val { position: absolute; top: 50%; transform: translateY(-50%); font: 700 13px var(--body); color: var(--text); white-space: nowrap; }
.hbars.compact { gap: 7px; }
.hbars.compact .hbar { grid-template-columns: 150px 1fr; }
.hbars.compact .track { height: 18px; }
.hbars.compact .name { font-size: 13px; font-weight: 500; }
.total-line { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-weight: 700; }

/* Find my school */
.finder { position: relative; max-width: 520px; }
.finder input { width: 100%; font: 400 17px var(--body); padding: 14px 16px 14px 46px; border: 1px solid #d1d5db; border-radius: 12px; color: var(--text); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232F5D8A' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 15px center / 20px; }
.finder input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197, 139, 26, 0.2); }
.finder ul { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); max-height: 320px; overflow: auto; }
.finder ul[hidden] { display: none; }
.finder li a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.finder li a:hover, .finder li a.on { background: var(--gold-tint); color: var(--maroon); }
.finder li small { color: var(--muted); }
.finder .none { padding: 10px 12px; color: var(--muted); }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(var(--tl-cols, 4), 1fr); gap: 0; position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 3px; background: linear-gradient(90deg, var(--maroon), var(--slate)); border-radius: 3px; }
.timeline li { position: relative; padding: 40px 18px 0 0; }
.timeline li::before { content: ''; position: absolute; top: 2px; left: 0; width: 21px; height: 21px; border-radius: 50%; background: #fff; border: 4px solid var(--gold); }
.timeline .when { font: 800 1.35rem/1.1 var(--head); color: var(--maroon); display: block; margin-bottom: 8px; }
.timeline .big { font: 800 1.6rem/1.1 var(--head); color: var(--slate); display: block; }
.timeline p, .timeline ul { margin: 6px 0 0; font-size: 15px; }
.timeline ul { padding-left: 18px; }

/* State share bar */
.share-bar { display: flex; height: 54px; border-radius: 10px; overflow: hidden; margin: 18px 0 12px; }
.share-bar .state { background: var(--slate); }
.share-bar .range { background: repeating-linear-gradient(135deg, var(--slate) 0 6px, #6f93b8 6px 12px); }
.share-bar .local { background: var(--gold); }
.share-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.share-legend b { font: 800 1.6rem/1 var(--head); display: block; }
.share-legend .l { text-align: right; }
.share-legend span.k { font-weight: 700; }
.callout { border-left: 4px solid var(--gold); background: #fff; padding: 4px 0 4px 16px; margin: 18px 0; }
.list { margin: 0; padding-left: 20px; }
.list li { margin: 6px 0; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 700; background: #fafafa; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: #4b5563; white-space: nowrap; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tr.group td { background: #fff; font: 700 13px var(--body); color: var(--maroon); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 18px; }
tfoot td { font-weight: 700; border-top: 2px solid var(--border); border-bottom: 0; }
td a { font-weight: 500; }
.up { color: #15803d; }
.down { color: #b91c1c; }

/* Inner pages */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--brand) 0%, var(--brand) 55%, var(--accent) 100%); color: #fff; padding: 52px 0 56px; }
.page-hero .rays { position: absolute; top: -200px; right: -160px; width: 560px; height: 560px; opacity: 0.14; pointer-events: none; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 10px; position: relative; }
.page-hero p { color: rgba(255, 255, 255, 0.92); max-width: 700px; margin: 0; font-size: 1.1rem; position: relative; }
.crumbs { font-size: 14px; margin-bottom: 14px; position: relative; }
.crumbs a { color: #f3d48f; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: #fff; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.fact { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.fact .num { font: 800 1.9rem/1.1 var(--head); display: block; }
.fact .lbl { display: block; font-weight: 700; margin-top: 6px; font-size: 14.5px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: #eef3f8; color: var(--slate); }
.tag.gold { background: var(--gold-tint); color: #7a5410; }
.dir { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.dir a { display: block; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.dir a:hover { border-color: var(--gold); color: var(--maroon); }
.dir b { display: block; }
.dir small { color: var(--muted); }
.loading { color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: #dbe3ee; padding: 48px 0 40px; margin-top: 80px; font-size: 14.5px; }
.footer-in { display: grid; grid-template-columns: 1.3fr 1.2fr 0.8fr; gap: 36px; }
.footer-logo { height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px; box-sizing: content-box; margin-bottom: 14px; }
.site-footer h2 { color: #fff; font: 700 15px var(--body); margin: 0 0 10px; letter-spacing: 0.02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 7px; }
.site-footer a { color: #f3d48f; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.prepared { color: #fff; }

/* Responsive */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .timeline::before { display: none; }
}
@media (max-width: 860px) {
  .header-in { flex-wrap: wrap; gap: 10px; padding: 12px 0; min-height: 0; }
  .logo img { height: calc(var(--logo-h, 46px) * 0.87); }
  .menu-btn { display: grid; place-items: center; }
  .main-nav { display: none; order: 3; width: 100%; flex-direction: column; gap: 0; padding-bottom: 8px; }
  .nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 8px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .main-nav a[aria-current='page'] { box-shadow: inset 3px 0 0 var(--gold); }
  .lang select { max-width: 96px; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 28px); }
  .hero { padding: 52px 0 120px; }
  .stats { gap: 12px; margin-top: -84px; }
  .stat { padding: 16px; }
  .modules { grid-template-columns: 1fr; }
  .section { padding-top: 56px; }
  .hbar { grid-template-columns: 92px 1fr; }
  .hbars.compact .hbar { grid-template-columns: 112px 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .footer-in { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 96px; }
  .card { padding: 18px; }
  .btn { padding: 13px 20px; font-size: 15px; }
  .logo img { height: calc(var(--logo-h, 46px) * 0.74); }
  th, td { padding: 9px 10px; }
}
@media print { .site-header, #k12ai-host { position: static; } }

/* K12IQ additions */
.tm { font-size: 0.5em; vertical-align: super; line-height: 0; margin-left: 1px; font-weight: 600; }
.logo, .logo:hover { text-decoration: none; }
.wordmark { font-family: var(--head); color: var(--brand); line-height: 1.02; text-decoration: none; display: block; }
.wordmark b { display: block; font-size: 20px; font-weight: 800; letter-spacing: 0.02em; }
.wordmark span { display: block; font-size: 11px; letter-spacing: 0.2em; color: var(--gold); font-weight: 700; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.btn-ghost { border: 1px solid var(--border); color: var(--brand); background: #fff; padding: 9px 14px; font-size: 14px; border-radius: 999px; }
.btn-ghost:hover { border-color: var(--gold); color: var(--brand); }
.k12-lang select { border: 1px solid var(--border) !important; color: var(--text) !important; min-height: 40px; }
.footer-in { grid-template-columns: 1.3fr 1.3fr 0.8fr; }
.site-footer .powered { color: #fff; font-weight: 700; margin-bottom: 8px; }
.site-footer .note { color: #c3cedd; font-size: 13.5px; }
.site-footer .needed li { color: #dbe3ee; }
.site-footer .needed li::before { content: '○ '; color: #f3d48f; }
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: -40px; position: relative; z-index: 2; }
.glance .fact { box-shadow: var(--shadow); }
.prose { max-width: 760px; }
.prose p, .prose li { font-size: 16.5px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 56px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--gold-tint); color: #7a5410; font: 800 15px/30px var(--head); text-align: center; }
.badge-sample { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #7a5410; background: var(--gold-tint); border-radius: 6px; padding: 2px 7px; margin-left: 6px; vertical-align: middle; }
.map { height: 460px; border-radius: var(--radius); border: 1px solid var(--border); }
.gantt { display: grid; grid-template-columns: minmax(180px, 34%) 1fr; gap: 10px 14px; align-items: center; font-size: 14.5px; }
.gantt .track { position: relative; height: 18px; background: #f3f4f6; border-radius: 6px; }
.gantt .track i { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 6px; }
.gantt .track b { position: absolute; top: -4px; width: 4px; height: 26px; background: var(--gold); border-radius: 2px; }
@media (max-width: 980px) { .footer-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gantt { grid-template-columns: 1fr; } .header-tools .btn-ghost { display: none; } }

@media (max-width: 860px) {
  .header-in { flex-wrap: nowrap; }
  .header-tools { order: 2; margin-left: auto; }
  .menu-btn { order: 3; margin-left: 0; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); padding: 0 20px 8px; }
  .site-header { position: sticky; }
  .wordmark b { font-size: 16px; }
  .wordmark span { font-size: 9.5px; letter-spacing: 0.16em; }
  .k12-lang select { max-width: 118px !important; padding-left: 30px !important; font-size: 12.5px !important; }
}

/* Round district seals (config "logoShape": "round"): larger seal + district name */
.seal-lockup { display: flex; align-items: center; gap: 12px; }
.logo img.logo-seal { height: 64px; width: auto; }
@media (max-width: 860px) { .logo img.logo-seal { height: 56px; } }
@media (max-width: 600px) { .logo img.logo-seal { height: 50px; } .seal-lockup { gap: 9px; } }

/* Meet the Team */
.step-no { display: block; font: 800 14px var(--head); color: var(--gold-ink, var(--gold)); letter-spacing: 0.08em; margin-bottom: 4px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.person { background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 20px; }
.person .role { display: block; font-size: 13px; font-weight: 700; color: var(--slate); margin-bottom: 6px; }
.person h3 { font-size: 20px; margin: 0 0 4px; }
.person .org { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #6b7280; margin-bottom: 6px; }
.person p { margin: 6px 0 0; color: #4b5563; font-size: 15px; line-height: 1.45; }
.header-tools .btn { white-space: nowrap; }
