@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/display.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("fonts/body.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #162e4b;
  --muted: #4c5e6d;
  --blue: #204eb5;
  --deep: #112c43;
  --cream: #faf7f0;
  --sand: #f2efe6;
  --line: #d9dedb;
  --orange: #ef956a;
  --display: "Bricolage Grotesque", "Arial", sans-serif;
  --sans: "DM Sans", Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font: 400 1rem/1.63 var(--sans); }
img, svg { display: block; }
img { width: 100%; height: auto; }
button, input, select { font: inherit; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: .075em; }
a:hover { text-decoration-thickness: .13em; }
:focus-visible { outline: 3px solid #a94717; outline-offset: 4px; }
[hidden] { display: none !important; }
::selection { color: var(--deep); background: #ffd3b9; }
.wrap { width: min(1240px, calc(100% - clamp(40px, 10vw, 160px))); margin-inline: auto; }
h1, h2, h3 { color: var(--ink); font-family: var(--display); text-wrap: balance; }
h1, h2, h3, p, figure { margin: 0; }
h2 { font-size: clamp(2rem, 3.65vw, 3.5rem); font-weight: 680; letter-spacing: -.055em; line-height: 1.03; }
h3 { font-size: clamp(1.25rem, 1.65vw, 1.55rem); font-weight: 680; letter-spacing: -.035em; line-height: 1.15; }
p + p, p + ul, p + ol, ul + p, ol + p { margin-top: 1rem; }
li + li { margin-top: .55em; }
section[id], h2[id], :target { scroll-margin-block-start: 1.2rem; }
.skip-link { position: fixed; top: .65rem; left: .65rem; z-index: 100; padding: .7rem 1rem; color: white; background: var(--deep); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
main:focus { outline: 0; }

.site-header { position: relative; z-index: 10; background: var(--cream); border-bottom: 1px solid #dddcd3; }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: clamp(1.2rem, 3.8vw, 3.2rem); }
.brand { display: inline-flex; flex: none; align-items: center; gap: .62rem; color: var(--ink); font: 720 1.48rem/.94 var(--display); letter-spacing: -.055em; white-space: nowrap; text-decoration: none; }
.brand-mark { display: block; }
.brand-mark svg { width: 35px; height: 35px; }
.nav { display: flex; align-items: center; gap: clamp(.5rem, 2.5vw, 2.6rem); margin-left: auto; }
.nav a { color: var(--ink); position: relative; padding: .65rem .14rem; font-weight: 590; font-size: .94rem; text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--blue); }
.nav a[aria-current]::after { content: ""; position: absolute; height: 2px; background: var(--blue); inset: auto .12rem .35rem; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.3rem; border: 1px solid transparent; border-radius: 8px; cursor: pointer; text-decoration: none; font: 650 .96rem/1.18 var(--sans); transition: background .17s ease, transform .17s ease, border-color .17s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary, .btn.primary { background: var(--blue); color: #fff; }
.btn-primary:hover, .btn.primary:hover { background: #153a8f; }
.nav-action { color: #fff; background: var(--deep); min-height: 41px; padding-inline: 1.12rem; font-size: .88rem; }
.nav-action:hover { background: #274767; }
.btn-secondary { color: var(--ink); background: transparent; border-color: #9ba8ac; }
.btn-secondary:hover { background: #fff; border-color: var(--ink); }
.menu-toggle { display: none; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; }

.hero { overflow: hidden; background: var(--cream); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(35px, 5.6vw, 88px); padding-block: clamp(40px, 5vw, 76px) clamp(52px, 6.6vw, 97px); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow, .kicker { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.1rem; color: #785035; font: 740 .72rem/1.4 var(--sans); letter-spacing: .125em; text-transform: uppercase; }
.eyebrow-line { display: block; width: 29px; height: 3px; border-radius: 1px; background: #d56b36; }
.hero-title { max-width: 640px; font-size: clamp(3.45rem, 5.2vw, 5.1rem); line-height: .975; letter-spacing: -.073em; font-weight: 740; text-wrap: balance; }
.hero-title em { display: block; color: var(--blue); font-style: normal; }
.lead { color: var(--muted); line-height: 1.55; font-size: clamp(1.07rem, 1.42vw, 1.23rem); }
.hero-copy .lead { max-width: 51ch; margin-top: 1.35rem; }
.hero-copy .actions { margin-top: 1.55rem; }
.hero-note { display: flex; align-items: flex-start; gap: .48rem; margin-top: 1.35rem; color: #52605e; font-size: .77rem; line-height: 1.45; }
.hero-note svg { flex: none; width: 16px; height: 16px; color: #4e6863; }
.hero-media { isolation: isolate; position: relative; min-width: 0; margin: 0; }
.hero-media::before { content: ""; position: absolute; z-index: -1; inset: 11px -11px -11px 13px; background: #ecc5a2; border-radius: 19px; }
.hero-media::after { content: ""; position: absolute; right: -24px; top: -15px; z-index: -2; width: 88px; height: 84px; background-image: radial-gradient(#ba754b 1.8px, transparent 2px); background-size: 10px 10px; }
.hero-media img { aspect-ratio: 1.22; object-fit: cover; object-position: 52% center; border-radius: 16px; }
.photo-caption { position: absolute; bottom: 14px; left: 14px; padding: .25rem .55rem; border-radius: 4px; color: #fff; background: #142635c9; font-size: .64rem; letter-spacing: .01em; }

.section { padding-block: clamp(55px, 6.2vw, 95px); }
.section.soft { background: #f2f5f4; }
.hero + .section.soft { background: #fff; }
.section p { color: var(--muted); }
.section h2 + p, .section h3 + p { margin-top: .95rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(24px, 3.5vw, 39px); }
.section-head > div { max-width: 740px; }
.section-head > p:last-child { max-width: 40ch; }
.section .kicker, .page-hero .kicker { margin: 0 0 .75rem; color: #8a4d2c; }
.tools-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 25px); }
.tool-card, .guide-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; border: 1px solid #daddd8; border-radius: 14px; background: #fff; padding: clamp(22px, 2.4vw, 35px); color: var(--ink); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tool-card:nth-child(1) { background: #f2f5fb; border-color: #dce3ef; }
.tool-card:nth-child(2) { background: #f0f6f3; border-color: #dce7e0; }
.tool-card:nth-child(3) { background: #fbf2e9; border-color: #eadfd0; }
.tool-card:hover, .guide-card:hover { transform: translateY(-3px); border-color: #8aa3c3; box-shadow: 0 8px 22px #19324912; }
.icon-box { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 1.35rem; border-radius: 12px; background: #dce5fb; color: #2a4c8b; }
.tool-card:nth-child(2) .icon-box { color: #286754; background: #d8eae1; }
.tool-card:nth-child(3) .icon-box { color: #935025; background: #f6ddc5; }
.icon-box svg { width: 22px; height: 22px; }
.tool-card p, .guide-card p { margin-block: .62rem 1.25rem !important; line-height: 1.55; }
.card-link { margin-top: auto; text-decoration: underline; text-underline-offset: .22em; font-size: .9rem; font-weight: 690; color: var(--blue); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 7vw, 107px); }
.split > .section-head { display: block; margin-bottom: 0; max-width: 56ch; }
.split > .section-head > p:last-child { max-width: none; }
.split > .section-head a { display: inline-block; margin-top: .65rem; }
.panel { min-width: 0; padding: clamp(22px, 3vw, 42px); margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 8px 24px #192d4110; }
#benefit-chart { background: var(--deep); }
#benefit-chart h2, #benefit-chart .section-head a { color: #fff; }
#benefit-chart .section-head p { color: #d8e2e9; }
#benefit-chart .section-head .kicker { color: #ffc9a5; }
.chart { box-shadow: none; }
.chart figcaption { color: var(--muted); font-size: .87rem; }
.chart figcaption strong { color: var(--ink); font: 650 1.3rem/1.2 var(--display); letter-spacing: -.035em; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: .25rem .6rem; margin-block: 1.25rem .85rem; align-items: center; font-size: .91rem; }
.bar-row > strong { grid-column: 2; grid-row: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar-track { grid-column: 1 / -1; grid-row: 2; width: 100%; background: #e7edf4; height: .72rem; border-radius: 4px; overflow: hidden; }
.bar-fill { background: #5079cd; border-radius: inherit; }
.bar-row + .bar-row .bar-fill { background: var(--blue); }
.chart details { margin-top: 1.2rem; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .88rem; }
details > summary { cursor: pointer; color: var(--ink); font-weight: 630; }
.chart summary { color: var(--blue); }
.chart details table { margin-top: .5rem; }
.lookup { display: grid; gap: .35rem; }
.lookup label { font-size: .91rem; font-weight: 670; line-height: 1.3; margin-top: .65rem; }
.lookup label:first-child { margin-top: 0; }
.lookup select, .lookup input { display: block; width: 100%; min-width: 0; height: 47px; padding: .46rem .68rem; color: var(--ink); background-color: #fff; border: 1px solid #9caeb4; border-radius: 6px; font: 450 1rem/1.25 var(--sans); }
.lookup .btn { margin-top: 1.05rem; width: fit-content; }
.result { margin-top: 1.2rem; padding: 1.1rem; border-left: 3px solid #446e60; background: #edf6f0; border-radius: 4px; }
.result p { margin-top: .2rem; }
.small, .source-note { font-size: .83rem; line-height: 1.5; }
.panel > .small { margin-top: 1rem; }
.table-scroll, .table-wrap { overflow-x: auto; max-width: 100%; margin-block: 1.2rem; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; line-height: 1.45; font-size: .95rem; text-align: left; }
caption { padding: .7rem .9rem; text-align: left; color: var(--muted); background: #f6f7f4; font-size: .82rem; font-weight: 570; }
th, td { padding: .78rem .95rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: #e9eff1; color: var(--ink); font-size: .88rem; font-weight: 720; }
tbody th { font-weight: 640; }
tbody tr:nth-child(even) { background: #f8faf9; }
tbody tr:last-child > * { border-bottom: 0; }
.editorial-photo img { border-radius: 16px; aspect-ratio: 1.35; object-fit: cover; }
.topic-grid { margin-block: 1.1rem; }
.topic-card { display: block; position: relative; padding-block: .85rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid #cbd5d4; }
.topic-card:first-child { border-top: 1px solid #cbd5d4; }
.topic-card h3 { color: var(--blue); font-size: 1.18rem; }
.topic-card:hover h3 { text-decoration: underline; text-underline-offset: .17em; }
.topic-card p { margin-top: .25rem !important; font-size: .92rem; }
.split ol { padding-left: 1.25rem; }
.split ol li::marker { color: #92552b; font-weight: 750; }
.faq-list { border-top: 1px solid #bfcacc; }
.faq-list details { border-bottom: 1px solid #bfcacc; }
.faq-list summary { padding-block: 1.05rem; font: 650 1.08rem/1.4 var(--display); }
.faq-list details p { padding: 0 .75rem 1.1rem; }
.page-hero { padding-block: 1.75rem clamp(40px, 5vw, 74px); background: var(--cream); border-bottom: 1px solid #e2e1d8; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-bottom: clamp(28px, 3.9vw, 58px); font-size: .82rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.page-hero h1 { max-width: 18ch; font: 720 clamp(2.6rem, 4.85vw, 5rem)/.995 var(--display); letter-spacing: -.061em; }
.page-hero .lead { margin-top: 1.15rem; max-width: 70ch; }
.page-hero .actions { margin-top: 1.4rem; }
.guide-layout { display: grid; grid-template-columns: minmax(165px, .67fr) minmax(0, 2fr); align-items: start; gap: clamp(28px, 6vw, 90px); padding-block: clamp(40px, 5.3vw, 80px); }
.toc { position: sticky; top: 1.5rem; padding: 1.1rem 1.25rem; background: #f4f6f4; border-radius: 8px; border-left: 3px solid #bdcbbc; }
.toc strong { font: 700 1.1rem/1.4 var(--display); }
.toc ul { list-style: none; margin: .65rem 0 0; padding: 0; }
.toc li + li { margin-top: .52rem; }
.toc a { color: var(--muted); font-size: .89rem; text-decoration: none; }
.toc a:hover { color: var(--blue); text-decoration: underline; }
.article-body { min-width: 0; max-width: 76ch; font-size: 1.04rem; color: #374b5d; }
.article-body h2 { margin: 2.3rem 0 .8rem; font-size: clamp(1.65rem, 2.55vw, 2.45rem); letter-spacing: -.045em; line-height: 1.12; }
.article-body h3 { margin: 1.7rem 0 .5rem; }
.article-body h2:first-child, .article-body .review-date + h2 { margin-top: 1rem; }
.article-body ul, .article-body ol { padding-left: 1.18rem; }
.article-body td, .article-body th { padding: .65rem .7rem; }
.article-body strong { color: var(--ink); }
.review-date { margin: 0; color: var(--muted); font-size: .82rem; }
.footer { color: #e5edf2; background: #142d44; padding-block: clamp(40px, 5.2vw, 75px); }
.footer-grid { display: grid; grid-template-columns: 1.38fr repeat(3, 1fr); gap: clamp(22px, 4vw, 64px); }
.footer .brand, .footer h2 { color: #fff; }
.footer .brand-mark { padding: 2px; border-radius: 10px; background: #fff; }
.footer .brand-mark svg { width: 31px; height: 31px; }
.footer p { color: #c7d4db; margin-top: 1.15rem; max-width: 28ch; font-size: .93rem; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: .42rem; }
.footer-links h2 { font: 670 1.08rem/1.35 var(--display); letter-spacing: -.025em; margin-bottom: .36rem; }
.footer-links a { color: #d5e0e8; font-size: .9rem; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 849px) {
  .wrap { width: min(100% - 42px, 710px); }
  .header-inner { min-height: 65px; flex-wrap: wrap; gap: .5rem 1rem; padding-block: .65rem; }
  .brand { font-size: 1.3rem; }
  .brand-mark svg { width: 31px; height: 31px; }
  .nav-action { order: 2; margin-left: auto; padding: .55rem .8rem; min-height: 39px; }
  .nav { order: 4; flex: 1 1 100%; justify-content: space-between; margin: 0; }
  .has-js .menu-toggle { display: inline-flex; order: 3; align-items: center; min-height: 40px; padding: .45rem .75rem; border: 1px solid #aebbb9; border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; font-weight: 650; font-size: .89rem; }
  .has-js .nav { display: none; }
  .has-js .nav.is-open { display: flex; padding-top: .4rem; border-top: 1px solid var(--line); }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 1.6rem; padding-block: 2.6rem 3.4rem; }
  .hero-title { font-size: clamp(2.75rem, 5.65vw, 3.8rem); }
  .hero-media img { aspect-ratio: .88; }
  .split { gap: 1.8rem; }
  .section-head { align-items: start; }
  .footer-grid { grid-template-columns: 1.3fr 1fr; }
}
@media (max-width: 649px) {
  .hero-grid, .split, .guide-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 2rem; }
  .hero-title { max-width: 16ch; font-size: clamp(2.45rem, 10.4vw, 4rem); }
  .hero-media { margin-right: 8px; }
  .hero-media img { aspect-ratio: 1.55; object-position: 50% 45%; border-radius: 12px; }
  .hero-media::before { inset: 7px -7px -7px 10px; border-radius: 13px; }
  .hero-media::after { right: -15px; top: -11px; }
  .tools-grid, .guide-grid { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .tool-card, .guide-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .28rem .8rem; padding: 1.1rem; align-items: start; }
  .icon-box { grid-row: 1 / 4; width: 38px; height: 38px; margin: 0; }
  .tool-card p, .guide-card p { grid-column: 2; margin: 0 !important; }
  .card-link { grid-column: 2; margin: .3rem 0 0; }
  .section { padding-block: 3rem; }
  .section-head { display: block; }
  .section-head > div + p { margin-top: .65rem; }
  .split { gap: 1.5rem; }
  .split > .section-head { margin-bottom: 0; }
  .table-scroll table { min-width: 34rem; }
  .table-wrap table { min-width: 27rem; }
  .editorial-photo img { aspect-ratio: 1.65; }
  .guide-layout { gap: 1.6rem; }
  .toc { position: static; }
  .footer-grid { gap: 1.8rem 1rem; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { gap: .45rem; }
  .header-inner .brand { font-size: 1.15rem; gap: .34rem; }
  .header-inner .brand-mark svg { width: 26px; height: 26px; }
  .nav-action { font-size: .78rem; padding-inline: .54rem; }
  .has-js .menu-toggle { padding-inline: .5rem; }
  .actions .btn { padding-inline: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .btn:hover, .tool-card:hover, .guide-card:hover { transform: none; }
}
@media print {
  .site-header, .toc, .footer, .skip-link { display: none; }
  .guide-layout, .split { display: block; }
  .wrap, .article-body { width: 100%; max-width: none; }
  .section, .page-hero, .guide-layout { padding: .7rem 0; }
  .toc, .panel { box-shadow: none; }
  h2, h3 { break-after: avoid; }
}

@media screen and (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: hero-float 6s ease-in-out infinite; }
  @keyframes hero-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
  }
}
