/* ==========================================================================
   AgFin Atlas — design system v3 ("data report")
   Manrope (display) + Inter (text). Centred 1320px report grid; text and figures share column edges.
   ========================================================================== */
:root {
  color-scheme: light;
  --bg: #f2f4f1; --surface: #ffffff; --surface-2: #f6f7f5; --surface-3: #eceeea; --border: #e1e5df; --border-strong: #c9cfc6;
  --text: #15201b; --text-2: #46534c; --text-3: #7a857f;
  --brand: #0f4c3a; --brand-2: #176a50; --brand-ink: #0b3a2c; --brand-soft: #e3efe8; --brand-tint: #eef4f0; --link: #176a50;
  --warn-bg: #fdf6e3; --warn-border: #ecd9a0; --grid: #e8ebe6;
  --series-1: #2b6cb0; --series-2: #d97706; --series-3: #2f855a; --series-4: #7c5cbf; --series-5: #c53030; --series-6: #0e9aa7;
  --shadow: 0 1px 2px rgba(21,32,27,.05), 0 8px 24px rgba(21,32,27,.06); --shadow-sm: 0 1px 2px rgba(21,32,27,.06);
  --radius: 14px;
  --display: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --container: 1360px; --rail: 220px; --toc: 200px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1412; --surface: #171d1a; --surface-2: #1d2420; --surface-3: #242c27; --border: #2a332e; --border-strong: #3b4740;
  --text: #e9ece9; --text-2: #b4bcb6; --text-3: #7f8a83;
  --brand: #0f4c3a; --brand-2: #5cc496; --brand-ink: #9bdcbf; --brand-soft: #1b2f26; --brand-tint: #151f1a; --link: #6fcfa2;
  --warn-bg: #2a2416; --warn-border: #6a5724; --grid: #273029;
  --series-1: #4a8ccc; --series-2: #c97f1a; --series-3: #3fa066; --series-4: #9580d6; --series-5: #d65c5b; --series-6: #2aa5b6;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 28px rgba(0,0,0,.3); --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .4em; color: var(--text); }
h1 { font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem); letter-spacing: -.03em; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.05rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .35em; }
strong { font-weight: 650; }
small, .muted { color: var(--text-3); }
.num { font-variant-numeric: tabular-nums; }
::selection { background: var(--brand-soft); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 60; background: var(--brand); color: #fff; height: 58px; }
.topbar .inner { max-width: var(--container); margin: 0 auto; padding: 0 28px; height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .t { display: flex; flex-direction: column; line-height: 1.1; }
.brand .tagline { font-family: var(--sans); font-size: .66rem; font-weight: 500; letter-spacing: .01em; color: rgba(255,255,255,.72); margin-top: 2px; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-size: 15px; }
.topbar .spacer { flex: 1; }
.topnav { display: flex; gap: 2px; margin-left: 10px; }
.topnav a { padding: 7px 12px; border-radius: 8px; color: rgba(255,255,255,.78); font-size: .88rem; font-weight: 500; }
.topnav a:hover { background: rgba(255,255,255,.1); text-decoration: none; color: #fff; }
.topnav a.active { background: rgba(255,255,255,.16); color: #fff; }
.select { appearance: none; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff; padding: 7px 34px 7px 12px; border-radius: 999px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 16px) 14px, calc(100% - 11px) 14px; background-size: 5px 5px; background-repeat: no-repeat; }
.select { max-width: 260px; min-width: 0; text-overflow: ellipsis; }
.select option { color: #111; background: #fff; }
.select:focus { outline: 2px solid rgba(255,255,255,.6); outline-offset: 1px; }
.btn { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); padding: 6px 11px; border-radius: 8px; font: inherit; font-size: .82rem; font-weight: 500; cursor: pointer; line-height: 1.2; transition: all .12s; }
.btn:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }
.btn.small { padding: 4px 8px; font-size: .74rem; }
.btn.icon { width: 32px; height: 32px; padding: 0; display: inline-grid; place-items: center; border-radius: 999px; }
.topbar .btn.icon { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); color: #fff; }

/* Hero band */
.hero-band { background: linear-gradient(180deg, var(--brand-tint) 0%, var(--bg) 100%); border-bottom: 1px solid var(--border); }
.hero-band .inner { max-width: var(--container); margin: 0 auto; padding: 36px 28px 28px; }
.hero-band .eyebrow { margin-bottom: 8px; }
.hero-band h1 { max-width: 22ch; }
.hero-band .lede { max-width: 80ch; text-align: justify; hyphens: auto; }
.hero-band .kpis { margin: 26px 0 0; }
.hero-band .inner:empty { display: none; }
.eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--brand-2); font-weight: 700; }
.lede { font-size: 1.12rem; line-height: 1.55; color: var(--text-2); margin: 6px 0 0; }

/* Layout */
.layout { max-width: var(--container); margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr) var(--toc); gap: 40px; }
.layout > * { min-width: 0; }
.sidenav { position: sticky; top: 58px; align-self: start; max-height: calc(100vh - 58px); overflow-y: auto; padding: 24px 0; }
.country-head { padding: 0 10px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--border); }
.country-head .name { font-family: var(--display); font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: 8px; letter-spacing: -.02em; }
.country-head .flag { font-size: 1.35rem; line-height: 1; }
.country-head .meta { font-size: .74rem; color: var(--text-3); margin-top: 3px; }
.sidenav .group { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); padding: 14px 10px 6px; font-weight: 700; }
.navlink { display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--text-2); font-size: .86rem; line-height: 1.3; border-left: 2px solid transparent; }
.navlink .n { font-variant-numeric: tabular-nums; font-size: .68rem; color: var(--text-3); width: 1.5em; flex: none; font-weight: 600; }
.navlink:hover { background: var(--surface); color: var(--text); text-decoration: none; }
.navlink.active { background: var(--surface); color: var(--brand-ink); font-weight: 650; border-left-color: var(--brand-2); box-shadow: var(--shadow-sm); }
.navlink.active .n { color: var(--brand-2); }
.main { padding: 28px 0 72px; min-width: 0; }

/* On this page */
.onpage { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 22px; }
.onpage span { font-size: .68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-right: 6px; }
.onpage a { font-size: .8rem; padding: 5px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.onpage a:hover { border-color: var(--brand-2); color: var(--brand-ink); text-decoration: none; }

/* Right-hand TOC (wide screens) */
.toc { position: sticky; top: 58px; align-self: start; max-height: calc(100vh - 58px); overflow-y: auto; padding: 28px 0 24px 16px; border-left: 1px solid var(--border); margin-top: 28px; }
.toc:empty { border: 0; }
.toc-title { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-weight: 700; margin-bottom: 8px; }
.toc-link { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; font-size: .8rem; color: var(--text-2); line-height: 1.35; border-left: 2px solid transparent; margin-left: -17px; padding-left: 15px; }
.toc-link .toc-n { font-variant-numeric: tabular-nums; font-size: .68rem; color: var(--text-3); flex: none; width: 2.2em; font-weight: 600; }
.toc-link:hover { color: var(--text); text-decoration: none; }
.toc-link.active { color: var(--brand-ink); font-weight: 650; border-left-color: var(--brand-2); }
.toc-link.active .toc-n { color: var(--brand-2); }
.toc-src { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); margin-left: 0; padding-left: 0; }
@media (min-width: 1201px) { .onpage { display: none; } }
@media (max-width: 1200px) { .layout { grid-template-columns: var(--rail) minmax(0, 1fr); } .toc { display: none; } }

/* Blocks */
.h2block { display: flex; align-items: baseline; gap: 14px; margin: 44px 0 16px; padding-top: 22px; border-top: 1px solid var(--border); }
.h2block.first { margin-top: 4px; border-top: 0; padding-top: 0; }
.h2block .h2n { font-family: var(--display); font-weight: 800; color: var(--brand-2); font-size: .78rem; letter-spacing: .04em; flex: none; padding: 3px 8px; border-radius: 6px; background: var(--brand-soft); }
.h2block h2 { margin: 0; }
.prose { font-size: .98rem; max-width: none; margin: 0 0 18px; text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-justify: inter-word; }
.prose p { color: var(--text); line-height: 1.68; }
.prose p:last-child { margin-bottom: 0; }
.callout { border-left: 3px solid var(--brand-2); background: var(--brand-soft); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 0 0 22px; color: var(--text); font-size: .93rem; text-align: justify; hyphens: auto; }
.note { font-size: .86rem; color: var(--text-2); }

/* Citations */
sup.cite { font-size: .66em; line-height: 0; vertical-align: super; margin-left: .5px; }
sup.cite a { color: var(--brand-2); font-weight: 700; font-variant-numeric: tabular-nums; text-decoration: none; padding: 0 1px; border-radius: 3px; }
sup.cite a:hover, sup.cite a:focus { background: var(--brand-soft); outline: none; }
sup.cite.more::before { content: ","; color: var(--text-3); font-weight: 500; margin: 0 .5px 0 -.5px; }
.popover { position: absolute; z-index: 80; width: 330px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; box-shadow: var(--shadow); padding: 12px 14px; font-size: .8rem; line-height: 1.45; color: var(--text); display: none; }
.popover.show { display: block; }
.popover .p-org { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 700; margin-bottom: 4px; }
.popover .p-title { font-weight: 600; margin-bottom: 6px; }
.popover .p-meta { color: var(--text-3); font-size: .72rem; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.popover .p-open { display: inline-block; margin-top: 8px; font-weight: 600; }

/* Page sources */
.page-sources { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border); }
.page-sources h3 { margin-top: 0; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); font-family: var(--sans); }
.page-sources ol { padding-left: 1.8em; font-size: .82rem; color: var(--text-2); columns: 2; column-gap: 32px; }
.page-sources li { margin-bottom: 6px; padding-left: 4px; break-inside: avoid; }
.page-sources li::marker { color: var(--text-3); font-variant-numeric: tabular-nums; }
.page-sources .s-org { color: var(--text-3); }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px 14px; box-shadow: var(--shadow-sm); }
.kpi .label { font-size: .74rem; color: var(--text-3); margin-bottom: 10px; font-weight: 600; }
.kpi .value { font-family: var(--display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--text); }
.kpi .value small { font-family: var(--sans); font-size: .76rem; font-weight: 500; color: var(--text-2); margin-left: 5px; letter-spacing: 0; }
.kpi .foot { font-size: .72rem; color: var(--text-3); margin-top: 10px; display: flex; gap: 6px; align-items: baseline; }

/* Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 22px; align-items: stretch; }
.grid-2 .fig { margin: 0; display: flex; flex-direction: column; }
.grid-2 .fig .fig-foot { margin-top: auto; padding-top: 8px; }
.grid-2 .fig .canvas-wrap { height: 260px; }
.grid-3 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; }
.grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 720px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 0; font-size: .98rem; }
.card .note { font-size: .88rem; }
.inst .i-name { font-weight: 700; font-size: .96rem; color: var(--text); font-family: var(--display); letter-spacing: -.01em; }
.inst .i-name a { color: inherit; }
.inst .i-tr { font-size: .76rem; color: var(--text-3); font-style: italic; }
.inst .i-role { font-size: .86rem; color: var(--text-2); margin-top: 6px; text-align: justify; hyphens: auto; }
.inst .i-url { font-size: .72rem; margin-top: 8px; color: var(--text-3); word-break: break-all; }

/* Figures */
.fig { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px 12px; margin: 0 0 22px; box-shadow: var(--shadow-sm); }
.fig .fig-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.fig .fig-title { font-family: var(--display); font-weight: 700; font-size: .95rem; margin: 0; color: var(--text); letter-spacing: -.01em; }
.fig .fig-sub { font-size: .77rem; color: var(--text-3); margin-top: 3px; line-height: 1.4; }
.fig .fig-tools { display: flex; gap: 4px; flex: none; opacity: .5; transition: opacity .15s; }
.fig:hover .fig-tools { opacity: 1; }
.fig .canvas-wrap { position: relative; height: 320px; }
.fig .canvas-wrap.tall { height: 400px; }
.fig .fig-foot { font-size: .72rem; color: var(--text-3); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); line-height: 1.5; }
.fig .fig-foot a, .table-card .t-foot a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 2px; }
.fig .fig-foot a:hover, .table-card .t-foot a:hover { color: var(--brand-ink); text-decoration-color: currentColor; }
.fig .table-wrap { max-height: 380px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.fig .table-wrap table { font-size: .8rem; }

/* Tables */
table { border-collapse: collapse; width: 100%; font-size: .86rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text-3); font-weight: 700; font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; background: var(--surface-2); position: sticky; top: 0; z-index: 1; }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
th.num { white-space: normal; }
td:first-child { color: var(--text); font-weight: 500; }
td.key { min-width: 150px; }
td.num.wrap { white-space: normal; text-align: right; max-width: 52ch; }
td.txt { min-width: 160px; }
.table-card table { table-layout: auto; }
.table-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px 12px; margin: 0 0 22px; box-shadow: var(--shadow-sm); }
.table-card .t-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.table-card .t-title { font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: -.01em; }
.table-card .t-sub { font-size: .77rem; color: var(--text-3); margin-top: 3px; }
.table-card .t-foot { font-size: .72rem; color: var(--text-3); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.table-card .t-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 8px; }

/* Laws */
.law { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.law .law-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.law .law-title { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.law .law-no { font-size: .7rem; color: var(--text-2); background: var(--surface-3); padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; font-weight: 600; }
.law .law-tr { font-size: .78rem; color: var(--text-3); font-style: italic; margin: 2px 0 8px; }
.law .law-body { font-size: .9rem; color: var(--text); max-width: none; text-align: justify; hyphens: auto; }
.law .law-amend { font-size: .84rem; color: var(--text-2); margin-top: 8px; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; max-width: none; text-align: justify; hyphens: auto; }
.law .law-links { margin-top: 10px; font-size: .78rem; display: flex; gap: 14px; flex-wrap: wrap; }
.tag { display: inline-block; font-size: .64rem; padding: 1px 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border); margin-left: 4px; vertical-align: middle; letter-spacing: .02em; font-weight: 600; }
.tag.v { background: #e3f2e8; color: #1a5c35; border-color: #bfdfcb; }
.tag.l { background: #e9f0f8; color: #1e4e8c; border-color: #c6d7ee; }
.tag.u { background: #fbe9e7; color: #8f2a1d; border-color: #f0c7c1; }
:root[data-theme="dark"] .tag.v { background: #1d3327; color: #8fd4ab; border-color: #2f5a41; }
:root[data-theme="dark"] .tag.l { background: #1c2b3d; color: #9cc3ec; border-color: #2f4d6e; }
:root[data-theme="dark"] .tag.u { background: #3a2220; color: #f0a39a; border-color: #6a3630; }
.programs td { font-size: .82rem; }

/* Sources page */
.sources { list-style: none; padding: 0; }
.sources li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.sources .src-org { color: var(--text-3); font-size: .74rem; margin-top: 2px; }
.sources .src-url { color: var(--text-3); font-size: .72rem; word-break: break-all; }

/* Statistics page */
.filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 18px; }
.filterbar input[type=search] { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .88rem; min-width: 280px; }
.filterbar .select { background-color: var(--surface); color: var(--text); border-color: var(--border); background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); }
.stat-group { margin-top: 34px; }
.stat-group h2 { margin: 0 0 12px; font-size: 1.25rem; display: flex; align-items: baseline; gap: 10px; }
.stat-group h2 small { font-family: var(--sans); font-size: .74rem; color: var(--text-3); font-weight: 500; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.stat-grid .fig, .stat-grid .table-card { margin: 0; }
.stat-grid .table-card { grid-column: 1 / -1; }

/* Pager */
.pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; }
.pager a { flex: 1; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; color: var(--text); box-shadow: var(--shadow-sm); }
.pager a:hover { border-color: var(--brand-2); text-decoration: none; }
.pager a .pg-l { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); margin-bottom: 4px; font-weight: 700; }
.pager a .pg-t { font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.pager a.next { text-align: right; }

/* Disclaimer + footer */
.disclaimer { margin-top: 30px; background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius); padding: 14px 18px; font-size: .82rem; color: var(--text-2); display: flex; gap: 12px; align-items: flex-start; }
.disclaimer .ico { font-size: 1rem; line-height: 1.5; }
.footer { margin-top: 20px; font-size: .74rem; color: var(--text-3); display: flex; flex-wrap: wrap; gap: 6px 20px; }

/* Landing */
.landing { max-width: var(--container); margin: 0 auto; padding: 0 28px 60px; }
.hero { padding: 64px 0 40px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 3vw, 3.9rem); max-width: 15ch; }
.hero .lede { font-size: 1.15rem; max-width: 56ch; }
.hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hero-fact { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 18px 14px; box-shadow: var(--shadow-sm); }
.hero-fact b { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.hero-fact span { display: block; font-size: .74rem; color: var(--text-3); margin-top: 8px; font-weight: 600; }
.section-title { display: flex; align-items: baseline; gap: 12px; margin: 36px 0 14px; }
.section-title h2 { margin: 0; font-size: 1.35rem; }
.section-title span { font-size: .78rem; color: var(--text-3); }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.country-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: flex; gap: 14px; align-items: center; color: var(--text); transition: transform .14s, border-color .14s, box-shadow .14s; box-shadow: var(--shadow-sm); }
.country-card:hover { transform: translateY(-2px); border-color: var(--brand-2); box-shadow: var(--shadow); text-decoration: none; }
.country-card .flag { font-size: 2rem; line-height: 1; }
.country-card .cname { font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.country-card .cmeta { font-size: .74rem; color: var(--text-3); margin-top: 2px; }
.country-card.soon { opacity: .5; pointer-events: none; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feature { padding: 20px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature .f-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-size: 1rem; margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: .98rem; }
.feature p { font-size: .86rem; color: var(--text-2); margin: 0; }

/* ==========================================================================
   Visual layer: infographic blocks and the interactive trade map
   ========================================================================== */
:root {
  --seq-1: #dcefe4; --seq-2: #b3dcc5; --seq-3: #7fc1a0; --seq-4: #4a9e78; --seq-5: #24785a; --seq-6: #0c4f39;
  --map-nodata: #e7eae6; --map-home: #2b6cb0; --map-sphere: #f7f9f6; --map-arc: #d97706;
  --tone-0: #176a50; --tone-1: #2b6cb0; --tone-2: #b4610a; --tone-3: #6d4fb3;
  --hi: #2f855a; --lo: #d97706;
}
:root[data-theme="dark"] {
  --seq-1: #1f3a2e; --seq-2: #24543f; --seq-3: #2f7354; --seq-4: #44946c; --seq-5: #6bb88e; --seq-6: #a9dcbf;
  --map-nodata: #262e29; --map-home: #4a8ccc; --map-sphere: #141a17; --map-arc: #e09a3a;
  --tone-0: #6fcfa2; --tone-1: #7fb2e6; --tone-2: #e3a24f; --tone-3: #ad98e8;
  --hi: #4fb57d; --lo: #e09a3a;
}
.ico { width: 1em; height: 1em; display: block; }
.tone-0 { --tc: var(--tone-0); } .tone-1 { --tc: var(--tone-1); } .tone-2 { --tc: var(--tone-2); } .tone-3 { --tc: var(--tone-3); }
.vb { margin: 0 0 22px; }
.card-vb { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px 12px; box-shadow: var(--shadow-sm); }
.vb-head { margin-bottom: 14px; }
.card-vb .fig-foot { font-size: .72rem; color: var(--text-3); margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--border); line-height: 1.5; }
.card-vb .fig-foot a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 2px; }
.vb-title { font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: -.01em; color: var(--text); }
.vb-sub { font-size: .77rem; color: var(--text-3); margin-top: 3px; line-height: 1.4; }

/* Fact strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 16px 14px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tc); }
.stat-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--tc); background: color-mix(in srgb, var(--tc) 13%, transparent); font-size: 21px; }
.stat-val { font-family: var(--display); font-weight: 800; font-size: 1.65rem; letter-spacing: -.03em; line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-val small { font-family: var(--sans); font-size: .74rem; font-weight: 600; color: var(--text-2); margin-left: 4px; letter-spacing: 0; }
.stat-lab { font-size: .8rem; color: var(--text-2); margin-top: 5px; line-height: 1.4; }

/* Pictograms */
.pg-grid { display: grid; gap: 18px; }
.pg-grid.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pg-grid.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pg-grid.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pg { --pg-on: var(--tc); --pg-off: color-mix(in srgb, var(--text-3) 18%, transparent); display: flex; flex-direction: column; gap: 8px; }
.pg-top { display: flex; align-items: center; gap: 10px; }
.pg-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--tc); background: color-mix(in srgb, var(--tc) 13%, transparent); font-size: 18px; flex: none; }
.pg-num { font-family: var(--display); font-weight: 800; font-size: 2.1rem; letter-spacing: -.04em; line-height: 1; color: var(--tc); font-variant-numeric: tabular-nums; }
.pg-lab { font-size: .8rem; color: var(--text-2); line-height: 1.4; min-height: 2.8em; }
.dots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-width: 230px; margin-top: auto; }
.dot { aspect-ratio: 1; border-radius: 50%; background: var(--pg-off); }
.dot.on { background: var(--pg-on); }

/* Meters */
.meters { display: grid; gap: 7px; margin-bottom: 6px; }
.meter { display: grid; grid-template-columns: minmax(130px, 210px) minmax(0, 1fr) 62px; gap: 12px; align-items: center; font-size: .82rem; }
.m-lab { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; }
.m-ico { color: var(--text-3); font-size: 15px; flex: none; }
.m-track { position: relative; height: 12px; background: var(--surface-3); border-radius: 999px; }
.m-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.m-fill.hi { background: var(--hi); }
.m-fill.lo { background: var(--lo); }
.m-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); border-radius: 2px; }
.m-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text); }
.m-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .74rem; color: var(--text-2); margin: -4px 0 12px; }
.m-legend .lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.m-legend .lg.hi::before { background: var(--hi); } .m-legend .lg.lo::before { background: var(--lo); }
.m-legend .lg.mk::before { width: 2px; height: 12px; background: var(--text); border-radius: 1px; }

/* Flow diagram */
.flow { display: flex; align-items: stretch; gap: 4px; margin-bottom: 8px; }
.fl-step { flex: 1 1 0; min-width: 0; background: color-mix(in srgb, var(--tc) 7%, var(--surface)); border: 1px solid color-mix(in srgb, var(--tc) 28%, var(--border)); border-radius: 12px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.fl-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--tc); font-size: 18px; margin-bottom: 4px; }
.fl-title { font-family: var(--display); font-weight: 700; font-size: .88rem; color: var(--text); letter-spacing: -.01em; line-height: 1.25; }
.fl-val { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em; color: var(--tc); line-height: 1.1; font-variant-numeric: tabular-nums; }
.fl-val small { font-family: var(--sans); font-size: .7rem; color: var(--text-2); font-weight: 600; margin-left: 3px; letter-spacing: 0; }
.fl-note { font-size: .76rem; color: var(--text-2); line-height: 1.4; }
.fl-arrow { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-3); font-size: 18px; min-width: 30px; padding: 0 2px; gap: 3px; }
.fl-arrow-lab { font-size: .62rem; font-weight: 700; color: var(--text-2); white-space: nowrap; background: var(--surface-3); border-radius: 999px; padding: 1px 6px; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0 0 8px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 91px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { display: grid; grid-template-columns: 78px 28px minmax(0, 1fr); align-items: start; margin: 0; padding: 6px 0 10px; }
.tl-date { font-family: var(--display); font-weight: 800; font-size: .86rem; color: var(--text); text-align: right; padding-right: 2px; font-variant-numeric: tabular-nums; line-height: 1.5; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--tc, var(--brand-2)); margin: 4px 0 0 8px; position: relative; z-index: 1; }
.tl-item.tag-law { --tc: var(--tone-0); } .tl-item.tag-finance { --tc: var(--tone-1); } .tl-item.tag-strategy { --tc: var(--tone-3); } .tl-item.tag-climate { --tc: var(--tone-2); } .tl-item.tag-market { --tc: var(--tone-2); } .tl-item.tag-institution { --tc: var(--tone-1); }
.tl-title { font-weight: 650; font-size: .88rem; color: var(--text); line-height: 1.4; }
.tl-tag { display: inline-block; margin-left: 8px; font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--tc); background: color-mix(in srgb, var(--tc) 12%, transparent); padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }
.tl-text { font-size: .8rem; color: var(--text-2); line-height: 1.45; margin-top: 2px; }

/* Rank cards */
.ranks { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.rank { background: linear-gradient(160deg, color-mix(in srgb, var(--brand-2) 10%, var(--surface)) 0%, var(--surface) 60%); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 16px 14px; box-shadow: var(--shadow-sm); }
.rk-top { display: flex; align-items: center; justify-content: space-between; }
.rk-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--brand-2); background: var(--brand-soft); font-size: 19px; }
.rk-no { font-family: var(--display); font-weight: 800; font-size: 2.3rem; letter-spacing: -.05em; line-height: 1; color: var(--brand-2); }
.rk-no sup { font-size: .42em; letter-spacing: 0; margin-left: 1px; vertical-align: super; }
.rk-lab { font-family: var(--display); font-weight: 700; font-size: .98rem; margin-top: 10px; color: var(--text); letter-spacing: -.01em; }
.rk-sub { font-size: .77rem; color: var(--text-2); margin-top: 2px; line-height: 1.4; }
.rk-sub strong { color: var(--text); }

/* Split bar */
.split-bar { display: flex; height: 34px; border-radius: 10px; overflow: hidden; gap: 2px; background: var(--surface); }
.split-bar .sg { display: grid; place-items: center; color: #fff; font-size: .74rem; font-weight: 700; min-width: 3px; }
.split-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .78rem; color: var(--text-2); margin: 10px 0 6px; }
.split-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Trade map */
.map-fig .map-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 12px; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 999px; padding: 3px; gap: 2px; }
.seg-b { border: 0; background: transparent; color: var(--text-2); font: inherit; font-size: .8rem; font-weight: 600; padding: 5px 13px; border-radius: 999px; cursor: pointer; }
.seg-b:hover { color: var(--text); }
.seg-b.on { background: var(--surface); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.map-fig .sel { appearance: none; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: 999px; padding: 6px 30px 6px 12px; font: inherit; font-size: .8rem; max-width: 100%; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 15px) 13px, calc(100% - 10px) 13px; background-size: 5px 5px; background-repeat: no-repeat; }
.map-total { margin-left: auto; text-align: right; line-height: 1.2; }
.map-total span { display: block; font-size: .7rem; color: var(--text-3); }
.map-total strong { font-family: var(--display); font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.map-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.map-stage { position: relative; min-width: 0; }
.map-canvas svg { display: block; width: 100%; height: auto; }
.map-sphere { fill: var(--map-sphere); stroke: var(--border); stroke-width: .6; }
.cty { stroke: var(--surface); stroke-width: .5; transition: fill .2s, opacity .2s; }
.cty.has { cursor: pointer; }
.cty:hover, .cty.hl { stroke: var(--text); stroke-width: 1.2; }
.cty.home { stroke: var(--surface); stroke-width: .8; }
.arc { fill: none; stroke: var(--map-arc); stroke-opacity: .82; stroke-linecap: round; pointer-events: none; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: arcdraw 1.1s ease-out forwards; }
.arc-end { fill: var(--map-arc); stroke: var(--surface); stroke-width: 1.2; pointer-events: none; }
.home-dot { fill: var(--map-home); stroke: var(--surface); stroke-width: 2; pointer-events: none; }
.home-lab { font-family: var(--display); font-size: 12px; font-weight: 800; fill: var(--text); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; pointer-events: none; }
@keyframes arcdraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .arc { animation: none; stroke-dashoffset: 0; } }
.map-tip { position: absolute; z-index: 5; pointer-events: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; box-shadow: var(--shadow); padding: 8px 11px; font-size: .78rem; line-height: 1.45; display: none; max-width: 240px; }
.map-tip.show { display: block; }
.map-tip strong { display: block; font-family: var(--display); font-size: .88rem; }
.map-tip span { display: block; color: var(--text-2); }
.map-tip b { color: var(--text); }
.map-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: .7rem; color: var(--text-3); margin-top: 8px; }
.map-legend .lg-t { font-weight: 700; color: var(--text-2); }
.map-legend .lg-c { display: inline-flex; align-items: center; gap: 4px; }
.map-legend i { display: inline-block; width: 18px; height: 10px; border-radius: 2px; }
.lg-scale { display: inline-flex; gap: 0; align-items: flex-start; }
.lg-bin { display: inline-flex; flex-direction: column; align-items: flex-start; }
.lg-bin i { width: 38px; height: 10px; border-radius: 0; }
.lg-bin:first-child i { border-radius: 3px 0 0 3px; } .lg-bin:last-child i { border-radius: 0 3px 3px 0; }
.lg-bin em { font-style: normal; font-size: .66rem; color: var(--text-3); margin-top: 2px; font-variant-numeric: tabular-nums; }
.map-list { font-size: .8rem; border-top: 1px solid var(--border); padding-top: 12px; }
.ml-cols { columns: 3; column-gap: 24px; }
.ml-cols .ml-row { break-inside: avoid; }
.ml-head { display: flex; justify-content: space-between; font-size: .64rem; padding: 0 4px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 700; margin-bottom: 6px; }
.ml-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 4px; border-radius: 6px; cursor: default; }
.ml-row:hover { background: var(--surface-2); }
.ml-rk { font-size: .7rem; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; }
.ml-name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.ml-bar { height: 4px; background: var(--surface-3); border-radius: 999px; margin-top: 3px; }
.ml-bar i { display: block; height: 100%; border-radius: 999px; background: var(--seq-5); }
.ml-val { text-align: right; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ml-val strong { display: block; font-size: .8rem; color: var(--text); }
.ml-val span { font-size: .66rem; color: var(--text-3); }
.ml-more { font-size: .72rem; color: var(--text-3); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.map-fallback { padding: 40px; text-align: center; color: var(--text-3); }
.span-all { grid-column: 1 / -1; }

@media (max-width: 1100px) { .ml-cols { columns: 2; } }
@media (max-width: 900px) {
  .pg-grid.n3, .pg-grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { flex-direction: column; }
  .fl-arrow { width: 100%; height: 26px; flex-direction: row; transform: none; }
  .fl-arrow .ico { transform: rotate(90deg); }
  .meter { grid-template-columns: minmax(100px, 140px) minmax(0, 1fr) 54px; gap: 8px; }
  .map-total { margin-left: 0; text-align: left; width: 100%; }
}
@media (max-width: 560px) {
  .pg-grid.n2, .pg-grid.n3, .pg-grid.n4 { grid-template-columns: 1fr; }
  .ml-cols { columns: 1; }
  .timeline::before { left: 63px; }
  .tl-item { grid-template-columns: 50px 26px minmax(0, 1fr); }
  .tl-date { font-size: .78rem; }
}

/* Landing: map-based country picker */
:root { --pk-sea: #e9efec; --pk-land: #dfe4dd; --pk-soon: #b9d4c5; --pk-live: #176a50; --pk-live-hover: #0f4c3a; }
:root[data-theme="dark"] { --pk-sea: #121815; --pk-land: #252d28; --pk-soon: #2c4a3b; --pk-live: #4fb07f; --pk-live-hover: #7fd0a6; }
.picker { margin: 28px 0 8px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px 20px 16px; }
.pk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.pk-head h1 { font-size: 1.35rem; margin: 0; letter-spacing: -.02em; }
.pk-legend { display: flex; gap: 16px; font-size: .78rem; color: var(--text-2); }
.pk-legend .lg::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.pk-legend .lg.live::before { background: var(--pk-live); } .pk-legend .lg.soon::before { background: var(--pk-soon); }
.pk-stage { position: relative; border-radius: 10px; overflow: hidden; }
.pk-map svg { display: block; width: 100%; height: auto; }
.pk-sea { fill: var(--pk-sea); }
.pk-c { fill: var(--pk-land); stroke: var(--surface); stroke-width: .6; transition: fill .15s; }
.pk-c.soon { fill: var(--pk-soon); cursor: default; }
.pk-c.live { fill: var(--pk-live); cursor: pointer; }
.pk-c.live:hover, .pk-c.live.hl { fill: var(--pk-live-hover); }
.pk-c.soon:hover, .pk-c.soon.hl { stroke: var(--text-2); stroke-width: 1.2; }
.pk-marker { cursor: pointer; }
.pk-dot { fill: #fff; stroke: var(--pk-live-hover); stroke-width: 3; }
.pk-pulse { fill: var(--pk-live); opacity: .35; transform-box: fill-box; transform-origin: center; animation: pkpulse 2.4s ease-out infinite; }
@keyframes pkpulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(2.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pk-pulse { animation: none; } }
.pk-label { font-family: var(--display); font-weight: 800; font-size: 13px; fill: var(--text); paint-order: stroke; stroke: var(--surface); stroke-width: 3.5px; stroke-linejoin: round; pointer-events: none; }
.pk-marker:hover .pk-dot, .pk-marker:focus .pk-dot, .pk-marker.hl .pk-dot { fill: var(--pk-live); }
.pk-marker:focus { outline: none; }
.pk-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pk-chip { display: inline-flex; flex-direction: column; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font-size: .82rem; line-height: 1.25; color: var(--text-2); }
.pk-chip b { font-weight: 650; color: var(--text); }
.pk-chip small { font-size: .68rem; color: var(--text-3); }
.pk-chip.live { border-color: var(--pk-live); background: color-mix(in srgb, var(--pk-live) 10%, var(--surface)); }
.pk-chip.live:hover, .pk-chip.live.hl, .pk-chip.live:focus { background: var(--pk-live); text-decoration: none; }
.pk-chip.live:hover b, .pk-chip.live:hover small, .pk-chip.live.hl b, .pk-chip.live.hl small, .pk-chip.live:focus b, .pk-chip.live:focus small { color: #fff; }
.pk-chip.soon { opacity: .75; }
.pk-chip.soon.hl { opacity: 1; border-color: var(--border-strong); }
.pk-fallback { padding: 30px; text-align: center; color: var(--text-3); }

/* Responsive */
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .page-sources ol { columns: 1; } }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 0; padding: 0 16px; }
  .sidenav { position: sticky; top: 58px; max-height: none; padding: 10px 0; display: flex; gap: 6px; overflow-x: auto; white-space: nowrap; z-index: 50; background: var(--bg); max-width: 100%; }
  .sidenav .country-head, .sidenav .group { display: none; }
  .navlink { padding: 6px 11px; border: 1px solid var(--border); border-radius: 999px; font-size: .8rem; background: var(--surface); flex: none; }
  .navlink.active { border-color: var(--brand-2); box-shadow: none; }
  .main { padding: 18px 0 56px; }
  .hero-band .inner { padding: 26px 16px 22px; }
  .grid-2, .stat-grid { grid-template-columns: 1fr; }
  .fig .canvas-wrap, .grid-2 .fig .canvas-wrap { height: 240px; }
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 24px; }
  .features { grid-template-columns: 1fr; }
  .topbar .inner { padding: 0 16px; gap: 10px; }
  .topbar .select { max-width: 170px; flex: 0 1 auto; }
  .topbar .inner > * { min-width: 0; }
  .topnav { display: none; }
  .brand .tagline { display: none; }
  .landing { padding: 0 16px 48px; }
}
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi .value { font-size: 1.5rem; } }
@media print { .topbar, .sidenav, .fig-tools, .filterbar, .onpage, .pager { display: none !important; } .layout { grid-template-columns: 1fr; } body { background: #fff; } }
