/* Politics + elections pages. Uses the main theme tokens with fallbacks; mobile-first. */
.pol { --pol-bg: var(--bg, #fff); --pol-surface: var(--surface, #f6f7f9); --pol-ink: var(--ink, #14181f); --pol-muted: var(--muted, #5b6472);
  --pol-line: var(--line, #e2e5ea); --pol-accent: var(--accent, #0b57d0); --pol-accent-ink: var(--accent-ink, #fff); --pol-paid: var(--paid, #8a5a00);
  --pol-r: var(--radius, 10px); color: var(--pol-ink); padding-bottom: 2rem; }
.pol a { color: var(--pol-accent); }
.pol h1 { font: 800 clamp(2rem, 5vw, 3rem)/1.05 var(--serif, Georgia, serif); letter-spacing: -.02em; margin: .3rem 0 .4rem; }
.pol h2 { font: 800 1.35rem/1.2 var(--serif, Georgia, serif); margin: 0 0 .6rem; }
.pol h2 small { color: var(--pol-muted); font-weight: 400; }
.pol-crumbs { font-size: .85rem; color: var(--pol-muted); margin: .8rem 0 .2rem; }
.pol-crumbs a { color: inherit; }
.pol-head { margin-bottom: 1rem; }
.pol-lede { color: var(--pol-muted); max-width: 46rem; margin: 0 0 .8rem; }
.pol-tabs { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.pol-tabs a { flex: 0 0 auto; padding: .4rem .8rem; border: 1px solid var(--pol-line); border-radius: 999px; text-decoration: none; color: var(--pol-ink); font-size: .9rem; background: var(--pol-bg); }
.pol-tabs a[aria-current] { background: var(--pol-accent); border-color: var(--pol-accent); color: var(--pol-accent-ink); }
.pol-section { margin: 1.4rem 0; }
.pol-section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pol-note { font-size: .85rem; color: var(--pol-muted); }
.pol-muted { color: var(--pol-muted); font-size: .9em; }
.pol-empty { color: var(--pol-muted); font-style: italic; }
.pol-pending { padding: .8rem 1rem; border: 1px dashed var(--pol-line); border-radius: var(--pol-r); color: var(--pol-muted); background: var(--pol-surface); }

.pol-countdown { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1rem; padding: .9rem 1rem; border-radius: var(--pol-r);
  background: var(--pol-surface); border: 1px solid var(--pol-line); color: var(--pol-ink); text-decoration: none; margin: 1rem 0; }
a.pol-countdown:hover { border-color: var(--pol-accent); }
.pol-count b { font-size: 1.6rem; color: var(--pol-accent); }
.pol-countdown-big .pol-count b { font-size: 2.4rem; }
.pol-phase { flex-basis: 100%; font-size: .9rem; color: var(--pol-muted); }

.pol-grid { display: grid; grid-template-columns: 1fr; gap: .6rem; }
@media (min-width: 560px) { .pol-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .pol-grid { grid-template-columns: repeat(3, 1fr); } }
.pol-card { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border: 1px solid var(--pol-line); border-radius: var(--pol-r); background: var(--pol-bg); color: var(--pol-ink); text-decoration: none; min-height: 3.5rem; }
.pol-card:hover { border-color: var(--pol-accent); }
.pol-card-text { display: flex; flex-direction: column; min-width: 0; }
.pol-card-text small { color: var(--pol-muted); }
.pol-avatar, .pol-logo { flex: 0 0 auto; border-radius: 50%; object-fit: cover; background: var(--pol-surface); }
.pol-logo { border-radius: 8px; object-fit: contain; }
.pol-initials { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--pol-muted); border: 1px solid var(--pol-line); }
.pol-s36 { width: 36px; height: 36px; font-size: .8rem; }
.pol-s48 { width: 48px; height: 48px; font-size: .95rem; }
.pol-s96 { width: 96px; height: 96px; font-size: 1.8rem; }

.pol-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
@media (min-width: 700px) { .pol-list { grid-template-columns: repeat(2, 1fr); } }
.pol-list a { display: flex; align-items: center; gap: .6rem; padding: .4rem; border-radius: var(--pol-r); color: var(--pol-ink); text-decoration: none; }
.pol-list a:hover { background: var(--pol-surface); }
.pol-list span { display: flex; flex-direction: column; }
.pol-list small { color: var(--pol-muted); }
.pol-mentions { padding-left: 1.4rem; }
.pol-mentions li { margin: .2rem 0; }
.pol-search { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin: 0 0 1rem; }
.pol-search label { display: flex; flex-direction: column; font-size: .85rem; color: var(--pol-muted); flex: 1 1 14rem; }
.pol-search input { font: inherit; padding: .5rem .6rem; border: 1px solid var(--pol-line); border-radius: var(--pol-r); }
.pol-search button, .pol-btn { font: inherit; padding: .5rem 1rem; border-radius: var(--pol-r); border: 0; background: var(--pol-accent); color: var(--pol-accent-ink); text-decoration: none; display: inline-block; cursor: pointer; }
.pol .pol-btn { color: var(--pol-accent-ink); }

.pol-profile-head { display: flex; gap: 1rem; align-items: flex-start; margin: .6rem 0 1rem; }
.pol-profile-head h1 { margin-top: 0; }
.pol-headline { font-weight: 600; margin: .2rem 0; }
.pol-party { margin: .2rem 0; }
.pol-credit { font-size: .8rem; color: var(--pol-muted); }
.pol-cols { display: grid; gap: 0 2rem; }
@media (min-width: 900px) { .pol-cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.pol-offices, .pol-news, .pol-stances, .pol-links, .pol-rules { list-style: none; padding: 0; margin: 0; }
.pol-offices li, .pol-stances li { padding: .55rem 0; border-bottom: 1px solid var(--pol-line); display: flex; flex-direction: column; gap: .1rem; }
.pol-offices li.is-current b::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: #1a8a3a; margin-right: .4rem; vertical-align: middle; }
.pol-offices small, .pol-stances small { color: var(--pol-muted); }
.pol-stances p { margin: .1rem 0; }
.pol-news li { padding: .45rem 0; border-bottom: 1px solid var(--pol-line); }
.pol-links li { padding: .3rem 0; }
.pol-rules li { padding: .35rem 0 .35rem 1.4rem; position: relative; }
.pol-rules li::before { content: "✓"; position: absolute; left: 0; color: var(--pol-accent); font-weight: 700; }
.pol-prose { line-height: 1.6; }
.pol-prose h2 { font-size: 1.05rem; margin-top: 1rem; }
.pol-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .6rem; margin: 0 0 1rem; }
.pol-facts div { padding: .6rem .8rem; background: var(--pol-surface); border-radius: var(--pol-r); }
.pol-facts dt { font-size: .8rem; color: var(--pol-muted); }
.pol-facts dd { margin: .1rem 0 0; font-weight: 600; overflow-wrap: anywhere; }

/* Paid content: always visually separated from editorial content. */
.pol-paid { margin: 2rem 0 1rem; padding: 1rem 1.1rem; border: 2px solid var(--pol-paid); border-radius: var(--pol-r);
  background: color-mix(in srgb, var(--pol-paid) 7%, var(--pol-bg)); position: relative; }
.pol-paid-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-bottom: .6rem; padding-bottom: .6rem; border-bottom: 1px solid color-mix(in srgb, var(--pol-paid) 35%, transparent); }
.pol-paid-badge { background: var(--pol-paid); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .2rem .55rem; border-radius: 4px; }
.pol-paid-payer { font-size: .95rem; }
.pol-paid-reg { font-size: .85rem; font-weight: 600; color: var(--pol-paid); margin: 0 0 .6rem; }
.pol-paid h3 { font-size: 1rem; margin: 1rem 0 .3rem; }
.pol-paid-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; margin: .8rem 0; }
.pol-paid-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.pol-paid-foot { margin-top: 1rem; padding-top: .6rem; border-top: 1px solid color-mix(in srgb, var(--pol-paid) 35%, transparent); font-size: .8rem; color: var(--pol-muted); }
.pol-paid-foot p { margin: .25rem 0; }
.pol-paid-silence { margin: 2rem 0 1rem; padding: .7rem 1rem; border: 1px dashed var(--pol-paid); border-radius: var(--pol-r); font-size: .9rem; color: var(--pol-muted); }

.pol-table-wrap { overflow-x: auto; border: 1px solid var(--pol-line); border-radius: var(--pol-r); }
.pol-table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 640px; }
.pol-table th, .pol-table td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--pol-line); vertical-align: top; }
.pol-table th { background: var(--pol-surface); font-weight: 600; }
.pol-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pol-status { font-size: .8rem; padding: .1rem .45rem; border-radius: 999px; background: var(--pol-surface); white-space: nowrap; }
.pol-st-running { background: #e3f4e8; color: #11632b; }
.pol-st-scheduled { background: #e8eefc; color: #1b4aa8; }

.pol-rates { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.pol-rate { border: 1px solid var(--pol-line); border-radius: var(--pol-r); padding: 1rem; background: var(--pol-bg); }
.pol-rate h2 { font-size: 1.05rem; }
.pol-rate.is-tbd { border-style: dashed; }
.pol-price { font-size: 1.5rem; font-weight: 700; margin: .2rem 0; }
.pol-rate.is-tbd .pol-price { font-size: 1rem; color: var(--pol-muted); }
.pol-rate ul { padding-left: 1.1rem; margin: .5rem 0 0; }

.pol-timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--pol-line); }
.pol-timeline li { position: relative; padding: .3rem 0 .9rem 1rem; display: flex; flex-direction: column; gap: .1rem; }
.pol-timeline li::before { content: ""; position: absolute; left: -7px; top: .55rem; width: 12px; height: 12px; border-radius: 50%; background: var(--pol-bg); border: 2px solid var(--pol-accent); }
.pol-timeline li.is-past { opacity: .6; }
.pol-timeline li.is-past::before { background: var(--pol-line); border-color: var(--pol-line); }
.pol-timeline li.is-now::before { background: var(--pol-accent); }
.pol-timeline time { font-size: .85rem; color: var(--pol-muted); }
.pol-timeline small { color: var(--pol-muted); }
.pol-more { margin-top: 1.5rem; }
