/* ==========================================================================
   GovXRay v26 · the original site, cleaned up
   Loaded after gx-humane.css on every page. It changes execution, not
   structure: one-row top bar, plain footer, Inter with aligned digits,
   colour for spending categories and module tabs only, flags only beside a
   government's name, no decorative gradients or washes.
   Selectors start with `html:root body` so they win over the humane layer.
   ========================================================================== */

/* ---------- tokens ---------- */
html:root body, html:root body.light-theme {
  --gx-type: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gx26-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gx-page: #f7f8fa; --gx-surface: #ffffff; --gx-surface-raised: #ffffff;
  --gx-surface-subtle: #f0f2f5; --gx-surface-sunken: #e8ebf0;
  --gx-text: #111318; --gx-text-secondary: #454b56; --gx-text-muted: #5f6672;
  --gx-border: #e2e5ea; --gx-border-strong: #c3c9d2; --gx-neutral-soft: #f0f2f5;
  --gx-accent: #22c55e; --gx-accent-ink: #13773a; --gx-focus: #13773a;
  --gx-spectrum: none;
  --gx26-track: #e8ebf0; --gx26-x: #4ade80; --gx26-x-btn: #22c55e; --gx26-x-ink: #13773a; --gx26-x-soft: #dcfce7;
  --gx26-fin: #f97316; --gx26-assets: #2a78d6; --gx26-tax: #8b5cf6;
  --gx26-shadow: 0 1px 2px rgba(17,19,24,.05), 0 4px 16px -8px rgba(17,19,24,.10);
  --gx26-pop: 0 12px 32px -12px rgba(17,19,24,.25);
  --r-card: 12px; --r-field: 10px; --r-pill: 10px;
  --fs-body: 15px; --fs-meta: 13px;
}
html:root body:not(.light-theme) {
  --gx-page: #111317; --gx-surface: #191c22; --gx-surface-raised: #20242b;
  --gx-surface-subtle: #20242b; --gx-surface-sunken: #15181d;
  --gx-text: #eceef2; --gx-text-secondary: #b8bec8; --gx-text-muted: #939aa6;
  --gx-border: #2c313a; --gx-border-strong: #434a55; --gx-neutral-soft: #20242b;
  --gx-accent-ink: #4ade80; --gx-focus: #4ade80;
  --gx26-track: #262a31; --gx26-x-ink: #4ade80; --gx26-x-soft: #173222;
  --gx26-shadow: 0 0 0 1px var(--gx-border); --gx26-pop: 0 12px 32px -12px rgba(0,0,0,.6);
}
html:root:has(body.light-theme) { background: #f7f8fa !important; }
html:root { background: var(--gx-page, #111317) !important; }

/* ---------- type ---------- */
html:root body, html:root body :where(*:not(svg):not(svg *):not([class^="fa-"]):not([class*=" fa-"])) {
  font-family: var(--gx-type) !important;
}
html:root body { font-feature-settings: "cv11", "calt"; -webkit-font-smoothing: antialiased; }
html:root body :is(td, th, .num, [data-v], b, strong) { font-variant-numeric: tabular-nums; }
html:root body :is(table td.num, table td[data-v], .gx-ledger td:not(:first-child)) { font-family: var(--gx26-mono) !important; font-size: 13.5px !important; }

/* ---------- decoration off ---------- */
html:root body::before { display: none !important; content: none !important; }
html:root body main::before, html:root body #gx-stack-app::before,
html:root body #gx-stack-app .gx-level-button.has-flag::after,
html:root body .gx-hm-bg, html:root body .gx-flag-lane::before,
html:root body .gx-home-pick-bg, html:root body .flag-bg, html:root body .flag-bg-overlay { display: none !important; background: none !important; }
html:root body main h2::before, html:root body .gx-kpi-gh::before { display: none !important; }
html:root body :is(.gx-kpi,.gx-hub-story,.gx-hub-ad,.gx-dd-card,.gx-home-cta,.gx-module-hub,.gx-ceiling) { border-top: 1px solid var(--gx-border) !important; }
html:root body .gx-dd-link:nth-of-type(n) .gx-dd-card { background: var(--gx-surface) !important; }
html:root body .gx-x-mark { background: transparent !important; box-shadow: none !important; }

/* ---------- top bar: one row ---------- */
html:root body > header, html:root body header:has(> nav.gx-topbar-v2) {
  position: sticky !important; top: env(safe-area-inset-top, 0px) !important; z-index: 200 !important;
  display: flex !important; align-items: center !important; gap: 20px !important;
  height: 60px !important; padding: 0 max(16px, calc((100vw - 1240px) / 2)) !important;
  background: color-mix(in srgb, var(--gx-page) 90%, transparent) !important;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gx-border) !important; box-shadow: none !important;
}
html:root body header > nav.gx-topbar-v2 { display: contents !important; }
html:root body header .gx-tb-left { order: 1; flex: none; margin: 0 !important; }
html:root body header nav.gx-sections-sticky {
  order: 2; position: static !important; display: flex !important; align-items: center !important; gap: 2px !important;
  height: auto !important; padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important;
  backdrop-filter: none !important; overflow: visible !important;
}
html:root body header .gx-tb-center { order: 3; margin-left: auto !important; flex: 0 1 auto; width: auto !important; }
html:root body header .gx-tb-right { order: 4; display: flex !important; align-items: center !important; gap: 4px !important; flex: none; }
html:root body header .gx-lang-dd-wrap { order: 5; }
html:root body header .gx-tb-mobile { order: 6; }
html:root body header nav.gx-sections-sticky > a, html:root body header nav.gx-sections-sticky summary,
html:root body header nav.gx-sections-sticky span[aria-current] {
  display: inline-flex !important; align-items: center !important; height: 36px !important; padding: 0 10px !important; border-radius: 8px !important;
  color: var(--gx-text-secondary) !important; font-size: 15px !important; font-weight: 500 !important; text-decoration: none !important;
  box-shadow: none !important; border: 0 !important; background: none !important;
}
html:root body header nav.gx-sections-sticky > a:hover, html:root body header nav.gx-sections-sticky summary:hover { background: var(--gx-surface-subtle) !important; color: var(--gx-text) !important; }
html:root body header nav.gx-sections-sticky [aria-current="page"] { background: var(--gx-surface-subtle) !important; color: var(--gx-text) !important; box-shadow: none !important; }
html:root body header nav.gx-sections-sticky summary::after { opacity: .5; }
html:root body header .gx-dd17-panel { border-radius: 12px !important; border: 1px solid var(--gx-border) !important; background: var(--gx-surface) !important; box-shadow: var(--gx26-pop) !important; }
html:root body #home-link { display: inline-flex !important; align-items: center !important; gap: 9px !important; }
html:root body #home-link .gx-x-mark { width: 20px !important; height: 22px !important; border-radius: 0 !important; background: none !important; color: var(--gx26-x) !important; font-size: 22px !important; font-weight: 800 !important; line-height: 1 !important; }
html:root body #home-link .gx-word-gov, html:root body #home-link span { font-size: 18px !important; font-weight: 700 !important; letter-spacing: -0.02em !important; color: var(--gx-text) !important; }
html:root body #home-link span[style*="4ade80"], html:root body #home-link span[style*="4ADE80"] { color: var(--gx26-x-ink) !important; }
html:root body #omnibar-trigger {
  width: 280px !important; height: 38px !important; padding: 0 10px 0 12px !important; border-radius: 10px !important;
  border: 1px solid var(--gx-border) !important; background: var(--gx-surface) !important; box-shadow: none !important;
  color: var(--gx-text-muted) !important; font-size: 14px !important;
}
html:root body #omnibar-trigger:hover { border-color: var(--gx-border-strong) !important; }
html:root body #omnibar-trigger { overflow: hidden !important; gap: 8px !important; }
html:root body #omnibar-trigger > span:not(:last-child) { flex: 1 1 auto !important; min-width: 0 !important; width: auto !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; text-align: left !important; }
html:root body #omnibar-trigger > span:last-child { flex: none !important; }
html:root body #omnibar-trigger span:last-child { font-size: 11.5px !important; padding: 3px 6px !important; border: 1px solid var(--gx-border) !important; border-radius: 5px !important; }
html:root body .gx-tb-right > div[style*="border-radius"] {
  background: none !important; border: 0 !important; height: 38px !important; padding: 0 10px !important; border-radius: 10px !important; color: var(--gx-text-secondary) !important;
}
html:root body .gx-tb-right > div[style*="border-radius"]:hover { background: var(--gx-surface-subtle) !important; }
html:root body .gx-tb-right > div[style*="border-radius"] label:not(.sr-only) { display: none !important; }
html:root body .gx-tb-right > div[style*="border-radius"] #gx-currency { font-size: 14px !important; font-weight: 500 !important; color: var(--gx-text-secondary) !important; }
html:root body :is(#theme-toggle-btn, #share-btn, .gx-tb-btn, .gx-tb-nb) {
  width: 38px !important; height: 38px !important; min-width: 38px !important; border-radius: 10px !important;
  background: none !important; box-shadow: none !important; color: var(--gx-text-secondary) !important; border: 0 !important;
}
html:root body #gx-nb-trigger :is(.gx-btn-label, [data-nb-label]) { display: none !important; }
html:root body #gx-nb-trigger { font-size: 0 !important; }
html:root body #gx-nb-trigger :is(i, svg) { font-size: 15px !important; }
html:root body #gx-nb-trigger:not(:has(i, svg))::before { content: "\f02e"; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; font-size: 15px !important; }
/* the top bar must hold longer labels (French) on one row */
html:root body header nav.gx-sections-sticky { flex-wrap: nowrap !important; white-space: nowrap !important; }
html:root body header nav.gx-sections-sticky > a, html:root body header nav.gx-sections-sticky summary { white-space: nowrap !important; }
html:root body .gx-lang-dd { width: auto !important; min-width: 0 !important; }
@media (max-width: 1320px) {
  html:root body #omnibar-trigger { width: 200px !important; }
  html:root body #omnibar-trigger span:last-child { display: none !important; }
  html:root body header nav.gx-sections-sticky > a, html:root body header nav.gx-sections-sticky summary { padding: 0 8px !important; font-size: 14.5px !important; }
  html:root body > header, html:root body header:has(> nav.gx-topbar-v2) { gap: 12px !important; }
}
@media (max-width: 1100px) {
  html:root body #omnibar-trigger { width: 38px !important; min-width: 38px !important; padding: 0 !important; justify-content: center !important; }
  html:root body #omnibar-trigger span { display: none !important; }
}
html:root body :is(#theme-toggle-btn, #share-btn, .gx-tb-btn, .gx-tb-nb):hover { background: var(--gx-surface-subtle) !important; color: var(--gx-text) !important; }
html:root body .gx-lang-dd {
  height: 38px !important; padding: 0 26px 0 10px !important; border: 0 !important; border-radius: 10px !important; background-color: transparent !important;
  color: var(--gx-text-secondary) !important; font-size: 14px !important; font-weight: 500 !important;
}
html:root body .gx-lang-dd:hover { background-color: var(--gx-surface-subtle) !important; }

/* ---------- footer: plain ---------- */
html:root body > footer, html:root body footer:has(.gx-foot-by) {
  margin: 80px 0 0 !important; padding: 28px max(16px, calc((100vw - 1240px) / 2)) 36px !important;
  background: none !important; border-top: 1px solid var(--gx-border) !important;
  display: grid !important; gap: 10px !important; justify-items: start !important; text-align: left !important;
}
html:root body > footer, html:root body > footer * { color: var(--gx-text-muted) !important; font-size: 14px !important; }
html:root body > footer > div:first-child { display: block !important; max-width: 70ch; text-align: left !important; }
html:root body > footer > div.gx-foot-by { display: flex !important; flex-wrap: wrap !important; gap: 6px 18px !important; justify-content: flex-start !important; align-items: center !important; padding: 0 !important; margin: 0 !important; text-align: left !important; }
html:root body > footer a { color: var(--gx-text-secondary) !important; text-decoration: none !important; }
html:root body > footer a:hover { color: var(--gx-text) !important; text-decoration: underline !important; }
html:root body > footer .gx-foot-ddb { width: 22px !important; height: 22px !important; font-size: 9px !important; border-color: var(--gx-border-strong) !important; }
html:root body #gx-motion-toggle { background: none !important; border: 0 !important; padding: 0 !important; height: auto !important; color: var(--gx-text-muted) !important; font-size: 13px !important; text-decoration: underline; text-underline-offset: 3px; }
html:root body #gx-top { border-radius: 10px !important; background: var(--gx-surface) !important; border: 1px solid var(--gx-border) !important; color: var(--gx-text-secondary) !important; box-shadow: var(--gx26-shadow) !important; }

/* ---------- page scrolls, not an inner box ---------- */
html:root body .gx-app-shell, html:root body .gx-main-area { height: auto !important; max-height: none !important; overflow: visible !important; }
html:root body { overflow-y: auto !important; }

/* ---------- buttons ---------- */
html:root body :is(button, a, summary):focus-visible { outline: 2px solid var(--gx-focus) !important; outline-offset: 2px !important; }
html:root body #accueil-carte :is(.gx-hm-cta, .gx-home-pick-open), html:root body :is(.gx-hm-cta, .gx-home-pick-open, .gx-btn-primary) {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
  height: 42px !important; padding: 0 18px !important; border-radius: 10px !important; border: 1px solid var(--gx26-x-btn) !important;
  background: var(--gx26-x-btn) !important; color: #05230f !important; font-weight: 600 !important; font-size: 15px !important; box-shadow: none !important; text-decoration: none !important;
}
html:root body #accueil-carte :is(.gx-hm-cta, .gx-home-pick-open):hover { background: #16a34a !important; border-color: #16a34a !important; }
html:root body #accueil-carte :is(.gx-hm-cmp, .gx-home-pick-cmp), html:root body :is(.gx-hm-cmp, .gx-home-pick-cmp) {
  display: inline-flex !important; align-items: center !important; height: 42px !important; padding: 0 18px !important; border-radius: 10px !important;
  border: 1px solid var(--gx-border-strong) !important; background: var(--gx-surface) !important; color: var(--gx-text) !important;
  font-weight: 600 !important; font-size: 15px !important; box-shadow: none !important; text-decoration: none !important;
}
html:root body :is(.gx-hm-cmp, .gx-home-pick-cmp):hover { background: var(--gx-surface-subtle) !important; }
/* generic chrome buttons of the humane layer: neutral, not green-tinted */
/* 01/10: the generic button rule carries NO specificity (:where). It used to weigh two ids
   (:not(#gx-top):not(#gx-motion-toggle)), so every component had to stack three ids to
   style its own buttons. Order still beats the older layers (this sheet loads last). */
:where(html:root body button:where(:not(#gx-stack-app *)):not([aria-pressed="true"]):not(.is-on):not(#gx-top):not(#gx-motion-toggle):not(.gx-nav-backdrop):not(.gx-omnibar-backdrop)),
html:root body :is(.gx-zone,.gx-map-mode,.gx-home-view-btn,.gx-home-regions button,.gx-cmp-s):not(.is-on):not([aria-pressed="true"]) {
  background: var(--gx-surface) !important; color: var(--gx-text) !important; border: 1px solid var(--gx-border) !important; box-shadow: none !important; border-radius: 10px !important; font-weight: 500 !important;
}
:where(html:root body button:where(:not(#gx-stack-app *)):not([aria-pressed="true"]):not(.is-on):not(.gx-nav-backdrop):not(.gx-omnibar-backdrop):hover) { background: var(--gx-surface-subtle) !important; }
html:root body:not(.gx-nav-open) .gx-nav-backdrop { background: transparent !important; border: 0 !important; box-shadow: none !important; pointer-events: none !important; }
html:root body.gx-nav-open .gx-nav-backdrop { background: rgba(17,19,24,.35) !important; border: 0 !important; border-radius: 0 !important; }
html:root body main select:not(#gx-place):not(.selectbox) {
  height: 40px !important; padding: 0 34px 0 12px !important; border-radius: 10px !important; border: 1px solid var(--gx-border-strong) !important;
  background-color: var(--gx-surface) !important; color: var(--gx-text) !important; font-weight: 500 !important; font-size: 15px !important; box-shadow: none !important;
}
html:root body :is(.gx-zone[aria-pressed="true"], .gx-map-mode.is-on, .gx-home-view-btn.is-on, .gx-home-regions .is-on) {
  background: var(--gx-surface) !important; color: var(--gx-text) !important; border: 1px solid var(--gx-border-strong) !important; box-shadow: 0 1px 2px rgba(17,19,24,.08) !important;
}

/* ---------- cards ---------- */
html:root body :is(.gx-hub-ad,.gx-home-card,.gx-home-cta,.gx-chapter,.gx-card,.gx-kpi,.gx-facts,.gx-profil,.gx-home-stage,.gx-hm-hl,.gx-hm-stage) {
  background: var(--gx-surface) !important; border: 1px solid var(--gx-border) !important; border-radius: 12px !important; box-shadow: var(--gx26-shadow) !important;
}
html:root body :is(.gx-note,.gx-hub-ad-note,.gx-facts-sense,.gx-fb-recall,.gx-scope-band,.gx-qchip) {
  background: var(--gx-surface-subtle) !important; box-shadow: none !important; border: 0 !important; border-radius: 10px !important; color: var(--gx-text-secondary) !important;
}
html:root body :is(.gx-cmp-warn,.gx-fresh-warn) { background: var(--gx-surface-subtle) !important; box-shadow: inset 3px 0 0 #b45309 !important; }
html:root body :is(.gx-note,.gx-hub-ad-note,.gx-facts-sense,.gx-scope-band,.gx-qchip) b { color: var(--gx-text) !important; }

/* ---------- flags: 4:3, one size, beside a government's name ---------- */
html:root body :is(img.gx-flag, img.gx-flag-s, img.gx-flag-v, img.gx-scope-flag, .gx-ta-flag img, .gxs-it .gx-flag-s) {
  width: 1.2em !important; height: .9em !important; min-height: 0 !important; object-fit: cover !important; border-radius: 2px !important;
  outline: 1px solid rgba(17,19,24,.16) !important; outline-offset: -1px !important; box-shadow: none !important; vertical-align: -.08em !important;
}
html:root body:not(.light-theme) :is(img.gx-flag, img.gx-flag-s, img.gx-flag-v, img.gx-scope-flag) { outline-color: rgba(255,255,255,.18) !important; }
/* ---------- flag shapes (2026-09-30: "in Switzerland all the flags are square, make sure this does not impact the UI UX") ----------
   The slot stays 4:3 so rows and columns line up whatever the flag. A standard flag (ratio 1.2 to 1.8) still fills it.
   A square (Swiss cantons, Vatican), a tall banner (Austrian and German towns), a very wide flag (Canada, Ontario, UK, 1:2)
   or a cut flag (Slovak swallowtails, Ohio) is drawn WHOLE and centred: never cropped, never stretched, no layout shift.
   The hairline then follows the real flag (drop-shadow), not the empty slot.
   Shapes come from the build (data-flag-shape, measured in flag_rules.py) or from gx26.js once a scripted flag loads.
   The :is(img, #gx-f#gx-f#gx-f#gx-f) suffix only raises specificity above the id-stacked comparator and picker rules. */
html:root body img[data-flag-shape]:not([data-flag-shape="standard"]):is(img, #gx-f#gx-f#gx-f#gx-f) {
  object-fit: contain !important; object-position: center !important;
  outline: 0 !important; box-shadow: none !important; border: 0 !important; border-radius: 0 !important; background: none !important;
  filter: drop-shadow(0 0 .5px rgba(17,19,24,.6)) !important;
}
html:root body:not(.light-theme) img[data-flag-shape]:not([data-flag-shape="standard"]):is(img, #gx-f#gx-f#gx-f#gx-f) {
  filter: drop-shadow(0 0 .5px rgba(255,255,255,.55)) !important;
}
@media (forced-colors: active) {
  html:root body img[data-flag-shape]:not([data-flag-shape="standard"]):is(img, #gx-f#gx-f#gx-f#gx-f) { filter: none !important; }
}

/* ==========================================================================
   HOME
   ========================================================================== */
html:root body main.gx-home { max-width: 1240px !important; padding: 0 24px !important; margin: 0 auto !important; }
html:root body .gx-hm-top { padding: 48px 0 24px !important; }
html:root body .gx-home-h1, html:root body .gx-home-h1 * { font-size: clamp(30px, 4.2vw, 46px) !important; font-weight: 700 !important; letter-spacing: -0.03em !important; line-height: 1.1 !important; }
html:root body .gx-home-trust-s, html:root body .gx-home-trust-s * { margin-top: 12px; font-size: 15px !important; color: var(--gx-text-muted) !important; }
html:root body .gx-home-trust-s b { color: var(--gx-text) !important; font-weight: 600 !important; }
/* search first, then the city and the map */
html:root body #accueil-carte.gx-hm { display: grid !important; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) !important; grid-template-rows: auto auto !important; gap: 24px !important; align-items: start !important; }
html:root body #accueil-carte .gx-hm-pick { grid-column: 1 / -1 !important; grid-row: 1 !important; max-width: 780px; display: grid !important; gap: 12px !important; }
html:root body #accueil-carte .gx-hm-hl { grid-column: 1 !important; grid-row: 2 !important; padding: 24px !important; }
html:root body #accueil-carte .gx-hm-stage { grid-column: 2 !important; grid-row: 2 !important; padding: 12px 12px 0 !important; }
html:root body #accueil-carte .gx-hm-search { position: relative !important; background: none !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; height: auto !important; border-radius: 0 !important; }
html:root body #accueil-carte .gx-hm-search > :is(svg, i, span, label):not(.sr-only) { position: absolute !important; left: 16px !important; top: 50% !important; translate: 0 -50%; z-index: 1; color: var(--gx-text-muted) !important; width: 20px !important; height: 20px !important; margin: 0 !important; }
html:root body #accueil-carte .gx-hm-search input, html:root body #accueil-carte #gx-hm-q {
  height: 56px !important; padding: 0 16px 0 46px !important; border-radius: 14px !important; border: 1px solid var(--gx-border-strong) !important;
  background: var(--gx-surface) !important; color: var(--gx-text) !important; font-size: 17px !important; font-weight: 500 !important; box-shadow: var(--gx26-shadow) !important;
}
html:root body #accueil-carte #gx-hm-q:focus { outline: none !important; border-color: var(--gx-text) !important; box-shadow: 0 0 0 4px color-mix(in srgb, var(--gx26-x) 30%, transparent) !important; }
html:root body .gx-hm-sugs { display: flex !important; flex-wrap: wrap !important; gap: 6px !important; align-items: center !important; }
html:root body .gx-hm-sug-h { font-size: 13px !important; color: var(--gx-text-muted) !important; margin-right: 2px; }
html:root body #accueil-carte a.gx-hm-sug {
  display: inline-flex !important; align-items: center !important; height: 32px !important; padding: 0 12px !important; border-radius: 16px !important;
  border: 1px solid var(--gx-border) !important; background: var(--gx-surface) !important; color: var(--gx-text) !important; font-weight: 500 !important; font-size: 14px !important; box-shadow: none !important;
}
html:root body #accueil-carte a.gx-hm-sug:hover { border-color: var(--gx-border-strong) !important; }
html:root body #accueil-carte a.gx-hm-sug.is-on { background: var(--gx-text) !important; border-color: var(--gx-text) !important; color: var(--gx-surface) !important; }
html:root body a.gx-hm-sug img, html:root body .gx-hm-sug .gx-hm-flag-s { display: none !important; }  /* cities are not governments: no flags on city chips */
/* selected city card */
html:root body .gx-hm-state { background: none !important; padding: 0 !important; color: var(--gx-text-muted) !important; font-size: 13px !important; font-weight: 500 !important; height: auto !important; }
html:root body .gx-hm-state::before { display: none !important; }
html:root body .gx-hm-id img.gx-hm-flag { display: none !important; }
html:root body .gx-hm-name, html:root body .gx-hm-name * { font-size: 30px !important; font-weight: 700 !important; letter-spacing: -0.025em !important; line-height: 1.15 !important; }
html:root body .gx-hm-sub, html:root body .gx-hm-sub * { font-size: 14.5px !important; color: var(--gx-text-muted) !important; }
html:root body .gx-hm-gh, html:root body .gx-hm-gh * { font-size: 13px !important; color: var(--gx-text-muted) !important; font-weight: 400 !important; }
html:root body .gx-hm-gh b, html:root body .gx-hm-gh strong { color: var(--gx-text) !important; font-weight: 600 !important; }
html:root body .gx-hm-fig { background: var(--gx-surface-subtle) !important; border: 0 !important; border-left: 0 !important; box-shadow: none !important; border-radius: 10px !important; padding: 14px !important; }
html:root body .gx-hm-fig::before { display: none !important; }
html:root body .gx-hm-fig * { color: var(--gx-text-muted) !important; font-size: 13px !important; }
html:root body .gx-hm-fig :is(b, strong, .gx-hm-v, [class*="val"]) { color: var(--gx-text) !important; font-size: 26px !important; font-weight: 700 !important; letter-spacing: -0.02em !important; font-variant-numeric: tabular-nums !important; }
html:root body .gx-hm-note { font-size: 13.5px !important; color: var(--gx-text-secondary) !important; }
html:root body .gx-hm-acts { display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
html:root body .gx-hm-subj { border-top: 1px solid var(--gx-border) !important; padding-top: 16px !important; }
html:root body .gx-hm-subj-h { font-size: 13px !important; color: var(--gx-text-muted) !important; }
html:root body #accueil-carte a.gx-hm-s-a {
  display: inline-flex !important; align-items: center !important; gap: 8px !important; height: 34px !important; padding: 0 12px !important; border-radius: 10px !important;
  border: 1px solid var(--gx-border) !important; background: var(--gx-surface) !important; color: var(--gx-text-secondary) !important; font-weight: 600 !important; font-size: 14px !important;
}
html:root body #accueil-carte a.gx-hm-s-a:hover { border-color: var(--gx-border-strong) !important; color: var(--gx-text) !important; }
/* map card */
html:root body .gx-hm-mapbox, html:root body .gx-hm-mapwrap, html:root body #gx-worldmap { border-radius: 10px !important; background: transparent !important; }
html:root body .gx-hm-cap { font-size: 13px !important; color: var(--gx-text-muted) !important; padding: 10px 4px 14px !important; }
html:root body .gx-hm-seg, html:root body .gx-hm-bar .gx-hm-seg { display: inline-flex !important; padding: 3px !important; gap: 2px !important; background: var(--gx-surface-subtle) !important; border-radius: 10px !important; }
html:root body .gx-hm-seg .gx-home-view-btn { height: 32px !important; padding: 0 12px !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: var(--gx-text-secondary) !important; font-weight: 500 !important; font-size: 14px !important; box-shadow: none !important; }
html:root body .gx-hm-seg .gx-home-view-btn.is-on { background: var(--gx-surface) !important; color: var(--gx-text) !important; box-shadow: 0 1px 2px rgba(17,19,24,.08), 0 0 0 1px var(--gx-border) !important; }
html:root body .gx-hm-zoom button { width: 32px !important; height: 32px !important; border-radius: 8px !important; border: 1px solid var(--gx-border) !important; background: var(--gx-surface) !important; box-shadow: none !important; }
/* below the fold */
html:root body .gx-home-cta-icon { background: var(--gx-surface-subtle) !important; color: var(--gx-text-secondary) !important; box-shadow: none !important; border-radius: 10px !important; width: 40px !important; height: 40px !important; }
html:root body main .gx-home-primary-grid>:nth-child(n) .gx-home-cta { border-top: 1px solid var(--gx-border) !important; }
html:root body main .gx-home-primary-grid>:nth-child(n) .gx-home-cta-icon { background: var(--gx-surface-subtle) !important; color: var(--gx-text-secondary) !important; box-shadow: none !important; }
html:root body .gx-home-cta-title, html:root body .gx-home-cta-title * { font-size: 18px !important; font-weight: 700 !important; }

/* ==========================================================================
   CITY · the detail app: module tabs, then one toolbar
   ========================================================================== */
html:root body #gx-stack-app#gx-stack-app { max-width: 1240px !important; margin: 0 auto !important; padding: 0 24px !important; background: none !important; }
html:root body #gx-stack-app#gx-stack-app .gx-header { padding: 28px 0 20px !important; display: flex !important; flex-wrap: wrap !important; justify-content: space-between !important; align-items: flex-end !important; gap: 16px !important; background: none !important; border: 0 !important; }
html:root body #gx-stack-app#gx-stack-app .gx-header > div:not(.gx26-id):not(.gx-place) { display: none !important; }
html:root body #gx-stack-app#gx-stack-app .gx26-id { min-width: 0; }
html:root body #gx-stack-app#gx-stack-app .gx26-city { margin: 0 !important; font-size: clamp(32px, 4.4vw, 48px) !important; font-weight: 700 !important; letter-spacing: -0.03em !important; line-height: 1.1 !important; color: var(--gx-text) !important; }
html:root body #gx-stack-app#gx-stack-app .gx26-who { margin: 8px 0 0 !important; display: flex !important; flex-wrap: wrap !important; gap: 4px 14px !important; }
html:root body #gx-stack-app#gx-stack-app .gx26-who span { font-size: 15px !important; color: var(--gx-text-secondary) !important; font-variant-numeric: tabular-nums; }
html:root body #gx-stack-app #gx-place {
  height: 38px !important; min-width: 200px; padding: 0 34px 0 12px !important; border-radius: 10px !important; border: 1px solid var(--gx-border-strong) !important;
  background-color: var(--gx-surface) !important; color: var(--gx-text) !important; font-weight: 600 !important; font-size: 15px !important; box-shadow: none !important;
}
html:root body .gx-place label { font-size: 13px !important; color: var(--gx-text-muted) !important; }
/* row 1: module tabs, compact, coloured dot */
html:root body #gx-stack-app #gx-module-navigation {
  display: flex !important; flex-wrap: wrap !important; gap: 6px !important; padding: 0 !important; margin: 0 0 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important;
}
html:root body #gx-stack-app #gx-module-navigation > button {
  --c: var(--gx26-fin); flex: none !important; width: auto !important; display: inline-flex !important; align-items: center !important; gap: 8px !important;
  height: 40px !important; padding: 0 16px !important; border-radius: 10px !important; border: 1px solid var(--gx-border) !important;
  background: var(--gx-surface) !important; color: var(--gx-text-secondary) !important; font-weight: 600 !important; font-size: 15px !important; box-shadow: none !important;
}
html:root body #gx-stack-app #gx-module-navigation > button:nth-of-type(2) { --c: var(--gx26-assets); }
html:root body #gx-stack-app #gx-module-navigation > button:nth-of-type(3) { --c: var(--gx26-tax); }
html:root body #gx-stack-app #gx-module-navigation > button:nth-of-type(4) { --c: #0d9488; }
html:root body #gx-stack-app #gx-module-navigation > button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
html:root body #gx-stack-app #gx-module-navigation > button:hover { border-color: var(--gx-border-strong) !important; color: var(--gx-text) !important; }
html:root body #gx-stack-app #gx-module-navigation > button:is([aria-pressed="true"],[aria-current="page"],[aria-selected="true"],.is-on,.active) {
  background: var(--c) !important; border-color: var(--c) !important; color: #fff !important;
}
html:root body #gx-stack-app #gx-module-navigation > button:is([aria-pressed="true"],[aria-current="page"],[aria-selected="true"],.is-on,.active)::before { background: #fff; }
html:root body #gx-stack-app #gx-module-navigation > button:nth-of-type(1):is([aria-pressed="true"],[aria-current="page"],[aria-selected="true"],.is-on,.active) { color: #2a1200 !important; }
html:root body #gx-stack-app #gx-module-navigation > button:nth-of-type(1):is([aria-pressed="true"],[aria-current="page"],[aria-selected="true"],.is-on,.active)::before { background: #2a1200; }
html:root body #gx-stack-app #gx-module-navigation .gx-nav-rail { display: none !important; }
/* row 2: one toolbar = governments · view · unit */
html:root body #gx-stack-app #gx-page-controls {
  display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 10px 20px !important;
  padding: 12px 0 !important; margin: 14px 0 0 !important; border-bottom: 1px solid var(--gx-border) !important;
  background: none !important; border-radius: 0 !important; box-shadow: none !important;
}
html:root body #gx-stack-app #gx-page-controls :is(#gx-scope, #gx-scope-block, #gx-views, #gx-units) { container-type: normal !important; }
html:root body #gx-stack-app #gx-page-controls > #gx-scope-block { flex: 0 0 auto !important; display: flex !important; align-items: center !important; gap: 8px !important; margin: 0 !important; padding: 0 !important; }
html:root body #gx-stack-app #gx-page-controls .gx-scope-label { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
html:root body #gx-stack-app #gx-page-controls > #gx-module-toolbar { display: contents !important; }
html:root body #gx-stack-app #gx-page-controls #gx-category-nav { display: none !important; }
html:root body #gx-stack-app #gx-page-controls #gx-units { margin-left: auto !important; display: flex !important; align-items: center !important; gap: 8px !important; }
html:root body #gx-stack-app #gx-page-controls #gx-units > span { display: none !important; }
html:root body #gx-stack-app #gx-page-controls > :is(#gx-context, #gx-updated) { flex: 1 1 100% !important; margin: 0 !important; font-size: 13px !important; color: var(--gx-text-muted) !important; }
html:root body #gx-stack-app #gx-page-controls #gx-updated a { color: var(--gx-text-muted) !important; text-decoration: underline !important; text-underline-offset: 3px; font-size: 13px !important; }
/* segmented controls */
html:root body #gx-stack-app #gx-scope .gx-scope-picker, html:root body #gx-stack-app#gx-stack-app .gx-button-group, html:root body #gx-stack-app #gx-units .gx-button-group {
  display: inline-flex !important; flex-wrap: nowrap !important; flex: none; align-items: center !important; gap: 2px !important; padding: 3px !important;
  background: var(--gx-surface-subtle) !important; border: 0 !important; border-radius: 10px !important; box-shadow: none !important; width: auto !important;
}
html:root body #gx-stack-app #gx-scope .gx-levels { display: contents !important; }
html:root body #gx-stack-app#gx-stack-app :is(.gx-stack-button, .gx-level-button, .gx-button-group > button) {
  position: relative !important; flex: none !important; width: auto !important; min-width: 0 !important; display: inline-flex !important; align-items: center !important; gap: 6px !important;
  height: 32px !important; min-height: 32px !important; padding: 0 12px !important; border: 0 !important; border-radius: 8px !important;
  background: transparent !important; color: var(--gx-text-secondary) !important; font-weight: 500 !important; font-size: 14px !important;
  box-shadow: none !important; white-space: nowrap !important; overflow: visible !important;
}
html:root body #gx-stack-app#gx-stack-app :is(.gx-stack-button, .gx-level-button, .gx-button-group > button) * { font-size: 14px !important; font-weight: inherit !important; color: inherit !important; }
html:root body #gx-stack-app#gx-stack-app :is(.gx-stack-button, .gx-level-button, .gx-button-group > button):hover { color: var(--gx-text) !important; }
html:root body #gx-stack-app#gx-stack-app :is(.gx-stack-button, .gx-level-button, .gx-button-group > button)[aria-pressed="true"] {
  background: var(--gx-surface) !important; color: var(--gx-text) !important; box-shadow: 0 1px 2px rgba(17,19,24,.08), 0 0 0 1px var(--gx-border) !important;
}
html:root body #gx-stack-app#gx-stack-app .gx-stack-button .gx-scope-flags { display: none !important; }
/* government picker: the jurisdiction's name over its level ("Canada / Federal"); Gov Stack carries the GovXRay X */
html:root body #gx-stack-app#gx-stack-app #gx-scope :is(.gx-stack-button, .gx-level-button) { height: auto !important; min-height: 46px !important; padding: 6px 14px 6px 12px !important; gap: 9px !important; text-align: left !important; }
html:root body #gx-stack-app#gx-stack-app #gx-scope .gx-lv { display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; line-height: 1.15 !important; }
html:root body #gx-stack-app#gx-stack-app #gx-scope .gx-lv .gx-lv-name { font-size: 14px !important; font-weight: 600 !important; color: inherit !important; }
html:root body #gx-stack-app#gx-stack-app #gx-scope .gx-lv .gx-lv-type { font-size: 12px !important; font-weight: 450 !important; color: var(--gx-text-muted) !important; }
html:root body #gx-stack-app#gx-stack-app #gx-scope .gx-stack-button .gx-stack-x { display: inline-block !important; width: auto !important; height: auto !important; font-size: 22px !important; font-weight: 800 !important; line-height: 1 !important; color: var(--gx26-x) !important; background: none !important; margin: 0 !important; letter-spacing: 0 !important; }
html:root body #gx-stack-app#gx-stack-app #gx-scope .gx-stack-button:not([aria-pressed="true"]) .gx-stack-x { opacity: .85; }
html:root body #gx-stack-app#gx-stack-app #gx-scope .gx-scope-picker:has(> .gx-scope-stage) { display: block !important; width: 100% !important; background: none !important; padding: 0 !important; overflow: visible !important; }
html:root body #gx-stack-app#gx-stack-app #gx-scope .gx-scope-stage { display: block !important; width: 100% !important; }
html:root body #gx-stack-app#gx-stack-app #gx-scope .gx-scope-stage > summary { display: flex !important; align-items: center !important; gap: 10px !important; min-height: 48px !important; padding: 6px 12px !important; border-radius: 10px !important; background: var(--gx-surface) !important; box-shadow: 0 0 0 1px var(--gx-border) !important; list-style: none !important; }
html:root body #gx-stack-app#gx-stack-app #gx-scope .gx-scope-stage > summary::-webkit-details-marker { display: none; }
html:root body #gx-stack-app#gx-stack-app #gx-scope .gx-scope-stage > summary::before { display: none !important; content: none !important; }
html:root body #gx-stack-app#gx-stack-app #gx-scope .gx-scope-stage > summary::after { content: "\f078"; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; font-size: 12px !important; margin-left: auto !important; color: var(--gx-text-muted) !important; }
html:root body #gx-stack-app#gx-stack-app #gx-scope .gx-scope-stage[open] > summary::after { content: "\f077"; }
html:root body #gx-stack-app#gx-stack-app #gx-scope .gx-scope-stage > summary .gx-stack-x { display: inline-block !important; font-size: 22px !important; font-weight: 800 !important; line-height: 1 !important; color: var(--gx26-x) !important; background: none !important; margin: 0 !important; }
html:root body #gx-stack-app#gx-stack-app #gx-scope .gx-scope-stage[open] { display: flex !important; flex-direction: column !important; gap: 4px !important; }
html:root body #gx-stack-app#gx-stack-app #gx-scope .gx-scope-stage[open] :is(.gx-stack-button, .gx-level-button) { width: 100% !important; justify-content: flex-start !important; }
html:root body #gx-stack-app#gx-stack-app #gx-scope img.gx-scope-flag { width: 20px !important; height: 15px !important; object-fit: cover !important; border-radius: 2px !important; box-shadow: 0 0 0 1px var(--gx-border) !important; flex: none !important; margin: 0 !important; }
html:root body #gx-stack-app#gx-stack-app .gx-level-button img.gx-scope-flag { margin: 0 !important; }
html:root body #gx-stack-app#gx-stack-app .gx-nav-rail { display: none !important; }
/* view tabs as text tabs */
html:root body #gx-stack-app #gx-views.gx-button-group { background: none !important; padding: 0 !important; }
html:root body #gx-stack-app #gx-views.gx-button-group > button { height: 36px !important; font-size: 15px !important; }
html:root body #gx-stack-app #gx-views.gx-button-group > button * { font-size: 15px !important; }
html:root body #gx-stack-app #gx-views.gx-button-group > button:hover { background: var(--gx-surface-subtle) !important; }
html:root body #gx-stack-app #gx-views.gx-button-group > button[aria-pressed="true"] { background: var(--gx-surface-subtle) !important; box-shadow: none !important; font-weight: 600 !important; }

/* ---------- the card ---------- */
html:root body #gx-stack-app#gx-stack-app > main { margin-top: 20px !important; background: var(--gx-surface) !important; border: 1px solid var(--gx-border) !important; border-radius: 12px !important; box-shadow: var(--gx26-shadow) !important; padding: 0 !important; overflow: hidden; }
html:root body #gx-stack-app#gx-stack-app > main::before { display: none !important; }
html:root body #gx-stack-app #gx-page-heading { display: flex !important; justify-content: space-between !important; gap: 16px !important; align-items: flex-start !important; padding: 22px 24px 0 !important; margin: 0 !important; background: none !important; }
html:root body #gx-stack-app #gx-title { font-size: 20px !important; font-weight: 700 !important; letter-spacing: -0.02em !important; margin: 0 !important; }
html:root body #gx-stack-app #gx-subtitle { margin-top: 4px !important; font-size: 14px !important; color: var(--gx-text-muted) !important; }
html:root body #gx-stack-app :is(#gx-view-tools, #gx-chart-mode, #gx-panel-navigation) { container-type: normal !important; }
html:root body #gx-stack-app #gx-chart-mode { width: auto !important; flex: 0 1 auto !important; }
html:root body #gx-stack-app #gx-view-tools { flex-wrap: wrap !important; display: flex !important; justify-content: space-between !important; align-items: center !important; gap: 12px !important; padding: 14px 24px 0 !important; margin: 0 !important; }
html:root body #gx-stack-app#gx-stack-app :is(.gx-share, .gx-panel-nav > button, .gx-chart-title > button, .gx-more, .gx-xk button, .gx-xk a) {
  height: 34px !important; padding: 0 12px !important; border-radius: 10px !important; border: 1px solid var(--gx-border-strong) !important;
  background: var(--gx-surface) !important; color: var(--gx-text) !important; font-weight: 500 !important; font-size: 13.5px !important; box-shadow: none !important; text-decoration: none !important;
}
html:root body #gx-stack-app#gx-stack-app :is(.gx-share, .gx-panel-nav > button, .gx-chart-title > button, .gx-more, .gx-xk button, .gx-xk a):hover { background: var(--gx-surface-subtle) !important; }
html:root body #gx-stack-app #gx-content { padding: 18px 24px 24px !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
html:root body #gx-stack-app #gx-content .gx-chart-title { display: flex !important; flex-wrap: wrap !important; align-items: flex-start !important; justify-content: space-between !important; gap: 12px 24px !important; }
html:root body #gx-stack-app #gx-content .gx-total, html:root body #gx-stack-app #gx-content .gx-total * { font-size: 40px !important; font-weight: 700 !important; letter-spacing: -0.03em !important; line-height: 1.05 !important; font-variant-numeric: tabular-nums !important; }
html:root body #gx-stack-app #gx-content .gx-total-caption { margin-top: 6px !important; font-size: 14px !important; color: var(--gx-text-muted) !important; }
html:root body #gx-stack-app #gx-content .gx-gdp-highlight, html:root body #gx-stack-app #gx-content .gx-gdp-highlight * { font-size: 13px !important; color: var(--gx-text-muted) !important; }
html:root body #gx-stack-app #gx-content .gx-gdp-highlight strong { color: var(--gx-text) !important; font-weight: 600 !important; font-size: 14px !important; }
html:root body #gx-stack-app #gx-content .gx-stack-bar { height: 28px !important; gap: 2px !important; border-radius: 6px !important; overflow: hidden !important; background: var(--gx26-track) !important; margin-top: 18px !important; }
html:root body #gx-stack-app #gx-content .gx-stack-bar > button { height: 100% !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; min-width: 2px !important; padding: 0 !important; }
html:root body #gx-stack-app #gx-content .gx-bars { display: grid !important; gap: 4px !important; margin-top: 18px !important; }
html:root body #gx-stack-app #gx-content .gx-bar-button {
  display: grid !important; gap: 6px !important; padding: 10px 12px !important; margin: 0 -12px !important; width: calc(100% + 24px) !important;
  border: 0 !important; border-radius: 10px !important; background: none !important; box-shadow: none !important; text-align: left !important; height: auto !important; min-height: 0 !important;
}
html:root body #gx-stack-app #gx-content .gx-bar-button:hover, html:root body #gx-stack-app #gx-content .gx-bar-button[aria-expanded="true"] { background: var(--gx-surface-subtle) !important; }
html:root body #gx-stack-app #gx-content .gx-bar-label { display: flex !important; justify-content: space-between !important; align-items: baseline !important; gap: 16px !important; height: auto !important; min-height: 0 !important; }
html:root body #gx-stack-app #gx-content .gx-bar-label > span, html:root body #gx-stack-app #gx-content .gx-bar-label > span * { font-size: 15px !important; font-weight: 600 !important; color: var(--gx-text) !important; }
html:root body #gx-stack-app #gx-content .gx-bar-label > span small, html:root body #gx-stack-app #gx-content .gx-bar-label > span .gx-quiet { font-size: 13px !important; font-weight: 400 !important; color: var(--gx-text-muted) !important; display: block; margin-top: 2px; }
html:root body #gx-stack-app #gx-content .gx-bar-label > b { font-size: 15px !important; font-weight: 600 !important; white-space: nowrap !important; font-variant-numeric: tabular-nums !important; }
html:root body #gx-stack-app #gx-content .gx-bar-track { height: 12px !important; min-height: 0 !important; border-radius: 6px !important; background: var(--gx26-track) !important; overflow: hidden !important; }
html:root body #gx-stack-app #gx-content .gx-bar-track > span { border-radius: 6px !important; height: 100% !important; }
html:root body #gx-stack-app#gx-stack-app .gx-quiet { font-size: 13.5px !important; color: var(--gx-text-muted) !important; }
html:root body #gx-stack-app #gx-export-slot { padding: 14px 24px !important; margin: 0 !important; border-top: 1px solid var(--gx-border) !important; }
html:root body #gx-stack-app #gx-live { padding: 0 24px 16px !important; font-size: 13px !important; color: var(--gx-text-muted) !important; }
html:root body #gx-stack-app#gx-stack-app > footer { padding: 12px 0 !important; border: 0 !important; background: none !important; }

/* ==========================================================================
   PAGES · one content column, centred like the top bar
   ========================================================================== */
html:root body .gx-main-area > main:not(.gx-home):not(:has(#gx-stack-app)),
html:root body > main:not(.gx-home):not(:has(#gx-stack-app)) {
  max-width: none !important; margin: 0 !important; padding: 0 max(24px, calc((100% - 1240px) / 2)) !important; box-sizing: border-box !important;
}
html:root body .gx-main-area > main:has(#gx-stack-app) { max-width: none !important; margin: 0 !important; padding: 0 !important; }
html:root body main .gx-page-header { border: 0 !important; padding: 36px 0 8px !important; margin: 0 !important; }
html:root body main .gx-page-header h1, html:root body main .gx-page-header h1 * { font-size: clamp(30px, 4.2vw, 46px) !important; font-weight: 700 !important; letter-spacing: -0.03em !important; line-height: 1.1 !important; }
html:root body main :is(.gx-page-lead, .gx-page-header p) { font-size: 16px !important; color: var(--gx-text-secondary) !important; max-width: 62ch; }
html:root body main h2, html:root body main h2 * { letter-spacing: -0.02em !important; }

/* editorial pages (method, about, coverage): neutral tabs and cards, colour stays in the data */
html:root body :is(nav.gx-toc17, .gx-dd-toc, .gx-ab-toc) { background: none !important; border: 0 !important; border-bottom: 1px solid var(--gx-border) !important; box-shadow: none !important; backdrop-filter: none !important; padding: 10px 0 !important; gap: 2px !important; }
html:root body :is(nav.gx-toc17, .gx-dd-toc, .gx-ab-toc) a {
  height: 36px !important; min-height: 36px !important; max-height: 36px !important; display: inline-flex !important; align-items: center !important; padding: 0 12px !important;
  border: 0 !important; border-radius: 8px !important; background: none !important; color: var(--gx-text-secondary) !important; font-weight: 500 !important; font-size: 15px !important; box-shadow: none !important; text-decoration: none !important;
}
html:root body :is(nav.gx-toc17, .gx-dd-toc, .gx-ab-toc) a:hover { background: var(--gx-surface-subtle) !important; color: var(--gx-text) !important; }
html:root body :is(nav.gx-toc17, .gx-dd-toc, .gx-ab-toc) a:is([aria-current], .is-on, .active) { background: var(--gx-surface-subtle) !important; color: var(--gx-text) !important; font-weight: 600 !important; }
html:root body :is(nav.gx-toc17, .gx-dd-toc, .gx-ab-toc) .lbl { font-size: 13px !important; color: var(--gx-text-muted) !important; }
html:root body .gx-ed :is(.gx-ed-sub a, a.gx-ed-next, a.gx-ed-prev) {
  background: var(--gx-surface) !important; border: 1px solid var(--gx-border) !important; color: var(--gx-text-secondary) !important; border-radius: 10px !important; box-shadow: none !important; font-weight: 500 !important;
}
html:root body .gx-ed :is(.gx-ed-sub a, a.gx-ed-next, a.gx-ed-prev):hover { border-color: var(--gx-border-strong) !important; color: var(--gx-text) !important; }
html:root body .gx-ed :is(.gx-ed-calc, .gx-ed-quote, .gx-ed-card, details.gx-ed-more) { background: var(--gx-surface-subtle) !important; box-shadow: none !important; border: 0 !important; border-radius: 10px !important; }
html:root body .gx-ed .gx-ed-calc, html:root body .gx-ed .gx-ed-calc * { color: var(--gx-text) !important; }
html:root body :is(.gx-ab-pill, .gx-when-ok, .gx-when-gap, .gx-cov-pill) { background: var(--gx-surface-subtle) !important; color: var(--gx-text-secondary) !important; box-shadow: none !important; border: 0 !important; }
html:root body .gx-crumb, html:root body .gx-crumb * { font-size: 13.5px !important; color: var(--gx-text-muted) !important; }
html:root body .gx-crumb .cur { color: var(--gx-text) !important; }

/* ==========================================================================
   EDITORIAL · Method, About, Updates (v26.1)
   One reading column beside a sticky topic rail. The rail is the page's
   table of contents; under 1100px it becomes the page's own native select
   (Method, About) or a scrolling row of filters (Updates). No cards around
   prose; cards only around the dated entries of Updates.
   ========================================================================== */
html:root body .gx-ed { --gx-ed-rail: 224px; }
html:root body .gx-ed > .gx-ed-head { padding: 12px 0 28px !important; margin: 0 0 32px !important; border-bottom: 1px solid var(--gx-border) !important; }
html:root body .gx-ed > .gx-ed-head .gx-ed-eyebrow { margin: 0 0 10px !important; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .09em !important; text-transform: uppercase !important; color: var(--gx26-x-ink) !important; }
html:root body .gx-ed > .gx-ed-head h1 { margin: 0 !important; font-size: clamp(34px, 4.6vw, 52px) !important; line-height: 1.04 !important; letter-spacing: -0.035em !important; font-weight: 700 !important; color: var(--gx-text) !important; }
html:root body .gx-ed > .gx-ed-head .gx-ed-lead { margin: 14px 0 0 !important; max-width: 60ch !important; font-size: 18px !important; line-height: 1.55 !important; color: var(--gx-text-secondary) !important; }
html:root body .gx-ed > .gx-ed-head .gx-up-version { margin: 12px 0 0 !important; font-size: 14px !important; color: var(--gx-text-muted) !important; }
html:root body .gx-ed > .gx-ed-head .gx-up-version b { color: var(--gx-text-secondary) !important; font-weight: 600 !important; }

/* the reading column */
html:root body .gx-ed section.gx-ed-topic { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: none !important; padding: 0 !important; margin: 0 !important; }
html:root body .gx-ed section.gx-ed-topic > h2 { margin: 0 !important; font-size: 30px !important; line-height: 1.15 !important; letter-spacing: -0.025em !important; font-weight: 700 !important; color: var(--gx-text) !important; }
html:root body .gx-ed section.gx-ed-topic > .gx-ed-brief { margin: 12px 0 0 !important; max-width: 62ch !important; font-size: 17.5px !important; line-height: 1.6 !important; color: var(--gx-text-secondary) !important; }
html:root body .gx-ed section.gx-ed-topic :is(p, li):not(.gx-ed-brief) { max-width: 68ch; font-size: 16px; line-height: 1.7; color: var(--gx-text); }
html:root body .gx-ed section.gx-ed-topic > h3 { margin: 40px 0 10px !important; font-size: 19px !important; font-weight: 650 !important; letter-spacing: -0.01em !important; color: var(--gx-text) !important; }
/* "in this topic": plain anchors, not buttons */
html:root body .gx-ed section.gx-ed-topic > nav { margin: 22px 0 8px !important; padding: 12px 0 !important; border-top: 1px solid var(--gx-border) !important; border-bottom: 1px solid var(--gx-border) !important; }
html:root body .gx-ed ul.gx-ed-sub { display: flex !important; flex-wrap: wrap !important; gap: 6px 22px !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
html:root body .gx-ed ul.gx-ed-sub li { margin: 0 !important; padding: 0 !important; }
html:root body .gx-ed ul.gx-ed-sub a { display: inline !important; height: auto !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; font-size: 14.5px !important; font-weight: 500 !important; color: var(--gx26-x-ink) !important; text-decoration: none !important; }
html:root body .gx-ed ul.gx-ed-sub a:hover { text-decoration: underline !important; text-underline-offset: 3px; }
/* worked example: the calculation reads as a calculation */
html:root body .gx-ed .gx-ed-calc { margin: 12px 0 18px !important; padding: 16px 18px !important; border-radius: 10px !important; background: var(--gx-surface-subtle) !important; border-left: 3px solid var(--gx26-x-btn) !important; font-family: var(--gx26-mono) !important; font-size: 14.5px !important; line-height: 1.6 !important; }
html:root body .gx-ed .gx-ed-calc * { font-family: var(--gx26-mono) !important; }
html:root body .gx-ed .gx-ed-calc small, html:root body .gx-ed .gx-ed-calc small * { display: block; margin-top: 6px; font-family: var(--gx-type) !important; font-size: 12.5px !important; color: var(--gx-text-muted) !important; }
/* previous / next as two quiet cards */
html:root body .gx-ed .gx-ed-pn { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 12px !important; margin: 48px 0 0 !important; padding: 0 !important; border: 0 !important; }
html:root body .gx-ed .gx-ed-pn a { grid-column: auto; display: flex !important; flex-direction: column !important; align-items: flex-start !important; justify-content: center !important; gap: 2px !important; height: auto !important; min-height: 68px !important; padding: 12px 18px !important; border: 1px solid var(--gx-border) !important; border-radius: 12px !important; background: var(--gx-surface) !important; color: var(--gx-text) !important; font-size: 16px !important; font-weight: 600 !important; text-decoration: none !important; box-shadow: none !important; }
html:root body .gx-ed .gx-ed-pn a.gx-ed-next { grid-column: 2; align-items: flex-end !important; text-align: right; }
html:root body .gx-ed .gx-ed-pn a:hover { border-color: var(--gx-border-strong) !important; background: var(--gx-surface) !important; }
html:root body .gx-ed .gx-ed-pn a small { font-size: 12.5px !important; font-weight: 500 !important; color: var(--gx-text-muted) !important; }
html:root body .gx-ed > .gx-ed-foot { margin: 56px 0 0 !important; padding-top: 16px !important; border-top: 1px solid var(--gx-border) !important; font-size: 13.5px !important; color: var(--gx-text-muted) !important; max-width: none !important; }

/* the topic rail */
html:root body .gx-ed > nav.gx-ed-nav .lbl { font-size: 12px !important; font-weight: 600 !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--gx-text-muted) !important; }
html:root body .gx-ed > .gx-ed-sel { display: none !important; }
@media (min-width: 1100px) {
  html:root body .gx-ed:is(.is-js, .gx-up) { display: grid !important; grid-template-columns: var(--gx-ed-rail) minmax(0, 1fr) !important; column-gap: 64px !important; align-items: start !important; }
  html:root body .gx-ed:is(.is-js, .gx-up) > * { grid-column: 2 !important; min-width: 0; }
  html:root body .gx-ed:is(.is-js, .gx-up) > .gx-ed-head { grid-column: 1 / -1 !important; }
  html:root body .gx-ed:is(.is-js, .gx-up) > nav.gx-ed-nav {
    grid-column: 1 !important; grid-row: 2 / span 60 !important; align-self: start !important; position: sticky !important; top: 84px !important; z-index: 2;
    display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 2px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; counter-reset: gxed;
  }
  html:root body .gx-ed:is(.is-js, .gx-up) > nav.gx-ed-nav .lbl { display: block !important; padding: 0 12px 10px !important; height: auto !important; }
  html:root body .gx-ed:is(.is-js, .gx-up) > nav.gx-ed-nav a {
    display: flex !important; align-items: baseline !important; justify-content: flex-start !important; gap: 10px !important; width: 100% !important; margin: 0 !important; height: auto !important; min-height: 40px !important; max-height: none !important; padding: 9px 12px !important; text-align: left !important;
    white-space: normal !important; line-height: 1.35 !important; font-size: 15px !important; font-weight: 500 !important; border-radius: 8px !important; color: var(--gx-text-secondary) !important;
  }
  html:root body .gx-ed.is-js > nav.gx-ed-nav a::before { counter-increment: gxed; content: counter(gxed, decimal-leading-zero); flex: none; width: 20px; font-family: var(--gx26-mono); font-size: 12px; font-weight: 500; color: var(--gx-text-muted); }
  html:root body .gx-ed:is(.is-js, .gx-up) > nav.gx-ed-nav a[aria-current] { background: var(--gx-surface) !important; color: var(--gx-text) !important; font-weight: 600 !important; box-shadow: inset 3px 0 0 var(--gx26-x-btn), 0 0 0 1px var(--gx-border) !important; }
  html:root body .gx-ed:is(.is-js, .gx-up) > nav.gx-ed-nav a[aria-current]::before { color: var(--gx26-x-ink); }
  html:root body .gx-ed.gx-up > nav.gx-ed-nav a .gx-up-n { margin-left: auto !important; font-family: var(--gx26-mono) !important; font-size: 12.5px !important; opacity: 1 !important; color: var(--gx-text-muted) !important; }
  html:root body .gx-ed.is-js :is(.gx-ed-topic, .gx-ed-topic [id]) { scroll-margin-top: 84px !important; }
}
@media (max-width: 1099.98px) {
  /* Method and About: the topics become the page's native select, pinned under the top bar */
  html:root body .gx-ed.is-js:has(> .gx-ed-sel) > nav.gx-ed-nav { display: none !important; }
  html:root body .gx-ed.is-js > .gx-ed-sel { display: flex !important; align-items: center !important; gap: 12px !important; position: sticky !important; top: 60px !important; z-index: 20 !important; margin: -12px 0 24px !important; padding: 10px 0 !important; background: var(--gx-page) !important; border-bottom: 1px solid var(--gx-border) !important; }
  html:root body .gx-ed.is-js > .gx-ed-sel span { font-size: 12px !important; font-weight: 600 !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--gx-text-muted) !important; }
  html:root body .gx-ed.is-js > .gx-ed-sel select { flex: 1 1 auto !important; min-height: 44px !important; padding: 0 14px !important; border: 1px solid var(--gx-border-strong) !important; border-radius: 10px !important; background: var(--gx-surface) !important; color: var(--gx-text) !important; font-size: 16px !important; font-weight: 600 !important; }
  html:root body .gx-ed.is-js :is(.gx-ed-topic, .gx-ed-topic [id]) { scroll-margin-top: 136px !important; }
  html:root body .gx-ed.gx-up > nav.gx-ed-nav { flex-wrap: nowrap !important; overflow-x: auto !important; scrollbar-width: none; }
}
@media (max-width: 560px) {
  html:root body .gx-ed .gx-ed-pn { grid-template-columns: 1fr !important; }
  html:root body .gx-ed .gx-ed-pn a.gx-ed-next { grid-column: 1; }
  html:root body .gx-ed section.gx-ed-topic > h2 { font-size: 26px !important; }
}

/* Updates: a dated log. Kinds are words, not colours. */
html:root body .gx-up .gx-up-day > h2 { display: flex !important; align-items: center !important; gap: 14px !important; margin: 0 0 14px !important; padding-top: 8px; font-size: 14px !important; font-weight: 600 !important; letter-spacing: .02em !important; color: var(--gx-text-secondary) !important; }
html:root body .gx-up .gx-up-day > h2::after { content: ""; flex: 1; height: 1px; background: var(--gx-border); }
html:root body .gx-up .gx-up-day + .gx-up-day { margin-top: 36px !important; }
html:root body .gx-up article.gx-up-entry { margin: 0 0 12px !important; padding: 22px 26px !important; border: 1px solid var(--gx-border) !important; border-radius: 12px !important; background: var(--gx-surface) !important; box-shadow: none !important; }
html:root body .gx-up article.gx-up-entry:target { box-shadow: 0 0 0 2px var(--gx26-x-btn) !important; }
html:root body .gx-up .gx-up-kicker { gap: 12px !important; }
html:root body .gx-up .gx-up-type { min-height: 0 !important; padding: 0 !important; background: none !important; border-radius: 0 !important; font-size: 12px !important; font-weight: 700 !important; letter-spacing: .08em !important; text-transform: uppercase !important; color: var(--gx-text) !important; }
html:root body .gx-up .gx-up-type::before { display: none !important; }
html:root body .gx-up .gx-up-kicker time { font-size: 13px !important; color: var(--gx-text-muted) !important; font-variant-numeric: tabular-nums; }
html:root body .gx-up .gx-up-entry h3 { margin: 8px 0 6px !important; font-size: 20px !important; font-weight: 650 !important; line-height: 1.3 !important; letter-spacing: -0.015em !important; }
html:root body .gx-up .gx-up-entry .gx-ed-brief { margin: 0 !important; max-width: 68ch !important; font-size: 15.5px !important; line-height: 1.6 !important; color: var(--gx-text-secondary) !important; }
html:root body .gx-up .gx-up-tbl { margin: 16px 0 0 !important; border: 1px solid var(--gx-border) !important; border-radius: 10px !important; }
html:root body .gx-up .gx-up-chg caption { font-size: 12px !important; font-weight: 600 !important; letter-spacing: .06em !important; text-transform: uppercase !important; color: var(--gx-text-muted) !important; }
html:root body .gx-up .gx-up-facts { display: grid !important; grid-template-columns: 150px minmax(0, 1fr) !important; gap: 8px 16px !important; margin: 18px 0 0 !important; padding: 14px 0 0 !important; border-top: 1px solid var(--gx-border) !important; }
html:root body .gx-up .gx-up-facts :is(dt, dd) { margin: 0 !important; font-size: 14px !important; line-height: 1.5 !important; }
html:root body .gx-up .gx-up-facts dt { font-weight: 500 !important; color: var(--gx-text-muted) !important; }
html:root body main .gx-up :is(.gx-up-links, .gx-up-chips) a { min-height: 0 !important; padding: 0 !important; border-radius: 0 !important; background: none !important; font-size: 14px !important; font-weight: 600 !important; color: var(--gx26-x-ink) !important; text-decoration: none !important; }
html:root body main .gx-up :is(.gx-up-links, .gx-up-chips) a:hover { text-decoration: underline !important; text-underline-offset: 3px; }
html:root body main .gx-up :is(.gx-up-links, .gx-up-chips) { gap: 4px 16px !important; }
html:root body main .gx-up .gx-up-act { display: flex !important; flex-wrap: wrap !important; gap: 4px 20px !important; margin: 16px 0 0 !important; }
html:root body main .gx-up .gx-up-act a { display: inline-flex !important; align-items: center !important; gap: 6px !important; min-height: 32px !important; height: auto !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; font-size: 13.5px !important; font-weight: 500 !important; color: var(--gx-text-secondary) !important; text-decoration: none !important; }
html:root body main .gx-up .gx-up-act a:hover { color: var(--gx-text) !important; text-decoration: underline !important; text-underline-offset: 3px; }
html:root body main .gx-up .gx-up-act a.is-soft::before { content: "\f024"; font-family: "Font Awesome 6 Free"; font-weight: 400; font-size: 12px; }
html:root body main .gx-up .gx-up-act a.gx-up-perma::before { content: "\f0c1"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 12px; }
html:root body .gx-up .gx-up-note { border-radius: 10px !important; background: var(--gx-surface-subtle) !important; }
@media (max-width: 640px) {
  html:root body .gx-up article.gx-up-entry { padding: 18px 18px !important; }
  html:root body .gx-up .gx-up-facts { grid-template-columns: 1fr !important; gap: 2px 0 !important; }
  html:root body .gx-up .gx-up-facts dd { margin-bottom: 8px !important; }
}

/* ==========================================================================
   COMPARE
   ========================================================================== */
html:root body .gx-cmp-controls { border: 0 !important; padding: 8px 0 0 !important; margin: 0 !important; background: none !important; }
html:root body #gx-cmp-sujet.gx-cmp-sujet { gap: 6px !important; margin: 16px 0 !important; }
html:root body #gx-cmp-sujet .gx-cmp-s {
  --c: var(--gx26-fin); display: inline-flex !important; align-items: center !important; gap: 8px !important;
  height: 40px !important; max-height: 40px !important; padding: 0 16px !important; border-radius: 10px !important; border: 1px solid var(--gx-border) !important;
  background: var(--gx-surface) !important; color: var(--gx-text-secondary) !important; font-weight: 600 !important; font-size: 15px !important; box-shadow: none !important;
}
html:root body #gx-cmp-sujet .gx-cmp-s[data-s="bilan"] { --c: var(--gx26-assets); }
html:root body #gx-cmp-sujet .gx-cmp-s[data-s="fiscalite"] { --c: var(--gx26-tax); }
html:root body #gx-cmp-sujet .gx-cmp-s.gx-cmp-s-tool, html:root body #gx-cmp-sujet .gx-cmp-s[data-s="cofog"] { --c: #0d9488; }
html:root body #gx-cmp-sujet .gx-cmp-s[data-s="temps"] { --c: #0d9488; }
html:root body #gx-cmp-sujet .gx-cmp-s::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
html:root body #gx-cmp-sujet .gx-cmp-s:hover { border-color: var(--gx-border-strong) !important; color: var(--gx-text) !important; }
html:root body #gx-cmp-sujet .gx-cmp-s:is(.is-on, [aria-pressed="true"]) { background: var(--c) !important; border-color: var(--c) !important; color: #fff !important; }
html:root body #gx-cmp-sujet .gx-cmp-s:is(.is-on, [aria-pressed="true"])::before { background: #fff; }
html:root body #gx-cmp-sujet .gx-cmp-s[data-s="flux"]:is(.is-on, [aria-pressed="true"]) { color: #2a1200 !important; }
html:root body #gx-cmp-sujet .gx-cmp-s[data-s="flux"]:is(.is-on, [aria-pressed="true"])::before { background: #2a1200; }
html:root body .gx-cmp-addc { height: 40px !important; }
/* the gap, said once in plain text */
html:root body .gx-cmp-diff { border: 0 !important; padding: 8px 0 !important; background: none !important; box-shadow: none !important; }
html:root body .gx-cmp-diff > p:not(.gx-cmp-diff-k):not(.gx-cmp-diff-u), html:root body .gx-cmp-diff > p:not(.gx-cmp-diff-k):not(.gx-cmp-diff-u) * { font-size: 20px !important; line-height: 1.4 !important; font-weight: 600 !important; letter-spacing: -0.01em !important; color: var(--gx-text) !important; max-width: 60ch; }
html:root body .gx-cmp-diff :is(.gx-cmp-diff-k, .gx-cmp-diff-u), html:root body .gx-cmp-period { font-size: 13.5px !important; color: var(--gx-text-muted) !important; }
/* city lanes and legend */
html:root body .gx-cmp-city { background: var(--gx-surface) !important; border: 1px solid var(--gx-border) !important; border-radius: 12px !important; box-shadow: var(--gx26-shadow) !important; padding: 16px 18px 14px !important; }
html:root body .gx-cmp-legend { background: var(--gx-surface) !important; border: 1px solid var(--gx-border) !important; border-radius: 12px !important; box-shadow: none !important; }
html:root body .gx-cmp-legend .gx-lgi, html:root body .gx-lgi { background: transparent !important; border: 0 !important; border-radius: 6px !important; padding: 2px 6px !important; min-height: 26px !important; box-shadow: none !important; color: var(--gx-text-secondary) !important; }
html:root body .gx-lgi:hover, html:root body .gx-lgi.gx-lgon { background: var(--gx-surface-subtle) !important; color: var(--gx-text) !important; }
html:root body .gx-lgi i { width: 10px !important; height: 10px !important; border-radius: 3px !important; flex: 0 0 10px !important; }
/* the ledger: no tinted rows, sections as plain group headings */
html:root body .gx-cmp-table :is(tr.gx-cmp-spend, tr.gx-cmp-rev, tr.gx-cmp-seg, tr.gx-cmp-gaprow, tr.gx-pibrow, tr.gx-cmp-section, tr.gx-cmp-section-spend, tr.gx-cmp-section-rev, tr.gx-cmp-section-gap, tr.gx-cmp-section-mun) td { background: none !important; }
html:root body .gx-cmp-table tr[class*="gx-cmp-section"] td { color: var(--gx-text) !important; font-size: 14px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; border-top: 0 !important; border-bottom: 1px solid var(--gx-border-strong) !important; padding-top: 22px !important; }
html:root body table.gx-bs td { border-bottom-color: var(--gx-border) !important; color: var(--gx-text) !important; }
html:root body table.gx-bs th { color: var(--gx-text-muted) !important; border-bottom-color: var(--gx-border-strong) !important; background: var(--gx-page) !important; }
html:root body table.gx-bs tr:hover td { background: var(--gx-surface-subtle) !important; }
html:root body .gx-cmp-table tr:is(.gx-cmp-total, .gx-cmp-gap-total) td { border-top: 1px solid var(--gx-text) !important; font-weight: 600 !important; }

/* ---------- tables ---------- */
html:root body #gx-stack-app table, html:root body main table { border-collapse: collapse !important; }
html:root body #gx-stack-app table :is(th, td), html:root body main table :is(th, td) { border-color: var(--gx-border) !important; }
html:root body #gx-stack-app table th, html:root body main table th { font-weight: 500 !important; font-size: 13px !important; color: var(--gx-text-muted) !important; background: none !important; }

/* ---------- disclosures ---------- */
html:root body main details > summary { color: var(--gx-text) !important; font-weight: 600 !important; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  html:root body #accueil-carte.gx-hm { grid-template-columns: minmax(0, 1fr) !important; }
  html:root body #accueil-carte .gx-hm-hl, html:root body #accueil-carte .gx-hm-stage { grid-column: 1 !important; grid-row: auto !important; }
}
@media (max-width: 900px) {
  html:root body header nav.gx-sections-sticky { display: none !important; }
  html:root body #omnibar-trigger { width: 38px !important; min-width: 38px !important; padding: 0 !important; justify-content: center !important; }
  html:root body #omnibar-trigger span { display: none !important; }
}
@media (max-width: 760px) {
  html:root body > header, html:root body header:has(> nav.gx-topbar-v2) { gap: 8px !important; padding: 0 16px !important; }
  html:root body main.gx-home, html:root body #gx-stack-app { padding: 0 16px !important; }
  html:root body #gx-page-heading, html:root body #gx-view-tools, html:root body #gx-content, html:root body #gx-export-slot { padding-left: 16px !important; padding-right: 16px !important; }
  html:root body #gx-content .gx-total, html:root body #gx-content .gx-total * { font-size: 32px !important; }
  html:root body #accueil-carte .gx-hm-fig :is(b, strong, .gx-hm-v, [class*="val"]) { font-size: 20px !important; }
  html:root body #accueil-carte .gx-hm-hl { padding: 18px !important; }
  html:root body #gx-stack-app #gx-page-controls #gx-units { margin-left: 0 !important; }
  html:root body #gx-stack-app #gx-page-controls > #gx-scope-block, html:root body #gx-stack-app #gx-page-controls #gx-views { flex: 1 1 100% !important; width: 100% !important; min-width: 0 !important; }
  html:root body #gx-stack-app #gx-scope .gx-scope-picker, html:root body #gx-stack-app#gx-stack-app #gx-views.gx-button-group { max-width: 100% !important; overflow-x: auto !important; scrollbar-width: none; }
  html:root body #gx-stack-app #gx-scope { width: 100% !important; min-width: 0 !important; }
  html:root body #gx-stack-app#gx-stack-app .gx-header { align-items: flex-start !important; }
  html:root body #gx-stack-app#gx-stack-app #gx-module-navigation { flex-wrap: nowrap !important; overflow-x: auto !important; scrollbar-width: none; margin-inline: -16px !important; padding-inline: 16px !important; }
  html:root body #gx-stack-app#gx-stack-app #gx-module-navigation > button { flex: none !important; height: 38px !important; padding: 0 13px !important; font-size: 14px !important; }
}

/* ---------- v27 · the top-right tools: two capsules, one height, the site's colours ----------
   Currency, theme, notebook and link sit in one capsule; the language in a second one, drawn the same.
   Native menus follow the page's theme (color-scheme), so a dark page never opens a white list.
   Selectors carry three ids: gx26's generic button rule carries two. */
html:root body.light-theme { color-scheme: light; }
html:root body:not(.light-theme) { color-scheme: dark; }
html:root body header .gx-tb-right:not(#gx-a):not(#gx-b):not(#gx-c) {
  gap: 2px !important; height: 42px !important; padding: 3px !important; box-sizing: border-box !important;
  border: 1px solid var(--gx-border) !important; border-radius: 12px !important; background: var(--gx-surface) !important;
}
html:root body header .gx-tb-right > div[style*="border-radius"]:not(#gx-a):not(#gx-b):not(#gx-c) {
  height: 34px !important; margin: 0 2px 0 0 !important; padding: 0 8px 0 10px !important; border-radius: 9px !important;
  background: transparent !important; border: 0 !important; position: relative !important;
}
html:root body header .gx-tb-right > div[style*="border-radius"]:not(#gx-a):not(#gx-b):not(#gx-c)::after {
  content: "" !important; position: absolute !important; right: -3px !important; top: 8px !important; bottom: 8px !important; width: 1px !important; background: var(--gx-border) !important;
}
html:root body header .gx-tb-right #gx-currency:not(#gx-a):not(#gx-b) {
  height: 34px !important; padding: 0 18px 0 0 !important; border: 0 !important; background-color: transparent !important;
  color: var(--gx-text) !important; font-size: 14px !important; font-weight: 650 !important; font-variant-numeric: tabular-nums !important; cursor: pointer !important;
}
html:root body :is(#theme-toggle-btn, #share-btn, #gx-nb-trigger, #gx-search-open, #gx-menu-open):not(#gx-a):not(#gx-b) {
  width: 34px !important; min-width: 34px !important; height: 34px !important; min-height: 0 !important; max-height: none !important; padding: 0 !important;
  display: inline-grid !important; place-items: center !important; border: 0 !important; border-radius: 9px !important;
  background: transparent !important; box-shadow: none !important; color: var(--gx-text-secondary) !important;
  transition: background-color 150ms ease, color 150ms ease, transform 120ms ease !important;
}
html:root body :is(#theme-toggle-btn, #share-btn, #gx-nb-trigger, #gx-search-open, #gx-menu-open):not(#gx-a):not(#gx-b) :is(i, svg) { font-size: 15px !important; color: inherit !important; }
html:root body :is(#theme-toggle-btn, #share-btn, #gx-nb-trigger, #gx-search-open, #gx-menu-open):active:not(#gx-a):not(#gx-b) { transform: scale(.94) !important; }
html:root body .gx-lang-dd:not(#gx-a):not(#gx-b):not(#gx-c) {
  height: 42px !important; max-width: none !important; width: auto !important; min-width: 0 !important; box-sizing: border-box !important;
  padding: 0 34px 0 14px !important; border: 1px solid var(--gx-border) !important; border-radius: 12px !important;
  background-color: var(--gx-surface) !important; color: var(--gx-text) !important; font-size: 14px !important; font-weight: 650 !important; cursor: pointer !important;
  -webkit-appearance: none !important; appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6672' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 12px center !important; background-size: 14px !important;
  transition: border-color 150ms ease, background-color 150ms ease !important;
}
html:root body header #gx-currency:not(#gx-a):not(#gx-b) {
  -webkit-appearance: none !important; appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f6672' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important; background-position: right 0 center !important; background-size: 13px !important;
}
html:root body :is(.gx-lang-dd, #gx-currency) option { background-color: var(--gx-surface); color: var(--gx-text); }
@media (hover: hover) and (pointer: fine) {
  html:root body :is(#theme-toggle-btn, #share-btn, #gx-nb-trigger):hover:not(#gx-a):not(#gx-b) { background: var(--gx-surface-subtle) !important; color: var(--gx26-x-ink) !important; }
  html:root body header .gx-tb-right > div[style*="border-radius"]:hover:not(#gx-a):not(#gx-b):not(#gx-c) { background: var(--gx-surface-subtle) !important; }
  html:root body .gx-lang-dd:hover:not(#gx-a):not(#gx-b):not(#gx-c) { border-color: var(--gx-border-strong) !important; }
}
html:root body :is(#theme-toggle-btn, #share-btn, #gx-nb-trigger, #gx-search-open, #gx-menu-open, #gx-currency, .gx-lang-dd):focus-visible:not(#gx-a):not(#gx-b) { outline: 2px solid var(--gx-focus) !important; outline-offset: 2px !important; }
/* on a phone the two icon buttons (search, menu) share the capsule look */
html:root body header .gx-tb-mobile:not(#gx-a):not(#gx-b):not(#gx-c) { gap: 2px !important; padding: 3px !important; border: 1px solid var(--gx-border) !important; border-radius: 12px !important; background: var(--gx-surface) !important; }
