@font-face {
  font-family: "Source Han Sans SC";
  src: url("fonts/source-han-sans-sc-regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy-950: #06162a;
  --navy-900: #0a203a;
  --navy-800: #12345a;
  --blue-700: #174aa6;
  --blue-600: #1d58c7;
  --blue-100: #dfeafe;
  --paper: #f4f7fb;
  --paper-bright: #ffffff;
  --paper-blue: #eaf0f8;
  --ink: #0a1f35;
  --ink-soft: #40566f;
  --muted: #5e7085;
  --line: #cbd6e4;
  --line-strong: #91a5bd;
  --gold: #c28a21;
  --gold-light: #f2dfad;
  --red: #a93643;
  --green: #176b53;
  --shadow-sheet: 0 24px 70px -46px rgba(4, 22, 42, 0.72);
  --shadow-float: 0 18px 44px -30px rgba(4, 22, 42, 0.72);
  --page: min(1220px, calc(100vw - 40px));
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  scrollbar-color: var(--blue-700) var(--paper-blue);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: -1;
  width: 8px;
  content: "";
  background: var(--blue-700);
}

::selection {
  color: var(--paper-bright);
  background: var(--blue-700);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: var(--paper-blue);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--paper-blue);
  border-radius: 999px;
  background: var(--blue-700);
}

a {
  color: var(--blue-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--navy-950);
}

button,
input,
select {
  font: inherit;
}

button,
.button {
  min-height: 46px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

img,
iframe,
object {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 200;
  padding: 12px 16px;
  color: white;
  background: var(--navy-950);
  transform: translateY(-160%);
  transition: transform 160ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  color: white;
  background: var(--navy-950);
}

.casebar {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(420px, 1.6fr) auto;
  align-items: stretch;
  width: var(--page);
  min-height: var(--header-height);
  margin: 0 auto;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 24px 12px 0;
  color: white;
  text-decoration: none;
}

.brand-portrait {
  position: relative;
  flex: 0 0 50px;
  width: 50px;
  height: 58px;
  overflow: hidden;
  background: #f3ecdd;
  clip-path: polygon(0 0, 100% 0, 100% 86%, 80% 100%, 0 100%);
}

.brand-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.brand-lockup strong,
.brand-lockup span {
  display: block;
}

.brand-lockup strong {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-lockup span {
  color: #cbd9ea;
  font-size: 0.72rem;
}

.stage-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-inline: 1px solid rgba(255, 255, 255, 0.16);
}

.stage-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px 18px;
  color: #d6e1ef;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.stage-nav a:last-child {
  border-right: 0;
}

.stage-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.stage-nav a[aria-current="page"] {
  color: var(--navy-950);
  background: var(--gold-light);
}

.stage-nav b {
  color: inherit;
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}

.stage-nav span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
}

.language-toggle,
.menu-toggle {
  min-width: 48px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: white;
  background: transparent;
  cursor: pointer;
}

.language-toggle:hover,
.menu-toggle:hover {
  color: var(--navy-950);
  background: white;
}

.menu-toggle {
  position: relative;
  display: none;
}

.menu-toggle::before {
  width: 18px;
  height: 2px;
  margin-right: 8px;
  content: "";
  background: currentColor;
  box-shadow: 0 -5px currentColor, 0 5px currentColor;
}

.menu-toggle[data-open="true"]::before {
  box-shadow: none;
  transform: rotate(45deg);
}

.menu-toggle[data-open="true"]::after {
  position: absolute;
  width: 18px;
  height: 2px;
  margin-left: -34px;
  content: "";
  background: currentColor;
  transform: rotate(-45deg);
}

.case-meta {
  color: white;
  background: var(--navy-800);
}

.case-meta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  width: var(--page);
  margin: 0 auto;
  padding: 10px 0;
  font-size: 0.74rem;
}

.case-meta strong {
  color: #b9cbe0;
  font-weight: 500;
}

.case-meta span {
  font-variant-numeric: tabular-nums;
}

main {
  min-height: 70vh;
}

.page-shell {
  width: var(--page);
  margin: 0 auto;
}

.mandate-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.72fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: stretch;
  min-height: 690px;
  padding: clamp(56px, 8vw, 110px) 0 70px;
}

.mandate-hero::after {
  position: absolute;
  right: calc(34% - 6px);
  top: 0;
  bottom: 0;
  width: 1px;
  content: "";
  background: var(--line);
}

.mandate-copy h1,
.page-lead h1,
.viewer-title h1 {
  max-width: 13ch;
  margin: 0 0 26px;
  font-size: clamp(2.65rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
}

.mandate-copy > p,
.page-lead > p {
  max-width: 68ch;
  margin: 0 0 30px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.5vw, 1.22rem);
}

.issue-ledger {
  margin-top: 38px;
  border-top: 2px solid var(--ink);
}

.issue-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.issue-row > span,
.finding-index,
.source-id,
.file-hash {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.issue-row > span {
  color: var(--blue-700);
  font-size: 0.75rem;
  font-weight: 800;
}

.issue-row h2 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  line-height: 1.45;
}

.issue-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.actions-centered {
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  color: inherit;
  background: transparent;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: white;
  background: var(--blue-700);
}

.button-primary:hover {
  color: white;
  background: var(--navy-800);
}

.button-secondary {
  border-color: var(--blue-700);
  color: var(--blue-700);
  background: white;
}

.button-secondary:hover {
  color: white;
  background: var(--blue-700);
}

.button-quiet {
  border-color: var(--line-strong);
  color: var(--ink);
}

.button-quiet:hover {
  border-color: var(--ink);
  background: var(--paper-blue);
}

.record-rail {
  position: relative;
  padding: 0 0 0 34px;
}

.record-rail::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  content: "";
  background: var(--navy-950);
}

.delivery-seal {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: end;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-strong);
}

.delivery-seal img {
  width: 92px;
  height: 126px;
  object-fit: cover;
  object-position: center top;
}

.delivery-seal strong {
  display: block;
  font-size: 1.05rem;
}

.delivery-seal span {
  color: var(--muted);
  font-size: 0.8rem;
}

.case-map {
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.case-map li {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  min-height: 112px;
  padding-bottom: 24px;
}

.case-map li::after {
  position: absolute;
  left: 25px;
  top: 52px;
  bottom: 0;
  width: 1px;
  content: "";
  background: var(--line-strong);
}

.case-map li:last-child::after {
  display: none;
}

.case-map b {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--navy-800);
  color: var(--navy-800);
  background: white;
  font-size: 0.78rem;
}

.case-map li:first-child b {
  color: white;
  background: var(--navy-800);
}

.case-map strong,
.case-map span {
  display: block;
}

.case-map strong {
  margin-top: 5px;
}

.case-map span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
}

.file-slip {
  position: relative;
  margin-top: 16px;
  padding: 22px 20px 22px 30px;
  color: white;
  background: var(--blue-700);
  box-shadow: var(--shadow-float);
}

.file-slip::before {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 3px;
  content: "";
  background: var(--gold-light);
}

.file-slip strong,
.file-slip span {
  display: block;
}

.file-slip span {
  margin: 5px 0 18px;
  color: #d9e5f8;
  font-size: 0.8rem;
}

.file-slip a {
  color: white;
  font-weight: 760;
}

.section-band {
  padding: clamp(64px, 9vw, 120px) 0;
  border-top: 1px solid var(--line);
}

.section-band.white {
  background: var(--paper-bright);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.6fr);
  gap: 50px;
  align-items: start;
  margin-bottom: 44px;
}

.section-heading h2 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.section-heading p {
  max-width: 68ch;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 1.03rem;
}

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

.timeline article {
  min-width: 0;
  padding: 22px 20px 28px 0;
  border-right: 1px solid var(--line);
}

.timeline article:not(:first-child) {
  padding-left: 20px;
}

.timeline article:last-child {
  border-right: 0;
}

.timeline time {
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 800;
}

.timeline h3 {
  margin: 18px 0 8px;
  font-size: 1.04rem;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.document-preview {
  display: grid;
  grid-template-columns: minmax(250px, 0.55fr) minmax(0, 1.45fr);
  gap: 30px;
  align-items: stretch;
}

.document-info {
  padding: 30px;
  color: white;
  background: var(--navy-950);
}

.document-info h3 {
  margin: 0 0 18px;
  font-size: 1.65rem;
}

.document-info p,
.document-info dd {
  color: #c8d7e8;
}

.document-info dl {
  margin: 28px 0;
}

.document-info dt {
  margin-top: 14px;
  color: #91a9c3;
  font-size: 0.72rem;
}

.document-info dd {
  margin: 2px 0;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}

.document-frame {
  min-height: 680px;
  border: 0;
  background: #dce5ef;
}

.page-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
  padding: clamp(68px, 10vw, 130px) 0 62px;
}

.page-lead h1 {
  max-width: 12ch;
}

.lead-stats {
  border-top: 2px solid var(--ink);
}

.lead-stats div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.lead-stats strong {
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
}

.lead-stats span {
  color: var(--muted);
  font-size: 0.8rem;
  text-align: right;
}

.findings {
  border-top: 2px solid var(--ink);
}

.finding {
  display: grid;
  grid-template-columns: 86px minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 125px;
}

.finding-index {
  color: var(--blue-700);
  font-size: 0.82rem;
  font-weight: 800;
}

.finding h3 {
  margin: 0;
  font-size: 1.28rem;
  line-height: 1.38;
}

.finding p {
  max-width: 74ch;
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.evidence-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.evidence-links a,
.source-id,
.status-token {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 9px;
  border: 1px solid var(--line-strong);
  color: var(--navy-800);
  background: white;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}

.evidence-links a:hover {
  border-color: var(--blue-700);
  color: white;
  background: var(--blue-700);
}

.legal-system {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 56px;
}

.system-copy p {
  max-width: 68ch;
  color: var(--ink-soft);
}

.system-copy ul {
  padding-left: 1.25rem;
}

.court-ladder {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.court-ladder li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 92px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.court-ladder li:first-child {
  border-top: 2px solid var(--ink);
}

.court-ladder b {
  display: grid;
  place-items: center;
  min-height: 58px;
  color: white;
  background: var(--navy-800);
  font-size: 0.78rem;
  text-align: center;
}

.court-ladder strong,
.court-ladder span {
  display: block;
}

.court-ladder span {
  color: var(--muted);
  font-size: 0.82rem;
}

.audit-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: white;
  background: var(--navy-950);
}

.audit-strip div {
  min-height: 150px;
  padding: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.audit-strip div:last-child {
  border-right: 0;
}

.audit-strip strong,
.audit-strip span {
  display: block;
}

.audit-strip strong {
  color: var(--gold-light);
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.audit-strip span {
  margin-top: 12px;
  color: #c6d4e5;
  font-size: 0.8rem;
}

.service-band {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 38px;
  color: white;
  background: var(--blue-700);
  box-shadow: var(--shadow-sheet);
}

.service-band img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  object-position: center 15%;
}

.service-band h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
}

.service-band p {
  max-width: 64ch;
  margin: 0;
  color: #e0e9f7;
}

.service-band .button {
  color: var(--navy-950);
  background: var(--gold-light);
}

.library-tools {
  position: sticky;
  top: 124px;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(220px, 0.6fr);
  gap: 16px;
  padding: 18px;
  color: white;
  background: var(--navy-950);
  box-shadow: var(--shadow-float);
}

.search-field {
  display: flex;
  align-items: center;
  min-width: 0;
  background: white;
}

.search-field input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.search-field button {
  min-width: 54px;
  border: 0;
  color: var(--blue-700);
  background: white;
  cursor: pointer;
}

.topic-filter {
  min-height: 54px;
  padding: 9px 40px 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: white;
  background: var(--navy-800);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.filter-row button {
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: white;
  cursor: pointer;
}

.filter-row button[aria-pressed="true"] {
  border-color: var(--blue-700);
  color: white;
  background: var(--blue-700);
}

.result-status {
  min-height: 52px;
  margin: 0;
  padding: 16px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.source-list,
.search-results {
  border-top: 2px solid var(--ink);
}

.source-row {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr) minmax(250px, 0.55fr);
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.source-row h2,
.source-row h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.45;
}

.source-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.source-actions {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  justify-content: flex-end;
  gap: 8px;
}

.source-actions a {
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: white;
  font-size: 0.78rem;
  font-weight: 760;
  text-decoration: none;
}

.source-actions a:hover {
  border-color: var(--blue-700);
  color: white;
  background: var(--blue-700);
}

.search-hit {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.search-hit a {
  font-weight: 800;
}

.search-hit p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.empty-state {
  padding: 52px 0;
  border-top: 2px solid var(--ink);
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 8px;
}

.archive-panel {
  margin-top: 70px;
  border-top: 2px solid var(--ink);
}

.archive-panel summary {
  min-height: 62px;
  padding: 18px 0;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
}

.archive-list {
  max-height: 520px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.archive-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px auto;
  gap: 18px;
  align-items: center;
  min-height: 58px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}

.archive-row a {
  font-weight: 760;
}

.viewer-shell {
  width: min(1480px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.viewer-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: end;
  padding-bottom: 26px;
  border-bottom: 2px solid var(--ink);
}

.viewer-title h1 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.8rem);
}

.viewer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.viewer-meta strong {
  color: var(--ink);
}

.source-frame {
  width: 100%;
  min-height: 76vh;
  border: 1px solid var(--line-strong);
  background: white;
}

.viewer-error {
  padding: 60px 0;
  text-align: center;
}

.services-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 320px;
  gap: 70px;
  align-items: center;
  min-height: 620px;
  padding: 70px 0;
}

.services-hero h1 {
  max-width: 12ch;
  margin: 0 0 26px;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.services-hero p {
  max-width: 66ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.services-portrait {
  min-height: 460px;
  overflow: hidden;
  background: var(--gold-light);
  box-shadow: var(--shadow-sheet);
}

.services-portrait img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  object-position: center top;
}

.service-ledger {
  border-top: 2px solid var(--ink);
}

.service-ledger article {
  display: grid;
  grid-template-columns: 90px minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.service-ledger b {
  color: var(--blue-700);
}

.service-ledger h2,
.service-ledger p {
  margin: 0;
}

.service-ledger p {
  color: var(--muted);
}

.checklist-box {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  gap: 50px;
  align-items: center;
  padding: 46px;
  color: white;
  background: var(--navy-950);
}

.checklist-box h2 {
  margin: 0 0 12px;
  font-size: 2rem;
}

.checklist-box p {
  margin: 0;
  color: #cbd8e8;
}

.checklist-box .button {
  color: var(--navy-950);
  background: var(--gold-light);
}

.site-footer {
  margin-top: 90px;
  color: #c8d6e7;
  background: var(--navy-950);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr) auto;
  gap: 44px;
  width: var(--page);
  margin: 0 auto;
  padding: 48px 0;
}

.footer-brand {
  display: flex;
  gap: 15px;
  align-items: center;
}

.footer-brand img {
  width: 64px;
  height: 74px;
  object-fit: cover;
  object-position: center top;
}

.footer-brand strong,
.footer-brand span {
  display: block;
}

.footer-brand strong {
  color: white;
}

.footer-brand span,
.footer-copy {
  font-size: 0.78rem;
}

.footer-copy p {
  max-width: 70ch;
  margin: 0 0 8px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

.footer-links a {
  color: white;
  font-size: 0.8rem;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  max-width: min(380px, calc(100vw - 44px));
  padding: 14px 18px;
  color: white;
  background: var(--green);
  box-shadow: var(--shadow-float);
  transform: translateY(150%);
  transition: transform 180ms ease-out;
}

.toast[data-show="true"] {
  transform: translateY(0);
}

.no-js {
  margin: 0;
  padding: 12px 20px;
  color: white;
  background: var(--red);
  text-align: center;
}

@media (max-width: 1040px) {
  :root {
    --page: min(940px, calc(100vw - 32px));
  }

  .casebar {
    grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.5fr) auto;
  }

  .stage-nav a {
    padding-inline: 12px;
  }

  .stage-nav b {
    display: none;
  }

  .mandate-hero {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 46px;
  }

  .mandate-hero::after {
    right: calc(36% - 8px);
  }

  .finding {
    grid-template-columns: 70px minmax(190px, 0.65fr) minmax(0, 1.35fr);
    gap: 20px;
  }

  .source-row {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .source-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 70px;
    --page: calc(100vw - 28px);
  }

  body::before {
    width: 5px;
  }

  .casebar {
    grid-template-columns: 1fr auto;
    min-height: var(--header-height);
  }

  .brand-lockup {
    padding-block: 8px;
  }

  .brand-portrait {
    flex-basis: 42px;
    width: 42px;
    height: 48px;
  }

  .header-actions {
    padding-left: 8px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .stage-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    display: none;
    grid-column: 1 / -1;
    border: 0;
    background: var(--navy-950);
    box-shadow: var(--shadow-float);
  }

  .stage-nav[data-open="true"] {
    display: grid;
  }

  .stage-nav a {
    min-height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .stage-nav b {
    display: inline;
  }

  .case-meta {
    display: none;
  }

  .mandate-hero,
  .page-lead,
  .legal-system,
  .services-hero {
    grid-template-columns: 1fr;
  }

  .mandate-hero {
    min-height: auto;
    padding-top: 62px;
  }

  .mandate-hero::after {
    display: none;
  }

  .record-rail {
    padding-left: 26px;
  }

  .case-map {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .case-map li {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0 14px 0 0;
  }

  .case-map li::after {
    left: 52px;
    right: 0;
    top: 26px;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .case-map b {
    position: relative;
    z-index: 2;
  }

  .case-map span {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline article:nth-child(2) {
    border-right: 0;
  }

  .timeline article:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .document-preview,
  .viewer-title,
  .checklist-box {
    grid-template-columns: 1fr;
  }

  .document-frame {
    min-height: 560px;
  }

  .finding {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .finding > div:last-child {
    grid-column: 2;
  }

  .audit-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .audit-strip div:nth-child(2) {
    border-right: 0;
  }

  .audit-strip div:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .service-band {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .service-band img {
    width: 100px;
    height: 120px;
  }

  .service-band .button {
    grid-column: 1 / -1;
  }

  .library-tools {
    top: 70px;
    grid-template-columns: 1fr;
  }

  .source-row {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .source-actions {
    grid-column: 1 / -1;
  }

  .search-hit {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .service-ledger article {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .service-ledger p {
    grid-column: 2;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-links {
    align-items: flex-start;
  }

  .evidence-links a,
  .source-actions a,
  .archive-row a,
  .footer-links a {
    min-height: 44px;
    align-items: center;
  }

  .archive-row a,
  .footer-links a {
    display: inline-flex;
  }
}

@media (max-width: 560px) {
  .brand-lockup span,
  .brand-lockup strong + span {
    display: none;
  }

  .language-toggle {
    padding-inline: 9px;
  }

  .mandate-copy h1,
  .page-lead h1,
  .services-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
  }

  .issue-row {
    grid-template-columns: 64px 1fr;
    gap: 12px;
  }

  .delivery-seal {
    grid-template-columns: 76px 1fr;
  }

  .delivery-seal img {
    width: 76px;
    height: 104px;
  }

  .timeline,
  .audit-strip {
    grid-template-columns: 1fr;
  }

  .timeline article,
  .timeline article:not(:first-child) {
    padding: 18px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .timeline article:first-child {
    border-top: 0;
  }

  .finding {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .finding > div:last-child {
    grid-column: 1;
  }

  .legal-system {
    gap: 36px;
  }

  .court-ladder li {
    grid-template-columns: 85px 1fr;
  }

  .audit-strip div,
  .audit-strip div:nth-child(2) {
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .audit-strip div:first-child {
    border-top: 0;
  }

  .service-band {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .service-band img {
    width: 92px;
    height: 108px;
  }

  .source-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .source-actions,
  .source-row > div:nth-child(2) {
    grid-column: 1;
  }

  .archive-row {
    grid-template-columns: 1fr auto;
  }

  .archive-row span {
    display: none;
  }

  .services-hero {
    gap: 36px;
  }

  .services-portrait,
  .services-portrait img {
    min-height: 380px;
  }

  .service-ledger article {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .service-ledger p {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .library-tools,
  .filter-row,
  .actions,
  .source-actions,
  .service-band {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
  }

  body::before {
    display: none;
  }

  .section-band,
  .page-lead,
  .mandate-hero {
    padding: 18mm 0;
  }
}
