*, *::before, *::after { box-sizing: border-box; }

:root {
  --navy: #0d2b45;
  --navy-mid: #163d5e;
  --navy-soft: #244f70;
  --gold: #f5a623;
  --gold-light: #ffd083;
  --white: #ffffff;
  --cream: #fffaf1;
  --off-white: #f6f8fb;
  --line: #dfe5ec;
  --muted: #586a7a;
  --text: #243746;
  --success: #176b4d;
  --error: #a12626;
  --shadow: 0 18px 50px rgba(13, 43, 69, 0.1);
  --radius: 16px;
  --max: 1180px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--navy-soft); }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 16px;
  top: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--gold);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  padding: 8px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy);
  font-size: 0.82rem;
}
.topbar strong { color: var(--gold-light); }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(13, 43, 69, 0.06);
}
.nav-inner {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-link { display: inline-flex; align-items: center; line-height: 0; }
.brand-link img { width: 178px; height: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--navy); background: var(--off-white); }
.nav-links .nav-cta { background: var(--gold); }
.nav-links .nav-cta:hover { background: var(--gold-light); }
.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 11px;
  border: 0;
  border-radius: 8px;
  color: var(--navy);
  background: var(--off-white);
}
.menu-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 3px; background: currentColor; }
.mobile-menu { padding: 8px 20px 22px; border-top: 1px solid var(--line); }
.mobile-menu a {
  display: block;
  min-height: 48px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--navy);
  font-weight: 650;
  text-decoration: none;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(66px, 8vw, 105px) 20px clamp(62px, 7vw, 88px);
  color: var(--white);
  background: var(--navy);
}
.hero::after {
  content: '';
  position: absolute;
  width: 540px;
  height: 540px;
  right: -160px;
  top: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.18), transparent 68%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; width: min(940px, 100%); margin: 0 auto; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 7px; color: rgba(255, 255, 255, 0.35); }
.breadcrumbs a { color: rgba(255, 255, 255, 0.66); text-decoration: none; }
.breadcrumbs [aria-current='page'] { color: var(--gold-light); }
.eyebrow {
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero h1, .section-heading, .content-prose h2, .content-prose h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.15;
}
.hero h1 {
  max-width: 860px;
  margin: 0 0 22px;
  color: var(--white);
  font-size: clamp(2.45rem, 7vw, 4.65rem);
  letter-spacing: -0.025em;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero-copy { max-width: 730px; margin: 0; color: rgba(255, 255, 255, 0.78); font-size: clamp(1.03rem, 2vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--navy);
  background: var(--gold);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}
.button:hover { color: var(--navy); background: var(--gold-light); }
.button-secondary { color: var(--white); border-color: rgba(255, 255, 255, 0.38); background: transparent; }
.button-secondary:hover { color: var(--white); border-color: var(--gold); background: rgba(255, 255, 255, 0.08); }
.button-dark { color: var(--white); background: var(--navy); }
.button-dark:hover { color: var(--white); background: var(--navy-mid); }
.button-quiet { color: var(--navy); border-color: var(--line); background: var(--white); }
.button-quiet:hover { background: var(--off-white); }
.button[disabled], button[disabled] { cursor: wait; opacity: 0.58; }

.section { padding: clamp(58px, 7vw, 92px) 20px; }
.section-muted { background: var(--off-white); }
.section-cream { background: var(--cream); }
.section-navy { color: var(--white); background: var(--navy); }
.section-inner { width: min(var(--max), 100%); margin: 0 auto; }
.section-narrow { width: min(790px, 100%); }
.section-heading { margin: 0 0 16px; font-size: clamp(2rem, 4.5vw, 3.15rem); }
.section-navy .section-heading { color: var(--white); }
.section-intro { max-width: 760px; margin: 0 0 36px; color: var(--muted); font-size: 1.04rem; }
.section-navy .section-intro { color: rgba(255, 255, 255, 0.72); }

.hub-search {
  max-width: 760px;
  margin-top: 34px;
  padding: 8px;
  display: flex;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 13px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.hub-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.hub-search input { width: 100%; min-height: 52px; padding: 10px 14px; border: 0; color: var(--text); background: transparent; }

.category + .category { margin-top: 58px; }
.category-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.category-header h2 { margin: 0; color: var(--navy); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.65rem, 3.2vw, 2.35rem); }
.category-header p { max-width: 620px; margin: 7px 0 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.resource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(13, 43, 69, 0.055);
}
a.resource-card { text-decoration: none; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
a.resource-card:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--text); box-shadow: var(--shadow); }
.resource-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 12px; color: var(--navy); background: rgba(245, 166, 35, 0.16); font-size: 1.25rem; font-weight: 900; }
.resource-card h3 { margin: 20px 0 9px; color: var(--navy); font-family: 'Playfair Display', Georgia, serif; font-size: 1.32rem; line-height: 1.22; }
.resource-card p { margin: 0 0 18px; color: var(--muted); font-size: 0.94rem; }
.card-link { margin-top: auto; color: var(--navy); font-size: 0.88rem; font-weight: 800; }
.status-badge { align-self: flex-start; margin-top: auto; padding: 5px 10px; border-radius: 999px; color: var(--muted); background: var(--off-white); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.resource-card-coming { border-style: dashed; box-shadow: none; }
.search-empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }

.tool-shell { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr); gap: 26px; align-items: start; }
.calculator-card, .results-card, .info-card, .lead-card {
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.calculator-card h2, .results-card h2, .lead-card h2 { margin: 0 0 8px; color: var(--navy); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.65rem, 3vw, 2.25rem); }
.card-intro { margin: 0 0 25px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
.field label, .field .field-label { display: block; margin-bottom: 7px; color: var(--navy); font-size: 0.9rem; font-weight: 750; }
.field-help { display: block; margin-top: 6px; color: var(--muted); font-size: 0.78rem; line-height: 1.4; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 12px;
  border: 1px solid #bcc8d2;
  border-radius: 8px;
  color: var(--text);
  background: var(--white);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(245, 166, 35, 0.34); }
.form-actions { display: flex; flex-wrap: wrap; gap: 11px; align-items: center; margin-top: 24px; }
.form-error { margin: 18px 0 0; padding: 12px 14px; border-left: 4px solid var(--error); color: #6f1717; background: #fff3f3; }
.results-card { position: sticky; top: 95px; border-top: 5px solid var(--gold); }
.results-label { color: var(--gold); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.13em; text-transform: uppercase; }
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.result-metric { padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--off-white); }
.result-metric-wide { grid-column: 1 / -1; }
.result-metric span { display: block; color: var(--muted); font-size: 0.78rem; line-height: 1.35; }
.result-metric strong { display: block; margin-top: 5px; color: var(--navy); font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.1; }
.result-disclaimer { margin: 18px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.55; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }

.schedule-status { margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--off-white); }
.schedule-status h3 { margin: 0 0 7px; color: var(--navy); }
.schedule-status p { margin: 0; color: var(--muted); }
.demo-badge { display: inline-block; margin-bottom: 12px; padding: 5px 10px; border-radius: 999px; color: #694000; background: #fff0c9; font-size: 0.75rem; font-weight: 850; }
.schedule-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.schedule-grid div { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.schedule-grid dt { color: var(--muted); font-size: 0.78rem; font-weight: 750; }
.schedule-grid dd { margin: 4px 0 0; color: var(--navy); font-weight: 800; }
.official-source-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; }
.official-source-links a { color: var(--navy-light); font-size: 0.84rem; font-weight: 750; }

.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: clamp(36px, 7vw, 80px); align-items: start; }
.content-prose { min-width: 0; }
.content-prose > p:first-of-type { font-size: 1.08rem; color: #394d5c; }
.content-prose h2 { margin: 52px 0 15px; font-size: clamp(1.7rem, 3.5vw, 2.35rem); scroll-margin-top: 100px; }
.content-prose h3 { margin: 28px 0 10px; font-size: 1.35rem; }
.content-prose p { margin: 0 0 20px; }
.content-prose ul, .content-prose ol { padding-left: 24px; }
.content-prose li + li { margin-top: 8px; }
.method-box, .verification-box { margin: 28px 0; padding: 20px 22px; border-left: 5px solid var(--gold); border-radius: 0 11px 11px 0; background: var(--cream); }
.method-box strong, .verification-box strong { color: var(--navy); }
.toc { position: sticky; top: 95px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--off-white); }
.toc h2 { margin: 0 0 12px; color: var(--navy); font-family: 'DM Sans', Arial, sans-serif; font-size: 0.84rem; letter-spacing: 0.1em; text-transform: uppercase; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li + li { margin-top: 8px; }
.toc a { color: var(--navy); font-size: 0.88rem; font-weight: 650; text-decoration: none; }

.faq-list { display: grid; gap: 14px; max-width: 880px; }
.faq-item { padding: 23px 25px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.faq-item h3 { margin: 0 0 8px; color: var(--navy); font-family: 'Playfair Display', Georgia, serif; font-size: 1.17rem; }
.faq-item p { margin: 0; color: var(--muted); }

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow);
}
.cta-panel h2 { margin: 0 0 8px; color: var(--white); font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.75rem, 4vw, 2.7rem); }
.cta-panel p { max-width: 700px; margin: 0; color: rgba(255, 255, 255, 0.74); }

.lead-card { max-width: 920px; margin: 0 auto; }
.lead-card .field-grid { margin-top: 26px; }
.form-status { margin: 18px 0 0; padding: 12px 14px; border-radius: 8px; color: var(--navy); background: var(--cream); }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.data-table-wrap { overflow-x: auto; margin: 24px 0; }
.data-table { width: 100%; min-width: 620px; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 15px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { color: var(--navy); background: var(--off-white); }
.unverified { color: #7a4b00; font-weight: 750; }

.site-footer { padding: 58px 20px 28px; color: rgba(255, 255, 255, 0.7); background: #081e31; }
.footer-inner { width: min(var(--max), 100%); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
.footer-brand a { display: inline-block; line-height: 0; }
.footer-brand img {
  display: block;
  width: auto;
  height: 52px;
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
}
.footer-brand p { max-width: 350px; font-size: 0.9rem; }
.footer-col h2 { margin: 0 0 14px; color: var(--white); font-family: 'DM Sans', Arial, sans-serif; font-size: 0.9rem; }
.footer-col a { display: block; padding: 4px 0; color: rgba(255, 255, 255, 0.7); font-size: 0.87rem; text-decoration: none; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8rem; }

@media (max-width: 940px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-shell, .content-layout { grid-template-columns: 1fr; }
  .results-card, .toc { position: static; }
  .toc { order: -1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .topbar { font-size: 0.75rem; }
  .nav-inner { width: min(100% - 28px, var(--max)); min-height: 66px; }
  .brand-link img { width: 155px; }
  .hero { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: clamp(2.25rem, 12vw, 3.35rem); }
  .hero-actions, .form-actions, .result-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button, .form-actions .button, .result-actions .button { width: 100%; }
  .hub-search { display: block; }
  .category-header { display: block; }
  .card-grid, .field-grid, .result-grid, .schedule-grid, .footer-grid { grid-template-columns: 1fr; }
  .result-metric-wide, .field-full { grid-column: auto; }
  .resource-card { min-height: 0; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-panel .button { width: 100%; }
}

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

@media print {
  .topbar, .site-nav, .hero-actions, .form-actions, .result-actions, .site-footer, .cta-panel, .lead-card, [data-related-resources] { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; }
  .hero { padding: 24px 0; color: #000; background: #fff; }
  .hero h1, .hero-copy, .breadcrumbs [aria-current='page'], .breadcrumbs a { color: #000; }
  .section { padding: 24px 0; }
  .tool-shell { display: block; }
  .calculator-card { display: none; }
  .results-card { position: static; box-shadow: none; break-inside: avoid; }
  .content-prose h2 { break-after: avoid; }
}
