/* pollster-ratings.css - 2026 pollster ratings (prefix pr-), us_site/pollster_ratings_page.py.
   Tokens only (pc-tokens.css / site-tokens.css). Dot colour = the pollster's average signed error. */

.pr-prov { font-family: var(--pc-sans); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pc-negative); margin-right: 4px; }

.is-d { color: var(--us-dem-text); }
.is-r { color: var(--us-rep-text); }

/* ---- field-wide error ---- */
.pr-big { font-family: var(--pc-sans); font-size: 56px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.pr-big.is-nc { color: var(--pc-text); }
.pr-big-cap { font-family: var(--pc-sans); font-size: 14px; color: var(--pc-text-secondary); margin: 8px 0 18px; max-width: 560px; }
.pr-offices { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 0; font-family: var(--pc-sans); }
.pr-offices div { display: grid; grid-template-columns: auto; }
.pr-offices dt { font-size: 13px; color: var(--pc-text-secondary); }
.pr-offices dd { margin: 0; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pr-offices span { font-size: 12px; color: var(--pc-text-meta); }

/* ---- dot plot: one row per rated pollster ---- */
.pr-key { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--pc-sans); font-size: 12px; color: var(--pc-text-secondary); margin: 8px 0 14px; }
.pr-key b { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.pr-plot { list-style: none; margin: 0; padding: 0; }
.pr-row, .pr-axis { display: grid; grid-template-columns: 26px minmax(120px, 260px) 1fr 52px; align-items: center; column-gap: 10px; }
.pr-row { min-height: 26px; font-family: var(--pc-sans); font-size: 13px; border-bottom: 1px solid var(--pc-border-light); }
.pr-rk { color: var(--pc-text-meta); text-align: right; font-variant-numeric: tabular-nums; }
.pr-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--pc-text); }
.pr-nm a { color: var(--pc-text); }
.pr-v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--pc-text); }
.pr-track { position: relative; height: 24px; }
.pr-track::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dotted var(--pc-border); }
.pr-track::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid var(--pc-text-meta); }
.pr-track i { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--pc-border); }
.pr-track b, .pr-key b { background: var(--pc-text-meta); }
.pr-track b { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; z-index: 1; }
.pr-track b.is-d, .pr-key b.is-d { background: var(--pc-party-dem); }
.pr-track b.is-r, .pr-key b.is-r { background: var(--pc-party-rep); }
.pr-axis { font-family: var(--pc-sans); font-size: 11px; color: var(--pc-text-meta); padding: 2px 0; }
.pr-scale { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.pr-axis-words { margin-top: 4px; }

/* ---- tables ---- */
.pr-table td, .pr-table th, .pr-polls td, .pr-polls th { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pr-table { min-width: 520px; }
.pr-table thead th:nth-child(2), .pr-table tbody td:nth-child(2) { text-align: left; }
.pr-table th button { font: inherit; color: inherit; background: none; border: 0; padding: 4px 0; cursor: pointer; }
.pr-table th[aria-sort] button::after { content: ' \25BE'; color: var(--pc-text-meta); }
.pr-table th[aria-sort="ascending"] button::after { content: ' \25B4'; }
.pr-table .pr-tn a { color: var(--pc-text); font-weight: 600; }
.pr-polls { font-size: 12px; }
.pr-polls thead th:nth-child(1), .pr-polls tbody td:nth-child(1) { text-align: left; }
.pr-polls tbody td.pr-why { text-align: left; white-space: normal; }
.pr-polls a { color: var(--pc-text-secondary); }
.pr-each .pc-disclosure-body { max-width: 760px; }
.pr-sum { font-weight: 400; color: var(--pc-text-meta); margin-left: 6px; }
.pr-unrated { list-style: none; margin: 0; padding: 0; columns: 2 260px; column-gap: 32px; }
.pr-unrated li { padding: 3px 0; break-inside: avoid; color: var(--pc-text); }
.pr-unrated span { color: var(--pc-text-meta); }

@media (max-width: 640px) {
    .pr-big { font-size: 44px; }
    .pr-row, .pr-axis { grid-template-columns: 20px 112px 1fr 40px; column-gap: 6px; }
    .pr-row { font-size: 12px; }
    .pr-opt { display: none; }
    .pr-table { min-width: 0; }
    .pr-table tbody td.pr-tn { white-space: normal; min-width: 120px; }
}
.pr-table tbody td.is-d, .pr-polls tbody td.is-d { color: var(--us-dem-text); }
.pr-table tbody td.is-r, .pr-polls tbody td.is-r { color: var(--us-rep-text); }
