:root {
  --ink: #182b30;
  --muted: #506267;
  --line: #d7e1df;
  --bg: #f6f8f7;
  --paper: #fff;
  --blue: #215b86;
  --green: #127158;
  --red: #b1434e;
  --amber: #9a6a18;
  --quiet: #85949a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid #f2b94c; outline-offset: 3px;
}
a, .rowbtn { color: var(--blue); }
a:hover, .rowbtn:hover { color: #123d61; }
.off { display: none !important; }

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px max(24px, calc((100vw - 1240px)/2)); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand-mark { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 3px; font: 700 22px/1 Georgia, serif; }
.brand h1 { margin: 0; font-size: 17px; line-height: 1.2; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.header-date { font-size: 12px; color: var(--muted); white-space: nowrap; }
main { max-width: 1240px; margin: auto; padding: 0 24px 48px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 23px 0 16px; }
.eyebrow { margin: 0 0 4px; color: var(--green); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.intro h2 { margin: 0; font: 600 29px/1.15 Georgia, serif; }
.lead { margin: 7px 0 0; font-size: 14px; color: var(--muted); max-width: 740px; }
.purpose-link { margin: 8px 0 0; font-size: 13px; font-weight: 650; }
.intro-actions { display: flex; gap: 10px; flex: none; }
.intro-actions button { padding: 8px 0; border: 0; background: none; color: var(--blue); font-size: 13px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.topics { display: flex; align-items: center; gap: 7px; overflow-x: auto; padding: 0 0 14px; }
.topics > span { margin-right: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.topics button { flex: none; min-height: 39px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); font-size: 13px; }
.topics button:hover { border-color: var(--green); }
.topics button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: white; }

.spotlight { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 22px 0 25px; margin-bottom: 9px; }
.spotlight[hidden] { display: none; }
.spotlight-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(370px, .85fr); gap: 32px; align-items: start; }
.spotlight-kicker { margin: 0 0 9px; color: var(--green); font-size: 12px; font-weight: 750; text-transform: uppercase; }
.spotlight h2 { margin: 0 0 13px; max-width: 690px; font: 600 30px/1.22 Georgia, serif; overflow-wrap: anywhere; }
.spotlight .feature-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 13px; }
.spotlight .feature-result { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 14px 0 8px; }
.feature-result strong { font-size: 20px; line-height: 1.25; }
.spotlight .feature-stage { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.spotlight-groups { display: flex; flex-wrap: wrap; gap: 6px 15px; margin: 0 0 15px; }
.spotlight-groups span { font-size: 12px; color: var(--muted); }
.spotlight-groups b { color: var(--ink); }
.spotlight-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.primary { background: var(--blue); color: white; border: 1px solid var(--blue); border-radius: 4px; padding: 9px 14px; min-height: 42px; font-weight: 650; }
.primary:hover { background: #15466d; border-color: #15466d; }
.text-button { border: 0; background: none; color: var(--blue); padding: 8px 0; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.spotlight-viz { min-width: 0; }
.viz-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.viz-header strong { font-size: 13px; }
.viz-header span { font-size: 12px; color: var(--muted); }
.vote-dots { display: grid; grid-template-columns: repeat(35, 8px); grid-auto-rows: 8px; gap: 3px; width: max-content; max-width: 100%; }
.vote-dot { display: block; width: 8px; height: 8px; border-radius: 2px; }
.dot-yes { background: var(--green); }.dot-no { background: var(--red); }.dot-ab { background: #c29231; }.dot-nv { background: var(--quiet); }
.feature-votes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.feature-votes div { border-top: 3px solid var(--quiet); padding-top: 5px; min-width: 0; }
.feature-votes .is-yes { border-color: var(--green); }.feature-votes .is-no { border-color: var(--red); }.feature-votes .is-ab { border-color: #c29231; }
.feature-votes strong { display: block; font-size: 25px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.feature-votes span { font-size: 12px; color: var(--muted); }
.viz-note { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.feature-nav { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 13px; }
.feature-nav button { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); font-size: 23px; line-height: 1; }
.feature-nav span { padding: 0 5px; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.spotlight-empty { padding: 24px 0; color: var(--muted); }
.notice { margin-bottom: 10px; font-size: 12px; color: var(--muted); }
.notice details { margin: 0; }
.notice summary { cursor: pointer; width: fit-content; }
.notice p { max-width: 850px; margin: 7px 0 0; }

nav { display: flex; align-items: stretch; gap: 20px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 0 0 14px; }
nav button { flex: none; border: 0; border-bottom: 3px solid transparent; background: none; color: var(--muted); padding: 12px 2px 9px; min-height: 44px; white-space: nowrap; font-size: 14px; font-weight: 650; }
nav button:hover { color: var(--ink); }
nav button[aria-selected=true] { border-bottom-color: var(--green); color: var(--ink); }
.filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; align-items: end; padding: 0 0 14px; border-bottom: 1px solid var(--line); }
.filters label, .compare label, #dbody label { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 12px; font-weight: 700; }
.filters input, .filters select, .compare select, #dbody input { display: block; width: 100%; min-width: 0; height: 42px; border: 1px solid #bac9c9; border-radius: 4px; background: white; color: var(--ink); padding: 8px 11px; font-size: 14px; font-weight: 400; }
.search-field input { font-size: 15px; }
.advanced-filters { grid-column: 1/3; margin: 0; align-self: center; }
.advanced-filters summary { cursor: pointer; width: fit-content; color: var(--blue); font-size: 13px; font-weight: 650; }
.advanced-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; padding: 14px 0 4px; }
.filter-actions { display: flex; justify-content: flex-end; gap: 8px; }
.filter-actions button, .pages button, .compare select, .relation-switch button { min-height: 40px; }
.filter-actions button, .pages button { border: 1px solid var(--line); border-radius: 4px; padding: 8px 11px; background: white; color: var(--ink); font-size: 13px; }
.filter-actions button:hover, .pages button:hover:not(:disabled) { border-color: var(--blue); }
.stats { margin: 15px 0 12px; }
.overview-layout { display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: 22px; align-items: center; }
.overview-copy strong { display: block; font-size: 25px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.overview-copy span { display: block; font-size: 12px; color: var(--muted); }
.overview-chart { min-width: 0; }
.overview-title { font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.distribution, .vote-bar { display: flex; width: 100%; height: 15px; overflow: hidden; border-radius: 2px; background: #e5ebea; }
.segment { display: block; height: 100%; flex: none; }
.segment-yes { background: var(--green); }.segment-no { background: var(--red); }.segment-ab { background: #c29231; }
.segment-nv { background: var(--quiet); }.segment-mixed { background: #80659d; }.segment-unknown { background: #bcc7c9; }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 1px; flex: none; }
.distribution-legend, .vote-numbers { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; color: var(--muted); font-size: 12px; }
.distribution-legend span, .vote-numbers span { display: inline-flex; align-items: center; gap: 5px; }
.distribution-legend b, .vote-numbers b { color: var(--ink); font-variant-numeric: tabular-nums; }
#status { padding: 30px 0; color: var(--muted); }
#share-status { min-height: 0; color: var(--blue); font-size: 13px; }
#content { scroll-margin-top: 20px; }
.result-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0 7px; }
.result-heading h2 { margin: 0; font-size: 19px; }
.result-heading p { max-width: 670px; margin: 0; color: var(--muted); font-size: 12px; }
.layout-switch { display: inline-flex; flex: none; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.layout-switch button { min-height: 38px; border: 0; border-right: 1px solid var(--line); background: white; color: var(--ink); padding: 7px 12px; font-size: 13px; }
.layout-switch button:last-child { border-right: 0; }
.layout-switch button[aria-pressed=true] { background: var(--ink); color: white; }
.feed { border-top: 1px solid var(--line); }
.vote-row { display: grid; grid-template-columns: 115px minmax(0, 1fr) minmax(200px, 265px) 38px; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); padding: 16px 0; }
.row-meta { align-self: start; color: var(--muted); font-size: 12px; }
.row-meta time { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.row-main { min-width: 0; }
.row-main h3 { font-size: 16px; line-height: 1.35; margin: 0 0 6px; }
.rowbtn { border: 0; padding: 0; background: none; text-align: left; font-weight: inherit; line-height: inherit; }
.row-main p { margin: 0; color: var(--muted); font-size: 12px; }
.explained-link { display: inline-block; margin-top: 5px; font-size: 12px; font-weight: 650; }
.row-result { min-width: 0; }
.row-result .vote-bar { margin-top: 8px; height: 10px; }
.row-result .vote-numbers { font-size: 11px; gap: 2px 8px; }
.row-open { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 3px; background: white; color: var(--blue); font-size: 22px; line-height: 1; }
.row-open:hover { border-color: var(--blue); }
.vote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vote-card { display: flex; flex-direction: column; min-width: 0; min-height: 275px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.vote-card-meta { display: flex; flex-wrap: wrap; gap: 3px 10px; color: var(--muted); font-size: 12px; }
.vote-card h3 { margin: 12px 0 6px; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.vote-card-stage { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.vote-card-result { margin-top: auto; }
.vote-card-result .vote-bar { height: 12px; margin-top: 9px; }
.vote-card-result .vote-numbers { gap: 2px 9px; }
.vote-card-summary { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.vote-card-ai { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.vote-card-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px 15px; margin-top: 12px; font-size: 13px; font-weight: 700; }
.vote-card-open { border: 0; background: none; color: var(--blue); padding: 0; font-size: inherit; font-weight: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tag { display: inline-block; padding: 3px 7px; border-radius: 3px; font-size: 12px; font-weight: 700; }
.tag.yes { color: #075841; background: #dff2e9; }.tag.no { color: #972c3d; background: #f9e7e9; }
.tag.ab { color: #7c5310; background: #fff1d0; }.tag.nv, .tag.unknown { color: #4b6268; background: #e7eeef; }
.tag.mixed { color: #63447d; background: #efe8f3; }
.pages { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0; font-size: 13px; color: var(--muted); }
.empty { padding: 30px 0; border-top: 1px solid var(--line); }
.empty h2 { font-size: 18px; margin: 0 0 5px; }
.empty p { color: var(--muted); margin: 0 0 12px; }
.empty button { background: white; border: 1px solid var(--line); border-radius: 4px; padding: 9px 12px; }

.compare { display: flex; align-items: end; flex-wrap: wrap; gap: 13px; margin: 6px 0 19px; }
.compare label { flex: 1 1 220px; max-width: 360px; }
.agreement { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 17px 0; margin-bottom: 14px; }
.agreement-lead { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 9px; }
.agreement-lead strong { font-size: 25px; line-height: 1.1; }
.agreement-lead span { font-size: 14px; }
.agreement .distribution { height: 25px; }
.agreement-explain { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.comparison-overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.comparison-panel { min-width: 0; border-bottom: 1px solid var(--line); padding: 7px 0 17px; }
.comparison-panel h3, .group-chart h3 { margin: 0 0 7px; font-size: 14px; }
.chart-note { font-size: 12px; color: var(--muted); margin: 10px 0 17px; }
.relation-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 12px; }
.relation-switch button { border: 0; border-right: 1px solid var(--line); background: white; color: var(--ink); padding: 7px 11px; font-size: 13px; }
.relation-switch button:last-child { border-right: 0; }
.relation-switch button[aria-pressed=true] { background: var(--ink); color: white; }
.comparison-list { border-top: 1px solid var(--line); }
.comparison-row { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(150px, 1fr)); gap: 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.comparison-row h3 { margin: 4px 0; font-size: 15px; line-height: 1.35; }
.comparison-row .row-meta { display: block; }
.comparison-vote { min-width: 0; }
.comparison-vote strong { display: block; font-size: 12px; margin-bottom: 5px; }
.comparison-vote .vote-bar { height: 10px; margin-top: 7px; }
.comparison-vote .vote-numbers { gap: 2px 7px; font-size: 11px; }
.group-chart-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.group-chart { min-width: 0; border-bottom: 1px solid var(--line); padding: 13px 0; }
.group-chart .distribution { height: 18px; }

.card { background: white; border: 1px solid var(--line); border-radius: 6px; padding: 17px; min-width: 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card h3 { margin: 0; font-size: 17px; }
.card p { margin: 8px 0; }
.card details { margin: 12px 0 0; }
.card .meta, .meta { font-size: 12px; color: var(--muted); }
.card .source { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.method { max-width: 960px; }
.method h2 { font-size: 21px; }
.method h3 { font-size: 17px; margin-top: 25px; }
.method li { margin: 7px 0; }
.trust-intro { max-width: 900px; margin-bottom: 20px; }
.trust-intro h2 { font-size: 20px; }
.scroll { max-width: 100%; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #eaf0ef; }
.coverage-list { columns: 3; }

dialog { width: min(950px, 94vw); max-height: 90vh; border: 1px solid var(--line); border-radius: 6px; background: white; color: var(--ink); padding: 0; }
dialog::backdrop { background: #112a2dd1; }
.dialoghead { display: flex; justify-content: space-between; align-items: start; gap: 18px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.dialoghead h2 { margin: 0; min-width: 0; font: 600 24px/1.25 Georgia, serif; overflow-wrap: anywhere; }
.dialoghead button { flex: none; min-height: 40px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); padding: 7px 11px; }
#dbody { padding: 0 22px 25px; }
.detail-tabs { position: sticky; top: 0; display: flex; gap: 18px; background: white; border-bottom: 1px solid var(--line); z-index: 1; }
.detail-tabs button { border: 0; border-bottom: 3px solid transparent; background: none; padding: 13px 2px 10px; color: var(--muted); font-weight: 650; }
.detail-tabs button[aria-pressed=true] { border-bottom-color: var(--green); color: var(--ink); }
#detail-content h3 { font-size: 16px; margin: 21px 0 8px; }
.ai-summary { padding: 4px 0 15px; border-bottom: 1px solid var(--line); }
.ai-summary h3 { margin-top: 4px !important; }
.ai-summary > p:not(.hint):not(.ai-label):not(.ai-scope) { font-size: 17px; line-height: 1.55; }
.ai-label { display: inline-block; padding: 3px 7px; background: #eaf0ef; color: #275552; font-size: 12px; font-weight: 700; }
.ai-scope { padding-left: 10px; border-left: 3px solid #b77d2d; color: var(--muted); }
.ai-sources { display: flex; flex-wrap: wrap; gap: 5px 13px; align-items: baseline; margin-top: 12px; font-size: 14px; }
.ai-sources strong { width: 100%; }
#detail-content p { margin: 8px 0; }
#detail-content .vote-bar { height: 22px; margin: 8px 0; }
#detail-content .group-vote-row .vote-bar { height: 13px; }
#detail-content details { margin: 18px 0; }
#detail-content summary { cursor: pointer; font-weight: 650; }
.detail-share { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.detail-share button, #report-error { min-height: 40px; border: 1px solid var(--line); border-radius: 4px; background: white; padding: 8px 12px; color: var(--ink); }
.source-list { display: grid; gap: 8px; }
.source-list a { padding: 10px 0; border-bottom: 1px solid var(--line); }
.vote-groups .group-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 0; font-size: 13px; }
.group-line > span:last-child { text-align: right; }
.group-line small { display: block; color: var(--muted); font-size: 12px; }
.people-list { margin-top: 8px; }
.person { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.person > div { display: flex; flex-direction: column; min-width: 0; }
.person strong { font-size: 14px; }
.person span { font-size: 12px; color: var(--muted); }
.vote-detail-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; border-bottom: 1px solid var(--line); padding: 17px 0 13px; }
.vote-detail-head h3 { margin: 4px 0 !important; font: 600 22px/1.2 Georgia, serif !important; }
.vote-detail-head p { margin: 0 !important; color: var(--muted); font-size: 13px; }
.vote-detail-status { display: flex; align-items: end; flex-direction: column; flex: none; }
.vote-detail-status strong { font-size: 25px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.vote-detail-status span:last-child { color: var(--muted); font-size: 11px; }
.detail-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 23px; border-bottom: 1px solid var(--ink); }
.detail-section-heading h3 { margin: 0 0 8px !important; }
.detail-section-heading span { color: var(--muted); font-size: 12px; }
.group-vote-row { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 15px; border-bottom: 1px solid var(--line); padding: 11px 0; }
.group-vote-name { min-width: 0; }
.group-vote-name strong { display: block; font-size: 13px; margin-bottom: 5px; }
.group-vote-name small { display:block; margin-top:4px; color:var(--muted); font-size:11px; }
.group-vote-row .vote-graphic { min-width: 0; }
.group-vote-row .vote-numbers { gap: 2px 9px; }
.people-controls { display: grid; grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr); gap: 12px; margin: 12px 0; }
.people-controls select { display: block; width: 100%; height: 42px; border: 1px solid #bac9c9; border-radius: 4px; background: white; padding: 8px; font-size: 14px; font-weight: 400; }
.people-count { color: var(--muted); font-size: 12px; }
.more-people { margin-top: 12px; border: 1px solid var(--line); border-radius: 4px; background: white; padding: 8px 12px; }
.hint { color: var(--muted); font-size: 13px; }
footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; border-top: 1px solid var(--line); margin-top: 28px; padding: 18px 0 0; color: var(--muted); font-size: 12px; }
footer a { font-weight: 650; overflow-wrap: anywhere; }

@media (max-width: 950px) {
  .spotlight-inner { grid-template-columns: minmax(0, 1fr) 370px; gap: 19px; }
  .intro-actions { display: none; }
  .vote-row { grid-template-columns: 85px minmax(0, 1fr) minmax(170px, 205px) 36px; gap: 10px; }
  .vote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .site-header { padding: 11px 16px; }
  main { padding: 0 16px 35px; }
  .intro { padding: 16px 0 12px; }
  .intro h2 { font-size: 25px; }
  .lead { font-size: 13px; }
  .topics { padding-bottom: 10px; }
  .topics > span { display: none; }
  .spotlight { padding: 12px 0; }
  .spotlight-inner { grid-template-columns: 1fr; gap: 10px; }
  .spotlight h2 { font-size: 22px; line-height: 1.16; margin-bottom: 8px; }
  .spotlight .feature-result { margin: 8px 0 4px; }
  .spotlight .feature-stage, .spotlight-groups { margin-bottom: 8px; }
  .feature-votes { margin-top: 8px; }
  .viz-note { margin-top: 5px; }
  .feature-nav { margin-top: 7px; }
  .spotlight-viz { display: grid; justify-content: center; }
  .vote-dots { grid-template-columns: repeat(35, 8px); }
  .feature-votes { width: 100%; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-field, .advanced-filters, .filter-actions { grid-column: 1/-1; }
  .filter-actions { justify-content: flex-start; }
  .result-heading { display: block; }
  .result-heading p { margin-top: 4px; }
  .layout-switch { margin-top: 10px; }
  .vote-row { grid-template-columns: 70px minmax(0, 1fr) 36px; }
  .row-result { grid-column: 2/3; }
  .row-open { grid-column: 3; grid-row: 1/3; }
  .comparison-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .comparison-row > div:first-child { grid-column: 1/-1; }
  .cards, .group-chart-list { grid-template-columns: 1fr; }
  .vote-grid { grid-template-columns: 1fr; }
  .group-vote-row { grid-template-columns: 1fr; gap: 4px; }
  .people-controls { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .brand-mark { width: 32px; height: 32px; font-size: 19px; }
  .brand h1 { font-size: 15px; }
  .brand p { font-size: 11px; }
  .header-date { display: none; }
  .intro h2 { font-size: 22px; }
  .lead { max-width: 340px; }
  .topics button { min-height: 42px; font-size: 14px; }
  .spotlight h2 { font-size: 22px; }
  .spotlight-groups { gap: 4px 12px; }
  .vote-dots { grid-template-columns: repeat(35, 7px); grid-auto-rows: 7px; gap: 2px; }
  .vote-dot { width: 7px; height: 7px; }
  .spotlight-viz { justify-content: start; }
  .feature-votes { gap: 6px; }
  .feature-votes strong { font-size: 20px; }
  .feature-votes span { font-size: 11px; }
  nav { gap: 16px; margin-bottom: 11px; }
  nav button { font-size: 13px; }
  .filters { gap: 9px; }
  .filters input, .filters select { font-size: 16px; }
  .advanced-grid { grid-template-columns: 1fr; }
  .filter-actions button { flex: 1; }
  .overview-layout { grid-template-columns: 1fr; gap: 7px; }
  .overview-copy strong { display: inline; font-size: 21px; }
  .overview-copy span { display: inline; margin-left: 5px; }
  .vote-row { grid-template-columns: 1fr 38px; gap: 8px; padding: 14px 0; }
  .row-meta, .row-main, .row-result { grid-column: 1/2; }
  .row-open { grid-column: 2; grid-row: 2/4; }
  .row-meta time { display: inline; margin-right: 5px; }
  .row-main h3 { font-size: 16px; }
  .row-result .vote-numbers { font-size: 11px; }
  .comparison-overview { grid-template-columns: 1fr; gap: 2px; }
  .comparison-row { grid-template-columns: 1fr; }
  .comparison-row > div:first-child { grid-column: auto; }
  .relation-switch { display: flex; width: 100%; }
  .relation-switch button { flex: 1; min-width: 0; padding: 7px 3px; }
  dialog { width: 100%; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border: 0; border-radius: 0; margin: 0; overflow: hidden; }
  dialog[open] { display: flex; flex-direction: column; }
  .dialoghead { flex: none; padding: 14px 16px; }
  .dialoghead h2 { font-size: 18px; max-height: 2.5em; overflow: hidden; }
  #dbody { flex: 1; min-height: 0; overflow-y: auto; padding: 0 16px 22px; }
  .detail-tabs { top: 0; gap: 15px; }
  .vote-groups .group-line { grid-template-columns: 1fr; gap: 3px; }
  .group-line > span:last-child { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
