/* Montana Session — newspaper ledger.
   Paper and ink, one oxblood accent, Georgia for headlines and titles, a neutral sans for the working UI. */
:root {
  --paper: #f5f1e8;
  --sheet: #fcfaf5;
  --wash: #ece6da;
  --ink: #25251f;
  --ink-2: #44433b;
  --muted: #66645a;
  --line: #d9d3c5;
  --line-soft: #e6e0d3;
  --accent: #843c31;
  --accent-ink: #6f3027;
  --accent-wash: #f1e2dc;
  --law: #2f5b3d;
  --law-wash: #e2eadc;
  --amber: #8a6420;
  --amber-wash: #f2e8d2;
  --rep: #9b3a30;
  --dem: #2e4f7f;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'SFMono-Regular', Menlo, Consolas, monospace;
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--accent); }
::selection { background: var(--accent); color: var(--sheet); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: normal; letter-spacing: -.01em; text-wrap: balance; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.icon { flex: none; vertical-align: -2px; }
html { scrollbar-color: #bdb6a6 var(--paper); }

/* Buttons and controls */
button { cursor: pointer; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); transition: background .15s var(--ease), border-color .15s var(--ease); }
button:hover { border-color: var(--ink-2); }
button:active { background: var(--wash); }
button:disabled { cursor: progress; opacity: .55; }
button.secondary { width: 100%; margin-top: 10px; }
input[type=search], input[type=date], select { min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); }
select { padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2366645a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; cursor: pointer; }
input:hover, select:hover { border-color: #bdb6a6; }
input::placeholder { color: #8a877c; }
input[type=checkbox] { accent-color: var(--accent); width: 16px; height: 16px; }

/* Shell */
.skip { position: absolute; left: 16px; top: -100px; padding: 10px 14px; background: var(--sheet); z-index: 3; }
.skip:focus { top: 10px; }
.page { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.edition { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0 10px; border-bottom: 1px solid var(--ink); color: var(--muted); font-size: 12px; letter-spacing: .01em; }
.edition strong { font-weight: normal; color: var(--ink-2); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0 20px; }
.wordmark { display: inline-flex; align-items: center; gap: .3em; font: normal clamp(38px, 5vw, 56px)/1 var(--serif); letter-spacing: -.035em; color: var(--ink); text-decoration: none; }
.brand-mark { display: block; flex: none; height: .8em; width: auto; margin-top: .04em; }
.mark { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 28px; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); overflow-x: auto; scrollbar-width: none; }
.nav a { display: block; white-space: nowrap; padding: 13px 0 11px; font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.nav a:hover { border-bottom-color: var(--line); }
.nav a[aria-current=page] { font-weight: 700; border-bottom-color: var(--accent); }
.nav .coverage-link { margin-left: auto; color: var(--muted); }
.notice { margin: 16px 0 0; padding: 12px 14px; background: var(--amber-wash); color: #5c4416; border-radius: var(--radius); font-size: 14px; }
main { min-height: 60vh; outline: none; }
.loading { padding: 40px 0; color: var(--muted); }
.footer { display: flex; justify-content: space-between; gap: 16px; border-top: 3px solid var(--ink); margin-top: 64px; padding: 18px 0 32px; font-size: 13px; color: var(--muted); }
.footer strong { color: var(--ink); font-weight: normal; font-family: var(--serif); font-size: 15px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-brand img { display: block; height: 14px; width: auto; }
.footer a { color: var(--ink-2); }

/* Page head */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding: 34px 0 22px; }
.page-head h1 { font-size: 42px; line-height: 1.08; }
.lede { margin-top: 10px; max-width: 62ch; color: var(--ink-2); font: 17px/1.5 var(--serif); }
.page-head-aside { display: flex; gap: 20px; flex-wrap: wrap; padding-bottom: 4px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-decoration: none; }
.more-link .icon { transition: transform .2s var(--ease); }
.more-link:hover .icon { transform: translateX(3px); }
.ext { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.ext:hover { text-decoration: underline; }
.ext .icon { opacity: .7; }
.link-row { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; font-size: 14px; }
.crumbs { display: flex; align-items: center; gap: 8px; padding-top: 22px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* Filters */
.filters { padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.field label, .field-label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.field.search { flex: 1 1 320px; }
.search-box { display: flex; align-items: center; gap: 8px; padding: 0 4px 0 12px; min-height: 44px; border: 1px solid #bdb6a6; border-radius: var(--radius); background: var(--sheet); color: var(--muted); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.search-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.search-box input { flex: 1; min-width: 0; border: 0; padding: 0; min-height: 40px; background: transparent; color: var(--ink); font-size: 15px; outline: none; }
.search-box input::-webkit-search-cancel-button { filter: grayscale(1); }
.search-go { min-height: 34px; padding: 4px 14px; border: 0; background: var(--ink); color: var(--sheet); font-size: 13px; font-weight: 600; }
.search-go:hover { background: var(--accent); }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); padding: 2px; }
.segmented button { min-height: 34px; border: 0; border-radius: 2px; background: transparent; padding: 4px 14px; font-size: 14px; color: var(--ink-2); }
.segmented button[aria-pressed=true] { background: var(--ink); color: var(--sheet); }
.segmented button:not([aria-pressed=true]):hover { background: var(--wash); }
.more-filters { margin-top: 12px; }
.more-filters summary { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 4px 0; }
.more-filters summary::-webkit-details-marker { display: none; }
.more-filters summary:hover { color: var(--accent); }
.more-filters[open] summary { margin-bottom: 12px; }
.badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--sheet); font-size: 12px; font-weight: 700; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-size: 14px; cursor: pointer; }

/* Workspace */
.workspace, .detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.results-head { display: flex; align-items: center; gap: 16px; padding: 18px 0 10px; border-bottom: 2px solid var(--ink); }
.result-count { font-weight: 700; font-size: 14px; }
.clear-link { font-size: 13px; }
.sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--muted); }
.sort select { min-height: 34px; padding: 4px 30px 4px 10px; font-size: 13px; }
.load-more, .show-all { display: block; margin: 18px 0 0; min-width: 200px; font-weight: 600; font-size: 14px; }
.show-all { min-width: 0; min-height: 34px; padding: 4px 12px; font-size: 13px; }

/* Bill ledger row */
.ledger { display: flex; flex-direction: column; }
.bill-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 200px; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); transition: background .15s var(--ease); }
.bill-row:hover { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--sheet) 80%, transparent) 10%, color-mix(in srgb, var(--sheet) 80%, transparent) 90%, transparent); }
.bill-id { display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.bill-state { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); }
.bill-number { font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bill-number:hover { color: var(--accent); }
.bill-title { font-size: 20px; line-height: 1.3; text-wrap: pretty; }
.bill-title a { color: var(--ink); text-decoration: none; }
.bill-title a:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.bill-meta { margin-top: 5px; font-size: 13px; color: var(--muted); }
.bill-summary { margin-top: 8px; font-size: 14px; color: var(--ink-2); max-width: 68ch; }
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.flag { display: inline-block; padding: 2px 8px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; color: var(--ink-2); text-decoration: none; background: var(--sheet); }
a.flag:hover { border-color: var(--accent); color: var(--accent); }
.flag-accent { border-color: var(--accent); color: var(--accent); }
.bill-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 2px; }
.status-text { font-size: 13px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.status-date { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Stage pills */
.stage { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px 1px 7px; border-radius: 10px; font-size: 12px; font-weight: 700; line-height: 18px; background: var(--wash); color: var(--ink-2); margin-right: 8px; vertical-align: 1px; }
.stage::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stage-law { background: var(--law-wash); color: var(--law); }
.stage-died, .stage-failed, .stage-vetoed { background: var(--accent-wash); color: var(--accent-ink); }
.stage-draft { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.bill-status .stage { margin-right: 0; }
.party { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 2px; font-size: 12px; font-weight: 700; color: var(--sheet); background: var(--muted); vertical-align: 1px; margin-left: 6px; }
.party-r { background: var(--rep); }
.party-d { background: var(--dem); }

/* Rail */
.rail { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 26px; padding-top: 18px; }
.rail-block { border-top: 2px solid var(--ink); padding-top: 12px; }
.rail-block h2 { font-size: 19px; margin-bottom: 10px; }
.rail-block p { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.session-list { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 14px; }
.session-list dt { grid-column: 1 / -1; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.session-list dt:first-child { margin-top: 0; }
.session-list dd { display: contents; }
.session-list dd a { color: var(--ink); text-decoration: none; padding: 3px 0; }
.session-list dd a:hover { color: var(--accent); text-decoration: underline; }
.session-list dd .num { color: var(--muted); padding: 3px 0; text-align: right; }
.people li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; padding: 5px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.people .party { margin-left: 0; }
.people a { color: var(--ink); }
.cell-sub { display: block; font-size: 12px; color: var(--muted); }
.people .cell-sub { display: inline; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 3px 9px; border-radius: 10px; background: var(--wash); font-size: 13px; color: var(--ink-2); }
.jump li { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; }
.jump .num { color: var(--muted); }

/* Bill detail */
.bill-head { padding: 14px 0 26px; border-bottom: 1px solid var(--ink); }
.bill-head-number { display: flex; align-items: baseline; gap: 10px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bill-head h1 { margin-top: 8px; font-size: 40px; line-height: 1.12; max-width: 24em; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 22px; margin-top: 22px; font-size: 15px; max-width: 760px; }
.facts dt { color: var(--muted); font-size: 13px; padding-top: 1px; }
.facts dd .cell-sub { display: inline; }
.facts.compact { margin-top: 12px; font-size: 13px; gap: 4px 16px; }
.bill-head .link-row { margin-top: 18px; }
.detail-body { min-width: 0; }
.block { padding: 26px 0 8px; }
.block + .block { border-top: 1px solid var(--line); }
.block-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.block-head h2 { font-size: 26px; }
.block-head .count, .doc-group .count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.block > h3 { font: 700 13px/1.4 var(--sans); color: var(--ink-2); margin: 20px 0 8px; }
.block-intro { font-size: 14px; color: var(--muted); margin-bottom: 14px; max-width: 68ch; }
.status-note { padding: 10px 12px; background: var(--wash); border-radius: var(--radius); font-size: 14px; color: var(--ink-2); margin: 10px 0 18px; max-width: 72ch; }
.review-headline { font: 21px/1.35 var(--serif); margin-bottom: 8px; }

.timeline { position: relative; }
.timeline li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 8px 0; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 112px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.timeline li::after { content: ''; position: absolute; left: 109px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.timeline li:first-child::after { background: var(--accent); box-shadow: none; }
.timeline time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.timeline li > div { padding-left: 14px; }
.timeline-action { font-size: 15px; }
.chamber { display: inline-block; margin-right: 8px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.timeline-sub { font-size: 13px; color: var(--muted); }

.rollcalls { display: flex; flex-direction: column; gap: 10px; }
.rollcall { padding: 14px 16px; background: var(--sheet); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.rollcall-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.rollcall-motion { font-weight: 600; }
.rollcall-meta { font-size: 13px; color: var(--muted); }
.tally { display: flex; gap: 12px; font-size: 14px; white-space: nowrap; }
.tally .yes { color: var(--law); font-weight: 700; }
.tally .no { color: var(--accent-ink); font-weight: 700; }
.tally .other { color: var(--muted); }
.tally-bar { display: flex; height: 6px; margin: 12px 0 10px; border-radius: 3px; overflow: hidden; background: var(--wash); }
.tally-bar .yes { background: var(--law); }
.tally-bar .no { background: var(--accent); }
.tally-bar .other { background: #c8c1b1; }
.rollcall-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.rollcall-members summary, .compare summary, .provenance summary, .doc-group summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.rollcall-members summary:hover, .compare summary:hover, .provenance summary:hover, .doc-group summary:hover { color: var(--accent); }
.member-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.member-groups .member-group-title { font: 700 12px/1.4 var(--sans); color: var(--ink); margin: 0 0 4px; }

.prior { padding: 16px 0; border-top: 1px solid var(--line-soft); }
.prior:first-of-type { border-top: 0; padding-top: 0; }
.prior-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.prior-title { font-size: 17px; font-weight: 700; }
.prior-title a { color: var(--ink); }
.prior-session { margin-left: 10px; font-weight: normal; font-size: 14px; color: var(--muted); }
.prior-outcome { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.similarity { text-align: right; line-height: 1.1; }
.similarity strong { display: block; font: 30px/1 var(--serif); color: var(--accent); }
.similarity span { font-size: 12px; color: var(--muted); }
.compare { margin-top: 10px; }
.compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.compare figcaption { font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.compare blockquote { font: 15px/1.6 var(--serif); color: var(--ink-2); padding: 12px 14px; background: var(--sheet); border-radius: var(--radius); border: 1px solid var(--line-soft); }

.table-wrap { overflow-x: auto; margin: 4px 0; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
table.data td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tbody tr:hover td { background: color-mix(in srgb, var(--sheet) 70%, transparent); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .nowrap { white-space: nowrap; }
table.data a { color: var(--ink); }
table.data a:hover { color: var(--accent); }
table.data a.ext { color: var(--accent); }
.table-status { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.person-cell { display: inline-flex; align-items: center; gap: 10px; }
.position { font-weight: 700; font-size: 13px; }
.position-yes { color: var(--law); }
.position-no { color: var(--accent-ink); }
.position-absent, .position-excused, .position-not-recorded { color: var(--muted); font-weight: normal; }
.yes-mark { color: var(--law); font-weight: 700; }

.versions { border-top: 1px solid var(--line-soft); }
.version { border-bottom: 1px solid var(--line-soft); }
.version summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 10px 0; cursor: pointer; list-style: none; }
.version summary::-webkit-details-marker { display: none; }
.version-label { font-weight: 600; }
.version-date { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.version-action { font-size: 13px; font-weight: 600; color: var(--accent); min-width: 60px; text-align: right; }
.version-action.muted { color: var(--muted); font-weight: normal; }
.version[open] summary .version-action:not(.muted) { color: var(--muted); }
.version .link-row { padding-bottom: 8px; }
.text-content { max-height: 560px; overflow: auto; white-space: pre-wrap; padding: 16px 18px; margin-bottom: 14px; background: var(--sheet); border: 1px solid var(--line-soft); border-radius: var(--radius); font: 13px/1.6 var(--mono); color: var(--ink-2); }
.doc-group { border-bottom: 1px solid var(--line-soft); padding: 10px 0; }
.doc-group summary { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.doc-list { margin: 8px 0 4px; }
.doc-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 5px 0; font-size: 14px; color: var(--muted); }
.doc-link { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.doc-link:hover { color: var(--accent); text-decoration: underline; }
.doc-link .icon { display: none; }
.doc-date { font-size: 13px; font-variant-numeric: tabular-nums; }
.provenance { margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); }
.provenance .link-row { margin-top: 10px; }
.hash { font-family: var(--mono); font-size: 12px; overflow-wrap: anywhere; color: var(--muted); }
.receipt { margin: 14px 0; }
.receipt figcaption { display: flex; gap: 10px; align-items: baseline; font-size: 13px; font-weight: 700; }
.receipt blockquote { margin: 6px 0; padding: 10px 14px; font: 16px/1.55 var(--serif); background: var(--sheet); border-radius: var(--radius); }
.receipt:focus { outline: 2px solid var(--accent); outline-offset: 6px; }
.verified { font-weight: normal; color: var(--law); font-size: 12px; }
.correction { padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }

/* People */
.portrait { display: block; flex: none; object-fit: cover; background: var(--wash); }
.portrait-sm { width: 30px; height: 36px; border-radius: 2px; }
.portrait-lg { width: 112px; height: 140px; border-radius: var(--radius); }
.monogram { display: grid; place-items: center; font: 13px/1 var(--serif); color: var(--muted); }
.portrait-lg.monogram { font-size: 34px; }
.person-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: end; padding: 18px 0 26px; border-bottom: 1px solid var(--ink); }
.person-head h1 { font-size: 42px; line-height: 1.1; }
.person-head .link-row { margin-top: 12px; }
.stat-row { display: flex; gap: 28px; }
.stat-row dt { font-size: 12px; color: var(--muted); }
.stat-row dd { font: 28px/1.1 var(--serif); }

/* Index pages */
.days li { display: grid; grid-template-columns: 200px minmax(0, 1fr) 90px; gap: 16px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.days a { color: var(--ink); }
.day-bar { height: 8px; background: var(--wash); border-radius: 4px; overflow: hidden; }
.day-bar span { display: block; height: 100%; background: var(--ink-2); border-radius: 4px; }
.days .num { text-align: right; color: var(--muted); }
.pattern-list { counter-reset: pattern; max-width: 760px; }
.pattern-list li { counter-increment: pattern; display: grid; grid-template-columns: 34px minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.pattern-list li::before { content: counter(pattern); font: 20px/1.3 var(--serif); color: var(--muted); grid-row: span 2; }
.pattern-list h3 { font-size: 19px; }
.pattern-list h3 a { color: var(--ink); }
.pattern-list p { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.index-list li { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.error-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.foot-links { margin-top: 26px; }
.filter-note { margin: 12px 0; font-size: 14px; }

/* Network */
.network-figure { margin: 8px 0 20px; }
.network-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.network { display: block; width: 100%; max-width: 860px; height: auto; margin: 0 auto; }
.network path { fill: none; stroke: var(--accent); stroke-opacity: .45; }
.network circle { fill: var(--ink); }
.network text { font: 12px var(--sans); fill: var(--ink-2); }
.network-figure figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Prose */
.prose { max-width: 680px; padding-bottom: 20px; }
.prose p { font: 17px/1.65 var(--serif); color: var(--ink-2); margin-bottom: 14px; }
.prose h2 { font-size: 26px; margin: 30px 0 10px; }
.prose .link-row { margin-top: 24px; }
.prose .facts { margin: 12px 0 8px; }
.prose .pattern-list p { font: 14px/1.5 var(--sans); }

/* Empty, error, loading */
.empty { padding: 30px 0; max-width: 560px; }
.empty-title { font: 21px/1.3 var(--serif); margin-bottom: 6px; }
.empty p { color: var(--ink-2); margin-bottom: 10px; }
.empty.error .empty-title { color: var(--accent-ink); }
.error-text { color: var(--accent-ink); }
.skeleton { padding: 6px 0; }
.skeleton-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 200px; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.skeleton-row span { height: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--wash), var(--line-soft), var(--wash)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skeleton-row span:nth-child(2) { height: 20px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Responsive */
@media (min-width: 1440px) { .page { padding: 0 48px; } }
@media (max-width: 1020px) {
  .page { padding: 0 24px; }
  .workspace, .detail-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; }
  .bill-row { grid-template-columns: 78px minmax(0, 1fr) 160px; gap: 14px; }
  .person-head { grid-template-columns: auto minmax(0, 1fr); }
  .stat-row { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .page { padding: 0 16px; }
  .edition { font-size: 12px; }
  .edition-right { display: none; }
  .masthead { padding: 18px 0 16px; }
  .wordmark { font-size: 34px; letter-spacing: -.03em; }
  .nav { gap: 20px; }
  .nav a { font-size: 14px; }
  .nav .coverage-link { margin-left: 0; }
  .page-head { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 0 16px; }
  .page-head h1, .person-head h1 { font-size: 32px; }
  .lede { font-size: 16px; }
  .workspace, .detail-grid { display: block; }
  .rail { position: static; margin-top: 28px; }
  .filter-row { gap: 12px; }
  .field { min-width: 0; flex: 1 1 140px; }
  .field.search, .field-state { flex-basis: 100%; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .bill-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0; }
  .bill-id { flex-direction: row; align-items: baseline; gap: 8px; }
  .bill-title { font-size: 19px; }
  .bill-status { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
  .status-text { -webkit-line-clamp: 1; }
  .skeleton-row { grid-template-columns: 1fr; gap: 10px; }
  .bill-head h1 { font-size: 30px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
  .block-head h2 { font-size: 23px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 18px; }
  .timeline li::before { left: 3px; }
  .timeline li::after { left: 0; top: 13px; }
  .timeline li > div { padding-left: 0; }
  .rollcall-head, .prior-head, .rollcall-foot { flex-direction: column; gap: 8px; }
  .similarity { text-align: left; display: flex; align-items: baseline; gap: 8px; }
  .similarity strong { display: inline; font-size: 24px; }
  .compare-cols { grid-template-columns: 1fr; }
  .person-head { grid-template-columns: 1fr; gap: 16px; }
  .stat-row { gap: 20px; }
  .days li { grid-template-columns: minmax(0, 1fr) 80px; }
  .day-bar { grid-column: 1 / -1; grid-row: 2; }
  .error-list li { grid-template-columns: 1fr; gap: 2px; }
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  table.data td { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; border: 0; text-align: right; }
  table.data td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; flex: none; }
  table.data td:first-child { font-weight: 600; }
  table.data .num { text-align: right; }
  .footer { flex-direction: column; gap: 10px; margin-top: 40px; }
  .network { width: 720px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  body { background: white; }
  .nav, .filters, .segmented, .sort, .load-more, .show-all, .rail button { display: none; }
  .workspace, .detail-grid { display: block; }
  .page { padding: 0; }
  .bill-row, .rollcall, .prior { break-inside: avoid; }
  a { color: inherit; }
  .text-content { max-height: none; }
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.pick-list { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }
.pick-list li { display: flex; gap: 6px; align-items: baseline; }
.pick-list .cell-sub { display: inline; }
