.pol { padding: 16px 24px 8px; }
.pol section { margin-bottom: 26px; }
.pol h2 { border-bottom: 1px solid var(--ink); }
.race-grid { display: flex; flex-wrap: wrap; overflow: hidden; margin: 0 -12px; }
.race-card { flex: 1 1 300px; min-width: 0; padding: 12px; box-shadow: -1px 0 0 var(--rule); border-bottom: 1px solid var(--rule); }
.race-card h3 { margin: 0; font-size: 17px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.race-card h3 a { font-weight: 700; }
.race-card .rating { font-family: 'IM Fell English SC', Georgia, serif; font-size: 13px; color: var(--head); white-space: nowrap; }
.race-card .bar { display: flex; height: 12px; margin-top: 6px; border: 1px solid var(--ink); background: var(--rule); }
.race-card .bar span { display: block; }
.race-card .names { display: flex; justify-content: space-between; gap: 8px; margin-top: 3px; font-size: 13px; }
.race-card .note, .fine { font-size: 12px; font-style: italic; color: var(--muted); }
/* Confirmed in official filings, and the flag for a name the filings don't have. */
.race-card .ok { color: var(--blue); font-weight: 700; }
.race-card .src { font-size: 12px; font-style: italic; color: var(--muted); }
.race-card dl { margin: 8px 0 0; font-size: 13px; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; }
.race-card dt { font-family: 'IM Fell English SC', Georgia, serif; color: var(--muted); }
.race-card dd { margin: 0; }
.scroll { overflow-x: auto; }
table.reps { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; margin-top: 6px; }
table.reps th { text-align: left; font-family: 'IM Fell English SC', Georgia, serif; font-weight: 400; border-bottom: 1px solid var(--ink); padding: 6px 8px 4px 0; }
table.reps td { border-bottom: 1px solid var(--rule); padding: 7px 8px 7px 0; }
table.reps td.name { font-weight: 700; }
table.reps a { text-decoration: underline; }
.how-grid { display: flex; flex-wrap: wrap; overflow: hidden; margin: 0 -12px; }
.how-grid > div { flex: 1 1 220px; min-width: 0; padding: 10px 12px; box-shadow: -1px 0 0 var(--rule); }
.how-grid h3 { margin: 0 0 2px; font-family: 'IM Fell English SC', Georgia, serif; font-weight: 400; font-size: 18px; }
.how-grid p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; }
.how-grid .who { margin-top: 0; font-size: 13px; font-style: italic; color: var(--muted); }
.how-grid .chosen { font-size: 13px; }
.titlerow .left a { color: var(--head); font-weight: 700; }
@media (max-width: 640px) { .pol { padding: 12px 16px 4px; } }
.race-card a.tc { text-decoration: underline; color: var(--head); }
.face { width: 32px; height: 40px; object-fit: cover; border: 1px solid var(--rule); vertical-align: middle; margin-right: 8px; }
.race-card .who { display: block; margin: 3px 0; }
.race-card .who .face { width: 26px; height: 32px; margin-right: 4px; }
.race-card .who .tc { white-space: nowrap; }
/* Phones: "On the ballot" and "Raised" sit on their own line, so each candidate and their Bio & Money link fit on one line. */
@media (max-width: 640px) { .race-card dl { grid-template-columns: 1fr; } .race-card dd + dt { margin-top: 6px; } }
table.reps td.name { white-space: nowrap; }
.tc-credit { display: flex; align-items: center; justify-content: center; text-align: center; gap: 10px; margin: 6px 0 10px; padding: 6px 10px; border: 1px solid var(--rule); background: var(--card); font-size: 13px; line-height: 1.4; color: var(--muted); }
.tc-credit img { flex: none; width: 28px; height: 28px; border-radius: 5px; }
.tc-credit strong { color: var(--ink); }
.tc-credit a { color: var(--head); text-decoration: underline; }
.race-card .race-more { display: inline-block; margin-top: 8px; font-size: 13px; }

/* Modern look: the small labels use the front page's Modern type. */
[data-look="fun"] .race-card .rating, [data-look="fun"] .race-card dt, [data-look="fun"] table.reps th, [data-look="fun"] .how-grid h3 { font-family: 'Archivo', system-ui, sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
[data-look="fun"] .race-card .rating, [data-look="fun"] .race-card dt, [data-look="fun"] table.reps th { font-size: 12px; }
[data-look="fun"] .how-grid h3 { font-size: 15px; }
