:root {
  --ink: #222;
  --muted: #646464;
  --line: #ddd;
  --red: #a12a21;
  --green: #24633b;
}
* {
  box-sizing: border-box;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  margin: 0;
}
a {
  color: #235b9a;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
header,
main,
footer {
  max-width: 1220px;
  margin: auto;
}
header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header span,
footer {
  font-size: 12px;
  color: var(--muted);
}
.brand {
  font-size: 21px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
}
main {
  padding: 0 28px;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.6px;
  margin: 0 0 12px;
}
h2 {
  font-size: 19px;
  margin: 0;
}
h3 {
  font-size: 15px;
  margin: 0 0 8px;
}
.intro-section {
  padding: 36px 0 24px;
}
.intro-section p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 10px 0 18px;
}
.source-state {
  font-size: 11px;
  color: var(--muted);
}
.import-panel {
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 18px;
  background: #f6f6f6;
  border: 1px solid var(--line);
}
.field {
  width: 320px;
  max-width: 100%;
}
label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
select,
input {
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 3px;
  background: white;
  color: var(--ink);
  width: 100%;
}
.primary {
  background: #222;
  color: white;
  border: 1px solid #222;
  border-radius: 3px;
  padding: 11px 18px;
  white-space: nowrap;
}
.primary span {
  display: none;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.import-panel p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 250px;
  margin: 0 0 3px 12px;
}
.filters {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 10px;
  margin-top: 22px;
}
.search {
  position: relative;
}
.search span {
  display: none;
}
.results-summary {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 16px 0;
}
.progress-panel {
  background: #f3f6ef;
  padding: 16px;
  font-size: 12px;
  line-height: 1.6;
}
progress {
  width: 100%;
  height: 7px;
  margin-top: 10px;
  display: block;
  accent-color: var(--green);
}
.error {
  padding: 14px;
  background: #fff2dd;
  font-size: 12px;
  line-height: 1.7;
  margin: 10px 0;
}
.stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding: 18px 0;
}
.stats div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.stats b {
  font-size: 24px;
}
.stats span {
  font-size: 12px;
  color: var(--muted);
}
#stat-discrepancy {
  color: var(--red);
}
.table-heading,
.card {
  display: grid;
  grid-template-columns: 160px minmax(260px, 1.4fr) minmax(210px, 1fr) 110px;
  gap: 22px;
}
.table-heading {
  font-size: 11px;
  font-weight: bold;
  padding: 12px;
  background: #f5f5f5;
  border-block: 1px solid var(--line);
}
.card {
  padding: 22px 12px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.person p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 5px 0;
}
blockquote {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.expected {
  font-size: 12px;
}
.fine {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
}
.quote-cell .fine {
  margin: 8px 0;
}
.actual {
  font-size: 17px;
}
.actual.discrepancy {
  color: var(--red);
}
.actual.consistency {
  color: var(--green);
}
.vote-cell > p {
  font-size: 12px;
  line-height: 1.7;
  margin: 9px 0;
}
.tag {
  display: inline-block;
  background: #f2f2f2;
  padding: 5px 7px;
  font-size: 10px;
  border-radius: 3px;
}
.tag.discrepancy {
  background: #fcece8;
  color: var(--red);
}
.tag.consistency {
  background: #eaf4e9;
  color: var(--green);
}
.detail-button {
  border: 0;
  background: none;
  padding: 0;
  color: #235b9a;
  font-size: 12px;
  text-decoration: underline;
  line-height: 1.8;
  text-align: left;
}
.source-link {
  display: block;
  font-size: 11px;
  margin: 12px 0;
  line-height: 1.5;
}
.empty {
  background: #fafafa;
  border: 1px solid var(--line);
  padding: 34px;
  text-align: center;
  color: var(--muted);
}
.empty h3 {
  font-size: 16px;
  color: var(--ink);
}
.empty p {
  line-height: 1.8;
  font-size: 12px;
  max-width: 550px;
  margin: 10px auto 0;
}
.method {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding: 22px 0;
  font-size: 12px;
  line-height: 1.8;
}
.method summary {
  cursor: pointer;
  font-weight: bold;
}
.method p {
  max-width: 900px;
  color: var(--muted);
}
footer {
  border-top: 1px solid var(--line);
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
dialog {
  border: 1px solid #bbb;
  border-radius: 4px;
  max-width: 850px;
  width: calc(100% - 30px);
  max-height: 88vh;
  padding: 30px;
  color: var(--ink);
}
dialog::backdrop {
  background: #0009;
}
.close {
  position: absolute;
  right: 13px;
  top: 8px;
  background: none;
  border: 0;
  font-size: 28px;
}
.eyebrow {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 16px;
}
.detail-quote {
  background: #f5f5f5;
  padding: 16px;
  margin: 18px 0;
  border-left: 3px solid #888;
}
.candidate {
  padding: 16px;
  border: 1px solid var(--line);
  margin: 16px 0;
}
.candidate h4 {
  font-size: 14px;
  line-height: 1.6;
}
.vote-row {
  display: flex;
  gap: 60px;
  margin: 16px 0;
  font-size: 12px;
}
.vote-row b {
  display: block;
  margin-top: 7px;
  font-size: 16px;
}
.metadata {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.manual {
  background: #f5f5f5;
  padding: 16px;
  margin: 20px 0;
}
.manual-result {
  margin-top: 12px;
}
.full-speech {
  font-size: 13px;
  line-height: 1.9;
}
.full-speech .highlight {
  padding: 12px;
  background: #fff2ca;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid #326bab;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 950px) {
  .table-heading,
  .card {
    grid-template-columns: 130px minmax(200px, 1.3fr) minmax(170px, 1fr);
    gap: 16px;
  }
  .table-heading span:last-child {
    display: none;
  }
  .evidence-cell {
    grid-column: 2/-1;
    display: flex;
    gap: 20px;
    align-items: center;
  }
  .evidence-cell .source-link {
    margin: 0;
  }
  .import-panel {
    flex-wrap: wrap;
  }
  .import-panel p {
    max-width: none;
    margin: 0;
  }
  .filters {
    grid-template-columns: 1fr 1fr;
  }
  .search {
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  header {
    padding: 20px;
  }
  main {
    padding: 0 20px;
  }
  header span {
    font-size: 10px;
  }
  h1 {
    font-size: 25px;
  }
  .intro-section {
    padding: 28px 0;
  }
  .section-heading {
    align-items: start;
    gap: 12px;
  }
  .source-state {
    max-width: 115px;
    font-size: 10px;
  }
  .field {
    width: 100%;
  }
  .primary {
    width: 100%;
  }
  .stats {
    gap: 15px;
    justify-content: space-between;
  }
  .stats div {
    display: block;
  }
  .stats b {
    display: block;
  }
  .stats span {
    font-size: 10px;
  }
  .table-heading {
    display: none !important;
  }
  .card {
    display: block;
    padding: 20px 0;
  }
  .person {
    margin-bottom: 16px;
  }
  .person p {
    display: inline;
    margin-right: 10px;
  }
  .quote-cell {
    margin: 16px 0;
  }
  .vote-cell {
    background: #f7f7f7;
    padding: 14px;
  }
  .evidence-cell {
    display: flex;
    margin: 16px 0 0;
    gap: 18px;
  }
  .results-summary {
    display: block;
    line-height: 1.8;
  }
  .results-summary span {
    display: block;
  }
  footer {
    font-size: 10px;
    padding: 20px;
  }
  .filters {
    grid-template-columns: 1fr;
  }
  .search {
    grid-column: auto;
  }
  dialog {
    padding: 25px 18px;
  }
}

@media (min-width: 951px) {
  .filters {
    grid-template-columns: minmax(250px, 1fr) 220px 190px;
  }
}
.legal {
  max-width: 900px;
  padding-top: 32px;
  padding-bottom: 32px;
  line-height: 1.8;
}
.legal h2 {
  margin-top: 26px;
}
.legal p,
.legal li {
  overflow-wrap: anywhere;
}
footer nav {
  line-height: 1.8;
}
#load-more {
  margin: 20px 0;
}

/* Editorial layout: ink, paper, one signal color. Charts use the audited read model. */
:root {
  --ink: #182d31;
  --muted: #657374;
  --line: #dce1dc;
  --red: #b4472d;
  --green: #285951;
}
body {
  background: #f7f8f3;
  font-size: 15px;
}
a {
  color: #285951;
}
header {
  padding-block: 26px;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 25px;
  letter-spacing: -1px;
}
.brand svg {
  width: 34px;
  height: 28px;
  margin-right: 10px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
}
.brand-dot {
  color: var(--red);
  font-size: inherit;
}
header > span {
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 4px;
}
.intro-section {
  padding: 44px 0 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 0 55px;
}
.intro-section .eyebrow {
  grid-column: 1/-1;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
}
h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -2.5px;
  margin: 0;
}
h1 span {
  color: var(--red);
}
.intro-section p {
  font-size: 15px;
  max-width: 470px;
  padding-bottom: 3px;
}
.overview {
  margin-bottom: 38px;
}
.overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  padding: 23px 0;
  margin-bottom: 24px;
}
.overview-metrics > div {
  padding: 0 23px;
  border-right: 1px solid var(--line);
}
.overview-metrics > div:first-child {
  padding-left: 0;
}
.overview-metrics > div:last-child {
  border: 0;
}
.overview-metrics span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
}
.overview-metrics .metric-label {
  font-size: 12px;
  color: var(--ink);
}
.overview-metrics b {
  display: block;
  font-size: 34px;
  letter-spacing: -1px;
  margin: 10px 0 4px;
  font-variant-numeric: tabular-nums;
}
.metric-accent b {
  color: var(--red);
}
.chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 20px;
}
.chart-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px;
}
.chart-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.chart-panel .eyebrow {
  letter-spacing: 1.1px;
  font-weight: 700;
  margin-bottom: 10px;
}
.chart-panel h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.chart-mark {
  color: var(--red);
  font-size: 28px;
}
.chart-description {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 10px 0 17px;
}
.chart-controls {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  background: #f1f3ee;
  border-radius: 4px;
  margin-bottom: 20px;
}
.chart-controls button {
  background: none;
  border: 0;
  border-radius: 3px;
  padding: 8px 11px;
  font-size: 11px;
  color: var(--muted);
}
.chart-controls button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}
.chart-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 104px;
  width: 100%;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid #f0f2ee;
  background: none;
  text-align: left;
  padding: 11px 0;
  color: var(--ink);
}
.chart-row:hover {
  background: #f7f8f3;
}
.chart-club {
  font-weight: 700;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.chart-rank {
  color: #87918c;
  font-weight: 400;
  display: inline-block;
  width: 22px;
  font-size: 10px;
}
.chart-track {
  background: #f1f3ef;
  height: 10px;
  border-radius: 2px;
  overflow: hidden;
}
.chart-fill {
  display: block;
  height: 100%;
  background: var(--red);
  border-radius: 2px;
}
.chart-value {
  text-align: right;
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.chart-value small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 3px;
}
.chart-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 17px 0 0;
}
.coverage-panel {
  background: #eef2eb;
  display: flex;
  flex-direction: column;
}
.coverage-number {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 22px;
}
.coverage-number b {
  font-size: 50px;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}
.coverage-number span {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.coverage-bar {
  height: 14px;
  border-radius: 3px;
  background: #d2dad0;
  overflow: hidden;
}
.coverage-bar span {
  display: block;
  height: 100%;
  background: var(--green);
}
.coverage-legend {
  margin: 12px 0;
}
.coverage-legend p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 12px 0;
}
.coverage-legend b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.coverage-legend i {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 2px;
}
.coverage-legend p:last-child i {
  background: #d2dad0;
}
.method-link {
  margin-top: auto;
  padding-top: 28px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.method-link span {
  margin-left: 8px;
}
.overview-caption {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 14px 0 0;
}
.workspace {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
}
.section-heading {
  margin: 0 0 20px;
}
.section-heading h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
}
.import-panel {
  border: 0;
  border-radius: 4px;
  background: #f4f6f1;
}
.filters {
  margin-top: 18px;
}
select,
input {
  border-color: #d2d9d1;
  padding: 12px;
  border-radius: 4px;
}
.primary {
  background: var(--ink);
  border-color: var(--ink);
}
.stats {
  display: none !important;
}
.table-heading {
  background: #f4f6f1;
  border: 0;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.table-heading,
.card {
  grid-template-columns: 140px minmax(210px, 1.4fr) minmax(180px, 1fr) 95px;
  gap: 18px;
}
.card {
  padding-block: 26px;
}
.card:last-child {
  border-bottom: 0;
}
.person h3 {
  font-size: 14px;
  line-height: 1.5;
}
blockquote {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.65;
}
.detail-button {
  color: var(--green);
  font-weight: 700;
}
.actual {
  font-size: 16px;
}
.source-link {
  color: var(--muted);
  font-size: 10px;
}
.tag.discrepancy {
  background: #faeee7;
}
.method {
  font-size: 12px;
}
@media (max-width: 1050px) {
  .table-heading,
  .card {
    grid-template-columns: 120px minmax(170px, 1.4fr) minmax(170px, 1fr);
  }
  .table-heading span:last-child {
    display: none;
  }
  .evidence-cell {
    grid-column: 2/-1;
    display: flex;
    gap: 20px;
    align-items: center;
  }
  .evidence-cell .source-link {
    margin: 0;
  }
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .coverage-panel {
    display: block;
  }
}
@media (max-width: 600px) {
  main {
    padding: 0 16px;
  }
  header {
    padding: 20px 16px;
  }
  .brand {
    font-size: 21px;
  }
  .brand svg {
    width: 25px;
    margin-right: 7px;
  }
  header > span {
    font-size: 9px;
    padding: 6px;
  }
  .intro-section {
    display: block;
    padding: 30px 0 25px;
  }
  h1 {
    font-size: 44px;
  }
  .intro-section p {
    font-size: 13px;
    margin-top: 18px;
  }
  .overview-metrics {
    grid-template-columns: 1fr 1fr;
    gap: 22px 0;
  }
  .overview-metrics > div {
    padding: 0 14px;
  }
  .overview-metrics > div:nth-child(odd) {
    padding-left: 0;
  }
  .overview-metrics > div:nth-child(even) {
    border: 0;
  }
  .overview-metrics b {
    font-size: 29px;
  }
  .overview-metrics .metric-label {
    font-size: 11px;
  }
  .chart-panel {
    padding: 20px 16px;
  }
  .chart-panel h2 {
    font-size: 19px;
  }
  .chart-row {
    grid-template-columns: 80px minmax(0, 1fr) 96px;
    gap: 8px;
  }
  .chart-club {
    font-size: 11px;
  }
  .chart-rank {
    width: 16px;
  }
  .chart-controls {
    display: flex;
  }
  .chart-controls button {
    flex: 1;
    padding-inline: 6px;
    font-size: 10px;
  }
  .workspace {
    padding: 18px 14px;
  }
  .card {
    display: block;
    padding: 23px 0;
  }
  .source-state {
    max-width: 120px;
  }
  .coverage-number b {
    font-size: 44px;
  }
  footer {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
.chart-expand {
  background: none;
  border: 0;
  padding: 14px 0 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
}
/* Keep touch-device form focus at the user's page scale in either orientation. */
@media (max-width: 600px), (pointer: coarse) {
  input,
  select {
    font-size: 16px;
  }
}
