/* Plankwise — one stylesheet for every page.
   Calm, nonpartisan civic palette: warm neutrals with a single deep-teal accent. */

:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --surface-2: #f3f2ee;
  --surface-3: #ebe9e3;
  --ink: #15181c;
  --ink-2: #3b424a;
  --muted: #646d77;
  --line: #e4e1da;
  --line-strong: #cdc9bf;
  --accent: #0d6b62;
  --accent-ink: #0a5650;
  --accent-soft: #e2efec;
  --accent-line: #b7d6d0;
  --on-accent: #ffffff;
  --warn-ink: #7a4b00;
  --warn-bg: #fbf2de;
  --warn-line: #e8cf98;
  --danger: #a1301f;
  --danger-bg: #fbecea;
  --ok-bg: #e9f3ef;

  --font-serif: "Iowan Old Style", "Palatino Linotype", "URW Palladio L", P052, "Book Antiqua", Palatino, Georgia, serif;
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgb(20 24 28 / 0.05);
  --shadow: 0 1px 2px rgb(20 24 28 / 0.04), 0 4px 16px rgb(20 24 28 / 0.05);
  --shadow-lg: 0 2px 4px rgb(20 24 28 / 0.04), 0 16px 40px rgb(20 24 28 / 0.08);
  --focus: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent);
  --measure: 68ch;
  --header-h: 60px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101214;
    --surface: #171a1d;
    --surface-2: #1d2124;
    --surface-3: #262b2f;
    --ink: #eceeef;
    --ink-2: #c8cdd2;
    --muted: #98a1aa;
    --line: #2a2f34;
    --line-strong: #3a4047;
    --accent: #5bbcae;
    --accent-ink: #7fd0c3;
    --accent-soft: #15302c;
    --accent-line: #24524b;
    --on-accent: #08201d;
    --warn-ink: #f0c879;
    --warn-bg: #2c2312;
    --warn-line: #5a4721;
    --danger: #f08a7a;
    --danger-bg: #2e1814;
    --ok-bg: #142823;
    --shadow-sm: none;
    --shadow: 0 1px 0 rgb(255 255 255 / 0.02);
    --shadow-lg: 0 16px 40px rgb(0 0 0 / 0.4);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; outline: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, h5 { margin: 0 0 0.5em; color: var(--ink); line-height: 1.2; }
h1, h2, .display { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.012em; }
h1 { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); }
h2 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.65rem); }
h3, .h3 { font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.005em; }
h4, .h4 { font-family: var(--font-sans); font-size: 0.95rem; font-weight: 650; }
.h2 { font-family: var(--font-serif); font-size: clamp(1.4rem, 1.2rem + 0.7vw, 1.75rem); font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a:hover { text-decoration-color: currentColor; }
code, .mono { font-family: var(--font-mono); font-size: 0.86em; }
strong { font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 0.6rem 1rem; border-radius: var(--radius-sm); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0.75rem; }

.container { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.container-wide { max-width: 84rem; }
main.container { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); }

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.nowrap { white-space: nowrap; }
.tabular, .num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.grow { flex: 1 1 14rem; }
.eyebrow {
  margin: 0 0 0.6rem; color: var(--muted);
  font: 600 0.75rem/1.3 var(--font-sans); letter-spacing: 0.08em; text-transform: uppercase;
}
.eyebrow a { color: inherit; }
.lede { font-size: 1.125rem; line-height: 1.55; color: var(--ink-2); max-width: var(--measure); }
.stack > * + * { margin-top: 1.1rem; }
.stack > .form-status:empty { margin-top: 0; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand .mark { width: 28px; height: 28px; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 0.25rem 1rem; flex-wrap: wrap; justify-content: flex-end; }
.site-nav > a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: 0.9rem; font-weight: 550; padding: 0.35rem 0.1rem; }
.site-nav > a:not(.btn):hover, .site-nav > a[aria-current] { color: var(--ink); }
.site-nav > a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); }
.account { display: flex; align-items: center; gap: 0.6rem; }
.account-email { color: var(--muted); font-size: 0.875rem; max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .account-email { display: none; } }

/* ---------- Tenant bar ---------- */
.tenant-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.tenant-bar .container { display: flex; flex-direction: column; gap: 0.35rem; padding-top: 0.9rem; }
.tenant-id { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.9rem; }
.tenant-state { color: var(--muted); text-decoration: none; }
.tenant-state:hover { color: var(--ink); }
.tenant-sep { color: var(--line-strong); }
.tenant-name { color: var(--ink); font-weight: 650; text-decoration: none; }
.tabs { display: flex; gap: 0.25rem; overflow-x: auto; scrollbar-width: none; margin-inline: -0.6rem; padding-inline: 0.6rem; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; position: relative; padding: 0.7rem 0.6rem 0.8rem; color: var(--muted);
  text-decoration: none; font-size: 0.92rem; font-weight: 550; white-space: nowrap;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0.6rem; right: 0.6rem; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: auto; }
.site-footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.6rem; font-size: 0.85rem; color: var(--muted); }
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink-2); }
.footer-meta { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.brand-small { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 650; color: var(--ink-2); }
.brand-small .mark { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-ink: var(--ink); --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  min-height: 40px; padding: 0.5rem 1rem; border-radius: var(--radius-sm);
  border: 1px solid var(--btn-line); background: var(--btn-bg); color: var(--btn-ink);
  font: 600 0.92rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { --btn-bg: var(--surface-2); --btn-line: var(--line-strong); }
.btn-primary { --btn-bg: var(--accent); --btn-ink: var(--on-accent); --btn-line: var(--accent); }
.btn-primary:hover { --btn-bg: var(--accent-ink); --btn-line: var(--accent-ink); }
.btn-quiet { --btn-bg: transparent; --btn-line: transparent; box-shadow: none; }
.btn-quiet:hover { --btn-bg: var(--surface-2); --btn-line: transparent; }
.btn-danger { --btn-ink: var(--danger); }
.btn-danger:hover { --btn-bg: var(--danger-bg); }
.btn-sm { min-height: 32px; padding: 0.3rem 0.7rem; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.is-current { --btn-bg: var(--surface-2); }
.row-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.link-quiet { color: var(--muted); font-size: 0.875rem; font-weight: 550; text-decoration: none; }
.link-quiet:hover { color: var(--accent-ink); text-decoration: underline; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.12rem 0.5rem; border-radius: 999px;
  font: 600 0.75rem/1.5 var(--font-sans); letter-spacing: 0.01em; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.badge-outline { background: transparent; }
.badge-neutral { background: var(--surface-2); color: var(--muted); }
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-line); }
.badge-provisional { background: var(--warn-bg); color: var(--warn-ink); border-color: var(--warn-line); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; }
.badge-provisional::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
h2 .badge { vertical-align: middle; margin-left: 0.4rem; font-family: var(--font-sans); }

/* ---------- Page header ---------- */
.page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; margin-bottom: 2rem; }
.page-header-text { flex: 1 1 32rem; min-width: 0; }
.page-header h1 { margin-bottom: 0.35rem; }
.page-header .lede { margin-bottom: 0; }
.page-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.page-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1rem; margin: 0.9rem 0 0; color: var(--muted); font-size: 0.875rem; }
.page-meta > span + span:not(.badge)::before { content: "·"; margin-right: 1rem; color: var(--line-strong); }
.bill-number { font-family: var(--font-mono); font-size: 0.8em; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 0.05em 0.4em; border-radius: 6px; vertical-align: 0.08em; letter-spacing: 0; }

.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1.25rem; padding: 0; font-size: 0.85rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--ink-2); }

.jump { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 2rem; }
.jump a { padding: 0.3rem 0.75rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; color: var(--ink-2); text-decoration: none; background: var(--surface); }
.jump a:hover { border-color: var(--line-strong); color: var(--ink); }

/* ---------- Surfaces ---------- */
.card, .panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.25rem 1.35rem; height: 100%; }
.card p { margin-bottom: 0.5rem; }
.card-link { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: no-preference) { .card-link:hover { transform: translateY(-1px); } }
.card-link h2, .card-link h3 { margin-bottom: 0.25rem; }
.card-cta { margin-top: auto; padding-top: 0.75rem; color: var(--accent-ink); font-weight: 600; font-size: 0.9rem; }
.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); }
.card-stats { display: flex; gap: 1.5rem; margin: 0.5rem 0 0; }
.card-stats dt { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.card-stats dd { margin: 0; font: 600 1.4rem/1.2 var(--font-serif); font-variant-numeric: tabular-nums; }
.panel { padding: clamp(1.1rem, 3vw, 1.6rem); margin-bottom: 1.5rem; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-head h2, .panel-head h3 { margin-bottom: 0.2rem; }
.panel-head p { margin: 0; }
.split { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
.section-tight { margin: 2.5rem 0; }
.section-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.75rem; }
.section-title-row h2 { margin: 0; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); margin: 0 0 2.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stat { padding: 1rem 1.25rem; border-right: 1px solid var(--line); margin-right: -1px; }
.stat dt { font-size: 0.8rem; color: var(--muted); font-weight: 550; }
.stat dd { margin: 0.15rem 0 0; font: 600 1.75rem/1.15 var(--font-serif); font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.stat-row-compact .stat dd { font-size: 1.4rem; }

.link-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.1rem; color: var(--ink); text-decoration: none; transition: background-color .12s; }
.link-row > span:first-child { flex: 1; min-width: 0; }
.link-row:hover { background: var(--surface-2); }
.link-row-meta { color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.link-row-sub { display: block; color: var(--muted); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chev { color: var(--line-strong); transition: transform .15s, color .15s; }
.link-row:hover .chev { color: var(--accent); transform: translateX(2px); }
@media (max-width: 520px) { .link-row-meta { display: none; } }

.empty { padding: 2.25rem 1.5rem; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.empty p { margin: 0.25rem auto; max-width: 40ch; }
.empty-title { color: var(--ink-2); font-weight: 650; }
.empty .btn { margin-top: 1rem; }

/* ---------- Alerts and notices ---------- */
.alert { padding: 0.85rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); font-size: 0.92rem; margin: 0 0 1.25rem; }
.alert-provisional { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.alert-success { background: var(--ok-bg); border-color: var(--accent-line); color: var(--ink); }
.alert-error { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger); }
.notice { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1.1rem; margin: 0 0 1.5rem; border-radius: var(--radius); border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--ink); font-size: 0.92rem; }
.notice svg { flex: none; color: var(--accent-ink); margin-top: 0.1rem; }
.form-status { margin: 0.75rem 0 0; font-size: 0.9rem; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--danger); }
.form-status.is-ok { color: var(--accent-ink); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 0.35rem; min-width: 0; }
.field label, .form-title, legend { font-weight: 600; font-size: 0.875rem; color: var(--ink); }
.optional { font-weight: 450; color: var(--muted); margin-left: 0.25rem; }
.hint { margin: 0; color: var(--muted); font-size: 0.82rem; font-weight: 400; }
input[type="text"], input[type="email"], input[type="search"], input[type="number"], input:not([type]), select, textarea {
  width: 100%; min-height: 40px; padding: 0.5rem 0.75rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  font: 400 0.95rem/1.4 var(--font-sans); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 6rem; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 2.25rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.05rem) 52%, calc(100% - 0.75rem) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line-strong)); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); border-radius: var(--radius-sm); }
input[aria-invalid="true"] { border-color: var(--danger); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 0.6rem; }
.field-inline { flex-direction: row; align-items: center; gap: 0.6rem; }
.field-inline label { white-space: nowrap; color: var(--muted); font-weight: 550; }
.field-inline select { width: auto; min-width: 10rem; }
.field-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.field-narrow { flex: 0 0 7rem; }
.check { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); }
.check:hover { border-color: var(--line-strong); }
.check > span { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.92rem; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 1.05rem; height: 1.05rem; margin: 0.18rem 0 0; flex: none; }
.form-footer { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.9rem; padding: 1rem; margin-bottom: 1.25rem; background: var(--surface-2); border-radius: var(--radius-sm); border: 1px solid var(--line); }
.inline-form .form-title { flex-basis: 100%; margin: 0; }
.inline-form .form-status { flex-basis: 100%; margin: 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin: 0 0 1.25rem; }
.result-meta { color: var(--muted); font-size: 0.875rem; margin: 0 0 0.75rem; }

/* ---------- Data tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { box-shadow: var(--focus); }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.data-table thead th {
  position: sticky; top: 0; z-index: 1; padding-block: 0.6rem; background: var(--surface-2); color: var(--muted);
  font-size: 0.75rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; vertical-align: bottom;
}
.data-table tbody th { font-weight: 600; color: var(--ink); }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody tr:hover > * { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
.data-table .num { text-align: right; }
.data-table .center { text-align: center; }
.data-table-compact th, .data-table-compact td { padding-block: 0.5rem; }
.data-table tr.is-highlight > * { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.cell-id { white-space: nowrap; font-family: var(--font-mono); font-size: 0.85rem; }
.cell-id a { font-weight: 600; text-decoration: none; }
.cell-id a:hover { text-decoration: underline; }
.cell-title { min-width: 16rem; max-width: 46rem; color: var(--ink-2); }
.cell-action { text-align: right; white-space: nowrap; width: 1%; vertical-align: middle; }
.cell-action .row-actions { justify-content: flex-end; align-items: center; white-space: normal; }
.cell-action .form-status { flex-basis: 100%; margin: 0; text-align: right; }
.cell-sub { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.1rem; }
.data-table th[aria-sort] button::after, .data-table th button::after { content: ""; display: inline-block; width: 0.6em; margin-left: 0.35em; opacity: 0.35; }
.data-table th button { all: unset; cursor: pointer; display: inline-flex; align-items: center; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; border-radius: 4px; }
.data-table th button:hover { color: var(--ink); }
.data-table th button:focus-visible { box-shadow: var(--focus); }
.data-table th button::after { content: "↕"; }
.data-table th[aria-sort="ascending"] button::after { content: "↑"; opacity: 1; color: var(--accent-ink); }
.data-table th[aria-sort="descending"] button::after { content: "↓"; opacity: 1; color: var(--accent-ink); }
.data-table th.num button { flex-direction: row-reverse; }
.data-table th.num button::after { margin: 0 0.35em 0 0; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; font-size: 0.9rem; }

.meter { display: inline-block; width: 4.5rem; vertical-align: middle; }
.meter svg { width: 100%; height: 6px; }
.meter-track { fill: var(--surface-3); }
.meter-fill { fill: var(--accent); }
.grade-cell { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.6rem; }
.grade-value { font-weight: 650; color: var(--ink); min-width: 4.4rem; text-align: right; }
.prov-dot { display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--warn-bg); color: var(--warn-ink); border: 1px solid var(--warn-line); font-size: 0.62rem; font-weight: 700; }
@media (max-width: 640px) { .meter { display: none; } }

.yn { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; font: 700 0.85rem/1 var(--font-sans); border: 1.5px solid var(--ink-2); color: var(--ink); }
.yn-y { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.vote { font-size: 0.85rem; font-weight: 600; }
.vote-yea { color: var(--ink); }
.vote-nay { color: var(--ink); }
.vote-nv, .vote-absent, .vote-excused { color: var(--muted); font-weight: 500; font-style: italic; }

.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag-list a { text-decoration: none; border-radius: 999px; }
.plank-tag { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: 0.78rem; line-height: 1.6; background: var(--surface); white-space: nowrap; }
.plank-tag-label { padding: 0 0.5rem; font-weight: 650; color: var(--ink-2); }
.plank-tag-detail { font-weight: 450; color: var(--muted); }
.plank-tag .plank-id { padding: 0 0.5rem; border-left: 1px solid var(--line); background: var(--surface-2); }
a:hover .plank-tag { border-color: var(--accent-line); }
.plank-id { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: -0.01em; }

details.missed { display: inline-block; text-align: right; }
details.missed summary { cursor: pointer; list-style: none; text-decoration: underline dotted; text-underline-offset: 3px; color: var(--ink); }
details.missed summary::-webkit-details-marker { display: none; }
.missed-list { display: block; margin-top: 0.35rem; font-size: 0.75rem; color: var(--muted); font-family: var(--font-mono); max-width: 12rem; white-space: normal; }

.disclosure { margin: 0 0 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.disclosure > summary { cursor: pointer; padding: 0.85rem 1.1rem; font-weight: 600; font-size: 0.95rem; list-style: none; display: flex; gap: 0.5rem; align-items: center; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::before { content: "›"; display: inline-block; width: 1rem; color: var(--muted); font-size: 1.2rem; line-height: 1; transition: transform .15s; }
.disclosure[open] > summary::before { transform: rotate(90deg); }
.disclosure .table-wrap { border: 0; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: none; }
.prose-block { max-width: var(--measure); margin-bottom: 2rem; color: var(--ink-2); }

/* ---------- Filter bar ---------- */
.filter-bar { position: relative; display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.filter-bar input { padding-left: 2.3rem; background-image: url("search.svg"); background-repeat: no-repeat; background-position: 0.75rem 50%; background-size: 1rem; }
.filter-count { flex: none; color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.filter-bar-compact { margin-bottom: 0.75rem; }
.filter-bar-compact input { min-height: 36px; font-size: 0.9rem; max-width: 26rem; }

.segmented { display: inline-flex; padding: 3px; gap: 2px; margin: 0 0 1rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.segmented a { padding: 0.35rem 0.9rem; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 0.875rem; font-weight: 600; }
.segmented a:hover { color: var(--ink); }
.segmented a[aria-current] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.count { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; margin-left: 0.2rem; }

.progress { margin: 0 0 1.5rem; max-width: 28rem; }
.progress-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.35rem; }
.progress svg { width: 100%; height: 6px; }

/* ---------- Landing ---------- */
.is-landing main.container { padding-top: 0; }
.hero { display: grid; gap: 3rem; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); }
.display { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 3.7rem); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 1.25rem; text-wrap: balance; }
.hero .lede { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-actions .btn { min-height: 46px; padding-inline: 1.3rem; font-size: 0.98rem; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 2rem 0 0; padding: 0; color: var(--muted); font-size: 0.9rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-points li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--accent-soft) url("check.svg") center/14px no-repeat; }
.hero-figure { margin: 0; }
.hero-figure figcaption { font-size: 0.8rem; margin-top: 0.75rem; text-align: center; }
.specimen { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.25rem; transform: rotate(-0.6deg); }
@media (prefers-reduced-motion: reduce) { .specimen { transform: none; } }
.specimen-head { display: flex; justify-content: space-between; font-family: var(--font-serif); font-weight: 600; font-size: 1.15rem; margin-bottom: 0.75rem; }
.specimen-head .muted { font: 600 0.7rem/1.6 var(--font-sans); text-transform: uppercase; letter-spacing: 0.08em; }
.specimen-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.specimen-table th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 650; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.specimen-table td { padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.specimen-table .num { text-align: right; font-weight: 650; }
.specimen-plank { margin-top: 1rem; }
.yours { margin-bottom: 1rem; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); text-wrap: balance; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.steps li { background: var(--surface); padding: 1.5rem; }
.steps p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.step-n { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; margin-bottom: 1rem; background: var(--accent-soft); color: var(--accent-ink); font: 700 0.9rem/1 var(--font-sans); border: 1px solid var(--accent-line); }
.feature-grid { display: grid; gap: 2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.feature { padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.feature p { color: var(--ink-2); font-size: 0.95rem; margin: 0; }
.directory { display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.directory-state h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; display: flex; gap: 0.5rem; align-items: baseline; }
.directory-state h3 a { color: var(--ink); text-decoration: none; }
.directory-state h3 a:hover { color: var(--accent-ink); }
.directory-state h3 .muted { font: 600 0.75rem var(--font-mono); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-figure { max-width: 30rem; } }

/* ---------- Auth ---------- */
.is-auth main.container { display: grid; place-items: center; padding-block: clamp(2.5rem, 10vh, 6rem); }
.auth-card { width: 100%; max-width: 26rem; padding: clamp(1.5rem, 5vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 1.75rem; margin-bottom: 0.4rem; }
.auth-mark .mark { width: 40px; height: 40px; color: var(--accent); margin-bottom: 1.5rem; }
.auth-icon { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.25rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.auth-card form { margin-top: 1.5rem; }
.checklist { list-style: none; margin: 1.25rem 0 1.5rem; padding: 1rem 1.1rem; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--ink-2); }
.checklist li { position: relative; padding-left: 1.4rem; }
.checklist li + li { margin-top: 0.4rem; }
.checklist li::before { content: ""; position: absolute; left: 0.2rem; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.error-card { text-align: left; }

/* ---------- Platform browser ---------- */
.browser { display: grid; grid-template-columns: 16rem minmax(0, 1fr); gap: 3rem; align-items: start; }
.browser-side { position: sticky; top: calc(var(--header-h) + 1.5rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; padding-right: 0.5rem; }
.toc-title { font: 650 0.75rem/1 var(--font-sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.9rem; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc > ol > li { margin-bottom: 0.9rem; }
.toc > ol > li > a { font-weight: 650; color: var(--ink); }
.toc ol ol { margin-top: 0.35rem; padding-left: 0.75rem; border-left: 1px solid var(--line); }
.toc ol ol a { color: var(--ink-2); font-size: 0.85rem; padding: 0.2rem 0 0.2rem 0.5rem; }
.toc a { display: block; text-decoration: none; font-size: 0.9rem; line-height: 1.35; padding: 0.15rem 0; }
.toc a:hover { color: var(--accent-ink); }
.toc-addr { display: inline-block; min-width: 2.6rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.plank-tree { max-width: 52rem; }
.node-principles, .node-article, .node-preamble { margin-bottom: 3rem; }
.node-head { scroll-margin-top: calc(var(--header-h) + 1rem); }
h2.node-head { padding-bottom: 0.6rem; border-bottom: 1px solid var(--line-strong); margin-bottom: 1.25rem; text-transform: capitalize; }
h3.node-head { margin-top: 2rem; font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; }
h4.node-head { margin-top: 1.5rem; font-size: 1rem; }
.node-addr { font-family: var(--font-mono); font-size: 0.72em; font-weight: 600; color: var(--accent-ink); margin-right: 0.35rem; letter-spacing: 0; }
.node-intro { color: var(--ink-2); max-width: var(--measure); }
.stance-head { margin: 1.25rem 0 0.5rem; font: 650 0.75rem/1.3 var(--font-sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.plank-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plank { padding: 0.9rem 1.1rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.plank + .plank { border-top: 1px solid var(--line); }
.plank:target { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.plank-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem 0.75rem; margin-bottom: 0.3rem; }
.plank-label { font-size: 0.8rem; font-weight: 650; color: var(--ink-2); }
.plank-text { margin: 0; color: var(--ink); max-width: var(--measure); }
.copy-btn { margin-left: auto; padding: 0.15rem 0.5rem; border: 1px solid transparent; border-radius: var(--radius-sm); background: none; color: var(--muted); font: 550 0.75rem var(--font-sans); cursor: pointer; opacity: 0; transition: opacity .15s; }
.plank:hover .copy-btn, .copy-btn:focus-visible, .copy-btn.is-copied { opacity: 1; }
.copy-btn:hover { border-color: var(--line); color: var(--ink); }
.copy-btn.is-copied { color: var(--accent-ink); }
@media (hover: none) { .copy-btn { opacity: 1; } }
@media (max-width: 900px) {
  .browser { grid-template-columns: 1fr; gap: 1.5rem; }
  .browser-side { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: var(--surface); }
  .toc ol ol { display: none; }
  .toc > ol { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
  .toc > ol > li { margin: 0; }
}

/* ---------- Grading workspace ---------- */
.work-layout { display: grid; grid-template-columns: 19rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.bill-summary { height: auto; position: sticky; top: calc(var(--header-h) + 1.5rem); }
.bill-summary .bill-number { font-size: 1rem; }
.bill-title { font-weight: 550; color: var(--ink); }
.work-main { max-width: 52rem; }
.work-main > h1 { margin-bottom: 0.15rem; }
.work-main > h1 + .muted { margin-bottom: 1.5rem; }
@media (max-width: 900px) { .work-layout { grid-template-columns: 1fr; gap: 1.5rem; } .bill-summary { position: static; } }

.grade-form { margin-top: 0.5rem; }
.option-grid { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .option-grid { grid-template-columns: 1fr; } }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; width: 100%; height: 100%; cursor: pointer; }
.option-card { display: flex; gap: 0.85rem; align-items: flex-start; height: 100%; padding: 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); transition: border-color .15s, background-color .15s, box-shadow .15s; }
.option:hover .option-card { border-color: color-mix(in srgb, var(--ink) 35%, var(--line-strong)); }
.option input:checked + .option-card { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.option input:focus-visible + .option-card { box-shadow: var(--focus); }
.option-icon { flex: none; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; border: 1.5px solid var(--line-strong); font: 700 0.95rem/1 var(--font-sans); color: var(--ink-2); background: var(--surface); }
.option input:checked + .option-card .option-icon { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.option-text { display: flex; flex-direction: column; gap: 0.15rem; }
.option-title { font-weight: 650; }
.option-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

.plank-picker { padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plank-picker legend { float: left; width: 100%; margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.6rem; }
.plank-picker legend + * { clear: both; }
.req-hint { font-size: 0.72rem; font-weight: 650; color: var(--warn-ink); background: var(--warn-bg); border: 1px solid var(--warn-line); padding: 0 0.45rem; border-radius: 999px; }
.plank-picker .hint { margin-bottom: 0.75rem; }
.chosen { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.75rem; padding: 0; }
.chosen:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.15rem 0.3rem 0.15rem 0.65rem; border-radius: 999px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-ink); font-size: 0.8rem; font-weight: 600; }
.chip button { all: unset; cursor: pointer; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 50%; font-size: 0.9rem; line-height: 1; }
.chip button:hover { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.chip button:focus-visible { box-shadow: var(--focus); }
.picker-list { max-height: 26rem; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); overscroll-behavior: contain; }
.picker-group-head { position: sticky; top: 0; z-index: 1; margin: 0; padding: 0.5rem 0.85rem; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 0.8rem; font-weight: 650; color: var(--ink-2); }
.picker-item { display: flex; gap: 0.7rem; padding: 0.65rem 0.85rem; border-bottom: 1px solid var(--line); cursor: pointer; background: var(--surface); }
.picker-item:hover { background: var(--surface-2); }
.picker-item:has(input:checked) { background: var(--accent-soft); }
.picker-body { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.picker-meta { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.picker-text { font-size: 0.88rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.picker-item:has(input:checked) .picker-text, .picker-item:hover .picker-text { -webkit-line-clamp: unset; }
.picker-list .empty { border: 0; }

.record { margin-bottom: 2rem; }
.outcome { padding: 1rem 1.25rem; margin-bottom: 1rem; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.outcome .eyebrow { margin-bottom: 0.2rem; color: var(--accent-ink); }
.outcome-grade { font: 600 1.4rem/1.2 var(--font-serif); margin: 0 0 0.15rem; }
.outcome .small { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline-item { position: relative; margin: 0 0 1rem 1.25rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.timeline-item::before { content: ""; position: absolute; left: calc(-1.25rem - 7px); top: 1.25rem; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.timeline-item.is-final::before { background: var(--accent); border-color: var(--accent); }
.timeline-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin-bottom: 0.65rem; }
.timeline-round { font: 650 0.7rem/1 var(--font-sans); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.note { margin: 0.75rem 0 0; padding: 0.75rem 0.9rem; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink-2); font-size: 0.92rem; white-space: pre-wrap; }

/* ---------- Scorecard ---------- */
.scorecard-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem 2rem; padding-bottom: 2rem; margin-bottom: 1.5rem; border-bottom: 3px double var(--line-strong); }
.scorecard-head > div:first-child { flex: 1 1 34rem; }
.scorecard-head h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem); letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.chamber { margin: 0 0 3rem; }
.chamber-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; margin-bottom: 0.9rem; }
.chamber-head h2 { margin: 0; display: flex; align-items: center; gap: 0.25rem; }
.chamber-head p { margin: 0; font-size: 0.875rem; }
.score-table .col-grade { width: 14rem; }
.score-table tbody th { white-space: nowrap; }
@media (max-width: 640px) {
  .score-table th, .score-table td { padding-inline: 0.55rem; }
  .score-table tbody th { white-space: normal; min-width: 7rem; }
  .score-table .col-grade { width: auto; }
  .score-table .grade-value { min-width: 0; }
  .score-table .cell-sub { display: none; }
  .data-table thead th { letter-spacing: 0.03em; }
}
.method { margin-top: 3rem; padding: 1.5rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.method-list { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin: 0; }
.method-list dt { font-weight: 650; font-size: 0.875rem; margin-bottom: 0.2rem; }
.method-list dd { margin: 0; color: var(--ink-2); font-size: 0.9rem; }

/* ---------- Print: scorecards and tables print cleanly ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f4f4f4; }
  .site-header, .tenant-bar .tabs, .page-actions, .jump, .filter-bar, .skip-link, .breadcrumbs, .copy-btn { display: none !important; }
  .tenant-bar { border: 0; }
  body { font-size: 11pt; }
  .table-wrap, .card, .panel { box-shadow: none; overflow: visible; }
  .data-table thead th { position: static; }
  .chamber { break-inside: auto; }
  .data-table tr { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .site-footer { border-top: 1px solid #ccc; }
}
