:root {
    --ink: #17231f;
    --muted: #5b6762;
    --forest: #123c34;
    --forest-deep: #0b2924;
    --green: #1d6b5b;
    --mint: #dcebe2;
    --mint-light: #eef5ef;
    --gold: #d5a83d;
    --gold-light: #f5e9c8;
    --paper: #f7f6f1;
    --white: #ffffff;
    --line: #dce2dd;
    --danger: #85463c;
    --shadow: 0 18px 50px rgba(19, 48, 40, .09);
    --radius: 18px;
    --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
::selection { color: var(--forest-deep); background: var(--gold-light); }

h1, h2, h3, h4 {
    margin: 0 0 .65em;
    color: var(--forest-deep);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.025em;
}
h1 { font-size: clamp(2.45rem, 5vw, 4.5rem); }
h2 { margin-top: 1.6em; font-size: clamp(1.8rem, 3vw, 2.55rem); }
h3 { margin-top: 1.5em; font-size: 1.35rem; }
h4 { margin-top: 1.3em; font-size: 1.08rem; }
p { margin: 0 0 1.25em; }
ul, ol { margin: 0 0 1.5em; padding-left: 1.35em; }
li + li { margin-top: .45em; }
strong { color: var(--forest-deep); }
small { font-size: .84rem; }

.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 800px); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-soft { background: var(--paper); }
.section-mint { background: var(--mint-light); }
.center { text-align: center; }
.muted { color: var(--muted); }
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
    color: var(--green);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .15em;
    line-height: 1.4;
    text-transform: uppercase;
}
.eyebrow::before { width: 24px; height: 2px; background: var(--gold); content: ""; }
.lead { color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.28rem); line-height: 1.65; }
.section-heading { max-width: 720px; margin-bottom: 40px; }
.section-heading h2 { margin-top: 0; }
.section-heading.center { margin-inline: auto; }

.skip-link { position: fixed; top: -100px; left: 20px; z-index: 1000; padding: 10px 18px; color: var(--white); background: var(--forest); }
.skip-link:focus { top: 15px; }
.reading-progress { position: fixed; inset: 0 0 auto; z-index: 1001; height: 3px; pointer-events: none; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--gold); }
.notice-bar { padding: 6px 20px; border-bottom: 1px solid var(--line); color: var(--muted); background: var(--paper); font-size: .72rem; text-align: center; letter-spacing: .01em; }
.disclaimer-section { padding: 18px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.site-disclaimer { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.6; text-align: center; }
.site-disclaimer strong { font-weight: 650; }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(220, 226, 221, .85); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); }
.header-inner { display: flex; min-height: 78px; align-items: center; gap: 28px; }
.logo { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; color: var(--forest-deep); font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em; text-decoration: none; }
.logo img { width: 38px; height: 38px; }
.logo span span { color: var(--green); }
.main-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.main-nav a { position: relative; padding: 26px 0; color: #34453f; font-size: .86rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); }
.main-nav a[aria-current="page"]::after { position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; background: var(--gold); content: ""; }
.nav-cta { padding: 10px 17px !important; border: 1px solid var(--line); border-radius: 8px; }
.nav-cta[aria-current="page"]::after { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: 8px; color: var(--forest); background: var(--white); }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; content: ""; }

.hero { position: relative; overflow: hidden; color: var(--white); background: var(--forest-deep); }
.hero::before { position: absolute; inset: 0; opacity: .09; background-image: linear-gradient(rgba(255,255,255,.3) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.3) 1px, transparent 1px); background-size: 54px 54px; content: ""; mask-image: linear-gradient(to right, black, transparent 85%); }
.hero-inner { position: relative; display: grid; min-height: 610px; align-items: center; grid-template-columns: 1.05fr .95fr; gap: 60px; padding-top: 70px; padding-bottom: 70px; }
.hero h1 { max-width: 720px; color: var(--white); }
.hero h1 em { color: #efcc79; font-style: normal; }
.hero p { max-width: 650px; color: #d7e3dd; }
.hero .eyebrow { color: #b9d8ca; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; filter: drop-shadow(0 28px 30px rgba(0,0,0,.2)); }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 12px 21px; border: 1px solid transparent; border-radius: 8px; font-size: .9rem; font-weight: 750; line-height: 1.3; text-decoration: none; }
.btn-primary { color: var(--forest-deep); background: var(--gold); }
.btn-primary:hover { color: var(--forest-deep); background: #e2ba58; }
.btn-secondary { border-color: #6d8a80; color: var(--white); background: transparent; }
.btn-secondary:hover { color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { color: var(--white); background: var(--green); }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 750; text-decoration: none; }
.text-link::after { content: "→"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(4px); }

.trust-strip { border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; align-items: center; gap: 13px; padding: 24px 28px; border-right: 1px solid var(--line); }
.trust-item:first-child { border-left: 1px solid var(--line); }
.trust-item b { display: block; color: var(--forest-deep); font-size: .9rem; }
.trust-item small { display: block; color: var(--muted); }
.trust-icon { display: grid; width: 38px; height: 38px; flex-shrink: 0; place-items: center; border-radius: 50%; color: var(--green); background: var(--mint); font-weight: 800; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide-card { display: flex; overflow: hidden; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .2s, box-shadow .2s; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.guide-card > img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; background: var(--mint-light); }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 25px; }
.card-kicker { margin-bottom: 10px; color: var(--green); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.card-body h3 { margin-top: 0; font-size: 1.45rem; }
.card-body h3 a { color: var(--forest-deep); text-decoration: none; }
.card-body p { color: var(--muted); font-size: .93rem; }
.card-body .text-link { margin-top: auto; }
.card-featured { border: 2px solid var(--gold); }

.split { display: grid; align-items: center; grid-template-columns: 1fr 1fr; gap: 70px; }
.split h2 { margin-top: 0; }
.split-art { padding: 30px; border-radius: 24px; background: var(--mint-light); }
.number-list { padding: 0; list-style: none; counter-reset: steps; }
.number-list li { position: relative; padding-left: 50px; counter-increment: steps; }
.number-list li::before { position: absolute; top: 1px; left: 0; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--forest); background: var(--mint); font-size: .8rem; font-weight: 800; content: counter(steps, decimal-leading-zero); }

.article-hero { padding: 64px 0 54px; border-bottom: 1px solid var(--line); background: var(--paper); }
.breadcrumbs { margin-bottom: 28px; color: var(--muted); font-size: .8rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li:not(:last-child)::after { margin-left: 8px; color: #9ca69f; content: "/"; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.article-hero-grid { display: grid; align-items: center; grid-template-columns: 1.25fr .75fr; gap: 55px; }
.article-hero h1 { margin-bottom: 22px; font-size: clamp(2.4rem, 4.8vw, 4rem); }
.article-hero .lead { max-width: 760px; }
.article-hero-art { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 25px; color: var(--muted); font-size: .8rem; }
.article-layout { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) 270px; gap: 70px; padding-top: 60px; padding-bottom: 85px; }
.article-content { max-width: 780px; }
.article-content > p:first-of-type { color: #35463f; font-size: 1.13rem; }
.article-content h2 { scroll-margin-top: 110px; }
.article-content h3 { scroll-margin-top: 110px; }
.article-content a { overflow-wrap: anywhere; }
.article-sidebar { position: sticky; top: 110px; }
.toc { padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.toc-title { display: block; margin-bottom: 13px; color: var(--forest-deep); font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 18px; font-size: .82rem; line-height: 1.45; }
.toc li { margin: 0 0 11px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--green); }
.sidebar-note { margin-top: 20px; padding: 20px; border-radius: 12px; color: #e0ebe5; background: var(--forest); font-size: .8rem; }
.sidebar-note strong { display: block; margin-bottom: 6px; color: var(--white); }
.sidebar-note a { color: #efcc79; }

.callout { margin: 30px 0; padding: 23px 25px; border-left: 4px solid var(--green); border-radius: 0 10px 10px 0; background: var(--mint-light); }
.callout > :last-child { margin-bottom: 0; }
.callout-title { display: block; margin-bottom: 6px; color: var(--forest-deep); font-weight: 800; }
.callout-warning { border-left-color: var(--gold); background: #fcf7e9; }
.formula { overflow-x: auto; margin: 28px 0; padding: 22px; border: 1px solid #c8d9ce; border-radius: 10px; color: var(--forest-deep); background: var(--mint-light); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .93rem; text-align: center; white-space: nowrap; }
.example { margin: 30px 0; padding: 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.example h3, .example h4 { margin-top: 0; }
.example > :last-child { margin-bottom: 0; }
.checklist { padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { position: absolute; left: 0; color: var(--green); font-weight: 900; content: "✓"; }
.cross-list { padding: 0; list-style: none; }
.cross-list li { position: relative; padding-left: 30px; }
.cross-list li::before { position: absolute; left: 0; color: var(--danger); font-weight: 900; content: "×"; }

.table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
caption { padding: 15px 18px; color: var(--muted); background: var(--paper); font-size: .8rem; text-align: left; }
th, td { min-width: 130px; padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--forest-deep); background: var(--mint-light); font-size: .78rem; letter-spacing: .025em; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 650; }

.rate-card { display: grid; margin: 30px 0; overflow: hidden; grid-template-columns: 1fr 1fr; border-radius: 14px; color: var(--white); background: var(--forest); }
.rate-card > div { padding: 26px; }
.rate-card > div + div { border-left: 1px solid #476e64; }
.rate-value { display: block; margin: 4px 0; color: #efcc79; font-family: Georgia, serif; font-size: 2.5rem; line-height: 1.1; }
.rate-label { color: #d7e3dd; font-size: .8rem; }
.rate-card small { display: block; grid-column: 1 / -1; padding: 12px 26px; color: #d7e3dd; background: var(--forest-deep); }

.faq-list { margin-top: 25px; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; padding: 20px 40px 20px 0; color: var(--forest-deep); font-weight: 750; line-height: 1.45; list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { position: absolute; top: 18px; right: 5px; color: var(--green); font-size: 1.4rem; font-weight: 400; content: "+"; }
details[open] summary::after { content: "−"; }
details > div { padding: 0 30px 20px 0; color: var(--muted); }
details > div > :last-child { margin-bottom: 0; }
.sources { margin-top: 55px; padding-top: 30px; border-top: 1px solid var(--line); }
.sources h2 { margin-top: 0; font-size: 1.5rem; }
.sources ol { font-size: .83rem; }
.sources li { margin-bottom: 12px; }
.source-note { color: var(--muted); font-size: .78rem; }
.article-footer-nav { display: grid; margin-top: 50px; grid-template-columns: 1fr 1fr; gap: 20px; }
.article-footer-nav a { padding: 20px; border: 1px solid var(--line); border-radius: 10px; color: var(--forest-deep); text-decoration: none; }
.article-footer-nav a:last-child { text-align: right; }
.article-footer-nav small { display: block; color: var(--muted); }

.glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.term { padding: 22px; border: 1px solid var(--line); border-radius: 12px; }
.term h3 { margin: 0 0 8px; font-size: 1.2rem; }
.term p { margin: 0; color: var(--muted); font-size: .88rem; }
.resource-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.resource-card { padding: 25px; border: 1px solid var(--line); border-radius: 12px; }
.resource-card h3 { margin-top: 0; }
.resource-card h3 a { color: var(--forest-deep); text-decoration: none; }
.resource-card h3 a:hover { color: var(--green); }
.resource-card p { color: var(--muted); font-size: .9rem; }
.resource-list + .section-heading { margin-top: 60px; }

.site-footer { color: #c4d2cc; background: var(--forest-deep); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 45px; padding-top: 60px; padding-bottom: 45px; }
.site-footer .logo { margin-bottom: 18px; color: var(--white); }
.footer-about p { max-width: 340px; font-size: .83rem; }
.footer-col h2 { margin: 5px 0 18px; color: var(--white); font-family: inherit; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.footer-col a { display: block; margin: 10px 0; color: #c4d2cc; font-size: .83rem; text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-disclaimer { padding: 22px 0; border-top: 1px solid #36534c; font-size: .75rem; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding: 20px 0 28px; border-top: 1px solid #36534c; font-size: .75rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 1020px) {
    .main-nav { gap: 16px; }
    .main-nav a { font-size: .8rem; }
    .hero-inner { gap: 35px; }
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .article-layout { gap: 40px; grid-template-columns: minmax(0, 1fr) 240px; }
    .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 25px; }
}

@media (max-width: 820px) {
    html { scroll-padding-top: 90px; }
    .section { padding: 65px 0; }
    .header-inner { min-height: 68px; }
    .nav-toggle { display: block; }
    .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
    .main-nav.is-open { display: block; }
    .main-nav a { display: block; padding: 11px 5px; border-bottom: 1px solid var(--line); }
    .main-nav a[aria-current="page"]::after { display: none; }
    .main-nav .nav-cta { margin-top: 12px; border-bottom: 1px solid var(--line); text-align: center; }
    .hero-inner { min-height: auto; grid-template-columns: 1fr; padding-top: 65px; }
    .hero-art { max-width: 580px; margin-inline: auto; }
    .trust-inner { grid-template-columns: 1fr; }
    .trust-item, .trust-item:first-child { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
    .trust-item:last-child { border-bottom: 0; }
    .split { grid-template-columns: 1fr; gap: 35px; }
    .article-hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .article-hero-art { max-width: 520px; }
    .article-layout { display: flex; flex-direction: column; padding-top: 40px; }
    .article-sidebar { position: static; width: 100%; order: -1; }
    .sidebar-note { display: none; }
    .toc ol { columns: 2; column-gap: 30px; }
    .article-content { max-width: none; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 580px) {
    body { font-size: 16px; }
    .container, .narrow { width: min(calc(100% - 28px), var(--max)); }
    .section { padding: 52px 0; }
    .hero-inner { padding-top: 50px; padding-bottom: 50px; }
    .hero-actions .btn { width: 100%; }
    .card-grid, .glossary, .resource-list { grid-template-columns: 1fr; }
    .article-hero { padding: 40px 0; }
    .article-meta { display: block; }
    .article-meta span { display: block; margin-top: 5px; }
    .toc ol { columns: 1; }
    .rate-card { grid-template-columns: 1fr; }
    .rate-card > div + div { border-top: 1px solid #476e64; border-left: 0; }
    .article-footer-nav { grid-template-columns: 1fr; }
    .article-footer-nav a:last-child { text-align: left; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 8px; }
    th, td { padding: 12px; }
}

@media print {
    .notice-bar, .site-header, .reading-progress, .article-sidebar, .site-footer, .article-footer-nav, .hero-actions { display: none !important; }
    body { color: #000; font-size: 11pt; }
    .article-hero { padding: 20px 0; background: transparent; }
    .article-layout { display: block; padding: 20px 0; }
    .article-content { max-width: none; }
    a { color: #000; }
    .callout, .example { break-inside: avoid; }
}

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

.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; }
.header-tools { display: flex; flex-shrink: 0; align-items: center; gap: 7px; }
.header-icon { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: var(--forest); background: var(--white); }
.header-icon:hover { color: var(--green); background: var(--mint-light); }
.theme-toggle[aria-pressed="true"] { color: var(--gold); background: var(--forest); }
.toc a.is-active { color: var(--green); font-weight: 800; }
.search-open { overflow: hidden; }
.search-dialog { width: min(calc(100% - 30px), 680px); max-height: min(78vh, 720px); padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; color: var(--ink); background: var(--white); box-shadow: 0 30px 100px rgba(0, 0, 0, .28); }
.search-dialog::backdrop { background: rgba(5, 22, 18, .72); backdrop-filter: blur(5px); }
.search-panel { padding: 24px; }
.search-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; color: var(--forest-deep); font-family: Georgia, serif; font-size: 1.3rem; }
.search-close { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: transparent; font-size: 1.5rem; line-height: 1; }
.search-field input { width: 100%; padding: 15px 17px; border: 2px solid var(--green); border-radius: 10px; color: var(--ink); background: var(--paper); outline: none; }
.search-field input:focus { box-shadow: 0 0 0 4px rgba(213, 168, 61, .25); }
.search-hint { margin: 9px 0 16px; color: var(--muted); font-size: .75rem; }
.search-results { max-height: 450px; overflow-y: auto; }
.search-result { display: grid; padding: 15px 12px; border-top: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.search-result:hover, .search-result:focus { background: var(--mint-light); }
.search-result strong { margin: 3px 0; font-size: .95rem; }
.search-result > span:last-child { font-size: .8rem; }
.search-result-section { color: var(--green); font-size: .67rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.search-empty { padding: 25px 5px; color: var(--muted); text-align: center; }

.calculator { margin: 32px 0; padding: 26px; border: 1px solid #b8d0c1; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.calculator-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.calculator-heading h3 { margin: 0 0 6px; }
.calculator-heading p { margin: 0; color: var(--muted); font-size: .85rem; }
.calculator-badge { flex-shrink: 0; padding: 5px 9px; border-radius: 20px; color: var(--forest); background: var(--mint); font-size: .65rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.calculator-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.calculator-field { display: grid; gap: 6px; }
.calculator-field label { color: var(--forest-deep); font-size: .78rem; font-weight: 750; }
.input-suffix { position: relative; }
.input-suffix input { width: 100%; min-height: 46px; padding: 10px 38px 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); }
.input-suffix span { position: absolute; top: 10px; right: 13px; color: var(--muted); pointer-events: none; }
.calculator-action { margin-top: 17px; }
.calculator-action .btn { min-height: 42px; padding: 9px 18px; }
.calculator-output { display: grid; margin-top: 20px; grid-template-columns: repeat(3, 1fr); border-radius: 10px; background: var(--forest); }
.calculator-output.single { grid-template-columns: 1fr; }
.calculator-metric { padding: 18px; text-align: center; }
.calculator-metric + .calculator-metric { border-left: 1px solid #476e64; }
.calculator-metric output { display: block; color: #efcc79; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 600; }
.calculator-metric span { color: #d7e3dd; font-size: .7rem; }
.calculator-note { margin: 12px 0 0; color: var(--muted); font-size: .75rem; }

:root[data-theme="dark"] { color-scheme: dark; --ink: #e2ece7; --muted: #a8bbb1; --green: #7ac7ae; --mint: #29493e; --mint-light: #172a24; --gold-light: #493f25; --paper: #131f1b; --white: #0f1916; --line: #30463e; --forest-deep: #e6f0eb; --shadow: 0 18px 50px rgba(0, 0, 0, .25); }
:root[data-theme="dark"] body { background: #0f1916; }
:root[data-theme="dark"] .notice-bar { color: #a8bbb1; background: #131f1b; }
:root[data-theme="dark"] .hero, :root[data-theme="dark"] .site-footer, :root[data-theme="dark"] .rate-card small { color: #e4eee9; background: #0b2924; }
:root[data-theme="dark"] .site-header { background: rgba(15, 25, 22, .96); }
:root[data-theme="dark"] .main-nav a { color: #bfd0c7; }
:root[data-theme="dark"] .main-nav a:hover, :root[data-theme="dark"] .main-nav a[aria-current="page"] { color: var(--green); }
:root[data-theme="dark"] .main-nav { background: #0f1916; }
:root[data-theme="dark"] .article-content > p:first-of-type { color: #c5d5cc; }
:root[data-theme="dark"] .hero h1, :root[data-theme="dark"] .site-footer .logo, :root[data-theme="dark"] .footer-col h2 { color: #fff; }
:root[data-theme="dark"] .btn-primary { color: #0b2924; }
:root[data-theme="dark"] .btn-primary:hover { color: #0b2924; }
:root[data-theme="dark"] .hero .eyebrow { color: #b9d8ca; }
:root[data-theme="dark"] .calculator-output { background: #123c34; }
:root[data-theme="dark"] .calculator-badge { color: #dcebe2; }
:root[data-theme="dark"] .search-dialog::backdrop { background: rgba(0, 0, 0, .78); }

@media (max-width: 1020px) {
    .header-tools { gap: 4px; }
    .header-icon { width: 36px; height: 36px; }
}
@media (max-width: 820px) {
    .header-tools { margin-left: auto; }
    .nav-toggle { margin-left: 4px; }
}
@media (max-width: 580px) {
    .calculator { padding: 20px 16px; }
    .calculator-grid { grid-template-columns: 1fr; }
    .calculator-output { grid-template-columns: 1fr; }
    .calculator-metric + .calculator-metric { border-top: 1px solid #476e64; border-left: 0; }
    .calculator-heading { display: block; }
    .calculator-badge { display: inline-block; margin-top: 12px; }
    .search-panel { padding: 18px; }
    .search-heading { font-size: 1.1rem; }
    .search-hint { font-size: .68rem; }
}

:root[data-theme="dark"] .header-icon { color: #c4d2cc; }
:root[data-theme="dark"] .header-icon:hover { color: #efcc79; }
:root[data-theme="dark"] .theme-toggle[aria-pressed="true"] { color: #efcc79; }
:root[data-theme="dark"] .hero .btn-secondary { color: #fff; }
