html, body { overflow-x: clip; }
/* The American Chauvinist — The Louisiana Record
   Bold civic style: white and navy with a single strong red, heavy sans headlines. */

@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-opsz-normal.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-latin-opsz-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --red: #bb1b1f;
  --red-dark: #8f1216;
  --navy: #0e1a2b;
  --navy-2: #16263d;
  --ink: #101418;
  --text: #22272e;
  --muted: #5f6772;
  --line: #e1e3e6;
  --line-strong: #c9ccd1;
  --bg: #ffffff;
  --bg-alt: #f4f4f1;
  --gold: #c8a24a;
  --ok: #1f6b3a;
  --ok-bg: #e7f3ea;
  --warn: #8a5a00;
  --warn-bg: #fbf1dc;
  --info: #1e3f6e;
  --info-bg: #e6edf7;
  --font-sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(16, 20, 24, .06), 0 6px 18px -10px rgba(16, 20, 24, .25);
  --shadow-hover: 0 2px 4px rgba(16, 20, 24, .08), 0 14px 30px -14px rgba(16, 20, 24, .35);
  --wide: 1240px;
  --reading: 46rem;
  --gutter: clamp(16px, 3vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 1rem; line-height: 1.55; }
a { color: var(--red); text-underline-offset: .18em; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--font-sans); color: var(--ink); line-height: 1.12; letter-spacing: -.02em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); font-weight: 900; margin: .15em 0 .35em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 800; margin: 1.6em 0 .6em; }
h3 { font-size: 1.15rem; font-weight: 800; margin: 1.2em 0 .4em; }
p { margin: .45em 0 .85em; }
code, pre { font-family: var(--font-mono); font-size: .82rem; }
.shell { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
main.shell { min-height: 60vh; padding-block: 32px 72px; }
#content { overflow-wrap: anywhere; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 99; background: var(--navy); color: #fff; padding: 12px 18px; }
.skip-link:focus { left: 12px; top: 12px; }

/* workstation bar (local only; removed in public mode) */
.utility-bar { background: #2b3440; color: #cfd6de; font-size: .82rem; overflow: hidden; }
.utility-inner { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; justify-content: space-between; min-height: 34px; padding-block: 6px; }
.utility-label { font-weight: 800; color: #f2d58a; }
.utility-bar nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.utility-bar a { color: #fff; text-decoration: none; }
.utility-bar a:hover, .utility-bar a[aria-current="page"] { text-decoration: underline; }

/* header */
.masthead { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.masthead-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; background: var(--red); color: #fff; font-weight: 900; font-size: .95rem; flex: none; }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font-weight: 900; font-size: 1.2rem; letter-spacing: -.01em; }
.brand-sub { font-size: .8rem; font-weight: 700; color: var(--red); }
.primary-nav { display: flex; align-items: center; gap: 4px; }
.primary-nav a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 10px 14px; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; }
.primary-nav a:hover { background: var(--bg-alt); color: var(--ink); }
.primary-nav a[aria-current="page"] { color: var(--red); }
.primary-nav a.nav-cta { background: var(--red); color: #fff; margin-left: 6px; padding-inline: 18px; }
.primary-nav a.nav-cta:hover { background: var(--red-dark); color: #fff; }
.nav-toggle { display: none; }

/* buttons and forms */
button, .button { font: inherit; font-weight: 800; min-height: 46px; padding: 0 22px; border-radius: 8px; border: 2px solid var(--red); background: var(--red); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
button:hover, .button:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.button-light { background: transparent; border-color: #fff; color: #fff; }
.button-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.button-quiet, .secondary-button { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.button-quiet:hover, .secondary-button:hover { background: var(--bg-alt); color: var(--ink); border-color: var(--ink); }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 13px; min-height: 46px; max-width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid rgba(200, 162, 74, .45); outline-offset: 0; }
label { font-weight: 700; font-size: .9rem; color: var(--ink); }

/* shared page furniture */
.intro { padding: 8px 0; }
.intro h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); max-width: 16ch; }
.eyebrow { font-size: .8rem; font-weight: 800; letter-spacing: .06em; color: var(--red); margin: 0 0 .3em; }
.lede { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--muted); max-width: 44rem; }
.scope-note { color: var(--muted); font-size: .92rem; max-width: 62rem; }
.search-panel { margin: 10px 0 26px; }
.search-panel label { display: block; margin-bottom: 8px; }
.search-controls { display: flex; gap: 10px; max-width: 720px; }
input[type="search"] { flex: 1; font-size: 1.05rem; }
#status { font-size: .92rem; color: var(--muted); margin: 0 0 12px; }
#status:empty { margin: 0; }
#status:not(:has(+ #content:empty)) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
.back-link { display: inline-block; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--muted); margin-bottom: 8px; }
.back-link:hover { color: var(--red); }
.demo-notice { background: var(--warn-bg); border: 1px solid var(--warn); padding: 12px 16px; font-weight: 700; border-radius: 8px; }
.page-head { border-bottom: 1px solid var(--line); padding-bottom: 20px; margin-bottom: 24px; }
.page-head h1 { margin-top: 0; }
.page-head .lede { margin-bottom: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); text-decoration: none; font-weight: 700; }
.crumbs a:hover { color: var(--red); }

/* home */
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.home-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; margin-top: -32px;
  aspect-ratio: 1672 / 941; min-height: 560px; display: flex; align-items: center; }
.home-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: var(--red); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: end; padding-top: clamp(40px, 6vw, 84px); }
.hero-copy { padding-bottom: clamp(40px, 6vw, 84px); }
.hero-kicker { display: inline-block; font-weight: 800; font-size: .85rem; letter-spacing: .1em; color: var(--gold); margin-bottom: 14px; }
.home-hero h1 { color: #fff; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 18px; }
.hero-sub { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: #d7dde6; max-width: 36rem; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-search { margin-top: 28px; max-width: 560px; }
.hero-search .search-panel { margin: 0; }
.hero-search label { color: #fff; }
.hero-search .scope-note { display: none; }
.hero-photo { position: absolute; inset: 0; background: url(/images/capitol-hero.jpg) 100% 50% / cover no-repeat; }
.hero-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 26, 43, .9) 0%, rgba(14, 26, 43, .72) 32%, rgba(14, 26, 43, .15) 58%, transparent 75%), linear-gradient(0deg, rgba(14, 26, 43, .45) 0%, transparent 30%); }
.home-hero .hero-inner { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr); }
.home-hero .hero-copy { max-width: 44rem; text-shadow: 0 2px 18px rgba(8, 14, 24, .55); }
.hero-credit { position: absolute; right: 16px; bottom: 12px; z-index: 1; margin: 0; font-size: .72rem; }
.hero-credit { color: rgba(255, 255, 255, .6); }
.home-section { padding-top: clamp(40px, 6vw, 72px); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 24px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); max-width: 40rem; }
.office-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.office-tile { display: grid; gap: 4px; align-content: start; padding: 20px 20px 18px; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.office-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-top-color: var(--red); color: var(--ink); }
.office-tile-count { font-weight: 900; font-size: 1.9rem; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.office-tile-title { font-weight: 800; font-size: 1.1rem; }
.office-tile-desc { color: var(--muted); font-size: .9rem; margin: 2px 0 0; }
.stat-band { background: var(--bg-alt); border-block: 1px solid var(--line); margin-top: clamp(40px, 6vw, 72px); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-grid .stat { padding: 26px 20px; border-right: 1px solid var(--line); }
.stat-grid .stat:last-child { border-right: 0; }
.stat-figure { display: block; font-weight: 900; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); color: var(--red); letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-label { display: block; font-weight: 700; margin-top: 8px; color: var(--ink); }
.about-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.about-band h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.6rem); margin: 0 0 14px; }
.about-band p { font-size: 1.08rem; }
.about-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.about-points li { background: var(--bg-alt); border-radius: var(--radius); padding: 16px 18px; border-left: 4px solid var(--red); }
.about-points strong { display: block; color: var(--ink); }
.election-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.election-card { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.election-card:hover { box-shadow: var(--shadow-hover); color: var(--ink); }
.election-date { font-weight: 900; font-size: 1.3rem; }
.election-meta { color: var(--muted); font-size: .92rem; }

/* directory */
.directory { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: 96px; display: grid; gap: 16px; background: var(--bg-alt); border-radius: var(--radius); padding: 20px; }
.filters h2 { font-size: 1.05rem; margin: 0; }
.filters .field { display: grid; gap: 6px; }
.filters select, .filters input { width: 100%; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.results-count { font-weight: 800; color: var(--ink); }
.results-bar select { min-width: 190px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--info-bg); color: var(--info); font-weight: 700; font-size: .85rem; text-decoration: none; }
.chip:hover { background: #d6e1f1; color: var(--info); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.official-card { display: grid; grid-template-rows: auto 1fr auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s ease, box-shadow .15s ease; }
.official-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: var(--ink); }
.card-top { display: flex; gap: 14px; align-items: center; padding: 18px 18px 10px; }
.portrait { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--navy); }
.card-where { font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: var(--red); }
.card-name { font-weight: 900; font-size: 1.15rem; line-height: 1.2; }
.card-body { padding: 0 18px 14px; color: var(--muted); font-size: .93rem; }
.card-body p { margin: 2px 0; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 12px 18px; background: var(--bg-alt); }
.card-foot-label { font-size: .75rem; font-weight: 800; color: var(--muted); }
.card-foot-value { font-weight: 900; color: var(--ink); }
.level-pill, .level-badge { display: inline-flex; align-items: center; font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; border-radius: 999px; background: var(--navy); color: #fff; white-space: nowrap; vertical-align: middle; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }

/* profile */
.profile-hero { background: var(--bg-alt); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 26px; align-items: center; margin-bottom: 28px; }
.profile-hero .portrait { width: 104px; height: 104px; font-size: 2.1rem; }
.profile-hero h1 { margin: 2px 0 6px; }
.profile-role { font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0; }
.profile-where { color: var(--muted); margin: 4px 0 0; }
.term-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; text-align: center; min-width: 150px; }
.term-box span { display: block; font-size: .75rem; font-weight: 800; color: var(--muted); }
.term-box strong { display: block; font-size: 1.35rem; font-weight: 900; color: var(--ink); margin-top: 4px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 26px); margin-bottom: 20px; box-shadow: var(--shadow); }
.panel > h2 { font-size: 1.3rem; margin: 0 0 14px; }
.facts-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 24px; margin: 0; }
.facts-list dt { font-size: .78rem; font-weight: 800; color: var(--muted); }
.facts-list dd { margin: 3px 0 0; font-weight: 700; color: var(--ink); }
.empty-note { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 16px 18px; }
.empty-note strong { display: block; color: var(--ink); margin-bottom: 4px; }
.action-list { list-style: none; padding: 0; margin: 0; }
.action-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.action-list li:last-child { border-bottom: 0; }
.action-date { font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.action-title { font-weight: 700; }
.action-meta { color: var(--muted); font-size: .9rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--bg-alt); color: var(--ink); margin-right: 6px; }
.tag-statement { background: var(--info-bg); color: var(--info); }
.source-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.source-list li { padding: 12px 14px; background: var(--bg-alt); border-radius: var(--radius-sm); }
.source-list strong { display: block; color: var(--ink); }
.source-list span { color: var(--muted); font-size: .88rem; }
.side-panel { position: sticky; top: 96px; }
.data-links { font-size: .88rem; color: var(--muted); }
.data-links a { margin-right: 14px; }

/* badges */
.state-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; vertical-align: middle; }
.state-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.state-ok { background: var(--ok-bg); color: var(--ok); }
.state-info { background: var(--info-bg); color: var(--info); }
.state-gap { background: var(--warn-bg); color: var(--warn); }
.layer-badge { display: inline-flex; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--bg-alt); color: var(--ink); vertical-align: middle; }
.layer-position { background: var(--info-bg); color: var(--info); }
.layer-analysis { background: #f7e3e3; color: var(--red-dark); }
.rereview-badge { display: inline-block; background: var(--warn-bg); color: var(--warn); font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 6px; white-space: normal; }

/* lists and panels used by existing pages */
.seat-list, .record-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.seat-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.seat-row, .record-row { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); overflow-wrap: anywhere; }
.seat-row p { margin: .2em 0; }
.seat-row > p:first-child { font-weight: 800; color: var(--ink); }
.seat-row > p:first-child a { color: var(--ink); text-decoration: none; }
.seat-row > p:first-child a:hover { color: var(--red); text-decoration: underline; }
.seat-row .scope-note { font-size: .88rem; }
.roster-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; margin: 16px 0; }
.result-card, .roster-card, .source-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; overflow-wrap: anywhere; }
.result-card h2, .roster-card h2 { font-size: 1.2rem; margin: .15em 0 .3em; }
.result-card h2 a, .roster-card h2 a { color: var(--ink); text-decoration: none; }
.result-card h2 a:hover, .roster-card h2 a:hover { color: var(--red); }
.public-leadership-list .roster-card { min-width: 0; margin: 0; }
.roster-list .ethics-reviewed-card { grid-column: 1 / -1; }
.ethics-reviewed-card .judicial-document-review { max-width: 76ch; }
.court-opinion-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.court-opinion-list > li { min-width: 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
.council-record-list, .judicial-action-list { align-items: start; }
.council-record-list th:last-child, .council-record-list td:last-child { white-space: nowrap; width: 5rem; }
.court-opinion-list h2 { font-size: 1.2rem; margin: .15em 0 .3em; }
.archive-search { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin: 20px 0; }
.archive-search label { display: grid; gap: 6px; flex: 1 1 18rem; min-width: 0; }
.archive-search input { width: 100%; min-width: 0; }
.archive-search button { margin: 0; }
.source-panel > h2 { font-size: 1.3rem; margin: 0 0 12px; }
.source-panel > h3 { font-size: 1rem; }
.empty-state { background: var(--bg-alt); border-radius: var(--radius-sm); padding: 16px 18px; max-width: 62rem; }
.roster-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px 16px; align-items: end; background: var(--bg-alt); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; }
.roster-filters .scope-note { grid-column: 1 / -1; margin: 0; }
.filter-field { display: grid; gap: 6px; }
.filter-field select, .filter-field input { width: 100%; }
.roster-pages { display: flex; justify-content: space-between; margin: 18px 0; }
.roster-pages a { font-weight: 800; text-decoration: none; }
.result-count { font-weight: 800; margin: 16px 0 6px; }
.research-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 20px; }
.research-nav a { padding: 8px 14px; border-radius: 999px; background: var(--bg-alt); color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; }
.research-nav a:hover, .research-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.research-nav[aria-label="Evidence export"] a { background: none; padding: 4px 0; color: var(--muted); font-weight: 600; text-decoration: underline; }
.audit-details, details { margin: 12px 0; }
.audit-details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-alt); }
.audit-details > summary { cursor: pointer; padding: 11px 14px; font-weight: 700; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
.audit-details pre { margin: 0; padding: 14px; border-top: 1px solid var(--line); background: #fff; overflow: auto; max-height: 420px; white-space: pre-wrap; word-break: break-word; }
.audit-details > :not(summary):not(pre) { padding-inline: 14px; }
.evidence-hash, .metadata { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); word-break: break-all; }
body.public-site .evidence-hash { display: none; }
.holder-status { font-weight: 800; color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px 24px; }
.citation { font-size: .72em; vertical-align: super; font-weight: 800; text-decoration: none; }
.framework-principle { border-left: 5px solid var(--navy); }
.framework-principle > h2 { font-size: 1.45rem; }
.statement { font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.5; color: var(--ink); max-width: var(--reading); }
table { border-collapse: collapse; width: 100%; font-size: .92rem; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); }
.matrix-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.editorial-form { display: grid; gap: 12px; max-width: 640px; background: var(--bg-alt); padding: 18px; border-radius: var(--radius); }
.conduct-filter { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; margin: 8px 0 14px; }
.analysis-row { border-left: 3px solid var(--red); padding: 6px 0 6px 14px; margin: 12px 0; }
details.race { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 0; box-shadow: var(--shadow); }
details.race > summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 16px; min-height: 48px; font-weight: 800; color: var(--ink); }
details.race > summary::-webkit-details-marker { display: none; }
details.race > summary::after { content: "+"; margin-left: auto; font-weight: 900; color: var(--red); }
details.race[open] > summary::after { content: "–"; }
details.race > :not(summary) { padding-inline: 16px; }
.race-count { font-weight: 700; color: var(--muted); font-size: .88rem; }
.stat-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; margin: 4px 0 14px; }
.stat-line .stat { color: var(--muted); font-weight: 700; }
.stat-line .stat strong { font-size: 1.3rem; font-weight: 900; color: var(--ink); margin-right: 5px; }
.more-link { display: inline-block; margin-top: 4px; font-weight: 800; }
.group-block { margin-bottom: 32px; }
.group-block > h2 { font-size: 1.35rem; margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.group-block > h2 small { font-size: .9rem; font-weight: 700; color: var(--muted); }
.about-page { max-width: var(--reading); }
.about-page h2 { margin-top: 1.4em; }
.about-page p, .about-page li { font-size: 1.08rem; }

/* footer */
.site-footer { background: var(--navy); color: #c8d0da; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px 40px; padding-block: 44px 30px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.footer-brand .brand-name { color: #fff; }
.footer-creed { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 700; }
.site-footer a:hover { text-decoration: underline; }
.footer-fine { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 16px; margin: 0; font-size: .86rem; }
.workstation-band { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; background: #2b3440; color: #e4e9ef; padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .92rem; }
.workstation-band strong { color: #f2d58a; }

/* responsive */
@media (max-width: 1000px) {
  .directory, .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .filters, .side-panel { position: static; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid .stat:nth-child(2) { border-right: 0; }
  .stat-grid .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .home-hero { aspect-ratio: auto; min-height: 0; display: block; }
  .masthead { position: relative; }
  .masthead-inner { flex-wrap: wrap; gap: 10px; min-height: 68px; padding-block: 10px; }
  .nav-toggle { display: inline-flex; background: #fff; color: var(--ink); border-color: var(--line-strong); min-height: 44px; }
  .nav-toggle[aria-expanded="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
  .primary-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  .primary-nav.open { display: flex; }
  .primary-nav a { border-bottom: 1px solid var(--line); border-radius: 0; }
  .primary-nav a.nav-cta { margin: 8px 0 0; border-radius: 8px; justify-content: center; }
  .hero-inner, .about-band, .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-photo { inset: 0; background-image: url(/images/capitol-hero-1000.jpg); background-position: 78% 30%; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(14, 26, 43, .55) 0%, rgba(14, 26, 43, .86) 45%, var(--navy) 100%); }
  .profile-hero { grid-template-columns: auto minmax(0, 1fr); }
  .term-box { grid-column: 1 / -1; text-align: left; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .brand-name { font-size: 1.02rem; }
  .brand-mark { width: 40px; height: 40px; font-size: .82rem; }
  .search-controls { flex-direction: column; }
  .search-controls button, .hero-actions .button { width: 100%; }
  .stat-grid { grid-template-columns: minmax(0, 1fr); }
  .stat-grid .stat { border-right: 0; }
  .stat-grid .stat:nth-child(n+2) { border-top: 1px solid var(--line); }
  .profile-hero { grid-template-columns: minmax(0, 1fr); }
  .profile-hero .portrait { width: 76px; height: 76px; font-size: 1.5rem; }
  .action-list li { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.seat-list { list-style: none; padding: 0; }
.seat-item { display: grid; }
.seat-card .card-foot { justify-content: flex-start; }
div.official-card.seat-card:hover { transform: none; }

/* recorded votes */
.vote-summary { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 6px; }
.vote-total { font-weight: 900; font-size: 1.15rem; color: var(--ink); margin-right: 6px; }
.vote-count { font-size: .82rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--ink); }
.vote-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.vote-controls input { flex: 1 1 240px; }
.vote-list { list-style: none; padding: 0; margin: 0 0 12px; }
.vote-row { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.vote-cast { align-self: start; text-align: center; font-weight: 900; font-size: .8rem; padding: 6px 4px; border-radius: 6px; background: var(--bg-alt); color: var(--ink); }
.vote-yea, .vote-aye, .vote-yeas { background: var(--ok-bg); color: var(--ok); }
.vote-nay, .vote-no, .vote-nays { background: #f7e3e3; color: var(--red-dark); }
.vote-not-voting, .vote-absent { background: var(--warn-bg); color: var(--warn); }
.vote-question { font-weight: 800; color: var(--ink); margin: 0 0 2px; }
.vote-title { margin: 0 0 2px; color: var(--text); }
.vote-meta { margin: 0; font-size: .86rem; color: var(--muted); }
@media (max-width: 600px) { .vote-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } .vote-cast { justify-self: start; padding: 4px 10px; } }
