/* Minnesota Public-Program Fraud Tracker — light, civic data-journalism style */
@font-face { font-family: "Source Sans Pro"; src: url("../fonts/SourceSansPro-Regular.woff2") format("woff2"), url("../fonts/SourceSansPro-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans Pro"; src: url("../fonts/SourceSansPro-Bold.woff2") format("woff2"), url("../fonts/SourceSansPro-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --ink: #1a1a1a;
  --ink-2: #3d3d3d;
  --muted: #5c5c5c;
  --paper: #fbfaf7;
  --card: #ffffff;
  --rule: #e3ded3;
  --navy: #1f3a5f; --navy-dark: #142944;
  --navy-2: #2c5282; --gold-soft: #ffe08a;
  --amber: #8a5a00;
  --amber-bg: #fff6e0;
  --red: #8b1e1e;
  --green: #22543d;
  --bs-body-font-family: "Source Sans Pro", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-link-color: var(--navy-2);
  --bs-link-color-rgb: 44, 82, 130;
  --bs-link-hover-color: var(--navy);
}
html { font-size: 17px; }
body { background: var(--paper); color: var(--ink); line-height: 1.55; }
h1, h2, h3, .display-title { font-family: Georgia, "Times New Roman", serif; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: 2.1rem; font-weight: 700; }
h2 { font-size: 1.45rem; font-weight: 700; margin-top: 2rem; }
h3 { font-size: 1.15rem; font-weight: 700; }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 52rem; }
.kicker { text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; font-weight: 700; color: var(--amber); }
.small-muted, .text-muted { color: var(--muted) !important; }
a { text-underline-offset: 2px; }
:focus-visible { outline: 3px solid #f2b705; outline-offset: 2px; }
.skip-link { position: absolute; left: 1rem; top: .5rem; background: #fff; padding: .5rem 1rem; z-index: 2000; }

.rule-banner { background: var(--navy); color: #fff; font-size: .9rem; padding: .4rem 0; }
.rule-banner a { color: #ffe08a; margin-left: .5rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--rule); }
.navbar-brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand-mark { background: var(--navy); color: #fff; font-family: Georgia, serif; font-weight: 700; padding: .25rem .45rem; border-radius: 3px; }
.brand-text { font-family: Georgia, serif; font-weight: 700; line-height: 1.05; font-size: 1rem; }
.navbar .nav-link { color: var(--ink); font-weight: 700; }
/* Keep each menu label on one line; if the menu is too wide it wraps as whole items, never mid-label. */
@media (min-width: 992px) {
  .navbar-expand-lg .navbar-collapse { flex-wrap: wrap; row-gap: .15rem; }
  .navbar-expand-lg .navbar-nav { flex-wrap: wrap; }
  .navbar-expand-lg .navbar-nav .nav-link { white-space: nowrap; padding-left: .45rem; padding-right: .45rem; font-size: .95rem; }
}
.dropdown-item.active, .dropdown-item:active { background: var(--navy); }
.site-footer { border-top: 1px solid var(--rule); background: #f3f1ec; padding: 2rem 0; margin-top: 3rem; color: var(--ink-2); }

.card-plain { background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 1.25rem; }
.section-rule { border-top: 3px solid var(--ink); padding-top: .5rem; margin-top: 2.25rem; }

/* Status badges — charged and convicted are deliberately not styled alike */
.status-badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; line-height: 1.4; }
.status-charged { background: var(--amber-bg); color: #6b4500; border: 2px dashed #b07a00; }
.status-convicted { background: var(--red); color: #fff; border: 2px solid var(--red); }
.status-sentenced { background: var(--ink); color: #fff; border: 2px solid var(--ink); }
.status-cleared { background: #e8f5ee; color: var(--green); border: 2px solid var(--green); }
.status-civil { background: #eceff3; color: #2d3748; border: 2px solid #718096; }
.status-mixed { background: #fff; color: var(--navy); border: 2px solid var(--navy); }

.charged-notice { background: var(--amber-bg); border-left: 5px solid #b07a00; padding: .6rem .9rem; margin: 1rem 0; font-size: .95rem; }
.conflict-box { border: 2px solid #b7791f; background: #fffaf0; border-radius: 6px; padding: 1rem; margin: 1rem 0; }
.conflict-box h3 { font-size: 1rem; margin: 0 0 .5rem; }
.conflict-side { background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: .75rem; height: 100%; }
.partisan { background: #fdecec !important; color: var(--red) !important; border: 1px solid var(--red); }
.source-class { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; background: #eef1f5; color: #334; padding: .05rem .35rem; border-radius: 3px; margin-left: .35rem; white-space: nowrap; }
.source-link { word-break: break-word; }
.asof { font-size: .82rem; color: var(--muted); }
.seeded-badge { font-size: .7rem; font-weight: 700; text-transform: uppercase; padding: .1rem .4rem; border-radius: 3px; background: #f1f1f1; color: #444; border: 1px solid #888; }
.needs-confirmation { font-size: .72rem; font-weight: 700; padding: .1rem .4rem; border-radius: 3px; background: #fff1f0; color: var(--red); border: 1px dashed var(--red); }

/* Tallies */
.tally { background: #fff; border: 1px solid var(--rule); border-top: 5px solid var(--navy); border-radius: 6px; padding: 1rem 1.1rem; height: 100%; }
.tally.charged { border-top-color: #b07a00; }
.tally.convicted { border-top-color: var(--red); }
.tally.estimated { border-top-color: #718096; }
.tally .count { font-family: Georgia, serif; font-size: 2.4rem; font-weight: 700; line-height: 1; }
.tally .count-label { font-weight: 700; color: var(--ink-2); }
.tally ul { padding-left: 1rem; font-size: .9rem; }
.not-summed { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--red); font-weight: 700; }

.table-data { background: #fff; font-size: .95rem; }
.table-data thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.table-data td { vertical-align: top; }
.filters { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 1rem; }
.empty-state { border: 2px dashed var(--rule); border-radius: 6px; padding: 1.25rem; color: var(--muted); background: #fff; text-align: center; }
.figure-big { font-family: Georgia, serif; font-size: 1.7rem; font-weight: 700; color: var(--navy); }
.prosecution-tiles .figure-big { font-size: 1.45rem; overflow-wrap: anywhere; }
.tile-label { font-size: .88rem; color: var(--ink-2); margin-top: .25rem; }
.chart-box { position: relative; background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 1rem; height: 340px; }

.timeline { list-style: none; padding-left: 0; border-left: 3px solid var(--rule); margin-left: .5rem; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.25rem; }
.timeline li::before { content: ""; position: absolute; left: -.55rem; top: .35rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--navy); border: 2px solid #fff; }
.timeline li.kind-audit::before { background: #b07a00; }
.timeline li.kind-hearing::before { background: var(--red); }
.timeline .when { font-weight: 700; font-size: .9rem; color: var(--ink-2); }
.btn-share { background: #000; color: #fff; font-weight: 700; }
.btn-share:hover { background: #333; color: #fff; }
.btn-primary { --bs-btn-bg: var(--navy); --bs-btn-border-color: var(--navy); --bs-btn-hover-bg: #142944; --bs-btn-hover-border-color: #142944; }
.prose { max-width: 50rem; }
.dl-grid dt { font-weight: 700; color: var(--ink-2); }
@media print { .network-bar, .rule-banner, .site-header, .site-footer, .btn-share, .filters { display: none !important; } body { background: #fff; } }

/* Bootstrap 5.1 does not read the 5.3 CSS variables; set brand colors explicitly. */
a { color: var(--navy-2); }
a:hover { color: var(--navy); }
.btn-primary { background-color: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background-color: #142944; border-color: #142944; color: #fff; }
/* Bootstrap's default blue outline is 4.1:1 on the paper background; navy passes AA. */
.btn-outline-primary { color: var(--navy); border-color: var(--navy); }
.btn-outline-primary:hover, .btn-outline-primary:focus { background-color: var(--navy); border-color: var(--navy); color: #fff; }
.nav-pills .nav-link { color: var(--navy); }
.nav-pills .nav-link.active { background-color: var(--navy); color: #fff; }
.form-control:focus, .form-select:focus { border-color: var(--navy-2); box-shadow: 0 0 0 .2rem rgba(44, 82, 130, .25); }
.navbar-light .navbar-toggler { border-color: #b9b3a6; }
.rule-banner a, .btn-share { color: inherit; }
.rule-banner a { color: #ffe08a; }
.btn-share, .btn-share:hover { color: #fff; }

/* Program data: Who participates (neutral, factual) */
.pd-notice { background: #eef3f8; border-left: 5px solid var(--navy); padding: .7rem 1rem; margin: 1rem 0 1.5rem; }
.pd-table { margin: 1.5rem 0 2rem; }
.pd-table h3 { font-size: 1.05rem; }
.pd-moe { font-size: .75rem; color: var(--muted); }
.pd-gtype { font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-left: .3rem; white-space: nowrap; }
.pd-statewide th, .pd-statewide td { background: #f6f4ee; font-weight: 700; }
.pd-flag { background: #fffaf0; border: 1px solid #d69e2e; border-radius: 4px; padding: .5rem .75rem; font-size: .88rem; }
.pd-thinktank { background: #f7f7f7; border: 2px dashed #8a8a8a; border-radius: 6px; padding: 1rem 1.1rem; }
.pd-thinktank .kicker { color: #555; }
.pd-thinktank dt { font-weight: 700; color: var(--ink-2); }
.pd-thinktank dd { margin-bottom: .35rem; }
.pd-about { background: #fff; border: 1px solid var(--rule); border-top: 4px solid #718096; border-radius: 6px; padding: 1rem 1.25rem; }

.pd-callout { background: #fff8e8; border: 2px solid #c48a1a; border-left: 8px solid #c48a1a; border-radius: 8px; padding: 1.25rem 1.5rem; margin: 1.25rem 0 1.75rem; }
.pd-callout-stat { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 700; line-height: 1.4; margin: .35rem 0 .85rem; }
.pd-callout-num { font-size: 1.75rem; color: var(--amber); }
.pd-callout-rank { font-size: 1.02rem; margin: 0 0 .75rem; }
.pd-callout-foot { color: var(--ink-2); }
.table-data tr.pd-high > th, .table-data tr.pd-high > td,
.table-data tr.table-warning > th, .table-data tr.table-warning > td { background-color: #f8e3a3; }
.pd-high .pd-rate, .pd-high .pd-rate a { font-weight: 700; }
.pd-badge-high { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; background: #8a5a00; color: #fff; padding: .12rem .4rem; border-radius: 3px; margin-left: .35rem; vertical-align: middle; white-space: nowrap; }
.pd-lowprec { display: inline-block; font-size: .68rem; font-weight: 700; color: #6b4500; background: #fff6e0; border: 1px solid #d69e2e; padding: .05rem .35rem; border-radius: 3px; margin-top: .15rem; white-space: nowrap; }
.pd-times { font-variant-numeric: tabular-nums; }
.pd-sort-th { cursor: pointer; user-select: none; }
.pd-sort-th[aria-sort="descending"]::after { content: " ▾"; }
.pd-sort-th[aria-sort="ascending"]::after { content: " ▴"; }

/* Federal fraud sentencing (neutral, factual) */
.fs-scope { background: #eef3f8; border-left: 5px solid var(--navy); border-radius: 6px; padding: 1rem 1.25rem; margin: 1.25rem 0 1.5rem; }
.fs-scope ul { padding-left: 1.1rem; font-size: .95rem; }
.fs-table { margin: 1rem 0 1.75rem; }
.fs-n { color: var(--muted); font-weight: 400; font-size: .85em; }
.fs-small { display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; background: #f1f1f1; color: #444; border: 1px dashed #888; border-radius: 3px; padding: 0 .3rem; margin-left: .25rem; }
.fs-pop { color: var(--ink-2); background: #f6f4ee; }
.fs-bar-row { margin-bottom: .7rem; }
.fs-track { background: #eef0f3; border-radius: 3px; height: .8rem; margin-top: .2rem; overflow: hidden; }
.fs-track-pop { height: .45rem; background: transparent; }
.fs-fill { background: var(--navy); height: 100%; }
.fs-fill-pop { background: #a0aec0; height: 100%; }
.fs-key { display: inline-block; width: .9rem; height: .6rem; vertical-align: middle; border-radius: 2px; }
.fs-key-off { background: var(--navy); }
.fs-key-pop { background: #a0aec0; }
.fs-smallnote { color: var(--ink-2); }
.fs-details { background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: .6rem 1rem; }
.fs-details summary { cursor: pointer; }
.fs-details-title { display: inline; font-family: inherit; font-size: 1rem; font-weight: 700; margin: 0; }

/* About page */
.about-hero { background: var(--navy); color: #fff; border-radius: 8px; padding: 2.25rem 2rem; margin-bottom: 2rem; }
.about-hero h1 { color: #fff; font-size: 2.3rem; }
.about-hero .lede { color: #e6ecf3; max-width: 46rem; }
.about-hero .kicker { color: #ffe08a; }
.about-stat { font-family: Georgia, serif; font-size: 2rem; font-weight: 700; color: var(--navy); line-height: 1; }
.about-card { background: #fff; border: 1px solid var(--rule); border-top: 4px solid var(--navy); border-radius: 6px; padding: 1.1rem 1.2rem; height: 100%; }
.about-card h3 { font-size: 1.05rem; margin-top: 0; }
.about-card.welfare { border-top-color: #718096; }
.about-principles li { margin-bottom: .5rem; }
.about-cta { background: var(--amber-bg); border-left: 5px solid #b07a00; border-radius: 6px; padding: 1rem 1.25rem; }

/* Home-page quoted official estimate ($9 billion) */
.estimate-hero { background: #1b2a3d; color: #fff; border-left: 10px solid #e0a526; border-radius: 8px; padding: 1.5rem 1.75rem; margin: 0 0 2rem; }
.estimate-hero a { color: #ffd479; }
.estimate-hero a.btn-share { color: #fff; border: 1px solid #fff; }
.estimate-hero-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: #ffd479; margin-bottom: .5rem; }
.estimate-hero-num { font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 9vw, 5.5rem); font-weight: 700; line-height: 1; color: #ffc444; }
.estimate-hero-numlabel { font-size: 1.05rem; font-weight: 600; margin: .5rem 0 0; color: #f3efe6; }
.estimate-hero-quote { font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; line-height: 1.45; border-left: 3px solid #e0a526; padding-left: 1rem; margin: 0; }
.estimate-hero-attrib { color: #e6e1d6; }
.estimate-hero-scope { background: rgba(255,255,255,.08); border-radius: 6px; padding: .6rem .8rem; }
.estimate-hero-response { color: #d9d4c9; }
@media print { .estimate-hero { background: #fff; color: #000; border: 2px solid #000; } .estimate-hero-num { color: #000; } }

/* Subtle reader-support link in the header and footer */
.nav-support {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--muted) !important;
  font-weight: 600 !important;
  font-size: .92rem;
  white-space: nowrap;
}
.nav-support:hover, .nav-support:focus-visible { color: var(--navy) !important; }
.nav-support svg { width: .95rem; height: .95rem; flex: none; }
.footer-support { font-weight: 600; }

/* Share bars */
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .75rem 0 1rem; }
.share-bar.share-compact { margin: .5rem 0 0; }
.share-bar .share-label { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #555; margin-right: .2rem; }
.share-bar.share-dark .share-label { color: rgba(255,255,255,.8); }
.share-bar.share-dark .btn-outline-secondary { color: #fff; border-color: rgba(255,255,255,.7); }
.share-bar.share-dark .btn-outline-secondary:hover { background: rgba(255,255,255,.15); }
.timeline .share-bar .btn { padding: .1rem .5rem; font-size: .78rem; }
/* Home stat band */
.stat-band { background: var(--navy); color: #fff; border-radius: 8px; padding: 1.4rem 1.6rem; border-left: 8px solid #f2c14e; }
.stat-band-kicker { color: #f2c14e; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.stat-band-num { font-family: Georgia, serif; font-weight: 700; font-size: clamp(2rem, 6vw, 3rem); line-height: 1; color: #ffe08a; }
.stat-band-label { font-size: .95rem; color: rgba(255,255,255,.88); margin-top: .3rem; }
.stat-band-label strong { color: #fff; }
.stat-band-sources { font-size: .82rem; color: rgba(255,255,255,.75); }
.footer-sister a { font-weight: 600; }
@media (max-width: 575.98px) { .share-bar .btn { flex: 1 1 auto; } }

/* Accessibility: contrast and tap targets */
.btn-outline-secondary { color: #495057; }  /* Bootstrap 5.1 default #6c757d is 4.49:1 on the page background */
.breadcrumb-item.active { color: #555; }
code { color: #a01c5c; }
.site-footer a { display: inline-block; padding: .2rem 0; }
.footer-links li { margin-bottom: .2rem; }
.footer-cta .btn { display: block; width: 100%; max-width: 220px; }
.btn-follow-x { background: #000; color: #fff; font-weight: 700; }
.btn-follow-x:hover, .btn-follow-x:focus { background: #333; color: #fff; }
.btn-support { background: #f2c14e; color: #1f3a5f; font-weight: 700; }
.btn-support:hover, .btn-support:focus { background: #e0ad35; color: #1f3a5f; }
.navbar .nav-follow { font-weight: 600; }
.footer-disclaimer { color: inherit; }
.home-cta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
@media (max-width: 575.98px) { .navbar .nav-link { padding-top: .55rem; padding-bottom: .55rem; } }
.nav-support-note { font-size: .72rem; color: #555; max-width: 11rem; line-height: 1.15; }
@media (max-width: 991.98px) { .nav-support-note { max-width: none; display: block; padding-bottom: .4rem; } }
.kofi-note { color: inherit; font-size: .8rem; }
.outcome-banner { border-left: 6px solid #2e7d32; background: #eef7ee; padding: .9rem 1.1rem; border-radius: 6px; margin-bottom: 1rem; font-size: 1.05rem; }
.not-tip-line { border-left: 6px solid #b26a00; background: #fff6e5; padding: .8rem 1rem; border-radius: 6px; }
.report-error-bar { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid #ddd; }

/* ---------- Navigation (Nov 2026 redesign): one tidy row on desktop, clean collapse on mobile ---------- */
.site-header { position: relative; z-index: 1020; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.site-nav { padding-top: .55rem; padding-bottom: .55rem; }
.site-nav .navbar-brand { margin-right: 1.25rem; padding: 0; }
.site-nav .navbar-collapse { flex-wrap: nowrap; }
.site-nav .main-links { gap: .1rem; }
.site-nav .navbar-nav .nav-link {
  position: relative; color: #2b2f36; font-weight: 600; font-size: .97rem; white-space: nowrap;
  padding: .55rem .7rem; border-radius: 6px; transition: background-color .15s, color .15s;
}
.site-nav .navbar-nav .nav-link:hover { color: var(--navy); background: #f1efe9; }
.site-nav .navbar-nav .nav-link.active, .site-nav .navbar-nav .nav-link[aria-current="page"] { color: var(--navy); }
.site-nav .navbar-nav .nav-link:focus-visible, .site-nav .btn-donate:focus-visible, .site-nav .navbar-toggler:focus-visible,
.site-nav .dropdown-item:focus-visible, .site-footer a:focus-visible {
  outline: 3px solid #f2c14e; outline-offset: 2px; box-shadow: 0 0 0 5px #1f3a5f;
}
.site-nav .navbar-toggler:focus { box-shadow: none; }
.site-nav .dropdown-menu { border: 1px solid #e3dfd5; border-radius: 10px; box-shadow: 0 10px 30px rgba(31,58,95,.12); padding: .4rem; min-width: 15rem; }
.site-nav .dropdown-header { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5b5f66; padding: .45rem .75rem .2rem; margin: 0; }
.site-nav .dropdown-item { border-radius: 6px; padding: .42rem .75rem; font-size: .95rem; color: #2b2f36; }
.site-nav .dropdown-item:hover { background: #f1efe9; color: var(--navy); }
.site-nav .dropdown-item[aria-current="page"] { background: var(--navy); color: #fff; }
.site-nav .btn-donate, .site-nav .btn-donate.nav-support {
  display: inline-flex; align-items: center; gap: .4rem; margin-left: .75rem; white-space: nowrap;
  background: #f2c14e; color: #1f3a5f !important; font-weight: 700 !important; font-size: .95rem;
  border: 0; border-radius: 999px; padding: .45rem 1rem; line-height: 1.2;
}
.site-nav .btn-donate:hover { background: #e0ad35; color: #1f3a5f !important; }
.site-nav .btn-donate[aria-current="page"] { box-shadow: inset 0 0 0 2px #1f3a5f; }
@media (min-width: 992px) {
  /* active page: underline bar */
  .site-nav .main-links > .nav-item > .nav-link.active:not(.dropdown-toggle)::after,
  .site-nav .main-links > .nav-item > .nav-link[aria-current="page"]::after {
    content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .1rem; height: 3px; border-radius: 2px; background: #f2c14e;
  }
}
@media (min-width: 992px) {
  /* section menu holding the current page: same bar, drawn without replacing the caret */
  .site-nav .main-links > .nav-item > .nav-link.dropdown-toggle.active { box-shadow: inset 0 -3px 0 -0px #f2c14e; border-radius: 6px 6px 0 0; }
}
@media (max-width: 1199.98px) and (min-width: 992px) {
  .site-nav .navbar-nav .nav-link { padding-left: .5rem; padding-right: .5rem; font-size: .93rem; }
  .site-nav .btn-donate.nav-support { margin-left: .4rem; padding: .4rem .8rem; }
}
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { border-top: 1px solid #ebe7de; margin-top: .55rem; padding: .4rem 0 .6rem; }
  .site-nav .main-links { gap: 0; }
  .site-nav .navbar-nav .nav-link { padding: .7rem .6rem; font-size: 1.02rem; border-radius: 6px; }
  .site-nav .navbar-nav .nav-link[aria-current="page"] { background: #eef2f7; box-shadow: inset 4px 0 0 #1f3a5f; }
  .site-nav .dropdown-menu { box-shadow: none; border: 0; background: #f7f5f0; margin: 0 0 .3rem; }
  .site-nav .btn-donate.nav-support { margin: .6rem 0 0; width: 100%; justify-content: center; padding: .7rem 1rem; font-size: 1.02rem; }
}

/* ---------- Footer ---------- */
.site-footer { padding: 2.5rem 0 2rem; }
.site-footer .footer-title { font-family: Georgia, serif; font-weight: 700; font-size: 1.05rem; color: #1b1f24; margin-bottom: .5rem; }
.site-footer .footer-heading { font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #3d4148; margin: 0 0 .6rem; }
.site-footer .footer-links li { margin-bottom: .35rem; font-size: .93rem; }
.site-footer .footer-links a { color: #1f3a5f; text-decoration: none; padding: .15rem 0; }
.site-footer .footer-links a:hover { text-decoration: underline; }
.site-footer .footer-x { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; max-width: 100%; }
.site-footer .footer-x .x-handle { overflow-wrap: anywhere; min-width: 0; }
.site-footer .footer-x svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: #111; color: #fff; }
.site-footer .footer-x:hover svg { background: #1f3a5f; }
.site-footer .footer-sister { font-size: .85rem; color: #3d4148; padding-top: .2rem; }
.support-box { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1.1rem 1.25rem; border: 1px solid #e3dfd5; border-radius: 10px; background: #fff; margin: 1rem 0 1.5rem; }
.support-box .kofi-note { font-size: .95rem; color: #3d4148; }
.estimate-hero-title { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 800; margin: .35rem 0 .5rem; line-height: 1.1; }
.estimate-hero-lede { font-size: 1.15rem; margin-bottom: 1rem; }
.estimate-hero-cite { font-size: .9rem; }
.rank-amount { font-weight: 700; white-space: nowrap; }
.amount-kind { display: inline-block; font-size: .75rem; font-weight: 700; padding: 0 .4rem; border-radius: 4px; border: 1px solid currentColor; }
.amount-kind.alleged { color: #7a4b00; }
.amount-kind.proven { color: #1d5a2e; }
.columns-2 { columns: 2 16rem; }
/* Federal sentencing: Per capita / Total counts switch */
.fs-viewbar { background: #f6f4ee; border: 1px solid var(--rule); border-radius: 6px; padding: .6rem 1rem; margin: 1rem 0; }
.fs-rel { color: var(--ink-2); }
.fs-overall { color: var(--ink-2); }
.fs-footnote { color: var(--ink-2); }
/* Who participates: compact "Context: poverty rate and household size" table (fits 1366px without sideways scroll) */
.pd-context-key { color: var(--muted); padding-top: 0; }
.pd-context .pd-hh, .pd-context-key .pd-hh { color: var(--muted); font-weight: 400; }
.table-data.pd-context > :not(caption) > * > * { padding-left: .4rem; padding-right: .4rem; }
.pd-context tbody th { min-width: 11rem; }
@media (max-width: 767.98px) { .pd-context .pd-badge-high { display: block; width: max-content; margin: .15rem 0 0; } }
.prosecution-tiles .figure-big.figure-money { font-size: .98rem; letter-spacing: -.01em; overflow-wrap: normal; white-space: nowrap; }

/* /prosecutions: groups section (bar chart beside the table) */
.pros-groups #group-table th[scope=row] { white-space: nowrap; }
.pros-groups #group-table td { white-space: nowrap; }
.pros-group-bars .fs-fill { background: var(--navy); }

/* Network bar: same top strip as Budget / Costs / Audits */
.network-bar { background: var(--navy-dark, #142944); color: #dfe7f2; font-size: .85rem; }
.network-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; padding-top: .3rem; padding-bottom: .3rem; }
.network-label { font-weight: 700; letter-spacing: .04em; color: var(--gold-soft, #ffe08a); }
.network-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: .1rem .2rem; margin: 0; padding: 0; }
.network-nav a { color: #fff; text-decoration: none; display: inline-block; padding: .35rem .5rem; border-radius: 4px; min-height: 32px; }
.network-nav a:hover { background: rgba(255,255,255,.12); }
.network-nav a[aria-current], .network-current { color: var(--gold-soft, #ffe08a); font-weight: 700; display: inline-block; padding: .35rem .5rem; }
@media (max-width: 576px) { .network-label { display: none; } }
