@font-face{font-family:"DM Sans";src:url(/fonts/dm-sans-latin-var.woff2) format("woff2");font-weight:100 1000;font-style:normal;font-display:swap}
@font-face{font-family:"DM Serif Display";src:url(/fonts/dm-serif-display-latin.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap}

*,*::before,*::after{box-sizing:border-box}
*{margin:0}
html{scroll-behavior:smooth;scroll-padding-top:90px}
body{font-family:"DM Sans",sans-serif;background:#f8f5ed;color:#17283a;line-height:1.7;-webkit-text-size-adjust:100%}
a{color:#142a43;text-decoration:underline;text-underline-offset:2px}
a:hover{color:#516a58}
.container{width:min(760px,calc(100% - 40px));margin-inline:auto}

/* Header */
.nav{background:#142a43;padding:18px 0}
.nav-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:11px;font-family:"DM Serif Display",serif;font-size:1.13rem;color:#fffcf7;text-decoration:none}
.brand:hover{color:#fffcf7}
.tricolor{width:28px;height:3px;display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden;border-radius:2px;box-shadow:0 0 0 1px rgba(255,252,247,.25)}
.tricolor i:nth-child(1){background:#416d9c}
.tricolor i:nth-child(2){background:#fffcf7}
.tricolor i:nth-child(3){background:#b94b53}
.back{font-size:.82rem;font-weight:600;color:#c7a86b;text-decoration:none}
.back:hover{color:#fffcf7}

/* Document */
main{padding:64px 0 88px}
.eyebrow{font-size:.72rem;font-weight:700;letter-spacing:.17em;text-transform:uppercase;color:#516a58;margin-bottom:14px}
h1{font-family:"DM Serif Display",serif;font-weight:400;font-size:clamp(2.2rem,5vw,3.1rem);line-height:1.05;letter-spacing:-.025em;color:#142a43;margin-bottom:12px}
.updated{font-size:.82rem;color:#66717b;margin-bottom:14px}
.lede{font-size:1.05rem;color:#52606c;padding-bottom:30px;margin-bottom:8px;border-bottom:1px solid rgba(20,42,67,.14)}
h2{font-family:"DM Serif Display",serif;font-weight:400;font-size:1.6rem;line-height:1.2;color:#142a43;margin:40px 0 12px;scroll-margin-top:90px}
h3{font-size:1rem;font-weight:700;color:#142a43;margin:24px 0 6px}
p{margin-bottom:14px;color:#3d4c58}
ul,ol{margin:0 0 16px 22px;color:#3d4c58}
li{margin-bottom:7px}
strong{color:#142a43}

/* Table of contents */
.toc{background:#fffcf7;border:1px solid rgba(20,42,67,.12);border-radius:16px;padding:22px 26px;margin:32px 0 8px}
.toc h2{font-family:"DM Sans",sans-serif;font-size:.72rem;font-weight:700;letter-spacing:.17em;text-transform:uppercase;color:#516a58;margin:0 0 12px}
.toc ol{margin:0 0 0 18px;font-size:.92rem}
.toc li{margin-bottom:4px}

/* Callouts */
.note{background:#dde8ee;border-radius:14px;padding:20px 24px;margin:24px 0}
.note p:last-child{margin-bottom:0}

/* Footer */
.foot{background:#142a43;color:#c3cdd4;padding:40px 0 30px;font-size:.83rem}
.foot-inner{display:flex;justify-content:space-between;gap:18px;flex-wrap:wrap}
.foot a{color:#c3cdd4}
.foot a:hover{color:#fff}
.foot-links{display:flex;gap:20px;flex-wrap:wrap}

@media (max-width:600px){
  main{padding:44px 0 64px}
  h2{font-size:1.4rem}
  .toc{padding:18px 20px}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
}
