/*
  Asli site styles.
  Direction: security printing. Cool security paper, teal intaglio line work,
  a touch of gold foil, and verdicts that land like an official stamp.
  Layout uses logical properties so Arabic (default) and English share one sheet.
*/

:root {
  --paper: #EEF3F1;
  --paper-2: #F7FAF9;
  --ink: #10302A;
  --ink-2: #45605A;
  --rule: #C3D1CC;
  --line: #236B68;
  --line-soft: rgba(35, 107, 104, 0.12);
  --foil: #9C7A2E;
  --fake: #B42318;
  --fake-bg: #FBE9E7;
  --genuine: #146B3F;
  --genuine-bg: #E1F2E8;
  --unknown: #8F5200;
  --unknown-bg: #FAEFD9;

  --text: "Markazi Text", "Noto Naskh Arabic", "Amiri", Georgia, serif;
  --mark: "Aref Ruqaa", "Markazi Text", serif;
  --measure: 68ch;
  --gutter: clamp(18px, 4vw, 40px);
  --bar-h: 64px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0D1B18;
    --paper-2: #132522;
    --ink: #E4EFEB;
    --ink-2: #A7BCB6;
    --rule: #27433D;
    --line: #5DB3AD;
    --line-soft: rgba(93, 179, 173, 0.14);
    --foil: #CDA650;
    --fake: #FF7A6B;
    --fake-bg: #3A1512;
    --genuine: #52C48D;
    --genuine-bg: #10301F;
    --unknown: #F0B45A;
    --unknown-bg: #33240C;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 19px;
  line-height: 1.6;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body {
  font-size: 21px;
  line-height: 1.85;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

html[lang="ar"] :is(h1, h2, h3, h4) { line-height: 1.45; }

p { margin: 0; }

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

a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--line);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -80px;
  z-index: 20;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 3px;
}

.skip:focus { top: 12px; }

.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.small-label {
  font-size: 0.82em;
  font-weight: 600;
  color: var(--ink-2);
}

/* Header */

.masthead {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--bar-h);
  padding-inline: var(--gutter);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-ar {
  font-family: var(--mark);
  font-size: 30px;
  line-height: 1;
}

.brand-en {
  font-size: 17px;
  color: var(--ink-2);
}

.bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang,
.repo {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 14px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
}

.lang:hover,
.repo:hover { border-color: var(--ink-2); }

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding-block: clamp(40px, 7vw, 104px) clamp(28px, 5vw, 64px);
}

.kicker {
  font-size: 0.85em;
  color: var(--ink-2);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(44px, 6.4vw, 84px);
  letter-spacing: -0.012em;
  line-height: 1.05;
}

html[lang="ar"] h1 {
  letter-spacing: 0;
  line-height: 1.3;
}

.hero-lead {
  margin-top: 22px;
  max-width: 60ch;
  font-size: 1.14em;
}

.hero-name {
  margin-top: 16px;
  max-width: 60ch;
  color: var(--ink-2);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 22px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.btn:hover { background: var(--line-soft); }

.btn.primary {
  background: var(--ink);
  color: var(--paper);
}

.btn.primary:hover { background: var(--line); border-color: var(--line); }

.hero-seal { margin: 0; }

.hero-seal svg {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  margin-inline: auto;
  overflow: visible;
}

/* Seal line work */

.seal-art path,
.seal-art circle { vector-effect: non-scaling-stroke; }

.g-outer { stroke: var(--line); stroke-width: 0.7; opacity: 0.42; }
.g-mid { stroke: var(--line); stroke-width: 0.7; opacity: 0.62; }
.g-rose { stroke: var(--line); stroke-width: 0.8; opacity: 0.95; }
.g-foil { fill: none; stroke: var(--foil); stroke-width: 1; }
.g-dots { stroke-width: 2; stroke-dasharray: 0.1 5; stroke-linecap: round; }
.g-thin { stroke-width: 0.7; }
.g-disc { fill: var(--paper); stroke: var(--foil); stroke-width: 1.2; }
.g-word { font-family: var(--mark); font-size: 60px; fill: var(--ink); }
.g-latin { font-family: var(--text); font-size: 18px; fill: var(--ink-2); }

#seal.is-drawing .seal-art path { transition: stroke-dashoffset 2.4s cubic-bezier(0.25, 0.7, 0.2, 1); }
#seal.is-drawing .seal-center { opacity: 0; transform: scale(0.9); transition: opacity 0.6s ease 1.4s, transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) 1.4s; }
#seal.is-drawn .seal-center { opacity: 1; transform: none; }

/* Seven languages strip */

.tongues {
  padding-block: 18px 22px;
  border-block: 1px solid var(--rule);
}

.tongues-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 34px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.tongues-list li {
  display: flex;
  flex-direction: column;
}

.tongues-list .q {
  font-size: 22px;
  line-height: 1.5;
}

.tongues-list .qn {
  font-size: 14px;
  color: var(--ink-2);
}

.noscript {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--rule);
  background: var(--paper-2);
}

/* Page layout */

.layout {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
}

.toc {
  position: sticky;
  top: calc(var(--bar-h) + 8px);
  align-self: start;
  padding-block: 56px 24px;
}

.toc ol {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.toc a {
  display: block;
  padding-block: 5px;
  padding-inline: 12px 6px;
  border-inline-start: 2px solid var(--rule);
  color: var(--ink-2);
  font-size: 17px;
  text-decoration: none;
}

.toc a:hover { color: var(--ink); }

.toc a[aria-current="true"] {
  border-inline-start-color: var(--line);
  color: var(--ink);
  font-weight: 600;
}

.part {
  padding-block: clamp(48px, 7vw, 92px);
  border-top: 1px solid var(--rule);
}

.part:first-child { border-top: 0; }

.part h2 {
  font-size: clamp(30px, 3.6vw, 44px);
  max-width: 32ch;
}

.part > .lead {
  margin-top: 14px;
  max-width: var(--measure);
  font-size: 1.08em;
  color: var(--ink-2);
}

.sub {
  margin-top: 44px;
  font-size: 1.3em;
}

.note {
  margin-top: 18px;
  max-width: var(--measure);
  font-size: 0.9em;
  color: var(--ink-2);
}

.src {
  margin-top: 6px;
  font-size: 0.84em;
  color: var(--ink-2);
}

/* Evidence ledger */

.ledger {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.ledger li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 18px;
  padding-block: 16px;
  border-top: 1px solid var(--rule);
}

.ledger li:last-child { border-bottom: 1px solid var(--rule); }

.yr {
  font-weight: 700;
  color: var(--line);
  font-variant-numeric: tabular-nums;
}

.fact { max-width: var(--measure); }

.analysis {
  margin-top: 30px;
  max-width: 74ch;
  padding: 20px 24px;
  background: var(--paper-2);
  border-inline-start: 3px solid var(--foil);
}

.analysis-label {
  margin-bottom: 6px;
  font-weight: 700;
}

/* Idea */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.compare-col {
  padding: 22px 24px;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.compare-col h3 { font-size: 1.2em; }

.compare-col.is-block { color: var(--ink-2); }

.compare-col.is-registry {
  border: 1.5px solid var(--line);
  background: var(--paper-2);
}

.marks {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.marks li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  padding-block: 6px;
}

.icon {
  width: 20px;
  height: 20px;
  margin-top: 0.3em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-info circle { fill: currentColor; stroke: none; }
.is-registry .icon { color: var(--genuine); }
.is-block .icon { color: var(--ink-2); }

.reasons {
  max-width: 80ch;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.reasons li {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 18px;
  padding-block: 12px;
  border-top: 1px solid var(--rule);
}

.reasons li:last-child { border-bottom: 1px solid var(--rule); }
.reasons h4 { font-size: 1em; }

.local {
  margin-top: 12px;
  max-width: 62ch;
  padding-inline-start: 20px;
  border-inline-start: 3px solid var(--line);
  font-size: 1.12em;
}

/* Demo */

.demo { margin-top: 30px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  min-height: 42px;
  padding-inline: 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}

.chip:hover { border-color: var(--ink-2); }

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.demo-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px;
  align-items: start;
  margin-top: 22px;
}

.phone {
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: var(--paper-2);
}

.phone-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  font-size: 15px;
  color: var(--ink-2);
}

.meta-k { font-weight: 700; }

.msg-link {
  color: var(--line);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  white-space: nowrap;
  unicode-bidi: isolate;
}

.bubble {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border-start-start-radius: 4px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: 19px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.checks {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 2px 10px;
  padding-block: 10px;
  border-top: 1px solid var(--rule);
}

.check-text { grid-column: 2; }

.check-icon .icon { margin-top: 0.25em; }
.check-name { font-weight: 700; }
.check-text p + p { margin-top: 4px; }
.check-text { overflow-wrap: anywhere; }

.st-flag .check-icon { color: var(--fake); }
.st-pass .check-icon { color: var(--genuine); }
.st-info .check-icon { color: var(--ink-2); }
.st-none .check-icon { color: var(--rule); }
.st-none .check-text { color: var(--ink-2); }

.verdict {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px 26px;
  align-items: start;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.stamp {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 18px;
  border: 4px double currentColor;
  border-radius: 4px;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  transform: rotate(-3deg);
}

html[dir="rtl"] .stamp { transform: rotate(3deg); }

.v-impersonation { color: var(--fake); background: var(--fake-bg); }
.v-official { color: var(--genuine); background: var(--genuine-bg); }
.v-unverified { color: var(--unknown); background: var(--unknown-bg); }

.stamp-in { animation: stamp-in 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.25) both; }

@keyframes stamp-in {
  from { opacity: 0; transform: scale(1.35) rotate(-8deg); }
}

html[dir="rtl"] .stamp-in { animation-name: stamp-in-rtl; }

@keyframes stamp-in-rtl {
  from { opacity: 0; transform: scale(1.35) rotate(8deg); }
}

.verdict-why { font-weight: 600; }
.verdict-body .small-label { margin-top: 12px; }

/* Architecture */

.lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  margin-top: 30px;
}

.lane { position: relative; }

.lane + .lane::before {
  content: "›";
  position: absolute;
  inset-inline-start: -25px;
  top: -2px;
  font-size: 28px;
  line-height: 1;
  color: var(--line);
}

.lane-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 1.05em;
}

.lane-n {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  color: var(--line);
  font-size: 15px;
  line-height: 1;
}

.lane ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.node {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper-2);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  line-height: 1.35;
  text-align: start;
  cursor: pointer;
}

.node:hover { border-color: var(--line); }

.node[aria-pressed="true"] {
  background: var(--line);
  border-color: var(--line);
  color: var(--paper);
}

.lane-detail {
  margin-top: 24px;
  max-width: 78ch;
  padding: 20px 24px;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: var(--paper-2);
}

.lane-detail h3 { font-size: 1.2em; }
.lane-detail p { margin-top: 8px; }
.reuses { color: var(--ink-2); font-size: 0.92em; }

/* Selection matrix */

.weights {
  margin-top: 28px;
  padding: 18px 20px 20px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper-2);
}

.weights-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px 24px;
  margin-top: 10px;
}

.weight {
  display: flex;
  flex-direction: column;
}

.c-title {
  display: block;
  font-weight: 700;
  line-height: 1.35;
}

.c-desc {
  display: block;
  flex: 1;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-2);
}

.w {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.w input {
  flex: 1;
  min-width: 0;
  accent-color: var(--line);
}

.w-out {
  min-width: 3.2ch;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.matrix-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.matrix {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.matrix th,
.matrix td {
  padding: 12px 12px;
  border-bottom: 1px solid var(--rule);
  text-align: start;
  vertical-align: top;
}

.matrix tbody tr:last-child > * { border-bottom: 0; }

.matrix thead th {
  vertical-align: bottom;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink-2);
}

.matrix thead th.c-crit { text-align: center; width: 8.5%; }
.matrix .c-name { width: 44%; }

.cand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-weight: 700;
}

.cand-why {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-2);
}

.tag {
  padding: 0 8px;
  border: 1px solid var(--foil);
  border-radius: 999px;
  color: var(--foil);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.c-score {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.matrix td.c-score { text-align: center; }

.c-total { width: 16%; }

.total {
  display: flex;
  align-items: center;
  gap: 10px;
}

.meter {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--line-soft);
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  background: var(--ink-2);
  opacity: 0.55;
}

.is-top .meter i { background: var(--line); opacity: 1; }
.is-top > th { box-shadow: inset 3px 0 0 var(--line); }
html[dir="rtl"] .is-top > th { box-shadow: inset -3px 0 0 var(--line); }

.matrix-result {
  margin-top: 16px;
  font-weight: 600;
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--line);
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  cursor: pointer;
}

/* Roadmap */

.phases {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.phase {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 28px;
  padding-block: 24px;
  border-top: 1px solid var(--rule);
}

.phase-n {
  font-weight: 700;
  color: var(--line);
}

.phase-weeks { font-weight: 600; }

.phase-dates {
  font-size: 0.9em;
  color: var(--ink-2);
}

.phase-body h3 { font-size: 1.3em; }

.goals {
  margin: 10px 0 14px;
  padding-inline-start: 1.1em;
  list-style: disc;
}

.goals li { padding-block: 2px; }
.goals li::marker { color: var(--line); }

.exit {
  max-width: 64ch;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  border-inline-start: 3px solid var(--foil);
  background: var(--paper-2);
}

.exit-label {
  font-size: 0.85em;
  font-weight: 700;
  color: var(--ink-2);
}

/* Reuse, trust and audiences */

.reuse,
.grid {
  display: grid;
  gap: 0 34px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.reuse { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.reuse li,
.grid li {
  padding-block: 14px 18px;
  border-top: 1px solid var(--rule);
}

.reuse a {
  font-weight: 700;
  text-decoration: none;
}

.reuse a:hover { text-decoration: underline; }
.reuse p { margin-top: 2px; color: var(--ink-2); }
.grid h3 { font-size: 1.12em; }
.grid p { margin-top: 4px; }

/* Registers */

.register {
  width: 100%;
  margin-top: 28px;
  border-collapse: collapse;
}

.register th,
.register td {
  padding-block: 12px;
  padding-inline: 0 20px;
  border-top: 1px solid var(--rule);
  text-align: start;
  vertical-align: top;
}

.register thead th {
  font-size: 0.85em;
  color: var(--ink-2);
}

.register tbody th {
  width: 38%;
  font-weight: 700;
}

.register tbody tr:last-child > * { border-bottom: 1px solid var(--rule); }

/* First two weeks */

.numbered {
  max-width: 72ch;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.numbered li {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  padding-block: 12px;
  border-top: 1px solid var(--rule);
  counter-increment: step;
}

.numbered li::before {
  content: counter(step);
  font-weight: 700;
  color: var(--line);
  font-variant-numeric: tabular-nums;
}

html[lang="ar"] .numbered li::before { content: counter(step, arabic-indic); }

/* Footer */

.foot {
  padding-block: 34px 56px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
  font-size: 0.92em;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 8px;
}

/* Responsive */

@media (max-width: 1080px) {
  .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lane:nth-child(3)::before { display: none; }
  .weights-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .part:first-child { border-top: 1px solid var(--rule); }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-seal { order: -1; }
  .hero-seal svg { max-width: 280px; }
  .demo-body { grid-template-columns: minmax(0, 1fr); }
  .verdict { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .brand-en { display: none; }
  .repo { display: none; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .lanes { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .lane + .lane::before { display: none; }
  .reasons li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .weights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix { min-width: 0; }
  .matrix .c-crit,
  .matrix .c-score { display: none; }
  .matrix .c-name { width: auto; }
  .c-total { width: 34%; }
  .lanes .lane-detail { margin-top: 0; }
  .phase { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ledger li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .register tbody th { width: auto; }
  .register thead { display: none; }
  .register tr { display: block; padding-block: 8px; border-top: 1px solid var(--rule); }
  .register th,
  .register td { display: block; padding-block: 2px; border: 0; }
  .register tbody tr:last-child > * { border-bottom: 0; }
}

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

@media print {
  .masthead, .toc, .cta, .chips, .skip, .text-button, .w { display: none; }
  body { background: #fff; color: #000; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .part { break-inside: avoid-page; }
}
