@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=Archivo:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #f1f5fa;
  --ink: #182232;
  --muted: #56606f;
  --soft: #7a8492;
  --line: rgba(24, 34, 50, .16);
  --line-soft: rgba(24, 34, 50, .1);
  --cobalt: #1f4e8c;
  --cobalt-light: #a7d2ff;
  --dark: #111927;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1120px;
  --header-height: 72px;
  --shadow-blue: 12px 12px 0 rgba(31, 78, 140, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 24px); background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.65 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt); }
img { max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; }
:where(a, summary):focus-visible { outline: 3px solid #0a66c2; outline-offset: 3px; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; }
.skip-link:focus { left: 0; }

.topbar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line-soft); background: rgba(247, 249, 252, .94); backdrop-filter: blur(14px); }
.topbar-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font: 400 clamp(24px, 2.4vw, 32px)/1 var(--display); letter-spacing: -.04em; text-decoration: none; }
.brand span { color: var(--cobalt); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; color: var(--muted); font: 600 11px/1 var(--mono); letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.nav .nav-cta { margin-left: 4px; padding-inline: 18px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 600 14px/1 var(--body); letter-spacing: 0; text-transform: none; }
.nav .nav-cta:hover { border-color: var(--cobalt); background: var(--cobalt); color: #fff; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { min-width: 72px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); color: var(--ink); cursor: pointer; font: 600 12px/1 var(--mono); letter-spacing: .08em; list-style: none; text-transform: uppercase; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] summary { background: var(--ink); color: #fff; }
.mobile-nav-links { position: absolute; top: calc(100% + 9px); right: 0; width: min(280px, calc(100vw - 28px)); border: 1px solid var(--line); border-top: 5px solid var(--cobalt); background: var(--surface); box-shadow: var(--shadow-blue); }
.mobile-nav-links a { min-height: 48px; display: flex; align-items: center; padding: 0 18px; border-bottom: 1px solid var(--line-soft); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.mobile-nav-links a:last-child { border-bottom: 0; background: var(--ink); color: #fff; }

.guide-hero { padding: clamp(72px, 9vw, 118px) 0 clamp(64px, 8vw, 96px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(31, 78, 140, .05), transparent 72%); }
.guide-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .65fr); gap: clamp(40px, 7vw, 88px); align-items: end; }
.guide-hero h1 { max-width: none; font: 400 clamp(48px, 6.7vw, 82px)/.96 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.guide-hero .lede { max-width: 56ch; margin-top: 24px; color: #344154; font: 400 clamp(19px, 2vw, 23px)/1.43 var(--display); text-wrap: pretty; }
.guide-hero .intro { max-width: 68ch; margin-top: 20px; color: var(--muted); }
.at-a-glance { border: 1px solid var(--line); border-left: 6px solid var(--cobalt); background: var(--surface); box-shadow: var(--shadow-blue); }
.at-a-glance h2 { padding: 22px 24px 16px; border-bottom: 1px solid var(--line-soft); font: 400 28px/1 var(--display); letter-spacing: -.025em; }
.at-a-glance dl { margin: 0; }
.at-a-glance div { display: grid; grid-template-columns: 104px 1fr; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line-soft); }
.at-a-glance div:last-child { border-bottom: 0; }
.at-a-glance dt { color: var(--cobalt); font: 600 10px/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.at-a-glance dd { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.article-shell { padding: clamp(64px, 8vw, 104px) 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 720px) minmax(240px, 300px); gap: clamp(52px, 8vw, 104px); align-items: start; }
.article { min-width: 0; }
.article section + section { margin-top: 64px; padding-top: 58px; border-top: 1px solid var(--line); }
.article h2 { max-width: 18ch; font: 400 clamp(34px, 4vw, 48px)/1 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.article h3 { margin-top: 30px; font: 400 25px/1.08 var(--display); letter-spacing: -.025em; }
.article p { max-width: 70ch; margin-top: 18px; color: var(--muted); text-wrap: pretty; }
.article strong { color: var(--ink); font-weight: 600; }
.article ul, .article ol { margin: 22px 0 0; padding-left: 22px; color: var(--muted); }
.article li { margin-top: 11px; padding-left: 6px; }
.article li::marker { color: var(--cobalt); }
.article .lead-line { color: var(--ink); font: 400 clamp(24px, 2.7vw, 32px)/1.25 var(--display); letter-spacing: -.02em; }

.seam-list { list-style: none; margin: 28px 0 0 !important; padding: 0 !important; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-blue); }
.seam-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 18px; margin: 0; padding: 22px 24px; border-bottom: 1px solid var(--line-soft); }
.seam-list li:last-child { border-bottom: 0; }
.seam-list .no { color: var(--cobalt); font: 600 11px/1.5 var(--mono); }
.seam-list h3 { margin: 0; font-size: 24px; }
.seam-list p { margin-top: 8px; font-size: 15px; line-height: 1.55; }

.decision-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 28px; border: 1px solid var(--line); border-left: 6px solid var(--cobalt); background: var(--line); box-shadow: var(--shadow-blue); }
.decision-card { padding: 24px; background: var(--surface); }
.decision-card h3 { margin: 0; font-size: 24px; }
.decision-card p { margin-top: 12px; font-size: 14px; line-height: 1.55; }
.decision-card a { min-height: 44px; display: inline-flex; align-items: center; margin-top: 10px; margin-left: -10px; padding-inline: 10px; color: var(--cobalt); font-size: 14px; font-weight: 600; }

.process { counter-reset: process; list-style: none; padding: 0 !important; }
.process li { counter-increment: process; display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.process li::before { content: counter(process, decimal-leading-zero); color: var(--cobalt); font: 600 11px/1.5 var(--mono); }

.callout { margin-top: 32px; padding: 26px 28px; border: 1px solid var(--line); border-left: 6px solid var(--cobalt); background: var(--surface-soft); }
.callout p:first-child { margin-top: 0; color: var(--ink); font: 400 24px/1.25 var(--display); letter-spacing: -.02em; }
.callout p + p { margin-top: 12px; }

.guide-checklist-cta { margin-top: 42px !important; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink) !important; font-size: 15px; }
.guide-checklist-cta a { min-height: 44px; display: inline-flex; align-items: center; color: var(--cobalt); font-weight: 600; }

.article-nav { position: sticky; top: calc(var(--header-height) + 28px); padding: 24px; border: 1px solid var(--line); background: var(--surface); }
.article-nav h2 { font: 400 25px/1 var(--display); letter-spacing: -.025em; }
.article-nav ol { list-style: none; margin: 18px 0 0; padding: 0; }
.article-nav li { border-top: 1px solid var(--line-soft); }
.article-nav a { display: block; padding: 13px 0; color: var(--muted); font-size: 13px; line-height: 1.4; text-decoration: none; }
.article-nav a:hover { color: var(--cobalt); }
.article-nav .related { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.article-nav .related h3 { font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.article-nav .related a { padding: 10px 0 0; color: var(--cobalt); }

.cta-band { padding: clamp(54px, 7vw, 84px) 0; border-top: 6px solid var(--cobalt); background: var(--dark); color: #fff; }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.cta-band h2 { max-width: 14ch; font: 400 clamp(36px, 4.5vw, 56px)/.98 var(--display); letter-spacing: -.04em; }
.cta-band p { max-width: 54ch; margin-top: 16px; color: rgba(255, 255, 255, .68); }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid #fff; background: #fff; color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.button:hover { border-color: var(--cobalt-light); background: var(--cobalt-light); color: var(--ink); }

footer { padding: 30px 0 18px; border-top: 1px solid var(--line); background: #fff; color: var(--muted); }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; }
.footer-brand { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font: 400 28px/1 var(--display); letter-spacing: -.04em; text-decoration: none; }
.footer-brand span { color: var(--cobalt); }
.footer-copy { max-width: 42ch; margin-top: 2px; font-size: 12.5px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 8px; font-size: 12px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 8px; }
.footer-base { display: flex; justify-content: space-between; gap: 24px; margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 11px; }
.footer-base a { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 4px; }

@media (max-width: 900px) {
  .guide-hero-grid, .article-grid, .cta-grid { grid-template-columns: 1fr; }
  .article-nav { position: static; }
  .article-nav ol { columns: 2; column-gap: 28px; }
  .decision-grid { grid-template-columns: 1fr; }
  .cta-grid { align-items: start; }
  .cta-grid .button { justify-self: start; }
}

@media (max-width: 680px) {
  :root { --header-height: 64px; }
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .topbar-inner { min-height: var(--header-height); }
  .nav { display: none; }
  .mobile-nav { display: block; }
  .guide-hero { padding-top: 54px; }
  .guide-hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .at-a-glance div { grid-template-columns: 88px 1fr; padding-inline: 18px; }
  .article-shell { padding-top: 52px; }
  .article section + section { margin-top: 48px; padding-top: 44px; }
  .article-nav ol { columns: 1; }
  .seam-list li { grid-template-columns: 34px 1fr; padding: 20px 18px; }
  .footer-grid, .footer-base { display: grid; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
