/* ═══════════════════════════════════════════
   GOVERNMENTS — microsite styles.
   Typography and colours are the sites' own (landing-header.css supplies
   --gold, --white*, --f-heading, --f-body, --f-ui, --nav-h): Inria Serif
   headings, Fira Sans text, the gold accent, the near-black page with its
   violet glow. The layouts follow the design mockups; the government-type
   colours are the dataset's (lifted for a dark page by build-data.py) and
   the "who rules" palette below.
   Sections: base · shared blocks · home · inner pages · footer · responsive
═══════════════════════════════════════════ */
:root {
  --bg: #050308;
  --bg-glow: #16131f;
  --surface: #0d0a16;
  --surface-2: #151024;
  --border: rgba(255, 255, 255, 0.09);
  --line: rgba(201, 168, 68, 0.25);
  --text: var(--white);
  --muted: #948ca1;
  --soft: rgba(255, 255, 255, 0.72);
  --dim: #7d7589;
  --gold-hi: #e3c870;
  /* who holds power / data palette */
  --pres: #f0705a; --pm: #5b9cf5; --mon: #e3b341; --party: #d65db1; --faith: #4fb286;
  --army: #8b93a7; --coll: #45c4c0; --share: #a78bfa; --none: #6b6478; --land: #1e1a2e;
  /* aliases the home/diagram scripts read through getComputedStyle */
  --night: #050308; --panel: #0d0a16; --raise: #151024; --ivory: #f3efe4; --mute: #948ca1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: radial-gradient(ellipse at top, var(--bg-glow) 0%, var(--bg) 65%) fixed;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 400;
  line-height: 1.5;
  padding-top: var(--nav-h);
  overflow-x: hidden;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-hi); }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, select { font: inherit; color: inherit; }
::selection { background: rgba(201, 168, 68, 0.3); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.gv-sr { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

.gv-wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px; }
h1, h2, h3 { font-family: var(--f-heading); font-weight: 700; color: #fff; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; letter-spacing: 0.2px; }
h3 { font-size: 21px; line-height: 1.25; }

/* nav: the map link is the header's call to action */
.nav-link.gv-nav-map { color: #0a0712; background: var(--gold); padding: 8px 16px; border-radius: 3px; font-weight: 600; }
.nav-link.gv-nav-map::after { display: none; }
.nav-link.gv-nav-map:hover, .nav-link.gv-nav-map.active { background: var(--gold-hi); color: #0a0712; }

/* ── Shared blocks ── */
.gv-eyebrow { font-family: var(--f-ui); font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); }
.gv-lead { margin-top: 18px; max-width: 700px; font-size: clamp(16px, 1.45vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, 0.8); }
.gv-prose { max-width: 760px; font-size: 16.5px; line-height: 1.7; color: var(--soft); }
.gv-prose p + p { margin-top: 14px; }
.gv-note { max-width: 900px; font-size: 13px; line-height: 1.6; color: #8e8699; }
.gv-btn {
  display: inline-block; padding: 14px 26px; border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 3px;
  font-family: var(--f-ui); font-size: 16px; font-weight: 600; color: #fff; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.gv-btn:hover { transform: translateY(-1px); color: #fff; }
.gv-btn-primary { background: var(--gold); border-color: var(--gold); color: #0a0712; }
.gv-btn-primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: #0a0712; }
.gv-btn-ghost { border-color: rgba(201, 168, 68, 0.65); color: var(--gold); background: rgba(10, 7, 18, 0.55); }
.gv-btn-ghost:hover { background: rgba(201, 168, 68, 0.12); color: var(--gold-hi); }
.gv-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.gv-cta-c { justify-content: center; }
.gv-sw { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: none; }
.gv-flag { display: inline-block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); vertical-align: middle; }
.gv-tip {
  position: fixed; z-index: 60; pointer-events: none; display: none; max-width: 300px;
  padding: 7px 11px; border-radius: 4px; background: #f3efe4; color: #0a0712;
  font-size: 13.5px; font-weight: 500; line-height: 1.35; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}
.gv-tip b { display: block; font-weight: 600; }
.gv-tip span { color: #4a4458; }
.js .gv-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: var(--d, 0s); }
.js .gv-reveal.is-in { opacity: 1; transform: none; }

/* pills / chips (filters, tabs, mode switches) */
.gv-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.gv-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px; font-family: var(--f-ui); font-size: 14.5px; color: rgba(255, 255, 255, 0.72);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.gv-pill:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.gv-pill[aria-pressed="true"], .gv-pill.is-on { background: var(--gold); border-color: var(--gold); color: #0a0712; font-weight: 600; }
.gv-pill small { font-size: 12.5px; opacity: 0.75; }

/* search field */
.gv-search { display: flex; align-items: center; gap: 10px; min-width: 240px; padding: 9px 14px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 4px; background: var(--surface); color: var(--muted); }
.gv-search:focus-within { border-color: var(--gold); }
.gv-search input { flex: 1; min-width: 0; border: 0; background: none; outline: 0; font-size: 15px; color: #fff; }
.gv-search input::placeholder { color: var(--dim); }

/* ═══════ HOME ═══════ */
.gvh { --gutter: 40px; }
.gvh-band { padding: 96px 0; scroll-margin-top: 20px; }
.gvh-band-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.gvh-head { margin-bottom: 42px; }
.gvh-head h2 { margin-top: 14px; }
.gvh-head .gv-lead { max-width: 640px; }

/* hero */
.gvh-hero { padding: 54px 0 0; overflow: hidden; position: relative; }
.gvh-hero h1 { font-size: clamp(54px, 10.5vw, 150px); line-height: 0.92; letter-spacing: -1px; margin-top: 18px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55); }
.gvh-hero-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-top: 26px; }
.gvh-hero-row .gv-lead { margin: 0; }
.gvh-flipwrap { justify-self: end; text-align: right; }
.gvh-flipwrap small { display: block; color: var(--dim); font-size: 14px; margin-top: 10px; }
.gvh-flip { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px; position: relative; }
.gvh-flip button { position: relative; z-index: 1; padding: 12px 22px; border-radius: 999px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color 0.25s; }
.gvh-flip button[aria-pressed="true"] { color: #0a0712; }
.gvh-flip::before { content: ""; position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px; background: var(--gold); transition: transform 0.35s cubic-bezier(0.3, 0.8, 0.3, 1); }
.gvh-flip[data-on="1"]::before { transform: translateX(100%); }
.gvh-stage { position: relative; margin-top: 26px; }
#world { display: block; width: 100%; height: auto; }
#world path, #world circle { stroke: var(--bg); stroke-width: 0.7; vector-effect: non-scaling-stroke; transition: fill 0.6s, opacity 0.3s; }
#world .c { cursor: pointer; }
#world .c:hover { stroke: #fff; stroke-width: 1.4; }
#world .pick { stroke: var(--gold) !important; stroke-width: 2 !important; }
#world .fade { opacity: 0.13; }
.gvh-tally { position: absolute; left: 0; bottom: 8%; display: flex; flex-direction: column; gap: 2px; max-width: 290px; padding: 10px 14px 10px 0; background: linear-gradient(90deg, rgba(5, 3, 8, 0.78), rgba(5, 3, 8, 0)); }
.gvh-tally button { display: flex; align-items: baseline; gap: 10px; padding: 3px 0; text-align: left; color: var(--muted); }
.gvh-tally button:hover, .gvh-tally button[aria-pressed="true"] { color: #fff; }
.gvh-tally b { font-family: var(--f-heading); font-size: 30px; font-weight: 700; min-width: 54px; text-align: right; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.gvh-tally .gv-sw { align-self: center; }
.gvh-answer { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: center; border-top: 1px solid var(--line); padding: 22px 0 28px; margin-top: -10px; }
.gvh-answer .gv-search { width: 100%; }
.gvh-verdict { font-size: 18px; min-height: 56px; color: rgba(255, 255, 255, 0.88); }
.gvh-verdict b { font-family: var(--f-heading); font-size: 22px; color: #fff; }
.gvh-verdict .was { color: var(--muted); }
.gvh-verdict a { white-space: nowrap; }

/* changes */
.gvh-changes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 310px); overflow-x: auto; padding: 8px 0 18px; scrollbar-color: var(--line) transparent; }
.gvh-chg { padding: 22px 26px 0 0; border-top: 1px solid var(--line); position: relative; }
.gvh-chg::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.gvh-chg time { color: var(--muted); font-size: 15px; }
.gvh-chg h3 { margin: 6px 0 8px; }
.gvh-chg p { color: var(--soft); font-size: 15.5px; line-height: 1.55; }

/* systems */
.gvh-strip { display: flex; height: 54px; border-radius: 4px; overflow: hidden; gap: 2px; }
.gvh-strip i { display: block; transition: opacity 0.2s; }
.gvh-strip.hot i { opacity: 0.2; }
.gvh-strip.hot i.on { opacity: 1; }
.gvh-sys { display: grid; grid-template-columns: 90px minmax(0, 300px) minmax(0, 1fr); gap: 8px 28px; padding: 20px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.gvh-sys:hover { background: linear-gradient(90deg, transparent, var(--surface-2) 12%, var(--surface-2) 88%, transparent); }
.gvh-sys b { font-family: var(--f-heading); font-size: 46px; font-weight: 700; line-height: 0.9; font-variant-numeric: lining-nums tabular-nums; }
.gvh-sys p { color: var(--soft); font-size: 16px; line-height: 1.55; }
.gvh-sys em { font-style: normal; color: var(--dim); display: block; margin-top: 4px; font-size: 15px; }

/* diagram */
.gvh-diagram { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
.gvh-board { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; overflow-x: auto; }
#chart { display: block; width: 100%; min-width: 700px; height: auto; }
#chart text { font-family: var(--f-body); }
#chart .edge, #chart .node { transition: opacity 0.2s; }
#chart .off { opacity: 0.12; }
.gvh-side h3 { font-size: 30px; }
.gvh-side .model { color: var(--muted); margin: 6px 0 16px; }
.gvh-side .insight { border-left: 3px solid var(--gold); padding: 4px 0 4px 16px; margin-top: 18px; font-size: 17.5px; line-height: 1.55; color: #fff; }
.gvh-keys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 20px; font-size: 14.5px; color: var(--muted); }
.gvh-keys span { display: inline-flex; align-items: center; gap: 7px; }
.gvh-keys i { width: 20px; border-top: 3px solid; }

/* through time */
.gvh-clock { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 34px; margin-bottom: 18px; }
.gvh-clock .yr { font-family: var(--f-heading); font-weight: 700; font-size: clamp(60px, 9vw, 120px); line-height: 0.85; letter-spacing: -2px; font-variant-numeric: lining-nums tabular-nums; color: #fff; }
.gvh-clock div { color: var(--muted); }
.gvh-clock div b { font-family: var(--f-heading); font-size: 34px; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.gvh-time { position: relative; display: grid; grid-template-columns: 118px minmax(0, 1fr); column-gap: 14px; row-gap: 5px; cursor: ew-resize; touch-action: pan-y; }
.gvh-time svg { display: block; width: 100%; height: 170px; grid-column: 2; }
.gvh-time .nm { font-size: 15px; color: var(--muted); align-self: center; }
.gvh-rib { position: relative; height: 22px; border-radius: 3px; overflow: hidden; background: var(--land); }
.gvh-rib i { position: absolute; top: 0; bottom: 0; border-right: 1.5px solid var(--surface); }
.gvh-axis { grid-column: 2; position: relative; height: 24px; color: var(--dim); font-size: 13.5px; font-variant-numeric: lining-nums tabular-nums; }
.gvh-axis span { position: absolute; transform: translateX(-50%); }
#hand { position: absolute; top: 0; bottom: 24px; width: 0; border-left: 2px solid var(--gold); pointer-events: none; }
.gvh-now { grid-column: 2; color: var(--soft); font-size: 15.5px; min-height: 26px; margin-top: 6px; }
.gvh-rkey { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.gvh-rkey span { display: inline-flex; align-items: center; gap: 7px; }
.gvh-rkey .gv-sw { border-radius: 3px; }

/* crowns */
.gvh-crowns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.gvh-cgroup { margin-bottom: 28px; }
.gvh-cgroup h3 { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.gvh-cgroup h3 b { font-family: var(--f-heading); font-weight: 700; font-size: 38px; }
.gvh-cgroup p { color: var(--soft); font-size: 15.5px; line-height: 1.55; margin-bottom: 12px; max-width: 52ch; }
.gvh-tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.gvh-tile { width: 46px; height: 46px; border-radius: 4px; display: grid; place-items: center; font-size: 13.5px; font-weight: 600; color: #0a0712; transition: transform 0.15s; }
.gvh-tile:hover, .gvh-tile:focus-visible { transform: translateY(-3px); }
.gvh-who { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 28px; }
.gvh-who .t { color: var(--muted); }
.gvh-who .h { font-family: var(--f-heading); font-weight: 700; font-size: 36px; line-height: 1.05; margin: 6px 0 14px; color: #fff; }
.gvh-who dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; font-size: 16px; }
.gvh-who dt { color: var(--dim); }
.gvh-who dd { margin: 0; color: rgba(255, 255, 255, 0.9); }

/* hemicycle */
.gvh-hemi { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; }
#hemi { display: block; width: 100%; height: auto; }
#hemi circle { transition: fill 0.5s, opacity 0.2s; }
#hemi circle:hover { stroke: #fff; stroke-width: 2; }
.gvh-split { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.gvh-split > div { display: grid; grid-template-columns: 74px 1fr; gap: 14px; align-items: baseline; }
.gvh-split b { font-family: var(--f-heading); font-size: 44px; font-weight: 700; line-height: 0.9; text-align: right; font-variant-numeric: lining-nums tabular-nums; }
.gvh-split span { color: var(--muted); }
.gvh-split strong { color: #fff; font-weight: 600; display: block; }
#hname { color: var(--muted); min-height: 26px; text-align: center; font-size: 15.5px; }

/* quiz */
.gvh-quiz { max-width: 760px; margin: 0 auto; text-align: center; }
.gvh-quiz .gv-lead { margin-left: auto; margin-right: auto; }
.gvh-qcard { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 44px 32px; margin-top: 36px; }
.gvh-qcard .step { color: var(--muted); font-size: 15px; }
.gvh-qcard .qn { font-family: var(--f-heading); font-weight: 700; font-size: clamp(40px, 7vw, 72px); line-height: 1.05; margin: 10px 0 28px; color: #fff; }
.gvh-choices { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.gvh-choices button { min-width: 190px; padding: 16px 22px; border-radius: 4px; border: 1.5px solid rgba(255, 255, 255, 0.2); font-weight: 600; font-size: 18px; transition: border-color 0.2s, background 0.2s; }
.gvh-choices button:hover:not(:disabled) { border-color: var(--gold); }
.gvh-choices button.right { background: var(--faith); border-color: var(--faith); color: #06130d; }
.gvh-choices button.wrong { background: var(--pres); border-color: var(--pres); color: #1b0805; }
.gvh-fact { min-height: 58px; margin-top: 22px; color: var(--soft); }
.gvh-fact b { color: #fff; }

/* questions */
.gvh-ask { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 48px; align-items: start; }
.gvh-ask h2 { font-size: clamp(28px, 3.2vw, 40px); }
.gv-select { width: 100%; margin-top: 22px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 4px; background: var(--surface); color: #fff; }
.gv-select option { background: #0d0a16; color: #fff; }
.gvh-qa { border-top: 1px solid var(--border); }
.gvh-qa > div { padding: 18px 0; border-bottom: 1px solid var(--border); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; }
.gvh-qa dt { font-weight: 600; color: #fff; }
.gvh-qa dd { margin: 0; color: var(--soft); }
.gvh-sites { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.gvh-sites a { border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; padding: 8px 14px; font-size: 15px; color: var(--soft); }
.gvh-sites a:hover { color: var(--gold); border-color: var(--gold); }

/* topic cards ("ways in") */
.gvh-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.gvh-way { --c: var(--gold); display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 22px; background: var(--surface); border-top: 2px solid var(--c); border-radius: 0 0 4px 4px; color: var(--soft); transition: transform 0.2s, background 0.2s; }
.gvh-way:hover { transform: translateY(-4px); background: var(--surface-2); color: #fff; }
.gvh-way b { font-family: var(--f-heading); font-size: 22px; font-weight: 700; color: #fff; line-height: 1.15; }
.gvh-way span { font-size: 14.5px; line-height: 1.5; }
.gvh-way i { margin-top: auto; padding-top: 10px; font-style: normal; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--c); font-family: var(--f-ui); font-weight: 600; }

/* closing */
.gvh-end { padding: 100px 0 96px; text-align: center; }
.gvh-end h2 { font-size: clamp(36px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.5px; }
.gvh-end .gv-lead { margin: 18px auto 0; }

/* ═══════ INNER PAGES ═══════ */
.gv-pagehead { padding: 60px 0 34px; }
.gv-crumb { font-family: var(--f-ui); font-size: 13px; letter-spacing: 0.4px; color: var(--muted); margin-bottom: 14px; }
.gv-crumb a { color: var(--muted); }
.gv-crumb a:hover { color: var(--gold); }
.gv-pagehead h1 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.04; letter-spacing: 0.2px; max-width: 980px; }
.gv-section { padding: 36px 0 70px; }
.gv-section + .gv-section { padding-top: 10px; }
.gv-band { padding: 72px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.gv-h2 { margin-bottom: 8px; }
.gv-sub { max-width: 720px; color: var(--soft); margin: 10px 0 30px; line-height: 1.6; }

/* cards */
.gv-grid { display: grid; gap: 18px; }
.gv-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gv-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gv-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gv-card { --c: var(--gold); background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--c); border-radius: 0 0 4px 4px; padding: 24px 24px 22px; }
.gv-card h3 { margin-bottom: 6px; }
.gv-card p { font-size: 15px; line-height: 1.6; color: var(--soft); }
.gv-card .gv-meta { font-family: var(--f-ui); font-size: 12px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: block; }
.gv-big { font-family: var(--f-heading); font-weight: 700; font-size: clamp(38px, 4vw, 54px); line-height: 1; color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.gv-callout { margin: 22px 0; padding: 14px 18px; border-left: 3px solid var(--gold); background: rgba(201, 168, 68, 0.06); max-width: 780px; line-height: 1.6; color: rgba(255, 255, 255, 0.9); }
.gv-callout b { color: var(--gold); font-weight: 600; }

/* data tables */
.gv-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 4px; }
.gv-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.gv-table th { text-align: left; padding: 11px 14px; font-family: var(--f-ui); font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--line); white-space: nowrap; }
.gv-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: rgba(255, 255, 255, 0.86); vertical-align: top; }
.gv-table tr:hover td { background: rgba(255, 255, 255, 0.025); }
.gv-table td.num { text-align: right; font-variant-numeric: lining-nums tabular-nums; }

/* chips */
.gv-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.9); white-space: nowrap; }

/* filter bar */
.gv-filterbar { position: sticky; top: var(--nav-h); z-index: 20; background: rgba(5, 3, 8, 0.94); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; }
.gv-filter-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }

/* ═══════ FOOTER ═══════ */
.gv-footer { border-top: 1px solid var(--border); padding: 44px 0 34px; margin-top: 30px; }
.gv-footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.gv-footer-brand-col { max-width: 440px; display: flex; flex-direction: column; gap: 12px; }
.gv-footer-brand { font-family: var(--f-heading); font-weight: 700; font-size: 17px; letter-spacing: 3.5px; color: #fff; }
.gv-footer-brand span { color: var(--gold); }
.gv-footer p { font-size: 13.5px; line-height: 1.6; color: #a299b3; }
.gv-footer-next { font-size: 12.5px !important; color: #8e8699 !important; }
.gv-footer-cols { display: flex; gap: 60px; flex-wrap: wrap; font-size: 13.5px; }
.gv-footer-cols > div { display: flex; flex-direction: column; gap: 10px; }
.gv-footer-h { font-family: var(--f-ui); font-size: 11.5px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.gv-footer-cols a { color: rgba(255, 255, 255, 0.75); }
.gv-footer-cols a:hover { color: var(--gold); }
.gv-footer-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 12px !important; color: #8e8699 !important; }
.gv-footer-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1100px) {
  .gv-grid-4, .gvh-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gv-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .gv-wrap { padding: 0 26px; }
  .gvh-hero-row, .gvh-answer, .gvh-diagram, .gvh-crowns, .gvh-hemi, .gvh-ask { grid-template-columns: minmax(0, 1fr); }
  .gvh-flipwrap { justify-self: start; text-align: left; }
  .gvh-tally { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 18px; max-width: none; margin-top: 10px; background: none; padding: 0; }
  .gvh-tally b { font-size: 20px; min-width: 0; }
  .gvh-answer { margin-top: 14px; }
  .gvh-who { position: static; }
  .gvh-band { padding: 70px 0; }
  .gvh-sys { grid-template-columns: 70px minmax(0, 1fr); }
  .gvh-sys p { grid-column: 2; }
  .gvh-qa > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
@media (max-width: 700px) {
  .gv-grid-2, .gv-grid-3, .gv-grid-4, .gvh-ways { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .gv-wrap { padding: 0 18px; }
  .gvh-flip button { padding: 11px 14px; font-size: 15px; }
  .gvh-time { grid-template-columns: 74px minmax(0, 1fr); }
  .gvh-time .nm { font-size: 13px; }
  .gvh-choices button { min-width: 0; flex: 1; }
  .gv-search { min-width: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .gv-reveal { opacity: 1; transform: none; }
}
/* Home systems: linked doughnut and illustrated legend. */
#systems { background: radial-gradient(ellipse at 22% 55%, #121a22 0, #090f15 58%, #0b1118 100%); }
#systems .gvh-systems-layout { max-width: 1680px; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr); gap: 46px; align-items: start; }
#systems .gvh-head { margin-bottom: 0; }
#systems .gv-eyebrow { display: none; }
#systems h2 { font-size: clamp(34px, 3.05vw, 54px); line-height: 1.08; letter-spacing: -1.8px; }
#systems .gv-lead { font-size: clamp(17px, 1.35vw, 22px); margin-top: 18px; max-width: 650px; }
.gvh-donut-wrap { margin: 6px -12px 0; }
#systems-pie { display: block; width: 100%; overflow: visible; }
.gvh-pie-item { transition: opacity .25s; }
.gvh-pie-item path { cursor: pointer; transform-origin: 350px 310px; transition: transform .3s, filter .3s; }
.gvh-pie-item.is-active path { transform: scale(1.025); filter: drop-shadow(0 0 12px currentColor); }
#systems-pie.has-selection .gvh-pie-item:not(.is-active) { opacity: .32; }
.gvh-pie-item path:focus-visible { outline: none; stroke: #fff; stroke-width: 3; }
.gvh-pie-count { font: 700 36px var(--f-heading); }
.gvh-pie-percent { fill: #c0c9d8; font: 19px var(--f-body); }
.gvh-pie-total { fill: #fff; font: 700 76px var(--f-heading); }
.gvh-pie-states { fill: #aab8d0; font: 600 18px var(--f-ui); letter-spacing: 6px; }
#systems-pie.is-visible .gvh-pie-item { animation: gvh-pie-reveal 1s ease backwards; }
#systems-pie.is-visible .gvh-pie-item:nth-of-type(2n) { animation-delay: .12s; }
#systems-pie.is-visible .gvh-pie-item:nth-of-type(3n) { animation-delay: .24s; }
@keyframes gvh-pie-reveal { from { opacity: 0; transform: translateY(16px) scale(.94); transform-origin: 350px 310px; } to { opacity: 1; transform: none; } }
/* Keep dimming effective after the entrance animation finishes. */
#systems-pie.is-visible.has-selection .gvh-pie-item:not(.is-active) { opacity: .32; }
.gvh-system-detail { min-height: 46px; margin: -4px 22px 0; text-align: center; font-size: 14px; color: #aebcd0; }
#systems .gvh-sys { width: 100%; display: grid; grid-template-columns: 42px 76px minmax(0, 1fr) minmax(110px, .48fr); align-items: center; gap: 18px; padding: 22px 0; border: 0; border-bottom: 1px solid #26313d; border-radius: 0; background: transparent; color: #b5bfce; text-align: left; cursor: pointer; transition: background .25s; }
#systems .gvh-sys:hover, #systems .gvh-sys.is-active { background: linear-gradient(90deg, transparent, #ffffff08, transparent); }
#systems .gvh-sys:focus-visible { outline: 2px solid var(--system-colour); outline-offset: 4px; }
#systems .gvh-sys b { color: var(--system-colour); font-size: 43px; border-left: 1px solid #303946; padding-left: 15px; }
.gvh-system-icon { width: 42px; height: 46px; fill: none; stroke: var(--system-colour); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gvh-system-copy { display: grid; gap: 6px; }
.gvh-system-copy strong { color: #f6f3f0; font: 700 20px/1.18 var(--f-heading); }
.gvh-system-copy > span { font-size: 14px; line-height: 1.5; }
.gvh-system-examples { border-left: 1px solid #26313d; padding-left: 18px; color: #9cacc4; font-size: 14px; line-height: 1.6; }
#systems .gv-cta { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 1150px) {
  #systems .gvh-systems-layout { gap: 26px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #systems .gvh-sys { grid-template-columns: 32px 60px minmax(0, 1fr); gap: 12px; padding: 16px 0; }
  .gvh-system-icon { width: 32px; }
  #systems .gvh-sys b { font-size: 34px; padding-left: 10px; }
  .gvh-system-examples { grid-column: 3; border-left: 0; padding-left: 0; }
  .gvh-system-copy strong { font-size: 18px; }
}
@media (max-width: 800px) {
  #systems .gvh-systems-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  #systems .gvh-systems-visual { max-width: 700px; width: 100%; margin: auto; }
  #systems h2 { letter-spacing: -1px; }
  #systems .gvh-sys { grid-template-columns: 36px 62px minmax(0, 1fr) minmax(100px, .5fr); }
  .gvh-system-examples { grid-column: auto; border-left: 1px solid #26313d; padding-left: 14px; }
}
@media (max-width: 480px) {
  #systems .gvh-sys { grid-template-columns: 30px 52px minmax(0, 1fr); gap: 10px; }
  .gvh-system-examples { grid-column: 3; border: 0; padding: 0; font-size: 13px; }
  .gvh-system-detail { margin: 0; }
  .gvh-system-copy > span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  #systems-pie.is-visible .gvh-pie-item { animation: none; }
  .gvh-pie-item, .gvh-pie-item path, #systems .gvh-sys { transition: none; }
}
/* Country browser opened from the systems chart and legend. */
body.gvh-countries-open { overflow: hidden; }
.gvh-country-dialog { margin: auto; --system-colour: #ff715e; width: min(1060px, calc(100vw - 48px)); max-width: none; max-height: min(860px, calc(100dvh - 64px)); padding: 0; border: 1px solid #ffffff20; border-radius: 24px; background: #0e1722; color: #edf2f8; box-shadow: 0 32px 100px #0009; scrollbar-color: #3c4a5f #0e1722; }
.gvh-country-dialog::backdrop { background: #02060cd4; backdrop-filter: blur(10px); }
.gvh-country-dialog[open] { animation: gvh-country-enter .28s ease-out; }
.gvh-country-shell { background: radial-gradient(ellipse at 0 0, color-mix(in srgb, var(--system-colour) 11%, transparent), transparent 52%); }
.gvh-country-header { padding: 26px 36px 24px; border-bottom: 1px solid #ffffff10; }
.gvh-country-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.gvh-country-kicker { color: var(--system-colour); font: 600 11px var(--f-ui); letter-spacing: 2px; text-transform: uppercase; }
.gvh-country-close { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 1px solid #ffffff20; border-radius: 50%; background: #ffffff05; color: #bcc9da; cursor: pointer; transition: background .2s, color .2s; }
.gvh-country-close:hover { background: #ffffff12; color: #fff; }
.gvh-country-close svg, .gvh-country-search svg, .gvh-country-card > svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gvh-country-title-row { display: flex; align-items: center; gap: 20px; }
.gvh-country-system-icon { display: grid; place-items: center; flex: none; width: 66px; height: 66px; border: 1px solid color-mix(in srgb, var(--system-colour) 30%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--system-colour) 8%, transparent); color: var(--system-colour); }
.gvh-country-system-icon svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gvh-country-dialog h2 { margin: 0; font: 700 clamp(26px, 3vw, 38px)/1.15 var(--f-heading); color: #fff; }
.gvh-country-summary { margin: 10px 0 0; color: var(--system-colour); font-size: 13px; letter-spacing: .3px; }
#system-countries-description { max-width: 760px; margin: 20px 0 24px; color: #aab9cd; font-size: 15px; line-height: 1.65; }
.gvh-country-search { display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid #ffffff20; border-radius: 12px; background: #080f19a6; color: #8c9cb3; }
.gvh-country-search:focus-within { border-color: var(--system-colour); }
.gvh-country-search svg { flex: none; }
.gvh-country-search input { min-width: 0; flex: 1; height: 48px; padding: 0; border: 0; outline: 0; background: transparent; color: #edf2f8; font: 14px var(--f-body); }
.gvh-country-search input::placeholder { color: #8191a8; }
.gvh-country-results { flex: none; font-size: 12px; color: #93a4bd; font-variant-numeric: tabular-nums; }
.gvh-country-groups { padding: 6px 36px 30px; }
.gvh-country-continent { margin-top: 28px; }
.gvh-country-continent h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 13px; color: #e6edf6; font: 600 16px var(--f-ui); }
.gvh-country-continent h3::after { content: ''; height: 1px; flex: 1; background: #ffffff12; }
.gvh-continent-count { padding: 4px 9px; border-radius: 20px; background: #ffffff06; color: #94a6bd; font: 12px var(--f-ui); }
.gvh-country-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.gvh-country-card { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 15px 13px; border: 1px solid #ffffff0f; border-radius: 12px; background: #ffffff03; text-decoration: none; color: #edf2f8; transition: background .2s, border-color .2s, transform .2s; }
.gvh-country-card:hover { color: #fff; background: color-mix(in srgb, var(--system-colour) 8%, #101923); border-color: color-mix(in srgb, var(--system-colour) 45%, transparent); transform: translateY(-2px); }
.gvh-country-code { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: color-mix(in srgb, var(--system-colour) 10%, transparent); color: var(--system-colour); font: 600 11px var(--f-ui); letter-spacing: .6px; }
.gvh-country-card-copy { min-width: 0; flex: 1; }
.gvh-country-card-copy strong { display: block; font: 600 14px/1.35 var(--f-ui); }
.gvh-country-card-copy > span { display: block; margin-top: 5px; color: #8497b0; font-size: 11px; line-height: 1.4; }
.gvh-country-card > svg { flex: none; width: 15px; height: 15px; color: #70839b; }
.gvh-country-card:hover > svg { color: var(--system-colour); }
.gvh-country-footer { display: flex; justify-content: space-between; gap: 14px; padding: 20px 36px; border-top: 1px solid #ffffff10; color: #8396af; font-size: 12px; }
.gvh-country-footer > span { color: #a8b7cb; }
.gvh-country-empty { padding: 54px 16px; text-align: center; }
.gvh-country-empty strong { color: #fff; font: 600 22px var(--f-heading); }
.gvh-country-empty p { color: #94a6bd; margin-top: 10px; }
.gvh-country-dialog button:focus-visible, .gvh-country-card:focus-visible { outline: 2px solid var(--system-colour); outline-offset: 3px; }
@keyframes gvh-country-enter { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 850px) { .gvh-country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 540px) {
  .gvh-country-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 24px); border-radius: 18px; }
  .gvh-country-header { padding: 20px; }
  .gvh-country-topline { gap: 8px; margin-bottom: 18px; }
  .gvh-country-kicker { font-size: 9px; letter-spacing: 1.3px; }
  .gvh-country-title-row { gap: 13px; align-items: start; }
  .gvh-country-system-icon { width: 46px; height: 46px; border-radius: 12px; }
  .gvh-country-system-icon svg { width: 29px; height: 29px; }
  .gvh-country-dialog h2 { font-size: 26px; }
  .gvh-country-summary { line-height: 1.6; font-size: 12px; }
  #system-countries-description { font-size: 14px; }
  .gvh-country-groups { padding: 0 20px 24px; }
  .gvh-country-grid { grid-template-columns: minmax(0, 1fr); }
  .gvh-country-footer { flex-direction: column; padding: 18px 20px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .gvh-country-dialog[open] { animation: none; }
  .gvh-country-card, .gvh-country-close { transition: none; }
}
