/* e2027.css - the 2027 election pages (us_site/elections_2027.py; prefix e27-). Tokens only; loaded after
   state-legislatures.css and state-courts.css, whose seat bars, district maps, timeline and facts row it reuses. */

.e27-dates .sl-tl { margin-top: 10px; }
.e27-context { font-family: var(--pc-serif, Georgia, serif); font-size: 17px; line-height: 1.6; color: var(--pc-text-body);
    max-width: 680px; margin: 18px 0 6px; }

/* chamber sections: seat bar, then map and history side by side */
.e27-ch .pc-section-title a { color: var(--pc-text); text-decoration: none; }
.e27-ch .pc-section-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.e27-up { font-family: var(--pc-sans); font-size: 13px; font-weight: 600; color: var(--pc-text-meta); margin-left: 8px;
    text-transform: uppercase; letter-spacing: 0.05em; }
.e27-ch .sl-ch { margin-bottom: 18px; }
.e27-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.e27-map .sl-seg { margin-bottom: 8px; }
.e27-map .sl-dm { max-height: 460px; }
.e27-h3 { font-family: var(--pc-sans); font-size: 14px; font-weight: 700; color: var(--pc-text); margin: 0 0 6px; }
.e27-chart { height: 300px; margin: 0; }
.e27-miss { margin-top: 6px; }

/* seats that changed party: small party squares, old -> new */
.e27-changes { margin-top: 22px; }
.e27-chg-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 6px 20px; font-family: var(--pc-sans); font-size: 14px; color: var(--pc-text-body); font-variant-numeric: tabular-nums; }
.e27-chg-list li { display: flex; align-items: center; gap: 10px; }
.e27-chg-d { min-width: 82px; }
.e27-chg { display: inline-flex; align-items: center; gap: 3px; color: var(--pc-text-meta); }
.e27-sq { display: inline-block; width: 12px; height: 12px; background: var(--us-fill, var(--pc-nc)); }
.e27-changes-none { font-family: var(--pc-sans); font-size: 14px; color: var(--pc-text-secondary); margin: 18px 0 0; }

/* statewide offices: label over holder, party dot */
.e27-offs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 40px; font-family: var(--pc-sans); }
.e27-off { display: flex; flex-direction: column; gap: 3px; }
.e27-off-l { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pc-text-meta); }
.e27-off-n { font-size: 16px; color: var(--pc-text); }
.e27-off .us-party-dot { margin-right: 6px; }
.e27-p { color: var(--pc-text-meta); font-size: 13px; }
.e27-also { font-family: var(--pc-sans); font-size: 14px; color: var(--pc-text-secondary); margin: 14px 0 0; max-width: 680px; }

/* candidates and polls: two short columns */
.e27-cp { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.e27-cp .pc-section-title { margin-top: 0; }

/* Pennsylvania: the justices */
.e27-js { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; font-family: var(--pc-sans); }
.e27-j { display: flex; flex-direction: column; }
.e27-j-n { font-family: var(--pc-serif, Georgia, serif); font-size: 18px; font-weight: 700; color: var(--pc-text); }
.e27-j-r { font-size: 12px; color: var(--pc-text-meta); }

@media (max-width: 768px) {
    .e27-grid { grid-template-columns: 1fr; gap: 18px; }
    .e27-chart { height: 240px; }
    .e27-cp { grid-template-columns: 1fr; }
    .e27-context { font-size: 16px; }
}
