/* trans.study — single responsive front-end. One set of pages; the nav is a top
   bar on wide screens and a fixed bottom tab bar on phones (mobile-first base).
   Inherits tokens.css. (Replaces the old separate m/ + d/ builds.) */
body { font-size: 17px; padding-bottom: 72px; }   /* room for the fixed bottom tab bar */

/* header: brand always; on wide it also holds the nav inline */
.hdr {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 8px 18px; border-bottom: 1px solid var(--line);
  background: var(--flag) top/100% 3px no-repeat, rgba(251,250,247,.96);
}
/* NB: no backdrop-filter on the base .hdr — it would create a containing block
   that traps the phone bottom-tab nav (position:fixed) inside the header. The
   blur is added back at >=768px below, where the nav is static (inline). */
.hdr .brand { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.hdr .brand b { color: var(--blue-ink); }

/* base (phones): nav = fixed bottom tabs, icon over label */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; height: 64px; display: flex; background: var(--paper-raised); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0); }
.nav a { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--ink-faint); font-size: .64rem; font-weight: 600; white-space: nowrap; }
.nav a .ic { width: 20px; height: 20px; display: grid; place-items: center; }
.nav a svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.nav a[aria-current="page"] { color: var(--blue-ink); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--flag); }

/* wide: nav rejoins the header as an inline top bar */
@media (min-width: 768px) {
  body { font-size: 18px; padding-bottom: 0; }
  .hdr { gap: 6px 18px; padding: 9px 28px 8px; min-height: 61px; flex-wrap: wrap; backdrop-filter: saturate(140%) blur(8px); background: var(--flag) top/100% 3px no-repeat, rgba(251,250,247,.9); }
  .hdr .brand { font-size: 1.32rem; }
  .nav { position: static; height: auto; flex: 1; background: none; border-top: 0; padding: 0; flex-direction: row; flex-wrap: wrap; gap: 3px; justify-content: flex-end; }
  .nav a { flex: 0 0 auto; flex-direction: row; gap: 7px; padding: 8px 11px; border-radius: 9px; color: var(--ink-soft); font-size: .9rem; }
  .nav a .ic, .nav a svg { width: 17px; height: 17px; }
  .nav a:hover { background: #f1eee6; color: var(--ink); }
  .nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
  .nav a[aria-current="page"]::before { display: none; }
  .nav a[aria-current="page"]::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 1px; height: 2.5px; border-radius: 2px 2px 0 0; background: var(--flag); }
}

/* main */
.d-main { padding: 0; }
.d-pad { padding: 36px 40px 80px; max-width: 1120px; margin: 0 auto; }
@media (max-width: 1100px) { .d-pad { padding: 30px 26px 70px; } }

.d-hero h1 { font-size: clamp(2.2rem, 3.6vw, 3.2rem); max-width: 16ch; }
.d-hero .kicker { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-ink); margin-bottom: 12px; }
.d-hero .lede { font-size: 1.25rem; color: var(--ink-soft); max-width: 44ch; }

.d-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; margin-top: 18px; }
@media (max-width: 920px) { .d-split { grid-template-columns: 1fr; gap: 24px; } }
.mission { border-left: 3px solid var(--blue); background: var(--paper-raised); box-shadow: var(--shadow); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 26px; font-size: 1.06rem; }
.mission .pull { font-family: var(--serif); font-size: 1.22rem; color: var(--ink); }
.mission p:last-child { margin-bottom: 0; }
.mission details { margin-top: 12px; }
.mission summary { color: var(--accent); font-weight: 600; cursor: pointer; font-size: .95rem; }
.mission details[open] summary { margin-bottom: 8px; }

h2 { font-size: 1.7rem; margin: 1.4em 0 .4em; }

/* questionnaire grid */
.q-panel { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.q-panel h3 { font-size: 1.15rem; }
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 14px 0; }
.chip { display: flex; flex-direction: column; gap: 3px; text-align: left; background: var(--paper); border: 1.5px solid var(--line); border-radius: 9px; padding: 11px 13px; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .12s, background .12s, transform .07s; }
.chip:hover { transform: translateY(-1px); border-color: var(--line-strong); }
.chip .cl { font-weight: 650; font-size: .92rem; }
.chip .cp { font-size: .76rem; color: var(--ink-faint); line-height: 1.35; }
.chip[aria-pressed="true"] { border-color: var(--accent); background: #f0f7fb; }
.chip[aria-pressed="true"] .cl::before { content: "✓ "; color: var(--accent); }
.q-go { margin-top: 8px; display: flex; align-items: center; gap: 14px; }

/* learn: list rail + cards */
/* learn: a clean top bar (search + progress), then full-width cards — no sticky
   sidebar (it overlapped/stacked weirdly at narrow widths). */
.learn-top { display: flex; align-items: center; gap: 24px; margin: 22px 0 20px; flex-wrap: wrap; }
.learn-top .search { flex: 1; min-width: 240px; font: inherit; font-size: .95rem; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper-raised); }
.learn-top .search:focus { outline: none; border-color: var(--accent); }
.learn-prog { display: flex; align-items: center; gap: 12px; }
.learn-prog .bar { width: 140px; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.learn-prog .fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--pink)); transition: width .4s; }
.learn-prog .pmeta { font-size: .82rem; color: var(--ink-faint); white-space: nowrap; }

/* 2-col GRID (row-major), not CSS columns: keeps reading order left-to-right and
   stops cards jumping between columns when one expands. align-items:start so an
   expanded card grows its own cell instead of rebalancing the whole layout. */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1240px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.done { border-color: var(--blue); }
.card-head { padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.card-head:hover { background: #fcfbf8; }
.card .heard { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-faint); }
.card .short { font-family: var(--serif); font-size: 1.16rem; color: var(--ink); margin-top: 4px; line-height: 1.3; }
.card .tw { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #f0ede5; color: var(--accent); display: grid; place-items: center; font-size: 1.1rem; transition: transform .2s; }
.card.open .tw { transform: rotate(45deg); }
.card-body { display: none; padding: 0 20px 20px; }
.card.open .card-body { display: block; }
.card-body .lab { font-size: .73rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--pink-ink); margin: 15px 0 4px; }
.card-body .ev { color: var(--ink-soft); }
.card-body .pb { background: #faf6f0; border-radius: 8px; padding: 12px 14px; color: var(--ink-soft); font-size: .95rem; }
.src { font-size: .8rem; color: var(--ink-faint); margin-top: 14px; }
.src b { color: var(--ink-soft); }

/* timeline: filter rail + spine */
.tl-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; align-items: start; }
@media (max-width: 900px) { .tl-grid { grid-template-columns: 1fr; } .tl-rail { position: static; } }
.tl-rail { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 8px; }
.tl-filter { font: inherit; font-size: .92rem; font-weight: 600; text-align: left; padding: 9px 14px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--paper-raised); color: var(--ink-soft); cursor: pointer; }
.tl-filter[aria-pressed="true"] { color: #fff; }
.tl-filter[data-f="all"][aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.tl-filter[data-f="executive"][aria-pressed="true"] { background: var(--exec); border-color: var(--exec); }
.tl-filter[data-f="judicial"][aria-pressed="true"] { background: var(--judicial); border-color: var(--judicial); }
.tl-filter[data-f="state"][aria-pressed="true"] { background: var(--state); border-color: var(--state); }
.tl-rail .tlc { font-size: .82rem; color: var(--ink-faint); margin-top: 6px; }

.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 0; width: 2px; background: var(--line-strong); }
.tl-year { font-family: var(--serif); font-size: 1.7rem; margin: 30px 0 12px -30px; padding-left: 30px; position: sticky; top: 64px; background: linear-gradient(var(--paper) 72%, transparent); z-index: 5; }
.tl-item { position: relative; margin-bottom: 16px; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.tl-item.in { opacity: 1; transform: none; }
.tl-item::before { content: ""; position: absolute; left: -29px; top: 7px; width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2.5px solid var(--ink-faint); }
.tl-item[data-f="executive"]::before { border-color: var(--exec); }
.tl-item[data-f="judicial"]::before { border-color: var(--judicial); }
.tl-item[data-f="state"]::before { border-color: var(--state); }
.tl-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: transform .1s, box-shadow .15s; }
.tl-card:hover { transform: translateX(2px); box-shadow: 0 2px 4px rgba(20,24,31,.06), 0 14px 32px rgba(20,24,31,.09); }
.tl-date { font-size: .8rem; font-weight: 700; color: var(--ink-faint); }
.tl-type { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 999px; margin-left: 8px; }
.tl-type.executive { background: #f6e7e5; color: var(--exec); }
.tl-type.judicial { background: #ebe7f3; color: var(--judicial); }
.tl-type.state { background: #f6eedd; color: var(--state); }
.tl-card h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 650; margin: 8px 0 5px; line-height: 1.3; }
.tl-sum { color: var(--ink-soft); margin: 0; }
.tl-status { font-size: .82rem; color: var(--ink-faint); margin-top: 8px; }
.tl-status b { color: var(--ink-soft); }

footer { color: var(--ink-faint); font-size: .86rem; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); max-width: 70ch; }

/* mid-desktop: tighten the inline nav so 7 items + brand stay on one row */
@media (min-width: 768px) and (max-width: 1180px) {
  .hdr { gap: 6px 10px; padding: 8px 18px; }
  .nav a { padding: 7px 9px; font-size: .85rem; gap: 6px; }
  .nav a .ic, .nav a svg { width: 15px; height: 15px; }
}
/* narrow content padding (bottom-tab nav handles navigation under 768px) */
@media (max-width: 760px) { .d-pad { padding: 22px 16px 40px; } }

/* legislation */
.scope { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 24px; margin: 8px 0 20px; }
.scope-head { font-size: 1.15rem; }
.scope-head strong { font-family: var(--serif); font-size: 1.4rem; color: var(--state); }
.scope-bars { display: flex; gap: 22px; align-items: flex-end; margin-top: 18px; }
.yb { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.yb-bar { width: 40px; background: #efe4cf; border-radius: 4px 4px 0 0; display: flex; align-items: flex-end; position: relative; }
.yb-pass { width: 100%; background: var(--state); border-radius: 4px 4px 0 0; }
.yb-n { font-size: .78rem; font-weight: 700; color: var(--ink-soft); }
.yb-y { font-size: .76rem; color: var(--ink-faint); }

.leg-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.leg-filters .search { flex: 1; min-width: 200px; font: inherit; padding: 11px 15px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper-raised); }
.leg-filters .search:focus { outline: none; border-color: var(--accent); }
.leg-filters select { font: inherit; font-size: .9rem; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--paper-raised); color: var(--ink); }
.bcount { font-size: .85rem; color: var(--ink-faint); margin: 0 0 10px; }

.bills { display: flex; flex-direction: column; }
.bill { display: grid; grid-template-columns: 92px minmax(0, 1fr) 130px 50px 110px; align-items: center; gap: 14px; padding: 11px 12px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.bill:hover { background: #f6f3ec; }
.b-id { font-weight: 700; font-size: .9rem; }
.b-title { color: var(--ink-soft); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-cat { font-size: .78rem; color: var(--ink-faint); text-transform: capitalize; }
.b-yr { font-size: .82rem; color: var(--ink-faint); }
.b-st { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; text-align: center; }
.b-st.b-p { background: #e7f1e8; color: #2f7d40; }
.b-st.b-f { background: #f0eef0; color: var(--ink-faint); }
.b-st.b-i { background: #f6eedd; color: var(--state); }
@media (max-width: 760px) {
  .bill { grid-template-columns: 80px minmax(0, 1fr) 96px; }
  .b-cat, .b-yr { display: none; }
}

/* model legislation */
.models-wrap { margin-bottom: 12px; }
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; margin: 12px 0 18px; }
@media (max-width: 1100px) { .models { grid-template-columns: 1fr; } }
.model { background: var(--paper-raised); border: 1px solid var(--line); border-left: 3px solid var(--pink); border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
.model-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; }
.model-head:hover { background: #fcfbf8; }
.m-titles { flex: 1; min-width: 0; }
.m-name { font-family: var(--serif); font-weight: 600; font-size: 1.08rem; line-height: 1.2; }
.m-org { font-size: .82rem; color: var(--ink-faint); margin-top: 3px; }
.m-badge { flex: none; text-align: center; background: #fbeef1; color: var(--pink-ink); border-radius: 10px; padding: 7px 11px; font-weight: 700; font-size: 1.25rem; line-height: 1; }
.m-badge span { display: block; font-size: .58rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.model-body { display: none; padding: 0 18px 18px; }
.model.open .model-body { display: block; }
.m-quote { font-family: var(--serif); font-style: italic; color: var(--ink); background: #faf6f0; border-radius: 8px; padding: 12px 14px; line-height: 1.45; }
.m-meta { font-size: .85rem; color: var(--ink-soft); margin: 8px 0 0; }

/* strategy / playbook */
.thesis { font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; color: var(--ink); max-width: 62ch; margin: 8px 0 20px; }
.gag { background: #fbeef1; border-left: 4px solid var(--pink); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; font-size: 1.05rem; color: var(--ink-soft); max-width: 72ch; margin: 0 0 28px; }
.gag b { color: var(--pink-ink); }
.ladder { position: relative; margin: 8px 0 26px; max-width: 840px; }
.stage { display: flex; gap: 20px; padding: 0 0 28px; position: relative; }
.stage::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: -4px; width: 2px; background: var(--line-strong); }
.stage:last-child::before { display: none; }
.stage-n { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; z-index: 1; }
.stage-b { flex: 1; padding-top: 4px; }
.stage-b h3 { font-family: var(--serif); font-size: 1.5rem; margin: 6px 0 6px; }
.stage .summary { color: var(--ink); font-size: 1.08rem; line-height: 1.55; margin: 0 0 4px; max-width: 62ch; }
.stage .f-tech { margin-top: 12px; max-width: 64ch; }
.mech { color: var(--ink-soft); margin: 0 0 8px; }
.why { color: var(--ink-faint); margin: 0 0 12px; }
.why b { color: var(--pink-ink); }
.exl { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.exl li { font-size: .92rem; color: var(--ink-soft); }
.exl a { color: var(--accent); }
.ex-d { font-weight: 700; color: var(--ink-faint); font-size: .82rem; margin-right: 4px; }
.docbadge { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: #f6e7e5; color: var(--exec); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.skipped, .foundation { border-radius: var(--radius); padding: 18px 22px; max-width: 72ch; }
.skipped { background: var(--ink); color: #f3f1ec; font-size: 1.02rem; }
.skipped b { color: #fff; }
.foundation { background: var(--paper-raised); border: 1px solid var(--line); color: var(--ink-soft); margin-top: 14px; }
.foundation b { color: var(--ink); }

/* framing quiz (the fine print) */
.frame { background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin: 0 0 16px; max-width: 760px; }
.f-heard { font-family: var(--serif); font-size: 1.3rem; color: var(--ink); line-height: 1.3; }
.f-note { font-size: .74rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .05em; margin-top: 5px; }
.f-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }
.f-opt { text-align: left; font: inherit; font-size: .95rem; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); cursor: pointer; transition: border-color .12s, transform .07s; }
.f-opt:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.frame.answered .f-opt { cursor: default; }
.frame.answered .f-opt:hover { transform: none; }
.f-opt.correct { border-color: #2f7d40; background: #e7f1e8; color: #1f5e30; font-weight: 600; }
.f-opt.dim { opacity: .45; }
.f-opt.chose-wrong { border-color: var(--exec); background: #f6e7e5; opacity: 1; }
.f-reveal { display: none; }
.frame.answered .f-reveal { display: block; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.f-reveal p { color: var(--ink-soft); line-height: 1.5; margin: 0 0 6px; max-width: 64ch; }
.f-reveal a { font-weight: 600; }
@media (max-width: 640px) { .f-opts { grid-template-columns: 1fr; } }

/* "they admitted it" pull-quote */
.admit { margin: 0 0 26px; padding: 24px 28px; background: var(--ink); color: #f3f1ec; border-radius: var(--radius); font-family: var(--serif); font-size: 1.45rem; line-height: 1.4; max-width: 780px; }
.admit cite { display: block; font-family: var(--sans); font-style: normal; font-size: .85rem; color: #c9c4ba; margin-top: 12px; font-weight: 600; }
.admit .admit-ctx { font-family: var(--sans); font-size: .95rem; line-height: 1.5; color: #d7d2c8; margin: 14px 0 0; }
.admit .admit-ctx a { color: #9fd0ea; font-weight: 600; }

/* per-answer Technical disclosure (progressive complexity) */
.f-tech-toggle { margin-top: 12px; background: none; border: 1px solid var(--line-strong); color: var(--ink-soft); font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .02em; padding: 6px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.f-tech-toggle:hover { border-color: var(--pink-ink); color: var(--ink); }
.f-tech-toggle .chev { font-size: .72rem; transition: transform .15s ease; }
.f-tech-toggle.open .chev { transform: rotate(180deg); }
.f-tech { margin-top: 14px; padding: 16px 18px; background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius); }
.f-tech-body { font-size: .94rem; color: var(--ink-soft); line-height: 1.6; margin: 0 0 14px; }
.f-src-h { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-faint); margin-bottom: 8px; }
.f-src ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.f-src a { font-size: .9rem; font-weight: 600; color: var(--accent); text-decoration: none; line-height: 1.4; }
.f-src a:hover { text-decoration: underline; }

/* Absurdities — the emotive layer, alongside Technical */
.f-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.f-tools .f-tech-toggle { margin-top: 0; }
.f-absurd-toggle { border-color: var(--pink); color: var(--pink-ink); }
.f-absurd-toggle:hover { border-color: var(--pink-ink); background: #fdeef2; color: var(--pink-ink); }
.f-tech.f-absurd { background: #fbeef1; border-color: #f3cdd8; }
.absurd-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.absurd-list li { border-left: 3px solid var(--pink); padding: 2px 0 2px 14px; font-size: 1.02rem; line-height: 1.5; color: var(--ink); max-width: 64ch; }

/* Library / primary-source database */
.lib-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 8px; }
.lcat { font: inherit; font-size: .85rem; font-weight: 600; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper-raised); color: var(--ink-soft); cursor: pointer; }
.lcat span { color: var(--ink-faint); font-weight: 500; }
.lcat[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.lcat[aria-pressed="true"] span { color: #c9c4ba; }
.lib { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.lrow { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 13px 18px; background: var(--paper-raised); border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: var(--radius); transition: box-shadow .12s ease; }
.lrow:hover { box-shadow: var(--shadow); }
.lrow.l-study { border-left-color: var(--blue); }
.lrow.l-court { border-left-color: var(--judicial); }
.lrow.l-govt { border-left-color: var(--state); }
.lrow.l-bill { border-left-color: var(--exec); }
.l-main { min-width: 0; }
.l-src { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); margin-right: 10px; }
.l-label { font-size: 1rem; color: var(--ink); }
.l-links { display: flex; align-items: center; gap: 16px; white-space: nowrap; flex-shrink: 0; }
.l-pdf { font-size: .88rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.l-orig { font-size: .86rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.l-pdf:hover, .l-orig:hover { text-decoration: underline; }
.l-cites { font-size: .74rem; color: var(--ink-faint); }

/* data charts (QuickChart PNGs, self-hosted) */
.chart { display: block; width: 100%; max-width: 560px; height: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-raised); }
.chart-wide { max-width: 680px; }

/* comfortable reading measure on wide screens — long lines kill readability (Ciechanowski/ProPublica) */
.short, .ev, .pb, .f-reveal p, .f-tech-body, .d-hero .lede, .card .heard, .admit-ctx { max-width: var(--measure); }

/* Rulings: on a wide main column, show the justice's words and the response as
   facing columns — the literal marginalia of an annotated opinion. */
.case-head, .dissent { max-width: 900px; }
.case-holding, .case-plain { max-width: var(--measure); }
@media (min-width: 900px) {
  .ann { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
  .ann-q { position: sticky; top: 76px; }
  .ann-r { margin-top: 0; padding-top: 2px; }
  .ann-q blockquote { font-size: 1.12rem; }
}
.dq-t { max-width: var(--measure); }
.spotlight { max-width: 900px; }
@media (min-width: 760px) { .spot-grid { grid-template-columns: 1fr 1fr; gap: 16px; } }

/* assets revalidate per _headers — cache-bust 2026-06-30 */
