@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/public-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/public-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/public-sans-700.woff2') format('woff2'); }
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 800; font-display: swap; src: url('fonts/public-sans-800.woff2') format('woff2'); }
/* DC Scorecard. Public Sans throughout; flag red for identity, Potomac blue for data. */
:root { color-scheme: light;
  --red: #c8102e; --ink: #15171c; --paper: #f4f5f7; --panel: #ffffff; --line: #d8dbe1; --muted: #545b67; --data: #2b5ba8;
  --color-bg: var(--paper); --color-panel: var(--panel); --color-fg: var(--ink); --color-fg-muted: var(--muted); --color-border-line: var(--line);
  --color-bad: #b4231f; --color-ok: #23753a; --color-warn: #9a6400; --color-accent: var(--data);
  --cds-chart-muted: #d3d7de; --cds-chart-grid: #e8eaee; --cds-chart-axis: #b4b9c2; --cds-text-secondary: var(--muted);
  --cds-surface-popover: #ffffff; --cds-border: var(--line); --cds-shadow-popover: 0 6px 20px rgba(21,23,28,.14);
  --font-anthropic-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-anthropic-serif: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --cds-font-size-caption: .8125rem; --cds-font-size-body: .9375rem; --cds-font-size-heading: 1.0625rem; --cds-font-size-title: 1.625rem;
  --cds-font-weight-medium: 600; --cds-gap-xs: 4px; --cds-gap-sm: 8px; --cds-gap-md: 12px; --cds-gap-lg: 20px; --cds-gap-xl: 28px;
  --cds-pad-xs: 4px; --cds-pad-sm: 8px; --cds-pad-md: 12px; --cds-pad-lg: 16px; --cds-radius: 6px; --cds-dur-slow: 300ms; }
@media (prefers-color-scheme: dark) { :root { color-scheme: dark;
  --red: #f0566a; --ink: #e9ebef; --paper: #111317; --panel: #1a1d23; --line: #343842; --muted: #a2a8b3; --data: #7ea3e6;
  --color-bad: #f08a7a; --color-ok: #7cc68d; --color-warn: #e2b04e;
  --cds-chart-muted: #3d424c; --cds-chart-grid: #262a31; --cds-chart-axis: #555b66;
  --cds-surface-popover: #23272e; --cds-shadow-popover: 0 6px 20px rgba(0,0,0,.5); } }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-anthropic-sans); font-size: var(--cds-font-size-body); line-height: 1.55; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.flag { display: block; color: var(--red); }

/* header, with the flag's two bars as the rule beneath it */
.site-head { background: var(--panel); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand .flag { width: 34px; height: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: .875rem; }
.site-nav a { text-decoration: none; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 700; border-bottom-color: var(--red); }
.bars { height: 11px; background: linear-gradient(var(--red) 0 4px, transparent 4px 7px, var(--red) 7px 11px); }

main.wrap { padding-block: 28px 56px; }
.dash-skeleton { color: transparent !important; background: var(--cds-chart-muted); border-radius: 4px; }
.page-note { font-size: var(--cds-font-size-caption); color: var(--muted); margin: 0 0 14px; }

/* footer */
.site-foot { background: var(--ink); color: var(--paper); }
@media (prefers-color-scheme: dark) { .site-foot { background: #0b0c0f; color: var(--ink); } }
.site-foot .wrap { padding-block: 28px 36px; display: grid; gap: 14px; grid-template-columns: auto 1fr; align-items: start; }
.site-foot .flag { width: 44px; color: #f0566a; }
.site-foot p { margin: 0; font-size: .8125rem; opacity: .82; max-width: 80ch; }
.site-foot p + p { margin-top: 4px; }

/* home: hero */
.hero { display: grid; gap: 28px 48px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; margin-bottom: 44px; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-weight: 800; font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0 0 16px; text-wrap: balance; }
.hero p { margin: 0 0 22px; color: var(--muted); font-size: 1.0625rem; max-width: 58ch; }
.find { display: flex; flex-wrap: wrap; gap: 8px; max-width: 30rem; }
.find label { flex-basis: 100%; font-size: .875rem; font-weight: 600; }
.find input { flex: 1 1 14rem; min-width: 0; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--cds-radius); background: var(--panel); color: var(--ink); }
.find button { font: inherit; font-weight: 700; padding: 10px 18px; border: 0; border-radius: var(--cds-radius); background: var(--red); color: #fff; cursor: pointer; }
.find button:hover { filter: brightness(1.08); }
.find small { flex-basis: 100%; color: var(--muted); font-size: .8125rem; }
.hero-map { display: grid; justify-items: center; pointer-events: none; user-select: none; }
.hero-map svg { width: 100%; max-width: 400px; height: auto; display: block; overflow: visible; }
.hero-map path { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.hero-map .hm-land { fill: color-mix(in oklab, var(--data) 9%, var(--panel)); }
.hero-map .hm-anc { stroke: color-mix(in oklab, var(--data) 22%, var(--panel)); stroke-width: 0.8; }
.hero-map .hm-ward { stroke: color-mix(in oklab, var(--data) 45%, var(--panel)); stroke-width: 1.3; }
.hero-map .hm-art { stroke: var(--red); stroke-width: 1.2; opacity: .55; }
.hero-map .hm-fwy { stroke: var(--red); stroke-width: 2.4; opacity: .9; }
.hero-map .hm-edge { stroke: var(--ink); stroke-width: 2; }
@media (prefers-reduced-motion: no-preference) {
  .hero-map .hm-road { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hm-draw 2.4s cubic-bezier(.4, 0, .2, 1) .2s forwards; }
  .hero-map .hm-fwy { animation-delay: .9s; }
  @keyframes hm-draw { to { stroke-dashoffset: 0; } }
}

/* home: the report card */
.rc-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 10px; }
.rc-head h2 { margin: 0; font-size: 1.375rem; font-weight: 800; letter-spacing: -0.015em; }
.rc-head p { margin: 0; color: var(--muted); font-size: .875rem; }
.report { background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--cds-radius); margin-bottom: 44px; }
.rc-row { display: grid; grid-template-columns: minmax(10rem, 1fr) minmax(0, 2.4fr) minmax(0, 1.4fr) 7.5rem; gap: 6px 24px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; }
.rc-row:first-child { border-top: 0; }
.rc-cols { padding-block: 10px; font-size: .8125rem; color: var(--muted); font-weight: 600; }
a.rc-row:hover { background: color-mix(in oklab, var(--data) 5%, var(--panel)); }
.rc-subj { display: grid; gap: 4px; justify-items: start; }
.rc-subj b { font-size: 1.0625rem; font-weight: 700; }
.rc-what { color: var(--muted); font-size: .9rem; }
.rc-src { color: var(--muted); font-size: .8125rem; }
.rc-grade { justify-self: end; text-align: right; display: grid; gap: 2px; justify-items: end; }
.rc-letter { font-weight: 800; font-size: 2.25rem; line-height: 1; letter-spacing: -0.02em; }
.rc-letter-sub { font-size: .75rem; color: var(--muted); }
.rc-none { font-size: .8125rem; color: var(--muted); }
.tag { font-size: .75rem; font-weight: 600; border-radius: 999px; padding: 1px 9px; border: 1px solid var(--line); color: var(--muted); }
.tag.live { color: var(--color-ok); border-color: currentColor; }
.rc-open { font-size: .8125rem; font-weight: 700; color: var(--red); }
@media (max-width: 760px) {
  .rc-cols { display: none; }
  .rc-row { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .rc-subj { grid-column: 1; grid-row: 1; }
  .rc-grade { grid-column: 2; grid-row: 1 / span 2; }
  .rc-what, .rc-src { grid-column: 1; }
}

/* home: explainer */
.explain { display: grid; gap: 24px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); border-top: 1px solid var(--line); padding-top: 28px; }
.explain h3 { margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.explain p { margin: 0; color: var(--muted); font-size: .9375rem; max-width: 60ch; }

/* about */
.prose { max-width: 70ch; display: grid; gap: 14px; }
.prose h1 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 4px; }
.prose h2 { font-size: 1.125rem; font-weight: 700; margin: 14px 0 0; }
.prose p, .prose li { margin: 0; color: var(--muted); }
.prose b { color: var(--ink); }
.prose ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 6px; }

/* scorecard page tweaks: grade letters and the panel name pick up the site's heavier type */
.cs-title { font-weight: 800 !important; letter-spacing: -0.03em; }
.cs-panel-name { font-weight: 700 !important; letter-spacing: -0.015em; }
.cs-grade-letter { font-weight: 800; letter-spacing: -0.02em; }
.cs-tabs button[aria-selected="true"] { border-bottom-color: var(--red) !important; }
