/* ── Strip Evidence chrome ─────────────────────────────────────────────── */
:global(h1) { display: none; }
:global(#evidence-main-article) { padding: 0 !important; }
:global(.antialiased main) { margin-top: 0 !important; padding: 0 !important; }
:global(.antialiased > div) { padding-left: 0 !important; padding-right: 0 !important; max-width: 100% !important; }
:global(body) { background: #061A27 !important; }

/* ── Shell ─────────────────────────────────────────────────────────────── */
.nb-dash {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #edf1f7;
  min-height: 100vh;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.nb-header {
  background: #061A27;
  padding: 0.9rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #227FBC;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.nb-brand { display: flex; align-items: center; gap: 0.7rem; min-width: 210px; }
.nb-logo-mark {
  width: 2.1rem; height: 2.1rem; flex-shrink: 0;
  border-radius: 7px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35);
}
.nb-logo-mark img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.nb-brand-name { color: #f1f5f9; font-size: 0.88rem; font-weight: 700; letter-spacing: -0.2px; }
.nb-brand-sub { color: #4a7a99; font-size: 0.57rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }
.nb-header-title { text-align: center; }
.nb-header-title h2, .nb-header-title h2.svelte-override { color: #f8fafc !important; font-size: 0.95rem !important; font-weight: 700 !important; margin: 0 !important; letter-spacing: -0.2px !important; line-height: 1.3 !important; }
.nb-header-title p { color: #4a7a99; font-size: 0.68rem; margin: 0.2rem 0 0; }
.nb-header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; min-width: 210px; }
.nb-header-actions { display: flex; align-items: center; gap: 0.5rem; }

.nb-badge-btn {
  background: rgba(127,29,29,0.35);
  color: #fca5a5;
  border: 1px solid rgba(153,27,27,0.45);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  display: inline-block;
}
.nb-badge-btn:hover { background: rgba(153,27,27,0.5); text-decoration: underline; }
.nb-badge-btn:focus-visible { outline: 2px solid #fca5a5; outline-offset: 2px; }

.nb-header-demo-btn {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(148,163,184,0.3);
  border-radius: 6px;
  padding: 0.28rem 0.75rem;
  font-size: 0.6rem; font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s ease, color 0.15s ease;
  text-decoration: none;
  display: inline-block;
}
.nb-header-demo-btn:hover { background: rgba(34,127,188,0.15); color: #93c5fd; border-color: rgba(34,127,188,0.4); }
.nb-header-demo-btn:focus-visible { outline: 2px solid #227FBC; outline-offset: 2px; }

.nb-timestamp { color: #4a7a99; font-size: 0.58rem; letter-spacing: 0.04em; }

/* ── Body ──────────────────────────────────────────────────────────────── */
.nb-body { padding: 1.5rem 2rem 2rem; min-height: calc(100vh - 58px); }

/* ── KPI strip ─────────────────────────────────────────────────────────── */
.nb-kpi-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.85rem; margin-bottom: 1.4rem; }
.nb-kpi {
  background: #fff;
  border-radius: 8px;
  padding: 1.1rem 1.3rem 1rem;
  border-top: 3px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15,23,42,0.07), 0 2px 14px rgba(15,23,42,0.04);
  border: 1px solid #e8edf4;
  border-top-width: 3px;
}
.nb-kpi.c-blue  { border-top-color: #227FBC; }
.nb-kpi.c-red   { border-top-color: #991B1B; }
.nb-kpi.c-amber { border-top-color: #C4883A; }
.nb-kpi.c-navy  { border-top-color: #1F3C67; }
.nb-kpi.c-teal  { border-top-color: #0d9488; }
.nb-kpi.c-green { border-top-color: #065F46; }
.nb-kpi-label { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.11em; color: #64748b; margin-bottom: 0.4rem; }
.nb-kpi-val { font-size: 2rem; font-weight: 800; color: #0f172a; line-height: 1.1; letter-spacing: -1.5px; }
.nb-kpi-val.red   { color: #991B1B; }
.nb-kpi-val.amber { color: #92400E; }
.nb-kpi-delta { font-size: 0.65rem; margin-top: 0.35rem; color: #64748b; }
.nb-kpi-delta.neg { color: #b91c1c; font-weight: 600; }
.nb-kpi-bench { font-size: 0.6rem; color: #94a3b8; margin-top: 0.1rem; }
.nb-kpi-bench.bench-bad  { color: #991B1B; }
.nb-kpi-bench.bench-good { color: #065F46; }

/* ── Main two-column grid ──────────────────────────────────────────────── */
.nb-main { display: grid; grid-template-columns: 1fr; gap: 0.85rem; margin-bottom: 0.85rem; align-items: start; }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.nb-card {
  background: #fff;
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 1px 3px rgba(15,23,42,0.07), 0 2px 14px rgba(15,23,42,0.04);
  border: 1px solid #e8edf4;
}
.nb-card-header {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.6rem; margin-bottom: 0.8rem;
}
.nb-card-title { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #374151; }
.nb-card-sub   { font-size: 0.63rem; color: #94a3b8; }

/* ── Table ─────────────────────────────────────────────────────────────── */
.nb-table { width: 100%; border-collapse: collapse; }
.nb-table thead tr { background: #f8fafc; }
.nb-table th {
  font-size: 0.57rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #64748b;
  padding: 0.45rem 0.6rem; text-align: left;
  border-bottom: 2px solid #e2e8f0;
}
.nb-table tbody tr:hover { background: #f8fafc; }
.nb-table td { padding: 0.65rem 0.6rem; border-bottom: 1px solid #f1f5f9; font-size: 0.79rem; color: #1e293b; vertical-align: middle; }
.nb-table tbody tr:last-child td { border-bottom: none; }

.sn-red   { color: #991B1B; font-weight: 700; }
.sn-amber { color: #92400E; font-weight: 600; }
.sn-green { color: #065F46; font-weight: 600; }

.bar-track { width: 64px; height: 4px; background: #edf2f7; border-radius: 3px; display: inline-block; vertical-align: middle; margin-left: 7px; }
.bar-fill  { height: 4px; border-radius: 3px; display: block; }
.b-red   { background: #991B1B; }
.b-amber { background: #C4883A; }
.b-green { background: #065F46; }

.rag-pill  { display: inline-block; padding: 0.18rem 0.55rem; border-radius: 999px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.rag-red   { background: #FEE2E2; color: #991B1B; }
.rag-amber { background: #FEF3C7; color: #92400E; }
.rag-green { background: #D1FAE5; color: #065F46; }

.mv-red   { color: #991B1B; font-weight: 700; }
.mv-amber { color: #92400E; font-weight: 600; }
.mv-green { color: #065F46; font-weight: 600; }

/* ── Trajectory column ─────────────────────────────────────────────────── */
.traj-cell { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.traj-icon { font-size: 0.9rem; }
.traj-delta { font-size: 0.75rem; font-weight: 700; }
.traj-delta.up    { color: #065F46; }
.traj-delta.down  { color: #991B1B; }
.traj-delta.flat  { color: #64748b; }
.traj-note { font-size: 0.58rem; color: #92400E; display: block; margin-top: 0.1rem; }
.traj-star { color: #C4883A; font-size: 0.8rem; }

/* ── Priority actions panel ────────────────────────────────────────────── */
.nb-actions { display: flex; flex-direction: column; gap: 0.55rem; }
.nb-action { border-radius: 7px; padding: 0.8rem 0.95rem; }
.nb-action.crit { background: #FFF5F5; border-left: 3px solid #991B1B; }
.nb-action.warn { background: #FFFBEB; border-left: 3px solid #C4883A; }
.nb-action.good { background: #F0FDF4; border-left: 3px solid #065F46; }
.nb-action-title { font-size: 0.71rem; font-weight: 700; margin-bottom: 0.22rem; }
.nb-action-title.red   { color: #991B1B; }
.nb-action-title.amber { color: #92400E; }
.nb-action-title.green { color: #065F46; }
.nb-action-body { font-size: 0.67rem; color: #475569; line-height: 1.5; }

/* ── School selector (Dropdown) ─────────────────────────────────────────── */
.nb-school-selector { margin-bottom: 0.85rem; }

/* ── Chart toggle ─────────────────────────────────────────────────────── */
.chart-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5rem;
}
.chart-toggle {
  display: inline-flex;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}
.chart-toggle-btn {
  padding: 0.3rem 0.8rem;
  font-size: 0.62rem; font-weight: 600;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  transition: background 0.12s, color 0.12s;
  letter-spacing: 0.02em;
}
.chart-toggle-btn:not(:last-child) { border-right: 1px solid #e2e8f0; }
.chart-toggle-btn.active { background: #1F3C67; color: #fff; }
.chart-toggle-btn:hover:not(.active) { background: #f1f5f9; }
.chart-toggle-btn:focus-visible { outline: 2px solid #227FBC; outline-offset: -2px; }
.chart-subtitle {
  font-size: 0.62rem; color: #64748b; margin-bottom: 0.25rem;
  font-style: italic;
}

/* ── Readiness hero card ─────────────────────────────────────────────── */
.nb-readiness-hero {
  background: #fff;
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  box-shadow: 0 1px 3px rgba(15,23,42,0.07), 0 2px 14px rgba(15,23,42,0.04);
  border: 1px solid #e8edf4;
  margin-bottom: 0.85rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: center;
}
.nb-readiness-score-block { display: flex; align-items: baseline; gap: 0.4rem; }
.nb-readiness-score { font-size: 3.2rem; font-weight: 900; line-height: 1; letter-spacing: -2px; }
.nb-readiness-score.score-red { color: #991B1B; }
.nb-readiness-score.score-amber { color: #92400E; }
.nb-readiness-score.score-green { color: #065F46; }
.nb-readiness-score-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #64748b; }
.nb-readiness-outof { font-size: 1rem; color: #94a3b8; font-weight: 600; align-self: flex-end; margin-bottom: 0.4rem; }
.nb-readiness-title { font-size: 0.58rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.11em; color: #64748b; margin-bottom: 0.3rem; }
.nb-readiness-detail { font-size: 0.7rem; color: #475569; line-height: 1.6; }
.nb-readiness-detail strong { color: #0f172a; }
.nb-readiness-rag-strip { display: flex; flex-direction: column; gap: 0.3rem; align-items: flex-end; }
.nb-readiness-rag-item { font-size: 0.65rem; font-weight: 600; display: flex; align-items: center; gap: 0.4rem; }
.nb-readiness-bar-track { width: 80px; height: 6px; background: #edf2f7; border-radius: 3px; }
.nb-readiness-bar-fill { height: 6px; border-radius: 3px; }

/* ── Governor Report button ──────────────────────────────────────────── */
.nb-gov-report-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.nb-gov-report-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #1F3C67;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 0.6rem 1.1rem;
  font-size: 0.68rem; font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.nb-gov-report-btn:hover { background: #227FBC; }
.nb-gov-report-btn:focus-visible { outline: 2px solid #227FBC; outline-offset: 2px; }
.nb-gov-report-sample { font-size: 0.58rem; color: #94a3b8; text-align: right; }

/* ── Insight strip ───────────────────────────────────────────────────── */
.nb-insight-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; margin-bottom: 0.85rem; }
.nb-insight {
  background: #fff;
  border-radius: 8px;
  padding: 1rem 1.2rem;
  box-shadow: 0 1px 3px rgba(15,23,42,0.07), 0 2px 14px rgba(15,23,42,0.04);
  border: 1px solid #e8edf4;
  border-top: 3px solid #e2e8f0;
}
.nb-insight.i-amber { border-top-color: #C4883A; }
.nb-insight.i-red   { border-top-color: #991B1B; }
.nb-insight.i-navy  { border-top-color: #1F3C67; }
.nb-insight-label { font-size: 0.57rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.11em; color: #64748b; margin-bottom: 0.55rem; }
.nb-insight-row { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 0.3rem; }
.nb-insight-val { font-size: 1.6rem; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.nb-insight-val.amber { color: #92400E; }
.nb-insight-val.red   { color: #991B1B; }
.nb-insight-val.navy  { color: #1F3C67; }
.nb-insight-sublabel { font-size: 0.62rem; color: #64748b; }
.nb-insight-detail { font-size: 0.63rem; color: #475569; line-height: 1.6; margin-top: 0.4rem; border-top: 1px solid #f1f5f9; padding-top: 0.4rem; }
.nb-insight-detail strong { color: #0f172a; }

/* ── Sparkline ───────────────────────────────────────────────────────── */
.nb-sparkline { display: inline-block; vertical-align: middle; margin-left: 4px; }
.nb-kpi-yoy { font-size: 0.6rem; margin-top: 0.15rem; color: #64748b; }
.nb-kpi-yoy.yoy-up { color: #065F46; font-weight: 600; }
.nb-kpi-yoy.yoy-down-good { color: #065F46; font-weight: 600; }
.nb-kpi-yoy.yoy-down-bad { color: #991B1B; font-weight: 600; }
.nb-kpi-yoy.yoy-flat { color: #64748b; }

/* ── CTA Footer ──────────────────────────────────────────────────────── */
.nb-cta-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 3rem 2rem 2rem;
  margin: 0 -2rem -2rem;
}
.nb-cta-inner {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}
.nb-value-prop {}
.nb-value-prop-title { font-size: 1.05rem; font-weight: 800; color: #0f172a; margin-bottom: 0.75rem; letter-spacing: -0.3px; line-height: 1.35; }
.nb-value-prop-body { font-size: 0.75rem; color: #475569; line-height: 1.75; margin-bottom: 0.6rem; }
.nb-value-prop-offer { font-size: 0.72rem; color: #475569; line-height: 1.6; }
.nb-value-prop-offer strong { color: #1F3C67; }
.nb-cta-block {}
.nb-cta-heading { font-size: 1rem; font-weight: 800; color: #0f172a; margin-bottom: 1rem; letter-spacing: -0.3px; }
.nb-cta-buttons { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1rem; }
.nb-cta-btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #1F3C67; color: #fff;
  border: none; border-radius: 8px;
  padding: 0.8rem 1.5rem;
  font-size: 0.78rem; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s ease;
  letter-spacing: 0.01em;
}
.nb-cta-btn-primary:hover { background: #227FBC; }
.nb-cta-btn-primary:focus-visible { outline: 2px solid #227FBC; outline-offset: 2px; }
.nb-cta-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: #1F3C67;
  border: 1.5px solid #1F3C67; border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nb-cta-btn-secondary:hover { background: #EFF6FF; }
.nb-cta-btn-secondary:focus-visible { outline: 2px solid #1F3C67; outline-offset: 2px; }
.nb-trust-signals {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.6rem; color: #94a3b8;
  text-align: center;
  letter-spacing: 0.03em;
}
.nb-founder-disclosure {
  margin-top: 0.6rem;
  text-align: center;
  font-size: 0.55rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .nb-cta-inner { grid-template-columns: 1fr; gap: 2rem; }
  .nb-kpi-row { grid-template-columns: repeat(3, 1fr); }
  .nb-insight-strip { grid-template-columns: 1fr; }
}

/* ── At-risk tiles — clickable ─────────────────────────────────────────── */
.nb-kpi-clickable, .nb-insight-clickable {
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.nb-kpi-clickable:hover  { box-shadow: 0 0 0 2px #1F3C67, 0 4px 16px rgba(31,60,103,0.15); }
.nb-insight-clickable:hover { box-shadow: 0 0 0 2px #1F3C67, 0 4px 16px rgba(31,60,103,0.15); }
.nb-kpi-clickable:focus-visible,
.nb-insight-clickable:focus-visible { outline: 2px solid #227FBC; outline-offset: 2px; }
.nb-kpi-clickable:hover .nb-kpi-val { text-decoration: underline; text-underline-offset: 3px; }

/* ── At-risk modal ─────────────────────────────────────────────────────── */
.ar-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,26,39,0.65);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.ar-modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 1000px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  overflow: hidden;
}
.ar-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 1.2rem 1.5rem 0.9rem;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.ar-title { font-size: 1rem; font-weight: 800; color: #0f172a; letter-spacing: -0.3px; }
.ar-subtitle { font-size: 0.65rem; color: #64748b; margin-top: 0.2rem; }
.ar-header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; margin-left: 1rem; }
.ar-csv-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: #f1f5f9; color: #1F3C67;
  border: 1px solid #e2e8f0; border-radius: 6px;
  padding: 0.4rem 0.85rem;
  font-size: 0.65rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background 0.12s;
}
.ar-csv-btn:hover { background: #e2e8f0; }
.ar-close-btn {
  width: 2rem; height: 2rem;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid #e2e8f0; border-radius: 6px;
  cursor: pointer; font-size: 1rem; color: #64748b;
  transition: background 0.12s;
}
.ar-close-btn:hover { background: #f1f5f9; }
.ar-close-btn:focus-visible { outline: 2px solid #227FBC; outline-offset: 2px; }

.ar-filters {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
  background: #f8fafc;
}
.ar-filter-label { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #64748b; }
.ar-filter-select {
  padding: 0.3rem 0.65rem;
  border: 1px solid #e2e8f0; border-radius: 5px;
  font-size: 0.7rem; color: #1e293b; background: #fff;
  font-family: inherit; cursor: pointer;
}
.ar-filter-select:focus { outline: 2px solid #227FBC; outline-offset: 1px; }
.ar-filter-reset {
  background: transparent; border: none; padding: 0.3rem 0.5rem;
  font-size: 0.65rem; color: #64748b; cursor: pointer; font-family: inherit;
  text-decoration: underline;
}
.ar-filter-reset:hover { color: #0f172a; }
.ar-filter-count { margin-left: auto; font-size: 0.63rem; color: #94a3b8; }

.ar-table-wrap {
  overflow-y: auto;
  flex: 1;
  padding: 0;
}
.ar-table {
  width: 100%;
  border-collapse: collapse;
}
.ar-table thead tr { background: #f8fafc; position: sticky; top: 0; z-index: 1; }
.ar-table th {
  padding: 0.5rem 0.75rem;
  font-size: 0.58rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #64748b;
  border-bottom: 2px solid #e2e8f0; text-align: left;
  white-space: nowrap; cursor: pointer; user-select: none;
}
.ar-table th:hover { color: #0f172a; }
.ar-table td { padding: 0.6rem 0.75rem; border-bottom: 1px solid #f1f5f9; font-size: 0.75rem; color: #1e293b; vertical-align: middle; }
.ar-table tbody tr:hover { background: #f8fafc; }
.ar-table tbody tr:last-child td { border-bottom: none; }

.ar-pill {
  display: inline-block; padding: 0.15rem 0.5rem;
  border-radius: 999px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.ar-pill-high   { background: #FEE2E2; color: #991B1B; }
.ar-pill-medium { background: #FEF3C7; color: #92400E; }
.ar-pill-low    { background: #F1F5F9; color: #475569; }

.ar-tick { color: #065F46; font-size: 0.9rem; }

.ar-gdpr {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid #f1f5f9;
  font-size: 0.58rem; color: #94a3b8; line-height: 1.6;
  flex-shrink: 0;
  background: #f8fafc;
}

/* ── Exclusions modal — reuses ar- pattern with excl- namespace ─────────── */
.excl-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,26,39,0.65);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.excl-modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 1100px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  overflow: hidden;
}
.excl-pill-suspension { background: #FEF3C7; color: #92400E; display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.excl-pill-permanent  { background: #FEE2E2; color: #991B1B; display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.excl-pill-fixed      { background: #FEF3C7; color: #92400E; display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── School name link button in scorecard table ──────────────────────── */
.school-link-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: inherit; font-weight: inherit;
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.12s;
}
.school-link-btn:hover { text-decoration-color: currentColor; }
.school-link-btn:focus-visible { outline: 2px solid #227FBC; outline-offset: 2px; border-radius: 2px; }

/* ── PA modal — follows excl- pattern ───────────────────────────────── */
.pa-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,26,39,0.65);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.pa-modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 1100px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  overflow: hidden;
}
.pa-modal {
  overflow-y: auto;
}
.pa-modal .ar-header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 10;
  padding-bottom: 0.5rem;
}
.pa-att-red   { color: #991B1B; font-weight: 700; }
.pa-att-amber { color: #92400E; font-weight: 600; }

/* ── School profile modal ─────────────────────────────────────────────── */
.prof-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,26,39,0.65);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.prof-modal {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 860px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  overflow: hidden;
}
.prof-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  overflow-y: auto;
  flex: 1;
}
.prof-section {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  border: 1px solid #e8edf4;
}
.prof-section-title {
  font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: #374151; margin-bottom: 0.85rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid #e2e8f0;
}
.prof-metric { margin-bottom: 0.7rem; }
.prof-metric-label { font-size: 0.62rem; color: #64748b; display: block; margin-bottom: 0.12rem; }
.prof-metric-val { font-size: 1.2rem; font-weight: 800; color: #0f172a; letter-spacing: -0.5px; }
.prof-metric-sub { font-size: 0.58rem; color: #94a3b8; margin-left: 0.35rem; }
.prof-metric-divider { height: 1px; background: #e2e8f0; margin: 0.55rem 0; }
.prof-val-good  { color: #065F46; }
.prof-val-amber { color: #92400E; }
.prof-val-bad   { color: #991B1B; }

/* ── Clickable element hover states ──────────────────────────── */
.nb-kpi-clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nb-kpi-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  outline: 2px solid #227FBC;
  outline-offset: 2px;
}
.nb-kpi-clickable:focus-visible {
  outline: 2px solid #227FBC;
  outline-offset: 2px;
}
.nb-action-clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nb-action-clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.nb-action-clickable:hover .nb-action-title {
  text-decoration: underline;
  text-decoration-color: #227FBC;
  text-decoration-thickness: 2px;
}
.nb-action-clickable::after {
  content: ' — click for pupil detail →';
  font-size: 0.65rem;
  color: #227FBC;
  display: block;
  margin-top: 0.5rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.nb-action-clickable:hover::after {
  opacity: 1;
}
.nb-action-clickable:focus-visible {
  outline: 2px solid #227FBC;
  outline-offset: 2px;
}
/* school name buttons in scorecard table */
.nb-school-btn {
  cursor: pointer;
  background: none;
  border: none;
  color: #1F3C67;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s ease;
  padding: 0;
}
.nb-school-btn:hover {
  text-decoration-color: #227FBC;
  color: #227FBC;
}

/* ── Insight card hover states ───────────────────────────────── */
.nb-insight-clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nb-insight-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  outline: 2px solid #227FBC;
  outline-offset: 2px;
}
.nb-insight-clickable:hover .nb-insight-label {
  text-decoration: underline;
  text-decoration-color: #227FBC;
  text-decoration-thickness: 2px;
}
.nb-insight-clickable::after {
  content: 'Click to view detail →';
  font-size: 0.6rem;
  color: #227FBC;
  display: block;
  margin-top: 0.5rem;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.nb-insight-clickable:hover::after {
  opacity: 1;
}
.nb-insight-clickable:focus-visible {
  outline: 2px solid #227FBC;
  outline-offset: 2px;
}

/* ── Remove page margin/padding ──────────────────────────────── */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}
.main-layout, .layout, [class*="layout"], main, .content, article {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}
.nb-dash {
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Hide Evidence auto-rendered page title ──────────────────── */
h1.markdown-title,
.markdown-title,
h1:first-of-type {
  display: none !important;
}

/* ── Kill all Evidence layout padding/margin ─────────────────── */
.sl-markdown-content,
.content-panel,
.right-sidebar-container,
.page-content,
[class*="content"],
[class*="panel"] {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
}

/* Remove Evidence wrapper padding */
[class*="px-"] { padding-left: 0 !important; padding-right: 0 !important; }
