:root {
  color-scheme: light;
  --ink: #171a1f;
  --paper: #eef1ef;
  --sheet: #ffffff;
  --rule: #aeb6bd;
  --rule-light: #d9dee0;
  --muted: #596169;
  --review: #d7ff3f;
  --review-ink: #1c2600;
  --adverse: #8f2735;
  --favorable: #176150;
  --display: "Arial Narrow", "Aptos Narrow", "Helvetica Neue Condensed", sans-serif;
  --body: Arial, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
}

button,
select { font: inherit; }

.shell {
  width: min(1440px, calc(100% - 48px));
  margin-inline: auto;
}

.hidden { display: none !important; }

.skip-link {
  position: fixed;
  z-index: 30;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  color: var(--ink);
  background: var(--review);
  font: 700 0.75rem/1 var(--mono);
  text-decoration: none;
}

.skip-link:focus { transform: none; }

a:focus-visible,
button:focus-visible,
select:focus-visible,
.table-scroll:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 5px 5px 0 var(--review);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  color: var(--sheet);
  background: var(--ink);
}

.topbar-inner {
  min-height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 800 0.61rem/1 var(--mono);
  letter-spacing: -0.03em;
}

.brand strong {
  font-family: var(--display);
  font-size: 0.9rem;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

nav { display: flex; gap: 28px; }

nav a {
  padding: 23px 0 20px;
  border-bottom: 3px solid transparent;
  color: #cfd5d7;
  font: 700 0.66rem/1 var(--mono);
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease-out, border-color 180ms ease-out;
}

nav a:hover {
  border-color: var(--review);
  color: var(--sheet);
}

.classification {
  justify-self: end;
  text-align: right;
}

.classification strong,
.classification small { display: block; }

.classification strong {
  font: 750 0.67rem/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.classification small {
  margin-top: 4px;
  color: #c1c7ca;
  font-size: 0.69rem;
}

.docket-cover {
  min-height: 232px;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) minmax(280px, 360px);
  align-items: stretch;
  border-bottom: 4px solid var(--ink);
  background: var(--sheet);
}

.folio {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 16px;
  border-right: 1px solid var(--ink);
  font-family: var(--mono);
  text-transform: uppercase;
}

.folio span,
.folio small {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.folio b {
  align-self: flex-start;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}

.folio small { color: var(--muted); }

.cover-copy {
  align-self: center;
  padding: 26px 34px 22px;
}

.filing-label {
  margin: 0 0 16px;
  color: var(--muted);
  font: 750 0.67rem/1 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 780px;
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: clamp(2.5rem, 4.4vw, 4.7rem);
  font-stretch: condensed;
  font-weight: 850;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 span,
h1 em { display: block; }

h1 em {
  color: var(--muted);
  font-style: normal;
  font-weight: 350;
}

.cover-deck {
  max-width: 63ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  text-wrap: pretty;
}

.file-meta {
  display: grid;
  align-content: end;
  margin: 0;
  border-left: 1px solid var(--ink);
}

.file-meta div {
  padding: 11px 16px;
  border-top: 1px solid var(--ink);
}

.file-meta dt {
  color: var(--muted);
  font: 750 0.61rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-meta dd {
  margin: 6px 0 0;
  font: 650 0.73rem/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
}

.filters {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) repeat(3, minmax(180px, 1fr));
  gap: 18px;
  align-items: end;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ink);
  background: #e2e6e4;
}

.filter-heading { align-self: center; }

.filter-heading span,
.filter-heading strong { display: block; }

.filter-heading span {
  margin-bottom: 6px;
  font: 750 0.64rem/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-heading strong {
  max-width: 22ch;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1;
  text-transform: uppercase;
}

label { display: grid; gap: 6px; }

label > span {
  color: var(--ink);
  font: 750 0.64rem/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

label small {
  min-height: 1em;
  color: var(--muted);
  font-size: 0.68rem;
}

select {
  min-height: 43px;
  padding: 9px 34px 9px 10px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  background: var(--sheet);
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color 180ms ease-out, transform 180ms ease-out;
}

select:hover { background: #f7f9f7; }
select:active { transform: translateY(1px); }

.state {
  min-height: 260px;
  display: grid;
  align-content: center;
  gap: 8px;
  margin: 30px 0 80px;
  padding: 36px;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--sheet);
}

.state strong {
  font-family: var(--display);
  font-size: 1.3rem;
  text-transform: uppercase;
}

.state span { max-width: 60ch; color: var(--muted); }

.state:not(.error)::after {
  width: 120px;
  height: 5px;
  content: "";
  background: var(--review);
  transform-origin: left;
  animation: file-progress 1.1s cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.state.error {
  border-color: var(--adverse);
  color: var(--adverse);
}

@keyframes file-progress {
  from { transform: scaleX(0.16); }
  to { transform: scaleX(1); }
}

.panel {
  margin: 22px 0 50px;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--sheet);
}

.pulse { margin-bottom: 0; }

.docket-heading {
  min-height: 72px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--ink);
}

.section-code,
.rail-code {
  color: var(--muted);
  font: 750 0.62rem/1 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.docket-heading h2 {
  margin-bottom: 5px;
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.docket-heading p {
  max-width: 74ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.docket-heading > span:last-child {
  color: var(--muted);
  font: 700 0.66rem/1.3 var(--mono);
  text-align: right;
}

.pulse-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.65fr);
}

.primary-move {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 26px 24px;
  border-right: 1px solid var(--ink);
}

.primary-move > span {
  font: 750 0.66rem/1 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.primary-move > strong {
  margin: 12px 0 8px;
  font-family: var(--display);
  font-size: clamp(3.7rem, 7vw, 5.4rem);
  font-weight: 850;
  line-height: 0.8;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.primary-move small {
  color: var(--muted);
  font: 650 0.72rem/1.4 var(--mono);
}

.supporting-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.supporting-facts > div {
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border-right: 1px solid var(--rule);
}

.supporting-facts > div:last-child { border-right: 0; }

.supporting-facts dt {
  color: var(--muted);
  font: 700 0.65rem/1.3 var(--mono);
  text-transform: uppercase;
}

.supporting-facts dd {
  margin: 12px 0 7px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.supporting-facts .metric-note {
  margin: 0;
  font: inherit;
  letter-spacing: normal;
}

.supporting-facts small {
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.4;
}

.positive { color: var(--adverse) !important; }
.negative { color: var(--favorable) !important; }

.analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}

.analysis-grid > div { min-width: 0; }

.analysis-grid aside {
  position: sticky;
  top: 88px;
  margin: 34px 0 56px;
  border-top: 4px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--sheet);
}

.analysis-grid aside section {
  padding: 18px 17px 20px;
  border-bottom: 1px solid var(--ink);
}

.analysis-grid aside section:last-child { border-bottom: 0; }

.analysis-grid aside .rail-intro { background: #e2e6e4; }

aside h2,
aside h3 {
  margin: 8px 0 7px;
  font-family: var(--display);
  font-size: 0.9rem;
  line-height: 1;
  text-transform: uppercase;
}

aside h2 { font-size: 1.3rem; }

aside p,
aside li,
aside dd {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.48;
}

aside ul {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

aside li {
  padding: 9px 0;
  border-top: 1px solid var(--rule-light);
  font-family: var(--mono);
  font-size: 0.68rem;
}

aside dl {
  display: grid;
  gap: 0;
  margin: 12px 0 0;
}

aside dl div {
  padding: 10px 0;
  border-top: 1px solid var(--rule-light);
}

aside dt {
  color: var(--muted);
  font: 750 0.62rem/1 var(--mono);
  text-transform: uppercase;
}

aside dd { margin: 4px 0 0; color: var(--ink); }

aside .boundary { color: var(--adverse); }

.boundary strong {
  display: block;
  margin-top: 12px;
  color: var(--adverse);
  font-size: 0.74rem;
  line-height: 1.4;
}

.record-toolbar {
  display: grid;
  grid-template-columns: 220px minmax(300px, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ink);
  background: #e2e6e4;
}

.mask-note {
  max-width: 78ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.mask-note strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font: 750 0.62rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.record-pager {
  display: grid;
  grid-template-columns: auto minmax(120px, auto) auto;
  align-items: center;
  gap: 10px;
}

.record-pager span {
  color: var(--muted);
  font: 700 0.66rem/1.2 var(--mono);
  text-align: center;
}

.record-pager button,
.record-open,
.record-detail button {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--sheet);
  cursor: pointer;
  font: 750 0.64rem/1 var(--mono);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.record-pager button:hover,
.record-open:hover,
.record-detail button:hover {
  color: var(--review-ink);
  background: var(--review);
}

.record-pager button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.inline-state {
  padding: 12px 20px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  background: #f7f9f7;
  font: 700 0.67rem/1.35 var(--mono);
}

.inline-state.error { color: var(--adverse); }
.record-table-wrap { max-height: 520px; }
.record-table-wrap thead { position: sticky; top: 0; z-index: 3; }
.masked-key { color: var(--review-ink); background: #f6ffd6; font-weight: 800; }
.record-open { min-height: 34px; padding: 7px 10px; white-space: nowrap; }

.record-detail {
  border-top: 4px solid var(--ink);
  background: #f7f9f7;
}

.record-detail > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ink);
}

.record-detail header span {
  color: var(--muted);
  font: 750 0.61rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.record-detail h3 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.record-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.record-fields > div {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.record-fields > div:nth-child(4n) { border-right: 0; }

.record-fields dt {
  color: var(--muted);
  font: 750 0.58rem/1.25 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.record-fields dd {
  margin: 7px 0 0;
  font: 650 0.72rem/1.4 var(--mono);
  overflow-wrap: anywhere;
}

.record-fields .masked-field {
  color: var(--review-ink);
  background: #f6ffd6;
}

.table-scroll {
  max-width: 100%;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.74rem;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--rule-light);
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  z-index: 2;
  top: 0;
  color: var(--ink);
  background: #e2e6e4;
  font: 750 0.61rem/1.2 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.num { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
#watchlist-body tr:hover td { border-bottom-color: var(--ink); }

#watchlist-body tr[aria-selected="true"] { background: #f6ffd6; }

#watchlist-body tr[aria-selected="true"] td:first-child {
  color: var(--review-ink);
  background: var(--review);
  font-weight: 850;
}

.deal-name { color: var(--ink); font-weight: 850; }
.deal-select {
  min-width: 118px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: 850 0.74rem/1 var(--mono);
  text-align: left;
}
.deal-select small {
  color: var(--muted);
  font: 700 0.57rem/1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.deal-select:hover span { text-decoration: underline; text-underline-offset: 3px; }
.deal-select[aria-pressed="true"] small { color: var(--review-ink); }
.evidence-pass { color: var(--favorable); font-weight: 750; }
.mobile-copy { display: none; }

.legend {
  display: flex;
  gap: 15px;
  color: var(--muted);
  font: 700 0.66rem/1 var(--mono);
}

.legend span { display: flex; align-items: center; gap: 7px; }
.legend i { width: 20px; height: 2px; display: inline-block; }
.legend .deal { background: var(--ink); }
.legend .portfolio { height: 1px; background: var(--muted); }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ink);
}

.summary-grid.three { grid-template-columns: repeat(3, 1fr); }

.summary {
  min-height: 105px;
  padding: 16px;
  border-right: 1px solid var(--rule);
}

.summary:last-child { border-right: 0; }

.summary span,
.summary strong { display: block; }

.summary span {
  color: var(--muted);
  font: 650 0.65rem/1.35 var(--mono);
}

.summary strong {
  margin: 8px 0 5px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.chart-frame { padding: 22px 20px 8px; }

#trend-chart {
  width: 100%;
  min-height: 250px;
  display: block;
  overflow: visible;
}

.chart-grid { stroke: var(--rule-light); }
.chart-axis { fill: var(--muted); font: 11px var(--mono); }

.chart-line-deal,
.chart-line-portfolio {
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.chart-line-deal { stroke: var(--ink); stroke-width: 3; }
.chart-line-portfolio { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 7 5; }

details {
  margin: 0 20px 20px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

summary {
  padding: 12px 2px;
  color: var(--ink);
  cursor: pointer;
  font: 750 0.67rem/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--ink);
}

.flow {
  min-height: 110px;
  padding: 16px;
  border-right: 1px solid var(--rule);
}

.flow:last-child { border-right: 0; }
.flow span,
.flow strong,
.flow small { display: block; }

.flow span {
  color: var(--muted);
  font: 700 0.65rem/1.3 var(--mono);
  text-transform: uppercase;
}

.flow strong {
  margin: 10px 0 5px;
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.flow small { color: var(--muted); font-size: 0.67rem; }

footer {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  padding: 22px 0 38px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
}

footer span {
  color: var(--ink);
  font: 750 0.63rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

footer p { max-width: 80ch; margin-bottom: 0; font-size: 0.7rem; line-height: 1.5; }

.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;
}

@media (max-width: 1120px) {
  .docket-cover { grid-template-columns: 110px minmax(0, 1fr) 310px; }
  .cover-copy { padding-inline: 30px; }
  .filters { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
  .filter-heading { grid-column: 1 / -1; }
  .filter-heading strong { max-width: none; }
  .analysis-grid { grid-template-columns: 1fr; }
  .analysis-grid aside {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .analysis-grid aside .rail-intro { grid-column: 1 / -1; }
  .analysis-grid aside section { border-right: 1px solid var(--ink); }
  .analysis-grid aside section:nth-child(odd) { border-right: 0; }
  .record-toolbar { grid-template-columns: 200px 1fr; }
  .record-pager { grid-column: 1 / -1; justify-content: end; }
  .record-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .record-fields > div:nth-child(4n) { border-right: 1px solid var(--rule); }
  .record-fields > div:nth-child(3n) { border-right: 0; }
}

@media (max-width: 820px) {
  .topbar-inner { grid-template-columns: 1fr auto; }
  .classification { display: none; }
  .docket-cover {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 0;
  }
  .file-meta {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--ink);
    border-left: 0;
  }
  .file-meta div { border-top: 0; border-right: 1px solid var(--ink); }
  .file-meta div:nth-child(even) { border-right: 0; }
  .file-meta div:nth-child(n + 3) { border-top: 1px solid var(--ink); }
  .pulse-grid { grid-template-columns: 1fr; }
  .primary-move { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--ink); }
  .supporting-facts > div { min-height: 170px; }
  .docket-heading { grid-template-columns: 140px 1fr; }
  .docket-heading > :last-child { grid-column: 2; justify-self: start; text-align: left; }
  .record-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-fields > div:nth-child(3n) { border-right: 1px solid var(--rule); }
  .record-fields > div:nth-child(2n) { border-right: 0; }
}

@media (max-width: 700px) {
  .shell { width: min(100% - 20px, 1440px); }
  .topbar { position: static; }
  .topbar-inner { min-height: 58px; grid-template-columns: 1fr; gap: 0; padding: 11px 0; }
  nav { width: 100%; gap: 20px; overflow-x: auto; }
  nav a { padding: 14px 0 6px; }
  .docket-cover { grid-template-columns: 1fr; }
  .folio {
    min-height: 56px;
    flex-direction: row;
    align-items: center;
    padding: 12px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
  .folio b { writing-mode: initial; transform: none; font-size: 0.9rem; }
  .cover-copy { padding: 34px 16px 30px; }
  h1 { font-size: clamp(2.3rem, 10.5vw, 3rem); line-height: 0.9; }
  .file-meta { grid-column: auto; }
  .file-meta dd { overflow-wrap: anywhere; }
  .filters { grid-template-columns: 1fr; padding: 20px 14px; }
  .filter-heading { grid-column: auto; }
  .docket-heading { grid-template-columns: 1fr; gap: 9px; padding: 16px 14px; }
  .docket-heading > :last-child { grid-column: auto; }
  .section-code { order: -1; }
  .primary-move { min-height: 190px; padding: 22px 16px; }
  .primary-move > strong { font-size: clamp(4rem, 23vw, 5.5rem); }
  .supporting-facts { grid-template-columns: 1fr; }
  .supporting-facts > div { min-height: 130px; border-right: 0; border-bottom: 1px solid var(--rule); }
  .supporting-facts > div:last-child { border-bottom: 0; }
  .summary-grid,
  .summary-grid.three,
  .flow-grid { grid-template-columns: 1fr; }
  .summary,
  .flow { border-right: 0; border-bottom: 1px solid var(--rule); }
  .summary:last-child,
  .flow:last-child { border-bottom: 0; }
  .analysis-grid aside { grid-template-columns: 1fr; }
  .analysis-grid aside .rail-intro { grid-column: auto; }
  .analysis-grid aside section { border-right: 0; }
  .panel { margin-bottom: 42px; }
  .record-toolbar { grid-template-columns: 1fr; padding: 14px; }
  .record-pager { grid-column: auto; grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .record-pager span { grid-column: 1 / -1; grid-row: 1; padding-bottom: 3px; }
  .record-pager button { width: 100%; }
  .record-detail > header { align-items: flex-start; padding: 14px; }
  .record-fields { grid-template-columns: 1fr; }
  .record-fields > div,
  .record-fields > div:nth-child(2n),
  .record-fields > div:nth-child(3n),
  .record-fields > div:nth-child(4n) { border-right: 0; }
  .chart-frame { padding-inline: 8px; }
  #trend-chart { min-height: 205px; }
  .desktop-copy { display: none; }
  .mobile-copy { display: inline; }
  footer { grid-template-columns: 1fr; gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  html,
  body { background: var(--sheet); }
  .topbar { position: static; }
  nav { display: none; }
  .shell { width: 100%; }
  .analysis-grid { grid-template-columns: 1fr; }
  .analysis-grid aside { position: static; }
  .panel { break-inside: avoid; }
}
