:root {
  --bg: #fff;
  --surface: #f8f9fa;
  --text: #211913;
  --muted: #6d645d;
  --rule: #e4e1dd;
  --blue: #345fa6;
  --blue-soft: #edf2fa;
  --red: #aa514d;
  --other: #929080;
  --focus: #346d9b;
  --serif: Charter, "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: light;
  font-family: var(--sans);
  font-size: 14px;
}
:root[data-theme="dark"] {
  --bg: #14110e;
  --surface: #1d1814;
  --text: #f5eadc;
  --muted: #c3b4a3;
  --rule: #3b322b;
  --blue: #9cbde9;
  --blue-soft: #222b37;
  --red: #e59b92;
  --other: #a49d8e;
  --focus: #f0c08c;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  border-top: 3px solid var(--blue-soft);
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
button,
input,
select {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 8px 12px;
  min-height: 36px;
  transition: opacity 0.15s;
}
button:hover,
select:hover {
  background: var(--surface);
  border-color: var(--muted);
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
a:hover {
  color: var(--blue);
}
button.primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  font-weight: 550;
}
button.primary:hover {
  opacity: 0.86;
}
button.primary span {
  font-size: 21px;
  line-height: 0;
  vertical-align: -1px;
  margin-right: 5px;
}
select {
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  padding: 8px 30px 8px 10px;
  min-height: 36px;
}
input[type="checkbox"] {
  accent-color: var(--blue);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
input[type="text"] {
  min-width: 0;
  flex: 1;
  padding: 10px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.shell {
  max-width: 1200px;
  margin: auto;
  padding: 0 32px;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 27px 0;
  border-bottom: 1px solid var(--rule);
}
.site-name {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font: 600 20px var(--serif);
}
.theme-label select {
  font-size: 12px;
  border-color: transparent;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 0 24px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font: 400 clamp(38px, 5vw, 56px) / 1.1 var(--serif);
  letter-spacing: -1.8px;
}
.year {
  display: inline-block;
  margin-left: 16px;
  color: var(--muted);
  font-size: 0.44em;
  letter-spacing: 0;
  vertical-align: 5px;
}
.lede {
  color: var(--muted);
  font: 18px var(--serif);
  margin-top: 12px;
}
.refresh-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.refresh-group .primary {
  padding: 11px 19px;
}
.dashboard-actions {
  display: flex;
  gap: 10px;
}
.dashboard-actions button {
  min-height: 44px;
}
.auto-label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  cursor: pointer;
}
.muted {
  color: var(--muted);
}
.status-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 22px;
}
.status-line p {
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-line p:before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--other);
  border-radius: 50%;
  flex-shrink: 0;
}
.status-line p.ready:before {
  background: #66866d;
}
.national-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.race-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  padding: 17px 18px 12px;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.race-card:hover {
  border-color: color-mix(in srgb, var(--blue) 45%, var(--rule));
  box-shadow: 0 2px 8px #00000005;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.card-top h3 {
  font: 500 20px/1.3 var(--serif);
}
.state-code {
  margin-left: 8px;
  font: 10px var(--sans);
  color: var(--muted);
  letter-spacing: 1px;
}
.hide-button {
  font-size: 11px;
  border: none;
  min-height: 32px;
  padding: 4px 3px;
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.open-race {
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: none !important;
  text-align: left;
  min-height: 0;
  line-height: inherit;
  color: inherit;
}
.open-race:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
}
.open-race:focus-visible {
  outline: 0;
}
.race-card:has(.open-race:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.odds-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: 14px;
}
.odds {
  font: 400 43px/1 var(--serif);
  color: var(--blue);
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
}
.odds small {
  font-size: 0.52em;
  letter-spacing: 0;
}
.odds-label {
  max-width: 100px;
  font-size: 10px;
  line-height: 1.45;
  color: var(--muted);
}
.candidate-names {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 12px;
  min-height: 36px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.candidate-names .dem-name {
  color: var(--blue);
}
.candidate-names .rep-name {
  color: var(--red);
}
.spark-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  height: 38px;
}
.change {
  font-size: 11px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.positive {
  color: var(--blue);
}
.negative {
  color: var(--red);
}
.spark {
  height: 34px;
  min-width: 0;
  flex: 1;
  color: var(--blue);
}
.spark svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.no-history {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  flex: 1;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--rule);
  padding-top: 9px;
  font-size: 10px;
  color: var(--muted);
}
.card-footer a,
.card-footer button {
  position: relative;
  z-index: 1;
}
.card-footer a {
  text-decoration: none;
}
.card-footer button {
  border: 0;
  padding: 0;
  min-height: 25px;
  color: var(--muted);
  font-size: 10px;
}
.national-grid .race-card {
  padding: 22px 24px 14px;
}
.national-grid .odds {
  font-size: 60px;
}
.national-grid .odds-label {
  font-size: 11px;
  max-width: 120px;
}
.national-grid .spark-row {
  position: absolute;
  right: 25px;
  top: 62px;
  width: 42%;
  height: 55px;
  flex-direction: row-reverse;
  gap: 16px;
}
.national-grid .spark {
  height: 55px;
}
.national-grid .candidate-names {
  min-height: 18px;
  max-width: 53%;
  margin: 13px 0;
}
.national-grid .card-footer {
  margin-top: 14px;
}
.watch-toolbar {
  margin-top: 30px;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}
.legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 10px;
  color: var(--muted);
}
.legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.blue {
  background: var(--blue);
}
.red {
  background: var(--red);
}
.other {
  background: var(--other);
}
.view-controls {
  display: flex;
  gap: 8px;
}
.view-controls button {
  font-size: 11px;
  min-height: 32px;
}
.race-section {
  margin-top: 30px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}
.section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
h2 {
  font: 400 28px/1.2 var(--serif);
  letter-spacing: -0.6px;
}
.section-count {
  font-size: 11px;
  color: var(--muted);
}
.sort-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.sort-label select {
  font-size: 11px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.race-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.empty-section {
  grid-column: 1/-1;
  padding: 25px;
  color: var(--muted);
  background: var(--surface);
  border-radius: 8px;
}
.missing {
  color: var(--muted);
}
.card-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
  min-height: 15px;
}
.card-note.warning {
  color: var(--red);
}
.hidden-panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
}
.hidden-panel h2 {
  font-size: 22px;
}
.hidden-panel p {
  font-size: 12px;
}
.hidden-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--rule);
  padding: 9px 0;
  font-size: 12px;
}
.hidden-item:first-child {
  margin-top: 16px;
}
.hidden-item button {
  font-size: 11px;
}
.methodology {
  border-top: 1px solid var(--rule);
  margin-top: 38px;
  padding: 21px 0;
}
.methodology summary,
details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
}
.method-copy {
  max-width: 780px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.method-copy p {
  margin-top: 12px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--rule);
  padding: 22px 0 30px;
  color: var(--muted);
  font-size: 11px;
}
footer span span {
  padding: 0 8px;
  color: var(--rule);
}
footer a {
  text-decoration: none;
}
dialog {
  color: var(--text);
  background: var(--bg);
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 12px;
  width: min(780px, calc(100% - 32px));
  max-height: 90dvh;
  box-shadow: 0 24px 100px #0003;
}
dialog::backdrop {
  background: #15131380;
  backdrop-filter: blur(3px);
}
.dialog-inner {
  padding: 28px;
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}
.dialog-heading h2 {
  font-size: 34px;
}
.dialog-heading p {
  font-size: 11px;
  margin-bottom: 6px;
}
.close {
  border: none;
  font-size: 27px;
  line-height: 1;
  padding: 3px 8px;
}
.detail-odds {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.detail-odds .odds {
  font-size: 52px;
}
#detail-summary .candidate-names {
  font-size: 12px;
  margin: 12px 0 20px;
  min-height: 0;
}
.chart-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 19px;
  border-top: 1px solid var(--rule);
}
#chart-readout {
  font-size: 12px;
  min-height: 20px;
  color: var(--muted);
}
.timeframes {
  display: flex;
  gap: 3px;
}
.timeframes button {
  font-size: 11px;
  border: 0;
  min-height: 32px;
  padding: 6px 11px;
}
.timeframes button[aria-pressed="true"] {
  color: var(--blue);
  background: var(--blue-soft);
}
.chart {
  height: 275px;
  width: 100%;
  margin-top: 12px;
  position: relative;
  color: var(--blue);
  touch-action: pan-y;
}
.chart svg {
  width: 100%;
  height: 100%;
  display: block;
}
.chart-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 24px;
}
.micro {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.detail-bottom {
  border-top: 1px solid var(--rule);
  margin-top: 21px;
  padding-top: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.detail-bottom a {
  color: var(--blue);
}
#candidate-details {
  margin-top: 20px;
}
#candidate-list {
  margin-top: 10px;
}
.candidate-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.mapping-input {
  display: flex;
  gap: 8px;
}
.field-label {
  display: block;
  font-size: 12px;
  margin: 20px 0 7px;
}
#mapping .muted {
  font-size: 12px;
}
.mapping-input button {
  white-space: nowrap;
  font-size: 12px;
}
#mapping-status {
  font-size: 12px;
  margin: 14px 0;
  color: var(--muted);
  line-height: 1.6;
}
fieldset {
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: 12px;
  margin: 18px 0;
  max-height: 35dvh;
  overflow: auto;
}
legend {
  font-size: 12px;
  padding: 0 7px;
}
#mapping-options label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 2px;
  font-size: 12px;
  cursor: pointer;
}
#mapping-options label span {
  min-width: 0;
}
#mapping-options small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.confirm-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  margin: 20px 0;
}
.mapping-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 8px 14px;
  background: var(--bg);
  z-index: 5;
}
.skip-link:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.noscript {
  margin: 30px;
  text-align: center;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1300px) {
  .shell {
    max-width: 1264px;
  }
  .race-card {
    padding: 18px 20px 12px;
  }
  .candidate-names {
    font-size: 12px;
  }
}
@media (max-width: 1000px) {
  .race-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .national-grid .spark-row {
    width: 37%;
    right: 20px;
    gap: 8px;
  }
  .national-grid .spark-row .change {
    font-size: 10px;
  }
  .legend {
    gap: 11px;
  }
  .watch-toolbar {
    align-items: flex-start;
  }
}
@media (max-width: 760px) {
  .shell {
    padding: 0 20px;
  }
  .site-header {
    padding: 20px 0;
  }
  .page-header {
    padding-top: 30px;
    display: block;
  }
  .refresh-group {
    margin-top: 22px;
    padding-top: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .refresh-group .primary {
    padding: 9px 13px;
  }
  .dashboard-actions button {
    font-size: 12px;
  }
  .auto-label {
    font-size: 11px;
    gap: 5px;
    white-space: nowrap;
  }
  .lede {
    font-size: 16px;
  }
  h1 {
    font-size: 39px;
  }
  .year {
    display: inline-block;
    margin: 0 0 0 12px;
    font: 17px var(--serif);
    letter-spacing: 0;
    vertical-align: 3px;
  }
  .status-line {
    font-size: 10px;
    gap: 5px;
  }
  .national-grid {
    gap: 10px;
  }
  .national-grid .race-card {
    padding: 16px 16px 12px;
  }
  .national-grid .odds {
    font-size: 47px;
  }
  .national-grid .odds-row {
    gap: 6px;
    flex-wrap: wrap;
  }
  .national-grid .odds-label {
    font-size: 10px;
  }
  .national-grid .spark-row {
    position: static;
    width: 100%;
    height: 34px;
    flex-direction: row;
    margin: 8px 0;
  }
  .national-grid .spark {
    height: 32px;
  }
  .national-grid .candidate-names {
    max-width: none;
    font-size: 10px;
    min-height: 32px;
    margin: 10px 0 4px;
  }
  .national-grid .card-top h3 {
    font-size: 20px;
  }
  .national-grid .card-footer {
    flex-wrap: wrap;
    gap: 0;
    margin-top: 10px;
  }
  .race-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .race-card {
    padding: 15px 15px 11px;
  }
  .card-top h3 {
    font-size: 20px;
  }
  .state-code {
    display: none;
  }
  .odds {
    font-size: 41px;
  }
  .candidate-names {
    font-size: 10px;
  }
  .odds-label {
    font-size: 9px;
    max-width: 70px;
  }
  .card-footer {
    font-size: 9px;
    gap: 3px;
  }
  .card-footer button {
    font-size: 9px;
  }
  .view-controls {
    margin-top: 3px;
  }
  .watch-toolbar {
    margin-top: 22px;
    padding-bottom: 20px;
    gap: 14px;
  }
  .section-heading {
    gap: 8px;
    align-items: center;
  }
  .section-title {
    gap: 7px;
  }
  h2 {
    font-size: 26px;
  }
  .section-count {
    font-size: 10px;
  }
  .sort-label {
    gap: 5px;
  }
  .sort-label select {
    font-size: 10px;
    max-width: 158px;
  }
  .chart {
    height: 230px;
  }
  .dialog-inner {
    padding: 21px;
  }
  .dialog-heading h2 {
    font-size: 30px;
  }
  .mapping-input {
    flex-direction: column;
  }
  .mapping-input button {
    align-self: flex-start;
  }
  footer {
    font-size: 10px;
  }
  .chart-heading {
    gap: 10px;
  }
  .detail-bottom {
    font-size: 11px;
  }
}
@media (max-width: 380px) {
  .shell {
    padding: 0 14px;
  }
  .page-header {
    gap: 10px;
  }
  h1 {
    font-size: 35px;
  }
  .refresh-group .primary {
    font-size: 12px;
  }
  .auto-label {
    font-size: 9px;
  }
  .race-grid {
    grid-template-columns: 1fr;
  }
  .candidate-names {
    font-size: 12px;
  }
  .national-grid .card-top h3 {
    font-size: 18px;
  }
  .national-grid .race-card {
    padding: 14px 12px 10px;
  }
  .national-grid .odds {
    font-size: 42px;
  }
  .national-grid .odds-label {
    max-width: 70px;
  }
  .section-count {
    display: none;
  }
  .sort-label select {
    max-width: 147px;
  }
  .legend {
    font-size: 9px;
  }
  .card-footer {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.card-note:empty {
  display: none;
}
.refresh-group .primary {
  white-space: nowrap;
}
:root[data-theme="dark"] .site-name img {
  filter: invert(1);
  mix-blend-mode: screen;
}

.overview-controls {
  margin: 8px 0 22px;
}
.history-picker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
}
.summary-timeframes {
  display: flex;
  gap: 3px;
}
.summary-timeframes button {
  border: 0;
  font-size: 12px;
  padding: 6px 13px;
}
.summary-timeframes button[aria-pressed="true"] {
  background: var(--blue-soft);
  color: var(--blue);
}
.special-legend {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 12px 0 0;
}
.selection-note {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.7;
}
.selection-note a {
  color: var(--blue);
}
@media (max-width: 760px) {
  .history-picker {
    gap: 8px;
  }
  .summary-timeframes button {
    font-size: 11px;
    padding: 6px 11px;
  }
  .overview-controls .micro {
    font-size: 10px;
  }
  .special-legend {
    font-size: 10px;
  }
}

.spark {
  position: relative;
  z-index: 2;
  cursor: crosshair;
  touch-action: pan-y;
}
.spark-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  width: max-content;
  max-width: 170px;
  padding: 7px 9px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--bg);
  color: var(--text);
  font: 11px/1.5 var(--sans);
  box-shadow: 0 3px 12px #0001;
  pointer-events: none;
  text-align: left;
}
.chart {
  cursor: crosshair;
}
.spark-row {
  margin-bottom: 14px;
}

/* Editorial watchboard: typography and rules carry the hierarchy. */
:root {
  --text: #14243a;
  --muted: #5d6875;
  --blue: #1958a7;
  --red: #b12b3b;
  --rule: #dce2e7;
  --sans: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
:root[data-theme="dark"] {
  --bg: #111820;
  --surface: #17222e;
  --text: #f2eee5;
  --muted: #aeb8c3;
  --blue: #9dc3ff;
  --blue-soft: #1a2b42;
  --red: #ff9aa6;
  --rule: #344151;
}
body {
  border-top: 4px solid var(--blue);
}
h1 {
  font-weight: 500;
  letter-spacing: -2px;
}
.race-grid {
  column-gap: 24px;
  row-gap: 12px;
}
.race-card {
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
  padding: 18px 0 11px;
}
.race-card:hover {
  border-color: var(--blue);
  box-shadow: none;
}
.open-race:after {
  border-radius: 0;
}
.card-top h3 {
  font-weight: 500;
}
.card-footer {
  border-top: 0;
  padding-top: 8px;
}
.national-grid {
  gap: 28px;
  padding: 22px 0 13px;
  border-top: 2px solid var(--text);
  border-bottom: 1px solid var(--rule);
}
.national-grid .race-card {
  padding: 0 0 8px;
  border: 0;
}
.national-grid .spark-row {
  top: 44px;
  right: 8px;
}
.national-grid .card-footer {
  margin-top: 16px;
}
.national-grid .odds {
  font-size: 66px;
}
button,
select {
  border-radius: 3px;
}
.view-controls button {
  border: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hide-button {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.section-heading {
  border-bottom: 1px solid var(--text);
  padding-bottom: 12px;
  margin-bottom: 0;
}
.hidden-panel .section-heading {
  border-bottom: 0;
}
.section-title h2 {
  font-size: 30px;
}
.odds-label,
.candidate-names,
.selection-note,
.method-copy {
  font-family: var(--serif);
}
.odds-label {
  font-size: 12px;
}
.candidate-names {
  font-size: 13px;
}
.selection-note,
.method-copy {
  font-size: 14px;
}
.change-period {
  opacity: 0.75;
  font-size: 9px;
}
@media (max-width: 1000px) {
  .race-grid {
    column-gap: 20px;
  }
}
@media (max-width: 760px) {
  .race-grid {
    column-gap: 20px;
    row-gap: 8px;
  }
  .national-grid {
    gap: 20px;
    padding-top: 18px;
  }
  .national-grid .race-card {
    padding: 0;
  }
  .national-grid .odds {
    font-size: 49px;
  }
  .national-grid .spark-row {
    position: static;
  }
  .race-card {
    padding: 16px 0 10px;
  }
  .candidate-names {
    font-size: 12px;
  }
  .odds-label {
    font-size: 10px;
    max-width: 72px;
  }
  .national-grid .odds-label {
    font-size: 11px;
  }
  .section-title h2 {
    font-size: 27px;
  }
  .legend {
    font-size: 9px;
    gap: 10px;
  }
  .auto-label {
    font-size: 10px;
  }
  .sort-label select {
    max-width: 156px;
  }
  .section-count {
    font-size: 9px;
  }
  .timeframes button {
    padding: 6px 8px;
  }
  .section-heading {
    gap: 6px;
  }
}
@media (max-width: 380px) {
  .sort-label select {
    max-width: 143px;
  }
  .sort-label {
    font-size: 10px;
  }
  .section-title h2 {
    font-size: 25px;
  }
  .national-grid .odds {
    font-size: 43px;
  }
  .auto-label {
    font-size: 9px;
  }
  .summary-timeframes button {
    padding: 6px 9px;
  }
  .history-picker {
    font-size: 11px;
  }
}

/* A local watchlist, presented as a compact editorial index. */
#customize-races {
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--rule));
  padding: 10px 14px;
  font-weight: 600;
}
#customize-races:hover {
  border-color: var(--blue);
}
#watchlist {
  width: min(760px, calc(100% - 32px));
}
.watchlist-intro {
  font: 17px/1.5 var(--serif);
  color: var(--muted);
  margin: 12px 0 22px;
}
.race-search-form > label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
}
.search-input-row {
  display: flex;
  gap: 8px;
}
#race-search {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 12px;
  font: 16px var(--serif);
}
#watchlist button {
  min-height: 40px;
}
.watchlist-status {
  margin: 14px 0;
  font-size: 12px;
  color: var(--blue);
  overflow-wrap: anywhere;
}
.search-results {
  list-style: none;
  padding: 0;
  margin: 0;
}
.search-results li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--rule);
}
.search-results li > div {
  min-width: 0;
}
.search-results strong {
  display: block;
  font: 20px/1.25 var(--serif);
  overflow-wrap: anywhere;
}
.search-results small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin: 5px 0;
}
.search-results a {
  font-size: 10px;
  color: var(--muted);
}
.search-results button {
  flex-shrink: 0;
  color: var(--blue);
}
.watchlist-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 2px solid var(--text);
}
.watchlist-list-heading h3 {
  font: 25px var(--serif);
}
#tracked-count {
  font: 12px var(--sans);
  color: var(--muted);
}
#restore-defaults {
  border: 0;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 11px;
}
#tracked-list {
  margin-top: 12px;
}
.watchlist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--rule);
  padding: 8px 0;
}
.watchlist-row > span {
  font: 18px/1.3 var(--serif);
}
.watchlist-row small {
  display: block;
  color: var(--muted);
  font: 10px/1.6 var(--sans);
}
.watchlist-row button {
  border: 0;
  padding: 8px 0 8px 12px;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#removed-defaults {
  margin-top: 24px;
}
#removed-defaults summary {
  font: 19px var(--serif);
  cursor: pointer;
}
#removed-list {
  margin-top: 12px;
}
@media (max-width: 760px) {
  #watchlist {
    width: calc(100% - 16px);
  }
  #watchlist .dialog-inner {
    padding: 22px 18px;
  }
  #watchlist h2 {
    font-size: 30px;
  }
  #watchlist .dialog-heading p {
    font-size: 10px;
    max-width: 230px;
  }
  #watchlist .micro {
    font-size: 11px;
    line-height: 1.65;
  }
  .search-input-row button {
    padding: 8px 10px;
    font-size: 11px;
  }
  .search-results li {
    gap: 12px;
  }
  .search-results strong {
    font-size: 18px;
  }
  .search-results button {
    padding: 8px;
    font-size: 10px;
  }
  .watchlist-list-heading {
    align-items: flex-start;
  }
  .watchlist-list-heading h3 {
    font-size: 23px;
  }
  #restore-defaults {
    max-width: 140px;
    text-align: right;
    font-size: 10px;
  }
}
