:root {
  color-scheme: light;
  --bg: #ffffff;
  --tint: #f3f7fb;
  --surface: #ffffff;
  --text: #0f2133;
  --muted: #526273;
  --line: #dfe7ef;
  --accent: #0a5ca8;
  --accent-dark: #084a87;
  --accent-ink: #ffffff;
  --accent-soft: #e8f1fa;
  --teal: #0f8b8d;
  --teal-soft: #e5f4f4;
  --warn-soft: #fff6e8;
  --warn-line: #f0d29a;
  --radius: 12px;
  --max: 1120px;
  --read: 720px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 2px rgba(15,33,51,.04), 0 4px 16px rgba(15,33,51,.06);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { color: var(--text); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.read { max-width: var(--read); margin: 0 auto; padding: 0 20px; }

/* Top info strip */
.topbar { background: var(--accent); color: #dbe9f7; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: #fff; }
.topbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 960px) { .topbar .hide-sm { display: none; } }

/* Header */
.site-header { background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo .word { font-weight: 700; font-size: 22px; letter-spacing: -0.03em; line-height: 1; }
.logo .word small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--text); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { padding: 9px 16px; font-size: 14px; color: #fff; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } .logo .word small { display: none; } }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 13px 24px; border-radius: 8px; font-weight: 600; text-decoration: none; font-size: 16px; border: 1px solid var(--accent); }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--accent); border-color: var(--line); margin-left: 8px; }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
@media (max-width: 480px) { .btn-ghost { margin: 10px 0 0; } }

/* Hero */
.hero { background: linear-gradient(180deg, var(--tint) 0%, #fff 100%); border-bottom: 1px solid var(--line); padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--teal); background: var(--teal-soft); padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-weight: 750; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 18px; }
.hero h1 span { color: var(--accent); }
.hero p.lede { font-size: clamp(17px, 2vw, 19.5px); color: var(--muted); max-width: 54ch; margin: 0 0 28px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--teal); flex: none; }

.facts { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 26px; }
.facts h2 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 16px; font-weight: 600; }
.fact { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.fact:first-of-type { border-top: 0; padding-top: 0; }
.fact .num { flex: none; width: 64px; font-size: 24px; font-weight: 750; color: var(--accent); letter-spacing: -0.02em; line-height: 1.2; }
.fact p { margin: 0; font-size: 15px; color: var(--text); line-height: 1.5; }
.facts .src { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

/* Sections */
section { padding: 56px 0; }
section.tinted { background: var(--tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.card:hover { border-color: #b9d2ea; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.card .icon { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.card .icon svg { width: 22px; height: 22px; }
.card .tag { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); }
.card h3 { font-size: 19px; line-height: 1.3; margin: 0; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--accent); }

.topics { display: flex; flex-wrap: wrap; gap: 10px; }
.topics span { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-size: 15px; }

.callout { background: var(--accent-soft); border: 1px solid #cfe0f2; border-radius: 16px; padding: 30px; }
.warn { background: var(--warn-soft); border: 1px solid var(--warn-line); border-left: 4px solid #d99a22; border-radius: 10px; padding: 18px 22px; font-size: 15.5px; }
.warn > strong { display: block; margin-bottom: 4px; }

/* Article */
.article-head { padding: 48px 0 20px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.article-head h1 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 750; }
.article-head .lede { font-size: 19.5px; color: var(--muted); margin: 0 0 20px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 0; }

.prose { padding-bottom: 40px; }
.prose h2 { font-size: 25px; line-height: 1.3; margin: 42px 0 12px; font-weight: 700; letter-spacing: -0.02em; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose .tldr { background: var(--accent-soft); border: 1px solid #cfe0f2; border-radius: 12px; padding: 20px 24px; margin: 8px 0 28px; }
.prose .tldr ul { margin-bottom: 0; }
.prose .tldr > strong:first-child { display: block; margin-bottom: 6px; color: var(--accent-dark); }

.table-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15.5px; background: #fff; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-weight: 600; background: var(--accent); color: #fff; }
tbody tr:nth-child(even) td { background: var(--tint); }
tr:last-child td { border-bottom: 0; }

.sources { font-size: 14.5px; color: var(--muted); background: var(--tint); border-radius: 12px; padding: 4px 22px 10px; margin-top: 36px; }
.sources h2 { font-size: 18px !important; margin-top: 18px !important; }
.sources ol { padding-left: 20px; }
.related { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 32px; }

/* Footer */
.site-footer { background: #0f2133; color: #a9b8c7; margin-top: 56px; padding: 44px 0 36px; font-size: 14.5px; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer a { color: #d5e1ec; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer .brand { color: #fff; font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.site-footer .brand svg { width: 28px; height: 28px; }
.site-footer .fine { margin-top: 28px; padding-top: 20px; border-top: 1px solid #23384d; font-size: 13px; max-width: 90ch; }
