:root {
  --ink: #0b1320;
  --blue: #1e3a5f;
  --paper: #f4f1e8;
  --orange: #ff7a1a;
  --green: #35c2a1;
  --muted: #9ca9ba;
  --line: rgba(156, 169, 186, .24);
  --white-line: rgba(244, 241, 232, .15);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .22);
  --content: 72ch;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  color: var(--paper);
  background-color: var(--ink);
  background-image: linear-gradient(rgba(30, 58, 95, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 58, 95, .18) 1px, transparent 1px);
  background-size: 32px 32px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 4px; }
::selection { color: var(--ink); background: var(--orange); }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow { width: min(850px, calc(100% - 40px)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 16px; color: var(--ink); background: var(--green); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.12; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.6rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.35em; }
li + li { margin-top: .45em; }
strong { font-weight: 750; }
code { padding: .12em .35em; border-radius: 5px; background: rgba(30, 58, 95, .11); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; overflow-wrap: anywhere; }
.eyebrow { margin-bottom: .8rem; color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .76rem; font-weight: 700; line-height: 1.4; letter-spacing: .13em; text-transform: uppercase; }
.tag { display: inline-flex; align-items: center; min-height: 27px; padding: 3px 9px; border: 1px solid rgba(53, 194, 161, .45); border-radius: 999px; color: #177b66; background: rgba(53, 194, 161, .1); font-size: .74rem; font-weight: 700; line-height: 1.2; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 750; line-height: 1.2; text-decoration: none; }
.button-primary { color: var(--ink); background: var(--orange); }
.button-primary:hover { background: #ff9147; }
.button-secondary { color: var(--paper); border-color: var(--white-line); background: rgba(30, 58, 95, .45); }
.button-secondary:hover { border-color: var(--orange); }
.paper .button-secondary, .calculator .button-secondary { color: var(--ink); border-color: rgba(11, 19, 32, .25); background: transparent; }
.text-link { color: var(--orange); font-weight: 750; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.site-header { position: sticky; z-index: 40; top: 0; border-bottom: 1px solid var(--white-line); background: rgba(11, 19, 32, .96); backdrop-filter: blur(12px); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 82px; }
.brand { display: block; line-height: 0; }
.brand img { display: block; width: 205px; height: auto; }
.main-nav { display: flex; justify-content: center; gap: 20px; }
.main-nav a { color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--paper); }
.main-nav a[aria-current="page"] { box-shadow: inset 0 -2px var(--orange); }
.header-search { display: flex; width: 216px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: rgba(30, 58, 95, .28); }
.header-search input { width: 100%; min-width: 0; padding: 9px 10px; border: 0; color: var(--paper); background: transparent; font-size: .86rem; outline: 0; }
.header-search input::placeholder { color: var(--muted); }
.header-search button { width: 38px; border: 0; color: var(--orange); background: transparent; cursor: pointer; font-size: 1.4rem; }
.header-search:focus-within { border-color: var(--green); }
main:focus { outline: 0; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; min-height: 660px; padding-block: 64px; }
.hero h1 { max-width: 800px; }
.hero-lead { max-width: 650px; margin-top: 1.4rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 26px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .85rem; }
.hero-facts li { margin: 0; }
.hero-facts strong { display: block; color: var(--paper); font-size: 1.55rem; line-height: 1.2; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 440px; }
.hero-visual::before { content: ""; position: absolute; width: min(390px, 90%); aspect-ratio: 1; border: 1px solid rgba(53, 194, 161, .28); border-radius: 50%; box-shadow: 0 0 0 28px rgba(30, 58, 95, .15), 0 0 0 56px rgba(30, 58, 95, .08); }
.mascot { position: relative; width: min(350px, 82%); height: auto; filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .3)); }
.blueprint-note { position: absolute; right: 0; bottom: 24px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); box-shadow: var(--shadow); transform: rotate(-2deg); }
.blueprint-note span { display: block; color: var(--green); font-family: ui-monospace, monospace; font-size: .66rem; letter-spacing: .1em; }
.blueprint-note strong { font-size: .94rem; }
.section { padding-block: 78px; }
.section-tint { border-block: 1px solid var(--white-line); background: rgba(30, 58, 95, .2); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading .eyebrow { margin-bottom: .5rem; }
.section-note { margin: 20px 0 0; color: var(--muted); font-size: .88rem; }
.tool-grid, .path-grid, .column-grid, .article-grid { display: grid; gap: 18px; }
.tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.path-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.column-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-card, .path-card, .column-card, .article-card { border: 1px solid var(--white-line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; }
.tool-card { position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 10px 22px; padding: 26px; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.tool-card img { grid-row: 1 / 5; align-self: center; }
.tool-card .tag { justify-self: start; }
.tool-card h3 { margin: 0; font-size: 1.35rem; }
.tool-card p { margin: 0; color: #526172; font-size: .9rem; }
.tool-card .text-link { align-self: end; }
.path-card, .column-card { padding: 24px; transition: border-color .2s ease, transform .2s ease; }
.path-card span { color: var(--orange); font-family: ui-monospace, monospace; font-size: .82rem; font-weight: 750; }
.path-card h3, .column-card h3 { margin-top: 14px; }
.path-card p, .column-card p { margin: 0; color: #526172; font-size: .88rem; }
.path-card:hover, .column-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.column-card span { color: #177b66; font-family: ui-monospace, monospace; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.article-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; }
.card-top, .card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-time { color: #647284; font-size: .76rem; }
.article-card h3 { margin: 18px 0 12px; font-size: 1.18rem; }
.article-card h3 a { text-decoration: none; }
.article-card h3 a:hover { color: #a74a06; }
.article-card p { color: #526172; font-size: .9rem; }
.card-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(11, 19, 32, .12); color: #647284; font-size: .76rem; }
.article-card .text-link { font-size: .83rem; }
.manifesto { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.manifesto p:not(.eyebrow) { color: var(--muted); }
.home-faq { padding-top: 0; }
.home-faq details, .article-faq details { border-top: 1px solid var(--line); }
.home-faq details:last-child, .article-faq details:last-child { border-bottom: 1px solid var(--line); }
.home-faq summary, .article-faq summary { padding: 18px 36px 18px 0; cursor: pointer; font-weight: 700; list-style: none; position: relative; }
.home-faq summary::after, .article-faq summary::after { content: "+"; position: absolute; right: 8px; top: 15px; color: var(--orange); font-size: 1.4rem; }
.home-faq details[open] summary::after, .article-faq details[open] summary::after { content: "−"; }
.home-faq details p, .article-faq details p { max-width: 75ch; color: var(--muted); }
.page-hero { padding-block: 72px 50px; }
.page-hero h1 { max-width: 950px; }
.page-hero > p:last-child { max-width: 760px; margin-top: 20px; color: var(--muted); font-size: 1.12rem; }
.library { padding-bottom: 80px; }
.column-section { scroll-margin-top: 110px; padding-block: 32px; border-top: 1px solid var(--line); }
.column-section:first-child { border-top: 0; }
.count-label { color: var(--muted); font-size: .82rem; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; color: var(--muted); font-size: .78rem; list-style: none; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--orange); }
.breadcrumbs a { color: var(--muted); }
.article-hero { max-width: 1000px; padding-block: 44px 48px; }
.article-hero h1 { max-width: 950px; font-size: clamp(2.2rem, 4.6vw, 4rem); }
.article-lead { max-width: 820px; margin-top: 22px; color: var(--muted); font-size: 1.15rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: .78rem; }
.article-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); align-items: start; gap: 28px; }
.article-sidebar { position: sticky; top: 110px; }
.toc { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(30, 58, 95, .23); }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0 0 8px; }
.toc li:last-child { margin-bottom: 0; }
.toc a { display: block; color: var(--muted); font-size: .78rem; line-height: 1.45; text-decoration: none; }
.toc a:hover { color: var(--paper); }
.toc .toc-level-3 { padding-left: 12px; }
.sidebar-fact { margin-top: 18px; padding: 18px; border-left: 3px solid var(--green); border-radius: 0 10px 10px 0; background: rgba(53, 194, 161, .08); }
.sidebar-fact span { color: var(--green); font-family: ui-monospace, monospace; font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-fact p { margin: 8px 0 0; font-size: .84rem; }
.article-paper, .paper { color: var(--ink); background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.article-paper { min-width: 0; padding: clamp(24px, 4.5vw, 58px); }
.paper { padding: clamp(24px, 4.5vw, 52px); }
.prose { max-width: var(--content); }
.article-paper > h2, .prose h2 { margin-top: 2.1em; padding-top: .2em; font-size: clamp(1.55rem, 2.8vw, 2.05rem); }
.article-paper > h2:first-child, .prose h2:first-child { margin-top: 1.4em; }
.article-paper h3 { margin-top: 1.9em; font-size: 1.25rem; }
.article-paper p, .article-paper li { font-size: 1.02rem; }
.article-paper > p { max-width: var(--content); }
.answer-box { margin-bottom: 32px; padding: 22px 24px; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; background: #e7e3d9; }
.answer-box strong { display: block; margin-bottom: 6px; font-family: ui-monospace, monospace; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.answer-box p { margin: 0; }
.note { margin: 26px 0; padding: 18px 20px; border-left: 4px solid var(--orange); border-radius: 0 12px 12px 0; background: #eee5d5; }
.note p { margin: 0; }
.table-wrap { max-width: 100%; margin: 24px 0; overflow-x: auto; border: 1px solid rgba(11, 19, 32, .15); border-radius: 12px; }
table { width: 100%; min-width: 530px; border-collapse: collapse; font-size: .88rem; line-height: 1.5; }
caption { padding: 14px 16px; text-align: left; font-weight: 750; background: rgba(30, 58, 95, .08); }
th, td { padding: 13px 16px; border-bottom: 1px solid rgba(11, 19, 32, .12); text-align: left; vertical-align: top; }
thead th { color: var(--paper); background: var(--blue); font-size: .78rem; letter-spacing: .03em; }
tbody th { width: 38%; font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: rgba(30, 58, 95, .04); }
.checklist { padding: 0; list-style: none; }
.check-item { margin: 0 !important; }
.check-item label { display: flex; align-items: flex-start; gap: 11px; padding: 11px 0; border-bottom: 1px solid rgba(11, 19, 32, .1); }
.check-item input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 5px; accent-color: var(--orange); }
.check-item input:checked + span { color: #697584; text-decoration: line-through; }
.norms { margin-top: 30px; padding: 20px; border: 1px solid rgba(30, 58, 95, .2); border-radius: 12px; background: rgba(30, 58, 95, .08); }
.norms strong { color: var(--blue); }
.norms p { margin: 8px 0; font-size: .9rem; }
.norms small { display: block; color: #647284; font-size: .76rem; }
.article-faq { margin-top: 42px; }
.article-faq details { border-color: rgba(11, 19, 32, .15); }
.article-faq details p { color: #526172; }
.article-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(11, 19, 32, .15); }
.calculator { margin: 34px 0; padding: clamp(22px, 4vw, 34px); color: var(--paper); border: 1px solid rgba(255, 122, 26, .35); border-radius: 16px; background: var(--ink); box-shadow: 0 16px 40px rgba(0, 0, 0, .2); scroll-margin-top: 24px; }
.calculator-heading { max-width: 70ch; }
.calculator-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.calculator-heading > p:last-child { color: var(--muted); }
.calculator-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0; }
.calculator fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; min-width: 0; margin: 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: rgba(30, 58, 95, .22); }
.calculator legend { padding: 0 8px; color: var(--green); font-size: .78rem; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.calculator label, .question-form label, .large-search label { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: .76rem; font-weight: 650; }
.calculator input, .calculator select { width: 100%; min-width: 0; min-height: 42px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--paper); background: #111e31; outline: 0; }
.calculator input:focus, .calculator select:focus { border-color: var(--green); }
.calculator-result { display: grid; grid-template-columns: minmax(180px, .65fr) 1.35fr; gap: 18px; align-items: start; padding: 22px; border: 1px solid rgba(53, 194, 161, .25); border-radius: 12px; background: rgba(53, 194, 161, .06); }
.result-primary span { display: block; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; }
.result-primary strong { display: block; margin: 8px 0; color: var(--orange); font-size: clamp(1.8rem, 3.5vw, 2.7rem); line-height: 1.1; letter-spacing: -.03em; }
.result-primary small { color: var(--green); }
.calculator-result .table-wrap { margin: 0; border-color: var(--line); }
.calculator-result table { min-width: 280px; color: var(--paper); }
.calculator-result th, .calculator-result td { border-color: var(--line); }
.calculator-result tbody tr:nth-child(even) { background: rgba(244, 241, 232, .03); }
.calculator-result caption { color: var(--paper); background: rgba(30, 58, 95, .35); }
.result-range { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .8rem; }
.calculator-footer { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 20px; margin-top: 20px; }
.calculator-disclaimer { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }
.calculator-disclaimer strong { color: var(--paper); }
.tools-page { padding-bottom: 80px; }
.tools-page .calculator { box-shadow: var(--shadow); }
.tools-page .calculator + .calculator { margin-top: 36px; }
.notice { margin-top: 32px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: rgba(30, 58, 95, .25); }
.notice h2 { font-size: 1.35rem; }
.checklist-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-bottom: 80px; }
.checklist-card { min-width: 0; padding: 26px; color: var(--ink); border-radius: var(--radius); background: var(--paper); scroll-margin-top: 110px; }
.checklist-card h2 { margin-top: 20px; font-size: 1.55rem; }
.checklist-card > p { color: #526172; font-size: .9rem; }
.checklist-card .card-time { color: #647284; }
.checklist-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.checklist-card .button-secondary { border-color: rgba(11, 19, 32, .25); background: transparent; }
.search-page { max-width: 900px; padding-bottom: 80px; }
.large-search { margin-bottom: 28px; }
.large-search > div { display: flex; gap: 12px; margin-top: 8px; }
.large-search input { flex: 1; min-width: 0; min-height: 50px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; color: var(--paper); background: rgba(30, 58, 95, .3); outline: 0; }
.large-search input:focus { border-color: var(--green); }
.large-search input::placeholder { color: var(--muted); }
.search-status { color: var(--muted); font-size: .86rem; }
.search-page .article-grid { margin-top: 18px; }
.question-form { margin-bottom: 80px; }
.question-form form { display: grid; gap: 20px; margin-top: 24px; }
.question-form input, .question-form select, .question-form textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid rgba(11, 19, 32, .25); border-radius: 9px; color: var(--ink); background: #fffdf7; outline: 0; resize: vertical; }
.question-form textarea { line-height: 1.55; }
.question-form input:focus, .question-form select:focus, .question-form textarea:focus { border-color: #177b66; box-shadow: 0 0 0 3px rgba(53, 194, 161, .18); }
.question-form label { color: #46566a; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.question-form .button-secondary { color: var(--ink); border-color: rgba(11, 19, 32, .25); background: transparent; }
.form-status { margin: 0; color: #177b66; font-size: .88rem; font-weight: 700; }
.question-form .calculator-disclaimer { color: #647284; }
.question-form .calculator-disclaimer strong { color: var(--ink); }
.not-found { min-height: 65vh; }
.site-footer { border-top: 1px solid var(--white-line); background: #080f1a; }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 52px 38px; }
.footer-column h2 { margin-bottom: 18px; font-size: .84rem; letter-spacing: .06em; text-transform: uppercase; }
.footer-column h3 { margin: 18px 0 8px; color: var(--muted); font-size: .77rem; letter-spacing: .02em; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 0 0 8px; }
.footer-links a { color: var(--muted); font-size: .78rem; text-decoration: none; }
.footer-links a:hover { color: var(--paper); text-decoration: underline; }
.footer-bottom { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 28px; padding-block: 24px 32px; border-top: 1px solid var(--white-line); }
.footer-bottom p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.55; }
.footer-bottom strong { color: var(--paper); }
@media (max-width: 1080px) {
  .header-inner { grid-template-columns: auto 1fr; gap: 16px 24px; padding-block: 14px; }
  .main-nav { justify-content: flex-end; }
  .header-search { grid-column: 1 / -1; width: 100%; }
  .hero { min-height: 600px; gap: 24px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path-grid, .column-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { grid-template-columns: 1fr 1fr; }
  .footer-bottom p:last-child { grid-column: 1 / -1; }
}
@media (max-width: 800px) {
  body { font-size: 16px; }
  .hero { grid-template-columns: 1fr; padding-block: 48px; }
  .hero-copy { order: 1; }
  .hero-visual { order: 0; min-height: 270px; }
  .mascot { width: 220px; }
  .hero-visual::before { width: 240px; box-shadow: 0 0 0 18px rgba(30, 58, 95, .15), 0 0 0 36px rgba(30, 58, 95, .08); }
  .blueprint-note { bottom: 6px; right: max(0px, calc(50% - 175px)); }
  .tool-card { grid-template-columns: 1fr; }
  .tool-card img { grid-row: auto; width: 120px; }
  .manifesto { grid-template-columns: 1fr; gap: 24px; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .sidebar-fact { display: none; }
  .toc ol { columns: 2; column-gap: 20px; }
  .toc li { break-inside: avoid; }
  .calculator-result { grid-template-columns: 1fr; }
  .result-range { grid-column: auto; }
  .checklist-page { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container, .narrow { width: calc(100% - 28px); }
  .site-header { position: relative; }
  .header-inner { grid-template-columns: 1fr; gap: 12px; }
  .brand img { width: 190px; }
  .main-nav { justify-content: flex-start; flex-wrap: wrap; gap: 8px 18px; max-width: 100%; padding-bottom: 4px; }
  .main-nav a { font-size: .82rem; }
  .header-search { grid-column: auto; }
  .section { padding-block: 54px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .hero { padding-block: 34px 44px; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-facts { gap: 20px; }
  .hero-facts li { flex: 1; }
  .tool-grid, .path-grid, .column-grid, .article-grid { grid-template-columns: 1fr; }
  .tool-card { padding: 22px; }
  .page-hero { padding-block: 44px 34px; }
  .article-hero { padding-block: 28px 34px; }
  .article-hero h1 { font-size: clamp(2rem, 10vw, 2.8rem); }
  .article-paper { padding: 23px 19px; }
  .article-paper p, .article-paper li { font-size: .98rem; }
  .toc ol { columns: 1; }
  .calculator { padding: 19px 15px; }
  .calculator-grid { grid-template-columns: 1fr; }
  .calculator fieldset { grid-template-columns: 1fr; padding: 14px; }
  .calculator-result { padding: 16px; }
  .calculator-footer { grid-template-columns: 1fr; }
  .calculator-footer .button { width: 100%; }
  .article-actions { align-items: stretch; flex-direction: column; }
  .article-actions .button { width: 100%; }
  .large-search > div { flex-direction: column; }
  .large-search .button { width: 100%; }
  .checklist-card { padding: 22px 18px; }
  .checklist-actions { flex-direction: column; }
  .footer-grid { gap: 26px 18px; }
  .footer-bottom { grid-template-columns: 1fr; gap: 14px; }
  .footer-bottom p:last-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  @page { margin: 16mm; }
  body { color: #111; background: #fff; font-size: 11pt; }
  .site-header, .site-footer, .article-sidebar, .article-hero .breadcrumbs, .article-actions, .calculator-footer button, .header-search, .skip-link { display: none !important; }
  .container, .narrow { width: 100%; }
  .hero, .section, .page-hero { min-height: 0; padding: 0; }
  .article-hero { padding: 0 0 12mm; }
  .article-hero h1 { color: #111; font-size: 24pt; }
  .article-hero .eyebrow, .article-lead, .article-meta, .breadcrumbs { color: #444; }
  .article-layout { display: block; }
  .article-paper, .paper, .checklist-card { padding: 0; color: #111; background: #fff; box-shadow: none; }
  .article-paper > h2 { break-after: avoid; }
  .note, .answer-box, .norms { background: #f3f3f3; break-inside: avoid; }
  .calculator { color: #111; border: 1px solid #888; background: #fff; box-shadow: none; break-inside: avoid; }
  .calculator .eyebrow, .calculator-heading > p:last-child, .calculator label, .calculator legend, .calculator-disclaimer, .result-primary span, .result-primary small, .result-range { color: #333; }
  .calculator input, .calculator select { color: #111; background: #fff; border-color: #888; }
  .calculator-result { border-color: #aaa; background: #fff; }
  .calculator-result table, .calculator-result caption { color: #111; }
  .calculator-result th, .calculator-result td { border-color: #bbb; }
  .result-primary strong { color: #a74700; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; font-size: 9pt; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  a { color: #111; text-decoration: none; }
  .related, .article-grid { display: none; }
}
