/* Session Pace page. Uses the site tokens from measure.css; the chart colors below
   were run through the dataviz palette validator (blue vs gold passes the CVD checks;
   the third session is a quiet grey and is always dotted, so it never relies on hue). */
:root {
  --p-cur: #1c68a8; --p-prior: #b07a1f; --p-older: #7d8796;
  --p-ahead: #1c68a8; --p-behind: #c4622d; --p-neutral: #efece2;
  --p-faint: #8a93a0; --p-grid: #ebe7dc;
  --p-weekend: rgba(20,48,79,.045); --p-after: rgba(198,154,63,.10);
}
.m-wrap.p-wrap { max-width: 1080px; }
.p-wrap [hidden] { display: none !important; }   /* .p-group etc. set display, which beats [hidden] */
.p-title { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.15; margin: 6px 0 6px; color: var(--navy); letter-spacing: -0.01em; }
.p-lede { color: var(--ink-soft); max-width: 70ch; margin: 0 0 16px; }

.p-compare { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px; font-size: .92rem; }
.p-cur { font-weight: 700; color: var(--brand-dark); }
.p-compare select { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; background: #fff; color: var(--ink); }
.p-also { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.p-also-note { color: var(--p-faint); font-size: .82rem; font-style: italic; }
.p-notice { margin: -4px 0 12px; font-size: .88rem; color: var(--gold-deep); }

.p-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; }
.p-tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px; cursor: pointer;
  color: var(--ink-soft); white-space: nowrap; font: inherit; font-weight: 650; }
.p-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--p-cur); }
.p-tab { display: inline-flex; align-items: center; gap: 8px; }
/* Tab icons: muted until the tab is picked, then full color. */
.p-ico { width: 26px; height: 26px; flex: 0 0 auto; fill: none; stroke-linecap: round; stroke-linejoin: round;
  opacity: .7; filter: grayscale(.35); transition: opacity .15s, filter .15s; }
.p-tab:hover .p-ico, .p-tab[aria-selected="true"] .p-ico { opacity: 1; filter: none; }
.p-ico .pi-axis { stroke: var(--ink-soft); stroke-width: 1.4; }
.p-ico .pi-line { stroke: var(--brand); stroke-width: 2.2; }
.p-ico .pi-line2 { stroke: var(--gold-deep); stroke-width: 1.8; stroke-dasharray: 3 2; }
.p-ico .pi-bar { fill: var(--brand); }
.p-ico .pi-bar2 { fill: var(--gold); }
.p-ico .pi-cell { fill: var(--brand); opacity: .8; }
.p-ico .pi-cell2 { fill: var(--gold); opacity: .8; }
.p-help { margin: 0 0 12px; color: var(--ink-soft); font-size: .9rem; max-width: 78ch; }

.p-ctrls { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 12px; }
.p-group { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.p-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--p-faint); margin-right: 4px; font-weight: 700; }
.p-chip, .p-seg { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px;
  font: inherit; font-size: .84rem; cursor: pointer; color: var(--ink-soft); }
.p-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.p-seg { border-radius: 7px; }
.p-seg[aria-pressed="true"] { background: var(--marble); color: var(--ink); border-color: var(--p-faint); font-weight: 650; }
.p-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 10px; cursor: pointer;
  font: inherit; font-size: .88rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.p-btn:disabled { cursor: not-allowed; opacity: .45; }
.p-btn.p-play { background: var(--p-cur); border-color: var(--p-cur); color: #fff; font-weight: 650; min-width: 84px; }
.p-btn.p-small { font-size: .8rem; padding: 3px 9px; }
.p-tab:focus-visible, .p-chip:focus-visible, .p-seg:focus-visible, .p-btn:focus-visible, .p-compare select:focus-visible,
.p-dayctl input:focus-visible { outline: 2px solid var(--p-cur); outline-offset: 2px; }

.p-panel { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 12px 12px 8px; }
.p-readout { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: baseline; padding: 2px 4px 10px; font-variant-numeric: tabular-nums; }
.p-readout .day { font-size: 1.45rem; font-weight: 800; color: var(--navy); min-width: 4.4em; }
.p-readout .dates { color: var(--ink-soft); font-size: .86rem; min-width: 14em; }
.p-readout .rsub { flex-basis: 100%; font-size: .8rem; font-style: italic; color: var(--gold-deep); margin-top: -4px; }
.p-key { margin-left: auto; display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; font-size: .84rem; color: var(--ink-soft); }
.p-key b { color: var(--ink); font-weight: 650; }
.p-key small { font-size: .75rem; color: var(--p-faint); }
.p-key i { display: inline-block; width: 22px; height: 0; border-top: 2.5px solid var(--p-cur); vertical-align: middle; margin-right: 6px; }
.p-key i.p { border-top: 2.5px dashed var(--p-prior); }
.p-key i.o { border-top: 2.5px dotted var(--p-older); }
.p-key i.bc { height: 10px; border: 0; background: var(--p-cur); border-radius: 0 3px 3px 0; width: 18px; }
.p-key i.bp { height: 9px; border: 1.5px solid var(--p-prior); background: repeating-linear-gradient(135deg, var(--p-prior) 0 3px, transparent 3px 6px); width: 18px; }
.p-key i.bo { height: 6px; border: 0; background: var(--p-older); width: 18px; border-radius: 0 3px 3px 0; }

.p-mini { margin-bottom: 4px; }
.p-mini-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .86rem; padding: 0 4px; }
.p-mini-head .t { font-weight: 650; }
.p-mini-head .v { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.p-mini-head .v b { color: var(--ink); }
.delta { font-weight: 650; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--p-ahead); } .delta.dn { color: var(--p-behind); }
.p-wrap svg text { fill: var(--p-faint); font-size: 11px; font-family: inherit; }
.p-wrap .axis path, .p-wrap .axis line { stroke: var(--line); }
.p-wrap svg text.sd { paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; font-weight: 600; }
.p-wrap .gridl line { stroke: var(--p-grid); } .p-wrap .gridl path { display: none; }
.p-overview { margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 6px; }
.p-ovbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 4px 2px; }
.p-hint { font-size: .78rem; color: var(--p-faint); }
.p-wrap .brush .selection { fill: var(--p-cur); fill-opacity: .12; stroke: var(--p-cur); stroke-width: 1.5; }

/* Pipeline */
.p-dayctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 14px; }
.p-dayctl input[type=range] { flex: 1 1 260px; accent-color: var(--p-cur); }
.p-stages { display: grid; gap: 12px; }
.p-stage { display: grid; grid-template-columns: minmax(120px, 190px) 1fr auto; gap: 6px 14px; align-items: center; }
.p-stage .name { font-weight: 650; font-size: .92rem; }
.p-stage .name small { display: block; font-weight: 400; color: var(--p-faint); font-size: .76rem; }
.p-bars { display: grid; gap: 4px; }
.p-track { position: relative; margin-right: 74px; }
.p-bar { height: 15px; border-radius: 0 4px 4px 0; background: var(--p-cur); width: 0; min-width: 2px; position: relative;
  transition: width .32s cubic-bezier(.2, .8, .2, 1); }
.p-bar.p { background: repeating-linear-gradient(135deg, var(--p-prior) 0 3px, transparent 3px 6px); border: 1.5px solid var(--p-prior); height: 12px; }
.p-bar.o { background: var(--p-older); height: 7px; opacity: .85; }
.p-bar span { position: absolute; left: calc(100% + 6px); top: 50%; transform: translateY(-50%); font-size: .78rem;
  color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-finalmark { position: absolute; top: -3px; bottom: -3px; border-left: 1.5px dotted var(--p-faint); }
.p-stage .d { font-size: .86rem; text-align: right; white-space: nowrap; }
.p-grplbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-deep); font-weight: 800; margin-top: 4px; }

/* Grid */
.p-ckey { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.p-gridwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table.p-grid { border-collapse: separate; border-spacing: 2px; font-variant-numeric: tabular-nums; font-size: .8rem; min-width: 100%; }
table.p-grid th { font-weight: 650; color: var(--ink-soft); padding: 4px 6px; white-space: nowrap; text-align: center; background: #fff; }
table.p-grid th.row { text-align: left; position: sticky; left: 0; z-index: 1; min-width: 150px; color: var(--ink); }
table.p-grid th.after { color: var(--gold-deep); }
table.p-grid td { padding: 5px 4px; text-align: center; border-radius: 5px; min-width: 46px; color: var(--ink); cursor: default; }
table.p-grid td small { display: block; font-size: .7rem; color: var(--ink-soft); }
table.p-grid td.hl { outline: 2px solid var(--ink); }
table.p-grid td.na { background: transparent; color: var(--p-faint); }
.p-legend { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--ink-soft); margin-top: 10px; flex-wrap: wrap; }
.p-legend .ramp { width: 180px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--p-behind), var(--p-neutral), var(--p-ahead)); }

.p-tip { position: fixed; pointer-events: none; background: var(--ink); color: #fff; padding: 6px 9px; border-radius: 7px;
  font-size: .8rem; z-index: 50; max-width: 260px; font-variant-numeric: tabular-nums; opacity: 0; transition: opacity .1s; }
.p-foot { margin-top: 28px; font-size: .86rem; color: var(--ink-soft); max-width: 78ch; }
.p-foot h2 { font-size: 1.05rem; color: var(--navy); margin: 0 0 6px; }
.p-foot li { margin-bottom: 5px; }

@media (max-width: 640px) {
  .p-stage { grid-template-columns: 1fr auto; }
  .p-stage .p-bars { grid-column: 1 / -1; grid-row: 2; }
  .p-ovbar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .p-bar { transition: none; } }
/* Combined / Senate bills / House bills: first in the compare bar, set off from the rest */
.p-who { padding-right: 12px; margin-right: 2px; border-right: 1px solid var(--line); }
@media (max-width: 640px) { .p-who { border-right: 0; padding-right: 0; width: 100%; } }
