/* Whatfinger Election. Public pages. dedicatedissues.com/election */
:root {
  --red: #E10600;
  --ink: #1A1916;
  --muted: #5C564E;
  --paper: #F7F5F1;
  --line: #E4DFD6;
  --card: #fff;
  --blue: #2C5F9E;
  --gop: #C0392B;
  --toss: #C4A35A;
  --und: #D9D3C8;
  --kicker: #9A3412;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink);
  font-family: Lato, Helvetica, Arial, sans-serif; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
.top { background: var(--red); color: #fff; display: flex; align-items: center;
  justify-content: space-between; padding: 10px 28px; min-height: 52px; gap: 16px; }
.brand { font-family: Anton, Impact, sans-serif; letter-spacing: .04em; font-size: 22px; color: #fff; }
.top nav { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; font-weight: 700; }
.top nav a { color: #fff; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 22px 22px 48px; }
.kicker { color: var(--kicker); font-weight: 800; letter-spacing: .12em; font-size: 13px;
  text-transform: uppercase; margin: 0 0 6px; }
h1 { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 40px;
  line-height: 1.05; margin: 0 0 8px; }
h2 { font-family: Anton, Impact, sans-serif; font-weight: 400; font-size: 26px; margin: 0 0 6px; }
.sub { color: var(--muted); font-size: 16px; margin: 0 0 16px; max-width: 760px; line-height: 1.45; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }
.card, .mapbox { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.mapbox svg { width: 100%; height: auto; display: block; background: #F3F0EA; border-radius: 6px; }
.mapbox svg path { cursor: pointer; }
.mapbox svg path.locked { cursor: default; }
.rail { display: flex; flex-direction: column; gap: 14px; }
.score { display: flex; gap: 10px; margin: 12px 0; }
.pill { flex: 1; border-radius: 6px; color: #fff; padding: 8px 12px; display: flex;
  justify-content: space-between; align-items: baseline; min-width: 0; }
.pill b { font-family: Anton, Impact, sans-serif; font-size: 28px; font-weight: 400; line-height: 1; }
.pill span { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.pill.d { background: var(--blue); }
.pill.r { background: var(--gop); }
.pill.u { background: #8A847A; }
.footmap { font-size: 13px; color: #3F3A34; line-height: 1.45; margin: 8px 2px 2px;
  border-top: 1px solid var(--line); padding-top: 8px; }
.footmap a { font-weight: 800; }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin-top: 12px; font-size: 14px; }
.meta div { border-top: 1px solid var(--line); padding-top: 6px; }
.meta em { display: block; color: var(--muted); font-style: normal; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; }
.btn { display: inline-block; background: var(--red); color: #fff !important; font-weight: 800;
  font-size: 13px; letter-spacing: .04em; padding: 8px 12px; border-radius: 4px; margin: 0 8px 8px 0;
  border: 0; cursor: pointer; text-decoration: none !important; }
.btn.ghost { background: #fff; color: var(--ink) !important; border: 1px solid #D4CFC6; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; margin-top: 16px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.tile b { display: block; font-size: 16px; margin-bottom: 4px; }
.tile p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 8px 6px; border-bottom: 2px solid var(--ink); }
td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 2px 6px; border-radius: 99px; display: inline-block; }
.tag.r { background: #FDE8E6; color: #9B2C2C; }
.tag.d { background: #E8F0FA; color: #1E4E8C; }
.tag.m { background: #F3F0EA; color: #5C564E; }
.tag.s { background: #FEF3C7; color: #92400E; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.chip { background: #fff; border: 1px solid #D4CFC6; border-radius: 99px; padding: 5px 10px;
  font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.titlefield, select.field { width: 100%; border: 1px solid #D4CFC6; border-radius: 4px;
  padding: 8px 10px; font-size: 16px; font-weight: 700; margin: 6px 0 10px; font-family: inherit; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 700; margin: 4px 0 8px; }
.sw { width: 12px; height: 12px; display: inline-block; margin-right: 5px; vertical-align: -1px; border-radius: 2px; }
.note { font-size: 14px; color: var(--muted); margin: 8px 0; line-height: 1.4; }
pre { background: var(--ink); color: #F6F3EC; padding: 12px; border-radius: 6px; font-size: 12px; line-height: 1.45; overflow: auto; }
.sitefoot { margin-top: 22px; border-top: 3px solid var(--red); padding-top: 10px;
  display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.sitefoot b { font-family: Anton, Impact, sans-serif; color: var(--red); font-size: 18px; font-weight: 400; letter-spacing: .04em; }
.slot { min-height: 0; }
.slot.placeholder { border: 1.5px dashed #B45309; background: #FFF7ED; color: #9A3412;
  font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; text-align: center; padding: 14px; min-height: 72px; }
.slot-top { margin: 0 0 18px; }
ol { margin: 8px 0 0; padding-left: 18px; }
li { margin: 6px 0; font-size: 15px; line-height: 1.4; }
.banner { background: #FFF7ED; border: 1px solid #F3D3A1; color: #7C4A12; padding: 8px 12px;
  border-radius: 6px; font-size: 13px; margin: 0 0 12px; }
.splitrow { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; font-size: 13px; }
.splitrow button { font: inherit; font-weight: 700; font-size: 12px; }
.yeargrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.yeargrid a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; color: var(--ink); text-decoration: none; }
.yeargrid a strong { display: block; font-family: Anton, Impact, sans-serif; font-size: 22px; font-weight: 400; }
.yeargrid a span { color: var(--muted); font-size: 13px; }
body.embed { background: #fff; }
body.embed .top, body.embed .sitefoot, body.embed .slot, body.embed .kicker.page, body.embed h1.page, body.embed .sub.page { display: none; }
body.embed .wrap { max-width: 920px; padding: 8px; }
body.embed .layout { display: block; }
body.embed .rail { display: none; }
body.polls { font-size: 17px; }
body.polls .sub { font-size: 17px; }
body.polls table { font-size: 17px; }
body.polls th { font-size: 14px; }
body.polls td { font-size: 17px; padding: 12px 8px; }
body.polls .tag { font-size: 14px; }
body.polls .note, body.polls .chip { font-size: 15px; }
body.polls .card h2 { font-size: 28px; }
body.polls a.rowlink { color: var(--ink); font-weight: 700; }
body.polls a.rowlink:hover { color: var(--red); }
.markets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 16px; }
.market { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 10px 6px; }
.market iframe { width: 100%; height: 380px; border: 0; display: block; }
@media (max-width: 860px) {
  .layout, .row3, .yeargrid, .meta, .markets { grid-template-columns: 1fr; }
  h1 { font-size: 32px; }
  .top { padding: 10px 14px; }
}
