/* Scenario Three — site styles. Palette and type carried over from the prototype. */
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url("/fonts/nunito-sans-latin.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url("/fonts/nunito-sans-latin-ext.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url("/fonts/nunito-sans-vietnamese.woff2") format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url("/fonts/nunito-sans-cyrillic.woff2") format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 800; font-stretch: 100%; font-display: swap; src: url("/fonts/nunito-sans-cyrillic-ext.woff2") format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }

:root {
  --ink: #15171a;
  --body: #4a4f54;
  --muted: #5c6b73; /* was #738a94 in the prototype: 3.6:1, fails AA. Same hue, darker. */
  --line: #e6e6e6;
  --line-strong: #15171a;
  --panel: #f4f5f6;
  --blue: #1636b8;
  --blue-pale: #e0e6f8;
  --bar-grey: #c5cdd3;
  --white: #ffffff;
  --font: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --measure: 720px;
  --wide: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--ink); }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.5px; line-height: 1.15; margin: 0; text-wrap: pretty; }
p { margin: 0; text-wrap: pretty; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 4px; font-weight: 700; z-index: 10; }
.skip:focus { top: 16px; color: #fff; }

.wrap { max-width: var(--wide); width: 100%; margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); width: 100%; margin: 0 auto; }

/* Header */
.site-header { text-align: center; }
.brand { display: inline-block; padding: 32px 0 20px; font-size: clamp(17px, 2.4vw, 22px); font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-bar { border-bottom: 1px solid var(--line); }
.nav-row { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav-links { display: flex; gap: clamp(12px, 3vw, 24px); font-size: clamp(14px, 3.6vw, 16px); font-weight: 700; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.nav-links a { text-decoration: none; color: var(--ink); padding: 8px 0; display: inline-block; }
.nav-links a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); }
.btn-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 clamp(12px, 3vw, 18px); border-radius: 20px; background: var(--blue); color: #fff; font-size: clamp(13px, 3.4vw, 15px); font-weight: 700; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; font-family: var(--font); }
.btn-pill:hover { color: #fff; background: #11298f; }
.btn-pill.lg { min-height: 48px; padding: 0 28px; font-size: 16px; border-radius: 24px; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; cursor: pointer; font-family: var(--font); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-outline.blue { color: var(--blue); }
.btn-round { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 1px solid var(--line); border-radius: 24px; background: #fff; color: var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; font-family: var(--font); }
.btn-round:hover { border-color: var(--blue); color: var(--blue); }

main { flex: 1 0 auto; }

/* Home */
.hero { padding: clamp(48px, 8vw, 96px) 0 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.portrait { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; display: block; }
.portrait img { display: block; width: 160px; height: 160px; object-fit: cover; }
.hero h1 { margin-top: 48px; max-width: 720px; font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -0.8px; }
.hero .intro { margin-top: 16px; max-width: 640px; font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--body); }
.hero .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 36px; width: 100%; max-width: 376px; }
.hero .actions > * { flex: 1 1 160px; max-width: 180px; }

.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: block; padding: 36px 0; text-decoration: none; color: var(--ink); }
.post-list a:hover .t { color: var(--blue); }
.post-list .meta, .kicker { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--blue); }
.post-list .t { display: block; margin-top: 10px; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -0.5px; }
.post-list .s { display: block; margin-top: 12px; font-size: 17px; line-height: 27px; color: var(--body); }
.section-pad { padding: 80px 0 96px; }
.section-pad.tight { padding: 56px 0 96px; }

/* Article */
.article-head { padding: 64px 0 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.article-head .meta { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.article-head .meta .tag { color: var(--blue); }
.article-head h1 { margin: 20px 0 0; max-width: 880px; font-size: clamp(30px, 4.5vw, 52px); line-height: 1.1; letter-spacing: -1px; }
.article-head .standfirst { margin: 24px 0 0; max-width: 820px; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--body); }
.article-head .byline { margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.article-head .byline a { color: var(--ink); font-weight: 700; }
.article-head .share { margin-top: 28px; }
.article-body { padding: 56px 0 0; }
.article-body .lede { font-size: clamp(18px, 2.1vw, 19px); line-height: 1.6; color: var(--body); margin-bottom: 40px; }
.article-body > p + p { margin-top: 18px; }
.fig { margin: 0 0 40px; }
.fig + .fig { margin-top: 48px; }
.fig-title { font-size: 16px; line-height: 1.4; font-weight: 800; letter-spacing: 0; color: var(--ink); margin: 0 0 4px; }
.fig-sub { font-size: 14px; line-height: 1.35; color: var(--muted); margin: 0 0 16px; }
.fig-note { font-size: 13px; line-height: 1.45; color: var(--muted); margin: 14px 0 0; }
.scroll { overflow-x: auto; outline-offset: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.scroll > table { min-width: 520px; }
.scroll > svg { min-width: 520px; display: block; }
.scroll-hint { display: none; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 599px) { .scroll-hint { display: block; } }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.35; }
table.data th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 0 0 8px 12px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; vertical-align: bottom; }
table.data th:first-child, table.data td:first-child { padding-left: 0; }
table.data td { padding: 11px 0 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 1px solid var(--line-strong); }
table.data .num, table.data th.num { text-align: right; white-space: nowrap; }
table.data .sub { display: block; font-size: 12px; line-height: 16px; color: var(--body); }
table.data .big { font-size: 18px; line-height: 22px; font-weight: 700; letter-spacing: -0.5px; white-space: nowrap; }
table.data .dim { color: var(--body); }
table.data .grey { color: var(--muted); }
table.data .blue { color: var(--blue); }
table.data .win { font-size: 16px; font-weight: 800; }
table.data .strong { font-weight: 800; }
table.data tr.total td { border-top: 1px solid var(--line-strong); border-bottom: 0; font-weight: 800; font-size: 16px; }
table.data td.mid { vertical-align: middle; }
.bar { display: flex; align-items: center; gap: 8px; min-width: 220px; }
.bar .track { flex: 0 0 220px; display: flex; height: 8px; }
.bar .seat { background: var(--blue-pale); height: 8px; }
.bar .use { background: var(--blue); height: 8px; }
.bar .v { font-size: 13px; font-weight: 700; white-space: nowrap; }
.bar-axis { display: flex; font-size: 11px; color: var(--muted); }
.bar-axis span { flex: 0 0 55px; }
.insights { margin-top: 44px; border-top: 1px solid var(--line-strong); }
.insight { padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.insight:last-child { border-bottom: 0; }
.insight h2 { font-size: clamp(20px, 2.4vw, 22px); line-height: 1.27; letter-spacing: -0.3px; margin: 0 0 8px; }
.insight h2 .n { color: var(--blue); padding-right: 10px; }
.insight p { font-size: 17px; line-height: 28px; }
.sources { margin-top: 44px; padding-top: 14px; border-top: 1px solid var(--line-strong); font-size: 13px; line-height: 19px; color: var(--muted); }
.sources strong { color: var(--ink); }
.fine { margin-top: 14px; font-size: 13px; line-height: 19px; color: var(--muted); }
.article-nav { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.article-nav a { text-decoration: none; display: block; }
.article-nav .lbl { display: block; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.article-nav .ttl { display: block; margin-top: 6px; font-weight: 800; line-height: 1.3; }
.article-nav .next { text-align: right; }
.article-nav .all { grid-column: 1 / -1; margin-top: 12px; font-weight: 700; }
@media (max-width: 480px) { .article-nav { grid-template-columns: 1fr; } .article-nav .next { text-align: left; } }
.article-cta { margin-top: 56px; padding: 28px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.article-cta p { font-weight: 700; }

/* Prose pages */
.prose { padding: 72px 0 96px; }
.prose h1 { font-size: clamp(30px, 4vw, 40px); letter-spacing: -1px; }
.prose .updated { margin: 12px 0 40px; font-size: 13px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.prose h2 { margin: 36px 0 10px; font-size: 20px; line-height: 26px; letter-spacing: -0.3px; }
.prose p, .prose li { font-size: 17px; line-height: 27px; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 0 0 14px; padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose .lead { font-size: 19px; line-height: 30px; }
.prose .lead + .lead { margin-top: 22px; }
.prose .lead.blue { color: var(--blue); font-weight: 700; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.input { width: 100%; min-height: 48px; padding: 0 16px; border: 1px solid #b9c1c7; border-radius: 3px; background: #fff; font-family: var(--font); font-size: 16px; color: var(--ink); }
textarea.input { padding: 14px 16px; line-height: 24px; resize: vertical; }
.input:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 16px; padding: 14px 16px; border-radius: 6px; font-size: 15px; line-height: 1.5; }
.form-msg.ok { background: #e8f5ef; color: #0b5a3c; }
.form-msg.err { background: #fdecec; color: #8a1c1c; }
.form-msg[hidden] { display: none; }
.subscribe-hero { padding: 96px 0 40px; text-align: center; }
.subscribe-hero h1 { font-size: clamp(30px, 4vw, 36px); line-height: 1.17; }
.subscribe-hero .sub { margin: 16px 0 32px; font-size: 18px; line-height: 28px; color: var(--body); }
.subscribe-form { display: flex; max-width: 440px; margin: 0 auto; }
.subscribe-form .input { flex: 1; min-width: 0; border-radius: 24px 0 0 24px; border-right: 0; }
.subscribe-form .btn-pill { border-radius: 0 24px 24px 0; min-height: 48px; padding: 0 24px; font-size: 16px; }
.recent { max-width: 440px; margin: 56px auto 0; text-align: left; }
.recent h2 { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.recent ol { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.recent li { border-bottom: 1px solid var(--line); }
.recent a { display: block; padding: 14px 0; text-decoration: none; font-weight: 700; }
.recent .d { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.subscribe-note { margin-top: 20px; font-size: 14px; color: var(--muted); }

/* Contact flow */
.contact { border-top: 1px solid var(--line); padding-top: 40px; margin-top: 8px; position: relative; }
.dots { display: flex; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.dots li { width: 44px; height: 4px; border-radius: 2px; background: var(--line); }
.dots li.on { background: var(--blue); }
.step legend, .step-title { font-size: clamp(24px, 3vw, 30px); line-height: 1.2; font-weight: 800; letter-spacing: -0.5px; padding: 0; margin: 0 0 8px; text-wrap: pretty; }
.step .step-sub { margin: 0 0 28px; font-size: 17px; line-height: 26px; color: var(--body); }
fieldset.step { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; }
.js fieldset.step { margin-bottom: 0; }
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt { display: flex; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.opt:hover { border-color: var(--blue); }
.opt input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid #9aa5ad; margin: 0; cursor: pointer; }
.opt input:checked { border: 7px solid var(--blue); }
.opt input:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.opt:has(input:checked) { border-color: var(--blue); }
.opt .ot { display: block; font-size: 18px; line-height: 24px; font-weight: 700; }
.opt .os { display: block; margin-top: 2px; font-size: 15px; line-height: 22px; color: var(--muted); }
.result { padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); margin-bottom: 28px; }
.result .kicker { margin-bottom: 6px; }
.result h2 { font-size: 20px; line-height: 28px; letter-spacing: -0.3px; margin: 0 0 10px; }
.result p { font-size: 16px; line-height: 25px; color: var(--body); }
.details { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.details .span { grid-column: 1 / -1; }
.details .actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.details .alt { font-size: 14px; color: var(--muted); }
.details .alt a { color: var(--blue); text-decoration: none; font-weight: 700; }
.flow-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; }
.flow-foot .note { font-size: 14px; color: var(--muted); }
.btn-back { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--body); font-size: 20px; cursor: pointer; font-family: var(--font); }
.btn-back:hover { border-color: var(--blue); color: var(--blue); }
.btn-back[hidden] { display: none; }
[hidden] { display: none !important; }
.sent { padding: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.sent h2 { font-size: 22px; margin-bottom: 8px; }
.sent p + p { margin-top: 10px; }

/* Footer */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); }
.site-footer .inner { padding: 40px 0 48px; display: flex; flex-direction: column; gap: 20px; font-size: 14px; line-height: 22px; color: var(--muted); }
.site-footer .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; }
.site-footer .brand-sm { font-size: 14px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); }
.site-footer ul { display: flex; gap: 24px; margin: 0; padding: 0; list-style: none; font-weight: 700; flex-wrap: wrap; }
.site-footer ul a { color: var(--ink); text-decoration: none; }
.site-footer ul a:hover { color: var(--blue); }

/* 404 */
.notfound { padding: 96px 0 128px; text-align: center; }
.notfound h1 { font-size: clamp(30px, 4vw, 40px); }
.notfound p { margin: 16px auto 32px; max-width: 480px; color: var(--body); font-size: 18px; }

@media print { .site-header, .site-footer, .share, .article-cta, .article-nav { display: none; } }
