:root {
  color-scheme: light;
  --ink: #172e40;
  --muted: #526572;
  --green: #17684d;
  --green-hover: #10513c;
  --green-soft: #eaf3ed;
  --paper: #f7f9f8;
  --white: #ffffff;
  --line: #dce4df;
  --error: #a52b29;
  --error-soft: #fff3f1;
  --focus: #245edb;
  --radius: 16px;
  --shadow: 0 8px 28px rgb(23 46 64 / 5%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button { color: inherit; }
p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { line-height: 1.16; letter-spacing: -.035em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.3vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.1rem; }
svg { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
#main:focus { outline: none; }
.wrap { width: min(100%, 1256px); padding-inline: 28px; margin-inline: auto; }
.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; left: 20px; top: -100px; padding: 12px 20px; background: var(--white); border: 2px solid var(--focus); border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.eyebrow { font-size: .7rem; font-weight: 750; letter-spacing: .11em; color: var(--green); display: flex; align-items: center; gap: 9px; }
.eyebrow svg { width: 18px; height: 18px; }
.lead { color: var(--muted); font-size: 1.06rem; line-height: 1.7; max-width: 650px; }
.status-dot { display: inline-block; width: 7px; height: 7px; background: var(--green); border-radius: 50%; flex-shrink: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; font-size: .9rem; line-height: 1.35; font-weight: 650; transition: background .15s, border-color .15s, box-shadow .15s; }
.button svg { width: 18px; height: 18px; }
.button.primary { color: var(--white); background: var(--green); }
.button.primary:hover { background: var(--green-hover); }
.button.secondary { color: var(--ink); background: var(--white); border-color: #bac8bf; }
.button.secondary:hover { background: var(--paper); border-color: var(--green); }
.button.small { min-height: 42px; padding: 9px 16px; font-size: .82rem; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .65; }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 650; color: var(--green); min-height: 44px; }
.text-link:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link svg { width: 18px; height: 18px; }
/* Navigation */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 1.34rem; letter-spacing: -.05em; white-space: nowrap; }
.brand-highlight { color: var(--green); }
.brand-mark { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; border-radius: 9px; background: var(--green); color: var(--white); }
.brand-mark svg { width: 30px; height: 30px; }
.desktop-nav { display: flex; align-items: center; gap: 30px; }
.nav-link { font-size: .85rem; font-weight: 550; color: var(--muted); padding-block: 12px; }
.nav-link:hover, .nav-link[aria-current] { color: var(--green); text-decoration: underline; text-underline-offset: 7px; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-weight: 650; font-size: .85rem; list-style: none; min-height: 44px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary svg { width: 16px; }
.mobile-nav[open] summary { border-color: var(--green); }
.mobile-nav[open] summary svg { transform: rotate(180deg); }
.mobile-nav nav { position: absolute; right: 0; top: calc(100% + 10px); width: 245px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); background: var(--white); }
.mobile-nav nav a { display: block; padding: 12px; font-size: .9rem; border-radius: 6px; }
.mobile-nav nav a:hover { background: var(--green-soft); }
/* Home: a useful search first, followed by actual tools. */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .85fr); align-items: center; gap: 80px; padding-block: 66px; }
.hero h1 { font-size: clamp(3rem, 5vw, 4.3rem); line-height: 1.06; letter-spacing: -.05em; margin-top: 22px; }
.hero h1 span { color: var(--green); }
.hero-description { max-width: 540px; margin-top: 22px; color: var(--muted); font-size: 1.08rem; line-height: 1.7; }
.hero-search { margin-top: 30px; max-width: 590px; }
.hero-search > label { display: block; font-weight: 650; font-size: .88rem; margin-bottom: 10px; }
.searchbox { display: flex; align-items: center; gap: 12px; background: var(--white); padding: 5px 14px; min-height: 58px; border: 1px solid #9aafa1; border-radius: 10px; box-shadow: 0 3px 10px rgb(23 46 64 / 3%); }
.searchbox > svg { color: var(--green); }
.searchbox input { border: 0; outline: none; width: 100%; min-width: 0; padding: 10px 0; background: transparent; color: var(--ink); font-size: .94rem; }
.searchbox input::placeholder { color: var(--muted); opacity: 1; }
.searchbox:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.searchbox input:focus-visible { outline: none; }
.searchbox input::-webkit-search-cancel-button { appearance: none; }
.search-clear { display: flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; border: 0; background: var(--paper); border-radius: 6px; }
.search-clear:hover { background: var(--green-soft); }
.search-status { color: var(--muted); font-size: .82rem; line-height: 1.7; margin-top: 14px; overflow-wrap: anywhere; }
.search-results { list-style: none; padding: 4px; margin: 10px 0 0; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.search-results li + li { border-top: 1px solid var(--line); }
.search-results a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 12px; border-radius: 6px; }
.search-results a:hover, .search-results a:focus-visible { background: var(--green-soft); }
.search-result-title { font-size: .88rem; font-weight: 650; overflow-wrap: anywhere; }
.search-result-category { color: var(--muted); font-size: .7rem; flex-shrink: 0; }
#search-help { font-size: .78rem; color: var(--muted); margin-top: 9px; }
.hero-benefits { display: flex; gap: 17px; flex-wrap: wrap; margin-top: 24px; font-size: .75rem; color: #405e4c; }
.hero-benefits span { display: inline-flex; align-items: center; gap: 6px; }
.hero-benefits svg { width: 16px; height: 16px; color: var(--green); }
.hero-shortcut { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow); position: relative; }
.shortcut-top { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; font-size: .59rem; letter-spacing: .08em; font-weight: 700; color: var(--muted); }
.hero-shortcut h2 { font-size: 1.55rem; line-height: 1.24; }
.hero-shortcut > p { font-size: .85rem; line-height: 1.7; color: var(--muted); margin-top: 13px; }
.shipment-example { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 20px 0; margin-top: 8px; }
.shipment-example div { display: flex; flex-direction: column; gap: 3px; }
.shipment-example div > span { color: var(--muted); font-size: .7rem; }
.shipment-example strong { font-weight: 650; font-size: 1.15rem; }
.shipment-example small { font-size: .7rem; font-weight: 500; color: var(--muted); }
.shipment-example > span { color: var(--muted); font-size: .8rem; }
.shortcut-result { background: var(--green-soft); padding: 15px 18px; border-radius: 9px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shortcut-result > span { color: #385b48; font-size: .75rem; }
.shortcut-result strong { color: var(--green); font-size: 1.9rem; letter-spacing: -.06em; }
.shortcut-result small { font-size: .95rem; }
.shortcut-link { display: flex; align-items: center; justify-content: space-between; font-size: .84rem; font-weight: 650; padding-top: 22px; color: var(--green); }
.shortcut-link:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Shared cards and collections. */
.section { padding-top: 66px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2 { margin-top: 9px; }
.section-heading > p { color: var(--muted); font-size: .85rem; line-height: 1.65; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.category-card { display: flex; flex-direction: column; padding: 23px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.category-card:hover, .tool-card:hover { border-color: #6e9a7d; box-shadow: var(--shadow); }
.category-symbol, .tool-symbol, .principle-icon { display: inline-flex; align-items: center; justify-content: center; background: var(--green-soft); color: var(--green); border-radius: 9px; width: 42px; height: 42px; }
.category-card h3 { margin-top: 20px; font-size: 1.05rem; }
.category-card > p { font-size: .81rem; color: var(--muted); line-height: 1.65; margin-top: 9px; flex: 1; }
.category-card > span:last-child { display: flex; align-items: center; justify-content: space-between; font-size: .76rem; font-weight: 600; color: var(--green); margin-top: 22px; }
.category-card > span:last-child svg { width: 17px; height: 17px; }
.tool-grid, .featured-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.featured-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.tool-grid > div { min-width: 0; }
.tool-card { height: 100%; display: flex; flex-direction: column; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.tool-card-top { display: flex; align-items: center; gap: 11px; }
.tool-symbol { width: 36px; height: 36px; }
.tool-symbol svg { width: 20px; height: 20px; }
.tool-category { font-size: .72rem; color: var(--muted); }
.tool-card-top > svg { width: 17px; height: 17px; color: var(--green); margin-left: auto; }
.tool-card h3 { font-size: 1.07rem; margin-top: 22px; }
.tool-card > p { color: var(--muted); font-size: .83rem; line-height: 1.7; margin-top: 10px; margin-bottom: 22px; flex: 1; }
.tool-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 15px; color: var(--green); font-size: .76rem; font-weight: 650; }
.tool-card-bottom svg { width: 16px; height: 16px; }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 25px; }
.category-filters button { min-height: 42px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); font-size: .8rem; font-weight: 600; color: var(--muted); }
.category-filters button:hover { border-color: var(--green); color: var(--green); }
.category-filters button[aria-pressed="true"] { color: var(--white); border-color: var(--green); background: var(--green); }
.empty-message { border: 1px dashed #8da696; background: var(--paper); border-radius: 12px; padding: 32px; color: var(--muted); }
.principles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 50px; margin-top: 75px; margin-bottom: 75px; padding-top: 35px; border-top: 1px solid var(--line); }
.principle-icon { background: transparent; justify-content: flex-start; width: 28px; height: 28px; }
.principles h2 { font-size: 1rem; letter-spacing: -.015em; margin-top: 12px; }
.principles p { font-size: .82rem; color: var(--muted); line-height: 1.8; margin-top: 9px; }
/* Category, tool and information pages. */
.page-wrap { padding-top: 25px; padding-bottom: 80px; }
.breadcrumbs { margin-bottom: 36px; color: var(--muted); font-size: .76rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px 0; flex-wrap: wrap; }
.breadcrumbs li { display: inline; overflow-wrap: anywhere; }
.breadcrumbs li + li::before { content: "/"; padding-inline: 10px; color: var(--muted); }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs a:hover { color: var(--green); }
.category-header { max-width: 780px; padding-bottom: 38px; }
.category-header > .category-symbol { margin-bottom: 20px; }
.category-header h1, .calculator-heading h1 { margin-top: 15px; }
.category-header .lead, .calculator-heading .lead { margin-top: 18px; }
.count-tag { display: inline-block; font-size: .78rem; color: #385b48; background: var(--green-soft); padding: 7px 12px; margin-top: 20px; border-radius: 6px; }
.category-tools { padding-top: 30px; border-top: 1px solid var(--line); }
.backline { margin-top: 28px; }
.calculator-heading { margin-bottom: 32px; }
.calculator-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: start; gap: 24px; }
.calc-panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: var(--white); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-heading h2 { font-size: 1.4rem; margin-top: 10px; }
.panel-heading .eyebrow { font-size: .65rem; }
.panel-symbol { color: var(--green); }
.panel-symbol svg { width: 26px; height: 26px; }
.panel-description { color: var(--muted); font-size: .8rem; margin-bottom: 25px; }
.calc-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 18px; }
.field { min-width: 0; }
.field label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-height: 22px; margin-bottom: 7px; font-size: .8rem; font-weight: 650; }
.field-unit { color: var(--muted); font-size: .73rem; font-weight: 500; white-space: nowrap; }
.field input, .field select { width: 100%; min-width: 0; min-height: 48px; padding: 11px 12px; border: 1px solid #9aafa1; border-radius: 7px; background: var(--white); color: var(--ink); font-size: .95rem; font-variant-numeric: tabular-nums; }
.field input:hover, .field select:hover { border-color: var(--green); }
.field input:focus, .field select:focus { border-color: var(--green); }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.field-hint { color: var(--muted); font-size: .7rem; line-height: 1.5; margin-top: 7px; }
.field [aria-invalid="true"] { border: 2px solid var(--error); background: var(--error-soft); padding: 10px 11px; }
.field-error { color: var(--error); font-size: .75rem; font-weight: 550; line-height: 1.6; margin-top: 7px; }
.calc-actions { display: flex; align-items: center; gap: 10px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.calc-submit { flex: 1; }
.cbm-layout { grid-template-columns: minmax(0,1.3fr) minmax(0,.7fr); }
.cbm-help { color: var(--muted); font-size: .78rem; line-height: 1.7; margin-bottom: 18px; }
.cbm-items { display: grid; gap: 18px; }
.cbm-item { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; }
.cbm-item-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.cbm-item-header h3 { font-size: 1rem; }
.cbm-item-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cbm-item-actions .button { min-height: 44px; padding: 9px 12px; }
.cbm-item .field-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 18px 12px; }
.cbm-item .field { grid-column: span 2; }
.cbm-item .field:nth-child(n+4) { grid-column: span 3; }
.cbm-item-results { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; font-size: .78rem; color: var(--muted); }
.cbm-item-results strong { display: block; color: var(--ink); font-size: .95rem; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.cbm-add { width: 100%; margin-top: 18px; }
[data-cbm-limit] { margin: 12px 0 0; }
.results-panel { background: var(--paper); position: sticky; top: 24px; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .65rem; color: #385b48; white-space: nowrap; }
.live-tag .status-dot { width: 5px; height: 5px; }
.results-grid { display: flex; flex-direction: column; }
.result-item { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 17px 0; min-width: 0; }
.result-item:last-child { border-bottom: 0; }
.result-label { font-size: .8rem; color: var(--muted); }
.result-value { color: var(--ink); font-size: 1.14rem; font-weight: 700; text-align: right; letter-spacing: -.03em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; min-width: 0; }
.featured-result { display: block; padding: 25px; background: var(--green); border: none; border-radius: 10px; margin: 7px 0 5px; }
.featured-result .result-label { display: block; color: #e2f0e8; font-size: .82rem; }
.featured-result .result-value { display: block; color: var(--white); font-size: clamp(1.8rem,3vw,2.4rem); line-height: 1.25; margin-top: 9px; text-align: left; letter-spacing: -.055em; }
.result-note { color: var(--muted); font-size: .75rem; line-height: 1.8; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; }
.result-privacy { display: flex; align-items: flex-start; gap: 7px; color: #405e4c; font-size: .72rem; line-height: 1.7; margin-top: 24px; }
.result-privacy svg { width: 16px; height: 16px; margin-top: 2px; }
.calc-error { background: var(--error-soft); border: 1px solid #c97671; border-radius: 8px; color: var(--error); font-size: .85rem; line-height: 1.7; padding: 16px; margin-top: 7px; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); gap: 24px; margin-top: 30px; }
.info-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; min-width: 0; }
.info-card h2 { font-size: 1.5rem; margin-top: 12px; margin-bottom: 17px; }
.info-card p { font-size: .86rem; color: var(--muted); line-height: 1.85; }
.info-card .eyebrow { color: var(--green); font-size: .65rem; }
.info-card h3 { font-size: .95rem; margin-top: 25px; margin-bottom: 12px; }
.formula { padding: 18px; border: 1px solid #c8dbcd; background: var(--green-soft); border-radius: 8px; color: #244e3b; font-size: .85rem; line-height: 1.9; overflow-wrap: anywhere; }
.worked-example { margin-top: 24px; padding-top: 1px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 58px; padding-block: 17px; font-size: .86rem; font-weight: 650; line-height: 1.6; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 16px; height: 16px; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin-bottom: 18px; }
.info-card .disclaimer { font-size: .75rem; margin-top: 26px; }
.disclaimer strong { color: var(--ink); }
.related { margin-top: 60px; }
.static-article { max-width: 760px; padding: 20px 0 40px; }
.static-article h1 { margin-top: 16px; }
.static-article p { color: var(--muted); line-height: 1.95; margin-top: 23px; }
.static-article .eyebrow { color: var(--green); }
.static-article .lead { margin-bottom: 35px; }
.notfound { min-height: 80vh; display: flex; align-items: flex-start; justify-content: center; flex-direction: column; gap: 24px; }
.notfound > p:not(.eyebrow) { color: var(--muted); }
/* Footer */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding: 46px 0 22px; }
.footer-main { display: grid; grid-template-columns: 1.7fr 1fr .8fr; gap: 60px; padding-bottom: 38px; }
.footer-intro p { color: var(--muted); font-size: .82rem; line-height: 1.8; margin-top: 17px; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-column h2 { font-size: .82rem; margin-bottom: 5px; letter-spacing: 0; }
.footer-column a { color: var(--muted); font-size: .78rem; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; font-size: .73rem; color: var(--muted); }
/* Responsive behavior; no horizontal carousels or clipped navigation. */
@media (max-width: 1100px) {
  .desktop-nav { gap: 20px; }
  .hero-grid { gap: 40px; }
  .hero-shortcut { padding: 23px; }
  .featured-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-card { padding: 20px; }
  .calc-panel, .info-card { padding: 24px; }
  .live-tag { display: none; }
}
@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .header-all { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 48px; }
  .hero-copy { max-width: 640px; }
  .hero-shortcut { display: none; }
  .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .calculator-layout, .content-grid { grid-template-columns: 1fr; }
  .results-panel { position: static; }
  .live-tag { display: inline-flex; }
  .principles { gap: 28px; }
  .footer-main { gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 20px; }
  .header-inner { min-height: 72px; gap: 12px; }
  .brand { font-size: 1.2rem; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; }
  .header-all { display: none; }
  .mobile-nav nav { width: min(260px, calc(100vw - 40px)); }
  .hero-grid { padding-top: 36px; padding-bottom: 32px; }
  .hero h1 { font-size: clamp(2.7rem,10.5vw,3.6rem); margin-top: 19px; }
  .hero-description { font-size: .98rem; margin-top: 20px; }
  .hero-search { margin-top: 24px; }
  .hero-search > label { font-size: .82rem; }
  .searchbox { min-height: 54px; gap: 9px; padding-inline: 11px; }
  .searchbox input { font-size: .85rem; }
  .hero-benefits { gap: 10px 16px; margin-top: 20px; font-size: .7rem; }
  .hero-benefits span:last-child { flex-basis: 100%; }
  .section { padding-top: 44px; }
  .section-heading { align-items: flex-start; gap: 14px; flex-direction: column; margin-bottom: 22px; }
  .section-heading > p { font-size: .8rem; }
  .category-grid { gap: 12px; }
  .category-card { padding: 17px; }
  .category-card h3 { font-size: .95rem; margin-top: 18px; }
  .category-card > p { display: none; }
  .category-card > span:last-child { font-size: .69rem; margin-top: 15px; gap: 5px; }
  .category-card > span:last-child svg { width: 14px; }
  .category-symbol { width: 37px; height: 37px; }
  .tool-grid, .featured-grid { grid-template-columns: 1fr; gap: 14px; }
  .tool-card { padding: 22px; }
  .tool-card h3 { margin-top: 18px; }
  .category-filters { gap: 7px; }
  .category-filters button { padding: 9px 12px; font-size: .76rem; min-height: 44px; }
  .principles { grid-template-columns: 1fr; gap: 26px; margin-block: 50px; padding-top: 30px; }
  .page-wrap { padding-top: 20px; padding-bottom: 55px; }
  .breadcrumbs { font-size: .7rem; margin-bottom: 30px; }
  .calculator-heading { margin-bottom: 26px; }
  .calculator-heading h1 { font-size: 2.1rem; }
  .lead { font-size: .95rem; }
  .calculator-layout, .content-grid { gap: 18px; }
  .calc-panel, .info-card { padding: 21px; border-radius: 12px; }
  .panel-heading h2 { font-size: 1.25rem; }
  .panel-description { line-height: 1.75; }
  .field-grid { grid-template-columns: 1fr; gap: 21px; }
  .cbm-item { padding: 14px; }
  .cbm-item .field-grid { grid-template-columns: 1fr; }
  .cbm-item .field, .cbm-item .field:nth-child(n+4) { grid-column: auto; }
  .field input, .field select { font-size: 1rem; }
  .field-hint { font-size: .72rem; }
  .calc-actions { padding-top: 21px; }
  .calc-actions .button { padding-inline: 16px; }
  .featured-result { padding: 22px; }
  .featured-result .result-value { font-size: 2rem; }
  .result-item:not(.featured-result) { gap: 14px; }
  .result-label { font-size: .76rem; }
  .result-value { font-size: 1.05rem; }
  .live-tag { font-size: .6rem; }
  .related { margin-top: 45px; }
  .footer-main { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px 20px; }
  .footer-intro { grid-column: 1 / -1; }
  .footer-column a { line-height: 1.7; padding-block: 3px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .notfound h1 { font-size: 2.4rem; }
}
@media (max-width: 360px) {
  .wrap { padding-inline: 16px; }
  .category-card { padding: 15px; }
  .category-card h3 { font-size: .87rem; }
  .live-tag { display: none; }
  .featured-result .result-value { font-size: 1.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
