:root {
  --ink: #163c36;
  --ink-strong: #102c28;
  --text: #263d36;
  --muted: #64736d;
  --paper: #ffffff;
  --canvas: #fafcfb;
  --soft: #f0f5f1;
  --lime: #e4efb8;
  --lime-light: #f4f8e6;
  --line: #dce5df;
  --line-strong: #bdcec3;
  --error: #a43232;
  --radius: 16px;
  --radius-small: 10px;
  --shadow: 0 14px 40px rgb(22 60 54 / 6%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 105px; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, .button, .nav-link { touch-action: manipulation; }
:focus-visible { outline: 3px solid #6b8f58; outline-offset: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; letter-spacing: -.035em; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 1.25rem; font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 750; }
h2 { margin-bottom: 1rem; font-size: clamp(1.75rem, 3vw, 2.65rem); font-weight: 730; }
h3 { margin-bottom: .65rem; font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1.1rem; }
ul, ol { padding-left: 1.35rem; }
li + li { margin-top: .5rem; }
small { font-size: .875rem; }
strong { font-weight: 700; }
::selection { background: var(--lime); color: var(--ink-strong); }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 16px;
  padding: .8rem 1rem;
  border-radius: var(--radius-small);
  background: var(--ink);
  color: white;
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

/* Navigation */
.site-header { position: relative; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); font-size: 1.3rem; font-weight: 760; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 39px; height: 39px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 11px; background: var(--ink); color: var(--lime); }
.brand-mark svg { width: 24px; height: 24px; }
.desktop-nav { display: flex; align-items: center; gap: .3rem; }
.nav-link { display: inline-flex; align-items: center; min-height: 42px; padding: .55rem .85rem; border-radius: 8px; color: var(--muted); font-size: .9375rem; font-weight: 550; text-decoration: none; }
.nav-link:hover, .nav-link[aria-current="page"], .nav-link.active { background: var(--soft); color: var(--ink); text-decoration: none; }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: .5rem; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: var(--radius-small); padding: .5rem .75rem; background: var(--paper); color: var(--ink); font-size: .875rem; font-weight: 650; }
.menu-toggle svg { width: 20px; height: 20px; }
.mobile-nav { display: none; padding: 0 0 1rem; border-top: 1px solid var(--line); }
.mobile-nav .nav-link { display: flex; margin-top: .3rem; }

/* Buttons and shared accents */
.eyebrow { display: block; margin: 0 0 1rem; color: #52714a; font-size: .875rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.2rem; border: 1px solid var(--ink); border-radius: var(--radius-small); background: var(--ink); color: white; font-size: .9375rem; font-weight: 650; line-height: 1.35; text-align: center; text-decoration: none; transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.button:hover { background: var(--ink-strong); border-color: var(--ink-strong); color: white; text-decoration: none; box-shadow: 0 5px 16px rgb(22 60 54 / 10%); }
.button.secondary { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }
.button.secondary:hover { background: var(--soft); border-color: #9fb6a8; }
.button.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.button.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.button.lime:hover { background: #d6e6a3; border-color: #d6e6a3; }
.button svg { width: 18px; height: 18px; flex-shrink: 0; }
.button:disabled, button:disabled { cursor: not-allowed; opacity: .55; }
.text-link, .card-link { color: var(--ink); font-size: .9375rem; font-weight: 700; text-decoration-color: #9eb28b; }

/* Home page */
.hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: 4rem; padding-block: 74px 76px; }
.hero-copy h1 { max-width: 13ch; }
.hero-copy > p:not(.eyebrow), .hero-copy .lead { max-width: 49ch; margin-bottom: 1.7rem; color: var(--muted); font-size: 1.125rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-block: 1.65rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: .5rem 1.15rem; align-items: center; color: var(--muted); font-size: .875rem; }
.trust-row > span { display: inline-flex; align-items: center; gap: .4rem; }
.trust-row svg { width: 16px; height: 16px; color: #537653; }
.hero-visual { position: relative; min-width: 0; padding: 1.25rem; border: 1px solid #dfe9df; border-radius: 26px; background: #eef4ed; }
.hero-visual > svg { display: block; width: 100%; height: auto; }
.room-card { position: relative; padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.room-card h3 { margin-bottom: .35rem; font-size: 1.1rem; }
.room-card p { margin-bottom: 0; color: var(--muted); font-size: .875rem; }
.room-card strong { color: var(--ink); }
.room-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem; }
.room-card-top .eyebrow { margin: 0; font-size: .75rem; letter-spacing: .08em; }
.room-tag { padding: .3rem .6rem; border-radius: 6px; background: var(--soft); color: var(--muted); font-size: .8125rem; }
.room-diagram { display: block; width: 100%; height: auto; margin-block: 1.25rem .4rem; }
.room-card-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid var(--line); }
.room-card-bottom .hint { margin: 0 0 .2rem; }
.room-card-bottom strong { display: block; font-size: 1.25rem; }
.measurement-mark { font-size: 2rem; font-weight: 650; color: #63846b; }
.tool-card > .eyebrow { margin-top: 1.2rem; margin-bottom: 0; font-size: .75rem; }
.tool-card h3 { margin-top: .55rem; }
.step-symbol { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 1rem; background: var(--lime); border-radius: 7px; color: var(--ink); font-size: 1.1rem; font-weight: 700; }
.mobile-nav > a { display: block; padding: .65rem .5rem; color: var(--ink); text-decoration: none; }
button.text-link { border: 0; background: transparent; padding: .5rem .3rem; text-decoration: underline; }
.result-line dd { margin: 0; white-space: nowrap; }
.result-card.has-error { border-color: #d3a09b; }
.calculator-form > .inline-note { margin: 0 1.65rem; }
.article-aside > .button { margin-top: 1rem; width: 100%; }
.footer-bottom > span { display: block; }
.calculator-explainer, .faq-section { max-width: 860px; padding-block: 32px; }
.section { padding-block: 68px; }
.soft-section { background: var(--soft); border-block: 1px solid #e6ece6; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1.9rem; }
.section-heading h2 { margin-bottom: .65rem; }
.section-heading p { max-width: 60ch; margin-bottom: 0; color: var(--muted); }
.section-heading > a { flex-shrink: 0; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.tool-card { display: flex; flex-direction: column; min-width: 0; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--text); text-decoration: none; transition: border-color .16s ease, box-shadow .16s ease; }
.tool-card:hover { border-color: #a9bfaf; box-shadow: var(--shadow); text-decoration: none; }
.tool-card h3 { margin-top: 1.15rem; }
.tool-card p { flex: 1; margin-bottom: 1.3rem; color: var(--muted); font-size: .9375rem; line-height: 1.65; }
.tool-card .card-link { align-self: flex-start; margin-top: .1rem; }
.tool-icon { display: flex; align-items: center; justify-content: center; width: 49px; height: 49px; border-radius: 12px; background: var(--lime-light); color: var(--ink); }
.tool-icon svg { width: 25px; height: 25px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.guide-card { min-width: 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-decoration: none; }
.guide-card:hover { border-color: #a9bfaf; text-decoration: none; }
.guide-card h3 { margin-top: .7rem; font-size: 1.2rem; line-height: 1.35; }
.guide-card p { margin-bottom: 1rem; color: var(--muted); font-size: .9375rem; }
.guide-meta { color: #577151; font-size: .875rem; font-weight: 600; }
.steps-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.step { padding-top: 1.3rem; border-top: 2px solid #c8d9bf; }
.step h3 { font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* Calculator pages */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-block: 26px 30px; color: var(--muted); font-size: .875rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span:last-child { color: var(--ink); }
.page-intro { max-width: 830px; margin-bottom: 2rem; }
.page-intro h1 { max-width: 24ch; margin-bottom: .9rem; font-size: clamp(2.1rem, 4vw, 3.3rem); }
.page-intro > p:not(.eyebrow) { max-width: 68ch; margin-bottom: 0; color: var(--muted); font-size: 1.0625rem; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr); align-items: start; gap: 1.75rem; margin-block: 2rem 3rem; }
.calculator-form { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); }
.form-section { min-width: 0; padding: 1.65rem; border: 0; margin: 0; }
.form-section + .form-section { border-top: 1px solid var(--line); }
.form-section h2, .form-section legend { margin-bottom: 1.2rem; color: var(--ink); font-size: 1.125rem; font-weight: 700; letter-spacing: -.015em; }
.form-section legend { float: left; width: 100%; padding: 0; }
.form-section legend + * { clear: both; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1rem; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: block; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > span:first-child, .field-label { display: block; margin-bottom: .45rem; color: var(--text); font-size: .875rem; font-weight: 650; line-height: 1.45; }
label.field { font-size: .875rem; font-weight: 650; }
.input-wrap { position: relative; margin-top: .35rem; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: .7rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background-color: var(--paper);
  color: var(--ink-strong);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgb(22 60 54 / 2%);
}
.input-wrap input:not([type="checkbox"]):not([type="radio"]) { padding-right: 3.75rem; }
.field input::placeholder, .field textarea::placeholder { color: #819087; font-weight: 400; }
.field select { appearance: none; padding-right: 2.5rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23163c36' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-position: right .8rem center; background-repeat: no-repeat; background-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #628365; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid rgb(117 149 83 / 24%); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--error) !important; }
.unit { position: absolute; top: 50%; right: .85rem; transform: translateY(-50%); color: var(--muted); font-size: .875rem; font-weight: 500; pointer-events: none; }
.hint { display: block; margin-top: .4rem; margin-bottom: 0; color: var(--muted); font-size: .875rem; font-weight: 400; line-height: 1.5; }
.checkbox-field { display: flex; align-items: flex-start; gap: .65rem; min-height: 44px; padding-block: .5rem; color: var(--text); font-size: .9375rem; font-weight: 500; }
.checkbox-field input { width: 18px; height: 18px; flex-shrink: 0; margin: .2rem 0 0; accent-color: var(--ink); }
.inline-note { padding: .85rem 1rem; border-radius: 8px; background: var(--soft); color: #52665a; font-size: .875rem; line-height: 1.6; }
.inline-note p:last-child { margin-bottom: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; padding: 1.25rem 1.65rem 1.65rem; }
.form-actions .button { flex: 1; }
.form-actions .button.secondary { flex: 0 1 auto; }
.result-card { position: sticky; top: 24px; overflow: hidden; min-width: 0; padding: 1.65rem; border: 1px solid #d3dec9; border-radius: 18px; background: var(--lime-light); }
.result-eyebrow { margin-bottom: .55rem; color: #516546; font-size: .875rem; font-weight: 700; }
.result-main { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem; margin-block: .2rem .25rem; color: var(--ink); font-size: clamp(2.65rem, 4vw, 3.5rem); font-weight: 760; line-height: 1.15; letter-spacing: -.05em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.result-unit { color: var(--ink); font-size: 1.1rem; font-weight: 600; letter-spacing: -.01em; }
.result-card > p { font-size: .9375rem; }
.result-breakdown { margin-block: 1.4rem; padding-block: .2rem; border-top: 1px solid #d5dfc5; border-bottom: 1px solid #d5dfc5; }
.result-line { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: .65rem; font-size: .875rem; line-height: 1.5; }
.result-line + .result-line { border-top: 1px solid #e3e9d8; }
.result-line > :first-child { color: #526348; }
.result-line > :last-child { color: var(--ink); font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }
.result-footer { margin-bottom: 0; color: #5b6b50; font-size: .875rem; line-height: 1.6; }
.result-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.result-actions .button { flex: 1; min-height: 44px; padding: .65rem .8rem; font-size: .875rem; }
.error-message { margin: 0 1.65rem 1.15rem; padding: .9rem 1rem; border: 1px solid #e8c1be; border-radius: 8px; background: #fff5f4; color: var(--error); font-size: .9375rem; }
.error-message:empty { display: none; }
.saved-note { margin: .8rem 0 0; color: #426447; font-size: .875rem; }

/* Guides, sources and explanatory content */
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(230px, 1fr); align-items: start; gap: 3.5rem; margin-block: 2rem 4.5rem; }
.article-header { max-width: 850px; margin-bottom: 2.25rem; }
.article-header h1 { max-width: 23ch; margin-bottom: 1.1rem; font-size: clamp(2.15rem, 4.5vw, 3.55rem); }
.article-header > p:not(.eyebrow):not(.guide-meta) { max-width: 65ch; color: var(--muted); font-size: 1.125rem; }
.article-content { min-width: 0; }
.article-content h2, .prose h2 { margin-top: 2.5rem; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.article-content h3, .prose h3 { margin-top: 1.75rem; font-size: 1.2rem; }
.article-content > :first-child, .article-section > :first-child { margin-top: 0; }
.article-content p, .prose p { max-width: 75ch; }
.article-content li, .prose li { padding-left: .1rem; }
.article-section { padding-top: 1.5rem; margin-top: 1.5rem; border-top: 1px solid var(--line); scroll-margin-top: 30px; }
.article-section:first-child { padding-top: 0; border-top: 0; }
.article-section h2 { margin-top: 0; }
.article-aside { position: sticky; top: 24px; }
.toc { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.toc h2, .toc h3 { margin: 0 0 .85rem; font-size: 1rem; letter-spacing: -.01em; }
.toc ul, .toc ol { margin: 0; padding: 0; list-style: none; }
.toc li + li { margin-top: .3rem; }
.toc a { display: block; padding-block: .4rem; color: #52685c; font-size: .875rem; line-height: 1.5; text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.source-list { padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); font-size: .9375rem; overflow-wrap: anywhere; }
.source-list h2, .source-list h3 { margin-top: 0; font-size: 1.05rem; }
.source-list ul { margin-bottom: 0; }
.source-list li { padding-left: 0; }
.related-box { margin-top: 1.25rem; padding: 1.4rem; border: 1px solid #d5e0c8; border-radius: var(--radius); background: var(--lime-light); }
.related-box h2, .related-box h3 { margin-top: 0; margin-bottom: .65rem; font-size: 1.1rem; }
.related-box p { color: #58674d; font-size: .9375rem; }
.related-box .button { width: 100%; }
.faq-list { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 0; color: var(--ink); font-size: 1rem; font-weight: 650; line-height: 1.45; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex-shrink: 0; color: #5a725d; font-size: 1.4rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details > :not(summary) { margin-top: 0; padding-right: 2rem; color: var(--muted); }
.formula-box { padding: 1.15rem 1.25rem; margin-block: 1.25rem; border: 1px solid #d7e2cc; border-left: 3px solid #89a567; border-radius: 0 10px 10px 0; background: var(--lime-light); color: var(--ink); font-size: .9375rem; line-height: 1.7; overflow-wrap: anywhere; }
.formula-box code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9rem; white-space: normal; }
.formula-box p:last-child { margin-bottom: 0; }
.prose { max-width: 800px; padding-block: 1rem 3rem; }
.prose > :first-child { margin-top: 0; }
.callout { padding: 1.2rem 1.4rem; margin-block: 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.callout h2, .callout h3 { margin-top: 0; font-size: 1.1rem; }
.callout p:last-child { margin-bottom: 0; }
table { width: 100%; margin-block: 1.5rem; border-collapse: collapse; font-size: .9375rem; text-align: left; }
th, td { padding: .8rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); color: var(--ink); font-weight: 650; }
.table-wrap { overflow-x: auto; margin-block: 1.5rem; border: 1px solid var(--line); border-radius: 10px; }
.table-wrap table { margin: 0; }
.table-wrap tr:last-child td { border-bottom: 0; }

/* Footer */
.site-footer { margin-top: 1rem; padding-top: 3rem; border-top: 1px solid var(--line); background: var(--paper); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem; padding-bottom: 2.5rem; }
.footer-inner > div:first-child { max-width: 390px; }
.footer-inner p { margin: .85rem 0 0; color: var(--muted); font-size: .875rem; line-height: 1.65; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem 1.5rem; max-width: 520px; padding-top: .4rem; }
.footer-links a { color: #52675b; font-size: .875rem; text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.15rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-bottom p { margin: 0; }

@media (min-width: 1300px) {
  .hero { gap: 5rem; }
}
@media (max-width: 1000px) {
  .hero { gap: 2.5rem; padding-block: 60px; }
  .desktop-nav { gap: 0; }
  .nav-link { padding-inline: .65rem; }
  .calculator-layout { grid-template-columns: minmax(0, 1.55fr) minmax(275px, 1fr); gap: 1.2rem; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 2rem; }
  .tool-card, .guide-card { padding: 1.25rem; }
}
@media (max-width: 780px) {
  .container { width: min(1160px, calc(100% - 36px)); }
  .header-inner { min-height: 74px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-nav { display: block; padding-top: .5rem; }
  .hero { grid-template-columns: 1fr; gap: 2.25rem; padding-block: 44px 48px; }
  .hero-copy h1 { max-width: 15ch; font-size: clamp(2.55rem, 8vw, 3.8rem); }
  .hero-copy > p:not(.eyebrow), .hero-copy .lead { max-width: 58ch; }
  .hero-visual { width: 100%; max-width: 580px; margin-inline: auto; }
  .section { padding-block: 48px; }
  .section-heading { display: block; margin-bottom: 1.5rem; }
  .section-heading > a { display: inline-block; margin-top: .75rem; }
  .tool-grid, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .tool-grid > :last-child:nth-child(odd), .guide-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .steps-row { gap: 1.25rem; }
  .calculator-layout { grid-template-columns: 1fr; gap: 1.4rem; }
  .result-card { position: static; }
  .result-main { font-size: 3rem; }
  .article-layout { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
  .article-aside { position: static; }
  .article-aside .toc { display: none; }
  .article-header h1 { max-width: 23ch; }
  .footer-inner { gap: 1.5rem; }
  .footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex-shrink: 0; gap: .6rem 1rem; }
}
@media (max-width: 520px) {
  .container { width: calc(100% - 32px); }
  .brand { gap: .6rem; font-size: 1.2rem; }
  .brand-mark { width: 35px; height: 35px; border-radius: 9px; }
  .brand-mark svg { width: 22px; height: 22px; }
  .hero { padding-block: 34px 40px; }
  .hero-copy h1 { font-size: clamp(2.3rem, 10vw, 3rem); }
  .hero-copy > p:not(.eyebrow), .hero-copy .lead { font-size: 1.0625rem; }
  .hero-actions { gap: .6rem; }
  .hero-actions .button { flex: 1 1 auto; }
  .trust-row { gap: .45rem 1rem; }
  .hero-visual { padding: .8rem; border-radius: 18px; }
  .tool-grid, .guide-grid, .steps-row { grid-template-columns: 1fr; }
  .tool-grid > :last-child:nth-child(odd), .guide-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .tool-card, .guide-card { padding: 1.4rem; }
  .tool-card p { margin-bottom: 1rem; }
  .steps-row { gap: 1.3rem; }
  .section { padding-block: 38px; }
  .section-heading h2 { font-size: 1.8rem; }
  .breadcrumbs { gap: .35rem; margin-block: 20px 24px; }
  .page-intro h1 { font-size: 2.15rem; line-height: 1.15; }
  .page-intro > p:not(.eyebrow) { font-size: 1rem; }
  .calculator-layout { margin-top: 1.5rem; }
  .calculator-form, .result-card { border-radius: 14px; }
  .form-section { padding: 1.25rem; }
  .form-grid { gap: 1rem .8rem; }
  .form-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field input:not([type="checkbox"]):not([type="radio"]), .field select { padding-left: .7rem; }
  .input-wrap input:not([type="checkbox"]):not([type="radio"]) { padding-right: 3.2rem; }
  .unit { right: .7rem; }
  .form-actions { padding: .9rem 1.25rem 1.25rem; }
  .form-actions .button { flex-basis: 100%; }
  .form-actions .button.secondary { flex: 1 1 100%; }
  .error-message { margin-inline: 1.25rem; }
  .result-card { padding: 1.4rem; }
  .article-header { margin-bottom: 1.5rem; }
  .article-header h1 { font-size: 2.2rem; line-height: 1.15; }
  .article-header > p:not(.eyebrow):not(.guide-meta) { font-size: 1.0625rem; }
  .article-layout { margin-top: 1.5rem; }
  .article-content h2, .prose h2 { font-size: 1.6rem; }
  .formula-box, .callout { padding: 1rem; }
  .faq-list details > :not(summary) { padding-right: 0; }
  th, td { padding: .7rem .6rem; font-size: .875rem; }
  .site-footer { padding-top: 2rem; }
  .footer-inner { display: block; padding-bottom: 1.75rem; }
  .footer-links { margin-top: 1.4rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-bottom { display: block; padding-block: 1rem; }
  .footer-bottom > * + * { margin-top: .4rem; }
}
@media (max-width: 360px) {
  .container { width: calc(100% - 24px); }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .hero-actions .button { flex-basis: 100%; }
  .result-actions .button { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  @page { margin: 16mm; }
  body { background: white; color: #111; font-size: 11pt; line-height: 1.5; }
  .container { width: 100%; max-width: none; }
  .site-header { border: 0; }
  .header-inner { min-height: 48px; margin-bottom: 1rem; }
  .desktop-nav, .mobile-nav, .menu-toggle, .skip-link, .breadcrumbs, .site-footer, .hero-actions, .form-actions, .result-actions, .article-aside, .button, .saved-note { display: none !important; }
  .brand { font-size: 16pt; }
  .brand-mark { width: 30px; height: 30px; border: 1px solid #333; background: white; color: #111; }
  h1, .page-intro h1, .article-header h1 { max-width: none; font-size: 25pt; }
  h2, .article-content h2, .prose h2 { font-size: 17pt; }
  h3 { font-size: 13pt; }
  h1, h2, h3, h4 { color: #111; break-after: avoid; }
  p, li { orphans: 3; widows: 3; }
  a { color: #111; }
  .hero, .calculator-layout, .article-layout { display: block; margin-block: 1rem; padding: 0; }
  .hero-visual { max-width: 80%; margin: 1rem auto; }
  .section { padding-block: 1rem; }
  .calculator-form, .result-card, .tool-card, .guide-card, .callout, .source-list { box-shadow: none; background: white; border-color: #aaa; }
  .form-section { padding: 1rem; }
  .result-card { position: static; margin-top: 1rem; break-inside: avoid; }
  .result-main { font-size: 28pt; }
  .result-line > *, .result-footer, .hint, .page-intro > p:not(.eyebrow) { color: #333; }
  .field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea { min-height: 36px; border-color: #aaa; color: #111; box-shadow: none; }
  .tool-grid, .guide-grid, .steps-row { gap: 1rem; }
  .tool-card, .guide-card, .step { break-inside: avoid; }
  .formula-box { background: white; border-color: #aaa; color: #111; }
  .faq-list summary { padding-block: .7rem; }
  .faq-list summary::after { display: none; }
  .faq-list details > * { display: block !important; }
  .error-message { color: #111; background: white; border-color: #111; }
}
