@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/Tajawal-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Sentient"; src: url("fonts/Sentient-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Sentient"; src: url("fonts/Sentient-700.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-700.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }
@font-face { font-family: "Tanker"; src: url("fonts/Tanker.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ---------- dusk (dark): Shafak charcoal warmed toward evening ---------- */
:root, :root[data-theme="dark"] {
  --page: #141112; --panel: #1c1819; --panel-2: #241f20;
  --edge: rgba(239, 226, 214, .06); --edge-hi: rgba(255, 236, 218, .07);
  --ink: #efe7df; --ink-2: #cfc5bb; --mute: #a0958c; --faint: #6c625b; --track: #2c2627;
  --sun: #f0a050; --sun-ink: #2a1708; --sun-hover: #f5b26c;
  --f: #e6a46a; --m: #7f9fc2; --ok: #b7c39a; --ok-ink: #1a1d12; --warn: #e0a48a; --alert: #e6806e; --mute-bar: #5a504a; --ap: #5d4a3e; --fn: #4a3a31;
  --sky-top: #141112; --sky-mid: #2a1f22; --sky-low: #4a2c22; --horizon: #a35a2c;
  --land-1: #1d1516; --land-2: #120f10; --land-3: #0d0b0c;
  --ramp-1: #4a3328; --ramp-2: #6b4228; --ramp-3: #8f5528; --ramp-4: #b86a2c; --ramp-5: #e08a3a; --ramp-6: #f3ac62;
  --map-zero: #3a2f2c; --map-off: #262021;
  --tip: #2b2526; --bar-bg: rgba(20, 17, 18, .88); --backdrop: rgba(10, 8, 9, .72); --lead: linear-gradient(160deg, #2a1f1c, #1c1819 70%);
  --grain: .16; --title: #f0a050; --hero-n: #f6b871; --hero-cap: #f3dcc4;
  color-scheme: dark;
}
/* ---------- day (light): the sky just after sunset, a rose-tinted stone, not cream or UI-kit grey ---------- */
:root[data-theme="light"] {
  --page: #f2e9e6; --panel: #fcf8f6; --panel-2: #efe4df;
  --edge: rgba(70, 40, 32, .08); --edge-hi: rgba(255, 255, 255, .8);
  --ink: #261c1d; --ink-2: #4a3d3b; --mute: #776864; --faint: #a19290; --track: #eadfda;
  --sun: #e2832f; --sun-ink: #fffaf5; --sun-hover: #cf7425;
  --f: #cf7a36; --m: #3d6fa5; --ok: #5f7d2e; --ok-ink: #f8fbef; --warn: #c9744d; --alert: #c24e3a; --mute-bar: #cdbdb6; --ap: #dccac1; --fn: #e3d3cb;
  --sky-top: #f2e9e6; --sky-mid: #f5dccd; --sky-low: #f2c29b; --horizon: #e99a5b;
  --land-1: #e6c2a6; --land-2: #ddb08f; --land-3: #d3a07e;
  --ramp-1: #f5dcc7; --ramp-2: #efc29d; --ramp-3: #e7a673; --ramp-4: #dc8b4d; --ramp-5: #c4702e; --ramp-6: #9f5822;
  --map-zero: #e8d9d2; --map-off: #e4d8d3;
  --tip: #261c1d; --bar-bg: rgba(242, 233, 230, .88); --backdrop: rgba(38, 28, 29, .45); --lead: linear-gradient(160deg, #f6e3d6, #fcf8f6 70%);
  --grain: .1; --title: #b85f1a; --hero-n: #8a3f10; --hero-cap: #6b3410;
  color-scheme: light;
}
:root {
  --r: 18px; --r-s: 10px;
  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --num: "Tanker", "Tajawal", system-ui, sans-serif;
}
/* English: Switzer for reading, Sentient for headings; Arabic stays on Tajawal */
:root[lang="en"] { --font: "Switzer", system-ui, -apple-system, "Segoe UI", sans-serif; --display: "Sentient", Georgia, serif; }
:root[lang="en"] .about-title, :root[lang="en"] .title h1, :root[lang="en"] .ph h2, :root[lang="en"] .tr-ed h3,
:root[lang="en"] .area-col h3, :root[lang="en"] .crit-tracks dt, :root[lang="en"] .page-cap b { font-family: var(--display); font-weight: 700; letter-spacing: -.005em; }
:root[lang="en"] .about-title { font-weight: 700; letter-spacing: -.015em; }
:root[lang="en"] body { font-size: 15px; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--font); font-size: 15.5px; line-height: 1.6; font-weight: 400;
  font-variant-numeric: tabular-nums; min-height: 100vh;
  transition: background .3s, color .3s;
}
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

/* logos per theme */
:root[data-theme="dark"] .mk-light, :root:not([data-theme="light"]) .mk-light { display: none; }
:root[data-theme="light"] .mk-dark { display: none; }
:root[data-theme="light"] .mk-light { display: block; }

/* ---------------- top bar ---------------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px;
  padding: 12px clamp(16px, 3vw, 40px);
  background: var(--bar-bg);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--edge);
}
.marks { display: flex; align-items: center; gap: 18px; }
.mk-shafak { height: 42px; width: auto; display: block; }
.mk-undp { height: 48px; width: auto; display: block; }
.mk-gap { width: 1px; height: 30px; background: var(--edge); background: color-mix(in srgb, var(--ink) 18%, transparent); border-radius: 1px; }
.title h1 { font-size: 19px; font-weight: 800; line-height: 1.3; }
.title p { font-size: 13px; color: var(--mute); }
.live { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.live span { display: grid; line-height: 1.25; }
.live b { font-weight: 700; font-size: 14px; }
.live small { font-size: 11.5px; color: var(--faint); }
.ring { width: 26px; height: 26px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2.4; stroke-linecap: round; }
.ring-track { stroke: var(--track); }
.ring-run { stroke: var(--sun); stroke-dasharray: 56.55; stroke-dashoffset: 0; }
.live.err .ring-run { stroke: var(--alert); }
.bar-tools { display: flex; gap: 4px; align-items: center; }
.icon-btn, .lang-btn {
  height: 38px; min-width: 38px; display: grid; place-items: center; border: 0; border-radius: 11px;
  background: transparent; color: var(--mute); cursor: pointer; transition: background .2s, color .2s;
}
.lang-btn { padding: 0 10px; font-weight: 800; font-size: 14px; }
.icon-btn:hover, .lang-btn:hover { background: var(--panel-2); color: var(--ink); }
.icon-btn svg, .acts button svg, .act-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.spin svg { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }
/* theme glyph: the sun sinks under the horizon in dark mode, rises in light mode */
.theme-glyph .tg-sun { transition: transform .45s cubic-bezier(.6,0,.2,1); transform: translateY(3.2px); }
.theme-glyph .tg-low { opacity: .45; }
:root[data-theme="light"] .theme-glyph .tg-sun { transform: translateY(-1.4px); }

/* ---------------- scope (tabs + filters) ---------------- */
.scope {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
  padding: 18px clamp(16px, 3vw, 40px) 6px;
  /* stays pinned under the header while scrolling (desktop and phone) */
  position: sticky; top: var(--bar-h, 66px); z-index: 28;
  transition: padding .25s, background .25s;
}
.scope.stuck {
  padding-top: 10px; padding-bottom: 10px; gap: 10px 20px;
  background: var(--bar-bg);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--edge), 0 6px 12px -10px rgba(0, 0, 0, .25);
}
.scope.stuck .xf-hint, .scope.stuck .supp-note { display: none; }
.scope.stuck .xf { min-height: 0; }
.scope.stuck .xf:empty { display: none; }
.tabs { position: relative; display: flex; gap: 2px; padding: 4px; background: var(--panel); border-radius: 14px; box-shadow: inset 0 1px 0 var(--edge-hi), inset 0 0 0 1px var(--edge); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  padding: 8px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 500; color: var(--mute); transition: color .25s;
}
.tabs button[aria-selected="true"] { color: var(--sun-ink); font-weight: 700; }
.tabs button:not([aria-selected="true"]):hover { color: var(--ink); }
.tab-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; width: 0; border-radius: 10px; background: var(--sun); transition: transform .42s cubic-bezier(.65,0,.25,1), width .42s cubic-bezier(.65,0,.25,1); }
.filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.days, .govs { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { border: 0; cursor: pointer; padding: 6px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 500; background: transparent; color: var(--mute); transition: background .2s, color .2s; }
.chip:hover { color: var(--ink); background: var(--panel); }
.chip[aria-pressed="true"] { background: var(--panel-2); color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--sun) 45%, transparent); }
.chip small { color: var(--faint); font-weight: 500; margin-inline-start: 5px; }

main { padding: 12px clamp(16px, 3vw, 40px) 30px; }
.view { display: none; }
.view.on { display: block; }

/* ---------------- about ---------------- */
.about-head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px 48px; align-items: end; padding: 26px 0 30px; }
.about-title { grid-column: 1 / -1; font-size: clamp(34px, 5vw, 64px); font-weight: 800; line-height: 1.12; letter-spacing: 0; color: var(--title); }
.about-lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); line-height: 1.75; max-width: 46ch; }
.about-org { grid-column: 1; grid-row: 3; font-size: 13.5px; color: var(--mute); }
.about-live { grid-column: 2; grid-row: 2 / span 2; display: grid; grid-template-columns: repeat(4, auto); justify-content: end; gap: 30px; }
.about-live div { display: grid; }
.about-live b { font-family: var(--num); font-weight: 400; font-size: clamp(40px, 4.4vw, 60px); line-height: 1; letter-spacing: .03em; padding-top: .1em; }
.about-live div:nth-child(2) b { color: var(--ok); }
.about-live div:last-child b { color: var(--sun); }
.about-live span { font-size: 13px; color: var(--mute); max-width: 14ch; line-height: 1.4; }

/* the selection journey runs along a horizon */
.journey { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; padding: 26px 0 30px; margin-bottom: 20px; }
.journey::before { content: ""; position: absolute; inset-inline: 8px; top: 34px; height: 3px; border-radius: 3px; background: linear-gradient(to var(--fwd, left), var(--sun), color-mix(in srgb, var(--sun) 30%, var(--track)) 22%, var(--track) 40%); }
[dir="ltr"] .journey::before { --fwd: right; }
.jr { position: relative; display: grid; justify-items: start; gap: 6px; padding-top: 0; }
.jr-dot { width: 19px; height: 19px; border-radius: 50%; background: var(--page); box-shadow: inset 0 0 0 3px var(--track); margin-inline-start: 2px; }
.jr.now .jr-dot { background: var(--sun); box-shadow: 0 0 0 5px color-mix(in srgb, var(--sun) 22%, transparent); }
.jr-n { font-family: var(--num); font-size: 22px; color: var(--faint); line-height: 1; margin-top: 8px; }
.jr b { font-size: 15px; font-weight: 700; line-height: 1.4; }
.jr small { font-size: 12px; color: var(--sun); font-weight: 700; }
.jr.now .jr-n { color: var(--sun); }

.tracks-ed { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.tr-ed { background: var(--panel); border-radius: var(--r); padding: 22px 22px 20px; box-shadow: inset 0 1px 0 var(--edge-hi), inset 0 0 0 1px var(--edge); display: grid; grid-template-rows: auto auto 1fr auto; gap: 8px; }
.tr-no { font-family: var(--num); font-size: 20px; color: var(--sun); line-height: 1; letter-spacing: .04em; }
.tr-ed h3 { font-size: 18px; font-weight: 800; line-height: 1.35; }
.tr-ed p { font-size: 14px; color: var(--mute); line-height: 1.7; }
.tr-n { display: flex; align-items: baseline; gap: 8px; padding-top: 12px; }
.tr-n b { font-family: var(--num); font-weight: 400; font-size: 52px; line-height: 1; letter-spacing: .03em; padding-top: .1em; }
.tr-n span { font-size: 13px; color: var(--ink-2); font-weight: 500; }

.crit-list, .notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.crit-list li, .notes li { position: relative; padding-inline-start: 24px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
/* marker: a small sun half above its horizon, the page's one recurring mark */
.crit-list li::before, .notes li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .62em; width: 12px; height: 6px; border-radius: 12px 12px 0 0; background: var(--sun); }
.crit-list li::after, .notes li::after { content: ""; position: absolute; inset-inline-start: 0; top: calc(.62em + 7px); width: 16px; height: 2px; border-radius: 2px; background: color-mix(in srgb, var(--sun) 45%, transparent); }
.notes li::before { background: var(--m); }
.notes li::after { background: color-mix(in srgb, var(--m) 45%, transparent); }
.crit-tracks { margin: 0; display: grid; gap: 16px; }
.crit-tracks dt { font-weight: 800; font-size: 14.5px; }
.crit-tracks dd { margin: 3px 0 0; color: var(--mute); font-size: 14px; line-height: 1.65; }
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.area-col h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.area-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.area-col li { font-size: 14px; color: var(--ink-2); }
.area-col li.se { color: var(--mute); }
.area-col li small { display: block; font-size: 11.5px; color: var(--faint); }

/* ---------------- dusk hero (signature) ---------------- */
.dusk {
  position: relative; overflow: hidden; border-radius: 26px; isolation: isolate;
  min-height: clamp(300px, 46vh, 460px); margin-bottom: 18px;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sky-low) 74%, var(--horizon) 100%);
}
.dusk::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: var(--grain); mix-blend-mode: overlay;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.dusk-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.dusk-read {
  position: relative; z-index: 2; height: 100%; min-height: inherit;
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
  padding: clamp(22px, 3.4vw, 44px) clamp(22px, 3.4vw, 48px) clamp(26px, 3vw, 40px);
}
.big { display: grid; align-content: end; }
.big-n { font-family: var(--num); font-size: clamp(110px, 17vw, 230px); line-height: .82; letter-spacing: .015em; color: var(--hero-n); padding-top: .12em; }
.big-l { font-size: clamp(15px, 1.4vw, 19px); color: var(--hero-cap); font-weight: 800; margin-top: 12px; }
.ledger { display: grid; grid-template-columns: repeat(2, minmax(118px, auto)); gap: 18px 34px; margin: 0; align-self: end; }
.ledger div { display: grid; }
.ledger dt { font-size: 13px; color: var(--ink-2); order: 2; font-weight: 500; }
.ledger dd { margin: 0; font-family: var(--num); font-size: clamp(34px, 3.4vw, 50px); line-height: 1; letter-spacing: .03em; order: 1; padding-top: .08em; }
.ledger dd.f { color: var(--f); } .ledger dd.m { color: var(--m); } .ledger dd.ok { color: var(--ok); }
.ledger dd em { font-style: normal; font-family: var(--font); font-size: 13px; color: var(--ink-2); margin-inline-start: 6px; letter-spacing: 0; font-weight: 700; }
.dusk-cap { position: absolute; z-index: 2; top: clamp(18px, 2.4vw, 30px); inset-inline-start: clamp(22px, 3.4vw, 48px); font-size: 13.5px; color: var(--ink-2); font-weight: 700; }
.sun-bob { animation: bob 9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(5px); } }

/* ---------------- grid & panels ---------------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; }
.s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; }
.panel { position: relative; background: var(--panel); border-radius: var(--r); box-shadow: inset 0 1px 0 var(--edge-hi), inset 0 0 0 1px var(--edge); padding: 20px 22px 22px; min-width: 0; display: flex; flex-direction: column; }
.ph { display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 2px 12px; margin-bottom: 16px; }
.ph h2 { font-size: 16.5px; font-weight: 800; line-height: 1.4; }
.ph .sub { grid-column: 1; font-size: 13px; color: var(--mute); }
.acts { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 2px; opacity: .55; transition: opacity .2s; }
.panel:hover .acts, .panel:focus-within .acts, .panel.max .acts { opacity: 1; }
.acts button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--mute); display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s; }
.acts button svg { width: 17px; height: 17px; }
.acts button:hover { background: var(--panel-2); color: var(--ink); }
.acts button[aria-pressed="true"] { color: var(--sun); }
.acts .seg { display: flex; margin-inline-end: 4px; }
.host { flex: 1; min-height: 0; }

/* bars */
.rows { display: grid; gap: 10px; }
.row { display: grid; grid-template-columns: minmax(96px, 34%) 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.row .lb { color: var(--ink-2); line-height: 1.35; }
.row .lb small { display: block; color: var(--faint); font-size: 12px; }
.row .val { font-weight: 700; min-width: 34px; text-align: left; direction: ltr; }
.row .val small { color: var(--faint); font-weight: 500; margin-left: 4px; }
.trk { position: relative; height: 12px; border-radius: 6px; background: var(--track); overflow: hidden; display: flex; }
.trk i { display: block; height: 100%; transition: width .7s cubic-bezier(.3,.7,.2,1); }
.c-f { background: var(--f); } .c-m { background: var(--m); } .c-ok { background: var(--ok); }
.c-sun { background: var(--sun); } .c-mute { background: var(--mute-bar); } .c-warn { background: var(--warn); } .c-alert { background: var(--alert); }
.key { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13px; color: var(--mute); }
.key span { display: inline-flex; align-items: center; gap: 7px; }
.key i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.key i.tg-key { width: 2px; height: 12px; border-radius: 2px; background: var(--ink); }

/* sex split */
.split { display: grid; gap: 18px; }
.split-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.split-nums div { display: grid; }
.split-nums b { font-family: var(--num); font-size: 54px; line-height: 1; letter-spacing: .03em; font-weight: 400; padding-top: .08em; }
.split-nums span { font-size: 13.5px; color: var(--mute); }
.split-nums .f b { color: var(--f); } .split-nums .m b { color: var(--m); }
.split .trk { height: 16px; border-radius: 8px; }

/* pyramid */
.pyr { display: grid; gap: 7px; }
.pyr-head, .pyr-row { display: grid; grid-template-columns: 1fr 78px 1fr; align-items: center; gap: 10px; font-size: 13.5px; }
.pyr-head { color: var(--mute); margin-bottom: 4px; }
.pyr-head span:first-child { color: var(--f); font-weight: 700; } .pyr-head span:last-child { color: var(--m); font-weight: 700; text-align: end; }
.pyr-row .side { display: flex; align-items: center; gap: 8px; }
.pyr-row .side .ptrk { flex: 1; display: flex; height: 14px; }
.pyr-row .side.f .ptrk { justify-content: flex-end; }
.pyr-row .side.m { flex-direction: row-reverse; }
.pyr-row .side.m .ptrk { justify-content: flex-start; }
.pyr-row .side .pb { display: block; height: 14px; border-radius: 4px; min-width: 2px; transition: width .7s cubic-bezier(.3,.7,.2,1); }
.pyr-row .side.f .pb { background: var(--f); } .pyr-row .side.m .pb { background: var(--m); }
.pyr-row .side b { font-weight: 700; font-size: 13px; color: var(--ink-2); min-width: 22px; text-align: center; }
.pyr-row .mid { text-align: center; color: var(--mute); font-size: 13px; direction: ltr; }
.pyr-row.out .mid { color: var(--faint); }

/* tracks vs seats */
.trk-list { display: grid; gap: 18px; }
.tk { display: grid; gap: 7px; }
.tk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.tk-top .nm { color: var(--ink); font-weight: 700; }
.tk-top .nm small { color: var(--faint); font-weight: 500; margin-inline-start: 6px; }
.tk-top .ratio { color: var(--mute); font-size: 13px; white-space: nowrap; }
.tk-top .ratio b { color: var(--ink); font-weight: 800; font-size: 14.5px; }
.tk-bar { position: relative; height: 22px; border-radius: 7px; background: var(--track); overflow: hidden; }
.tk-bar .ap, .tk-bar .el { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; transition: width .8s cubic-bezier(.3,.7,.2,1); }
.tk-bar .ap { background: var(--ap); }
.tk-bar .el { background: var(--ok); top: 6px; bottom: 6px; border-start-end-radius: 4px; border-end-end-radius: 4px; }
.tk-bar.only .el { top: 0; bottom: 0; }
.tk-bar .tg { position: absolute; top: 3px; bottom: 3px; width: 2px; border-radius: 2px; background: var(--ink); }
.tk-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--faint); }

/* columns */
.cols { display: flex; align-items: flex-end; gap: 4px; height: 190px; padding-top: 18px; direction: ltr; }
.cols .c { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.cols .c i { display: block; width: 100%; max-width: 34px; border-radius: 5px 5px 2px 2px; background: var(--sun); transition: height .7s cubic-bezier(.3,.7,.2,1); min-height: 2px; }
.cols .c.zero i { background: var(--track); }
.cols .c span { font-size: 11.5px; color: var(--faint); }
.cols .c b { font-size: 12px; color: var(--ink-2); font-weight: 700; }
.panel.max .cols { height: calc(100% - 20px); }

/* map */
.map-host { display: grid; place-items: center; min-height: 440px; }
.map-host svg { direction: ltr; width: 100%; height: auto; max-height: 560px; display: block; overflow: visible; }
.panel.max .map-host svg { max-height: calc(100vh - 170px); }
.gov { stroke: var(--panel); stroke-width: 1.4; transition: fill .4s, opacity .3s; }
.gov.target { cursor: pointer; }
.gov.target:hover, .gov.target:focus { outline: none; filter: brightness(1.08); }
.gov.dim { opacity: .4; }
.gov-sel { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; pointer-events: none; }
.glabel { font-family: var(--font); fill: var(--ink); stroke: var(--panel); paint-order: stroke; stroke-width: 6px; stroke-linejoin: round; pointer-events: none; }
.glabel .n { font-family: var(--num); font-size: 34px; letter-spacing: .03em; }
.glabel .t { font-size: 18px; font-weight: 700; }
.leader { stroke: var(--mute); stroke-width: 1.2; fill: none; stroke-linecap: round; }
.map-legend { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mute); margin-top: 8px; justify-content: center; }
.map-legend .sw { display: flex; gap: 2px; direction: ltr; }
[dir="rtl"] .map-legend .sw { direction: rtl; }
.map-legend .sw i { width: 20px; height: 9px; border-radius: 2px; display: block; }

/* tables */
.tbl-wrap { overflow: auto; max-height: 420px; border-radius: var(--r-s); }
.panel.max .tbl-wrap { max-height: none; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
th { position: sticky; top: 0; background: var(--panel); text-align: start; font-weight: 700; color: var(--mute); font-size: 13px; padding: 0; z-index: 1; }
th button { all: unset; cursor: pointer; display: block; padding: 8px 10px; }
th button:hover { color: var(--ink); }
th.num, td.num { text-align: left; direction: ltr; }
td { padding: 9px 10px; border-top: 1px solid var(--edge); position: relative; }
td.num { font-weight: 700; }
td.num .bk { position: absolute; inset: 5px auto 5px 4px; border-radius: 4px; background: color-mix(in srgb, var(--sun) 13%, transparent); z-index: 0; }
td.num span { position: relative; z-index: 1; }
td .gv { color: var(--faint); font-size: 12px; margin-inline-start: 6px; }
tr:hover td { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.arr { font-size: 9px; margin-inline-start: 4px; color: var(--sun); }

/* signals */
.signals { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; }
.signals li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14.5px; line-height: 1.55; }
.signals li svg { width: 22px; height: 22px; margin-top: 1px; }
.signals li b { font-weight: 700; }
.signals li p { color: var(--mute); font-size: 13px; }
.sig-alert svg { color: var(--alert); } .sig-watch svg { color: var(--warn); } .sig-good svg { color: var(--ok); }

/* kpis: tonal card, bespoke icon on a horizon, progress ring, counting number */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { --tone: var(--ok); position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(155deg, color-mix(in srgb, var(--tone) 11%, var(--panel)) 0%, var(--panel) 62%);
  border-radius: var(--r); padding: 18px 20px 20px;
  box-shadow: inset 0 1px 0 var(--edge-hi), inset 0 0 0 1px color-mix(in srgb, var(--tone) 14%, var(--edge));
  display: grid; grid-template-rows: auto auto auto 1fr; gap: 4px; align-content: start; }
.tone-ok { --tone: var(--ok); } .tone-f { --tone: var(--f); } .tone-m { --tone: var(--m); }
.tone-warn { --tone: var(--warn); } .tone-alert { --tone: var(--alert); } .tone-sun { --tone: var(--sun); }
.kpi-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; min-height: 48px; }
.kpi-ic svg { width: 34px; height: 34px; display: block; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.kpi-ic .hz { stroke: var(--tone); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; animation: hzDraw .9s cubic-bezier(.5,0,.2,1) both; animation-delay: calc(var(--i) * 70ms + 150ms); }
.kpi:hover .kpi-ic .hz { animation: hzDraw .7s cubic-bezier(.5,0,.2,1); }
@keyframes hzDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.kpi-ring { position: relative; width: 50px; height: 50px; display: grid; place-items: center; flex: none; }
.kpi-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
[dir="rtl"] .kpi-ring svg { transform: rotate(-90deg) scaleY(-1); }
.kpi-ring circle { fill: none; stroke-width: 4; stroke-linecap: round; }
.kpi-ring .rt { stroke: color-mix(in srgb, var(--tone) 16%, var(--track)); }
.kpi-ring .rr { stroke: var(--tone); transition: stroke-dashoffset 1.2s cubic-bezier(.3,.7,.2,1); transition-delay: calc(var(--i) * 80ms); }
.kpi-ring span { position: relative; font-size: 11.5px; font-weight: 800; line-height: 1; color: var(--ink-2); font-variant-numeric: tabular-nums; direction: ltr; }
.kpi b { font-family: var(--num); font-size: 58px; line-height: 1; font-weight: 400; letter-spacing: .03em; padding-top: .1em; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.kpi b em { font-style: normal; font-family: var(--font); font-size: 15px; color: var(--mute); letter-spacing: 0; font-weight: 700; }
.kpi .kl { font-size: 14px; color: var(--ink); font-weight: 700; }
.kpi small { font-size: 12.5px; color: var(--mute); line-height: 1.5; }
.kpi.lead b, .tone-alert b .kv { color: var(--tone); }
.kpi.lead { background: linear-gradient(155deg, color-mix(in srgb, var(--tone) 20%, var(--panel)) 0%, var(--panel) 70%); }
.kpi.lead .kpi-ic svg { stroke: var(--ink); }
/* funnel */
.funnel { display: grid; gap: 10px; }
.fn { display: grid; grid-template-columns: minmax(150px, 22%) 1fr; gap: 14px; align-items: center; font-size: 14px; }
.fn .lb { color: var(--ink-2); }
.fn .fb { height: 34px; border-radius: 8px; background: var(--fn); display: flex; align-items: center; padding-inline: 12px; font-weight: 800; min-width: 64px; transition: width .8s cubic-bezier(.3,.7,.2,1); white-space: nowrap; }
.fn .fb small { font-weight: 500; color: var(--ink-2); margin-inline-start: 8px; }
.fn.last .fb { background: var(--ok); color: var(--ok-ink); }
.fn.last .fb small { color: var(--ok-ink); opacity: .8; }

/* report */
.report-body { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.report pre { margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.85; white-space: pre-wrap; color: var(--ink-2); background: var(--panel-2); border-radius: 12px; padding: 16px 18px; max-height: 360px; overflow: auto; }
.act-btn { display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: pointer; padding: 11px 18px; border-radius: 12px; background: var(--sun); color: var(--sun-ink); font-weight: 800; font-size: 14.5px; transition: background .2s; }
.act-btn:hover { background: var(--sun-hover); }

.empty { text-align: center; color: var(--mute); padding: 40px 0; }
.foot { padding: 14px clamp(16px, 3vw, 40px) 34px; color: var(--faint); font-size: 13px; display: grid; gap: 2px; justify-items: center; text-align: center; }

/* expanded card */
.backdrop { position: fixed; inset: 0; background: var(--backdrop); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .3s; }
.backdrop.on { opacity: 1; pointer-events: auto; }
.panel.max { position: fixed; z-index: 50; inset: clamp(12px, 3vw, 40px); overflow: auto; background: var(--panel); }
.panel.max .row { font-size: 15px; }
.panel.max .trk { height: 16px; }
.card-ph { border-radius: var(--r); background: color-mix(in srgb, var(--ink) 2%, transparent); }

/* tooltip & toast */
.tip { position: fixed; z-index: 70; pointer-events: none; background: var(--tip); color: #f4ede6; border-radius: 10px; padding: 9px 12px; font-size: 13px; line-height: 1.5; max-width: 260px; opacity: 0; transition: opacity .15s; box-shadow: 0 2px 6px rgba(0, 0, 0, .22); }
.tip.on { opacity: 1; }
.tip .tt { font-weight: 800; margin-bottom: 2px; }
.tip .tr { display: flex; justify-content: space-between; gap: 16px; color: #d9cfc6; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 80; background: var(--ink); color: var(--page); padding: 10px 18px; border-radius: 12px; font-weight: 700; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.toast.on { opacity: 1; }

.exporting .acts { display: none; }
.page-cap { display: flex; gap: 14px; align-items: baseline; margin-bottom: 14px; color: var(--mute); font-size: 13px; }
.page-cap b { color: var(--ink); font-size: 17px; }

/* ---------------- responsive ---------------- */
@media (max-width: 1100px) {
  .s4, .s5, .s6, .s7, .s8 { grid-column: span 6; }
  .bar { grid-template-columns: auto 1fr auto; }
  .live { display: none; }
  .tracks-ed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-head { grid-template-columns: 1fr; }
  .about-org, .about-live { grid-column: 1; grid-row: auto; }
  .about-live { justify-content: start; }
}
@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .s4, .s5, .s6, .s7, .s8, .s12 { grid-column: 1 / -1; }
  .bar { grid-template-columns: 1fr auto; gap: 10px; }
  .title { display: none; }
  .mk-shafak { height: 32px; } .mk-undp { height: 38px; }
  .bar-tools { gap: 0; }
  .icon-btn, .lang-btn { min-width: 34px; height: 34px; }
  #pageBtn { display: none; }
  .dusk-read { grid-template-columns: 1fr; }
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .tabs { width: 100%; overflow-x: auto; }
  .tabs button { padding: 8px 12px; }
  .report-body { grid-template-columns: 1fr; }
  .row { grid-template-columns: minmax(84px, 38%) 1fr auto; }
  .fn { grid-template-columns: 1fr; gap: 4px; }
  .tracks-ed { grid-template-columns: 1fr; }
  .about-live { grid-template-columns: repeat(2, auto); gap: 18px 30px; }
  .journey { grid-template-columns: 1fr; gap: 16px; padding-inline-start: 6px; }
  .journey::before { inset-inline: auto; inset-inline-start: 15px; top: 30px; bottom: 30px; width: 3px; height: auto; background: linear-gradient(to bottom, var(--sun), var(--track) 35%); }
  .jr { grid-template-columns: 24px auto 1fr; align-items: center; gap: 10px; }
  .jr-n { margin-top: 0; }
  .jr small { grid-column: 3; }
  .areas { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------- cross-filtering (click to filter, Power BI style) ---------------- */
.click { cursor: pointer; }
.row, .pyr-row, .tk, .split-nums div, .trk i { transition: opacity .25s; }
.row.off, .pyr-row.off, .tk.off, .split-nums div.off, .trk i.off { opacity: .32; }
.row.on .lb, .tk.on .nm { color: var(--ink); font-weight: 800; }
.row.click:hover .lb, .tk.click:hover .nm, .pyr-row.click:hover .mid { color: var(--ink); }
.row.click:hover .trk, .pyr-row.click:hover .ptrk { filter: brightness(1.08); }
.split-nums .click:hover span { color: var(--ink); }
.pyr-row.on .mid { color: var(--ink); font-weight: 800; }
.comm-sel { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mute); }
.comm-sel select {
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink); background: var(--panel);
  border: 0; border-radius: 9px; padding: 6px 12px; padding-inline-end: 28px; cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--edge); appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%;
}
[dir="rtl"] .comm-sel select { background-position: 15px 55%, 10px 55%; }
.comm-sel select:focus-visible { outline: 2px solid var(--sun); outline-offset: 1px; }
.xf { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 30px; }
.xf-hint { font-size: 12.5px; color: var(--faint); }
.xf-chip { display: inline-flex; align-items: center; gap: 4px; border: 0; cursor: pointer; padding: 5px 10px; border-radius: 9px; font-size: 13px; background: color-mix(in srgb, var(--sun) 16%, var(--panel)); color: var(--ink-2); transition: background .2s; }
.xf-chip b { color: var(--ink); font-weight: 800; }
.xf-chip .xf-x { font-style: normal; font-size: 15px; line-height: 1; margin-inline-start: 4px; color: var(--mute); }
.xf-chip:hover { background: color-mix(in srgb, var(--sun) 28%, var(--panel)); }
.xf-clear { border: 0; background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--sun); padding: 5px 8px; border-radius: 8px; }
.xf-clear:hover { background: var(--panel-2); }

/* ---------------- expanded card: content fills the height, no dead half ---------------- */
.panel.max { display: flex; flex-direction: column; }
.panel.max .host { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.panel.max .host > .rows { flex: 1; grid-auto-rows: 1fr; align-content: stretch; gap: 14px; }
.panel.max .host > .rows .row { font-size: 16px; }
.panel.max .host > .rows .trk { height: 22px; border-radius: 8px; }
.panel.max .host > .pyr { flex: 1; grid-template-rows: auto; grid-auto-rows: 1fr; align-content: stretch; }
.panel.max .pyr-row .side .ptrk, .panel.max .pyr-row .side .pb { height: 30px; border-radius: 6px; }
.panel.max .pyr-row { font-size: 15px; }
.panel.max .host > .trk-list { flex: 1; align-content: space-evenly; }
.panel.max .tk-bar { height: 34px; }
.panel.max .host > .funnel { flex: 1; align-content: space-evenly; }
.panel.max .fn .fb { height: 48px; font-size: 17px; }
.panel.max .host > .split { flex: 1; align-content: center; gap: 30px; }
.panel.max .split-nums b { font-size: 110px; }
.panel.max .split .trk { height: 30px; border-radius: 12px; }
.panel.max .host > .cols { flex: 1; height: auto; min-height: 300px; }
.panel.max .host > .tbl-wrap { flex: 1; }
.panel.max .signals { flex: 1; align-content: space-evenly; font-size: 16px; }
.panel.max .map-host { flex: 1; }
.panel.max .host > .key { margin-top: 18px; }

/* ---------------- day x neighbourhood heat table ---------------- */
.heat-wrap { overflow-x: auto; }
.heat { border-collapse: separate; border-spacing: 4px; width: 100%; font-size: 13.5px; }
.heat th { position: static; background: none; padding: 4px 6px; font-weight: 700; color: var(--mute); white-space: nowrap; }
.heat th.hd { text-align: center; font-size: 12.5px; }
.heat th.hd.cur { color: var(--sun); }
.heat th.rn { text-align: start; color: var(--ink-2); font-weight: 700; }
.heat th.rn small { display: block; font-size: 11.5px; color: var(--faint); font-weight: 500; }
.heat td { border: 0; padding: 0; }
.heat .hc { width: 100%; min-width: 44px; height: 38px; border: 0; border-radius: 8px; cursor: pointer; font-weight: 800; font-size: 13.5px;
  background: color-mix(in srgb, var(--sun) calc(var(--k) * 100%), var(--panel-2)); color: var(--ink); transition: box-shadow .2s; }
.heat .hc:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.heat .hc.on { box-shadow: inset 0 0 0 2px var(--ink); }
.heat td.tot { text-align: center; font-weight: 800; padding: 0 8px; }
.heat tr.off .rn, .heat tr.off td { opacity: .35; }
.panel.max .heat .hc { height: 52px; font-size: 15px; }
.supp-note { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--mute); }
.mem-top { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.mem-top b { font-family: var(--num); font-weight: 400; font-size: 44px; line-height: 1; color: var(--ok); padding-top: .08em; }
.mem-top span { font-size: 13.5px; color: var(--ink-2); }
.mem-h { margin: 16px 0 10px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
:root[lang="en"] .mem-h { font-family: var(--display); }

/* shared icon style for about / ledger (same house style as the KPI cards) */
.tr-ic svg, .al-ic svg, .lg-ic svg { display: block; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tr-ic .hz, .al-ic .hz, .lg-ic .hz { stroke: var(--tone, var(--sun)); stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; animation: hzDraw .9s cubic-bezier(.5,0,.2,1) both; animation-delay: calc(var(--i, 0) * 90ms + 150ms); }

/* about: track cards */
.tr-ed { --tone: var(--sun); position: relative; overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 10%, var(--panel)) 0%, var(--panel) 58%); box-shadow: inset 0 1px 0 var(--edge-hi), inset 0 0 0 1px color-mix(in srgb, var(--tone) 14%, var(--edge)); grid-template-rows: auto auto 1fr auto auto; }
.tr-A11 { --tone: var(--sun); } .tr-A12 { --tone: var(--f); } .tr-A13 { --tone: var(--m); } .tr-A14 { --tone: var(--ok); }
.tr-head { display: flex; align-items: center; justify-content: space-between; }
.tr-ic svg { width: 40px; height: 40px; stroke: var(--ink); }
.tr-ic .up { stroke: var(--tone); }
.tr-ed:hover .tr-ic .hz { animation: hzDraw .7s cubic-bezier(.5,0,.2,1); }
.tr-ed:hover .tr-ic svg { transform: rotate(-4deg); }
.tr-ic svg { transition: transform .5s cubic-bezier(.3,.7,.2,1); transform-origin: 50% 90%; }
.tr-no { color: var(--tone); }
.tr-n b { color: var(--tone); }
.tr-meter { display: grid; gap: 6px; margin-top: 4px; }
.tr-mt { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--mute); gap: 8px; }
.tr-mt b { font-family: var(--num); font-weight: 400; font-size: 22px; color: var(--ink); letter-spacing: .03em; line-height: 1; }
.tr-bar { height: 8px; border-radius: 8px; background: color-mix(in srgb, var(--tone) 16%, var(--track)); overflow: hidden; }
.tr-bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--tone); transition: width 1.3s cubic-bezier(.3,.7,.2,1); transition-delay: calc(var(--i, 0) * 110ms + 100ms); }

/* about: live strip */
.about-live .al { display: grid; gap: 2px; justify-items: start; }
.al-ic svg { width: 30px; height: 30px; margin-bottom: 6px; }
.about-live .al:nth-child(1) { --tone: var(--m); } .about-live .al:nth-child(2) { --tone: var(--ok); }
.about-live .al:nth-child(3) { --tone: var(--f); } .about-live .al:nth-child(4) { --tone: var(--sun); }
.about-live .al:nth-child(2) b { color: var(--ok); } .about-live .al:nth-child(4) b { color: var(--sun); }
.about-live b { font-variant-numeric: tabular-nums; }

/* today: ledger on the horizon */
.ledger .lg { --tone: var(--sun); }
.ledger .lg-f { --tone: var(--f); } .ledger .lg-m { --tone: var(--m); } .ledger .lg-ok { --tone: var(--ok); }
.ledger dt { display: flex; align-items: center; gap: 6px; }
.lg-ic svg { width: 20px; height: 20px; stroke: var(--ink-2); }
.ledger dd { position: relative; }
/* entering the tab: each figure settles up onto the horizon in turn (always visible; only moves) */
.ledger.play .lg dd { animation: settle .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 120ms); }
.ledger.play .lg dt { animation: settle .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 120ms + 80ms); }
@keyframes settle { from { transform: translateY(14px); } to { transform: none; } }
.ledger .lg:hover .lg-ic .hz { animation: hzDraw .7s cubic-bezier(.5,0,.2,1); }
@media (prefers-reduced-motion: reduce) { .tr-bar i { transition: none; } }

/* hero: the total received, under the in-area figure */
.big-t { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font-size: clamp(13.5px, 1.1vw, 15px); color: var(--hero-cap); font-weight: 700; }
.big-t b { font-family: var(--num); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); letter-spacing: .03em; line-height: 1; color: var(--ink); padding-top: .08em; }
.big-t span { opacity: .85; }

/* phone: filters become single-row horizontal strips so the pinned bar stays short */
@media (max-width: 760px) {
  .scope { gap: 10px; padding-top: 12px; }
  .filters { width: 100%; gap: 8px; }
  .days, .govs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }
  .days::-webkit-scrollbar, .govs::-webkit-scrollbar { display: none; }
  .days .chip, .govs .chip { flex: none; white-space: nowrap; }
  .comm-sel { width: 100%; }
  .comm-sel select { flex: 1; }
  .scope.stuck { padding-top: 8px; padding-bottom: 8px; }
  .scope.stuck .comm-sel span { display: none; }
}
