
:root {
  --navy: #1F3D8F; --navy-deep: #142866; --navy-text: #1A3380; --navy-50: #EEF1FA; --navy-100: #D9E0F3;
  --ink: #171514; --ink2: #5F5A52; --ink3: #8A8278; --hair: rgba(23,21,20,0.08); --rule: rgba(23,21,20,0.14);
  --surface: #FFFFFF; --page: #F7F5F1; --on-navy: #FFFFFF;
  --warn: #8A5A12; --warn-soft: #FBF1DF; --mark: #FDE9A8;
  --shadow: 0 1px 2px rgba(23,21,20,0.05), 0 8px 24px -12px rgba(23,21,20,0.12);
  --r-card: 18px; --r-field: 12px; --r-pill: 100px;
  --font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #A9BAF0; --navy-deep: #C8D3F6; --navy-text: #C8D3F6; --navy-50: #1C2440; --navy-100: #2A3560;
    --ink: #F2EFEA; --ink2: #C9C2B8; --ink3: #A39B90; --hair: rgba(255,255,255,0.08); --rule: rgba(255,255,255,0.16);
    --surface: #1E1C1A; --page: #141210; --on-navy: #0E1530;
    --warn: #F1C27A; --warn-soft: #3A2C14; --mark: #5A4A12;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px -12px rgba(0,0,0,0.5);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.55 var(--font); overflow-wrap: break-word; }
a { color: var(--navy-text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 34px; margin: 8px 0 12px; }
h2 { font-size: 22px; margin: 32px 0 12px; }
h3 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
strong, b { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); color: var(--navy-text); padding: 10px 14px; border-radius: var(--r-field); z-index: 30; box-shadow: var(--shadow); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink2); margin: 0; }
.chip { display: inline-block; font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: var(--r-pill); background: var(--navy-50); color: var(--navy-text); white-space: nowrap; }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.lead { font-size: 18px; color: var(--ink2); margin: 0 0 16px; max-width: 680px; }
.muted { color: var(--ink2); }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--page); border-bottom: 1px solid var(--rule); }
.top-inner { max-width: 1120px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: 8px; }
.brand img { display: block; width: 32px; height: 32px; }
.brand-words { display: grid; line-height: 1.1; }
.brand-name { font-weight: 700; font-size: 16px; }
.brand-sub { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink2); }
.top-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.top-nav a { display: inline-block; padding: 8px 12px; min-height: 40px; border-radius: var(--r-field); color: var(--ink); text-decoration: none; font-weight: 500; }
.top-nav a:hover { background: var(--navy-50); }
.top-nav a[aria-current="page"] { background: var(--navy-50); color: var(--navy-text); }

/* search */
.search { display: flex; gap: 8px; margin-left: auto; flex: 0 1 340px; min-width: 0; }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 15px; min-height: 44px; padding: 8px 14px; border-radius: var(--r-field); border: 1px solid var(--rule); background: var(--surface); color: var(--ink); }
.search input::placeholder { color: var(--ink3); }
.search button, .btn { font: inherit; font-weight: 600; min-height: 44px; padding: 8px 16px; border-radius: var(--r-field); border: 0; background: var(--navy); color: var(--on-navy); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.search button:hover, .btn:hover { background: var(--navy-deep); }
.search-hero { margin: 24px auto 0; max-width: 620px; }
.search-hero input { min-height: 52px; font-size: 17px; }
.search-hero button { min-height: 52px; }

/* hero + doors */
.hero { background: linear-gradient(180deg, var(--navy-50) 0%, var(--page) 100%); padding: 56px 0 40px; border-bottom: 1px solid var(--hair); text-align: center; }
.hero h1 { font-size: 46px; margin: 12px 0 8px; }
.hero .lead { margin: 0 auto; }
.doors { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 24px 0 0; padding: 0; list-style: none; }
.doors a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: var(--r-pill); border: 1px solid var(--rule); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; }
.doors a:hover { border-color: var(--navy); }
.doors a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.panel { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 24px; margin: 24px 0; }
.panel h2 { margin-top: 0; }
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.jobs a { display: block; padding: 12px 14px; border-radius: var(--r-field); background: var(--navy-50); color: var(--navy-text); text-decoration: none; font-weight: 500; min-height: 44px; }
.jobs a:hover { background: var(--navy-100); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.card { display: block; height: 100%; padding: 20px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.card:hover { border-color: var(--navy-100); }
.card-title { display: block; font-size: 18px; font-weight: 600; color: var(--navy-text); }
.card-text { display: block; margin-top: 4px; color: var(--ink2); }
.card-meta { display: block; margin-top: 8px; font-size: 14px; color: var(--ink2); }

/* lists of articles */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.list li { border-bottom: 1px solid var(--hair); }
.list a { display: block; padding: 12px 4px; text-decoration: none; color: var(--ink); min-height: 44px; }
.list a:hover .list-title { text-decoration: underline; }
.list-static { display: block; padding: 12px 4px; }
.list-title { display: block; font-weight: 600; color: var(--navy-text); }
.list-text { display: block; color: var(--ink2); font-size: 15px; }

/* page shell */
main { display: block; padding: 24px 0 64px; }
.crumbs ol { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--ink2); }
.crumbs li + li::before { content: "\203A"; margin-right: 4px; color: var(--ink3); }
.crumbs a { color: var(--ink2); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; align-items: start; }
.aside { position: sticky; top: 88px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 16px 20px; }
.aside h2 { font-size: 15px; margin: 0 0 8px; }
.aside ol { margin: 0; padding-left: 20px; }
.aside li { margin: 6px 0; }

/* steps */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 20px 0 20px 52px; border-top: 1px solid var(--hair); }
.steps > li:first-child { border-top: 0; }
.steps > li::before { content: counter(step); content: counter(step) / ""; position: absolute; left: 0; top: 18px; width: 34px; height: 34px; border-radius: var(--r-pill); background: var(--navy); color: var(--on-navy); font-weight: 600; font-size: 15px; display: grid; place-items: center; }
.steps h2 { font-size: 19px; margin: 4px 0 6px; }
.steps p { margin: 0 0 8px; }
.ui { font-weight: 600; }
figure { margin: 12px 0 0; }
.shot { position: relative; display: inline-block; max-width: 100%; }
.shot img { display: block; max-width: 100%; height: auto; border-radius: var(--r-field); border: 1px solid var(--rule); background: #FFFFFF; }
.ring { position: absolute; border: 3px solid #E0861A; border-radius: 10px; box-shadow: 0 0 0 3px rgba(255,255,255,0.7); pointer-events: none; }
figcaption { margin-top: 6px; font-size: 14px; color: var(--ink2); }
.good { margin: 32px 0 0; padding: 16px 20px; border-radius: var(--r-card); background: var(--warn-soft); }
.good h2 { margin: 0 0 8px; font-size: 17px; color: var(--warn); }
.good ul { margin: 0; padding-left: 20px; }
.prose p, .prose li { max-width: 72ch; }
.prose ul, .prose ol { padding-left: 22px; }
.prose code { font-family: "Roboto Mono", ui-monospace, monospace; font-size: 0.92em; background: var(--navy-50); padding: 1px 5px; border-radius: 6px; }

/* tables (comparisons, explainers) */
.table-wrap { overflow-x: auto; margin: 16px 0; border-radius: var(--r-card); box-shadow: var(--shadow); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
caption { text-align: left; padding: 12px 16px 0; font-weight: 600; }
th, td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--hair); }
thead th { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink2); }
tbody th { font-weight: 600; }

/* glossary */
.terms { margin: 0; }
.terms dt { font-weight: 700; font-size: 18px; margin-top: 20px; }
.terms dd { margin: 4px 0 0; color: var(--ink); }
.letters { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 16px; padding: 0; }
.letters a { display: inline-grid; place-items: center; min-width: 36px; min-height: 36px; border-radius: var(--r-field); background: var(--surface); text-decoration: none; font-weight: 600; }

/* footer */
.foot { border-top: 1px solid var(--rule); padding: 32px 0 48px; color: var(--ink2); font-size: 15px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 16px; }
.empty { padding: 24px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; order: -1; }
}
@media (max-width: 640px) {
  .wrap, .top-inner { padding-left: 16px; padding-right: 16px; }
  .search { flex: 1 1 100%; margin-left: 0; }
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: 32px; }
  h1 { font-size: 28px; }
  .steps > li { padding-left: 46px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .top, .foot, .search, .aside { display: none; } body { background: #FFFFFF; } }
