:root {
  --bg: #F4F7FA;
  --surface: #FFFFFF;
  --surface-alt: #EBF0F6;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #64748B;
  --navy: #0A192F;
  --navy-mid: #162B4D;
  --emerald: #047857;
  --emerald-dark: #065F46;
  --emerald-soft: #ECFDF5;
  --border: #D5DEE8;
  --border-strong: #B5C4D4;
  --radius: 8px;
  --font-display: 'Newsreader', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--bg);
  font-size: 16px; line-height: 1.66; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #0F4C81; text-decoration-color: rgba(15,76,129,.35); text-underline-offset: 3px; }
a:hover { color: var(--emerald-dark); text-decoration-color: var(--emerald); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.topbar {
  background: var(--navy); color: #CBD5E1; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.02em; text-align: center;
  padding: 9px 16px; border-bottom: 2px solid var(--emerald);
}
.topbar a { color: #6EE7B7; text-decoration: underline; margin-left: 8px; }

header.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244, 247, 250, 0.95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
header.site-header .inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px; min-height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.brand-link {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: 25px;
  letter-spacing: -0.02em; color: var(--navy);
}
.brand-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  background: var(--navy); color: #6EE7B7; border: 1px solid var(--emerald);
  border-radius: 5px; font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
}
nav.top-nav { display: flex; align-items: center; gap: 20px; }
nav.top-nav a {
  font-size: 13.8px; font-weight: 600; color: var(--ink-2); text-decoration: none;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
nav.top-nav a:hover { color: var(--navy); border-bottom-color: var(--emerald); }
nav.top-nav a.nav-cta {
  background: var(--emerald); color: #fff; padding: 9px 15px; border-radius: 6px;
  font-weight: 700; border: 1px solid var(--emerald);
}
nav.top-nav a.nav-cta:hover { background: var(--emerald-dark); border-color: var(--emerald-dark); color: #fff; }
.mob-nav {
  display: none; overflow-x: auto; white-space: nowrap; gap: 16px;
  padding: 8px 20px 10px; border-top: 1px solid var(--border);
}
.mob-nav a { font-size: 13px; font-weight: 600; color: var(--ink-2); text-decoration: none; }

main { padding-bottom: 72px; }
.hero-band { padding: 44px 0 36px; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 38px; align-items: center; }
.meta-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.meta-pill { background: var(--surface); border: 1px solid var(--border); padding: 3px 9px; border-radius: 999px; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.15rem, 4vw, 3.15rem); line-height: 1.09; letter-spacing: -0.02em; margin: 0 0 18px; color: var(--navy); }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 2.5vw, 2.15rem); line-height: 1.18; margin: 42px 0 14px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--navy); }
h3 { font-size: 1.12rem; margin: 22px 0 8px; color: var(--navy); }
.bluf { font-size: 1.05rem; color: var(--ink-2); margin: 0 0 22px; max-width: 64ch; }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 16px; border-radius: 6px; font-weight: 700; font-size: 13.5px; white-space: nowrap;
  cursor: pointer; text-decoration: none; border: 1.5px solid var(--emerald);
  background: var(--emerald); color: #fff;
}
.btn:hover { background: var(--emerald-dark); border-color: var(--emerald-dark); color: #fff; text-decoration: none; }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: #fff; }

.hero-frame {
  border-radius: 10px; overflow: hidden; border: 1.5px solid var(--border-strong);
  box-shadow: 0 20px 48px rgba(10, 25, 47, 0.14); background: var(--navy);
}
.hero-frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-cap {
  display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; background: var(--navy); color: #CBD5E1;
  font-family: var(--font-mono); font-size: 11.5px;
}

.key-facts-ribbon { background: var(--navy); color: #F1F5F9; padding: 30px 0; }
.key-facts-ribbon .kf-title { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #6EE7B7; margin: 0 0 16px; font-weight: 700; }
.key-facts-ribbon ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.key-facts-ribbon li { border-left: 2px solid var(--emerald); padding-left: 14px; font-size: 13.8px; color: #CBD5E1; line-height: 1.5; }
.key-facts-ribbon li strong { display: block; color: #fff; font-size: 15px; margin-bottom: 3px; }

.key-facts-box { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--emerald); border-radius: var(--radius); padding: 18px 22px; margin: 22px 0 26px; }
.key-facts-box .kf-title { font-family: var(--font-mono); font-size: 12px; font-weight: 800; color: var(--emerald-dark); text-transform: uppercase; margin: 0 0 10px; }
.key-facts-box ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; }

.content-wrap { max-width: 1180px; margin: 0 auto; padding: 30px 24px 0; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 13px 18px; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.toc strong { color: var(--navy); font-family: var(--font-mono); font-size: 12px; align-self: center; }

table { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 14.5px; background: var(--surface); }
th, td { text-align: left; padding: 12px 14px; border: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-alt); font-weight: 700; color: var(--navy); font-size: 13.5px; }
tr:nth-child(even) td { background: #FAFBFD; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin: 22px 0 30px; }
.card { border: 1px solid var(--border); border-radius: 10px; padding: 22px; background: var(--surface); box-shadow: 0 4px 16px rgba(10,25,47,0.04); }
.card h3 { margin-top: 0; font-size: 1.15rem; }
.metric-tag { font-family: var(--font-mono); font-weight: 700; color: var(--emerald-dark); font-size: 0.96rem; margin: 4px 0 10px; }

.tool-panel { border: 2px solid var(--navy); border-radius: 12px; background: var(--surface); padding: 26px; margin: 22px 0 32px; box-shadow: 0 12px 34px rgba(10,25,47,0.08); }
.tool-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.tool-head .th-tag { font-family: var(--font-mono); font-size: 12px; color: var(--emerald-dark); font-weight: 700; }
.preset-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.preset-pill {
  padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--border-strong);
  background: var(--bg); color: var(--navy); font-size: 12.5px; font-weight: 700; cursor: pointer;
}
.preset-pill:hover, .preset-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; margin-bottom: 16px; align-items: end; }
label.fld { display: block; font-size: 12.5px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
input, select, textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--border-strong); border-radius: 6px; font-family: var(--font-sans); font-size: 14px; background: #fff; }
input, select { height: 44px; }
select { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.kpi-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.kpi { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 13px 15px; }
.kpi.highlight { background: var(--emerald-soft); border-color: #6EE7B7; }
.kpi .k-lbl { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.kpi .k-val { font-size: 1.24rem; font-weight: 800; color: var(--navy); font-family: var(--font-mono); margin-top: 3px; }
.kpi.highlight .k-val { color: var(--emerald-dark); }

.ded-chart { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 16px 18px; margin-top: 14px; }
.ded-row { margin: 10px 0; }
.ded-meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 5px; font-family: var(--font-mono); }
.bar-track { height: 14px; background: #DCE4EE; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; transition: width 0.25s ease; }
.bar-sl { background: #64748B; }
.bar-cs { background: var(--emerald); }

.disclaimer-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.faq-list { display: grid; gap: 14px; margin: 16px 0 26px; }
.faq-item { border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; background: var(--surface); }
.faq-item h3 { margin: 0 0 8px; font-size: 1.04rem; }
.faq-item p { margin: 0; color: var(--ink-2); }
.sources-box { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 18px 22px; margin-top: 28px; font-size: 14px; }
.quote-form { background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 10px; padding: 24px; margin-top: 24px; }
.status-msg { margin-top: 10px; font-weight: 700; font-size: 14px; }

footer.site-footer { background: var(--navy); color: #CBD5E1; padding: 44px 24px; font-size: 14px; border-top: 3px solid var(--emerald); }
footer.site-footer .inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
footer.site-footer a { color: #F1F5F9; text-decoration: none; }
footer.site-footer a:hover { color: #6EE7B7; text-decoration: underline; }
footer.site-footer h4 { color: #fff; margin: 0 0 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  nav.top-nav { display: none; }
  .mob-nav { display: flex; }
}
@media print {
  .topbar, header.site-header, footer.site-footer, .btn-row, .quote-form, .toc, .preset-row { display: none !important; }
  body { background: #fff; }
  .tool-panel { border: 1px solid #000; box-shadow: none; }
}
