:root {
  --ink: #1b2330; --ink-soft: #55606f; --line: #e7e2d6;
  --brand: #1f5f8b; --brand-dark: #164667; --navy: #14304f;
  --gold: #c69a3f; --gold-deep: #a9781f; --accent: #cdee6b;
  --marble: #f6f4ef; --ok: #276749; --ok-soft: #e8f3ec; --ok-line: #bfe0cb;
  --die: #b42318; --die-soft: #fdeceb;
  --radius: 14px; --wrap: 880px;
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); background: var(--marble);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }

/* Top bar */
.m-topbar {
  background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30;
}
/* Inner content is constrained to the SAME max-width/padding as .m-wrap, so the
   Viewing chip + picker sit in the left-hand content column (not right-justified
   against the full viewport width) -- lines up with the cards below. */
.m-topbar-inner {
  max-width: var(--wrap); margin: 0 auto; width: 100%; padding: 10px 18px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; row-gap: 8px;
}
.m-brand { color: #fff; font-weight: 800; text-decoration: none; letter-spacing: .03em; }
.m-topbar-sub { color: #aebccd; font-size: .85rem; }

/* "Now viewing" chip -- always visible once a bill has loaded, so you never lose
   track of which bill you're on while scrolled down. */
.m-topbar-current { display: inline-flex; align-items: baseline; gap: 5px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  padding: 5px 12px; border-radius: 999px; font-size: .85rem; white-space: nowrap; }
.m-topbar-current[hidden] { display: none; }
.tbc-label { color: #aebccd; font-size: .78rem; }
.m-topbar-current b { color: #fff; font-weight: 700; }

/* Session + bill picker, same lookup as the landing page, docked in the sticky bar. */
.m-topbar-lookup { position: relative; display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px; padding: 5px 12px; }
#tb-session { background: transparent; border: 0; color: #fff; font-size: .8rem; font-weight: 700;
  border-right: 1px solid rgba(255,255,255,.25); padding-right: 8px; cursor: pointer; }
#tb-session option { color: #111; }
#tb-input { background: transparent; border: 0; color: #fff; font-size: .85rem; width: 240px; }
#tb-input::placeholder { color: #aebccd; }
#tb-session:focus, #tb-input:focus { outline: none; }
.tb-clear { appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 0 2px;
  margin: 0; color: #aebccd; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.tb-clear:hover { color: #fff; }
.tb-clear[hidden] { display: none; }
.tb-results { position: absolute; top: calc(100% + 8px); right: 0; min-width: 390px; max-width: 480px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  box-shadow: 0 14px 34px rgba(0,0,0,.28); z-index: 31; }
.tb-results[hidden] { display: none; }
.tb-item { display: block; padding: 9px 14px; text-decoration: none; color: var(--ink); font-size: .88rem;
  border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-item:last-child { border-bottom: 0; }
.tb-item:hover { background: var(--marble); }
.tb-item b { color: var(--brand-dark); }

/* Browse-by-prefix panel (shown when the field is empty/focused) */
.tb-hint { padding: 9px 14px; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.tb-prefixes { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; max-height: 260px; overflow-y: auto; }
.tb-prefix {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: var(--marble); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0;
  cursor: pointer; font: inherit; line-height: 1.3; text-align: left; transition: border-color .15s, background .15s; }
.tb-prefix:hover { border-color: var(--brand); background: #fff; }
.tb-prefix b { color: var(--brand-dark); font-size: .88rem; font-weight: 700; }
.tb-prefix span { color: var(--ink-soft); font-size: .72rem; }

.m-wrap { max-width: var(--wrap); margin: 0 auto; padding: 22px 18px 60px; }
.m-loading { color: var(--ink-soft); padding: 40px 0; text-align: center; }

/* ---- Header card ---------------------------------------------------------- */
.m-head { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 18px; box-shadow: 0 6px 20px rgba(120,90,20,.06); }
.m-eyebrow { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em;
  color: var(--gold-deep); font-weight: 700; }
.m-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }
.m-measure { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; color: var(--brand-dark); }
.m-chip { font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: var(--marble); border: 1px solid var(--line); color: var(--ink-soft); }
.m-chip.ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.m-relating { font-size: 1.05rem; color: var(--ink); margin: 6px 0 0; }
.m-relating b { font-weight: 700; }  .m-relating i { font-style: italic; }

/* ---- Summary -------------------------------------------------------------- */
.m-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 22px; margin-top: 16px; box-shadow: 0 6px 20px rgba(120,90,20,.05); }
.m-card h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--ink-soft); margin: 0 0 10px; }
.m-summary { position: relative; }
.m-summary-body p { margin: 0 0 .5em; }
.m-summary-body.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; }
.ogis-add { font-weight: 700; }
.ogis-del { display: none; }
/* a paragraph that is entirely redacted collapses to nothing until redactions show */
.p-del-only { display: none; }
.show-redactions .p-del-only { display: block; }
.show-redactions .ogis-del { display: inline; text-decoration: line-through; color: var(--die);
  opacity: .8; }
.m-summary-tools { display: flex; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.m-linkbtn { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer;
  padding: 0; font-weight: 600; }
.m-linkbtn:hover { text-decoration: underline; }
.m-read { font-size: .8rem; color: var(--ink-soft); margin-left: auto; }

/* ---- Sponsors ------------------------------------------------------------- */
.spon-clamp { max-height: 4.7em; overflow: hidden; transition: max-height .2s; }
.spon-clamp.open { max-height: none; }
.spon-chief, .spon-reg { margin: 0 0 6px; font-size: .98rem; }
.spon-lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink-soft); font-weight: 700; margin-right: 4px; }
.spon-title { color: var(--gold-deep); font-weight: 600; }
.spon-note { font-style: italic; color: var(--ink-soft); margin: 2px 0 0; font-size: .9rem; }
.spon-committee { font-weight: 600; }
#spon-expand { margin-top: 4px; }

/* ---- Bill Documents (round version boxes) --------------------------------- */
.doc-boxes { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-box { display: inline-block; padding: 7px 15px; border-radius: 999px; font-size: .88rem;
  font-weight: 600; text-decoration: none; color: var(--brand-dark);
  background: var(--marble); border: 1px solid var(--line); transition: border-color .15s, transform .12s; }
a.doc-box:hover { border-color: var(--brand); transform: translateY(-1px); }
.doc-box.default { border-width: 2px; border-color: var(--brand-dark); background: #fff; }
.doc-box.waiting { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark);
  cursor: default; opacity: .85; }

/* ---- Analysis & Impact ---------------------------------------------------- */
.m-analysis h2 { display: flex; align-items: baseline; gap: 8px; }
.an-ver { font-size: .7rem; text-transform: none; letter-spacing: 0; color: var(--ink-soft);
  font-weight: 600; background: var(--marble); border: 1px solid var(--line); padding: 1px 7px; border-radius: 999px; }
.an-testimony { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.an-pill { font-size: .82rem; font-weight: 700; padding: 3px 11px; border-radius: 999px;
  background: var(--marble); border: 1px solid var(--line); }
.an-pill.sup { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.an-pill.opp { background: var(--die-soft); border-color: #f3c9c6; color: var(--die); }
.an-pill.neu { background: #eef2f7; border-color: #d7e0ea; color: var(--brand-dark); }
.an-total { font-size: .82rem; color: var(--ink-soft); }
.an-none { color: var(--ink-soft); font-size: .9rem; margin-bottom: 10px; }
.an-row { display: flex; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); font-size: .92rem; }
.an-k { flex: 0 0 150px; color: var(--ink-soft); font-weight: 600; }
.an-v { flex: 1; }
.an-flag { color: var(--ok); font-weight: 700; }
.an-ogis { margin: 2px 0 4px 160px; }
.an-ogis-body { margin-top: 6px; font-size: .9rem; background: var(--marble); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; }
.an-foot { margin-top: 12px; font-size: .85rem; }

/* ---- Flow chart ----------------------------------------------------------- */
.m-flow { margin-top: 26px; }
.m-flow-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; }
.m-flow h2 { font-size: 1.05rem; margin: 0 0 6px; color: var(--brand-dark); }
.m-flow-sub { color: var(--ink-soft); font-size: .88rem; margin: 0 0 16px; }

/* demo date slider */
.m-slider { background: var(--marble); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; margin: 0 0 16px; }
.m-slider-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.m-slider-lbl { font-size: .82rem; color: var(--ink-soft); }
.m-slider-lbl b { color: var(--brand-dark); }
#date-slider { width: 100%; margin: 8px 0 0; accent-color: var(--brand); }
.m-upcoming { margin-top: 10px; border: 1.5px dashed var(--gold); border-radius: 10px;
  padding: 8px 12px; background: #fffdf5; }
.up-head { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
  color: var(--gold-deep); margin-bottom: 4px; }
.up-item { font-size: .88rem; color: var(--ink); padding: 2px 0; }
.up-check { color: var(--ok); font-weight: 800; }

.m-section { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin-bottom: 8px; background: #fff; }
.m-section-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  font-weight: 800; color: var(--brand-dark); background: var(--marble); }
.m-section.done .m-section-head { background: var(--ok-soft); color: var(--ok); }
.m-section-badge { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 9px; border-radius: 999px; background: #fff; border: 1px solid var(--ok-line);
  color: var(--ok); font-weight: 700; }
.m-section.expected .m-section-badge { border-color: var(--line); color: var(--ink-soft); }

.m-steps { padding: 8px 18px 16px; }
/* connector line down the left */
.m-step { position: relative; padding: 10px 0 10px 26px; }
.m-step::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px;
  background: var(--ok-line); }
.m-step:first-child::before { top: 16px; }
.m-step:last-child::before { bottom: calc(100% - 16px); }
.m-step::after { content: ""; position: absolute; left: 2px; top: 14px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.m-step.expected::after { background: #cbd3dc; box-shadow: 0 0 0 3px #eef1f4; }
.m-step.died::after { background: var(--die); box-shadow: 0 0 0 3px var(--die-soft); }

.m-step-label { font-weight: 700; font-size: .95rem; }
.m-step.died .m-step-label { color: var(--die); }
/* ghost step: rounded dashed box AROUND THE TEXT; keep the timeline dot in the gutter */
.m-step.ghost .m-step-text { position: relative; border: 1.5px dashed #cbd3dc; border-radius: 12px;
  padding: 13px 16px 11px; margin-top: 4px; color: var(--ink-soft); font-style: italic; }
.m-step.ghost.current .m-step-text { border-color: var(--gold); }
.m-step.ghost::after { background: #cbd3dc; box-shadow: 0 0 0 3px #eef1f4; }
.m-step.ghost.done::after { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.m-step.ghost.current::after { background: var(--gold); box-shadow: 0 0 0 3px #f6ecd0; }
.ghost-legend { position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
  background: #fff; padding: 0 8px; font-size: .62rem; text-transform: uppercase;
  letter-spacing: .08em; font-weight: 700; color: #9aa6b4; font-style: normal; }
.ghost-tag { font-style: normal; font-weight: 700; font-size: .7rem; text-transform: uppercase;
  letter-spacing: .04em; color: var(--gold-deep); background: #f6ecd0; padding: 1px 7px; border-radius: 999px; }
.m-step-text { font-size: .9rem; margin-top: 2px; }
.co-detail { margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--line); }
.co-line { font-size: .84rem; color: var(--ink-soft); padding: 2px 0; }
.pci-note { margin-top: 6px; font-size: .85rem; color: var(--ink-soft); font-style: italic;
  background: var(--marble); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
/* Not a real link, but should look like the other m-ext links: regular weight, underlined. */
.pci-note-btn { background: none; border: 0; padding: 0; font: inherit; cursor: pointer;
  color: var(--brand); font-weight: 400; text-decoration: underline; }
.pci-note-btn:hover { color: var(--brand-dark); }
.m-nav { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 50%; border: 1px solid var(--line); color: var(--brand-dark); text-decoration: none;
  font-size: 1.3rem; line-height: 1; background: #fff; transition: border-color .15s, background .15s; }
.m-nav:hover { border-color: var(--brand); background: var(--marble); }
.m-inline-meta { color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.m-inline-meta::after { content: " — "; color: var(--ink-soft); font-weight: 400; }
.m-votes { margin-top: 5px; font-size: .82rem; color: var(--ink); display: flex;
  flex-wrap: wrap; gap: 4px 10px; }
.m-votes .vk { color: var(--ink-soft); font-weight: 600; }
.m-tag { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px;
  border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.m-tag.vote { background: var(--navy); color: #fff; }
.m-tag.skip { background: var(--marble); border: 1px solid var(--line); color: var(--ink-soft); }
.m-ext::after { content: " ↗"; font-size: .75em; }
/* Video links get a play-icon instead of the little arrow. */
.m-ext.m-video::after { content: none; }
.m-ext.m-video { display: inline-flex; align-items: center; gap: 4px; color: var(--brand-dark);
  font-weight: 600; }
.m-ext.m-video .video-icon { color: var(--brand); flex: 0 0 auto; }
.m-ext.m-video:hover .video-icon { color: var(--brand-dark); }

.m-foot { margin-top: 28px; font-size: .82rem; color: var(--ink-soft); text-align: center; }

@media (max-width: 560px) {
  .m-measure { font-size: 1.55rem; }
  .m-wrap { padding: 16px 12px 48px; }
}

@media (max-width: 720px) {
  .m-topbar-sub { display: none; }
  .m-topbar-current { margin-left: 0; order: 3; flex: 1 1 100%; }
  .m-topbar-lookup { order: 2; }
  #tb-input { width: 100px; }
}
