/* GENBUNET — 中小企業のUTM選び
   色・書体・余白はここで一元管理する */
:root {
  --ink: #10231e;
  --ink-soft: #40524b;
  --green: #0b6b4d;
  --green-deep: #084a36;
  --paper: #ffffff;
  --surface: #f2f5f3;
  --line: #d5ddd8;
  --line-strong: #a9b8b0;
  --amber: #f2b33d;
  --amber-ink: #7a4f00;
  --amber-bg: #fdf6e3;
  --red: #b83a2b;
  --lamp-ok: #1fa971;
  --font: "IBM Plex Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "YuGothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
  --wrap: 1120px;
  --measure: 43em;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 0;
  overflow-wrap: anywhere;
  line-break: strict;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--green-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; font-weight: 700; letter-spacing: .01em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin: .35em 0; }
strong { font-weight: 700; }
small { font-size: .8125rem; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -80px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 300; border-radius: 4px; }
.skip:focus { top: 8px; color: #fff; }

/* ───── ヘッダー ───── */
.site-head { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand svg { width: 30px; height: 30px; display: block; }
.brand-name { font-weight: 700; font-size: 1.125rem; letter-spacing: .06em; line-height: 1.2; }
.brand-tag { display: block; font-size: .6875rem; font-weight: 500; letter-spacing: .04em; color: var(--ink-soft); }
.gnav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-right: -10px; }
.gnav::-webkit-scrollbar { display: none; }
.gnav a { padding: 8px 10px; font-size: .875rem; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.gnav a:hover { color: var(--green); }
.gnav a[aria-current] { border-bottom-color: var(--green); color: var(--green-deep); font-weight: 700; }

/* ───── ボタン ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; border: 1.5px solid var(--green); border-radius: 6px; background: var(--green); color: #fff; font: inherit; font-size: .9375rem; font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--green-deep); }
.btn--ghost:hover { background: var(--surface); color: var(--green-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ───── ヒーロー ───── */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: 48px; align-items: center; padding-block: 64px 56px; }
.hero h1 { font-size: clamp(2rem, 4.2vw, 3.125rem); line-height: 1.28; letter-spacing: .01em; margin-bottom: 22px; }
.hero-lede { font-size: 1.0625rem; color: var(--ink-soft); max-width: 31em; margin-bottom: 30px; }
.hero-fig { margin: 0; }
.hero-fig svg { display: block; width: 100%; }
.hero-fig figcaption { font-size: .8125rem; color: var(--ink-soft); margin-top: 10px; }

/* ヒーロー図：通信がUTMを通過／遮断される */
.gate text { font-family: var(--font); }
.pkt { animation-duration: 5.2s; animation-iteration-count: infinite; animation-timing-function: linear; }
.pkt-pass { animation-name: pass; }
.pkt-stop { animation-name: stop; }
.pkt-out  { animation-name: out; }
.pkt-d1 { animation-delay: -1.7s; }
.pkt-d2 { animation-delay: -3.4s; }
@keyframes pass { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { transform: translateX(420px); opacity: 0; } }
@keyframes stop { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 38% { transform: translateX(158px); opacity: 1; } 52% { transform: translateX(158px); opacity: 1; } 60%, 100% { transform: translateX(158px); opacity: 0; } }
@keyframes out  { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 38% { transform: translateX(-158px); opacity: 1; } 52% { transform: translateX(-158px); opacity: 1; } 60%, 100% { transform: translateX(-158px); opacity: 0; } }
.blk { animation: blk 5.2s infinite linear; opacity: 0; }
@keyframes blk { 0%, 36% { opacity: 0; } 40%, 56% { opacity: 1; } 64%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pkt, .blk { animation: none; }
  .pkt-pass { transform: translateX(300px); }
  .pkt-pass.pkt-d1 { transform: translateX(90px); }
  .pkt-pass.pkt-d2 { transform: translateX(400px); }
  .pkt-stop { transform: translateX(158px); }
  .pkt-out { transform: translateX(-158px); }
  .pkt-stop.pkt-d1, .pkt-stop.pkt-d2, .pkt-out.pkt-d1, .pkt-out.pkt-d2 { display: none; }
  .blk { opacity: 1; }
}

/* ───── 目的別の入口 ───── */
.routes { border-bottom: 1px solid var(--line); }
.routes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.routes li { margin: 0; border-left: 1px solid var(--line); }
.routes li:first-child { border-left: 0; }
.routes a { display: block; height: 100%; padding: 22px 22px 24px; color: var(--ink); text-decoration: none; }
.routes a:hover { background: var(--surface); }
.routes b { display: block; font-size: 1rem; line-height: 1.5; margin-bottom: 4px; color: var(--green-deep); }
.routes a:hover b { text-decoration: underline; text-underline-offset: .22em; }
.routes span { display: block; font-size: .8125rem; line-height: 1.65; color: var(--ink-soft); }

/* ───── セクション ───── */
.sec { padding-block: 72px; }
.sec--tint { background: var(--surface); border-block: 1px solid var(--line); }
.sec-title { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: 14px; }
.sec-lede { color: var(--ink-soft); max-width: var(--measure); margin-bottom: 34px; }
.sec-foot { margin-top: 30px; }

/* 根拠となる統計の一文 */
.evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); margin-bottom: 14px; }
.evidence > div { padding: 24px 28px; }
.evidence > div + div { border-left: 1px solid var(--line); }
.evidence .num { font-size: 2.25rem; font-weight: 700; line-height: 1.2; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.evidence .num small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); margin-left: 4px; }
.evidence p { margin: 6px 0 0; font-size: .9375rem; line-height: 1.7; }
.cite { font-size: .8125rem; color: var(--ink-soft); }

/* 3列の項目（カードではなく、上罫線つきの段組） */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.trio--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trio--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.trio > * { border-top: 2px solid var(--ink); padding-top: 18px; }
.trio h3 { font-size: 1.0625rem; margin-bottom: 10px; }
.trio p { font-size: .9375rem; color: var(--ink-soft); margin-bottom: .8em; }
.trio p:last-child { margin-bottom: 0; }
.trio .check { color: var(--ink); font-size: .875rem; padding-left: 14px; border-left: 3px solid var(--amber); }
.trio .check b { display: block; font-size: .8125rem; color: var(--amber-ink); }

/* 手順（実際に順序がある内容にだけ使う） */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); overflow: hidden; }
.steps li { counter-increment: step; margin: 0; padding: 24px 22px 26px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .875rem; font-weight: 700; margin-bottom: 12px; }
.steps h3 { font-size: 1rem; margin-bottom: 8px; }
.steps p { font-size: .875rem; color: var(--ink-soft); margin: 0; line-height: 1.75; }

/* ───── 表 ───── */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); margin-bottom: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9063rem; line-height: 1.7; }
.tbl--wide { min-width: 860px; }
.tbl caption { caption-side: top; text-align: left; padding: 14px 18px; font-weight: 700; font-size: .9375rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.tbl th, .tbl td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { font-size: .8125rem; font-weight: 700; color: var(--ink-soft); background: var(--paper); border-bottom: 2px solid var(--ink); white-space: nowrap; }
.tbl tbody th { font-weight: 700; min-width: 9.5em; }
.tbl tbody th small { display: block; font-weight: 400; color: var(--ink-soft); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl td ul { margin: 0; padding-left: 1.1em; }
.doc-body .tbl--wide { min-width: 600px; }
.tbl-note { font-size: .8125rem; color: var(--ink-soft); max-width: 60em; }

/* 状態ランプ：機器のLEDになぞらえて「標準／条件付き／なし」を示す */
.lamp { display: inline-flex; align-items: baseline; gap: 7px; }
.lamp::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; transform: translateY(-1px); background: var(--line-strong); }
.lamp--ok::before { background: var(--lamp-ok); box-shadow: 0 0 0 3px rgba(31,169,113,.16); }
.lamp--warn::before { background: var(--amber); box-shadow: 0 0 0 3px rgba(242,179,61,.22); }
.lamp--stop::before { background: var(--red); box-shadow: 0 0 0 3px rgba(184,58,43,.15); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .8125rem; color: var(--ink-soft); margin: 0 0 12px; padding: 0; list-style: none; }
.legend li { margin: 0; }

/* ───── 記事一覧 ───── */
.postlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; border-top: 2px solid var(--ink); }
.postlist li { margin: 0; border-bottom: 1px solid var(--line); }
.postlist a { display: block; padding: 20px 0 22px; color: var(--ink); text-decoration: none; }
.postlist b { display: block; font-size: 1.0313rem; line-height: 1.55; margin-bottom: 6px; }
.postlist a:hover b { color: var(--green); text-decoration: underline; text-underline-offset: .22em; }
.postlist span { display: block; font-size: .875rem; color: var(--ink-soft); line-height: 1.7; }
.postlist--1 { grid-template-columns: 1fr; }

/* ───── FAQ ───── */
.faq { max-width: 52em; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 700; position: relative; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq summary:hover { color: var(--green-deep); }
.faq .ans { padding: 0 0 20px; color: var(--ink-soft); font-size: .9375rem; }
.faq .ans p:last-child { margin-bottom: 0; }

/* ───── 下層ページ ───── */
.crumbs { font-size: .8125rem; color: var(--ink-soft); padding-top: 22px; margin-bottom: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 8px; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs a { color: var(--ink-soft); }
.doc-head { padding-block: 26px 40px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); line-height: 1.38; max-width: 22em; margin-bottom: 16px; }
.doc-head .lede { font-size: 1.0625rem; color: var(--ink-soft); max-width: var(--measure); margin: 0; }
.doc-meta { font-size: .8125rem; color: var(--ink-soft); margin: 18px 0 0; }
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 64px; padding-block: 48px 80px; align-items: start; }
.doc--full { grid-template-columns: minmax(0, 1fr); }
.doc-body { min-width: 0; }
.doc-body > * { max-width: var(--measure); }
.doc-body > .tbl-wrap, .doc-body > .trio, .doc-body > .steps, .doc-body > .sim, .doc-body > .fig, .doc-body > .postlist, .doc-body > .evidence, .doc-body > .wide { max-width: none; }
.doc-body h2 { font-size: 1.5rem; margin: 2.6em 0 .8em; padding-top: .9em; border-top: 2px solid var(--ink); }
.doc-body > h2:first-child, #checklist > h2:first-child { margin-top: 0; }
#checklist > * { max-width: var(--measure); }
.doc-body h3 { font-size: 1.125rem; margin: 2em 0 .6em; }
.doc-body .trio h3, .doc-body .steps h3 { margin-top: 0; }
.doc-body li { margin: .5em 0; }
.doc-body dl { margin: 0 0 1.4em; }
.doc-body dt { font-weight: 700; margin-top: 1.1em; }
.doc-body dd { margin: .2em 0 0; color: var(--ink-soft); }

.toc { position: sticky; top: 88px; font-size: .875rem; border-left: 1px solid var(--line); padding-left: 20px; }
.toc-title { font-weight: 700; font-size: .8125rem; color: var(--ink-soft); margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: block; padding: 6px 0; color: var(--ink); text-decoration: none; line-height: 1.55; }
.toc a:hover { color: var(--green); text-decoration: underline; }

.keypoints { background: var(--surface); border-radius: 8px; padding: 22px 26px; margin-bottom: 2.2em; }
.keypoints h2 { font-size: .9375rem; margin: 0 0 8px; padding: 0; border: 0; }
.keypoints ul { margin: 0; padding-left: 1.2em; }
.keypoints li { margin: .3em 0; }
.note { border-left: 3px solid var(--amber); background: var(--amber-bg); padding: 16px 20px; margin: 1.6em 0; font-size: .9375rem; border-radius: 0 6px 6px 0; }
.note > :last-child { margin-bottom: 0; }
.note b:first-child { color: var(--amber-ink); }
.sources { margin-top: 3em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: .8438rem; color: var(--ink-soft); }
.sources h2 { font-size: .9375rem; margin: 0 0 .6em; padding: 0; border: 0; color: var(--ink); }
.sources ul { padding-left: 1.2em; margin: 0; }
.sources li { margin: .3em 0; }
.fig { margin: 2em 0; border: 1px solid var(--line); border-radius: 8px; padding: 24px; background: var(--paper); }
.fig { overflow-x: auto; }
.fig svg { display: block; width: 100%; min-width: 620px; }
.fig svg text { font-family: var(--font); }
.fig figcaption { font-size: .8125rem; color: var(--ink-soft); margin-top: 14px; }
.related { background: var(--surface); border-top: 1px solid var(--line); padding-block: 56px; }
.related h2 { font-size: 1.25rem; margin-bottom: 18px; }
.next-step { margin-top: 3em; padding: 26px 28px; border: 1.5px solid var(--ink); border-radius: 8px; max-width: var(--measure); }
.next-step h2 { font-size: 1.0625rem; margin: 0 0 6px; padding: 0; border: 0; }
.next-step p { color: var(--ink-soft); font-size: .9375rem; }
.next-step .btn-row { margin-top: 4px; }

/* 用語集 */
.gloss-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 2em; padding: 0; list-style: none; }
.gloss-nav li { margin: 0; }
.gloss-nav a { display: block; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; text-decoration: none; color: var(--ink); }
.gloss-nav a:hover { border-color: var(--green); color: var(--green); }
.gloss dt { font-size: 1.0625rem; padding-top: 1.1em; margin-top: 1.1em; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.gloss dt small { font-weight: 400; color: var(--ink-soft); margin-left: 8px; }
.gloss dd { margin: .3em 0 0; color: var(--ink-soft); }

/* ───── 費用シミュレーター ───── */
.sim { border: 1.5px solid var(--ink); border-radius: 8px; margin: 0 0 2.4em; overflow: hidden; }
.sim-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 24px; background: var(--ink); color: #fff; }
.sim-head h2 { font-size: 1.0625rem; margin: 0; padding: 0; border: 0; color: #fff; }
.seg { display: inline-flex; border: 1px solid rgba(255,255,255,.5); border-radius: 6px; overflow: hidden; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: block; padding: 6px 16px; font-size: .875rem; font-weight: 500; }
.seg input:checked + span { background: #fff; color: var(--ink); font-weight: 700; }
.seg input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: -3px; }
.sim-grid { display: grid; grid-template-columns: minmax(11em, 1.3fr) repeat(3, minmax(0, 1fr)); }
.sim-grid > * { padding: 12px 16px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); min-width: 0; }
.sim-grid > .rowh { border-left: 0; font-size: .875rem; font-weight: 700; line-height: 1.5; display: flex; flex-direction: column; justify-content: center; }
.sim-grid > .rowh small { font-weight: 400; color: var(--ink-soft); font-size: .75rem; }
.sim-grid > .colh { background: var(--surface); }
.sim-grid input[type="text"], .sim-grid input[type="number"] { width: 100%; font: inherit; font-size: .9375rem; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 5px; background: #fff; color: var(--ink); font-variant-numeric: tabular-nums; }
.sim-grid input[type="number"] { text-align: right; }
.sim-grid .out { background: var(--surface); text-align: right; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; justify-content: center; }
.sim-grid .out b { font-size: 1.25rem; line-height: 1.3; }
.sim-grid .out small { color: var(--ink-soft); }
.sim-grid .out.is-low b { color: var(--green-deep); }
.sim-grid .out.is-low::before { content: "総額が最も低い"; font-size: .6875rem; font-weight: 700; color: var(--green-deep); }
.sim-grid > .last { border-bottom: 0; }
.sim-foot { padding: 12px 24px; font-size: .8125rem; color: var(--ink-soft); border-top: 1px solid var(--line); margin: 0; }

/* ───── チェックリスト ───── */
.check-bar { position: sticky; top: 64px; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 8px; padding: 14px 20px; margin-bottom: 1em; }
.check-count { font-weight: 700; font-variant-numeric: tabular-nums; }
.check-count b { font-size: 1.375rem; color: var(--green-deep); }
.meter { flex: 1 1 140px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--lamp-ok); transition: width .2s; }
.checks { list-style: none; margin: 0 0 1.6em; padding: 0; border-top: 1px solid var(--line); }
.checks li { margin: 0; border-bottom: 1px solid var(--line); }
.checks label { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 16px 4px; cursor: pointer; }
.checks label:hover { background: var(--surface); }
.checks input { width: 20px; height: 20px; margin: 5px 0 0; accent-color: var(--green); }
.checks b { display: block; }
.checks span { display: block; font-size: .875rem; color: var(--ink-soft); line-height: 1.7; }
.checks input:checked ~ div b { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: var(--line-strong); }

/* ───── フッター ───── */
.site-foot { background: var(--ink); color: #d6e0db; padding-block: 56px 28px; font-size: .875rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.foot-brand .brand-name { color: #fff; font-size: 1.125rem; }
.foot-brand p { margin: 12px 0 0; line-height: 1.8; max-width: 26em; color: #b9c8c1; }
.site-foot h2 { font-size: .8125rem; color: #9fb3aa; font-weight: 500; margin-bottom: 10px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 0; padding: 4px 0; }
.foot-legal { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); font-size: .75rem; color: #9fb3aa; line-height: 1.8; }
.foot-legal p { margin: 0 0 .4em; }

/* ───── レスポンシブ ───── */
@media (max-width: 1000px) {
  .doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { position: static; order: -1; border-left: 0; padding: 18px 22px; margin-bottom: 36px; background: var(--surface); border-radius: 8px; }
  .trio--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .routes ul { grid-template-columns: repeat(2, 1fr); }
  .routes li:nth-child(3) { border-left: 0; }
  .routes li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 15.5px; }
  .site-head .wrap { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
  .gnav { margin: 0 -20px; padding: 0 12px; }
  html { scroll-padding-top: 110px; }
  .check-bar { top: 96px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 36px; }
  .sec { padding-block: 52px; }
  .trio, .trio--2, .trio--4 { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; }
  .steps li + li { border-top: 1px solid var(--line); }
  .routes ul { grid-template-columns: 1fr; }
  .routes li { border-left: 0; }
  .routes li + li { border-top: 1px solid var(--line); }
  .routes a { padding: 16px 4px; }
  .evidence { grid-template-columns: 1fr; }
  .evidence > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .postlist { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-brand { grid-column: 1 / -1; }
  .sim-grid { grid-template-columns: minmax(7.5em, 1fr) repeat(3, minmax(5.6em, 1fr)); font-size: .875rem; }
  .sim-grid > * { padding: 10px 8px; }
  .sim-scroll { overflow-x: auto; }
  .sim-scroll .sim-grid { min-width: 560px; }
  .doc { padding-block: 32px 56px; }
}

@media print {
  .site-head, .site-foot, .toc, .related, .btn-row, .next-step, .crumbs { display: none !important; }
  .check-bar { position: static; }
  body { font-size: 11pt; }
  .doc { display: block; padding: 0; }
  a { color: inherit; text-decoration: none; }
}
