/* The two fixed colors identify candidates, never parties or political positions. */
#runoff-content { --candidate-a: #176b75; --candidate-b: #7054a0; }
.candidate-0 { --candidate-color: var(--candidate-a); }
.candidate-1 { --candidate-color: var(--candidate-b); }
.runoff-intro { padding: 38px 0 30px; }
.runoff-intro h1 { max-width: 930px; font-size: clamp(31px, 3.1vw, 46px); line-height: 1.17; }
.runoff-intro > div > p { max-width: 730px; font-size: 15px; line-height: 1.7; margin-top: 16px; }
.runoff-selector { display: flex; align-items: center; gap: 28px; padding: 20px 24px; margin-bottom: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.runoff-selector label, .runoff-detail-filters label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 550; color: var(--muted); min-width: 0; }
.runoff-selector label { min-width: 265px; }
.runoff-selector select, .runoff-detail-filters select { background: var(--soft); border: 1px solid var(--line); border-radius: 6px; padding: 10px 32px 10px 12px; font-size: 14px; max-width: 100%; min-height: 44px; }
.runoff-scope { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.runoff-scope strong { font-size: 14px; font-weight: 550; }
.runoff-scope span { color: var(--muted); }
.runoff-candidates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.runoff-candidate { min-width: 0; background: white; padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--candidate-color); border-radius: 8px; }
.runoff-identity { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 17px; align-items: center; }
.runoff-candidate .portrait { width: 60px; height: 70px; border-radius: 6px; margin: 0; }
.runoff-candidate h2 { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; margin: 4px 0 5px; }
.runoff-candidate h2 a { color: var(--ink); }
.runoff-party { font-size: 12px; color: var(--muted); }
.runoff-candidate .runoff-identity p { font-size: 11px; }
.runoff-candidate .profile-inline { font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.runoff-candidate-summary { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; }
.runoff-candidate-summary p { font-size: 13px; }
.runoff-candidate-summary p strong { font-size: 16px; color: var(--ink); font-weight: 600; }
.runoff-candidate-summary > span { display: block; margin: 13px 0 5px; color: var(--muted); font-size: 12px; }
.runoff-top-themes { list-style: none; padding: 0; margin: 5px 0 0; }
.runoff-top-themes li + li { border-top: 1px solid var(--line); }
.runoff-top-themes button { display: grid; grid-template-columns: 20px minmax(0, 1fr) 38px 14px; gap: 10px; align-items: center; width: 100%; min-height: 42px; padding: 8px 0; text-align: left; font-size: 13px; color: var(--candidate-color); }
.runoff-top-themes button strong { text-align: right; font-variant-numeric: tabular-nums; font-size: 14px; }
.runoff-top-themes button:hover { background: var(--soft); }
.runoff-theme-rank { color: var(--muted); font-size: 11px; }
.runoff-ranking-note { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 8px; }
.runoff-candidate .runoff-candidate-coverage { margin-top: 12px; font-size: 12px; line-height: 1.6; }
.runoff-candidate > .button { margin-top: 14px; }
.runoff-overview { margin: 34px 0 40px; }
.runoff-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; }
.runoff-section-heading h2 { font-size: 27px; }
.runoff-section-heading p { font-size: 13px; line-height: 1.7; margin-top: 7px; max-width: 720px; }
.runoff-scale { flex-shrink: 0; color: var(--muted); font-size: 11px; padding-bottom: 3px; }
.runoff-theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.runoff-theme-card { background: white; border: 1px solid var(--line); border-radius: 8px; min-width: 0; padding: 13px 16px 14px; }
.runoff-theme-card.is-selected { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.runoff-theme-card h3 { font-size: 15px; letter-spacing: -.015em; margin-bottom: 7px; }
.runoff-theme-card h3 button { display: flex; gap: 10px; width: 100%; align-items: center; text-align: left; padding: 4px 0 8px; min-height: 38px; }
.runoff-theme-card h3 svg { width: 22px; height: 22px; color: var(--teal); flex-shrink: 0; }
.runoff-theme-action { margin-left: auto; color: var(--muted); font-size: 16px; }
.runoff-theme-card h3 button:hover .runoff-theme-action { color: var(--ink); }
.runoff-bar { width: 100%; display: grid; grid-template-columns: minmax(78px, .9fr) minmax(40px, 1.2fr) 30px 12px; align-items: center; gap: 9px; text-align: left; padding: 9px 0; min-height: 44px; border-radius: 3px; }
.runoff-bar:hover { background: var(--soft); }
.runoff-bar-name { font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.runoff-bar-track { display: block; width: 100%; background: #eef2f6; border-radius: 2px; height: 9px; }
.runoff-bar-track > span { display: block; height: 100%; background: var(--candidate-color); border-radius: 2px; }
.runoff-bar strong { color: var(--candidate-color); font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; font-weight: 650; }
.runoff-bar-arrow { color: var(--muted); font-size: 13px; }
.runoff-bar[aria-current=true] .runoff-bar-name { text-decoration: underline; text-underline-offset: 3px; font-weight: 650; }
.runoff-count-note { font-size: 11px; line-height: 1.75; max-width: 900px; margin-top: 16px; }
.runoff-detail { background: white; padding: 28px 32px 24px; border: 1px solid var(--line); border-radius: 12px; }
.runoff-detail-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.runoff-back { color: var(--teal); padding: 0 0 16px; font-size: 12px; }
.runoff-detail-heading h2 { display: flex; align-items: center; gap: 12px; font-size: 30px; }
.runoff-detail-heading h2 svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--teal); }
.runoff-detail-heading p { font-size: 13px; margin-top: 10px; }
.runoff-detail-filters { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(140px, 1fr); gap: 16px; max-width: 480px; }
.runoff-detail-filters select { width: 100%; font-size: 13px; }
.runoff-measure-chart { padding: 24px 0; }
.runoff-chart-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 16px; }
.runoff-chart-heading h3 { font-size: 18px; letter-spacing: -.02em; }
.runoff-chart-heading > span { color: var(--muted); font-size: 12px; }
.runoff-issue-bars { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(0, 2fr); gap: 35px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.runoff-issue-bars:last-of-type { border-bottom: 1px solid var(--line); }
.runoff-issue-bars.is-selected { background: var(--soft); }
.runoff-issue-label { text-align: left; padding: 6px 0; font-size: 14px; font-weight: 550; line-height: 1.6; }
.runoff-issue-label:hover { color: var(--teal); text-decoration: underline; }
.runoff-issue-bars .runoff-bar { grid-template-columns: minmax(100px, 135px) minmax(40px, 1fr) 35px 12px; padding: 5px 0; }
.runoff-issue-bars .runoff-bar-name { font-size: 12px; }
.runoff-issue-bars .runoff-bar-track { height: 11px; }
.runoff-sources { padding-top: 14px; }
.runoff-sources .runoff-section-heading h3 { font-size: 24px; }
#runoff-detail-title, #runoff-evidence-title, #runoff-overview-title { scroll-margin-top: 24px; }
#runoff-page-title:focus-visible, #runoff-detail-title:focus-visible, #runoff-evidence-title:focus-visible, #runoff-overview-title:focus-visible { outline: 2px solid var(--teal); outline-offset: 5px; border-radius: 2px; }
.runoff-reading-note { font-size: 12px; line-height: 1.7; padding: 14px 17px; background: var(--soft); margin-bottom: 18px; border-left: 3px solid var(--line); }
.runoff-measure { border: 1px solid var(--line); margin-bottom: 12px; border-radius: 7px; overflow: hidden; }
.runoff-evidence-details > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 20px; font-size: 15px; font-weight: 550; background: var(--soft); }
.runoff-evidence-details > summary > span { color: var(--teal); font-size: 12px; font-weight: 500; white-space: nowrap; }
.runoff-evidence-details > summary > span span { display: inline-block; margin-left: 14px; }
.runoff-evidence-details[open] > summary > span span { transform: rotate(180deg); }
.runoff-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.runoff-evidence-grid.single-candidate { grid-template-columns: minmax(0, 1fr); }
.runoff-evidence { min-width: 0; padding: 22px; }
.runoff-evidence + .runoff-evidence { border-left: 1px solid var(--line); }
.runoff-evidence-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; border-left: 3px solid var(--candidate-color); padding-left: 12px; }
.runoff-evidence-heading h4 { font-size: 17px; font-weight: 600; margin: 0; }
.runoff-evidence-heading > span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.runoff-position-labels { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 20px; }
.runoff-unresolved { color: var(--muted); font-size: 12px; }
.runoff-evidence .idea-record { padding: 18px; margin-bottom: 14px; }
.runoff-evidence .idea-record h3 { font-size: 16px; }
.runoff-evidence .idea-record blockquote { font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; max-width: 78ch; }
.runoff-evidence .idea-record-heading { flex-wrap: wrap; gap: 8px; font-size: 11px; }
.runoff-evidence .idea-source { font-size: 11px; }
.runoff-profile-source { display: block; font-size: 12px; margin: 18px 0 4px; text-decoration: underline; text-underline-offset: 3px; }
.runoff-no-evidence { padding: 18px 0; line-height: 1.7; font-size: 13px; }
.runoff-coverage { margin-top: 24px; padding: 22px 24px; border-left: 3px solid #b2cdd5; background: #e8f0f4; }
.runoff-coverage h3 { font-size: 17px; margin-bottom: 10px; }
.runoff-coverage p { font-size: 12px; margin: 7px 0; line-height: 1.7; max-width: 95ch; }
.runoff-coverage summary { cursor: pointer; font-weight: 550; color: var(--teal); font-size: 12px; margin-top: 15px; }
.runoff-coverage details a { display: inline-block; margin-top: 8px; }
.runoff-archive { display: flex; justify-content: space-between; gap: 20px; font-size: 14px; border-top: 1px solid var(--line); margin-top: 28px; padding: 22px 0; }
.runoff-warning { padding: 14px; background: #fff4d9; margin-bottom: 18px; font-size: 13px; }
.runoff-empty { background: white; border: 1px solid var(--line); padding: 32px; border-radius: 12px; }
.runoff-empty h2 { font-size: 26px; margin-bottom: 15px; }
.runoff-empty .observer-actions { margin-top: 22px; }
.runoff-updating { opacity: .65; pointer-events: none; }
@media (max-width: 1100px) {
  .runoff-theme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .runoff-detail-heading { align-items: flex-start; flex-direction: column; }
  .runoff-detail-filters { width: 100%; max-width: none; }
  .runoff-identity { grid-template-columns: 50px minmax(0, 1fr); gap: 12px; }
  .runoff-candidate .portrait { width: 50px; height: 62px; }
  .runoff-candidate .profile-inline { grid-column: 2; }
  .runoff-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 760px) {
  .runoff-selector { gap: 16px; flex-wrap: wrap; padding: 18px; }
  .runoff-selector label { min-width: 0; width: 100%; }
  .runoff-selector .button { font-size: 12px; padding: 9px 12px; }
  .runoff-scope strong { font-size: 12px; }
  .runoff-candidates { gap: 12px; }
  .runoff-candidate { padding: 16px; }
  .runoff-candidate h2 { font-size: 21px; }
  .runoff-identity { display: flex; flex-wrap: wrap; gap: 12px; }
  .runoff-identity > div { flex: 1; min-width: 100px; }
  .runoff-detail { padding: 22px 18px; }
  .runoff-issue-bars { grid-template-columns: 1fr; gap: 5px; padding: 14px 0; }
  .runoff-chart-heading { display: block; }
  .runoff-chart-heading > span { display: block; margin-top: 6px; }
  .runoff-evidence-grid { grid-template-columns: 1fr; }
  .runoff-evidence + .runoff-evidence { border-left: 0; border-top: 1px solid var(--line); }
  .runoff-evidence { padding: 17px; }
  .runoff-evidence-details > summary { padding: 16px; display: block; }
  .runoff-evidence-details > summary > span { display: block; margin-top: 8px; }
}
@media (max-width: 520px) {
  .runoff-intro { padding: 28px 0 24px; }
  .runoff-intro h1 { font-size: 32px; }
  .runoff-intro h1 br { display: none; }
  .runoff-intro > div > p { font-size: 14px; }
  .runoff-candidates, .runoff-theme-grid { grid-template-columns: 1fr; }
  .runoff-identity { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; }
  .runoff-identity > div { min-width: 0; }
  .runoff-candidate .profile-inline { grid-column: auto; font-size: 11px; }
  .runoff-candidate h2 { font-size: 22px; }
  .runoff-candidate-summary { margin-top: 14px; padding-top: 12px; }
  .runoff-candidate-summary > span { margin-top: 9px; }
  .runoff-theme-card { padding: 12px 16px; }
  .runoff-bar { grid-template-columns: 110px minmax(30px, 1fr) 30px 12px; }
  .runoff-detail-filters { grid-template-columns: 1fr; gap: 12px; }
  .runoff-detail-heading h2 { font-size: 27px; }
  .runoff-issue-bars .runoff-bar { grid-template-columns: 100px minmax(30px, 1fr) 30px 12px; }
  .runoff-evidence { padding: 14px; }
  .runoff-evidence .idea-record { padding: 14px; }
  .runoff-archive { display: block; line-height: 1.7; }
  .runoff-archive strong { display: block; margin-top: 5px; }
}
