:root {
  /* Data Armenia. Layout idea: deep-navy bands (header, hero) over a cool paper page;
     content sits in a 12-column grid of white chart cards; apricot marks the one thing to act on. */
  color-scheme: light;
  --navy-900: #0a1430;
  --navy-800: #0f1d42;
  --navy-700: #17305f;
  --navy-line: #2a3f6e;
  --ink: #131c33;
  --ink-2: #48546d;
  --ink-3: #78839b;
  --paper: #f3f5f9;
  --surface: #ffffff;
  --line: #dce1eb;
  --line-2: #ebeef5;
  --apricot: #f39a2b;
  --apricot-ink: #a45400;
  --apricot-soft: #fff0d9;
  --sevan: #2a78d6;
  --sevan-ink: #1c5cab;
  --sevan-soft: #e7f0fc;
  --good: #0b7a0b;
  --critical: #c42f3f;
  --font-display: "Noto Serif", "Noto Serif Armenian", Georgia, "Times New Roman", serif;
  --font-body: "Noto Sans", "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --gut: clamp(16px, 3vw, 32px);
  --radius: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 15px/1.55 var(--font-body); -webkit-font-smoothing: antialiased;
}
a { color: var(--sevan-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--apricot); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--apricot); color: var(--navy-900); padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
main:focus { outline: none; }

/* ---------- header ---------- */
.hdr { background: var(--navy-900); color: #fff; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--navy-line); }
.hdr .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand b { font: 600 17px/1.1 var(--font-display); letter-spacing: .01em; display: block; }
.brand small { display: block; font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase; color: #9db0d6; }
.nav { display: flex; gap: 2px; flex: 1; flex-wrap: wrap; }
.nav a { color: #c9d5ee; padding: 7px 11px; border-radius: 7px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav a:hover { background: var(--navy-700); color: #fff; text-decoration: none; }
.nav a[aria-current="page"] { color: #fff; background: var(--navy-700); box-shadow: inset 0 -2px 0 var(--apricot); }
.proto { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--apricot); color: var(--apricot); padding: 2px 7px; border-radius: 99px; white-space: nowrap; }
.lang { display: flex; border: 1px solid var(--navy-line); border-radius: 8px; overflow: hidden; }
.lang button { background: none; border: 0; color: #c9d5ee; padding: 6px 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; }
.lang button + button { border-left: 1px solid var(--navy-line); }
.lang button[aria-pressed="true"] { background: var(--apricot); color: var(--navy-900); }
.lang button:hover:not([aria-pressed="true"]) { background: var(--navy-700); color: #fff; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-800) 62%, #152a57 100%); color: #fff; position: relative; overflow: hidden; }
.hero .art { position: absolute; right: 0; bottom: 0; height: clamp(190px, 26vw, 360px); max-height: 88%; aspect-ratio: 4 / 1; overflow: visible; pointer-events: none; }
.hero .art.low { height: clamp(120px, 15vw, 200px); }
.hero .wrap { position: relative; padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(28px, 4vw, 44px); }
.eyebrow { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--apricot); font-weight: 600; }
.hero h1 { font: 600 clamp(34px, 5.4vw, 60px)/1.06 var(--font-display); letter-spacing: -.01em; margin: 10px 0 14px; }
.hero .lead { color: #cfd9ef; font-size: clamp(15px, 1.5vw, 17.5px); max-width: 60ch; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.crumbs { font-size: 12.5px; color: #9db0d6; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: #c9d5ee; }
.kind { display: inline-flex; align-items: center; gap: 6px; background: rgba(243,154,43,.14); color: var(--apricot); border: 1px solid rgba(243,154,43,.45); border-radius: 99px; padding: 2px 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

.search { position: relative; margin-top: 24px; max-width: 560px; }
.search input { width: 100%; padding: 14px 16px 14px 46px; border-radius: 12px; border: 1px solid var(--navy-line); background: rgba(255,255,255,.97); color: var(--ink); font: 400 15.5px var(--font-body); }
.search svg { position: absolute; left: 15px; top: 14px; width: 20px; height: 20px; color: var(--ink-3); }
.search .sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); color: var(--ink); border-radius: 12px; box-shadow: 0 18px 40px rgba(6,14,38,.35); overflow: hidden; z-index: 30; max-height: 360px; overflow-y: auto; }
.sugg a { display: flex; gap: 10px; align-items: baseline; padding: 9px 14px; color: var(--ink); border-top: 1px solid var(--line-2); }
.sugg a:first-child { border-top: 0; }
.sugg a:hover, .sugg a.on { background: var(--sevan-soft); text-decoration: none; }
.sugg .k { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); flex: none; width: 76px; }
.sugg .v { flex: 1; overflow-wrap: anywhere; }
.sugg .n { color: var(--ink-3); font-size: 12.5px; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { border: 1px solid var(--navy-line); color: #dbe4f7; border-radius: 99px; padding: 4px 12px; font-size: 13px; background: rgba(255,255,255,.04); }
.chip:hover { border-color: var(--apricot); color: #fff; text-decoration: none; }

/* hero stat tiles (on navy) */
.hstats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(42,63,110,.75); border: 1px solid var(--navy-line); border-radius: 12px; overflow: hidden; margin-top: 28px; }
.hstat { background: rgba(10,20,48,.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); padding: 14px 16px 15px; min-width: 0; }
.hstat .l { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #9db0d6; }
.hstat .v { font: 600 clamp(22px, 2.6vw, 31px)/1.15 var(--font-body); font-stretch: 82%; margin-top: 4px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hstat .d { font-size: 12.5px; color: #b9c7e6; margin-top: 2px; }
.up { color: #5fd08a; } .down { color: #ff8f8f; }
.card .up, .tile .up, .prose .up { color: var(--good); } .card .down, .tile .down, .prose .down { color: var(--critical); }

.subnav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 60px; z-index: 30; }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; align-items: center; }
.subnav button { border: 0; background: none; padding: 6px 12px; border-radius: 99px; color: var(--ink-2); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.subnav button:hover { background: var(--line-2); color: var(--ink); }
.subnav .sp { flex: 1; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); flex: none; }
.seg button { border: 0; background: none; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); border-radius: 0; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--navy-800); color: #fff; }
.ctl { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); flex: none; }
select.sel { font: 500 13.5px var(--font-body); padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

/* ---------- sections & cards ---------- */
.sec { padding: clamp(28px, 4vw, 48px) 0 0; scroll-margin-top: 110px; }
.sec:last-child { padding-bottom: clamp(36px, 5vw, 64px); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sec-h h2 { font: 600 clamp(22px, 2.6vw, 30px)/1.2 var(--font-display); }
.sec-h h2::before { content: ""; display: block; width: 34px; height: 3px; background: var(--apricot); border-radius: 2px; margin-bottom: 10px; }
.sec-h .more { font-size: 14px; font-weight: 600; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 14px; min-width: 0; display: flex; flex-direction: column; }
.card-h { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.card h3 { font: 600 15.5px/1.3 var(--font-body); }
.card .sub { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.card-tools { display: flex; gap: 4px; flex: none; }
.card-tools button, .card-tools a { border: 1px solid var(--line); background: var(--surface); border-radius: 7px; padding: 3px 8px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; line-height: 1.5; }
.card-tools button:hover, .card-tools a:hover { border-color: var(--ink-3); color: var(--ink); text-decoration: none; }
.card-tools button[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.card-b { flex: 1; min-width: 0; position: relative; }
.card-f { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line-2); font-size: 11.5px; color: var(--ink-3); display: flex; gap: 6px 14px; flex-wrap: wrap; }
.card-f a { color: var(--ink-2); }
.chart { width: 100%; position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart text { font-family: var(--font-body); fill: var(--ink-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.chart .endl { fill: var(--ink); font-weight: 600; font-size: 12px; }
.dtable { overflow: auto; max-height: 320px; border: 1px solid var(--line-2); border-radius: 8px; }
.dtable table { border-collapse: collapse; width: 100%; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.dtable th, .dtable td { padding: 5px 10px; text-align: right; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.dtable th { position: sticky; top: 0; background: var(--paper); font-weight: 600; color: var(--ink-2); }
.dtable th:first-child, .dtable td:first-child { text-align: left; }

.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend i.ln { height: 3px; width: 14px; vertical-align: 3px; border-radius: 2px; }

/* prose block next to charts */
.prose { background: none; border: 0; padding: 4px 6px 0 0; display: flex; flex-direction: column; gap: 12px; }
.prose p { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.prose b { color: var(--ink); font-weight: 600; }
.prose .big { font: 600 clamp(34px, 4vw, 46px)/1.05 var(--font-body); font-stretch: 80%; color: var(--ink); font-variant-numeric: tabular-nums; }
.prose .cap { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* KPI tiles on paper */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px 10px; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
a.tile:hover { border-color: var(--sevan); text-decoration: none; box-shadow: 0 4px 14px rgba(19,28,51,.07); }
.tile .l { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); min-height: 2.9em; line-height: 1.45; }
.tile .v { font: 600 26px/1.15 var(--font-body); font-stretch: 82%; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tile .d { font-size: 12px; color: var(--ink-2); }
.tile .spark { margin-top: auto; padding-top: 6px; }
.tile .spark svg { display: block; width: 100%; height: 34px; }

/* profile tiles (home) */
.ptiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ptile { position: relative; background: var(--navy-800); color: #fff; border-radius: var(--radius); padding: 16px 16px 14px; min-height: 148px; display: flex; flex-direction: column; overflow: hidden; }
.ptile:hover { text-decoration: none; background: var(--navy-700); }
.ptile .k { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--apricot); font-weight: 600; }
.ptile b { font: 600 19px/1.2 var(--font-display); margin-top: 6px; display: block; }
.ptile span { font-size: 13px; color: #b9c7e6; margin-top: auto; padding-top: 14px; }
.ptile svg.deco { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; opacity: .45; }

/* marz cards */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: grid; grid-template-columns: 54px 1fr; gap: 4px 12px; align-items: center; color: var(--ink); }
.mcard:hover { border-color: var(--sevan); text-decoration: none; box-shadow: 0 4px 14px rgba(19,28,51,.07); }
.mcard svg { width: 54px; height: 54px; grid-row: span 2; }
.mcard b { font: 600 16px/1.2 var(--font-display); align-self: end; overflow-wrap: anywhere; }
.mcard span { font-size: 12.5px; color: var(--ink-3); align-self: start; }

/* ranked horizontal bars */
.hb { display: grid; grid-template-columns: minmax(90px, var(--hb-label, 38%)) minmax(0, 1fr) auto; gap: 7px 12px; align-items: center; font-size: 13px; }
.hb .lb { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hb a.lb:hover { color: var(--sevan-ink); }
.hb .tr { height: 14px; position: relative; }
.hb .tr i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; min-width: 2px; }
.hb .tr i.neg { border-radius: 4px 0 0 4px; }
.hb .tr u { position: absolute; top: -3px; bottom: -3px; width: 1px; background: var(--ink-3); }
.hb .vl { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; text-align: right; white-space: nowrap; }
.hb .vl small { color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.hb .hl { font-weight: 700; }

/* plan vs actual */
.pa { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr) auto; gap: 9px 12px; align-items: center; font-size: 13px; }
.pa .tr { height: 16px; position: relative; background: var(--line-2); border-radius: 4px; }
.pa .tr .plan { position: absolute; left: 0; top: 0; bottom: 0; background: #b7d3f6; border-radius: 0 4px 4px 0; }
.pa .tr .act { position: absolute; left: 0; top: 4px; bottom: 4px; background: var(--sevan-ink); border-radius: 0 3px 3px 0; }
.pa .vl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pa .vl b { font-weight: 600; } .pa .vl small { color: var(--ink-3); margin-left: 6px; }

/* treemap */
.tm { position: relative; width: 100%; }
.tm .cell { position: absolute; overflow: hidden; border-radius: 3px; padding: 5px 7px; line-height: 1.2; cursor: default; }
.tm a.cell:hover, .tm .cell:hover { filter: brightness(1.08); text-decoration: none; }
.tm a.cell { cursor: pointer; }
.tbl td a { color: var(--ink); } .tbl td a:hover { color: var(--sevan-ink); }
.tm .cell b { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; hyphens: auto; }
.tm .cell span { display: block; opacity: .88; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tm .glabel { position: absolute; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* map */
.map svg path { cursor: pointer; transition: fill-opacity .12s; stroke-linejoin: round; }
.map svg path:hover { fill-opacity: .82; }
.map .mlabel { font-size: 11px; font-weight: 600; pointer-events: none; paint-order: stroke; stroke-width: 3px; stroke-linejoin: round; }
.maplegend { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; flex-wrap: wrap; }
.maplegend .sw { display: flex; }
.maplegend .sw i { width: 26px; height: 9px; display: block; }
.maplegend .sw i:first-child { border-radius: 3px 0 0 3px; } .maplegend .sw i:last-child { border-radius: 0 3px 3px 0; }
.hero .maplegend { color: #9db0d6; }

/* rank strip */
.rs { display: grid; grid-template-columns: minmax(120px, 30%) minmax(0, 1fr) auto; gap: 12px 14px; align-items: center; font-size: 13px; }
.rs .tr { position: relative; height: 18px; }
.rs .tr::before { content: ""; position: absolute; left: 0; right: 0; top: 8.5px; height: 1px; background: var(--line); }
.rs .tr i { position: absolute; top: 5px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: #9ec5f4; border: 1.5px solid var(--surface); }
.rs .tr i.me { background: var(--apricot); width: 15px; height: 15px; top: 2px; margin-left: -7.5px; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--apricot-ink); z-index: 2; }
.rs .tr i.avg { background: var(--ink); width: 2px; height: 16px; top: 1px; margin-left: -1px; border-radius: 1px; border: 0; }
.rs .vl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rs .vl b { font-weight: 600; } .rs .vl small { color: var(--ink-3); margin-left: 8px; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl td.r, .tbl th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 0; padding-left: 10px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .code { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 11.5px; font-weight: 600; background: var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.warn { background: var(--apricot-soft); color: var(--apricot-ink); }
.pill.ok { background: #e3f4e3; color: var(--good); }

/* names band */
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.names ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: n; }
.names li { display: flex; align-items: baseline; gap: 10px; font-size: 14px; counter-increment: n; }
.names li::before { content: counter(n); width: 18px; color: var(--ink-3); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.names li b { font: 600 16px var(--font-display); flex: 1; }
.names li span { color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* sources */
.srcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.src { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.src .k { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--apricot-ink); font-weight: 600; }
.src b { font: 600 17px/1.25 var(--font-display); }
.src p { color: var(--ink-2); font-size: 13.5px; }
.src dl { display: flex; gap: 18px; margin: 8px 0 0; flex-wrap: wrap; }
.src dt { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.src dd { margin: 0; font: 600 20px var(--font-body); font-stretch: 82%; font-variant-numeric: tabular-nums; }
.roadmap { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--ink-2); }
.roadmap span.rm { border: 1px dashed var(--ink-3); border-radius: 99px; padding: 3px 11px; color: var(--ink-2); background: var(--surface); }

/* data explorer */
.dx { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 20px; align-items: start; }
.dx-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.dx-side button { display: flex; width: 100%; text-align: left; gap: 8px; border: 0; background: none; padding: 7px 10px; border-radius: 7px; font-size: 13.5px; color: var(--ink-2); align-items: baseline; }
.dx-side button:hover { background: var(--line-2); color: var(--ink); }
.dx-side button[aria-pressed="true"] { background: var(--sevan-soft); color: var(--sevan-ink); font-weight: 600; }
.dx-side button.l2 { padding-left: 24px; font-size: 13px; }
.dx-side button span { flex: 1; } .dx-side button em { font-style: normal; color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.dx-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.dx-bar input { flex: 1; min-width: 220px; padding: 10px 14px; border-radius: 9px; border: 1px solid var(--line); font: 400 14.5px var(--font-body); background: var(--surface); color: var(--ink); }
.dx-list { display: grid; gap: 8px; }
.dx-row { background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 11px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
.dx-row:hover { border-color: var(--sevan); }
.dx-row b { font-weight: 600; font-size: 14px; line-height: 1.35; }
.dx-row .meta { grid-column: 1 / -1; display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); }
.dx-row .meta code { font: 500 11.5px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink-2); background: var(--line-2); padding: 0 6px; border-radius: 4px; }
.dx-row .go { font-size: 12.5px; font-weight: 600; white-space: nowrap; }

/* footer */
.ftr { background: var(--navy-900); color: #b9c7e6; margin-top: 8px; font-size: 13px; }
.ftr .wrap { padding-top: 26px; padding-bottom: 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.ftr b { color: #fff; display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: .04em; }
.ftr a { color: #dbe4f7; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

/* tooltip */
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--navy-900); color: #fff; padding: 8px 11px; border-radius: 8px; font-size: 12.5px; line-height: 1.45; max-width: 300px; box-shadow: 0 8px 24px rgba(6,14,38,.3); opacity: 0; transition: opacity .08s; font-variant-numeric: tabular-nums; }
.tip.on { opacity: 1; }
.tip b { font-weight: 600; } .tip .t { color: #9db0d6; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; display: block; margin-bottom: 2px; }
.tip .r { display: flex; gap: 10px; justify-content: space-between; } .tip .r i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }

.note { font-size: 12.5px; color: var(--ink-3); }
.empty { padding: 28px; text-align: center; color: var(--ink-3); }

@media (max-width: 1000px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ptiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c3 { grid-column: span 6; } .c4, .c5, .c7, .c8 { grid-column: span 12; }
  .hero-grid { grid-template-columns: 1fr; }
  .dx { grid-template-columns: 1fr; } .dx-side { position: static; max-height: 240px; }
  .srcs { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .c3, .c6 { grid-column: span 12; }
  .hstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles, .ptiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .names { grid-template-columns: 1fr; }
  .ftr .wrap { grid-template-columns: 1fr; }
  .subnav { top: 0; position: static; } .hdr { position: static; }
  .hdr .wrap { gap: 8px 12px; } .brand { flex: 1; }
  .nav { order: 5; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0 -6px; }
  .hb { --hb-label: 44%; }
}
