/* Inter (SIL Open Font License 1.1, rsms.me/inter), variable 400-700, latin, hosted with the site */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/inter-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; }
/* The Atlas — Malaysian version of the Regional Economic Activity layout (MBIE NZ). Light theme only. */
:root {
  --hl: #2bc4dd; --hl-btn: #087f97; /* map highlight cyan; button cyan (white text 4.7:1) */
  --link: #00749a;
  --ink: #1d3b45; --muted: #4f6870; --teal: #1f5a68; --teal-2: #2a6e7d; --teal-d: #163f4a;
  --sky: #e1f1fa; --cyan: #0098c7; --cyan-l: #13b5e6; --purple: #8e5fc6; --purple-d: #7647ad;
  --white: #fff; --line: #cfe2ec; --red: #d71f2b; --yellow: #ffcc00; --grey: #b9c6cc;
  --f: "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif; --fs: "Merriweather", Georgia, serif;
  --wrap: 1040px; color-scheme: light;
}
* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f); color: var(--ink); background: var(--white); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: var(--link); }
button, select, input { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--yellow); color: #000; padding: 10px 14px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--teal-d); outline-offset: 2px; }
.top :focus-visible, .band :focus-visible, .hero :focus-visible, .foot :focus-visible, .selbar .acts :focus-visible { outline-color: var(--yellow); }
.selbar .acts :focus-visible { outline-color: var(--teal-d); }

/* ---------- top bar ---------- */
.top { background: var(--teal); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.top .wrap { display: flex; align-items: center; gap: 0; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; padding-right: 22px; margin-right: 6px; border-right: 2px dotted rgba(255,255,255,.45); }
.brand img { height: 40px; width: auto; display: block; }
.brand b { font-family: var(--f); font-size: 18px; line-height: 1.15; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.brand b small { display: block; font-size: 13px; font-weight: 500; opacity: .85; letter-spacing: .02em; }
.nav { display: flex; align-items: stretch; }
.nav a { display: flex; align-items: center; gap: 9px; padding: 0 20px; color: #fff; text-decoration: none; font-size: 16px; min-height: 64px; border-right: 2px dotted rgba(255,255,255,.35); }
.nav a:last-child { border-right: 0; }
.nav a svg { width: 22px; height: 22px; flex: none; }
.nav a:hover, .nav a[aria-current] { background: rgba(255,255,255,.1); }
.nav a[aria-current] { box-shadow: inset 0 -3px 0 var(--cyan-l); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.tools button, .tools a { background: none; border: 0; color: #fff; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12.5px; padding: 6px 9px; cursor: pointer; text-decoration: none; min-width: 44px; }
.tools svg { width: 18px; height: 18px; }
.lang { display: flex; border: 1px solid rgba(255,255,255,.5); border-radius: 3px; margin-right: 8px; }
.lang button { flex-direction: row; font-size: 14px; font-weight: 700; padding: 6px 10px; min-width: 40px; min-height: 34px; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--teal); }

/* ---------- hero banner ---------- */
/* KL skyline photo (assets/hero-kl.webp); towers sit at about 62% across, so phones crop to them */
.hero { position: relative; color: #fff; overflow: hidden; background: #2d6f80 url(assets/hero-kl.webp) 62% 100% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22,63,74,.82) 0%, rgba(22,63,74,.55) 40%, rgba(22,63,74,.25) 62%, rgba(22,63,74,.5) 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; min-height: 186px; }
.hero-k { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 6px 0 2px; text-shadow: 0 1px 2px rgba(0,0,0,.3); }
.hero h1 { font-weight: 400; font-size: clamp(30px, 4.2vw, 48px); line-height: 1.1; margin: 0; text-shadow: 0 1px 3px rgba(0,0,0,.35); max-width: 640px; }
.hero .back { color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.hero-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 300px; }
.pick { position: relative; width: 312px; max-width: 100%; }
.pick select { width: 100%; appearance: none; -webkit-appearance: none; background: #fff; color: var(--teal-d); border: 0; border-radius: 0; padding: 11px 38px 11px 12px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; min-height: 40px; }
.pick::after { content: "▼"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--teal-d); font-size: 13px; pointer-events: none; }
.btn-cmp { background: var(--purple); color: #fff; border: 0; padding: 10px 14px; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; margin-top: auto; min-height: 40px; }
.btn-cmp:hover { background: var(--purple-d); }
.cmp-panel { background: #fff; color: var(--ink); padding: 14px; width: 312px; max-width: 100%; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.cmp-panel h2 { font-size: 15px; margin: 0 0 4px; } .cmp-panel p { font-size: 14px; margin: 0 0 10px; color: var(--muted); }
.cmp-panel select { width: 100%; padding: 9px; border: 1px solid var(--line); margin-bottom: 10px; min-height: 40px; }
.cmp-panel .row { display: flex; gap: 8px; justify-content: flex-end; }
.cmp-panel button { border: 1px solid var(--teal); background: #fff; color: var(--teal); padding: 8px 12px; font-weight: 700; font-size: 14px; text-transform: uppercase; cursor: pointer; min-height: 40px; }
.cmp-panel button.go { background: var(--teal); color: #fff; }
.cmp-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.95); color: var(--purple-d); font-size: 14px; font-weight: 700; padding: 6px 6px 6px 10px; }
.cmp-chip button { border: 0; background: var(--purple); color: #fff; width: 28px; height: 28px; cursor: pointer; font-size: 17px; line-height: 1; }

/* ---------- summary body ---------- */
.sky { background: var(--sky); }
.sum { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 28px; padding-block: 26px 30px; align-items: start; }
.intro h2 { font-weight: 400; font-size: 27px; line-height: 1.25; margin: 6px 0 16px; color: var(--ink); max-width: 420px; }
.intro p { color: var(--muted); margin: 0 0 12px; max-width: 520px; font-size: 16px; }
.map-box { position: relative; margin-top: 8px; }
.map-box svg { width: 100%; height: auto; display: block; overflow: visible; }
.map-box path { fill: var(--teal-2); stroke: var(--sky); stroke-width: 1.1; cursor: pointer; transition: fill .2s; vector-effect: non-scaling-stroke; }
.map-box path:hover, .map-box path:focus-visible { fill: var(--hl); }
.map-box path.on { fill: var(--cyan-l); }
.map-box path.cmp { fill: var(--purple); }
.map-box.choro path { stroke: #fff; }
.map-box.choro path.on { stroke: var(--ink); stroke-width: 2.4; }
.map-box.choro path { transition: filter .15s ease, stroke-width .15s ease; }
.map-box.choro path:hover, .map-box.choro path:focus-visible { stroke: #fff; stroke-width: 3; filter: drop-shadow(0 3px 5px rgba(10,40,50,.45)); }
.map-box.choro path.cmp { stroke: var(--purple); stroke-width: 2.4; }
.map-box.na path { fill: #c9d6dc; cursor: default; }
.map-hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.tip { position: fixed; z-index: 60; pointer-events: none; background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 2px; max-width: 260px; box-shadow: 0 3px 12px rgba(10,40,50,.22); }
.tip.toast { background: var(--teal-d); color: #fff; transform: translateX(-50%); }
.card { background: #fff; padding: 18px 20px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.kpi { display: grid; grid-template-columns: 1fr 18px; align-items: center; text-decoration: none; color: inherit; padding: 9px 0; }
.kpi:hover .kpi-v { color: var(--teal); }
.kpi-k { grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.kpi-v { display: flex; align-items: center; gap: 10px; color: var(--cyan); font-size: 29px; font-weight: 400; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-v svg { width: 22px; height: 22px; color: var(--cyan); flex: none; }
.kpi .arr { color: var(--cyan); font-size: 14px; }
.kpi small { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.mini h3 { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; margin: 12px 0 4px; }
.mini svg { width: 100%; height: auto; display: block; }
.mini .lg { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.all-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--sky); color: var(--teal); font-weight: 600; text-decoration: none; font-size: 17px; padding: 14px; margin-top: 14px; }
.all-btn svg { width: 22px; height: 22px; }
.all-btn:hover { background: #d3eaf7; }

/* ---------- indicator lists (teal band) ---------- */
/* indicator band: Malaysian rainforest photo (assets/forest.webp) under a teal layer; it stays still while the page scrolls on desktop */
.band { position: relative; color: #fff; overflow: hidden; padding: 40px 0 50px; background: linear-gradient(rgba(22,63,74,.62), rgba(22,63,74,.72)), url(assets/forest.webp) center / cover fixed, var(--teal); }
.band .wrap { position: relative; z-index: 2; }
.band h2 { font-weight: 400; font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 26px; display: flex; align-items: center; gap: 12px; }
.band h2 svg { width: 30px; height: 30px; }
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 28px; }
.theme h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; margin: 0 0 12px; }
.theme h3 svg { width: 26px; height: 26px; }
.theme ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.theme a { display: inline-flex; align-items: center; gap: 12px; background: #fff; color: var(--teal-d); text-decoration: none; font-size: 15px; padding: 7px 10px; min-height: 34px; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.theme a::after { content: ""; border-left: 6px solid var(--teal-d); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.theme a { transition: background-color .15s ease, color .15s ease; }
.theme a::after { transition: transform .15s ease, border-color .15s ease; }
.theme a:hover, .theme a:focus-visible { background: var(--hl-btn); color: #fff; }
.theme a:hover::after, .theme a:focus-visible::after { border-left-color: #fff; transform: translateX(2px); }
.theme a:hover .nat, .theme a:focus-visible .nat { color: #e6fbff; border-color: rgba(255,255,255,.6); }
.theme a[aria-current] { background: var(--teal-d); color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.theme a[aria-current]::after { border-left-color: #fff; }
.theme a .nat { font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); padding: 0 4px; border-radius: 2px; }
.theme a[aria-current] .nat { color: #cfe; border-color: rgba(255,255,255,.5); }

/* ---------- indicator page ---------- */
.selbar { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); position: relative; z-index: 3; }
.selbar .wrap { display: flex; align-items: center; gap: 16px; min-height: 58px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.selbar .lbl { font-size: 12.5px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.selbar select { border: 0; border-bottom: 1px dashed var(--grey); background: transparent; padding: 6px 2px; font-size: 15px; color: var(--ink); cursor: pointer; min-height: 36px; max-width: 280px; }
.selbar .plus { color: var(--muted); }
.selbar .acts { margin-left: auto; display: flex; gap: 6px; }
.selbar .acts button { border: 1px solid var(--line); background: #fff; color: var(--teal); font-size: 14px; font-weight: 600; padding: 7px 11px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; min-height: 38px; }
.selbar .acts button:hover { border-color: var(--teal); }
.viz { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; padding: 26px 0 22px; align-items: start; }
.viz h2 { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.legend-scale { display: flex; margin-top: 12px; max-width: 420px; }
.legend-scale span { flex: 1; height: 10px; }
.legend-ticks { display: flex; justify-content: space-between; max-width: 420px; font-size: 12.5px; color: var(--muted); margin-top: 3px; font-variant-numeric: tabular-nums; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .ax { fill: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.chart .grid { stroke: #c8dde8; stroke-dasharray: 2 3; }
.chart .ln { fill: none; stroke: #a9bcc4; stroke-width: 1.2; opacity: .75; }
.chart .ln.main { stroke: var(--teal-d); stroke-width: 3; opacity: 1; }
.chart .ln.nat { stroke: var(--cyan); stroke-width: 2.2; stroke-dasharray: 6 4; opacity: 1; }
.chart .ln.cmp { stroke: var(--purple); stroke-width: 2.6; opacity: 1; }
.chart .mark { stroke: #5c7780; stroke-width: 1.4; }
.chart .dot { stroke: #fff; stroke-width: 2; }
.chart .bar { fill: var(--teal-2); } .chart .bar.nat { fill: var(--cyan); } .chart .bar.cmp { fill: var(--purple); }
.chart .bl { fill: var(--ink); font-size: 14px; } .chart .bv { fill: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.chart-lg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.chart-lg i { display: inline-block; width: 26px; height: 4px; vertical-align: middle; margin-right: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; padding: 26px 36px; gap: 26px; margin: 4px 0 22px; }
.stat b { display: block; color: var(--cyan); font-size: 28px; font-weight: 400; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat b.up { color: #11865b; } .stat b.dn { color: var(--red); }
.stat p { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.notes { display: grid; grid-template-columns: 1fr 2fr; gap: 26px; font-size: 14px; color: var(--muted); padding: 4px 0 18px; }
.notes h3 { font-size: 14px; color: var(--ink); margin: 0 0 4px; }
.notes p { margin: 0 0 8px; }
.show-tbl { display: flex; justify-content: center; padding: 6px 0 30px; }
.show-tbl button { background: var(--teal); color: #fff; border: 0; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: 14px; padding: 12px 56px; cursor: pointer; display: inline-flex; gap: 10px; align-items: center; min-height: 44px; }
.show-tbl button:hover { background: var(--teal-d); }
.tbl-w { overflow-x: auto; background: #fff; margin-bottom: 30px; -webkit-overflow-scrolling: touch; }
table.t { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
table.t th, table.t td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
table.t th:first-child, table.t td:first-child { text-align: left; position: sticky; left: 0; background: #fff; }
table.t thead th { background: #f2f8fb; color: var(--ink); font-weight: 700; position: sticky; top: 0; }
table.t thead th:first-child { background: #f2f8fb; z-index: 1; }
table.t tr.on td { background: #e8f6fc; font-weight: 700; } table.t tr.my td { font-weight: 700; }
.na-note { background: #fff; border-left: 4px solid var(--cyan); padding: 12px 14px; font-size: 15px; color: var(--muted); margin-top: 8px; }

/* ---------- international ---------- */
.rank { display: flex; flex-direction: column; gap: 5px; }
.rk { display: grid; grid-template-columns: 130px 1fr 90px; align-items: center; gap: 10px; font-size: 14px; }
.rk span { height: 16px; background: var(--teal-2); display: block; }
.rk.my span { background: var(--cyan-l); } .rk.my { font-weight: 700; } .rk.uk span { background: var(--ink); }
.rk b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chips button { border: 1px solid var(--line); background: #fff; font-size: 14px; padding: 6px 10px; cursor: pointer; min-height: 36px; display: inline-flex; gap: 6px; align-items: center; }
.chips button[aria-pressed="true"] { border-color: var(--teal); background: #eef8fc; font-weight: 700; }
.chips i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---------- methodology ---------- */
.prose { padding-block: 26px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.prose .card h2 { font-size: 20px; margin: 0 0 10px; font-weight: 600; }
.prose .card p, .prose .card li { color: var(--muted); font-size: 15px; }

/* ---------- footer ---------- */
.foot { background: var(--teal-d); color: #d6e8ee; font-size: 14px; padding: 30px 0 34px; }
.foot .wrap { display: grid; grid-template-columns: 220px 1fr; gap: 30px; }
.foot b { font-family: var(--f); color: #fff; font-size: 15px; line-height: 1.25; display: block; }
.foot a { color: #fff; }
.foot p { margin: 0 0 8px; }

.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.err { background: #fff3f3; border-left: 4px solid var(--red); padding: 14px; margin: 20px 0; color: var(--ink); }
.err button { margin-left: 10px; border: 1px solid var(--teal); background: #fff; color: var(--teal); padding: 6px 12px; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .sum, .viz { grid-template-columns: minmax(0, 1fr); }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 16px; }
  .notes { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .sum .card { max-width: 520px; }
}
@media (max-width: 760px) {
  .top .wrap { flex-wrap: wrap; min-height: 0; padding-top: 6px; padding-bottom: 0; }
  .brand { border-right: 0; padding-right: 0; }
  .brand img { height: 30px; }
  .brand { gap: 9px; }
  .brand img { height: 28px; }
  .brand b { font-size: 14px; }
  .brand b small { font-size: 11px; letter-spacing: 0; white-space: normal; max-width: 116px; line-height: 1.2; }
  .lang button { padding: 6px 9px; }
  .tools { margin-left: auto; }
  .tools .tl-txt { display: none; }
  #dl-btn { display: none; }
  .nav { order: 3; width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.18); margin-top: 6px; }
  .nav a { flex-direction: column; justify-content: center; gap: 2px; padding: 6px 2px; font-size: 13px; min-height: 50px; border-right: 0; text-align: center; white-space: nowrap; }
  .nav a svg { width: 18px; height: 18px; }
  .hero .wrap { flex-direction: column; min-height: 0; gap: 14px; }
  .hero-side { align-items: stretch; min-width: 0; }
  .pick, .cmp-panel { width: 100%; }
  .btn-cmp { align-self: flex-start; }
  .themes { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .selbar .acts { margin-left: 0; }
  .selbar select { max-width: 100%; }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  .rk { grid-template-columns: 96px 1fr 76px; font-size: 14px; }
  .theme a { min-height: 40px; }
}
/* users who turned motion off: no transitions, no animation, no fixed-background effect */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } .band { background-attachment: scroll; } .ctx { transition: none !important; } }
/* lines never fill, wherever the chart sits; programmatic focus on the page title needs no ring */
svg path.ln{fill:none}
#page-h:focus{outline:none}
.foot-logo { display: flex; flex-direction: column; gap: 12px; }
.foot-logo img { height: 48px; width: auto; align-self: flex-start; }

/* ---------- review fixes (Dec 2026) ---------- */
.chart .ln, .mini .ln { fill: none; }
.mini .ax { font-size: 13px; fill: var(--muted); }
.mini .grid { stroke: var(--line); stroke-dasharray: 2 3; }
.map-box path.on { stroke: var(--teal-d); stroke-width: 2.5; }
.chart .ln:not(.main):not(.nat):not(.cmp) { stroke: #8fa5ae; }
.chart .bar.on { fill: var(--cyan); }
.chart .bl.on { font-weight: 700; fill: var(--ink); }
.viz.full { grid-template-columns: minmax(0, 1fr); }
.viz.full .chart { max-width: 760px; }
.theme a .nat { font-size: 11px; padding: 1px 4px; }
.kpi-v { font-variant-numeric: tabular-nums; }
.legend-ticks.q { display: grid; grid-template-columns: repeat(6, 1fr); text-align: left; font-size: 12.5px; }
.legend-ticks.q span:last-child { text-align: left; }
.legend-cap { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.foot b { font-size: 18px; font-weight: 700; }
.foot b small { display: block; font-size: 14px; font-weight: 500; opacity: .85; }

/* ---------- typography (Inter) ---------- */
body { font-size: 16px; line-height: 1.6; text-rendering: optimizeLegibility; }
.hero h1 { font-weight: 500; }
h1, h2, .hero h1, .intro h2, .band h2 { letter-spacing: -0.015em; }
.kpi-v, .stat b, .t td, .legend-ticks, .bv, .rk b, .chart .ax { font-variant-numeric: tabular-nums; }
.hero-k, .hero .back, .kpi-k, .mini h3, .selbar .lbl, .theme h3, .pick select, .btn-cmp, .show-tbl button { letter-spacing: .04em; }
.legend-ticks.q { max-width: 100%; font-size: 12px; column-gap: 4px; }
@media (max-width: 760px) {
  .legend-ticks.q { grid-template-columns: repeat(3, 1fr); row-gap: 2px; }
}
#next-rel p { color: var(--muted); font-size: 15px; } #next-rel .note { font-size: 14px; margin: 12px 0 0; }
/* wide screens: the photo is a layer as tall as the banner, its Twin Towers (62% across the image) pinned at 56% of
   the screen, between the title and the area selector, at any width. On very wide screens it keeps its natural size and
   both edges fade into the banner colour, instead of zooming in and cutting off the towers and forest. */
@media (min-width: 761px) {
  .hero { background: #3f7480; }
  .hero::before { content: ""; position: absolute; top: 0; bottom: 0; left: 56%; aspect-ratio: 2000 / 281;
    transform: translateX(-62%); background: url(assets/hero-kl.webp) 62% 50% / cover no-repeat; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
}

/* compact bar under the menu, shown once the banner has scrolled away (KL photo strip) */
.ctx { position: fixed; left: 0; right: 0; top: 64px; z-index: 39; height: 56px; color: #fff; overflow: hidden;
  background: linear-gradient(90deg, rgba(22,63,74,.9), rgba(22,63,74,.55) 55%, rgba(22,63,74,.8)), url(assets/hero-kl.webp) 62% 55% / cover, var(--teal-d);
  box-shadow: 0 2px 8px rgba(0,0,0,.18); transform: translateY(-110%); opacity: 0; visibility: hidden;
  transition: transform .2s ease, opacity .2s ease, visibility 0s linear .2s; }
.ctx.show { transform: none; opacity: 1; visibility: visible; transition: transform .2s ease, opacity .2s ease, visibility 0s; }
.ctx:empty { display: none; }
.ctx .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 100%; }
.ctx-n { margin: 0; font-size: 22px; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: baseline; gap: 14px; }
.ctx-c { font-size: 14px; font-weight: 600; opacity: .9; }
.ctx-acts { display: flex; align-items: center; gap: 10px; flex: none; }
.ctx-cmp { background: var(--purple); color: #fff; border: 0; font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 9px 14px; cursor: pointer; }
.ctx-cmp:hover { background: var(--purple-d); }
.ctx-cmp .s { display: none; }
.ctx-pick select { font: inherit; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); background: #fff; border: 0; padding: 8px 10px; min-width: 210px; cursor: pointer; }
.ctx :focus-visible { outline-color: var(--yellow); }
@media (max-width: 760px) {
  .ctx { height: 44px; }
  .ctx-n { font-size: 17px; }
  .ctx-c, .ctx-pick { display: none; }
  .ctx-cmp { padding: 7px 10px; font-size: 12px; }
  .ctx-cmp .l { display: none; } .ctx-cmp .s { display: inline; }
}
/* phones and touch screens: fixed backgrounds are unreliable (iOS), so the forest scrolls with the page */
@media (max-width: 760px), (hover: none) { .band { background-attachment: scroll; } }
