@charset "UTF-8";

:root {
  --paper: #f2efe6;
  --paper-deep: #e8e3d6;
  --paper-light: #faf8f2;
  --ink: #173e35;
  --ink-deep: #102c26;
  --muted: #66766c;
  --line: #c9c8b9;
  --line-dark: #9da99d;
  --accent: #b94c36;
  --accent-soft: #ead4c9;
  --white: #fffdf7;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --max: 1440px;
  --ease: cubic-bezier(.2,.75,.25,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink-deep); font-family: var(--sans); font-size: 16px; line-height: 1.85; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .16; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E"); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, select, input { font: inherit; }
button, select { color: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--paper-light); }
p, li { text-wrap: pretty; }
p { margin: 0 0 1.2em; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
ul, ol { margin: 0; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-160%); padding: 8px 14px; background: var(--ink); color: var(--white); z-index: 100; }
.skip-link:focus { transform: none; }

.site-header { min-height: 78px; max-width: var(--max); margin: auto; padding: 18px 38px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line-dark); gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: var(--ink); font-family: Georgia, serif; font-weight: 700; font-size: 27px; line-height: 1; text-decoration: none; letter-spacing: -.04em; }
.wordmark span { padding-left: 12px; border-left: 1px solid var(--line-dark); font-family: var(--mono); font-size: 10px; line-height: 1.35; letter-spacing: .12em; max-width: 62px; }
.header-meta { display: flex; gap: 28px; font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.print-button { justify-self: end; border: 0; border-bottom: 1px solid var(--ink); padding: 5px 0; background: transparent; font-size: 12px; }
.print-button:hover { color: var(--accent); border-color: var(--accent); }

.page-shell { max-width: var(--max); margin: auto; padding: 0 38px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: clamp(44px, 6vw, 96px); }
.side-rail { border-right: 1px solid var(--line); }
.rail-inner { position: sticky; top: 0; max-height: 100vh; padding: 46px 26px 28px 0; overflow-y: auto; scrollbar-width: thin; }
.rail-label, .eyebrow { margin: 0 0 14px; font-family: var(--mono); font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .15em; color: var(--muted); }
.toc { display: grid; }
.toc a { display: grid; grid-template-columns: 25px 1fr; gap: 8px; padding: 7px 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-decoration: none; transition: color .2s, transform .2s; }
.toc a span { font-family: var(--mono); font-size: 9px; padding-top: 3px; }
.toc a:hover, .toc a.is-active { color: var(--ink); transform: translateX(3px); }
.toc a.is-active { font-weight: 600; }
.rail-note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.8; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--ink); }
.mobile-toc { display: none; }
main { min-width: 0; max-width: 1000px; }

.hero { padding: clamp(48px, 8vw, 104px) 0 70px; }
.hero-kicker { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line-dark); font-family: var(--mono); font-size: 10px; letter-spacing: .13em; }
.hero h1 { margin: clamp(36px, 6vw, 68px) 0 32px; font-family: var(--serif); font-size: clamp(47px, 6.3vw, 86px); font-weight: 600; line-height: 1.15; letter-spacing: -.045em; }
.hero h1 em { position: relative; color: var(--accent); font-style: normal; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 2%; right: 0; bottom: .02em; height: .06em; background: var(--accent); transform: rotate(-1deg); }
.hero-deck { max-width: 690px; margin-left: clamp(0px, 8vw, 110px); color: var(--ink); font-family: var(--serif); font-size: clamp(18px, 2vw, 23px); line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin: 38px 0 58px clamp(0px, 8vw, 110px); }
.primary-link { display: inline-flex; justify-content: center; align-items: center; gap: 30px; min-height: 48px; padding: 12px 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper-light); font-size: 13px; text-decoration: none; transition: background .2s, color .2s, transform .2s; }
.primary-link:hover { background: transparent; color: var(--ink); transform: translateY(-2px); }
.text-link { font-size: 12px; }
.hero-ledger { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.hero-ledger > div { padding: 25px 20px 22px 0; }
.hero-ledger > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hero-ledger strong { display: block; font-family: Georgia, serif; font-size: clamp(33px, 4vw, 52px); line-height: 1.15; font-weight: 400; letter-spacing: -.04em; }
.hero-ledger span, .hero-ledger small { display: block; }
.hero-ledger span { margin-top: 10px; font-size: 12px; font-weight: 600; }
.hero-ledger small { color: var(--muted); font-size: 10px; }
.editor-note { display: grid; grid-template-columns: 110px 1fr; gap: 24px; margin-top: 34px; }
.editor-note p { margin: 0; color: var(--muted); font-size: 12px; }
.note-index { color: var(--accent); font-family: var(--serif); font-size: 13px; }

.personal-status { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; padding: 32px; background: var(--ink); color: var(--paper-light); }
.personal-status .eyebrow { color: #b7c5b9; }
.personal-status h2 { margin-bottom: 12px; font-family: Georgia, serif; font-size: clamp(20px, 2.4vw, 30px); font-weight: 400; line-height: 1.3; }
.personal-status p:not(.eyebrow) { margin: 0; color: #d8dfd5; font-size: 12px; }
.mini-progress { padding: 0; list-style: none; display: grid; align-content: center; }
.mini-progress li { display: flex; align-items: center; gap: 12px; padding: 6px 0; color: #9fb0a4; font-size: 11px; }
.mini-progress li span { font-family: var(--mono); font-size: 9px; }
.mini-progress li::after { content: ""; flex: 1; height: 1px; background: #4a675d; }
.mini-progress .is-done { color: var(--paper-light); }
.mini-progress .is-done::after { background: var(--paper-light); }
.mini-progress .is-current { color: #efc2ac; font-weight: 600; }

.chapter { padding: clamp(68px, 9vw, 112px) 0 20px; }
.chapter-header { display: grid; grid-template-columns: 66px 1fr; gap: 20px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); margin-bottom: 34px; }
.chapter-no { padding-top: 4px; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.chapter-header .eyebrow { margin-bottom: 8px; }
.chapter h2 { font-family: var(--serif); font-size: clamp(29px, 3.7vw, 44px); line-height: 1.35; font-weight: 600; letter-spacing: -.025em; }
.chapter .lead { max-width: 780px; margin-bottom: 36px; color: var(--ink); font-family: var(--serif); font-size: clamp(17px, 1.8vw, 20px); line-height: 1.9; }
.chapter h3 { font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.chapter p, .chapter li { font-size: 14px; }
.chapter sup { margin-left: 3px; font-family: var(--mono); font-size: 9px; }
.chapter sup a { color: var(--accent); text-decoration: none; padding: 0 2px; }
.minor-title { margin: 42px 0 18px; padding-top: 20px; border-top: 1px solid var(--line); }
.fine-print { margin-top: 22px; color: var(--muted); font-size: 11px !important; }

.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-dark); }
.comparison-grid article { padding: clamp(24px, 4vw, 38px); }
.comparison-grid article + article { border-left: 1px solid var(--line-dark); }
.comparison-grid h3 { margin-bottom: 20px; }
.comparison-grid ul, .do-dont ul { padding-left: 18px; }
.comparison-grid li, .do-dont li { margin: 8px 0; }
.card-label { margin-bottom: 12px; font-family: var(--mono); font-size: 10px !important; letter-spacing: .1em; color: var(--muted); }
.ink-card { background: var(--ink); color: var(--paper-light); }
.ink-card .card-label { color: #b7c5b9; }
.callout { margin: 30px 0; padding: 22px 26px; border: 1px solid var(--line-dark); background: var(--paper-light); }
.callout strong { display: block; margin-bottom: 8px; font-family: var(--serif); font-size: 17px; }
.callout p { margin: 0; color: var(--muted); }
.callout.caution { border-color: #c8a18f; background: #f4e9df; }

.cost-tool { border: 1px solid var(--line-dark); background: var(--paper-light); }
.cost-controls { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 24px; border-bottom: 1px solid var(--line); }
.control-label { margin-bottom: 8px !important; font-family: var(--mono); font-size: 10px !important; color: var(--muted); }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented button { min-height: 38px; padding: 8px 12px; border: 1px solid var(--line); background: transparent; font-size: 11px; transition: background .2s, color .2s; }
.segmented button:hover, .segmented button.is-active { background: var(--ink); color: var(--paper-light); border-color: var(--ink); }
.platform-select { display: grid; gap: 8px; color: var(--muted); font-size: 10px; }
.platform-select select { min-height: 40px; padding: 6px 30px 6px 10px; border: 1px solid var(--line); border-radius: 0; background: var(--paper-light); font-size: 12px; }
.cost-result { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; padding: 32px 24px; }
.cost-result p { margin-bottom: 2px; color: var(--muted); font-size: 11px !important; }
.cost-result strong { display: block; font-family: Georgia, serif; font-size: 64px; font-weight: 400; line-height: 1.2; letter-spacing: -.05em; }
.cost-result span { color: var(--muted); font-size: 10px; }
.cost-result ul { padding: 0; list-style: none; }
.cost-result li { display: flex; justify-content: space-between; gap: 20px; padding: 5px 0; border-bottom: 1px dotted var(--line); font-size: 12px; }
.cost-result li span:last-child { font-family: var(--mono); white-space: nowrap; }
.cost-footnote { margin: 0; padding: 18px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px !important; }
.table-wrap { max-width: 100%; margin-top: 32px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
caption { padding-bottom: 12px; text-align: left; font-family: var(--serif); font-size: 18px; font-weight: 600; }
th, td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 12px; }
th { color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .05em; }
td:first-child { min-width: 110px; font-weight: 600; }

.timeline { padding: 0; list-style: none; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 30px; position: relative; padding: 0 0 40px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; top: 28px; bottom: 0; left: 0; width: 1px; background: var(--line-dark); }
.time-marker { padding-top: 4px; font-family: var(--mono); font-size: 10px; color: var(--accent); }
.timeline h3 { margin-bottom: 10px; }
.timeline p { margin-bottom: 12px; color: var(--muted); }
.tag { display: inline-block; padding: 2px 8px; border: 1px solid var(--line); font-size: 10px; }

.two-column-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.two-column-copy h3 { margin-bottom: 12px; }
.two-column-copy p { color: var(--muted); }
.file-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.file-grid span { padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; }
.file-grid span::before { content: "□"; margin-right: 8px; color: var(--muted); }

.method-list { border-top: 1px solid var(--line-dark); }
.method-list article { display: grid; grid-template-columns: 40px 1fr 130px; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.method-no { font-family: Georgia, serif; font-size: 25px; color: var(--accent); }
.method-list h3 { margin-bottom: 8px; }
.method-list p { margin: 0; color: var(--muted); }
.method-meta { padding-top: 5px; text-align: right; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; padding: 9px 0 9px 25px; border-bottom: 1px solid var(--line); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 7px; height: 7px; border: 1px solid var(--ink); }

.address-matrix { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.address-matrix article { padding: 26px; background: var(--paper-light); }
.address-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; font-family: var(--mono); font-size: 10px; }
.visibility { padding: 2px 7px; border: 1px solid var(--line); font-size: 9px; }
.visibility.public { color: var(--accent); border-color: #d4aa99; }
.visibility.private { color: var(--ink); }
.address-matrix h3 { margin-bottom: 10px; }
.address-matrix p { min-height: 126px; color: var(--muted); font-size: 12px; }
.address-matrix small { display: block; padding-top: 12px; border-top: 1px solid var(--line); font-size: 10px; }
.rule-strip { display: flex; justify-content: space-between; gap: 20px; padding: 20px 24px; background: var(--ink); color: var(--paper-light); }
.rule-strip strong { font-family: var(--serif); font-size: 16px; }
.rule-strip span { max-width: 400px; color: #cad5cb; font-size: 11px; }

.numbered-steps { padding: 0; list-style: none; }
.numbered-steps li { display: grid; grid-template-columns: 45px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.numbered-steps li > span { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-dark); border-radius: 50%; font-family: Georgia, serif; }
.numbered-steps h3 { margin-bottom: 8px; }
.numbered-steps p { margin: 0; color: var(--muted); }

.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.do-dont > div { padding-top: 18px; border-top: 2px solid var(--ink); }
.do-dont > div + div { border-color: var(--accent); }
.debug-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.debug-grid > div { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.debug-grid span { font-family: var(--mono); font-size: 10px; color: var(--accent); }
.debug-grid p { margin: 0; font-size: 12px; }

.platform-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.platform-columns article { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line-dark); background: var(--paper-light); }
.platform-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 28px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.platform-head strong { font-family: Georgia, serif; font-size: 34px; font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.platform-head small { font-family: var(--sans); font-size: 9px; font-weight: 400; }
.platform-columns h3 { margin-bottom: 18px; }
.platform-columns ul { padding-left: 18px; margin-bottom: 26px; }
.platform-columns li { margin: 9px 0; font-size: 12px; }
.source-link { margin-top: auto; font-size: 11px; }

.compliance-list { border-top: 1px solid var(--line-dark); }
.compliance-list article { display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.compliance-list article > span { font-family: var(--serif); font-size: 20px; color: var(--accent); }
.compliance-list h3 { margin-bottom: 8px; }
.compliance-list p { margin: 0; color: var(--muted); }
.warning-block { display: grid; grid-template-columns: 60px 1fr; gap: 24px; margin-top: 34px; padding: 28px; background: var(--accent); color: var(--white); }
.warning-mark { font-family: Georgia, serif; font-size: 60px; line-height: 1; }
.warning-block h3 { margin-bottom: 8px; }
.warning-block p { margin: 0; color: #fbe6dc; }

.case-list { border-top: 1px solid var(--line-dark); }
.case-list article { display: grid; grid-template-columns: 100px 1fr; gap: 26px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.case-status { width: fit-content; height: fit-content; padding: 4px 8px; border: 1px solid var(--line-dark); font-size: 10px; }
.case-status.rejected { color: var(--accent); border-color: var(--accent); }
.case-status.verified { background: var(--ink); color: var(--paper-light); }
.case-status.historical { color: var(--muted); }
.case-list h3 { margin-bottom: 8px; }
.case-list p { color: var(--muted); }
.case-list a { font-size: 11px; }
.method-note { margin-top: 28px; padding: 20px; border: 1px dashed var(--line-dark); color: var(--muted); font-size: 11px !important; }

.action-checklist { border-top: 1px solid var(--line-dark); }
.action-checklist label { display: flex; align-items: flex-start; gap: 16px; padding: 19px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.action-checklist input { appearance: none; flex: 0 0 auto; width: 18px; height: 18px; margin: 5px 0 0; border: 1px solid var(--line-dark); background: transparent; display: grid; place-content: center; }
.action-checklist input::before { content: ""; width: 8px; height: 8px; transform: scale(0); background: var(--paper-light); transition: transform .15s; }
.action-checklist input:checked { background: var(--ink); border-color: var(--ink); }
.action-checklist input:checked::before { transform: scale(1); }
.action-checklist input:disabled { opacity: 1; cursor: default; }
.action-checklist strong, .action-checklist small { display: block; }
.action-checklist strong { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.action-checklist small { color: var(--muted); font-size: 11px; }
.action-checklist input:checked:not(:disabled) + span strong { text-decoration: line-through; text-decoration-color: var(--line-dark); }
.next-action { margin-top: 38px; padding: clamp(28px, 5vw, 48px); background: var(--ink); color: var(--paper-light); }
.next-action .eyebrow { color: #b7c5b9; }
.next-action h3 { margin-bottom: 12px; font-size: clamp(24px, 3vw, 34px); }
.next-action p:not(.eyebrow) { max-width: 620px; color: #cad5cb; }
.next-action .primary-link { margin-top: 14px; border-color: var(--paper-light); background: var(--paper-light); color: var(--ink); }
.next-action .primary-link:hover { background: transparent; color: var(--paper-light); }

.faq-section details { border-bottom: 1px solid var(--line-dark); }
.faq-section summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary span { font-family: var(--sans); font-weight: 400; transition: transform .2s; }
.faq-section details[open] summary span { transform: rotate(45deg); }
.faq-section details p { max-width: 760px; padding: 0 0 22px; color: var(--muted); }

.source-list { padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; }
.source-list li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.source-list li:target { background: var(--accent-soft); }
.source-list li > span { font-family: var(--mono); font-size: 10px; color: var(--accent); }
.source-list strong { display: block; font-family: var(--serif); font-size: 15px; }
.source-list p { margin: 4px 0; color: var(--muted); font-size: 11px; }
.source-list a { font-family: var(--mono); font-size: 9px; }
.source-boundary { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.source-boundary p { color: var(--muted); font-size: 11px; }

.site-footer { max-width: var(--max); margin: 90px auto 0; padding: 42px 38px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 30px; color: var(--muted); }
.site-footer p { margin: 8px 0 0; font-size: 10px; }
.site-footer > div:last-child { text-align: right; }
.footer-mark { font-size: 23px; }
.back-top { position: fixed; right: 24px; bottom: 24px; z-index: 30; width: 44px; height: 44px; border: 1px solid var(--line-dark); border-radius: 50%; background: var(--paper-light); color: var(--ink); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.back-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { background: var(--ink); color: var(--paper-light); }
.noscript { position: fixed; bottom: 0; left: 0; right: 0; margin: 0; padding: 10px; background: var(--accent); color: var(--white); text-align: center; font-size: 12px; z-index: 50; }

@media (min-width: 1500px) {
  .page-shell { grid-template-columns: 230px minmax(0, 1fr); }
  main { max-width: 1040px; }
}

@media (max-width: 1050px) {
  .page-shell { grid-template-columns: 170px minmax(0, 1fr); gap: 38px; padding: 0 28px; }
  .site-header { padding-inline: 28px; }
  .header-meta { display: none; }
  .site-header { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: clamp(46px, 7vw, 72px); }
  .personal-status { grid-template-columns: 1fr; }
  .mini-progress { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .cost-controls { align-items: start; flex-direction: column; }
  .cost-result { grid-template-columns: 1fr 1.3fr; }
  .address-matrix p { min-height: 152px; }
  .rule-strip { flex-direction: column; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 24px; }
  body { font-size: 15px; }
  .site-header { min-height: 66px; padding: 15px 20px; }
  .wordmark { font-size: 24px; }
  .print-button { min-height: 44px; font-size: 10px; }
  .page-shell { display: block; padding: 0 20px; }
  .side-rail { display: none; }
  .mobile-toc { display: block; margin: 0 20px; border-bottom: 1px solid var(--line-dark); }
  .mobile-toc summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 15px 0; font-size: 11px; cursor: pointer; }
  .mobile-toc summary span { color: var(--muted); }
  .mobile-toc nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding-bottom: 14px; }
  .mobile-toc nav a { display: flex; align-items: center; min-height: 44px; padding: 7px 0; color: var(--muted); font-size: 10px; text-decoration: none; }
  .text-link { display: inline-flex; align-items: center; min-height: 44px; }
  .hero { padding: 48px 0 44px; }
  .hero-kicker { font-size: 8px; }
  .hero h1 { margin: 34px 0 26px; font-size: clamp(42px, 12vw, 62px); line-height: 1.2; }
  .hero-deck { margin-left: 0; font-size: 18px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; margin: 28px 0 40px; }
  .hero-ledger > div { padding: 20px 10px 18px 0; }
  .hero-ledger > div + div { padding-left: 12px; }
  .hero-ledger strong { font-size: 31px; }
  .hero-ledger span { font-size: 10px; }
  .hero-ledger small { display: none; }
  .editor-note { grid-template-columns: 70px 1fr; gap: 14px; }
  .personal-status { margin-inline: -20px; padding: 28px 20px; }
  .mini-progress { grid-template-columns: 1fr; }
  .chapter { padding-top: 72px; }
  .chapter-header { grid-template-columns: 42px 1fr; gap: 10px; margin-bottom: 26px; }
  .chapter h2 { font-size: 30px; }
  .chapter .lead { font-size: 17px; }
  .comparison-grid, .two-column-copy, .do-dont, .platform-columns { grid-template-columns: 1fr; }
  .comparison-grid article + article { border-left: 0; border-top: 1px solid var(--line-dark); }
  .cost-result { grid-template-columns: 1fr; gap: 24px; }
  .cost-result strong { font-size: 56px; }
  .cost-controls { padding: 20px; }
  .segmented { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .segmented button:first-child { grid-column: 1 / -1; }
  .platform-select { width: 100%; }
  .platform-select select { width: 100%; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; padding-left: 22px; }
  .timeline li:not(:last-child)::before { left: 0; }
  .timeline li::after { content: ""; position: absolute; top: 7px; left: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
  .file-grid { grid-template-columns: 1fr 1fr; }
  .method-list article { grid-template-columns: 32px 1fr; gap: 12px; }
  .method-meta { grid-column: 2; text-align: left; }
  .address-matrix { grid-template-columns: 1fr; }
  .address-matrix p { min-height: 0; }
  .rule-strip { padding: 20px; }
  .do-dont { gap: 28px; }
  .debug-grid { grid-template-columns: 1fr; }
  .compliance-list article { grid-template-columns: 54px 1fr; gap: 14px; }
  .warning-block { grid-template-columns: 36px 1fr; gap: 14px; padding: 24px 20px; }
  .warning-mark { font-size: 40px; }
  .case-list article { grid-template-columns: 1fr; gap: 14px; }
  .source-list { grid-template-columns: 1fr; }
  .site-footer { margin-top: 70px; padding: 32px 20px; flex-direction: column; }
  .site-footer > div:last-child { text-align: left; }
  .back-top { right: 16px; bottom: 16px; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 41px; }
  .hero-ledger strong { font-size: 27px; }
  .hero-ledger span { font-size: 9px; }
  .chapter h2 { font-size: 28px; }
  .mobile-toc nav { grid-template-columns: 1fr; }
}

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

@media print {
  @page { margin: 16mm; }
  :root { --paper: #fff; --paper-light: #fff; }
  body { background: #fff; color: #111; font-size: 10pt; }
  body::before, .site-header, .side-rail, .mobile-toc, .hero-actions, .back-top, .print-button, .cost-controls { display: none !important; }
  .page-shell { display: block; padding: 0; max-width: none; }
  main { max-width: none; }
  .hero { padding: 0 0 24pt; }
  .hero h1 { font-size: 38pt; margin: 24pt 0 18pt; }
  .hero-deck { margin-left: 0; }
  .chapter { padding: 28pt 0 0; break-before: auto; }
  .chapter-header, .chapter h3 { break-after: avoid; }
  .personal-status, .next-action, .ink-card, .rule-strip { background: #fff; color: #111; border: 1px solid #777; }
  .personal-status p:not(.eyebrow), .next-action p:not(.eyebrow), .next-action .eyebrow, .rule-strip span { color: #333; }
  .callout, .cost-tool, .platform-columns article, .address-matrix article, .next-action, .warning-block { break-inside: avoid; }
  .cost-result { padding: 16pt; }
  .cost-result strong { font-size: 36pt; }
  a { text-decoration: none; }
  .source-list a::after { content: " (" attr(href) ")"; overflow-wrap: anywhere; }
  .site-footer { margin-top: 30pt; padding: 20pt 0; }
}
