/* PlanCourt — public example report (report.html)
   Static, no build step, no external requests. Fonts are declared here (never <link> fonts.css:
   its relative URLs break from a root page). */

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/plexmono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/plexmono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/plexmono-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/plexmono-400-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/fraunces-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/fraunces-var-italic.woff2') format('woff2');
}

/* ---------------------------------------------------------------- tokens */

/* The palette lives in tokens.css, loaded before this sheet. Every variable this file used to
   define here — and still reads by its historical name — is aliased there to the one system. */

/* ------------------------------------------------------------------ base */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16.5px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* atmospheric wash — kept very low opacity so contrast never drops */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 30rem at 12% -6%, color-mix(in srgb, var(--pc-brand) 10%, transparent), transparent 70%),
    radial-gradient(50rem 26rem at 92% 4%, color-mix(in srgb, var(--pc-ink-2) 8%, transparent), transparent 72%);
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

code, pre, .mono { font-family: var(--mono); }

h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -.01em; margin: 0; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* -------------------------------------------------------------- masthead */

header.top {
  border-bottom: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
  z-index: 30;
}

header.top .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.wordmark {
  font: 700 15px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}

.wordmark em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.backlink,
.stamp-top,
.theme-toggle {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.backlink {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding: 6px 0;
}
.backlink:hover { color: var(--ink); border-bottom-color: var(--brass); }

.stamp-top {
  display: inline-block;
  font-weight: 600;
  padding: 7px 10px;
  border: 1.5px solid var(--ready);
  color: var(--ready);
  border-radius: 4px;
}

.theme-toggle {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 8px 12px;
  cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.theme-toggle:hover { color: var(--ink); border-color: var(--brass); }

/* ------------------------------------------------------- case head + shell */

.casehead { padding: 40px 0 22px; }

.eyebrow {
  font: 600 10.5px/1.4 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 10px;
}

.case-title {
  font: 700 clamp(28px, 4.4vw, 44px)/1.08 var(--sans);
  letter-spacing: -.02em;
  margin: 0 0 12px;
  max-width: 20ch;
}
.case-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  letter-spacing: -.01em;
}

.case-sub {
  font: 400 11.5px/1.85 var(--mono);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 70ch;
}

.legacy-note {
  font: 400 10.5px/1.7 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-left: 2px solid var(--warn);
  padding-left: 10px;
  margin: 0 0 22px;
  max-width: 70ch;
}

.summary {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 6px 18px 10px;
  margin: 0 0 30px;
  max-width: 720px;
  border-radius: 4px;
  box-shadow: 0 14px 34px rgba(var(--pc-shadow-rgb), .28);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  font: 500 11px/1.5 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.summary-row + .summary-row { border-top: 1px dashed var(--line); }
.summary-k { color: var(--muted-2); }
.summary-v { color: var(--ink); font-weight: 600; text-align: right; }

.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding-bottom: 40px;
}

/* --------------------------------------------------------- progress rail */

.rail { position: sticky; top: 20px; align-self: start; max-height: calc(100vh - 40px); }

.rail-title {
  font: 600 10px/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 4px 0 12px;
}

.rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.rail-list::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}

.rail-item { position: relative; }

.rail-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 8px 7px 0;
  text-decoration: none;
  color: var(--muted);
  font: 500 11.5px/1.3 var(--mono);
  letter-spacing: .06em;
  border-radius: 3px;
  transition: color .18s var(--ease);
}
.rail-link:hover { color: var(--ink); }
.rail-link .rail-label { min-width: 0; }
.rail-dot {
  flex: 0 0 auto;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  position: relative;
  z-index: 1;
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.rail-link[aria-current="true"] { color: var(--ink); }
.rail-link[aria-current="true"] .rail-dot {
  border-color: var(--brass);
  background: var(--brass);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc-brand) 18%, transparent);
}
.rail-link[aria-current="true"] .rail-label { font-weight: 600; }
.rail-sub {
  display: block;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted-2);
  text-transform: uppercase;
}
.rail-link[aria-current="true"] .rail-sub { color: var(--muted); }

/* --------------------------------------------------------------- sections */

.node { scroll-margin-top: 74px; padding: 8px 0 26px; }

.node + .node { border-top: 1px solid var(--line); padding-top: 30px; margin-top: 26px; }

.node-h {
  font: 700 clamp(21px, 2.6vw, 29px)/1.16 var(--sans);
  letter-spacing: -.015em;
  margin: 0 0 6px;
  max-width: 34ch;
}
.node-h:focus { outline: none; }
.node-h:focus-visible { outline: 2px solid var(--brass); outline-offset: 4px; }

.node-sub {
  font: 400 11px/1.8 var(--mono);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 18px;
}

.lede { color: var(--muted); margin: 0 0 18px; max-width: 74ch; }
.lede strong { color: var(--ink); }

/* ------------------------------------------------------------------ cards */

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 5px;
  padding: 18px 20px;
  margin: 0 0 16px;
}
.card-title { font: 600 18px/1.3 var(--sans); margin: 0 0 14px; }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  margin: 0 0 16px;
}
.meta { background: var(--surface); padding: 10px 12px; }
.meta-k {
  display: block;
  font: 600 9.5px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 4px;
}
.meta-v { display: block; font: 500 12.5px/1.45 var(--mono); color: var(--ink); }

.preview {
  margin: 0 0 14px;
  padding: 14px 16px;
  background: var(--paper-2);
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
  font: 400 13px/1.7 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 190px;
  overflow: hidden;
  position: relative;
}
.preview::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--paper-2));
  pointer-events: none;
}

/* ------------------------------------------------------------- chips/badges */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 10px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 7px;
  border: 1px solid currentColor;
  border-radius: 3px;
  white-space: nowrap;
}
.chip-ok { color: var(--ready); }
.chip-bad { color: var(--revise); }
.chip-warn { color: var(--warn); }
.chip-neutral { color: var(--muted); }
.chip-brass { color: var(--brass); }
.chip-blocker { color: var(--revise); }
.chip-major { color: var(--warn); }
.chip-minor { color: var(--muted); }
.chip-incorporated { color: var(--ready); }
.chip-deferred { color: var(--warn); }
.chip-not-applicable { color: var(--revise); }

.stat-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 16px;
}
.stat-label {
  font: 600 9.5px/1.4 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.stat-total { font: 500 12px/1.2 var(--mono); color: var(--muted); }

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--muted-2);
  background: var(--surface);
  border-radius: 0 4px 4px 0;
  padding: 11px 14px;
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--muted);
}
.callout strong { color: var(--ink); }
.callout.warn { border-left-color: var(--warn); }
.callout.bad { border-left-color: var(--revise); }
.callout.ok { border-left-color: var(--ready); }
.callout .callout-h {
  display: block;
  font: 600 10px/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}

/* ------------------------------------------------------------ reviewer cards */

.reviewer-grid { display: grid; gap: 12px; }

.reviewer {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 5px;
  padding: 14px 16px;
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .reviewer:hover { border-color: var(--line-strong); transform: translateY(-1px); }
}
.reviewer[data-status="unparseable"] { border-left: 3px solid var(--warn); }
.reviewer[data-status="provider_error"] { border-left: 3px solid var(--revise); }
.reviewer[data-status="aborted"] { border-left: 3px solid var(--muted-2); }

.reviewer-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.reviewer-name { font: 600 15px/1.3 var(--sans); }
.reviewer-model {
  font: 400 11px/1.6 var(--mono);
  color: var(--muted-2);
  letter-spacing: .05em;
  margin: 0 0 2px;
  overflow-wrap: anywhere;
}
.reviewer-lens {
  font: 500 10.5px/1.6 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 8px;
}
.reviewer-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------------------- disclosures */

details.disclosure {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 5px;
  margin: 10px 0 0;
  padding: 0;
}
details.disclosure > summary {
  cursor: pointer;
  list-style: none;
  padding: 11px 14px;
  font: 600 11px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 5px;
}
details.disclosure > summary::-webkit-details-marker { display: none; }
details.disclosure > summary::before {
  content: "+";
  font-weight: 600;
  color: var(--brass);
  width: 11px;
  flex: 0 0 auto;
}
details.disclosure[open] > summary::before { content: "–"; }
details.disclosure > summary:hover { color: var(--ink); }
details.disclosure[open] > summary { border-bottom: 1px solid var(--line); border-radius: 5px 5px 0 0; }
details.disclosure .disclosure-body { padding: 14px 16px 16px; }

details.raw { border-color: var(--line-soft); background: var(--paper-2); }
details.raw > summary { font-size: 10px; }
details.raw .disclosure-body { padding: 12px 14px 14px; }

/* ---------------------------------------------------------------- issues */

.issue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.issue { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.issue:first-child { border-top: 0; padding-top: 0; }
.issue-head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 6px; }
.issue-title { font: 600 14.5px/1.4 var(--sans); margin: 0; }
.issue-detail { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.issue-fix {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink);
  border-left: 2px solid var(--ready);
  padding-left: 10px;
}
.issue-fix b {
  font: 600 9.5px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ready);
  display: block;
  margin-bottom: 3px;
}

/* ------------------------------------------------------------------- pre */

pre.block {
  margin: 0;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 13px 14px;
  font: 400 11.5px/1.62 var(--mono);
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 340px;
  overflow: auto;
}
pre.block.tall { max-height: 520px; }
.raw-meta {
  font: 500 10px/1.6 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 8px;
}

/* ------------------------------------------------------------- transitions */

.transition {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 13px/1 var(--mono);
  letter-spacing: .08em;
  padding: 9px 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  margin: 0 0 16px;
}
.transition .plan-from { color: var(--muted); }
.transition .plan-to { color: var(--brass); }
.transition .arrow { color: var(--muted-2); }

/* --------------------------------------------------------------- decisions */

.resolution-group { margin: 0 0 18px; }
.resolution-group-h {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 600 13px/1.4 var(--sans);
  margin: 0 0 10px;
}
.resolution-list { display: grid; gap: 10px; }
.resolution {
  border: 1px solid var(--line);
  border-left-width: 3px;
  background: var(--surface);
  border-radius: 0 4px 4px 0;
  padding: 11px 14px;
}
.resolution[data-resolution="INCORPORATED"] { border-left-color: var(--ready); }
.resolution[data-resolution="DEFERRED"] { border-left-color: var(--warn); }
.resolution[data-resolution="NOT_APPLICABLE"] { border-left-color: var(--revise); }
.resolution-head { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; margin-bottom: 5px; }
.resolution-issue { font: 600 14px/1.4 var(--sans); margin: 0; }
.resolution-note { margin: 0; color: var(--muted); font-size: 13.5px; }
.resolution-foot {
  margin: 10px 0 18px;
  font: 400 10.5px/1.6 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

button.action {
  font: 600 10.5px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background .18s var(--ease);
}
button.action:hover { border-color: var(--brass); color: var(--ink); }
button.action.primary { border-color: var(--brass); color: var(--brass); }
button.action.primary:hover { background: color-mix(in srgb, var(--pc-brand) 10%, transparent); }

.action-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 14px; }

.panel { margin: 0 0 14px; }
.panel[hidden] { display: none; }
.panel-h {
  font: 600 10px/1.6 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 8px;
}

/* ------------------------------------------------------------------ diff */

.diff-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 0 0 12px;
}
.diff-stat { font: 500 11.5px/1.4 var(--mono); color: var(--muted); }
.diff-stat b { color: var(--ink); }
.diff-stat.add b { color: var(--ready); }
.diff-stat.del b { color: var(--revise); }

.snippet {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper-2);
  margin: 0 0 10px;
  overflow: hidden;
}
.snippet-h {
  font: 600 9.5px/1.5 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 7px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.dl {
  display: flex;
  gap: 10px;
  font: 400 11.5px/1.55 var(--mono);
  padding: 1px 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.dl-prefix { flex: 0 0 8px; color: var(--muted-2); user-select: none; }
.dl-text { min-width: 0; }
.dl.add { background: var(--add-bg); }
.dl.add .dl-prefix { color: var(--ready); }
.dl.del { background: var(--del-bg); }
.dl.del .dl-prefix { color: var(--revise); }
.dl.ctx { color: var(--muted); }
.diff-scroll { max-height: 460px; overflow: auto; }

.approx {
  font: 500 10.5px/1.6 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--warn);
}

/* ---------------------------------------------------------------- readiness */

.readiness-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 5px;
  padding: 20px;
  margin: 0 0 20px;
}
.readiness-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.readiness-word {
  font: 700 clamp(26px, 4vw, 40px)/1 var(--sans);
  letter-spacing: -.02em;
}
.readiness-word.ready { color: var(--ready); }
.readiness-word.revise { color: var(--revise); }
.readiness-word.changes { color: var(--warn); }
.readiness-word.incomplete { color: var(--revise); text-decoration: underline dotted; text-underline-offset: 6px; }
.readiness-word.aborted { color: var(--muted-2); }
.readiness-note { margin: 0; color: var(--muted); max-width: 70ch; font-size: 14.5px; }

.finding-decisions { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.finding-decision {
  border: 1px solid var(--line);
  border-left-width: 3px;
  background: var(--surface);
  border-radius: 0 4px 4px 0;
  padding: 12px 14px;
}
.finding-decision[data-action="ACTION_REQUIRED"] { border-left-color: var(--revise); }
.finding-decision[data-action="NO_ACTION"] { border-left-color: var(--ready); }
.finding-decision-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.finding-decision-reviewer {
  font: 600 10px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.finding-decision-issue { font: 600 14px/1.4 var(--sans); margin: 0 0 6px; }
.finding-decision-reason { margin: 0; color: var(--muted); font-size: 13.5px; }

.verify {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.verify-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
  padding: 11px 13px;
}
.verify-k {
  font: 600 9.5px/1.5 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted-2);
  display: block;
  margin-bottom: 5px;
}
.verify-v {
  font: 400 11.5px/1.6 var(--mono);
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-all;
}
.verify-v.absent { color: var(--muted-2); font-style: italic; }

/* ------------------------------------------------------------------ audit */

details.audit {
  border: 1px solid var(--line);
  border-style: dashed;
  background: var(--paper-2);
  border-radius: 5px;
  margin: 0 0 16px;
}
details.audit > summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 16px;
  font: 600 11px/1.5 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
details.audit > summary::-webkit-details-marker { display: none; }
details.audit > summary::before { content: "▸ "; color: var(--brass); }
details.audit[open] > summary::before { content: "▾ "; }
details.audit[open] > summary { border-bottom: 1px dashed var(--line); }
.audit-body { padding: 16px; }
.audit-body h3 { font: 600 15px/1.4 var(--sans); margin: 18px 0 8px; }
.audit-body h3:first-child { margin-top: 0; }
.audit-body p { margin: 0 0 12px; color: var(--muted); font-size: 14px; max-width: 80ch; }
.audit-body .roster {
  font: 400 11.5px/1.7 var(--mono);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 13px;
  margin: 0 0 14px;
  background: var(--surface);
}
.audit-body .roster span { color: var(--muted-2); }

/* ----------------------------------------------------------------- footer */

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 60px;
  font: 400 10.5px/1.9 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
footer .wrap { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.render-error {
  border: 1px solid var(--revise);
  border-radius: 4px;
  padding: 16px;
  color: var(--revise);
  font: 500 13px/1.6 var(--mono);
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 980px) {
  .wrap { padding: 0 16px; }
  .shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .rail {
    position: sticky;
    top: 0;
    z-index: 25;
    margin: 0 -16px;
    padding: 9px 16px 8px;
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    max-height: none;
  }
  .rail-title { display: none; }
  .rail-list {
    display: flex;
    flex-direction: row;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .rail-list::before { display: none; }
  .rail-item { flex: 0 0 auto; }
  .rail-link {
    flex-direction: row;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
    gap: 7px;
  }
  .rail-link[aria-current="true"] {
    border-color: var(--brass);
    background: color-mix(in srgb, var(--pc-brand) 10%, transparent);
  }
  .rail-dot { width: 7px; height: 7px; }
  .rail-sub { display: none; }
  .node { scroll-margin-top: 64px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .summary-row { flex-direction: column; gap: 2px; }
  .summary-v { text-align: left; }
  .card { padding: 15px 14px; }
  .meta-grid { grid-template-columns: minmax(0, 1fr); }
  .verify { grid-template-columns: minmax(0, 1fr); }
  pre.block { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .rail, header.top .theme-toggle, .action-row { display: none; }
  body::before { display: none; }
}
