:root {
  --ink: #07152f;
  --muted: #526078;
  --quiet: #718096;
  --line: #dbe2ec;
  --line-strong: #b9c5d6;
  --paper: #ffffff;
  --soft: #f7f9fc;
  --blue: #1557d6;
  --blue-dark: #0d3fa6;
  --blue-soft: #edf3ff;
  --green: #08783f;
  --green-dark: #055c30;
  --green-soft: #edf9f2;
  --amber: #c86b00;
  --amber-soft: #fff8e9;
  --red: #b42318;
  --red-soft: #fff2f0;
  --shadow: 0 18px 55px rgba(7, 21, 47, 0.08);
  --radius: 18px;
  --measure: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI Variable", "Segoe UI", Inter, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(7, 21, 47, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 21, 47, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

a:hover {
  color: var(--blue-dark);
}

img {
  max-width: 100%;
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid rgba(21, 87, 214, 0.35);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

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

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  height: 3px;
  pointer-events: none;
}

.progress__bar {
  width: 0;
  height: 100%;
  background: var(--blue);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(185, 197, 214, 0.72);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px) saturate(140%);
}

.header-inner,
.wrap {
  width: min(var(--measure), calc(100% - 48px));
  margin-inline: auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.brand-back svg {
  width: 19px;
  height: 19px;
}

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

.top-nav a {
  padding: 8px 11px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--ink);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.menu-button svg {
  width: 21px;
  height: 21px;
}

.hero {
  padding: 76px 0 52px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.98fr);
  align-items: center;
  gap: 52px;
}

.hero-copy {
  padding-top: 0;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(46px, 6.2vw, 82px);
  font-weight: 850;
  letter-spacing: -0.052em;
  line-height: 0.98;
}

.hero h1 .scanner-word {
  color: var(--blue);
}

.hero h1 .inspector-word {
  color: var(--green);
}

.hero-lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.48;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--blue);
  color: var(--blue);
}

.button--blue {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.button--blue:hover {
  background: var(--blue-dark);
  color: #fff;
}

.button--green {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.button--green:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #fff;
}

.button svg {
  width: 18px;
  height: 18px;
}

.hero-figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-figure picture,
.lecture-visual picture,
.offline-page .hero__media picture {
  display: block;
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-figure figcaption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--quiet);
  font-size: 11px;
}

.lecture-visual {
  margin: 34px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.lecture-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.lecture-visual figcaption {
  padding: 13px 18px 15px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-size: 13px;
}

.visual-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.visual-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}

.visual-note p {
  margin: 10px 0 0;
  color: var(--muted);
}

.priority-pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 32px 0;
}

.priority-node {
  position: relative;
  min-height: 172px;
  padding: 21px 18px;
  border: 1px solid #c8d8f7;
  border-radius: 16px;
  background: var(--paper);
}

.priority-node:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: -19px;
  z-index: 2;
  width: 26px;
  transform: translateY(-50%);
  color: var(--amber);
  font-size: 23px;
  font-weight: 850;
  text-align: center;
}

.priority-node strong {
  display: block;
  color: var(--blue-dark);
  font-size: 20px;
}

.priority-node span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.priority-node:last-child {
  border-color: #c8e4d3;
  background: var(--green-soft);
}

.priority-node:last-child strong {
  color: var(--green-dark);
}

.fstec-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
}

.measure-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid #c8e4d3;
  border-top: 5px solid var(--green);
  border-radius: 16px;
  background: var(--paper);
}

.measure-code {
  display: inline-flex;
  min-width: 72px;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 14px;
  font-weight: 850;
}

.measure-card h3 {
  margin-top: 15px;
  font-size: 20px;
}

.measure-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.evidence-chain {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--paper);
}

.evidence-step {
  position: relative;
  padding: 22px 18px;
}

.evidence-step + .evidence-step {
  border-left: 1px solid var(--line);
}

.evidence-step strong {
  display: block;
  color: var(--green-dark);
  font-size: 17px;
}

.evidence-step span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
  border-block: 1px solid var(--line);
}

.metric {
  position: relative;
  padding: 22px 26px;
}

.metric + .metric {
  border-left: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 82px 0;
}

.section--soft {
  border-block: 1px solid var(--line);
  background: var(--soft);
}

.section--blue {
  border-block: 1px solid #cfdbf5;
  background: var(--blue-soft);
}

.section--green {
  border-block: 1px solid #cfe7d9;
  background: var(--green-soft);
}

.section-head {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  margin-bottom: 38px;
}

.section-index {
  padding-top: 8px;
  color: var(--quiet);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  letter-spacing: 0.06em;
}

.section-index::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  margin-top: 10px;
  background: var(--line-strong);
}

.section h2 {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 830;
  letter-spacing: -0.043em;
  line-height: 1.06;
}

.section h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.28;
}

.section-intro {
  max-width: 860px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.lane-grid,
.day-grid,
.stand-grid,
.source-grid,
.topic-grid {
  display: grid;
  gap: 22px;
}

.lane-grid,
.day-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lane {
  position: relative;
  min-width: 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(7, 21, 47, 0.05);
}

.lane--green {
  border-top-color: var(--green);
}

.lane-kicker,
.micro-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lane--green .lane-kicker,
.green-text {
  color: var(--green);
}

.lane h3 {
  margin-top: 9px;
  font-size: 30px;
  letter-spacing: -0.025em;
}

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

.clean-list,
.check-list,
.source-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.clean-list li,
.check-list li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.clean-list li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.lane--green .clean-list li::before,
.check-list--green li::before {
  background: var(--green);
}

.day {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.day-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.day--scanner .day-head {
  color: var(--blue-dark);
  background: var(--blue-soft);
}

.day--inspector .day-head {
  color: var(--green-dark);
  background: var(--green-soft);
}

.day-head strong {
  font-size: 26px;
  letter-spacing: -0.025em;
}

.day-head span {
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
}

.day-block {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 22px 26px;
}

.day-block + .day-block {
  border-top: 1px solid var(--line);
}

.duration {
  color: var(--quiet);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
}

.day-block p,
.day-block ul {
  margin: 7px 0 0;
  color: var(--muted);
}

.day-block ul {
  padding-left: 20px;
}

.day-block li + li {
  margin-top: 6px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 980px;
  margin: 8px auto 0;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 31px;
  bottom: 31px;
  left: 31px;
  width: 1px;
  background: var(--line-strong);
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
}

.timeline-number {
  z-index: 1;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue);
  font-weight: 850;
}

.timeline--green .timeline-number {
  border-color: var(--green);
  color: var(--green);
}

.timeline-content {
  padding: 3px 0 17px;
  border-bottom: 1px solid var(--line);
}

.timeline-content p {
  margin: 6px 0 0;
  color: var(--muted);
}

.topic-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.topic,
.stand,
.source-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}

.source-card {
  min-width: 0;
}

.topic h3,
.stand h3,
.source-card h3 {
  font-size: 19px;
}

.topic p,
.stand p,
.source-card p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.topic-code {
  display: inline-block;
  margin-bottom: 13px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
  color: var(--ink);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
}

.stand-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stand-number {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 17px;
  place-items: center;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-weight: 800;
}

.stand:nth-child(2n) .stand-number {
  background: var(--green-soft);
  color: var(--green);
}

.callout {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 17px;
  margin: 28px 0;
  padding: 22px;
  border: 1px solid #efd294;
  border-left: 5px solid var(--amber);
  border-radius: 14px;
  background: var(--amber-soft);
}

.callout--red {
  border-color: #f0c5c1;
  border-left-color: var(--red);
  background: var(--red-soft);
}

.callout--blue {
  border-color: #c8d8f7;
  border-left-color: var(--blue);
  background: var(--blue-soft);
}

.callout--green {
  border-color: #c8e4d3;
  border-left-color: var(--green);
  background: var(--green-soft);
}

.callout-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--amber);
  font-weight: 850;
}

.callout--red .callout-icon { color: var(--red); }
.callout--blue .callout-icon { color: var(--blue); }
.callout--green .callout-icon { color: var(--green); }

.callout h3 {
  font-size: 19px;
}

.callout p {
  margin: 5px 0 0;
  color: var(--muted);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  contain: inline-size;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15px;
}

th,
td {
  padding: 15px 17px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

.version-label {
  display: inline-block;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

code,
.command {
  font-family: "Cascadia Mono", Consolas, monospace;
}

code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--soft);
  color: var(--ink);
  font-size: 0.88em;
}

.command {
  overflow-x: auto;
  max-width: 100%;
  margin: 16px 0;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  background: #f6f8fb;
  color: #12213b;
  font-size: 14px;
  white-space: pre;
}

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

.source-list li {
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.source-list li:first-child {
  border-top: 0;
}

.source-list a {
  font-weight: 680;
}

.footnote {
  color: var(--quiet);
  font-size: 14px;
}

.site-footer {
  padding: 54px 0 30px;
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: #e8edf6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 42px;
}

.site-footer h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
}

.site-footer p {
  max-width: 720px;
  color: #b9c5d6;
}

.site-footer a {
  color: #dbe8ff;
}

.footer-links {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(219, 226, 236, 0.2);
  color: #91a0b8;
  font-size: 13px;
}

/* Autonomous landing pages bundled with the Markdown archives. */
.offline-page .site-header__inner {
  display: flex;
  width: min(var(--measure), calc(100% - 48px));
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-inline: auto;
}

.offline-page .site-name,
.offline-page .site-mode {
  margin: 0;
}

.offline-page .site-name {
  color: var(--ink);
  font-weight: 800;
}

.offline-page .site-mode {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.offline-page .hero {
  display: grid;
  width: min(var(--measure), calc(100% - 48px));
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 48px;
  margin-inline: auto;
  padding: 72px 0 62px;
}

.offline-page .hero__content {
  min-width: 0;
}

.offline-page .context-label,
.offline-page .section-kicker {
  margin: 0 0 12px;
  color: var(--blue);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.offline-page .hero__lead {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.offline-page .hero__media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.offline-page .hero__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.offline-page .notice,
.offline-page .section,
.offline-page .route,
.offline-page .safety {
  width: min(var(--measure), calc(100% - 48px));
  margin-inline: auto;
}

.offline-page .notice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid #c8d8f7;
  border-left: 5px solid var(--blue);
  border-radius: 16px;
  background: var(--blue-soft);
}

.offline-page .notice > div {
  padding: 24px 26px;
}

.offline-page .notice > div + div {
  border-left: 1px solid #c8d8f7;
}

.offline-page .notice h2 {
  margin: 0;
  font-size: 21px;
}

.offline-page .notice p {
  margin: 7px 0 0;
  color: var(--muted);
}

.offline-page .section,
.offline-page .route {
  padding: 72px 0;
}

.offline-page .section--alternate {
  padding-inline: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--soft);
}

.offline-page .section-heading {
  max-width: 850px;
  margin-bottom: 30px;
}

.offline-page .section-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 52px);
  letter-spacing: -0.038em;
  line-height: 1.08;
}

.offline-page .section-heading > p:last-child {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.offline-page .document-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.offline-page .document-card {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
}

.offline-page .document-card--accent {
  border-color: #c8e4d3;
  background: var(--green-soft);
}

.offline-page .document-card__number {
  display: grid;
  min-width: 52px;
  height: 42px;
  place-items: center;
  margin: 0;
  padding-inline: 7px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 850;
}

.offline-page .document-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

.offline-page .document-card p:not(.document-card__number) {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.offline-page .route-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

.offline-page .route-list li {
  padding: 19px 21px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--muted);
}

.offline-page .route-list strong {
  color: var(--ink);
}

.offline-page .safety {
  margin-bottom: 72px;
  padding: 28px 30px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
}

.offline-page .safety h2 {
  margin: 0;
  font-size: 26px;
}

.offline-page .safety p {
  margin: 8px 0 0;
  color: #c5d0e0;
}

.offline-page .site-footer p {
  width: min(var(--measure), calc(100% - 48px));
  margin: 0 auto;
}

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 850px;
  }

  .hero-figure {
    max-width: 820px;
  }

  .stand-grid,
  .topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .priority-pipeline,
  .fstec-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .priority-node:not(:last-child)::after {
    display: none;
  }

  .evidence-chain {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .evidence-step + .evidence-step {
    border-left: 0;
  }

  .evidence-step:nth-child(even) {
    border-left: 1px solid var(--line);
  }

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

  .offline-page .hero {
    grid-template-columns: 1fr;
  }

  .offline-page .hero__content {
    max-width: 850px;
  }

  .offline-page .hero__media {
    max-width: 860px;
  }
}

@media (max-width: 820px) {
  .header-inner,
  .wrap {
    width: min(100% - 32px, var(--measure));
  }

  .menu-button {
    display: grid;
  }

  .top-nav {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .top-nav.is-open {
    display: flex;
  }

  .top-nav a {
    padding: 11px 13px;
  }

  .hero {
    padding-top: 52px;
  }

  .hero h1 {
    font-size: clamp(43px, 11vw, 66px);
  }

  .metrics,
  .lane-grid,
  .day-grid,
  .source-grid,
  .footer-grid,
  .visual-split {
    grid-template-columns: 1fr;
  }

  .metric + .metric {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .section-index {
    width: 92px;
  }

  .offline-page .site-header__inner,
  .offline-page .hero,
  .offline-page .notice,
  .offline-page .section,
  .offline-page .route,
  .offline-page .safety,
  .offline-page .site-footer p {
    width: min(100% - 32px, var(--measure));
  }

  .offline-page .notice,
  .offline-page .document-list,
  .offline-page .route-list {
    grid-template-columns: 1fr;
  }

  .offline-page .notice > div + div {
    border-top: 1px solid #c8d8f7;
    border-left: 0;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  .brand-back span {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-copy {
    padding-top: 0;
  }

  .hero-lead,
  .section-intro {
    font-size: 18px;
  }

  .section {
    padding: 60px 0;
  }

  .stand-grid,
  .topic-grid,
  .priority-pipeline,
  .fstec-map,
  .evidence-chain {
    grid-template-columns: 1fr;
  }

  .priority-node,
  .measure-card {
    min-height: 0;
  }

  .evidence-step:nth-child(even) {
    border-left: 0;
  }

  .evidence-step + .evidence-step {
    border-top: 1px solid var(--line);
  }

  .lane,
  .topic,
  .stand,
  .source-card {
    padding: 20px;
  }

  .day-block {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .day-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .callout {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    flex-direction: column;
  }

  .offline-page .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-block: 13px;
  }

  .offline-page .hero {
    gap: 30px;
    padding: 48px 0;
  }

  .offline-page .hero__lead,
  .offline-page .section-heading > p:last-child {
    font-size: 17px;
  }

  .offline-page .section,
  .offline-page .route {
    padding: 54px 0;
  }

  .offline-page .section--alternate {
    padding-inline: 20px;
  }

  .offline-page .document-card {
    grid-template-columns: 1fr;
  }
}

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

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

@media print {
  .site-header,
  .progress,
  .hero-actions,
  .button-row {
    display: none !important;
  }

  body::before {
    display: none;
  }

  .section {
    padding: 30px 0;
  }

  .hero {
    padding: 30px 0;
  }

  a {
    color: inherit;
  }
}
