/* Ratifi: modern and bold. Civic teal + highlighter yellow on true grays (no party colors); Archivo with its wide axis for display. */
:root {
  --bg: #F6F6F4;
  --surface: #FFFFFF;
  --ink: #16181D;
  --muted: #5A5F6B;
  --rule: #E2E2DE;
  --cobalt: #0F766E;      /* the accent: civic teal (the variable keeps its old name) */
  --cobalt-deep: #0B5A54;
  --cobalt-soft: #DDF1EE;
  --hi: #FFC92E;          /* highlighter: current stage */
  --on-cobalt: #FFFFFF;
  --on-button: #FFFFFF;
  --on-cobalt-muted: #D3EDE8;
  --track-on-cobalt: rgba(255, 255, 255, .22);
  --veto: #B45309;        /* amber, not red: no red-versus-blue pairing */
  --link: #0F766E;
  --focus: #0F766E;
  --hero-bg: #0F6B63;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1113;
    --surface: #181B1F;
    --ink: #ECEDEE;
    --muted: #A3A8B0;
    --rule: #2A2E34;
    --cobalt: #2DD4BF;
    --cobalt-deep: #14B8A6;
    --cobalt-soft: #12332F;
    --hi: #FFD24D;
    --on-cobalt: #FFFFFF;
    --on-button: #0F1113;
    --on-cobalt-muted: #CBE8E2;
    --track-on-cobalt: rgba(255, 255, 255, .18);
    --veto: #F59E0B;
    --link: #5EEAD4;
    --focus: #FFD24D;
    --hero-bg: #0D4F49;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--font); }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface); color: var(--ink); padding: .5rem 1rem; }
.wrap { max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }

/* Brand */
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-stretch: 125%; font-size: 1.3rem; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand__mark { display: inline-flex; gap: 2px; align-items: flex-end; }
.brand__mark i { display: block; width: 6px; border-radius: 1px; background: var(--cobalt); }
.brand__mark i:nth-child(1) { height: 10px; }
.brand__mark i:nth-child(2) { height: 15px; }
.brand__mark i:nth-child(3) { height: 20px; background: var(--hi); }
.brand--small { font-size: 1.05rem; }

/* Masthead */
.masthead { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--rule); box-shadow: 0 8px 20px -14px rgba(14, 20, 51, .45); }
.masthead__inner { display: flex; flex-wrap: wrap; gap: .75rem 1.75rem; align-items: center; padding-block: .85rem; }
html { scroll-padding-top: 5rem; }
.mainnav { margin-right: auto; }
.mainnav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.mainnav a { font-size: .9rem; font-weight: 600; color: var(--ink); text-decoration: none; padding: .3rem .1rem; }
.mainnav a:hover { text-decoration: underline; text-underline-offset: .45em; }
.mainnav a[aria-current] { text-decoration: underline; text-decoration-color: var(--hi); text-decoration-thickness: 3px; text-underline-offset: .45em; }
.masthead--hero { background: var(--hero-bg); border-bottom: 0; box-shadow: 0 8px 20px -14px rgba(5, 10, 46, .7); }
.masthead--hero .brand, .masthead--hero .mainnav a, .masthead--hero .menu-btn { color: var(--on-cobalt); }

/* Menu button + slide-in drawer (mobile) */
.menu-btn { display: none; align-items: center; gap: .5rem; margin-left: auto; padding: .45rem .7rem; font: 700 .9rem var(--font); color: var(--ink); background: transparent; border: 2px solid currentColor; border-radius: 10px; cursor: pointer; }
.menu-btn__icon { display: grid; gap: 3px; }
.menu-btn__icon i { display: block; width: 18px; height: 2px; border-radius: 1px; background: currentColor; }
.menu-btn__icon i:nth-child(2) { width: 13px; }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(21rem, 88vw); height: 100%; max-height: 100%; max-width: 100%; padding: 0; border: 0; background: var(--surface); color: var(--ink); box-shadow: -24px 0 48px -24px rgba(5, 10, 46, .5); transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1), overlay .28s allow-discrete, display .28s allow-discrete; }
.drawer[open] { transform: translateX(0); }
@starting-style { .drawer[open] { transform: translateX(100%); } }
.drawer::backdrop { background: rgba(8, 12, 40, .55); }
.drawer__inner { height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 1.5rem; padding: 1rem 1.25rem 1.5rem; border-left: 6px solid var(--cobalt); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; }
.drawer__close { width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.drawer__close:hover { background: var(--bg); }
.drawer__search { display: grid; gap: .5rem; }
.drawer__search input { font: inherit; padding: .75rem .9rem; color: var(--ink); background: var(--bg); border: 2px solid var(--rule); border-radius: 10px; }
.drawer__search .btn { padding: .7rem 1rem; }
.drawer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; }
.drawer__nav a { display: block; padding: .85rem .2rem .85rem 1rem; font-weight: 800; font-stretch: 110%; font-size: 1.2rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); border-left: 4px solid transparent; }
.drawer__nav a:hover { background: var(--bg); }
.drawer__nav a[aria-current] { border-left-color: var(--hi); color: var(--cobalt); }
.drawer__foot { margin: auto 0 0; font-size: .82rem; color: var(--muted); }
html.is-locked { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .drawer { transition: none; } }
@media (max-width: 48rem) {
  .js .menu-btn { display: inline-flex; }
  .js .mainnav, .js .search--header { display: none; }
}
.masthead--hero .brand__mark i { background: var(--on-cobalt); }
.masthead--hero .brand__mark i:nth-child(3) { background: var(--hi); }

/* Search */
.search { display: flex; }
.search input { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--surface); border: 2px solid var(--rule); border-right: 0; border-radius: 10px 0 0 10px; }
.search button, .btn { font: 700 1rem var(--font); cursor: pointer; border: 2px solid var(--cobalt); background: var(--cobalt); color: var(--on-button); }
.search button { border-radius: 0 10px 10px 0; }
.search button:hover, .btn:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); }
.search--header { flex: 1 1 18rem; max-width: 30rem; }
.search--header input { padding: .5rem .8rem; }
.search--header button { padding: .5rem 1rem; }
.search--hero { max-width: 40rem; }
.search--hero input { padding: 1rem 1.15rem; font-size: 1.1rem; border-color: transparent; }
.search--hero button { padding: 1rem 1.4rem; font-size: 1.05rem; background: var(--hi); border-color: var(--hi); color: #16181D; }
.search--hero button:hover { background: #FFD95E; border-color: #FFD95E; }
.btn { display: inline-block; border-radius: 10px; padding: .55rem 1rem; text-decoration: none; }
.btn--big { padding: .8rem 1.3rem; font-size: 1.05rem; }
.btn--ghost { background: transparent; color: var(--cobalt); }
.btn--ghost:hover { background: var(--cobalt-soft); color: var(--ink); }

/* Landing: hero */
.hero { background: var(--hero-bg); color: var(--on-cobalt); padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero__title { font-weight: 900; font-stretch: 125%; font-size: clamp(2.6rem, 1.4rem + 5.4vw, 6rem); line-height: .98; letter-spacing: -.03em; margin: 0 0 1.25rem; max-width: 14ch; }
.hero__lede { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.5; color: var(--on-cobalt-muted); max-width: 46ch; margin: 0 0 2rem; }
.hero__alt { margin: .9rem 0 0; }
.hero a { color: var(--on-cobalt); }
.hero :focus-visible { outline-color: var(--hi); }

.bigrail { margin-top: clamp(3rem, 7vw, 5rem); }
.bigrail__caption { font-size: 1rem; font-weight: 600; color: var(--on-cobalt-muted); margin: 0 0 1rem; }
.bigrail__track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.bigrail__step a { display: block; text-decoration: none; color: var(--on-cobalt); padding-bottom: .5rem; border-radius: 4px; }
.bigrail__bar { display: block; height: 14px; border-radius: 3px; background: var(--track-on-cobalt); position: relative; overflow: hidden; margin-bottom: 1rem; }
.bigrail__bar::after { content: ""; position: absolute; inset: 0; background: var(--on-cobalt); transform-origin: left; transform: scaleX(var(--p, 1)); }
.bigrail__step:last-child .bigrail__bar::after { background: var(--hi); }
.bigrail__step { container-type: inline-size; min-width: 0; }
.bigrail__count { display: block; font-weight: 900; font-stretch: 125%; font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3.2rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Size each count to its own column so 6- and 7-digit numbers never run into the next step */
@supports (font-size: 1cqi) { .bigrail__count { font-size: clamp(1.2rem, 19cqi, 3.2rem); } }
.bigrail__label { display: block; margin-top: .35rem; font-size: .95rem; font-weight: 600; color: var(--on-cobalt-muted); }
.bigrail__step a:hover .bigrail__label { color: var(--on-cobalt); text-decoration: underline; }
.bigrail__note { margin: 1rem 0 0; font-size: .95rem; }

@media (prefers-reduced-motion: no-preference) {
  .bigrail__bar::after { animation: fill .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 110ms + 150ms); }
  @keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(var(--p, 1)); } }
}

/* Landing: map card */
.mapcard { --mapcard-bg: color-mix(in srgb, #000000 22%, var(--hero-bg)); margin-top: clamp(2.5rem, 6vw, 4rem); background: var(--mapcard-bg); border-radius: 20px; padding: clamp(1.1rem, 3vw, 2rem); }
.mapcard__title { font-weight: 800; font-stretch: 115%; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.02em; line-height: 1.1; margin: 0 0 .35rem; }
.mapcard__hint { margin: 0; color: var(--on-cobalt-muted); max-width: 52ch; }
.usmap-wrap { position: relative; margin-top: 1.25rem; min-height: 8rem; }
.usmap-wrap__loading { color: var(--on-cobalt-muted); margin: 0; }
.usmap { display: block; width: 100%; height: auto; }
.usmap .st { fill: rgba(255, 255, 255, var(--heat, .1)); stroke: var(--mapcard-bg); stroke-width: .8; stroke-linejoin: round; transition: fill .12s ease; }
.usmap .st.is-tracked { cursor: pointer; }
.usmap .st.is-untracked { fill: rgba(255, 255, 255, .08); }
.usmap .st.is-empty { fill: rgba(255, 255, 255, .2); }
.usmap .st.is-active { fill: var(--hi); }
.usmap .st:focus { outline: none; }
.usmap .st:focus-visible { stroke: #FFFFFF; stroke-width: 2.5; }
.usmap .st.st--terr { stroke: rgba(255, 255, 255, var(--heat, .25)); stroke-width: 2.5; }
.usmap .st.st--terr.is-active { stroke: var(--hi); }
.usmap .st.st--hit, .usmap .st.st--hit.is-active { fill: transparent; stroke: none; }
.usmap .st.st--hit:focus-visible { stroke: var(--hi); stroke-width: 2.5; }
.usmap__frame { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .2); stroke-width: 1; }
.usmap__tlabel { fill: var(--on-cobalt-muted); font: 600 12px var(--font); text-anchor: middle; }
.usmap__dc line { stroke: rgba(255, 255, 255, .55); stroke-width: 1; }
.usmap__dc text { fill: var(--on-cobalt); font: 700 12px var(--font); }
.maplegend { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; margin-top: 1rem; font-size: .85rem; color: var(--on-cobalt-muted); }
.maplegend__ramp, .maplegend__item { display: inline-flex; align-items: center; gap: .5rem; }
.maplegend__bar { width: 6rem; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .95)); }
.maplegend__item i { width: 12px; height: 12px; border-radius: 3px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }

.maptip { position: absolute; z-index: 5; width: 19.5rem; max-width: 100%; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 1rem 1.1rem 1.05rem; box-shadow: 0 18px 44px -12px rgba(5, 10, 46, .55); pointer-events: none; }
.maptip.is-pinned { pointer-events: auto; }
.maptip--docked { position: relative; left: auto !important; top: auto !important; width: 100%; margin-top: .75rem; }
.maptip__close { position: absolute; top: .45rem; right: .55rem; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.maptip__close:hover { background: var(--bg); color: var(--ink); }
.maptip__name { font-weight: 800; font-stretch: 110%; font-size: 1.15rem; line-height: 1.2; margin: 0; padding-right: 1.5rem; }
.maptip__total { margin: .1rem 0 .75rem; color: var(--muted); font-size: .9rem; }
.maptip__stages { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.maptip__stages li { display: grid; grid-template-columns: 9.6rem minmax(0, 1fr) 2.6rem; align-items: center; gap: .5rem; font-size: .84rem; }
.maptip__bar { display: block; height: 8px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.maptip__bar i { display: block; height: 100%; width: calc(var(--p) * 100%); border-radius: 4px; background: var(--cobalt); }
.maptip__stages li:last-child .maptip__bar i { background: var(--hi); }
.maptip__stages b { text-align: right; font-variant-numeric: tabular-nums; }
.maptip__veto { margin: .6rem 0 0; font-size: .85rem; font-weight: 700; color: var(--veto); }
.maptip__cta, .maptip__msg { margin: .7rem 0 0; font-size: .85rem; color: var(--muted); }
.maptip__msg { margin-top: .35rem; }
.hero .maptip a.maptip__link { display: inline-block; margin-top: .8rem; font-weight: 700; color: var(--link); }
@media (max-width: 40rem) { .usmap__tlabel { display: none; } }

/* Landing: bands */
.band { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.band + .band { border-top: 1px solid var(--rule); }
.band--plain { background: var(--surface); }
.band__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-bottom: 1.75rem; }
.band__title { font-weight: 800; font-stretch: 115%; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1.1; letter-spacing: -.02em; margin: 0; }
.band__title--wide { max-width: 20ch; margin-bottom: 2.25rem; }
.band__title + .coverage { margin-top: 1.5rem; }

.moving { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; }
.moving__item { background: var(--surface); border: 2px solid var(--rule); border-radius: 14px; padding: 1.1rem 1.15rem 1rem; display: flex; flex-direction: column; gap: .8rem; }
.moving__item:hover { border-color: var(--cobalt); }
.moving__link { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.moving__meta { font-size: .88rem; color: var(--muted); }
.moving__meta strong { color: var(--ink); margin-right: .35rem; }
.moving__title { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.moving__link:hover .moving__title { text-decoration: underline; }
.moving__when { margin: 0; font-size: .85rem; color: var(--muted); }

.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem; }
.point { border-top: 6px solid var(--cobalt); padding-top: 1.1rem; }
.point:nth-child(3) { border-top-color: var(--hi); }
.point h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.25; margin: 0 0 .5rem; }
.point p { margin: 0; color: var(--muted); max-width: 40ch; }

.coverage { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.coverage a { display: inline-flex; align-items: baseline; gap: .7rem; padding: .7rem 1.1rem; border-radius: 999px; background: var(--surface); border: 2px solid var(--rule); color: var(--ink); text-decoration: none; font-weight: 700; }
.coverage a:hover { border-color: var(--cobalt); }
.coverage__n { font-weight: 500; color: var(--muted); font-size: .9rem; }

.cta { background: var(--ink); color: var(--bg); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.cta__inner { display: grid; gap: 1.5rem; }
.cta__title { font-weight: 900; font-stretch: 125%; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.4rem); line-height: 1.02; letter-spacing: -.025em; margin: 0; max-width: 16ch; }
.cta .search--hero input { border-color: transparent; }
.cta :focus-visible { outline-color: var(--hi); }

/* Bill list */
.list-head { padding: 2.5rem 0 1rem; }
.list-head h1 { font-weight: 900; font-stretch: 120%; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); line-height: 1.05; letter-spacing: -.025em; margin: 0 0 .4rem; }
.count { margin: 0; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; }
.stage-filter { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: 0 0 1.75rem; padding: 0; }
.stage-filter a { display: inline-flex; gap: .45rem; align-items: baseline; padding: .4rem .85rem; font-size: .92rem; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--surface); border: 2px solid var(--rule); border-radius: 999px; }
.stage-filter a:hover { border-color: var(--cobalt); }
.stage-filter a[aria-current] { color: var(--on-button); background: var(--cobalt); border-color: var(--cobalt); }
.stage-filter .n { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.stage-filter a[aria-current] .n { color: inherit; opacity: .75; }

.layout { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-bottom: 2rem; }
.filters { display: grid; gap: 1rem; position: sticky; top: 5.5rem; }
.filters label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .3rem; }
.filters input[type=search] { width: 100%; font: inherit; padding: .5rem .6rem; color: var(--ink); background: var(--surface); border: 2px solid var(--rule); border-radius: 8px; }
.filters select { width: 100%; font: inherit; padding: .5rem .55rem; color: var(--ink); background: var(--surface); border: 2px solid var(--rule); border-radius: 8px; }

.bills { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.bill { background: var(--surface); border: 2px solid var(--rule); border-radius: 14px; padding: 1.15rem 1.25rem 1.2rem; }
.bill:hover { border-color: var(--cobalt); }
.bill__meta { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin: 0; font-size: .88rem; color: var(--muted); }
.bill__id { font-weight: 800; color: var(--ink); }
.bill__title { font-weight: 700; font-size: 1.18rem; line-height: 1.3; letter-spacing: -.005em; margin: .3rem 0 .85rem; max-width: 62ch; }
.bill__title a { color: var(--ink); text-decoration: none; }
.bill__title a:hover { text-decoration: underline; }
.bill__latest, .bill__sponsor { margin: .6rem 0 0; max-width: 75ch; font-size: .93rem; color: var(--muted); }
.bill__sponsor a { color: inherit; font-weight: 600; }
.bill__latest time { margin-right: .5rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.empty { padding: 2rem 0; color: var(--muted); }
.contract__flag { margin: .3rem 0 0; padding: .4rem .6rem; border-left: 3px solid #C77700; background: color-mix(in srgb, #C77700 10%, transparent); font-size: .9rem; }
.contract__count { font-weight: 600; color: var(--muted); }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; color: var(--muted); font-weight: 600; }

/* Compact rail (list rows, cards) */
.rail { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.rail__track { display: flex; align-items: center; gap: 3px; list-style: none; margin: 0; padding: 0; }
.rail--compact .rail__step { width: 2.1rem; height: .5rem; background: var(--rule); border-radius: 2px; }
.rail--compact .is-reached { background: var(--cobalt); }
.rail--compact .is-current { background: var(--hi); height: .8rem; box-shadow: inset 0 0 0 2px var(--cobalt); }
.rail--compact .is-veto.is-reached { background: var(--veto); box-shadow: none; }
.rail__status { font-weight: 700; font-size: .9rem; }
.rail__status.is-veto { color: var(--veto); }

/* Full rail (bill page) */
.progress { margin: 1.75rem 0 2.75rem; padding: 1.7rem 1.5rem 1.5rem; background: var(--surface); border: 2px solid var(--rule); border-radius: 16px; }
.rail--full .rail__track { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: start; }
.rail--full .rail__step { position: relative; padding: 1.9rem .75rem 0 0; }
.rail--full .rail__step::before { content: ""; position: absolute; top: .5rem; left: .6rem; right: 0; height: 6px; border-radius: 3px; background: var(--rule); }
.rail--full .rail__step:last-child::before { display: none; }
.rail--full .rail__step::after { content: ""; position: absolute; top: 0; left: 0; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--surface); border: 3px solid var(--rule); }
.rail--full .is-reached:not(.is-current)::before { background: var(--cobalt); }
.rail--full .is-reached::after { background: var(--cobalt); border-color: var(--cobalt); }
.rail--full .is-current::after { background: var(--hi); border-color: var(--cobalt); box-shadow: 0 0 0 5px var(--cobalt-soft); }
.rail--full .is-veto.is-reached::after { background: var(--veto); border-color: var(--veto); box-shadow: 0 0 0 5px color-mix(in srgb, var(--veto) 22%, transparent); }
.rail__label { display: block; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.rail--full .rail__step:not(.is-reached) .rail__label { font-weight: 500; color: var(--muted); }
.rail--full .is-veto.is-reached .rail__label { color: var(--veto); }
.rail--full time, .rail__pending { display: block; margin-top: .15rem; font-size: .84rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .rail--full .is-reached::after { animation: pop .35s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i) * 90ms); }
  @keyframes pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
}

/* Bill page */
.crumbs { padding-top: 1.75rem; font-size: .92rem; font-weight: 600; }
.bill-head__id { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: 1rem 0 .4rem; font-weight: 800; }
.bill-head__id span { font-weight: 500; color: var(--muted); }
.bill-head__title { font-weight: 900; font-stretch: 112%; font-size: clamp(1.7rem, 1.1rem + 2.2vw, 2.9rem); line-height: 1.08; letter-spacing: -.025em; margin: 0; max-width: 30ch; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 3rem; align-items: start; padding-bottom: 3rem; }
.section-h { font-size: 1.2rem; font-weight: 800; margin: 0 0 .8rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .2rem 1.25rem; padding: .85rem 0; border-top: 1px solid var(--rule); }
.timeline time { font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; max-width: 68ch; }
.timeline__chamber { display: block; font-size: .8rem; color: var(--muted); }
.timeline .is-milestone time { color: var(--cobalt); font-weight: 700; }
.timeline .is-milestone p { font-weight: 700; }
.facts { background: var(--surface); border: 2px solid var(--rule); border-radius: 14px; padding: 1.25rem; }
.facts dl { margin: 0; }
.facts dt { margin-top: 1.1rem; font-size: .85rem; color: var(--muted); }
.facts dt:first-child { margin-top: 0; }
.facts dd { margin: .15rem 0 0; font-weight: 600; }
.facts ul { list-style: none; margin: 0; padding: 0; }
.facts li + li { margin-top: .25rem; }
.more summary { cursor: pointer; margin-top: .4rem; font-weight: 700; color: var(--link); }
.more ul { margin-top: .4rem; }
.facts dd a { color: inherit; }
.source-link { font-size: .9rem; }
.source-link { display: inline-block; margin-top: 1.4rem; font-weight: 700; }

/* Plain-language summary */
.summary { background: var(--surface); border: 2px solid var(--rule); border-left: 6px solid var(--cobalt); border-radius: 14px; padding: 1.2rem 1.3rem; margin-bottom: 2rem; }
.summary__body { max-width: 70ch; }
.summary__body p { margin: 0 0 .8rem; }
.summary__body ul, .summary__body ol { margin: 0 0 .8rem; padding-left: 1.25rem; }
.summary__note { margin: .4rem 0 0; font-size: .85rem; color: var(--muted); }

/* Cost estimates */
.tag { display: inline-block; padding: 0 .55rem; border-radius: 999px; background: var(--cobalt-soft); color: var(--ink); font-size: .8rem; font-weight: 700; line-height: 1.6; }
.estimates { background: var(--surface); border: 2px solid var(--rule); border-left: 6px solid var(--hi); border-radius: 14px; padding: 1.2rem 1.3rem; margin-bottom: 2.25rem; }
.estimates__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.estimates__link { font-weight: 700; }
.estimates__meta { display: block; font-size: .85rem; color: var(--muted); margin-top: .1rem; }
.estimates__list p { margin: .35rem 0 0; color: var(--muted); max-width: 68ch; }
.estimates__note { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }

/* Bill text */
.bill-head__actions { margin: 1.25rem 0 0; }
.text-head { padding-bottom: 1.5rem; }
.text-head__title { font-weight: 800; font-stretch: 110%; font-size: clamp(1.4rem, 1.05rem + 1.4vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; margin: 0; max-width: 40ch; }
.text-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2.5rem; align-items: start; padding-bottom: 3rem; }
.text-side { position: sticky; top: 5.5rem; display: grid; gap: 1rem; justify-items: start; }
.text-side__h { font-size: 1rem; font-weight: 800; margin: 0; }
.text-side__back { font-weight: 600; font-size: .92rem; }
.versions { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; width: 100%; }
.versions a { display: block; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.versions a:hover { border-color: var(--rule); }
.versions a[aria-current] { background: var(--surface); border-color: var(--cobalt); }
.versions__note { display: block; font-weight: 700; font-size: .92rem; line-height: 1.3; }
.versions time { font-size: .82rem; color: var(--muted); }
.billtext-wrap { background: var(--surface); border: 2px solid var(--rule); border-radius: 16px; padding: clamp(1.25rem, 3vw, 2.5rem); }
.billtext-version { font-size: 1.1rem; font-weight: 800; margin: 0 0 1rem; }
.billtext-version span { font-weight: 500; color: var(--muted); margin-left: .4rem; }
.legend { font-size: .9rem; color: var(--muted); background: var(--bg); border-radius: 8px; padding: .6rem .8rem; margin: 0 0 1.5rem; }
.billtext { font-size: 1.04rem; line-height: 1.7; max-width: 72ch; overflow-wrap: anywhere; }
.billtext p { margin: 0 0 .9rem; }
.billtext .bt-l1 { padding-left: 1.25rem; } .billtext .bt-l2 { padding-left: 2.5rem; }
.billtext .bt-l3 { padding-left: 3.75rem; } .billtext .bt-l4, .billtext .bt-l5 { padding-left: 5rem; }
.billtext .bt-center { text-align: center; font-weight: 700; }
.billtext .bt-head { font-weight: 800; margin-top: 1.6rem; }
.billtext u, .billtext ins { text-decoration-color: var(--cobalt); text-decoration-thickness: 2px; background: color-mix(in srgb, var(--cobalt) 8%, transparent); }
.billtext s, .billtext strike, .billtext del { color: var(--veto); }
.billtext table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.billtext td, .billtext th { border: 1px solid var(--rule); padding: .3rem .5rem; vertical-align: top; }
.billtext-source { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .85rem; color: var(--muted); }
.text-empty { color: var(--muted); }
@media (max-width: 52rem) {
  .text-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .text-side { position: static; }
  .versions { display: flex; overflow-x: auto; gap: .4rem; padding-bottom: .25rem; }
  .versions li { flex: 0 0 auto; }
  .billtext .bt-l3, .billtext .bt-l4, .billtext .bt-l5 { padding-left: 2.5rem; }
}
@media (max-width: 40rem) { .billtext .bt-l2, .billtext .bt-l3, .billtext .bt-l4, .billtext .bt-l5 { padding-left: 1.25rem; } }

/* Accounts and watchlists */
.acct-link { font-size: .9rem; font-weight: 700; color: var(--ink); text-decoration: none; padding: .35rem .2rem; }
.acct-link:hover { text-decoration: underline; text-underline-offset: .45em; }
.acct-link[aria-current] { text-decoration: underline; text-decoration-color: var(--hi); text-decoration-thickness: 3px; text-underline-offset: .45em; }
.masthead--hero .acct-link { color: var(--on-cobalt); }
.bill-head__actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 1.25rem 0 0; }
.bill-head__actions form { margin: 0; }
.btn--ghost { border: 2px solid var(--cobalt); }
.watchbtn.is-on { background: var(--cobalt-soft); color: var(--ink); }
.watchbtn.is-on::before { content: "✓ "; }
.authcard { max-width: 30rem; margin: clamp(2rem, 6vw, 4rem) auto; background: var(--surface); border: 2px solid var(--rule); border-radius: 18px; padding: clamp(1.4rem, 4vw, 2.25rem); }
.authcard__title { font-weight: 900; font-stretch: 115%; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .6rem; }
.authcard__lede { margin: 0 0 1.4rem; color: var(--muted); }
.authcard__fine { margin: 1.25rem 0 0; font-size: .88rem; color: var(--muted); }
.authform { display: grid; gap: .5rem; }
.authform label { font-weight: 700; font-size: .92rem; }
.authform input[type=email], .authform input:not([type]), .authform input[type=text] { font: inherit; padding: .8rem .9rem; color: var(--ink); background: var(--bg); border: 2px solid var(--rule); border-radius: 10px; }
.authform input[aria-invalid] { border-color: var(--veto); }
.authform .btn { margin-top: .5rem; }
.formerror { margin: 0 0 1rem; color: var(--veto); font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.acct-side { display: grid; gap: 1.25rem; position: sticky; top: 5.5rem; }
.prefs { display: grid; gap: .75rem; background: var(--surface); border: 2px solid var(--rule); border-radius: 14px; padding: 1.1rem; }
.prefs__h { font-size: 1rem; font-weight: 800; margin: 0; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .92rem; line-height: 1.35; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .1rem; accent-color: var(--cobalt); flex: none; }
.linkbtn { font: 600 .92rem var(--font); color: var(--link); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .18em; }
.bill__unwatch { margin: .75rem 0 0; }
.toasts { position: fixed; z-index: 30; left: 50%; bottom: 1.25rem; transform: translateX(-50%); display: grid; gap: .5rem; width: min(32rem, calc(100% - 2rem)); }
.toast { margin: 0; padding: .85rem 1.1rem; border-radius: 12px; background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: 0 14px 34px -14px rgba(5, 10, 46, .6); }
.toast--success { border-left: 6px solid var(--hi); }
.toast { animation: toast-out .4s ease-in 6s forwards; }
@media (prefers-reduced-motion: no-preference) { .toast { animation: toast-in .3s ease-out both, toast-out .4s ease-in 6s forwards; } }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } }
@keyframes toast-out { to { opacity: 0; visibility: hidden; } }
@media (max-width: 52rem) { .acct-side { position: static; } }
@media (max-width: 48rem) { .js .acct-link { display: none; } }

/* Page hero (secondary pages) */
.pagehero { background: var(--hero-bg); color: var(--on-cobalt); padding: clamp(2.25rem, 5vw, 3.75rem) 0; }
.pagehero__title { font-weight: 900; font-stretch: 125%; font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); line-height: 1; letter-spacing: -.03em; margin: 0 0 1rem; max-width: 16ch; }
.pagehero__lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--on-cobalt-muted); max-width: 50ch; margin: 0 0 1.75rem; }
.pagehero__lede:last-child { margin-bottom: 0; }
.pagehero__fine { margin: .8rem 0 0; font-size: .88rem; color: var(--on-cobalt-muted); }
.pagehero :focus-visible { outline-color: var(--hi); }

/* Find my legislators */
.reps { padding: 2rem 1.25rem 3rem; display: grid; gap: 2rem; }
.reps__error { margin: 0; }
.reps__matched { margin: 0; color: var(--muted); }
.reps__h { font-size: 1.35rem; }
.reps__how { max-width: 62ch; }
.reps__how p { color: var(--muted); }
.replist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .9rem; }
.repcard__link { display: flex; gap: 1rem; align-items: center; padding: 1rem; background: var(--surface); border: 2px solid var(--rule); border-radius: 14px; text-decoration: none; color: var(--ink); height: 100%; }
.repcard__link:hover { border-color: var(--cobalt); }
.repcard__photo { position: relative; flex: none; width: 4.25rem; height: 4.25rem; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--cobalt-soft); color: var(--cobalt); font-weight: 900; font-size: 1.6rem; }
.repcard__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.repcard__body { display: grid; gap: .1rem; }
.repcard__role { font-size: .8rem; color: var(--muted); font-weight: 600; }
.repcard__name { font-weight: 800; font-size: 1.12rem; line-height: 1.2; }
.repcard__link:hover .repcard__name { text-decoration: underline; }
.repcard__party { font-size: .88rem; color: var(--muted); }
.band--reps { background: var(--surface); }
.reps-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem 3rem; align-items: center; }
.reps-cta__lede { margin: .6rem 0 0; color: var(--muted); max-width: 46ch; }
.band--reps .search--hero input { border-color: var(--rule); }

/* Legislator profile */
.person-head { display: flex; gap: 1.5rem; align-items: center; margin: 1rem 0 2rem; }
.person-head__photo { width: 7.5rem; height: 7.5rem; border-radius: 50%; object-fit: cover; object-position: top; border: 4px solid var(--surface); box-shadow: 0 0 0 2px var(--rule); flex: none; }
.person-head__role { margin: 0 0 .25rem; font-weight: 700; color: var(--muted); }
.person-head__name { font-weight: 900; font-stretch: 115%; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); line-height: 1.02; letter-spacing: -.025em; margin: 0; }
.person-head__meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: .5rem 0 0; color: var(--muted); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-bottom: 2rem; }
.stat { background: var(--surface); border: 2px solid var(--rule); border-radius: 14px; padding: 1rem 1.2rem; }
.stat--hi { border-color: var(--hi); }
.stat__n { display: block; font-weight: 900; font-stretch: 125%; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__l { display: block; margin-top: .3rem; color: var(--muted); font-weight: 600; font-size: .92rem; }
.record { background: var(--surface); border: 2px solid var(--rule); border-radius: 14px; padding: 1.2rem 1.3rem; margin-bottom: 2.25rem; max-width: 40rem; }
.record__stages li { grid-template-columns: 11rem minmax(0, 1fr) 3rem; font-size: .92rem; }
.person-bills { margin-bottom: 1rem; }
.person-note { font-size: .85rem; color: var(--muted); margin: 1rem 0 3rem; }

/* Topics */
.topics { padding: 2rem 1.25rem 3.5rem; display: grid; gap: 1.5rem; }
.topic-feature { display: grid; gap: .5rem; padding: clamp(1.25rem, 3vw, 2rem); border-radius: 18px; background: var(--ink); color: var(--bg); text-decoration: none; border-left: 10px solid var(--hi); }
.topic-feature__tag { font-size: .85rem; font-weight: 700; color: var(--hi); }
.topic-feature__name { font-weight: 900; font-stretch: 120%; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); line-height: 1.05; letter-spacing: -.02em; }
.topic-feature:hover .topic-feature__name { text-decoration: underline; }
.topic-feature__blurb { max-width: 60ch; opacity: .85; }
.topic-feature__stats { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; margin-top: .4rem; font-size: .95rem; }
.topic-feature__stats b { font-size: 1.15rem; margin-right: .25rem; }
.topic-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .9rem; }
.topic-card { display: grid; gap: .4rem; height: 100%; padding: 1.1rem 1.15rem; background: var(--surface); border: 2px solid var(--rule); border-top: 6px solid var(--cobalt); border-radius: 14px; text-decoration: none; color: var(--ink); }
.topic-card:hover { border-color: var(--cobalt); }
.topic-card__name { font-weight: 800; font-size: 1.15rem; }
.topic-card__blurb { color: var(--muted); font-size: .92rem; }
.topic-card__stats { margin-top: auto; padding-top: .4rem; font-size: .88rem; font-weight: 700; color: var(--cobalt); }
.topic-blurb { margin: .2rem 0 .6rem; color: var(--muted); max-width: 60ch; }

@media (max-width: 52rem) {
  .reps-cta { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 40rem) {
  .person-head { flex-direction: column; align-items: flex-start; }
  .record__stages li { grid-template-columns: 8.5rem minmax(0, 1fr) 2.4rem; }
}

/* Learn section */
.pagehero__kicker { margin: 0 0 .6rem; font-weight: 700; color: var(--hi); }
.pagehero__kicker a { color: var(--hi); text-decoration: none; }
.pagehero__kicker a:hover { text-decoration: underline; }
.learn { padding: 2rem 1.25rem 3.5rem; display: grid; gap: 2.5rem; }
.learn-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.learn-card { display: grid; gap: .45rem; height: 100%; padding: 1.25rem; background: var(--surface); border: 2px solid var(--rule); border-radius: 16px; color: var(--ink); text-decoration: none; }
.learn-card:hover { border-color: var(--cobalt); }
.learn-card__n { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt); color: var(--on-button); font-weight: 900; }
.learn-card__t { font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.learn-card:hover .learn-card__t { text-decoration: underline; }
.learn-card__b { color: var(--muted); }
.learn-tip { background: var(--surface); border-left: 6px solid var(--hi); border-radius: 12px; padding: 1rem 1.25rem; max-width: 46rem; }
.learn-tip p { margin: 0; color: var(--muted); }
.learn-more { border-top: 1px solid var(--rule); padding-top: 2rem; }
.learn-more__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; }
.learn-more a { display: grid; gap: .25rem; padding: .9rem 1rem; border-radius: 12px; background: var(--surface); border: 2px solid var(--rule); text-decoration: none; color: var(--ink); height: 100%; }
.learn-more a:hover { border-color: var(--cobalt); }
.learn-more__t { font-weight: 800; }
.learn-more__b { font-size: .88rem; color: var(--muted); }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; margin: 2rem 0 .6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink); }
.checks { padding-left: 1.2rem; display: grid; gap: .6rem; }

.branches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.branch { background: var(--surface); border: 2px solid var(--rule); border-top: 8px solid var(--cobalt); border-radius: 16px; padding: 1.3rem; }
.branch--exec { border-top-color: var(--hi); }
.branch--jud { border-top-color: var(--ink); }
.branch__tag { margin: 0; font-weight: 700; font-size: .88rem; color: var(--muted); }
.branch__name { margin: .1rem 0 .6rem; font-weight: 900; font-stretch: 115%; font-size: 1.9rem; letter-spacing: -.02em; }
.branch > p:not(.branch__tag) { margin: 0 0 1rem; }
.branch__pair { margin: 0; display: grid; gap: .8rem; }
.branch__pair div { background: var(--bg); border-radius: 10px; padding: .75rem .85rem; }
.branch__pair dt { font-weight: 800; font-size: .85rem; color: var(--cobalt); margin-bottom: .2rem; }
.branch__pair dd { margin: 0; font-size: .95rem; }

.stepper { background: var(--surface); border: 2px solid var(--rule); border-radius: 18px; padding: clamp(1rem, 3vw, 1.75rem); scroll-margin-top: 6rem; }
.stepper__rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 1.5rem; }
.stepper__tab { display: grid; gap: .45rem; justify-items: start; text-align: left; padding: .9rem .7rem .7rem; border: 0; border-top: 8px solid var(--rule); border-radius: 4px; background: transparent; color: var(--muted); font: 600 .9rem/1.25 var(--font); cursor: pointer; }
.stepper__tab:hover { color: var(--ink); background: var(--bg); }
.stepper__tab.is-done { border-top-color: var(--cobalt); color: var(--ink); }
.stepper__tab[aria-selected="true"] { border-top-color: var(--hi); color: var(--ink); background: var(--bg); }
.stepper__num { width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--rule); color: var(--ink); font-weight: 900; }
.stepper__tab.is-done .stepper__num { background: var(--cobalt); color: var(--on-button); }
.stepper__tab[aria-selected="true"] .stepper__num { background: var(--hi); color: #16181D; }
.stepper__count { margin: 0; font-size: .88rem; font-weight: 700; color: var(--muted); }
.stepper__title { margin: .2rem 0 .7rem; font-weight: 900; font-stretch: 115%; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); letter-spacing: -.02em; line-height: 1.1; }
.stepper__plain { font-size: 1.1rem; max-width: 64ch; margin: 0 0 1.25rem; }
.stepper__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stepper__box { background: var(--bg); border-left: 6px solid var(--cobalt); border-radius: 10px; padding: .9rem 1rem; }
.stepper__box--state { border-left-color: var(--hi); }
.stepper__box h3 { margin: 0 0 .3rem; font-size: 1rem; font-weight: 800; }
.stepper__box p { margin: 0; }
.stepper__live { margin: 1.25rem 0 0; }
.stepper__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--rule); }

.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.level { background: var(--surface); border: 2px solid var(--rule); border-top: 8px solid var(--cobalt); border-radius: 16px; padding: 1.2rem 1.3rem; }
.level--state { border-top-color: var(--hi); }
.level--local { border-top-color: var(--ink); }
.level h2 { margin: 0; font-weight: 900; font-stretch: 115%; font-size: 1.7rem; }
.level__who { margin: .2rem 0 .8rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.level ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; }

.voice-steps { list-style: none; counter-reset: v; margin: 0; padding: 0; display: grid; gap: 1rem; max-width: 52rem; }
.voice-steps > li { counter-increment: v; position: relative; background: var(--surface); border: 2px solid var(--rule); border-radius: 16px; padding: 1.2rem 1.3rem 1.3rem 4.2rem; }
.voice-steps > li::before { content: counter(v); position: absolute; left: 1.2rem; top: 1.15rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--cobalt); color: var(--on-button); font-weight: 900; }
.voice-steps h2 { margin: 0 0 .4rem; font-size: 1.25rem; font-weight: 800; }
.voice-steps p { margin: 0 0 .8rem; color: var(--muted); }
.voice-steps p:last-child { margin-bottom: 0; }
.tips { margin: .3rem 0 0; padding-left: 1.1rem; display: grid; gap: .45rem; }

.glossary-jump { display: flex; flex-wrap: wrap; gap: .35rem; }
.glossary-jump a { min-width: 2.2rem; text-align: center; padding: .35rem .5rem; border-radius: 8px; background: var(--surface); border: 2px solid var(--rule); font-weight: 800; text-decoration: none; }
.glossary { margin: 0; display: grid; gap: 1.75rem; max-width: 52rem; }
.glossary__letter { margin: 0 0 .5rem; font-weight: 900; font-stretch: 120%; font-size: 1.6rem; color: var(--cobalt); scroll-margin-top: 6rem; }
.glossary__item { padding: .8rem 0; border-top: 1px solid var(--rule); scroll-margin-top: 6rem; }
.glossary__item:target { background: var(--cobalt-soft); border-radius: 8px; padding-inline: .75rem; }
.glossary__item dt { font-weight: 800; font-size: 1.1rem; }
.glossary__item dd { margin: .2rem 0 0; color: var(--ink); }

/* Glossary pop-ups */
.term { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: help; text-decoration: underline dotted; text-decoration-color: var(--cobalt); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.term:hover, .term[aria-expanded="true"] { background: var(--cobalt-soft); border-radius: 3px; }
.term--demo { cursor: default; }
.glpop { position: absolute; z-index: 40; background: var(--surface); color: var(--ink); border: 2px solid var(--cobalt); border-radius: 12px; padding: .85rem 1rem; box-shadow: 0 18px 40px -16px rgba(5, 10, 46, .5); }
.glpop__t { margin: 0 0 .25rem; font-weight: 800; }
.glpop__d { margin: 0 0 .5rem; font-size: .93rem; }
.glpop__a { font-size: .85rem; font-weight: 700; }

/* Sessions */
.sessionbar { display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; padding: .7rem 1.25rem; background: var(--hi); color: #16181D; text-decoration: none; font-weight: 600; justify-content: center; }
.sessionbar__tag { font-weight: 900; font-stretch: 110%; }
.sessionbar:hover .sessionbar__text { text-decoration: underline; }
.sessionbar__go { font-weight: 900; }
.countdown { display: flex; gap: .75rem; margin: .5rem 0 1rem; }
.countdown__unit { background: color-mix(in srgb, #000000 22%, var(--hero-bg)); border-radius: 14px; padding: .8rem 1.1rem; min-width: 6rem; }
.countdown__n { display: block; font-weight: 900; font-stretch: 125%; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__l { display: block; margin-top: .25rem; color: var(--on-cobalt-muted); font-weight: 600; }
.sessionhero__day { margin: .5rem 0 .75rem; font-weight: 900; font-stretch: 125%; font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); line-height: 1; }
.sessionhero__day span { font-size: .45em; color: var(--on-cobalt-muted); }
.session { padding: 2rem 1.25rem 3.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 2.5rem; align-items: start; }
.keydates { list-style: none; margin: 0 0 1rem; padding: 0; }
.keydate { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--rule); }
.keydate time { font-weight: 800; font-variant-numeric: tabular-nums; }
.keydate h3 { margin: 0 0 .2rem; font-size: 1.05rem; font-weight: 800; }
.keydate p { margin: 0; color: var(--muted); font-size: .93rem; }
.keydate.is-past { opacity: .55; }
.keydate.is-next time { color: var(--cobalt); }
.session__topics { margin-bottom: 1rem; }
.summary__note--ai { background: var(--bg); border-radius: 8px; padding: .55rem .75rem; }

@media (max-width: 52rem) {
  .branches, .levels { grid-template-columns: minmax(0, 1fr); }
  .stepper__rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stepper__pair { grid-template-columns: 1fr; }
  .session { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .stepper__label { font-size: .8rem; }
  .countdown__unit { min-width: 0; flex: 1; padding: .7rem .8rem; }
  .keydate { grid-template-columns: 1fr; gap: .2rem; }
  .voice-steps > li { padding-left: 1.3rem; padding-top: 3.6rem; }
}

/* Votes */
.votes { margin-bottom: 2.25rem; }
.votes__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.vote { background: var(--surface); border: 2px solid var(--rule); border-radius: 14px; padding: 1rem 1.15rem; }
.vote__meta { display: flex; flex-wrap: wrap; gap: .2rem .9rem; margin: 0; font-size: .88rem; color: var(--muted); align-items: center; }
.vote__meta time { font-weight: 700; color: var(--ink); }
.vote__result { font-weight: 800; padding: 0 .55rem; border-radius: 999px; font-size: .8rem; line-height: 1.7; }
.vote__result--pass { background: var(--cobalt-soft); color: var(--ink); }
.vote__result--fail { background: color-mix(in srgb, var(--veto) 18%, transparent); color: var(--veto); }
.vote__motion { margin: .35rem 0 .7rem; font-weight: 700; }
.vote__bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--rule); }
.vote__yes { background: var(--cobalt); }
.vote__no { background: color-mix(in srgb, var(--ink) 55%, var(--surface)); }
.vote__nums { margin: .4rem 0 0; font-size: .9rem; color: var(--muted); display: flex; gap: .3rem 1rem; flex-wrap: wrap; }
.vote__nums b { color: var(--ink); margin-right: .2rem; font-variant-numeric: tabular-nums; }
.vote__details { margin-top: .8rem; }
.vote__details summary { cursor: pointer; font-weight: 700; color: var(--link); }
.vote__parties { border-collapse: collapse; margin: .8rem 0; font-size: .9rem; }
.vote__parties th, .vote__parties td { padding: .3rem .8rem .3rem 0; text-align: left; font-variant-numeric: tabular-nums; }
.vote__parties thead th { color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--rule); }
.vote__group { margin: .9rem 0 .4rem; font-size: .95rem; font-weight: 800; }
.vote__group span { color: var(--muted); font-weight: 500; }
.vote__members { list-style: none; margin: 0; padding: 0; columns: 14rem auto; column-gap: 1.5rem; font-size: .9rem; }
.vote__members li { break-inside: avoid; padding: .1rem 0; }
.vote__members a { color: inherit; }
.vote__pending { margin: .6rem 0 0; font-size: .88rem; color: var(--muted); }
.vrec { list-style: none; margin: .8rem 0 0; padding: 0; }
.vrec__row { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--rule); align-items: start; }
.vrec__opt { font-weight: 800; font-size: .82rem; text-align: center; padding: .2rem .4rem; border-radius: 8px; background: var(--bg); }
.vrec__opt--yes { background: var(--cobalt-soft); color: var(--ink); }
.vrec__opt--no { background: color-mix(in srgb, var(--ink) 14%, transparent); color: var(--ink); }
.vrec__body { font-size: .93rem; }
.vrec__body a { font-weight: 800; }
.vrec__meta { display: block; color: var(--muted); font-size: .84rem; margin-top: .1rem; }
.record:has(.vrec) { max-width: 52rem; }

/* Compare versions */
.compare-pick { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem 1rem; margin-bottom: 1.25rem; }
.compare-pick label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .3rem; }
.compare-pick select { font: inherit; padding: .5rem .6rem; color: var(--ink); background: var(--surface); border: 2px solid var(--rule); border-radius: 8px; max-width: 22rem; }
.compare-pick__arrow { font-weight: 900; font-size: 1.3rem; padding-bottom: .4rem; color: var(--muted); }
.compare-summary { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.compare-summary p { margin: 0; display: flex; gap: .3rem 1rem; flex-wrap: wrap; }
.compare-summary b { margin-right: .2rem; }
.compare-summary .plus { color: var(--cobalt); }
.compare-summary .minus { color: var(--veto); }
.compare-jump { display: flex; gap: .5rem; }
.compare { font-size: 1.02rem; line-height: 1.7; }
.compare p { margin: 0 0 .9rem; max-width: 72ch; }
.compare ins, .legend ins { text-decoration: none; background: color-mix(in srgb, var(--cobalt) 18%, transparent); border-radius: 3px; padding: 0 .1em; }
.compare del, .legend del { color: var(--veto); text-decoration-thickness: 2px; }
.compare-chg { border-left: 4px solid var(--hi); padding-left: .8rem; margin-left: -1rem; scroll-margin-top: 7rem; }
.compare-chg.is-current { background: color-mix(in srgb, var(--hi) 16%, transparent); border-radius: 0 8px 8px 0; outline: none; }
.compare-same { margin: 0 0 .9rem; color: var(--muted); }
.compare-same summary { cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--link); padding: .3rem 0; }
.compare-same p { color: var(--ink); }
@media (max-width: 40rem) { .vrec__row { grid-template-columns: 1fr; gap: .3rem; } .vrec__opt { justify-self: start; } .compare-chg { margin-left: 0; } }

/* State search (Learn > Three branches) */
.statefind { background: var(--surface); border: 2px solid var(--rule); border-left: 8px solid var(--hi); border-radius: 16px; padding: 1.2rem 1.3rem; }
.statefind__label { display: block; font-weight: 900; font-stretch: 112%; font-size: 1.35rem; letter-spacing: -.01em; }
.statefind__hint { margin: .3rem 0 .9rem; color: var(--muted); max-width: 60ch; }
.statefind__row { display: flex; gap: .5rem; flex-wrap: wrap; max-width: 34rem; }
.statefind__row input { flex: 1 1 14rem; font: inherit; padding: .7rem .9rem; color: var(--ink); background: var(--bg); border: 2px solid var(--rule); border-radius: 10px; }
.statefind__row .btn { padding: .7rem 1.2rem; }
.statefind__error { margin: .6rem 0 0; color: var(--veto); font-weight: 700; }
.branch__state { display: none; margin: 1rem 0 0; }
.js .branch__state { display: block; }
.statemodal { width: min(56rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); margin: auto; padding: 0; border: 0; border-radius: 18px; background: var(--bg); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(5, 10, 46, .6); }
.statemodal::backdrop { background: rgba(8, 12, 40, .6); }
.statemodal__inner { position: relative; padding: clamp(1.25rem, 3vw, 2rem); overflow-y: auto; max-height: calc(100vh - 2rem); }
.statemodal__close { position: absolute; top: .6rem; right: .7rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: transparent; color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.statemodal__close:hover { background: var(--surface); }
@media (prefers-reduced-motion: no-preference) { .statemodal[open] { animation: sm-in .25s cubic-bezier(.2, .8, .2, 1); } @keyframes sm-in { from { transform: translateY(16px); opacity: 0; } } }
.stateview--inline { background: var(--surface); border: 2px solid var(--rule); border-radius: 16px; padding: 1.3rem; }
.stateview__title { margin: 0 2.5rem .5rem 0; font-weight: 900; font-stretch: 115%; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); letter-spacing: -.02em; line-height: 1.1; }
.stateview__note { margin: 0 0 1rem; color: var(--muted); max-width: 68ch; }
.stateview__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: 1rem; }
.stateview__card { background: var(--surface); border: 2px solid var(--rule); border-top: 8px solid var(--cobalt); border-radius: 14px; padding: 1rem 1.1rem; }
.stateview__card--exec { border-top-color: var(--hi); }
.stateview__card--jud { border-top-color: var(--ink); }
.stateview__card h3 { margin: .1rem 0 .6rem; font-size: 1.15rem; font-weight: 800; line-height: 1.25; }
.stateview__card ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .95rem; }
.stateview__links { margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; align-items: center; }
.stateview__src { margin: .8rem 0 0; font-size: .8rem; color: var(--muted); }
@media (max-width: 52rem) { .stateview__grid { grid-template-columns: 1fr; } }

/* Embed snippet */
.embed { margin-top: 1.25rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.embed summary { cursor: pointer; font-weight: 700; color: var(--link); font-size: .92rem; }
.embed p { margin: .6rem 0; font-size: .88rem; color: var(--muted); }
.embed__code { width: 100%; font: .78rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: .6rem; color: var(--ink); background: var(--bg); border: 2px solid var(--rule); border-radius: 8px; resize: vertical; }
.embed__copy { margin: .5rem .6rem 0 0; }
.embed__preview { font-size: .88rem; font-weight: 600; }

/* Language switch */
.lang-link { font-size: .88rem; font-weight: 700; color: var(--ink); text-decoration: none; padding: .3rem .6rem; border: 2px solid var(--rule); border-radius: 999px; }
.lang-link:hover { border-color: var(--cobalt); }
.masthead--hero .lang-link { color: var(--on-cobalt); border-color: rgba(255, 255, 255, .35); }
@media (max-width: 48rem) { .js .lang-link { display: none; } }
.langnote { margin: 1rem 0 0; padding: .6rem .9rem; border-radius: 10px; background: var(--cobalt-soft); font-size: .9rem; }

/* Header fit: one row on desktop in both languages */
@media (min-width: 48.01rem) {
  .masthead__inner { flex-wrap: nowrap; }
  .mainnav ul { flex-wrap: nowrap; white-space: nowrap; }
  .search--header { flex: 1 1 10rem; min-width: 9rem; max-width: 24rem; }
  .acct-link, .lang-link { white-space: nowrap; flex: none; }
}
@media (min-width: 48.01rem) and (max-width: 78rem) {
  .masthead__inner { gap: .75rem 1rem; }
  .mainnav ul { gap: .9rem; }
  .mainnav a, .acct-link { font-size: .85rem; }
  .lang-link { font-size: .8rem; padding: .25rem .5rem; }
  .brand { font-size: 1.15rem; }
}
@media (min-width: 48.01rem) and (max-width: 64rem) {
  .search--header { display: none; }   /* search stays available in the bill list and the menu */
}

/* Follow the money */
.statefind--hero { background: color-mix(in srgb, #000000 22%, var(--hero-bg)); border: 0; border-left: 8px solid var(--hi); color: var(--on-cobalt); max-width: 32rem; }
.statefind--hero .statefind__label { font-size: 1.05rem; }
.statefind select, .compare-pick select { font: inherit; padding: .6rem .7rem; color: var(--ink); background: var(--surface); border: 2px solid var(--rule); border-radius: 10px; min-width: 14rem; }
.money { padding: 2rem 1.25rem 3.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
.money > * { min-width: 0; }
.money__note, .money__src { margin: 0; color: var(--muted); font-size: .9rem; max-width: 70ch; }
.money__src { margin-top: 1rem; font-size: .82rem; }
.k12spot__grid { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .8rem; }
.k12card { display: grid; gap: .25rem; height: 100%; padding: 1rem 1.1rem; background: var(--surface); border: 2px solid var(--rule); border-top: 6px solid var(--hi); border-radius: 14px; color: var(--ink); text-decoration: none; }
.k12card:hover { border-color: var(--cobalt); }
.k12card__amt { font-weight: 900; font-stretch: 120%; font-size: 1.6rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.k12card__name { font-weight: 700; line-height: 1.3; }
.k12card__code { font-size: .82rem; color: var(--muted); }
.moneylist { list-style: none; margin: 1rem 0 0; padding: 0; }
.moneyrow { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(5rem, 1fr) 7.5rem; gap: .5rem 1rem; align-items: center; padding: .7rem 0; border-top: 1px solid var(--rule); }
.moneyrow a { color: var(--ink); text-decoration: none; display: grid; gap: .1rem; }
.moneyrow a:hover .moneyrow__name { text-decoration: underline; }
.moneyrow__name { font-weight: 700; line-height: 1.3; }
.moneyrow__meta { font-size: .82rem; color: var(--muted); font-weight: 500; }
.moneyrow__bar { height: 10px; border-radius: 5px; background: var(--rule); overflow: hidden; }
.moneyrow__bar i { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--cobalt); border-radius: 5px; }
.moneyrow__amt { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.moneyrow.is-selected { background: color-mix(in srgb, var(--hi) 18%, transparent); border-radius: 8px; padding-inline: .5rem; }
.moneyrow.is-selected .moneyrow__bar i { background: var(--hi); }
.fundlist { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .6rem; }
.fundlist li { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; border-top: 1px solid var(--rule); padding-top: .5rem; }
.fundlist b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.estimates__figure { margin: .5rem 0 0; padding: .5rem .7rem; border-radius: 8px; background: var(--bg); font-size: .93rem; }
.estimates__figure.is-cost strong { color: var(--ink); }
.relprog { background: var(--surface); border: 2px solid var(--rule); border-left: 6px solid var(--cobalt); border-radius: 14px; padding: 1.1rem 1.3rem; margin-bottom: 2rem; }
.relprog__list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .6rem; }
.relprog__list a { display: grid; gap: .1rem; text-decoration: none; color: var(--ink); }
.relprog__name { font-weight: 700; color: var(--link); }
.relprog__list a:hover .relprog__name { text-decoration: underline; }
.relprog__amt { font-size: .88rem; color: var(--muted); }
.program-head { margin-bottom: 1.5rem; }
@media (max-width: 40rem) { .moneyrow { grid-template-columns: 1fr auto; } .moneyrow__bar { grid-column: 1 / -1; order: 3; } }

/* Texas hearings, committee votes, witness lists, fiscal tables */
.txhear, .txfacts { margin-bottom: 2rem; }
.txhear__list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: .8rem; }
.txhear__item { padding: .8rem 1rem; background: var(--surface); border: 2px solid var(--rule); border-radius: 12px; }
.txhear__item.is-upcoming { border-color: var(--hi); }
.txhear__when, .txhear__what { margin: 0; }
.txhear__date { font-weight: 800; }
.badge { display: inline-block; margin-left: .5rem; padding: .05rem .5rem; border-radius: 999px; background: var(--hi); color: #16181D; font-size: .78rem; font-weight: 800; }
.witness { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--rule); font-size: .92rem; }
.witness__counts { margin: 0 0 .4rem; }
.witness__orgs { margin: 0; display: grid; gap: .35rem; }
.witness__orgs dt { font-weight: 700; }
.witness__orgs dd { margin: 0; color: var(--muted); }
.witness__src { margin: .4rem 0 0; font-size: .85rem; }
.txfacts__list { list-style: none; margin: .4rem 0 1rem; padding: 0; display: grid; gap: .3rem; }
.txfacts__votes { display: block; color: var(--muted); font-size: .9rem; }
.fiscal-wrap { overflow-x: auto; margin-top: .6rem; }
.fiscal { border-collapse: collapse; font-size: .85rem; min-width: 32rem; font-variant-numeric: tabular-nums; }
.fiscal caption { text-align: left; font-weight: 700; margin-bottom: .3rem; }
.fiscal th, .fiscal td { padding: .3rem .5rem; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
.fiscal th[scope="row"] { text-align: left; white-space: normal; font-weight: 600; max-width: 16rem; }
.hearday { margin: 1.5rem 0; }
.hearday__committee { font-size: 1.05rem; margin: 1rem 0 .3rem; }

/* Developers */
.devdocs { padding: 2rem 1.25rem 3.5rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; max-width: 52rem; }
.devdocs > * { min-width: 0; }
.devlist { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.devnote { background: var(--surface); border: 2px solid var(--rule); border-left: 6px solid var(--hi); border-radius: 14px; padding: 1.1rem 1.3rem; }
.devnote__credit { font-weight: 800; font-size: 1.05rem; margin: .4rem 0; }
.devcode { background: #16181D; color: #E6F4F1; border-radius: 10px; padding: .8rem 1rem; overflow-x: auto; font-size: .85rem; line-height: 1.5; }
.devcode--key { font-size: 1rem; user-select: all; word-break: break-all; white-space: pre-wrap; }
.devtable { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: .8rem; display: block; overflow-x: auto; }
.devtable th, .devtable td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.devtable code { white-space: nowrap; }
.devsignup .authform { max-width: 30rem; }
.authform textarea { font: inherit; padding: .6rem .7rem; border: 2px solid var(--rule); border-radius: 10px; color: var(--ink); background: var(--surface); }
.authform .check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; line-height: 1.4; }
.authform .check input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; flex: none; }
.footer__credit { margin: .3rem 0 0; font-size: .85rem; }
.footer__credit a { color: inherit; }

/* Texas spending card */
.txcard { display: grid; gap: .3rem; padding: 1.1rem 1.3rem; background: var(--surface); border: 2px solid var(--rule); border-left: 6px solid var(--hi); border-radius: 14px; color: var(--ink); text-decoration: none; }
.txcard:hover { border-color: var(--cobalt); }
.txcard__kicker { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.txcard__title { font-weight: 900; font-size: 1.35rem; }
.txcard__text { color: var(--muted); }
.reps__county { margin: .3rem 0 1rem; font-weight: 700; }

/* Budget strategies */
.strategies__section { margin: 1.5rem 0 .2rem; font-size: 1.15rem; }
.strategies__goal { margin: 1.2rem 0 .2rem; font-size: 1rem; font-weight: 800; }
.yearlinks { margin: .2rem 0 .6rem; }
.moneyrow:target { background: color-mix(in srgb, var(--hi) 22%, transparent); border-radius: 8px; padding-inline: .5rem; }
.budgetsearch { display: grid; gap: .4rem; max-width: 36rem; }
.budgetsearch label { font-weight: 700; }
.budgetsearch__row { display: flex; gap: .5rem; }
.budgetsearch__row input[type=search] { flex: 1; min-width: 0; font: inherit; padding: .6rem .7rem; border: 2px solid var(--rule); border-radius: 10px; background: var(--surface); color: var(--ink); }
.budgetsearch__row button { font: inherit; font-weight: 700; padding: .6rem 1rem; border: 0; border-radius: 10px; background: var(--cobalt); color: #fff; }

/* Legislator contact */
.contact { display: grid; gap: 1rem; margin: 1.5rem 0 2rem; }
.contact__online { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.contact__online li { overflow-wrap: anywhere; }
.contact__k { display: inline-block; min-width: 7.5rem; color: var(--muted); font-size: .9rem; }
.contact__offices { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.office { background: var(--surface); border: 2px solid var(--rule); border-radius: 14px; padding: 1rem 1.1rem; display: grid; gap: .35rem; align-content: start; }
.office__name { margin: 0; font-size: 1rem; font-weight: 800; }
.office__addr { font-style: normal; line-height: 1.45; }
.office__map { font-size: .9rem; justify-self: start; }
.office__phone { margin: .2rem 0 0; font-weight: 800; font-size: 1.1rem; }
.office__phone a { text-decoration: none; }
.office__fax { margin: 0; font-size: .85rem; }
.repcard__actions { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: .1rem 0 .3rem; padding-left: .2rem; font-weight: 700; font-size: .92rem; }

/* Campaign money */
.campaign { display: grid; gap: .8rem; margin: 1.5rem 0 2rem; grid-template-columns: minmax(0, 1fr); }
.campaign > * { min-width: 0; }
.campaign__h { margin: .8rem 0 0; font-size: 1.05rem; font-weight: 800; }
.campaign .stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.campaign .stat { min-width: 0; padding: .9rem 1rem; }
.campaign .stat__n { white-space: nowrap; font-size: clamp(1.25rem, .9rem + 2vw, 2.2rem); }

/* Call-to-action boxes: let the grid column and its items shrink on small phones (Spanish wording is longer) */
.cta__inner { grid-template-columns: minmax(0, 1fr); }
.cta__inner > * { min-width: 0; }

/* Stat boxes: long words (e.g. Spanish "copatrocinados") hyphenate instead of overflowing on small phones */
.stat { min-width: 0; }
.stat__l { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }

/* Pay */
.pay { margin: 1.25rem 0; }
.pay__line { margin: .3rem 0; font-size: 1.1rem; }
.pay__amount { font-weight: 900; font-size: 1.5rem; font-variant-numeric: tabular-nums; }

/* Contracts */
.contracts .stats { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.contracts .stat { min-width: 0; padding: .9rem 1rem; }
.contracts .stat__n { font-size: clamp(1.25rem, .9rem + 2vw, 2.2rem); overflow-wrap: normal; word-break: keep-all; }
.contractlist { list-style: none; margin: .5rem 0 1rem; padding: 0; }
.contract { padding: .8rem 0; border-top: 1px solid var(--rule); min-width: 0; }
.contract__top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.contract__vendor { font-weight: 800; overflow-wrap: anywhere; min-width: 0; }
.contract__amt { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.contract__subject { margin: .2rem 0 0; overflow-wrap: anywhere; }
.contract__meta { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.contract__flag { margin: .3rem 0 0; padding: .4rem .6rem; border-left: 3px solid #C77700; background: color-mix(in srgb, #C77700 10%, transparent); font-size: .9rem; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 1rem 0; }

/* Footer */
.footer { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--muted); font-size: .9rem; }
.page-landing .footer { border-top: 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: space-between; }
.footer p { margin: 0; max-width: 60ch; }

/* Small screens */
@media (max-width: 52rem) {
  .layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .filters { position: static; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .facts { order: -1; }
  .points { grid-template-columns: 1fr; }
  .bigrail__track { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.25rem; }
}
@media (max-width: 40rem) {
  .search--hero { flex-direction: column; gap: .5rem; }
  .search--hero input { border-right: 2px solid transparent; border-radius: 10px; }
  .search--hero button { border-radius: 10px; }
  .bigrail__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rail--compact .rail__step { width: 1.6rem; }
  .rail--full .rail__track { grid-auto-flow: row; grid-auto-columns: auto; }
  .rail--full .rail__step { padding: 0 0 1.15rem 2.2rem; }
  .rail--full .rail__step:last-child { padding-bottom: 0; }
  .rail--full .rail__step::before { top: .6rem; bottom: -.6rem; left: .5rem; right: auto; width: 6px; height: auto; }
  .timeline li { grid-template-columns: 1fr; }
}

/* Balanced landing page: the same grays as every other page, with the main color as an accent rather than a
   full-screen background. The hero's variables are redefined here, so the stage rail and map follow. */
.hero { --hero-bg: var(--bg); --on-cobalt: var(--ink); --on-cobalt-muted: var(--muted); --track-on-cobalt: var(--rule); border-bottom: 1px solid var(--rule); }
.hero a { color: var(--link); }
.hero :focus-visible { outline-color: var(--focus); }
.search--hero input { border-color: var(--rule); }
.hero .bigrail__bar::after { background: var(--cobalt); }
.hero .mapcard { --mapcard-bg: var(--surface); border: 2px solid var(--rule); }
.hero .usmap .st { fill: color-mix(in srgb, var(--cobalt) calc(var(--heat, .1) * 100%), var(--bg)); }
.hero .usmap .st.is-untracked { fill: var(--bg); }
.hero .usmap .st.is-empty { fill: color-mix(in srgb, var(--cobalt) 18%, var(--bg)); }
.hero .usmap .st.is-active { fill: var(--hi); }
.hero .usmap .st:focus-visible { stroke: var(--ink); }
.hero .usmap .st.st--terr { fill: var(--surface); stroke: color-mix(in srgb, var(--cobalt) calc(var(--heat, .25) * 100%), var(--rule)); }
.hero .usmap .st.st--terr.is-active { stroke: var(--hi); }
.hero .usmap__frame { fill: transparent; stroke: var(--rule); }
.hero .usmap__dc line { stroke: var(--muted); }
.hero .maplegend__bar { background: linear-gradient(90deg, color-mix(in srgb, var(--cobalt) 32%, var(--bg)), var(--cobalt)); }
.hero .maplegend__item i { background: var(--bg); box-shadow: inset 0 0 0 1px var(--rule); }

/* API pricing and usage */
.tiers { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.tier { background: var(--surface); border: 2px solid var(--rule); border-radius: 14px; padding: 1.2rem; display: flex; flex-direction: column; gap: .5rem; min-width: 0; }
.tier--pick { border-color: var(--cobalt); }
.tier__name { margin: 0; font-size: 1.25rem; font-weight: 800; }
.tier__price { margin: 0; font-weight: 700; color: var(--cobalt-deep); }
.tier__features { margin: 0; padding-left: 1.1rem; flex: 1; }
.tier__limits { margin: 0; font-size: .9rem; }
.tier .btn { align-self: flex-start; }
.usagebars { list-style: none; margin: .5rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 2px; height: 6rem; align-items: end; }
.usagebars li { height: 100%; display: flex; align-items: flex-end; }
.usagebars i { display: block; width: 100%; height: calc(var(--p, 0) * 100%); min-height: 2px; background: var(--cobalt); border-radius: 2px 2px 0 0; }

/* Tier picker: radio buttons shown as cards (input + sibling, so it works in every browser) */
.tierpick { border: 0; margin: 0 0 .5rem; padding: 0; display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); min-width: 0; }
.tierpick legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.tierpick__opt { position: relative; display: block; cursor: pointer; min-width: 0; }
.tierpick__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tierpick__box { display: grid; gap: .15rem; height: 100%; box-sizing: border-box; padding: .85rem 2.6rem .85rem 1rem; background: var(--surface);
                 border: 2px solid var(--rule); border-radius: 12px; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.tierpick__box::after { content: ""; position: absolute; top: .9rem; right: .9rem; width: 1.15rem; height: 1.15rem; box-sizing: border-box;
                        border: 2px solid var(--rule); border-radius: 50%; background: var(--surface); }
.tierpick__name { font-weight: 800; font-size: 1.05rem; }
.tierpick__price { font-weight: 700; color: var(--cobalt-deep); overflow-wrap: anywhere; }
.tierpick__limit { color: var(--muted); font-size: .9rem; }
.tierpick__opt:hover .tierpick__box { border-color: color-mix(in srgb, var(--cobalt) 45%, var(--rule)); }
.tierpick__opt input:checked + .tierpick__box { border-color: var(--cobalt); background: var(--cobalt-soft); box-shadow: 0 0 0 1px var(--cobalt) inset; }
.tierpick__opt input:checked + .tierpick__box::after { border-color: var(--cobalt); background: var(--cobalt)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat; }
.tierpick__opt input:focus-visible + .tierpick__box { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .tierpick__opt input:checked + .tierpick__box::after { background-color: var(--cobalt); } }

/* Form fields that missed the site's input style */
.authform textarea, .authform select { font: inherit; padding: .8rem .9rem; color: var(--ink); background: var(--bg); border: 2px solid var(--rule); border-radius: 10px; width: 100%; box-sizing: border-box; }
.authform textarea { resize: vertical; min-height: 6rem; }
.authform textarea:focus, .authform select:focus { outline: 3px solid var(--focus); outline-offset: 1px; }

/* API account portal */
.newkey { display: grid; gap: .5rem; grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 1rem; margin: 1rem 0;
          background: var(--cobalt-soft); border: 2px solid var(--cobalt); border-radius: 12px; }
.newkey label { grid-column: 1 / -1; font-weight: 800; }
.newkey__value { font: 600 .95rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: .7rem .8rem; border: 2px solid var(--rule);
                 border-radius: 10px; background: var(--surface); color: var(--ink); min-width: 0; width: 100%; box-sizing: border-box; }
.keyactions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.keyactions form { margin: 0; }
.btn--quiet { background: transparent; color: var(--ink); border: 2px solid var(--rule); }
.btn--quiet:hover { border-color: var(--cobalt); }
.contract.is-off { opacity: .65; }
.keycreate { max-width: 30rem; margin-top: 1rem; }

/* Windham budget and links to it */
.moneyrow__more { display: inline-block; font-size: .82rem; font-weight: 700; margin-left: .25rem; white-space: nowrap; }
.moneyrow__name .moneyrow__meta { display: block; margin-top: .15rem; }
.windham > section { margin-top: 2.25rem; }

