:root {
  color-scheme: light;
  --ink: #142d38;
  --muted: #60727a;
  --paper: #f5f4ef;
  --card: #fffefa;
  --line: #dce1dd;
  --navy: #102b3a;
  --blue: #215c70;
  --green: #176b55;
  --lime: #c8e36b;
  --orange: #c46c34;
  --red: #a64c43;
  --shadow: 0 12px 32px rgb(13 39 50 / 8%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); min-width: 320px; }
a { color: var(--blue); text-decoration-thickness: .08em; text-underline-offset: .16em; }
a:hover { color: var(--green); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #9ab64d; outline-offset: 3px; }

.site-header { background: var(--navy); color: white; padding: max(14px, env(safe-area-inset-top)) clamp(16px, 4vw, 48px) 0; }
.brand { color: white; display: inline-flex; gap: 12px; align-items: center; text-decoration: none; min-height: 52px; }
.brand:hover { color: white; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px 12px 12px 3px; color: var(--navy); background: var(--lime); font-size: 17px; font-weight: 850; letter-spacing: -.06em; }
.brand strong { display: block; font-size: 13px; letter-spacing: .15em; }
.brand small { display: block; color: #bdcdd2; font-size: 11px; margin-top: 2px; }
.main-nav { display: flex; overflow-x: auto; gap: clamp(16px, 3vw, 30px); scrollbar-width: none; margin: 12px -4px 0; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { color: #d5e0e2; display: block; padding: 12px 4px 14px; text-decoration: none; white-space: nowrap; font-size: 13px; font-weight: 650; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: white; border-color: var(--lime); }

main { width: min(1240px, calc(100% - 32px)); min-height: 66vh; margin: 28px auto 56px; }
.page-heading { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin: 22px 0 24px; }
.eyebrow { color: var(--green); text-transform: uppercase; font-size: 11px; font-weight: 800; letter-spacing: .13em; margin: 0 0 8px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 7px; color: var(--navy); font-size: clamp(30px, 5.2vw, 54px); line-height: 1.02; letter-spacing: -.045em; }
h2 { color: var(--navy); font-size: clamp(20px, 3vw, 28px); letter-spacing: -.025em; margin: 0 0 14px; }
h3 { color: var(--navy); font-size: 17px; letter-spacing: -.015em; }
.lead { max-width: 750px; color: var(--muted); font-size: 15px; line-height: 1.6; margin-bottom: 0; }
.updated { color: var(--muted); font-size: 12px; white-space: nowrap; }
.section { margin: 34px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 14px; }
.section-heading p { color: var(--muted); font-size: 13px; margin: 0; }

.hero { overflow: hidden; position: relative; border-radius: 24px; color: white; background: var(--navy); padding: clamp(24px, 5vw, 48px); box-shadow: var(--shadow); }
.hero::after { content: "XV"; position: absolute; right: -10px; bottom: -64px; color: rgb(255 255 255 / 5%); font-size: clamp(180px, 36vw, 360px); line-height: .8; font-weight: 900; letter-spacing: -.12em; pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--lime); }
.hero h1 { color: white; max-width: 700px; }
.hero .lead { color: #c6d4d7; max-width: 660px; }
.hero .hero-link { display: inline-flex; margin-top: 22px; padding: 12px 16px; border-radius: 999px; background: var(--lime); color: var(--navy); text-decoration: none; font-size: 13px; font-weight: 800; }
.hero .hero-link:hover { background: white; }

.metric-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metric-card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 4px 12px rgb(13 39 50 / 3%); }
.metric-card .label { color: var(--muted); font-size: 12px; line-height: 1.35; }
.metric-card .value { color: var(--navy); font-size: clamp(25px, 4vw, 38px); font-weight: 800; line-height: 1.1; letter-spacing: -.04em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.metric-card .note { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.4; }

.split { display: grid; grid-template-columns: 1fr; gap: 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 4px 12px rgb(13 39 50 / 3%); }
.topic-bars { display: grid; gap: 13px; }
.topic-bar-row { display: grid; grid-template-columns: minmax(94px, 150px) 1fr auto; gap: 10px; align-items: center; }
.topic-bar-row a { color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.bar-track { overflow: hidden; height: 9px; border-radius: 99px; background: #e8ece5; }
.bar-fill { height: 100%; border-radius: inherit; background: var(--green); }
.topic-bar-row .count { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.committee-result-card { min-width: 0; }
.committee-result-card .metric-grid { margin: 14px 0; }
.committee-candidate-results { margin: 18px 0; }
.committee-candidate-results h4 { margin: 0 0 10px; }
.committee-candidate-results table { width: 100%; border-collapse: collapse; }
.committee-candidate-results th, .committee-candidate-results td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.committee-candidate-results td { white-space: nowrap; }
.committee-candidate-results th:last-child, .committee-candidate-results td:last-child { text-align: right; }
.committee-candidate-results .small { margin: 10px 0 0; }
.committee-vote-bar { display: flex; overflow: hidden; height: 12px; margin: 14px 0; border-radius: 99px; background: #e8ece5; }
.committee-vote-bar .for { background: var(--green); }
.committee-vote-bar .against { background: var(--red); }
.committee-vote-bar .abstain { background: var(--orange); }
.committee-context { margin: 12px 0; padding: 12px 14px; border-left: 3px solid var(--line); color: var(--muted); background: #f7f7f1; font-size: 12px; line-height: 1.55; }

.rank-list { display: grid; gap: 9px; }
.rank-row { display: grid; grid-template-columns: 26px 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #edf0ed; }
.rank-row:last-child { border-bottom: 0; }
.rank-number { color: var(--muted); font-size: 11px; font-weight: 750; }
.rank-row .name { display: block; color: var(--navy); font-size: 13px; font-weight: 750; text-decoration: none; line-height: 1.25; }
.rank-row .sub { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.rank-row .rank-value { text-align: right; font-size: 16px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; }
.portrait-wrap { position: relative; overflow: hidden; display: block; width: 44px; aspect-ratio: 1; flex: 0 0 auto; border-radius: 13px; background: #dfe7de; color: var(--green); }
.portrait-wrap::after { content: attr(data-initials); position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 850; letter-spacing: -.04em; }
.portrait-wrap img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; }
.portrait-wrap.large { width: clamp(92px, 18vw, 148px); border-radius: 22px; }
.portrait-wrap.mini { width: 36px; border-radius: 11px; }

.callout { border-left: 4px solid var(--orange); padding: 14px 16px; background: #fbf0e7; border-radius: 0 12px 12px 0; color: #69482f; font-size: 13px; line-height: 1.55; }
.callout strong { color: #58351e; }
.callout.success { border-color: var(--green); background: #eaf4ec; color: #31584b; }
.callout.info { border-color: var(--blue); background: #eaf3f4; color: #31505d; }
.callout a { color: inherit; font-weight: 700; }

.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 18px 0; }
.controls .search-field { grid-column: 1 / -1; }
.field { min-width: 0; width: 100%; border: 1px solid #cbd4d1; border-radius: 11px; background: white; color: var(--ink); padding: 12px 13px; font-size: 14px; }
.field::placeholder { color: #87959a; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 42px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--navy); text-decoration: none; font-size: 13px; font-weight: 750; }
.button.primary { border-color: var(--navy); color: white; background: var(--navy); }
.button:hover { border-color: var(--green); color: var(--green); }
.button.primary:hover { color: white; background: var(--green); }
.result-count { color: var(--muted); font-size: 12px; margin: 12px 0; }

.person-grid { display: grid; grid-template-columns: 1fr; gap: 11px; }
.agenda-list { display: grid; gap: 10px; }
.agenda-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); box-shadow: 0 3px 10px rgb(13 39 50 / 3%); }
.agenda-card h3 { margin: 10px 0 7px; line-height: 1.35; overflow-wrap: anywhere; }
.agenda-card-top { display: flex; justify-content: space-between; align-items: center; gap: 9px; flex-wrap: wrap; }
.agenda-card-top .activity-date { font-size: 12px; font-weight: 750; }
.agenda-related { display: grid; gap: 6px; padding: 10px 12px; margin: 10px 0; border-radius: 11px; background: #eef3ef; font-size: 12px; }
.agenda-related span { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.agenda-related small { color: var(--muted); line-height: 1.4; }
.agenda-card .source-note { margin: 6px 0; }
.person-card { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 13px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-decoration: none; color: var(--ink); box-shadow: 0 3px 10px rgb(13 39 50 / 3%); transition: transform .15s ease, box-shadow .15s ease; }
.person-card:hover { transform: translateY(-2px); color: var(--ink); box-shadow: var(--shadow); }
.person-card .portrait-wrap { width: 54px; }
.person-card .name { font-size: 14px; line-height: 1.3; color: var(--navy); font-weight: 800; margin: 1px 0 4px; }
.person-card .detail { font-size: 11px; line-height: 1.45; color: var(--muted); }
.person-card .mini-metrics { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 11px; color: #31505d; }
.person-card .mini-metrics b { color: var(--navy); }
.pill { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 99px; background: #e8efe8; color: #31584b; font-size: 10px; font-weight: 750; }
.pill.muted { background: #edf0ef; color: #586970; }
.pill.orange { background: #f9ecdf; color: #854b2b; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; padding: 7px 10px; border-radius: 99px; background: #e8efe8; color: #244d40; text-decoration: none; font-size: 11px; font-weight: 700; }
.chip:hover { background: var(--green); color: white; }

.profile-hero { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: #e9efeb; border-radius: 22px; padding: clamp(16px, 4vw, 30px); }
.profile-hero h1 { font-size: clamp(25px, 5vw, 42px); }
.profile-hero .lead { font-size: 13px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.speaker-byline { display: flex; align-items: center; gap: 8px; margin: 9px 0; color: var(--muted); font-size: 12px; }
.portrait-wrap.tiny { width: 29px; border-radius: 9px; }
.profile-nav { display: flex; gap: 8px; overflow-x: auto; padding: 14px 0 4px; scrollbar-width: none; }
.profile-nav a { flex: 0 0 auto; padding: 9px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--navy); background: white; text-decoration: none; font-size: 12px; font-weight: 750; }
.profile-nav a:hover { background: var(--navy); color: white; }
.activity-list { display: grid; gap: 12px; }
.hemicycle-history-capture { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.hemicycle-history-capture > summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; color: var(--navy); cursor: pointer; font-size: 13px; font-weight: 750; }
.hemicycle-history-capture > p { color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.hemicycle-map-plot-wrap { overflow: auto; max-width: 100%; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: #f8faf8; }
.hemicycle-map-plot { display: block; width: 100%; max-height: 65vh; color: #18756f; }
.hemicycle-map-plot circle { fill: currentColor; stroke: white; stroke-width: 1.25; }
.deputy-seat-map-locator { margin-top: 10px; }
.deputy-seat-map-locator > summary { color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 750; }
.deputy-seat-locator-plot { max-height: 52vh; color: #b8c7c1; }
.deputy-seat-locator-plot .deputy-seat-other { fill: #9db2aa; }
.deputy-seat-locator-plot .deputy-seat-target-halo { fill: #f1ab54; stroke: white; stroke-width: 2; }
.deputy-seat-locator-plot .deputy-seat-target { fill: #d84936; stroke: white; stroke-width: 1.75; }
.hemicycle-seat-explorer { margin: 24px 0; }
.hemicycle-seat-controls { display: grid; grid-template-columns: minmax(0, 1fr); margin: 12px 0; }
.hemicycle-seat-map-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.hemicycle-seat-map-wrap { width: min(100%, 536px); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.hemicycle-seat-map-svg { display: block; width: 100%; height: auto; }
.hemicycle-seat-map-svg image { display: block; }
.hemicycle-seat-point { cursor: pointer; }
.hemicycle-seat-point circle { fill: var(--lime); fill-opacity: .72; stroke: var(--navy); stroke-width: .75; vector-effect: non-scaling-stroke; transition: fill .12s ease, opacity .12s ease; }
.hemicycle-seat-point:hover circle, .hemicycle-seat-point:focus-visible circle { fill: #e17839; fill-opacity: 1; stroke-width: 1.75; }
.hemicycle-seat-point.is-dimmed circle { fill-opacity: .1; opacity: .2; }
.hemicycle-seat-point.is-highlighted circle { fill: #e17839; fill-opacity: 1; stroke-width: 1.6; }
.hemicycle-seat-map-summary { background: #f2f5f1; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.hemicycle-seat-map-summary strong { display: block; color: var(--navy); font-size: 22px; }
.hemicycle-seat-map-summary p { margin: 8px 0 0; font-size: 13px; line-height: 1.5; }
.hemicycle-seat-directory { margin-top: 14px; }
.hemicycle-seat-directory > summary { color: var(--blue); cursor: pointer; font-size: 13px; font-weight: 750; }
.hemicycle-seat-directory-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; max-height: 440px; overflow: auto; margin-top: 10px; }
.hemicycle-seat-directory-row { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); text-decoration: none; background: #fff; }
.hemicycle-seat-directory-row:hover { background: #f2f5f1; }
.hemicycle-seat-directory-row > span:last-child { display: grid; min-width: 0; gap: 2px; }
.hemicycle-seat-directory-row strong, .hemicycle-seat-directory-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hemicycle-seat-directory-row strong { font-size: 12px; }
.hemicycle-seat-directory-row small { color: var(--muted); font-size: 10px; }
.hemicycle-map-table { margin: 10px 0; }
.hemicycle-map-table > summary { color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 750; }
.hemicycle-map-table .table-scroll { max-height: 55vh; overflow: auto; margin-top: 8px; }
.activity-card { background: var(--card); border: 1px solid var(--line); border-radius: 15px; padding: 15px; }
.activity-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.activity-date { color: var(--green); font-size: 11px; font-weight: 800; white-space: nowrap; }
.activity-card h3 { margin: 6px 0; line-height: 1.35; }
.activity-card p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 7px 0; }
.activity-links { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; font-weight: 750; margin-top: 10px; }
.transcript { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.transcript summary { color: var(--blue); cursor: pointer; font-size: 12px; font-weight: 750; }
.transcript-text { color: #344951; font-size: 13px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0 0; }
.machine-transcript { border-top-style: dashed; }
.machine-transcript summary { color: #81521b; }
.machine-transcript-content p { margin: 8px 0; }
.clip-transcript-time { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; font-weight: 750; }
.source-note { margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.evidence-list { display: grid; gap: 8px; }
.evidence-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf0ed; font-size: 12px; }
.evidence-row:last-child { border-bottom: 0; }
.evidence-date { color: var(--green); font-weight: 750; }
.evidence-row p { margin: 4px 0 0; color: var(--muted); line-height: 1.45; }
.video-frame-preview { display: block; width: 100px; height: auto; margin-top: 7px; border: 1px solid var(--line); border-radius: 7px; }
.daily-activity-list { display: grid; gap: 8px; }
.daily-activity-row { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #edf0ed; font-size: 12px; }
.daily-activity-row:last-child { border-bottom: 0; }
.daily-activity-row .evidence-date small { display: block; margin-top: 5px; color: var(--muted); }
.daily-activity-summary { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.daily-activity-summary span { color: var(--muted); }
.daily-activity-bar { margin-top: 8px; }
.daily-activity-detail p { margin: 5px 0 0; color: var(--muted); line-height: 1.45; }
.daily-activity-detail .daily-time-evidence { color: var(--navy); font-weight: 700; }
.daily-attendance-evidence { margin-top: 9px; padding: 9px 10px; border-left: 3px solid var(--orange); border-radius: 0 9px 9px 0; background: #fff8ef; overflow-wrap: anywhere; }
.daily-attendance-evidence strong { display: block; color: var(--navy); line-height: 1.45; }
.daily-attendance-evidence p { margin-top: 5px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
table { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 12px; }
th, td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #edf0ed; }
th { position: sticky; top: 0; color: #425a62; background: #f1f5f1; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
tbody tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.session-card { display: block; padding: 15px; background: var(--card); border: 1px solid var(--line); border-radius: 15px; color: var(--ink); text-decoration: none; }
.session-card:hover { border-color: var(--green); color: var(--ink); box-shadow: var(--shadow); }
.session-card .session-date { color: var(--green); font-size: 11px; font-weight: 800; }
.session-card h3 { margin: 5px 0; }
.session-card .session-stats { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 11px; }
.dossier-card h3 a { color: var(--navy); text-decoration: none; }
.dossier-card h3 a:hover { color: var(--green); text-decoration: underline; }
.dossier-context-line, .dossier-preview { color: var(--muted); font-size: 12px; line-height: 1.5; }
.dossier-context { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #f7f7f1; }
.dossier-context > p:not(.eyebrow) { color: var(--muted); font-size: 11px; line-height: 1.5; }
.dossier-pages { display: grid; gap: 8px; }
.dossier-page { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.dossier-page summary { color: var(--navy); cursor: pointer; font-size: 13px; font-weight: 750; }
.dossier-text { margin-top: 12px; color: #344951; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.diario-turn-card details { margin: 10px 0; }
.diario-turn-card summary { color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 700; }
.diario-transcript-text { margin-top: 10px; color: #344951; font-size: 13px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.dossier-page code { overflow-wrap: anywhere; }
.candidate-people { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.candidate-person { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 11px; text-decoration: none; }
.candidate-person:hover { color: var(--green); }
.evidence-day { padding: 9px 0; border-bottom: 1px solid var(--line); }
.evidence-day summary { cursor: pointer; font-size: 13px; font-weight: 700; }
.compare-selects { display: grid; gap: 9px; }
.compare-columns { display: grid; grid-template-columns: 1fr; gap: 12px; }
.compare-person { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: center; margin-bottom: 14px; }
.compare-person h3 { margin: 0; }
.compare-person p { color: var(--muted); margin: 4px 0 0; font-size: 11px; }
.comparison-row { display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid #e9eeea; padding: 11px 0; font-size: 12px; }
.comparison-row span { color: var(--muted); }
.comparison-row strong { color: var(--navy); font-variant-numeric: tabular-nums; }
.source-table { display: grid; gap: 8px; }
.source-line { display: grid; grid-template-columns: minmax(120px, 1fr) auto; gap: 10px; padding: 11px 0; border-bottom: 1px solid #edf0ed; font-size: 12px; }
.source-line:last-child { border: 0; }
.source-line strong { color: var(--navy); }
.source-line small { display: block; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.status { align-self: start; border-radius: 99px; padding: 4px 8px; background: #e7eee8; color: #31584b; font-size: 10px; font-weight: 750; }
.status.partial, .status.failed, .status.unavailable { background: #f7e9de; color: #884e2e; }
.status.unknown { background: #eceff0; color: #5c6a70; }
.pagination { display: flex; justify-content: center; margin: 18px 0; }
.empty { padding: 32px 16px; text-align: center; border: 1px dashed #c8d1cd; border-radius: 16px; color: var(--muted); font-size: 14px; }
.loading { display: flex; align-items: center; gap: 10px; min-height: 250px; justify-content: center; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 99px; border: 2px solid #cdd8d4; border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.site-footer { border-top: 1px solid var(--line); padding: 18px 16px max(20px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.site-footer a { font-weight: 700; }
.mono { font-variant-numeric: tabular-nums; }
.small { color: var(--muted); font-size: 11px; line-height: 1.5; }

@media (min-width: 620px) {
  main { width: min(1240px, calc(100% - 52px)); margin-top: 34px; }
  .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .split { grid-template-columns: 1.1fr .9fr; }
  .person-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .controls { grid-template-columns: minmax(230px, 2fr) repeat(3, minmax(140px, 1fr)); }
  .controls .search-field { grid-column: auto; }
  .hemicycle-seat-controls { grid-template-columns: minmax(0, 1fr) minmax(220px, .75fr); }
  .hemicycle-seat-map-layout { grid-template-columns: minmax(0, 1.25fr) minmax(210px, .75fr); }
  .hemicycle-seat-directory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-selects { grid-template-columns: 1fr 1fr; }
  .compare-columns { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 980px) {
  .site-header { padding-left: max(32px, calc((100% - 1240px) / 2)); padding-right: max(32px, calc((100% - 1240px) / 2)); display: flex; justify-content: space-between; align-items: center; }
  .main-nav { margin: 0; }
  .main-nav a { padding: 22px 3px 20px; }
  .person-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


.frame-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; margin-top: 1rem; }
.pilot-frame { min-width: 0; margin: 0; padding: .45rem; border: 1px solid var(--line); border-radius: .75rem; background: var(--card); }
.pilot-frame a { display: block; }
.pilot-frame img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #101820; border-radius: .4rem; }
.pilot-frame figcaption { display: grid; gap: .2rem; padding: .45rem .15rem .1rem; font-size: .75rem; line-height: 1.35; }
.pilot-frame figcaption span { color: var(--muted, #56616f); }
.seat-review-candidate-list { display: grid; gap: .45rem; margin-top: .7rem; }
.seat-review-candidate { display: flex; align-items: flex-start; gap: .65rem; padding: .55rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--card); }
.seat-review-profile-image { width: 42px; height: 52px; flex: 0 0 42px; border-radius: .35rem; object-fit: cover; background: #e8edf0; }
.seat-review-candidate p { margin: .2rem 0 0; color: var(--muted, #56616f); font-size: .78rem; line-height: 1.4; }
.video-map-deputy-candidates { display: grid; gap: .4rem; margin: .65rem 0; }
.video-map-deputy-candidates > strong { color: var(--navy); font-size: .78rem; }
.video-map-deputy-candidate { display: flex; align-items: center; gap: .55rem; width: fit-content; max-width: 100%; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: .65rem; background: var(--card); color: var(--navy); text-decoration: none; }
.video-map-deputy-candidate > span:last-child { display: grid; gap: .12rem; }
.video-map-deputy-candidate small { color: var(--muted, #56616f); font-size: .7rem; }
.video-seat-candidate-browser { display: grid; gap: .65rem; margin: 1rem 0; padding: .9rem; border: 1px solid var(--line); border-radius: .8rem; background: color-mix(in srgb, var(--blue) 5%, var(--card)); }
.video-seat-candidate-browser .section-heading { margin: 0; }
.video-seat-candidate-browser h4 { margin: 0; }
.video-seat-candidate-browser > .source-note,
.video-seat-candidate-browser > .result-count { margin: 0; }
.video-seat-candidate-browser .speaker-byline > strong { display: grid; gap: .12rem; }
.video-seat-candidate-browser .speaker-byline .small { color: var(--muted, #56616f); font-size: .7rem; font-weight: 500; }
.video-seat-candidate-timeline { margin-top: .55rem; }
.video-seat-candidate-timeline > summary { width: fit-content; color: var(--navy); cursor: pointer; font-size: .8rem; font-weight: 700; }
.video-seat-candidate-points { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .35rem; margin-top: .55rem; }
.video-seat-candidate-point { display: grid; gap: .1rem; min-width: 0; padding: .45rem .55rem; border: 1px solid var(--line); border-radius: .55rem; background: var(--card); color: var(--navy); text-decoration: none; }
.video-seat-candidate-point strong { font-size: .8rem; }
.video-seat-candidate-point span { overflow: hidden; color: var(--muted, #56616f); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.video-seat-candidate-point:hover { border-color: var(--green); }
.camera-cut-scan { display: grid; gap: .45rem; margin-top: .85rem; padding: .8rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--card); }
.camera-cut-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.camera-cut-scan > p { margin: 0; color: var(--muted, #56616f); font-size: .84rem; line-height: 1.45; }
.camera-cut-timeline { position: relative; height: 1.35rem; margin: .35rem .15rem 0; }
.camera-cut-track { position: absolute; top: .55rem; left: 0; right: 0; height: .22rem; border-radius: 99px; background: color-mix(in srgb, var(--accent, #285d75) 22%, var(--line)); }
.camera-cut-mark { position: absolute; top: .27rem; width: .15rem; height: .8rem; border-radius: 99px; background: var(--accent, #285d75); transform: translateX(-50%); }
.camera-cut-axis { display: flex; justify-content: space-between; color: var(--muted, #56616f); font-size: .72rem; }
.camera-cut-scan .source-note { margin: 0; }
.alternative-source-comparisons { display: grid; gap: .7rem; margin-top: .75rem; }
.alternative-source-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 540px) { .frame-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; } .pilot-frame { padding: .25rem; } .pilot-frame figcaption { font-size: .68rem; } }
