/* Population history (population-history.php). Loads after css/archive-charts.css and css/archive-apportion.css, which supply the ruler,
   tabs, tables, notes and the .ac-* chart pieces. Only what is different is here. Tokens only (css/vf-tokens.css). */

.pp-main .ap-pick select { flex: 0 1 220px; }
.pp-main .ap-swap { align-self: center; color: var(--vf-blue-text); font-size: .95rem; }
.pp-kind a { display: inline-block; margin: 0 18px 0 0; padding: 6px 0; border-bottom: 3px solid transparent; color: var(--vf-ink-2); font-weight: 700; text-decoration: none; }
.pp-kind a[aria-current="page"] { color: var(--vf-ink); border-bottom-color: var(--vf-ink); }
.pp-kind a:hover { color: var(--vf-ink); border-bottom-color: var(--vf-rule-strong); }

/* rank grid: one row per state, one column per census; scrolls sideways, the state name stays in view */
.pp-grid { position: relative; margin-top: 10px; } /* positioned so the hidden "No figure" text stays inside the scrolling box */
.pp-rank { border-collapse: collapse; min-width: 100%; font-variant-numeric: tabular-nums; font-size: .86rem; }
.pp-rank th, .pp-rank td { padding: 5px 7px; border-bottom: 1px solid var(--vf-rule); text-align: right; white-space: nowrap; }
.pp-rank thead th { position: sticky; top: 0; background: var(--vf-surface); border-bottom: 2px solid var(--vf-ink); color: var(--vf-mute); font-size: .6875rem; font-weight: 800; letter-spacing: .04em; vertical-align: bottom; }
.pp-rank thead th a { color: inherit; text-decoration: none; }
.pp-rank th[scope="row"], .pp-rank thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--vf-surface); text-align: left; font: 700 .9rem var(--vf-font-head); color: var(--vf-ink); }
.pp-rank th[scope="row"] a { color: inherit; text-decoration-color: var(--vf-rule-strong); text-underline-offset: 3px; }
.pp-rank td:last-child, .pp-rank thead th:last-child { text-align: left; padding-left: 14px; }
.pp-rank tbody tr:hover td, .pp-rank tbody tr:hover th { background: var(--vf-surface-2); }
.pp-main .ac-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
