/* Fonts: self-hosted latin subsets. Fallback faces are metric-matched so the swap does not move text. */
@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wdth-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-wght.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
/* Measured against Archivo at wdth 88, wght 640 (headings). */
@font-face {
  font-family: "Archivo fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold");
  size-adjust: 85.96%;
  ascent-override: 102.14%;
  descent-override: 24.43%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Source Serif 4 fallback";
  src: local("Georgia");
  size-adjust: 107.94%;
  ascent-override: 95.98%;
  descent-override: 31.04%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "IBM Plex Mono fallback";
  src: local("Menlo"), local("Courier New");
  size-adjust: 99.7%;
  ascent-override: 102.8%;
  descent-override: 27.6%;
  line-gap-override: 0%;
}

:root {
  --paper: #FBFBF8;
  --paper-2: #F3F2EC;
  --ink: #14110F;
  --ink-2: #5F5A55;
  --rule: rgba(20, 17, 15, 0.14);
  --rule-2: rgba(20, 17, 15, 0.34);
  --hold: #C2371D;
  --ship: #1E6B45;

  --sans: "Archivo", "Archivo fallback", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", "Source Serif 4 fallback", Georgia, serif;
  --mono: "IBM Plex Mono", "IBM Plex Mono fallback", Menlo, monospace;

  --frame: 1360px;
  --gap: 24px;
  --pad: 40px;
  color-scheme: light;
}

/* Light is the default for every visitor. Dark applies only when asked for explicitly. */
:root[data-theme="dark"] {
  --paper: #161412;
  --paper-2: #1F1C19;
  --ink: #E8E4DC;
  --ink-2: #A39D94;
  --rule: rgba(232, 228, 220, 0.14);
  --rule-2: rgba(232, 228, 220, 0.34);
  --hold: #EE6A4F;
  --ship: #5CB98A;
  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.55 var(--serif);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul, dl, dd, figure, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--sans);
  font-stretch: 88%;
  font-weight: 640;
  text-wrap: balance;
}

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

a { color: inherit; text-decoration-line: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

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

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 10;
  padding: 10px 14px; background: var(--paper); border: 1px solid var(--ink);
  font: 500 0.875rem/1 var(--mono);
}
.skip:focus { top: 12px; }

/* Small monospaced labels */
.sec-label,
.pending,
.record-head,
.record-cat,
.record-rows dt,
.sheet-tag,
.sheet-list .mono,
.mini thead th,
.table thead th,
.table caption,
.limits-title,
.limits-grid dt,
.files caption,
.custody dt,
.status,
.close-send-title {
  font-family: var(--mono); font-weight: 400; font-size: 0.6875rem; line-height: 1.4;
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-2);
}

/* Frame and grid */
.masthead-inner, .page, .colophon-inner {
  max-width: var(--frame);
  margin-inline: auto;
}
.page { border-inline: 1px solid var(--rule); }

.sec, .masthead-inner {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  padding-inline: var(--pad);
}
.sec { border-top: 1px solid var(--rule); }
.sec:first-child { border-top: 0; }

.sec-margin { grid-column: 1 / span 3; padding-block: 32px; }
.margin-stick { position: sticky; top: 20px; }
.sec-num { font: 500 0.8125rem/1.5 var(--mono); }
.sec-label { font-size: 0.75rem; }
.margin-note {
  margin-top: 28px; max-width: 26ch;
  font: 400 0.875rem/1.45 var(--serif); color: var(--ink-2);
}
.margin-note .mono { font-size: 0.8125rem; color: var(--ink); }

.sec-body {
  grid-column: 4 / -1;
  display: grid;
  grid-template-columns: subgrid;
  align-content: start;
  padding-block: 28px 112px;
}
.sec-body > * { grid-column: 1 / -1; }

h2 {
  font-size: clamp(2rem, 1.15rem + 2.3vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.024em;
  max-width: 19ch;
  margin-bottom: 28px;
}
h3 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -0.01em; font-stretch: 92%; }

.intro, .rule { grid-column: 1 / span 6; max-width: 40em; margin-bottom: 48px; }
.rule {
  font: 600 1.125rem/1.4 var(--sans);
  font-stretch: 92%;
  padding-left: 16px;
  border-left: 3px solid var(--ink);
}
.small, .figure-note { font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2); max-width: 46em; }
.small { margin-top: 24px; }
.figure-note { margin-top: 16px; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner { align-items: center; min-height: 64px; }
.wordmark {
  grid-column: 1 / span 3;
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  font: 650 1.1875rem/1 var(--sans); font-stretch: 92%; letter-spacing: -0.01em;
  text-decoration: none;
}
.monogram { width: 24px; height: 24px; flex: none; }
.nav {
  grid-column: 4 / span 7;
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  font: 400 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em;
}
.nav a { text-decoration: none; color: var(--ink-2); padding-block: 6px; }
.nav a:hover { color: var(--ink); text-decoration: underline; }
.masthead-action {
  grid-column: 11 / -1; justify-self: end;
  font: 600 0.9375rem/1 var(--sans); font-stretch: 92%;
  padding: 10px 14px; border: 1px solid var(--ink); text-decoration: none;
}
.masthead-action:hover { background: var(--ink); color: var(--paper); }

/* Hero */
.hero .sec-body { padding-block: 72px 112px; }
h1 {
  grid-column: 1 / span 8;
  font-size: clamp(2.75rem, 1rem + 5.4vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.032em;
  margin-bottom: 56px;
}
.hero-text { grid-column: 1 / span 5; }
.lede { font-size: 1.25rem; line-height: 1.5; max-width: 32em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }
.secondary { font-size: 1.0625rem; }
.pending { margin-left: 6px; white-space: nowrap; }
.scope-line {
  display: flex; flex-wrap: wrap; gap: 6px 0; margin-top: 40px; padding-top: 14px;
  border-top: 1px solid var(--rule);
  font: 400 0.75rem/1.4 var(--mono); color: var(--ink-2);
}
.scope-line li:not(:last-child)::after { content: "/"; padding-inline: 10px; color: var(--rule-2); }

.btn {
  display: inline-flex; align-items: stretch;
  font: 600 1.0625rem/1 var(--sans); font-stretch: 92%; letter-spacing: -0.005em;
  color: var(--paper); background: var(--ink); border: 1px solid var(--ink);
  text-decoration: none;
}
.btn > span { padding: 17px 20px 16px; }
.btn-price { font: 500 0.9375rem/1.1 var(--mono); border-left: 1px solid color-mix(in srgb, var(--paper) 35%, transparent); }
.btn:hover { background: var(--paper); color: var(--ink); }
.btn:hover .btn-price { border-left-color: var(--rule-2); }

/* Finding record */
.record {
  grid-column: 6 / -1;
  grid-row: 2 / span 2;
  align-self: start;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 1rem;
}
.record-head {
  display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--ink); color: var(--ink);
}
.record-cat { padding: 16px 16px 0; }
.record-title {
  padding: 6px 16px 20px;
  font: 620 1.375rem/1.18 var(--sans); font-stretch: 90%; letter-spacing: -0.012em;
  text-wrap: balance;
}
.record-rows > div {
  display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: 12px;
  padding: 11px 16px; border-top: 1px solid var(--rule);
}
.record-rows > div.wide { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.record-rows > div.wide dt { line-height: 1.4; }
.record-rows dt { line-height: 1.9; }
.record-rows dd { line-height: 1.45; }
.record-rows dd.mono { font-size: 0.8125rem; line-height: 1.55; }
.code-line { display: block; white-space: pre-wrap; }
.result { display: block; }
.result + .result { margin-top: 4px; }
.result-key { display: inline-block; min-width: 5.5em; font-size: 0.75rem; color: var(--ink-2); }
.pass { color: var(--ship); font-weight: 500; }
.verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.verdict-note { font-size: 0.9375rem; color: var(--ink-2); }
.record figcaption {
  padding: 10px 16px; border-top: 1px solid var(--ink);
  font: 400 0.75rem/1.4 var(--mono); color: var(--ink-2);
}

/* Stamps: typographic, used sparingly */
.stamp {
  display: inline-block;
  padding: 5px 9px 4px;
  border: 2px solid currentColor;
  outline: 1px solid currentColor; outline-offset: 2px;
  font: 500 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em;
  transform: rotate(-1.5deg);
  margin: 3px;
}
.stamp-hold { color: var(--hold); }
.stamp-ship { color: var(--ship); transform: rotate(1deg); }

/* Report anatomy */
.anatomy { display: grid; grid-template-columns: subgrid; }
.part { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; }
.sheet {
  grid-column: 1 / span 6;
  padding: 22px 24px 24px;
  border-inline: 1px solid var(--ink);
  border-top: 1px solid var(--rule-2);
  background: var(--paper-2);
}
.part:first-child .sheet { border-top: 1px solid var(--ink); }
.part:last-child .sheet { border-bottom: 1px solid var(--ink); }
.note {
  grid-column: 7 / -1;
  padding: 22px 0 24px;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem; line-height: 1.5; color: var(--ink-2);
}
.note strong { color: var(--ink); font-weight: 600; }
.note-key {
  display: inline-block; width: 1.6rem; font-size: 0.75rem; font-weight: 500; color: var(--ink);
}
.sheet-tag { margin-bottom: 14px; }
.sheet-verdict { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sheet-verdict p { font: 620 1.375rem/1.2 var(--sans); font-stretch: 90%; letter-spacing: -0.01em; }
.sheet-meta { margin-top: 14px; font-size: 0.75rem; color: var(--ink-2); overflow-wrap: anywhere; }
.sheet-stamp { margin-top: 16px; }
.sheet-list { margin-top: 14px; font-size: 0.9375rem; }
.sheet-list li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 8px; padding: 6px 0; border-top: 1px solid var(--rule); }
.sheet-list .mono { padding-top: 3px; }

.code {
  overflow-x: auto;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--rule);
  font-size: 0.75rem; line-height: 1.65;
  tab-size: 2;
}
.code .c { color: var(--ink-2); }
.code .add, .code .del { display: inline-block; min-width: 100%; }
.code .add { background: color-mix(in srgb, var(--ink) 7%, transparent); font-weight: 500; }
.code .del { color: var(--ink-2); text-decoration: line-through; text-decoration-color: var(--rule-2); }

.mini { width: 100%; border-collapse: collapse; font-size: 0.875rem; line-height: 1.4; }
.mini th, .mini td { text-align: left; vertical-align: top; padding: 7px 12px 7px 0; border-top: 1px solid var(--rule); }
.mini thead th { border-top: 0; border-bottom: 1px solid var(--rule-2); padding-top: 0; }
.mini tbody tr:first-child > * { border-top: 0; }
.mini td.mono { font-size: 0.75rem; white-space: nowrap; }
.mini td:last-child, .mini th:last-child { padding-right: 0; }
.checks { margin-top: 14px; }
.checks th { font-weight: 400; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.table th, .table td { text-align: left; vertical-align: top; padding: 16px 20px 18px 0; border-bottom: 1px solid var(--rule); }
.table thead th { padding-top: 0; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.table tbody th { font-weight: 400; }
.table td:last-child, .table th:last-child { padding-right: 0; }
.table caption, .files caption { caption-side: top; text-align: left; padding-bottom: 10px; }

.labels-table th[scope="row"] { width: 24%; }
.labels-table td { width: 38%; }
.label-name { display: block; font: 620 1.125rem/1.25 var(--sans); font-stretch: 92%; }
.label-key { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--ink-2); }

.itp { font-size: 0.9375rem; }
.itp .itp-no { width: 3.5rem; font-size: 0.8125rem; }
.itp .itp-point { width: 4.5rem; text-align: center; padding-right: 0; }
.itp abbr { text-decoration: none; }
.itp tbody th { width: 34%; }
.act { display: block; margin-bottom: 4px; font: 620 1.0625rem/1.25 var(--sans); font-stretch: 92%; }
.itp tr.is-hold > * { border-bottom-color: var(--rule-2); }
.pt {
  display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem;
  border: 1px solid var(--rule-2); font: 500 0.8125rem/1 var(--mono); color: var(--ink-2);
}
.pt-hold { border: 2px solid var(--hold); color: var(--hold); }

.legend { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 20px; font-size: 0.875rem; color: var(--ink-2); }
.legend > div { display: flex; align-items: center; gap: 10px; }
.legend .pt { width: 1.5rem; height: 1.5rem; font-size: 0.75rem; }

.limits { margin-top: 64px; }
.limits-title { margin-bottom: 12px; }
.limits-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--ink); }
.limits-grid > div { padding: 12px 14px 14px; border-left: 1px solid var(--rule-2); }
.limits-grid > div:first-child { border-left: 0; }
.limits-grid dd { margin-top: 8px; font: 500 0.9375rem/1.3 var(--mono); }
.limits-note { margin-top: 14px; font-size: 0.9375rem; color: var(--ink-2); max-width: 46em; }

/* Two doors */
.door { padding-top: 8px; }
.door h3 { margin-bottom: 16px; }
.door-report { grid-column: 1 / span 3; padding-right: 8px; font-size: 1.0625rem; }
.door-report p + p { margin-top: 16px; }
.door-agent { grid-column: 4 / -1; }
.files { margin-top: 32px; font-size: 0.875rem; }
.files th { font-weight: 400; font-size: 0.75rem; white-space: nowrap; padding-top: 9px; }
.terminal pre {
  overflow-x: auto;
  padding: 18px 20px;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  font-size: 0.8125rem; line-height: 1.6;
}
.terminal .p { color: var(--ink-2); user-select: none; }
.terminal .o { color: var(--ink-2); }
.terminal figcaption { margin-top: 8px; font: 400 0.75rem/1.4 var(--mono); color: var(--ink-2); }
.door-tools { grid-column: 1 / span 5; margin-top: 64px; }
.tools { font-size: 0.9375rem; }
.tools th, .tools td { padding-block: 10px 11px; }
.tools tbody th.mono { font-size: 0.8125rem; white-space: nowrap; }
.tools td:last-child { color: var(--ink-2); }
.door-rules {
  grid-column: 6 / -1; margin-top: 64px; padding-top: 30px;
  counter-reset: rule; font-size: 0.9375rem; line-height: 1.5;
}
.door-rules li { counter-increment: rule; display: grid; grid-template-columns: 2rem minmax(0, 1fr); padding: 12px 0 14px; border-top: 1px solid var(--rule); }
.door-rules li:first-child { border-top: 1px solid var(--ink); }
.door-rules li::before { content: counter(rule, decimal-leading-zero); padding-top: 4px; font: 400 0.6875rem/1 var(--mono); color: var(--ink-2); }
.door-rules strong { display: block; margin-bottom: 2px; font: 620 1.0625rem/1.25 var(--sans); font-stretch: 92%; }

/* Exclusion clauses */
.clauses { grid-column: 1 / span 6; }
.clauses li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); padding: 16px 0 18px; border-top: 1px solid var(--rule); }
.clauses li:first-child { border-top: 1px solid var(--ink); }
.clauses li:last-child { border-bottom: 1px solid var(--rule); }
.clause-no { padding-top: 5px; font-size: 0.75rem; color: var(--ink-2); }
.clauses strong { font: 620 1.125rem/1 var(--sans); font-stretch: 92%; }
.ship-wording { grid-column: 7 / -1; align-self: start; padding: 20px 20px 18px; border: 1px solid var(--ink); }
.ship-wording blockquote { margin: 16px 0 0; }
.ship-wording blockquote p { font: 620 1.375rem/1.2 var(--sans); font-stretch: 90%; letter-spacing: -0.01em; }
.ship-wording figcaption { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--rule); font-size: 0.875rem; line-height: 1.45; color: var(--ink-2); }

/* Your code */
.custody { display: grid; grid-template-columns: subgrid; }
.custody > div { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; padding: 20px 0 24px; border-top: 1px solid var(--rule); }
.custody > div:first-child { border-top: 1px solid var(--ink); }
.custody > div:last-child { border-bottom: 1px solid var(--rule); }
.custody dt { grid-column: 1 / span 2; padding-top: 5px; }
.custody dd { grid-column: 3 / span 6; max-width: 40em; }
.custody dd > * + * { margin-top: 16px; }
.vendors, .schedule { font-size: 1rem; }
.vendors th { width: 8rem; font-weight: 400; }
.vendors tr > *, .schedule tbody tr > * { padding-block: 9px; border-top: 1px solid var(--rule); }
.vendors tr:last-child > *, .schedule tr:last-child > * { border-bottom: 1px solid var(--rule); }
.schedule td.mono { font-size: 0.8125rem; padding-top: 11px; }

/* Rate card */
.rates th[scope="row"] { width: 24%; font: 620 1.125rem/1.3 var(--sans); font-stretch: 92%; }
.rates td.num { width: 13%; font-size: 1.0625rem; padding-right: 32px; white-space: nowrap; }
.price-alt { display: block; margin-top: 4px; font-size: 0.75rem; color: var(--ink-2); }
.rates td:last-child { width: 16%; }
.status-open { color: var(--ink); font-weight: 500; }

/* Questions */
.faq { display: grid; grid-template-columns: subgrid; }
.faq > div {
  display: grid; grid-template-columns: subgrid; grid-column: 1 / -1;
  padding: 22px 0 26px; border-top: 1px solid var(--rule);
}
.faq > div:last-child { border-bottom: 1px solid var(--rule); }
.faq dt { grid-column: 1 / span 3; font: 620 1.1875rem/1.3 var(--sans); font-stretch: 92%; padding-right: 12px; }
.faq dd { grid-column: 4 / span 6; max-width: 38em; }

/* Close */
.close .sec-body { padding-bottom: 96px; }
.close h2 { margin-bottom: 24px; }
.close-text { grid-column: 1 / span 5; }
.close-text p { max-width: 34em; margin-bottom: 32px; }
.close-send { grid-column: 6 / -1; align-self: end; }
.close-send-title { margin-bottom: 8px; }
.close-send ol { counter-reset: send; font-size: 0.9375rem; line-height: 1.45; }
.close-send li { counter-increment: send; display: grid; grid-template-columns: 2rem minmax(0, 1fr); padding: 8px 0; border-top: 1px solid var(--rule); }
.close-send li:first-child { border-top: 1px solid var(--ink); }
.close-send li::before { content: counter(send); font: 400 0.75rem/1.9 var(--mono); color: var(--ink-2); }
.small-print { margin-top: 80px; padding-top: 14px; border-top: 1px solid var(--rule); font: 400 0.75rem/1.5 var(--mono); color: var(--ink-2); }
.small-print p { max-width: 70em; }

.colophon { border-top: 1px solid var(--rule); }
.colophon-inner {
  padding: 24px var(--pad) 40px;
  display: flex; flex-wrap: wrap; gap: 6px 32px;
  font: 400 0.75rem/1.5 var(--mono); color: var(--ink-2);
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .masthead-action, .nav a { transition: background-color 120ms linear, color 120ms linear; }
}

/* Tablet */
@media (max-width: 1100px) {
  :root { --pad: 28px; --gap: 20px; }
  .sec-margin { grid-column: 1 / span 2; }
  .sec-body { grid-column: 3 / -1; }
  .wordmark { grid-column: 1 / span 2; }
  .nav { grid-column: 3 / span 8; gap: 6px 16px; }
  h1 { grid-column: 1 / -1; }
  .hero-text { grid-column: 1 / span 10; margin-bottom: 48px; }
  .record { grid-column: 1 / span 8; grid-row: auto; }
  .sheet { grid-column: 1 / span 6; }
  .note { grid-column: 7 / -1; }
  .door-report { grid-column: 1 / -1; margin-bottom: 40px; }
  .door-agent, .door-tools, .door-rules { grid-column: 1 / -1; }
  .door-rules { margin-top: 48px; padding-top: 0; }
  .clauses { grid-column: 1 / span 7; }
  .ship-wording { grid-column: 1 / span 6; margin-top: 40px; }
  .faq dt { grid-column: 1 / span 3; }
  .faq dd { grid-column: 4 / -1; }
  .custody dd { grid-column: 3 / -1; }
  .close-text { grid-column: 1 / span 6; }
  .close-send { grid-column: 1 / span 6; margin-top: 48px; }
}

/* Phone */
@media (max-width: 760px) {
  :root { --pad: 16px; }
  body { font-size: 1.0625rem; }
  .page { border-inline: 0; }
  .sec, .masthead-inner, .sec-body, .part, .anatomy, .custody, .custody > div, .faq, .faq > div { display: block; }
  .masthead-inner { display: flex; justify-content: space-between; }
  .nav { display: none; }
  .sec-margin { padding-block: 24px 0; }
  .margin-stick { position: static; display: flex; gap: 12px; align-items: baseline; }
  .margin-note { display: none; }
  .sec-body { padding-block: 20px 72px; }
  .hero .sec-body { padding-block: 24px 64px; }
  h1 { margin-bottom: 32px; }
  h2 { margin-bottom: 20px; }
  .intro, .rule { margin-bottom: 32px; }
  .lede { font-size: 1.125rem; }
  .hero-text { margin-bottom: 40px; }
  .record-rows > div { grid-template-columns: 1fr; gap: 4px; }
  .record-rows dt { line-height: 1.4; }
  .sheet { padding: 18px 16px 20px; }
  .note { padding: 14px 0 28px; border-top: 0; }
  .door-report { margin-bottom: 32px; }
  .door-tools, .door-rules { margin-top: 40px; }
  .ship-wording { margin-top: 32px; }
  .close-send { margin-top: 40px; }
  .small-print { margin-top: 48px; }
  .custody dt { margin-bottom: 8px; }
  .limits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .limits-grid > div { border-left: 0; border-top: 1px solid var(--rule-2); }
  .limits-grid > div:nth-child(even) { border-left: 1px solid var(--rule-2); }
  .limits-grid > div:nth-child(-n+2) { border-top: 0; }
  .limits-grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .faq dt { margin-bottom: 8px; }
  .colophon-inner { display: block; }

  .findings thead { display: none; }
  .findings tr { display: grid; grid-template-columns: auto auto 1fr; column-gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule); }
  .findings tbody tr:first-child { border-top: 0; }
  .findings td { padding: 0; border: 0; }
  .findings td:last-child { grid-column: 1 / -1; margin-top: 2px; }

  /* Reflowed tables: each row becomes a block with labelled cells. */
  .reflow thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .reflow, .reflow tbody, .reflow tr, .reflow th, .reflow td { display: block; width: auto !important; }
  .reflow tr { padding: 16px 0 18px; border-bottom: 1px solid var(--rule); }
  .reflow tbody tr:first-child { border-top: 1px solid var(--ink); }
  .reflow th, .reflow td { padding: 0; border: 0; text-align: left !important; }
  .reflow td + td, .reflow th + td { margin-top: 10px; }
  .reflow td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font: 400 0.6875rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-2);
  }
  .itp tr { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; column-gap: 12px; }
  .itp .itp-no { grid-column: 1; grid-row: 1; padding-top: 2px; }
  .itp tbody th { grid-column: 2; grid-row: 1; }
  .itp .itp-point { grid-column: 3; grid-row: 1; }
  .itp td[data-label="Acceptance"], .itp td[data-label="Record"] { grid-column: 2 / -1; }
  .itp .itp-point[data-label]::before { content: none; }
  .rates tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
  .rates th[scope="row"] { grid-column: 1; }
  .rates td.num { grid-column: 2; grid-row: 1; margin-top: 0; padding: 0; text-align: right !important; }
  .rates td.num::before { content: none !important; }
  .rates td:not(.num) { grid-column: 1 / -1; }
}
