:root {
  color-scheme: light;
  --ink: #24342e;
  --muted: #61726a;
  --soft: #f3f1e7;
  --paper: #fffef9;
  --line: #dfe4d8;
  --green: #2f6547;
  --green-deep: #204932;
  --green-soft: #e5eee3;
  --gold: #c8753c;
  --shadow: 0 18px 54px rgba(39, 58, 45, .09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--soft); line-height: 1.62; }
a { color: var(--green-deep); }
button, input, select { font: inherit; }

.skip-link { position: absolute; z-index: 20; top: -60px; left: 16px; padding: 9px 13px; background: var(--paper); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { width: min(1160px, calc(100% - 40px)); margin: 0 auto; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-weight: 760; letter-spacing: -.03em; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px 12px 12px 4px; color: #fff; background: var(--green); font-size: 17px; font-family: Georgia, serif; font-style: italic; }
.top-nav { display: flex; align-items: center; gap: 26px; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: .91rem; font-weight: 600; }
.top-nav a:hover, .site-footer a:hover { color: var(--green); text-decoration: underline; }

.page-frame { width: min(1490px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); justify-content: center; gap: 18px; padding: 0 20px 42px; }
.content-column { width: min(100%, 920px); min-width: 0; margin: 0 auto; }
.ad-rail, .bottom-ad-slot { display: none; }
/* No ad sits between the header and the main content; side rails require desktop width. */
.has-sidebar-ads .page-frame { grid-template-columns: 160px minmax(0, 920px) 160px; align-items: start; gap: 24px; }
.has-sidebar-ads .content-column { width: 100%; }
.has-sidebar-ads .ad-rail { display: block; width: 160px; min-height: 600px; margin-top: 180px; }
.ad-slot--sidebar { width: 160px; min-height: 600px; }
.has-bottom-ads .bottom-ad-slot { display: flex; flex-direction: column; justify-content: flex-start; align-items: center; gap: 22px; min-height: 250px; padding: 28px 0 0; }
.ad-slot--banner { width: min(300px, 100%); min-height: 250px; overflow: hidden; }
.ad-slot--banner iframe { max-width: 100% !important; }
.ad-slot--native { width: 100%; min-height: 180px; }
.ad-slot--native > div { width: 100%; }
@media (max-width: 1330px) {
  .has-sidebar-ads .page-frame { grid-template-columns: minmax(0, 920px); }
  .has-sidebar-ads .ad-rail { display: none; }
}

.hero { padding: 66px 10px 34px; }
.eyebrow, .section-kicker { color: var(--green); font-size: .77rem; font-weight: 800; letter-spacing: .12em; line-height: 1.4; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 19px; }
.eyebrow-dot { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(200, 117, 60, .12); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.55rem, 6vw, 4.45rem); font-weight: 500; letter-spacing: -.055em; line-height: 1.04; }
.hero-copy { max-width: 660px; margin: 0 0 17px; color: var(--muted); font-size: 1.08rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 760; text-decoration: none; }
.text-link:hover { gap: 12px; }

.calculator-card { padding: clamp(22px, 4vw, 42px); border: 1px solid rgba(219, 225, 213, .95); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow); scroll-margin-top: 22px; }
.card-heading, .result-topline, .range-label-row, .form-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.card-heading { margin-bottom: 28px; }
.card-heading .section-kicker, .result-topline .section-kicker, .section-heading .section-kicker { margin-bottom: 7px; }
.card-heading h2, .section-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.15; }
.live-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; color: #456552; background: var(--green-soft); font-size: .78rem; font-weight: 700; }
.live-badge span { width: 7px; height: 7px; border-radius: 50%; background: #4f9a69; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 8px; font-size: .91rem; font-weight: 730; }
.unit { color: var(--muted); font-size: .78rem; font-weight: 550; }
.field input:not([type="range"]), .field select { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #cfd8cc; border-radius: 10px; outline: none; color: var(--ink); background: #fff; }
.field input:not([type="range"]):focus, .field select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47, 101, 71, .13); }
.field small { display: block; margin-top: 7px; color: var(--muted); font-size: .77rem; line-height: 1.45; }
.field-range { padding: 4px 0 0; }
.range-label-row { margin-bottom: 12px; }
.range-label-row label { margin: 0; }
.range-label-row output { min-width: 44px; color: var(--green); font-size: .95rem; font-weight: 800; text-align: right; }
.field input[type="range"] { width: 100%; height: 7px; margin: 4px 0; accent-color: var(--green); }
.form-error { margin: 18px 0 0; padding: 10px 12px; border-radius: 9px; color: #842f25; background: #fff0ec; font-size: .88rem; }
.form-actions { margin-top: 23px; padding-top: 18px; border-top: 1px solid #edf0e8; }
.button { min-height: 42px; padding: 9px 15px; border-radius: 9px; cursor: pointer; font-size: .85rem; font-weight: 740; }
.button-secondary { border: 1px solid #ced8cd; color: var(--green-deep); background: transparent; }
.button-secondary:hover { background: #f3f7f1; }
.form-note { color: var(--muted); font-size: .76rem; text-align: right; }

.results { margin-top: 27px; padding: 23px; border-radius: 17px; color: #f6f8f1; background: var(--green-deep); }
.result-topline { align-items: flex-start; }
.result-topline .section-kicker { color: #b9d3bc; }
.result-topline h3 { margin: 0; font-size: clamp(1.65rem, 4vw, 2.35rem); font-weight: 680; letter-spacing: -.04em; line-height: 1.2; }
.result-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #c9e1c9; font-size: 1.15rem; }
.result-summary { margin: 12px 0 18px; color: #d5e3d6; font-size: .9rem; }
.result-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.result-stat { min-height: 100px; padding: 14px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(255,255,255,.07); }
.stat-label, .stat-unit { display: block; color: #c3d5c5; font-size: .73rem; }
.result-stat strong { display: block; margin: 5px 0 2px; color: white; font-size: 1.45rem; font-weight: 730; letter-spacing: -.03em; }
.result-assumption { margin: 15px 0 0; color: #c7d8c9; font-size: .75rem; }

.content-section, .faq-section { padding: 56px 10px 0; }
.section-heading { margin-bottom: 19px; }
.content-section > p { color: #52645a; }
.formula-card { margin: 22px 0 27px; padding: 22px 24px; border: 1px solid #d8e2d5; border-radius: 15px; background: #edf2e9; }
.formula-label { color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.formula-card p { margin: 12px 0 0; }
.formula-card code { color: #213f2d; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .91rem; }
.formula-footnote { color: var(--muted); font-size: .84rem; }
.content-section h3 { margin: 26px 0 10px; font-size: 1.13rem; }
.tip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.tip-card { padding: 20px 18px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,254,249,.7); }
.tip-number { color: var(--gold); font-size: .75rem; font-weight: 850; letter-spacing: .12em; }
.tip-card h3 { margin: 8px 0; font-size: 1rem; }
.tip-card p { margin: 0; color: var(--muted); font-size: .84rem; }
.faq-section details { padding: 17px 2px; border-top: 1px solid #d7ded4; }
.faq-section details:last-of-type { border-bottom: 1px solid #d7ded4; }
.faq-section summary { cursor: pointer; font-weight: 740; }
.faq-section details p { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }
.disclaimer { margin: 35px 10px 10px; padding: 14px 16px; border-left: 3px solid var(--gold); color: var(--muted); background: rgba(255,255,255,.4); font-size: .83rem; }
.site-footer { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 20px 0 34px; display: flex; justify-content: space-between; gap: 14px; border-top: 1px solid rgba(80, 103, 87, .2); color: var(--muted); font-size: .8rem; }
.site-footer p { margin: 0; }
.site-footer a { white-space: nowrap; }

@media (max-width: 680px) {
  .site-header { min-height: 67px; width: calc(100% - 30px); }
  .top-nav { gap: 13px; }
  .top-nav a { font-size: .79rem; }
  .top-nav a:nth-child(2) { display: none; }
  .page-frame { padding: 0 14px 30px; }
  .hero { padding: 47px 3px 27px; }
  .hero-copy { font-size: 1rem; }
  .card-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .field-grid { grid-template-columns: 1fr; gap: 17px; }
  .form-actions { align-items: flex-start; flex-direction: column; }
  .form-note { text-align: left; }
  .results { padding: 20px 16px; }
  .result-stats { grid-template-columns: 1fr; }
  .result-stat { min-height: auto; }
  .tip-grid { grid-template-columns: 1fr; }
  .content-section, .faq-section { padding: 43px 3px 0; }
  .formula-card { padding: 18px; }
  .formula-card code { font-size: .79rem; }
  .site-footer { width: calc(100% - 30px); align-items: flex-start; flex-direction: column; }
}

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