/* Ghana Open Data portal - what ECL does not provide.
 *
 * Load order:  vendor/ecl/ecl-reset.css → vendor/ecl/ecl-eu.css →
 *              vendor/ecl/ecl-eu-utilities.css → this file
 *
 * The colours are ECL's own EU preset, blue and white, unchanged.
 *
 * Standard components (header, menu, page header, breadcrumb, buttons,
 * links, cards, content items, labels, tags, notifications, tables, tabs,
 * accordion, description lists, files, pagination, forms, fact figures,
 * footer) are ECL's, used with ECL's markup. This file adds only:
 *
 *   1. Aliases       roles mapped onto ECL tokens
 *   2. Layout        page grid and sections
 *   3. Identity      the independent-project strip, logo, hero
 *   4. Tiles         tool tiles, indicator tiles, carousel, steps, CTA band
 *   5. Data viz      charts, tooltips, legends, choropleth maps
 *   6. Data Lab      schema, editor, results
 *   7. ECL tweaks    small adjustments where ECL meets this content
 *   8. Utilities, print
 */

/* ── 1. Aliases ───────────────────────────────────────────────────────── */

:root {
  --c-primary: var(--ecl-color-primary);
  --c-primary-hover: var(--ecl-color-primary-120);
  --c-primary-tint: var(--ecl-color-primary-5);
  --c-primary-tint-2: var(--ecl-color-primary-10);
  --c-accent: var(--ecl-color-secondary);
  --c-text: var(--ecl-color-dark);
  --c-text-2: var(--ecl-color-dark-80);
  --c-text-3: var(--ecl-color-dark-60);
  --c-border: var(--ecl-color-dark-20);
  --c-border-strong: var(--ecl-color-dark-40);
  --c-surface: #fff;
  --c-surface-2: var(--ecl-color-dark-5);
  --c-error: var(--ecl-color-error);
  --c-focus: var(--ecl-color-secondary);

  --sp-2xs: var(--ecl-spacing-2xs); --sp-xs: var(--ecl-spacing-xs); --sp-s: var(--ecl-spacing-s);
  --sp-m: var(--ecl-spacing-m); --sp-l: var(--ecl-spacing-l); --sp-xl: var(--ecl-spacing-xl);
  --sp-2xl: var(--ecl-spacing-2xl); --sp-3xl: var(--ecl-spacing-3xl); --sp-4xl: var(--ecl-spacing-4xl);
  --radius: 8px;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Data viz roles: the validated reference palette (docs/portal.md). */
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a;
  --series-4: #eda100; --series-5: #e87ba4; --series-6: #008300;
  --seq-100: #cde2fb; --seq-200: #9ec5f4; --seq-300: #6da7ec; --seq-400: #3987e5;
  --seq-500: #256abf; --seq-600: #184f95; --seq-700: #0d366b;
  --grid: #e6e6e3;
}

body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; font: var(--ecl-font-m); font-family: var(--ecl-font-family-default); color: var(--c-text); background: #fff; }
.gh-u-sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
main { flex: 1 0 auto; }
code, kbd, pre { font-family: var(--font-mono); font-size: .9em; }
:not(pre) > code { background: var(--c-surface-2); padding: .1em .35em; border-radius: 2px; overflow-wrap: anywhere; }
::selection { background: var(--ecl-color-secondary-40); }

/* ── 2. Layout ────────────────────────────────────────────────────────── */

.gh-section { padding-top: var(--sp-3xl); padding-bottom: var(--sp-3xl); }
.gh-section--tint { background: var(--c-primary-tint); }
.gh-section--grey { background: var(--c-surface-2); }

/* Section title with a trailing rule, as on Eurostat's key-indicator band. */
.gh-section-title {
  display: flex; align-items: center; gap: var(--sp-l);
  font: var(--ecl-font-3xl); color: var(--c-text); margin: 0 0 var(--sp-xl);
}
.gh-section-title::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.gh-section-title--s { font: var(--ecl-font-2xl); }
.gh-section-lead { font: var(--ecl-font-l); color: var(--c-text-2); max-width: 70ch; margin: calc(-1 * var(--sp-m)) 0 var(--sp-xl); }

.gh-grid { display: grid; gap: var(--sp-l); }
.gh-grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.gh-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.gh-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.gh-grid--1 { grid-template-columns: minmax(0, 1fr); }

.gh-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: var(--sp-2xl); align-items: start; }
.gh-layout--nav { grid-template-columns: 240px minmax(0, 1fr); }
.gh-layout--aside { grid-template-columns: minmax(0, 1fr) 320px; }
.gh-layout--preview { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); }
.gh-layout--halves { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.gh-layout--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.gh-layout--center { align-items: center; }
@media (max-width: 996px) {
  .gh-layout, .gh-layout--nav, .gh-layout--aside, .gh-layout--preview,
  .gh-layout--halves, .gh-layout--split { grid-template-columns: minmax(0, 1fr); }
  .gh-sticky { position: static !important; }
  .gh-indlist { max-height: 300px !important; }
}
.gh-sticky { position: sticky; top: var(--sp-l); }

/* Panel: a bordered box for filters, chart frames and asides. */
.gh-panel { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--sp-l); }
.gh-panel__title { font: var(--ecl-font-l); font-weight: 700; margin: 0 0 var(--sp-m); color: var(--c-text); }
.gh-indlist { max-height: calc(100vh - 3rem); overflow: auto; }

/* ── 3. Identity ──────────────────────────────────────────────────────── */

/* The strip says what the site is and, as plainly, what it is not: an
   independent project, not a government service. It replaces ECL's EU
   "official website" banner, which belongs to EU sites only. The Ghana flag
   here and in the logo is the only place the national colours appear. */
.gh-identity { background: var(--ecl-color-dark-140); color: #fff; font: var(--ecl-font-s); }
.gh-identity__inner { display: flex; align-items: center; gap: var(--sp-s); min-height: 40px; }
.gh-identity__flag { width: 24px; height: 16px; flex: none; display: block; }
.gh-identity details { margin-left: auto; position: relative; }
.gh-identity summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.gh-identity summary::-webkit-details-marker { display: none; }
.gh-identity summary::after { content: ""; width: 7px; height: 7px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.gh-identity details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.gh-identity__panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(420px, calc(100vw - 32px));
  background: #fff; color: var(--c-text); padding: var(--sp-m) var(--sp-l); border-radius: 4px; box-shadow: var(--ecl-shadow-3);
}
.gh-identity__panel p { margin: 0 0 var(--sp-xs); }
.gh-identity__panel p:last-child { margin: 0; }
@media (max-width: 560px) {
  .gh-identity__inner > span:nth-child(2) { display: none; }
  .gh-identity details { margin-left: 0; }
  .gh-identity__panel { left: 0; right: auto; }
}

/* The logo sits in ECL's logo slot: our mark and wordmark in place of the
   EU logo image. */
.gh-logo { display: inline-flex; align-items: center; gap: var(--sp-s); text-decoration: none; color: var(--c-text); }
.gh-logo__mark { width: 48px; height: 48px; flex: none; }
.gh-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.gh-logo__name { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; color: var(--c-text); }
.gh-logo__tag { font: var(--ecl-font-xs); color: var(--c-text-2); margin-top: 3px; }
@media (max-width: 560px) {
  .gh-logo__tag { display: none; }
  .gh-logo__mark { width: 36px; height: 36px; }
  .gh-logo__name { font-size: 1.2rem; }
}

/* Home hero, on ECL's plain-background banner: a deep-blue to cyan gradient
   and a quiet geometric motif in place of a photograph. */
.gh-hero.ecl-banner { background: linear-gradient(170deg, var(--ecl-color-primary-180) 0%, var(--ecl-color-primary-140) 30%, var(--ecl-color-primary-100) 62%, #00b4e6 100%); position: relative; overflow: hidden; }
.gh-hero .ecl-banner__info { position: relative; z-index: 1; }
.gh-hero.ecl-banner { border-radius: 0; box-shadow: none; }
.gh-hero.ecl-banner::before { display: none; }
.gh-hero .ecl-banner__container { max-width: 760px; padding-top: var(--sp-3xl); padding-bottom: var(--sp-3xl); }
.gh-hero .ecl-banner__title, .gh-hero .ecl-banner__description { color: #fff; }
.gh-hero .ecl-banner__title { font-size: 3rem; line-height: 3.5rem; font-weight: 400; }
.gh-hero__motif { position: absolute; right: -40px; top: 0; bottom: 0; width: 46%; z-index: 0; pointer-events: none; }
.gh-hero__search { max-width: 680px; margin-top: var(--sp-l); }
.gh-hero__search .ecl-text-input { min-height: 3.5rem; font-size: 1.125rem; }
.gh-hero__search .ecl-search-form__button { min-height: 3.5rem; }
.gh-hero__chips { display: flex; flex-wrap: wrap; gap: var(--sp-xs); margin-top: var(--sp-m); align-items: center; font: var(--ecl-font-s); color: #fff; }
.gh-hero__chips a.ecl-tag { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: #fff; }
.gh-hero__chips a.ecl-tag:hover { background: rgba(255,255,255,.25); color: #fff; }
@media (max-width: 860px) {
  .gh-hero__motif { opacity: .3; width: 80%; }
  .gh-hero .ecl-banner__title { font-size: 2.1rem; line-height: 2.6rem; }
}

/* ── 4. Tiles ─────────────────────────────────────────────────────────── */

/* Tool tile: icon, title, sentence. The way into each part of the portal. */
.gh-tool { position: relative; display: flex; gap: var(--sp-m); padding: var(--sp-l); background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); transition: box-shadow .15s, border-color .15s; }
.gh-tool:hover { box-shadow: var(--ecl-shadow-2); border-color: var(--ecl-color-primary-40); }
.gh-tool:focus-within { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.gh-tool__icon { flex: none; width: 52px; height: 52px; border-radius: var(--radius); display: grid; place-items: center; background: var(--c-primary-tint-2); color: var(--c-primary); }
.gh-tool__icon svg { width: 28px; height: 28px; }
.gh-tool__title { font: var(--ecl-font-l); font-weight: 700; margin: 0 0 var(--sp-2xs); }
.gh-tool__title a { color: var(--c-text); text-decoration: none; }
.gh-tool__title a::after { content: ""; position: absolute; inset: 0; }
.gh-tool:hover .gh-tool__title a { color: var(--c-primary); text-decoration: underline; }
.gh-tool p { margin: 0; color: var(--c-text-2); font: var(--ecl-font-s); }
.gh-tool--compact { padding: var(--sp-m) var(--sp-l); align-items: center; }
.gh-tool--compact .gh-tool__icon { width: 44px; height: 44px; }
.gh-tool--compact .gh-tool__title { font: var(--ecl-font-m); font-weight: 700; margin: 0; }

/* Indicator tile, after Eurostat's key-indicator cards. */
.gh-indicator { position: relative; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--sp-l); display: flex; flex-direction: column; min-height: 200px; transition: box-shadow .15s, border-color .15s; }
.gh-indicator:hover { box-shadow: var(--ecl-shadow-2); border-color: var(--ecl-color-primary-40); }
.gh-indicator__label { font: var(--ecl-font-s); font-weight: 700; color: var(--c-text-2); margin: 0 0 var(--sp-s); }
.gh-indicator__label a { color: inherit; text-decoration: none; }
.gh-indicator__label a::after { content: ""; position: absolute; inset: 0; }
.gh-indicator:hover .gh-indicator__label a { color: var(--c-primary); }
.gh-indicator__value { font-size: 2.5rem; line-height: 1; font-weight: 300; letter-spacing: -.02em; color: var(--c-text); font-variant-numeric: tabular-nums; }
.gh-indicator__unit { font-size: 1rem; color: var(--c-text-2); margin-left: 4px; font-weight: 400; letter-spacing: 0; }
.gh-indicator__period { font: var(--ecl-font-xs); color: var(--c-text-3); margin-top: var(--sp-xs); }
.gh-indicator__spark { margin-top: auto; padding-top: var(--sp-m); height: 54px; }
.gh-indicator__spark svg { display: block; width: 100%; height: 40px; overflow: visible; }
.gh-indicator--loading .gh-indicator__value { color: transparent; background: var(--c-surface-2); border-radius: 4px; width: 60%; animation: gh-pulse 1.2s ease-in-out infinite; }
@keyframes gh-pulse { 50% { opacity: .5; } }

.gh-carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, calc((100% - 3 * var(--sp-l)) / 4)); gap: var(--sp-l); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px var(--sp-s); scrollbar-width: thin; }
.gh-carousel__track > * { scroll-snap-align: start; }
.gh-carousel__bar { display: flex; flex-wrap: wrap; gap: var(--sp-s); align-items: center; justify-content: space-between; margin-top: var(--sp-l); }
.gh-carousel__nav { display: flex; gap: var(--sp-xs); align-items: center; }
@media (max-width: 560px) { .gh-carousel__track { grid-auto-columns: 80%; } }

.gh-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-l); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.gh-steps li { counter-increment: step; position: relative; padding-top: var(--sp-3xl); }
.gh-steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--c-primary); color: #fff; display: grid; place-items: center; font-weight: 700; }
.gh-steps h3 { font: var(--ecl-font-m); font-weight: 700; margin: 0 0 var(--sp-2xs); }
.gh-steps p { color: var(--c-text-2); font: var(--ecl-font-s); margin: 0; }

.gh-cta-banner { background: var(--ecl-color-primary-140); color: #fff; border-radius: var(--radius); padding: var(--sp-2xl); display: grid; grid-template-columns: 1fr auto; gap: var(--sp-l); align-items: center; position: relative; overflow: hidden; }
.gh-cta-banner h2 { color: #fff; font: var(--ecl-font-2xl); font-weight: 700; margin: 0 0 var(--sp-xs); }
.gh-cta-banner p { margin: 0; opacity: .9; max-width: 60ch; font: var(--ecl-font-m); }
.gh-cta-banner::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; background: var(--c-accent); opacity: .12; transform: rotate(45deg); }
@media (max-width: 720px) { .gh-cta-banner { grid-template-columns: 1fr; padding: var(--sp-l); } }

.gh-empty { text-align: center; padding: var(--sp-3xl) var(--sp-l); color: var(--c-text-2); border: 1px dashed var(--c-border-strong); border-radius: var(--radius); }

/* ── 5. Data viz ──────────────────────────────────────────────────────── */

.gh-chart { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--sp-l); }
.gh-chart__head { display: flex; flex-wrap: wrap; gap: var(--sp-s); align-items: flex-start; justify-content: space-between; margin-bottom: var(--sp-m); }
.gh-chart__title { font: var(--ecl-font-l); font-weight: 700; margin: 0; color: var(--c-text); }
.gh-chart__sub { font: var(--ecl-font-s); color: var(--c-text-2); margin: 2px 0 0; }
.gh-chart__body { position: relative; }
.gh-chart__body svg { display: block; width: 100%; height: auto; overflow: visible; }
.gh-chart__source { font: var(--ecl-font-xs); color: var(--c-text-3); margin: var(--sp-s) 0 0; }
.gh-chart__actions { display: flex; flex-wrap: wrap; gap: var(--sp-xs); align-items: center; }
@media (max-width: 560px) { .gh-chart { padding: var(--sp-m); } }

.viz-axis text { fill: var(--c-text-2); font-size: 12px; font-family: var(--ecl-font-family-default); }
.viz-axis line, .viz-axis path { stroke: var(--c-border-strong); }
.viz-grid line { stroke: var(--grid); }
.viz-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz-dot { stroke: #fff; stroke-width: 2; }
.viz-label { font-size: 12px; font-family: var(--ecl-font-family-default); fill: var(--c-text); font-weight: 700; }
.viz-label--muted { fill: var(--c-text-2); font-weight: 400; }
.viz-crosshair { stroke: var(--c-text-3); stroke-dasharray: 3 3; }
.viz-bar:hover { opacity: .8; }
.viz-tooltip {
  position: absolute; pointer-events: none; z-index: 20; background: var(--ecl-color-dark-140); color: #fff;
  border-radius: 4px; padding: var(--sp-xs) var(--sp-s); font: var(--ecl-font-xs);
  box-shadow: var(--ecl-shadow-2); white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); display: none;
}
.viz-tooltip[data-show] { display: block; }
.viz-tooltip strong { display: block; margin-bottom: 2px; }
.viz-tooltip__row { display: flex; align-items: center; gap: 6px; }
.viz-tooltip__row b { margin-left: auto; padding-left: var(--sp-s); font-variant-numeric: tabular-nums; }
.viz-legend { display: flex; flex-wrap: wrap; gap: var(--sp-xs) var(--sp-l); list-style: none; margin: 0 0 var(--sp-s); padding: 0; font: var(--ecl-font-s); color: var(--c-text-2); }
.viz-legend li { display: inline-flex; align-items: center; gap: 6px; }
.viz-swatch { width: 12px; height: 12px; border-radius: 3px; flex: none; display: inline-block; }
.viz-swatch--line { height: 3px; border-radius: 2px; width: 16px; }

.gh-map { position: relative; }
.gh-map svg { display: block; width: 100%; height: auto; }
.gh-map__shape { stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; transition: fill .15s; cursor: pointer; }
.gh-map__shape:hover, .gh-map__shape:focus { stroke: var(--ecl-color-dark-140); stroke-width: 2; outline: none; }
.gh-map__shape[data-active] { stroke: var(--ecl-color-dark-140); stroke-width: 2.5; }
.gh-map__outline { fill: none; stroke: var(--ecl-color-dark-60); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none; }
.gh-map__label { font-size: 11px; font-family: var(--ecl-font-family-default); fill: var(--ecl-color-dark-140); pointer-events: none; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: 3px; font-weight: 700; }
.gh-map__legend { display: flex; align-items: center; gap: var(--sp-xs); font: var(--ecl-font-xs); color: var(--c-text-2); margin-top: var(--sp-s); flex-wrap: wrap; }
.gh-map__ramp { display: flex; height: 10px; width: 180px; border-radius: 2px; overflow: hidden; }
.gh-map__ramp span { flex: 1; }

/* ── 6. Data Lab ──────────────────────────────────────────────────────── */

.gh-lab { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--sp-l); align-items: start; }
@media (max-width: 996px) { .gh-lab { grid-template-columns: 1fr; } }
.gh-lab__schema { font: var(--ecl-font-s); max-height: 640px; overflow: auto; }
.gh-lab__schema details { border-bottom: 1px solid var(--c-border); padding: var(--sp-xs) 0; }
.gh-lab__schema summary { cursor: pointer; font-family: var(--font-mono); font-weight: 700; }
.gh-lab__schema ul { list-style: none; margin: var(--sp-xs) 0 0; padding: 0 0 0 var(--sp-s); font-family: var(--font-mono); font-size: .75rem; color: var(--c-text-2); }
.gh-lab__schema li { display: flex; justify-content: space-between; gap: var(--sp-xs); padding: 1px 0; }
.gh-lab__schema li span:last-child { color: var(--c-text-3); }
.gh-lab__editor { border: 1px solid var(--c-border-strong); border-radius: var(--radius); overflow: hidden; background: #fff; }
.gh-lab__toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-xs); padding: var(--sp-xs) var(--sp-s); background: var(--c-surface-2); border-bottom: 1px solid var(--c-border); }
.gh-lab__status { margin-left: auto; font: var(--ecl-font-xs); color: var(--c-text-2); display: inline-flex; align-items: center; gap: 6px; }
.gh-lab__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ecl-color-dark-40); }
.gh-lab__status[data-state="ready"]::before { background: var(--ecl-color-success); }
.gh-lab__status[data-state="busy"]::before { background: var(--ecl-color-secondary); animation: gh-pulse 1s infinite; }
.gh-lab__status[data-state="error"]::before { background: var(--c-error); }
.gh-lab textarea { display: block; width: 100%; min-height: 200px; border: 0; padding: var(--sp-m); font: 400 14px/1.6 var(--font-mono); resize: vertical; color: var(--c-text); tab-size: 2; }
.gh-lab textarea:focus { outline: none; box-shadow: inset 0 0 0 3px var(--c-focus); }
.gh-lab__results { margin-top: var(--sp-l); }
.gh-lab__results .ecl-table-responsive { max-height: 460px; overflow: auto; }
.gh-lab__examples { margin: var(--sp-s) 0 var(--sp-l); }

/* Code block with a copy button. */
.gh-code { position: relative; margin: 0 0 var(--sp-l); }
.gh-code pre { margin: 0; background: var(--ecl-color-dark-140); color: #e9ecef; padding: var(--sp-m) var(--sp-l); border-radius: var(--radius); overflow-x: auto; font-size: .875rem; line-height: 1.6; }
.gh-code__copy { position: absolute; top: var(--sp-xs); right: var(--sp-xs); background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; font: var(--ecl-font-xs); padding: 4px 10px; cursor: pointer; }
.gh-code__copy:hover { background: rgba(255,255,255,.2); }

/* Segmented control (chart/table). */
.gh-segmented { display: inline-flex; border: 1px solid var(--c-border-strong); border-radius: 4px; overflow: hidden; }
.gh-segmented button { font: var(--ecl-font-s); padding: .45rem .9rem; background: #fff; border: 0; cursor: pointer; color: var(--c-text-2); }
.gh-segmented button + button { border-left: 1px solid var(--c-border-strong); }
.gh-segmented button[aria-pressed="true"] { background: var(--c-primary); color: #fff; }

/* Region profile header: text and locator map side by side. */
.gh-profile { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--sp-2xl); align-items: start; }
@media (max-width: 860px) { .gh-profile { grid-template-columns: 1fr; } }
.gh-district-card { border-left: 4px solid var(--c-primary); background: var(--c-primary-tint); padding: var(--sp-l); border-radius: 0 var(--radius) var(--radius) 0; }

/* Side navigation list (indicator explorer). */
.gh-sidenav ul { list-style: none; margin: 0 0 var(--sp-m); padding: 0; }
.gh-sidenav__title { font: var(--ecl-font-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--c-text-3); margin: var(--sp-m) 0 var(--sp-2xs); }
.gh-sidenav a { display: block; padding: var(--sp-2xs) var(--sp-s); border-left: 3px solid transparent; text-decoration: none; }
.gh-sidenav a[aria-current="true"] { border-left-color: var(--c-primary); background: var(--c-primary-tint); font-weight: 700; }
.gh-peers { display: flex; flex-wrap: wrap; gap: var(--sp-2xs) var(--sp-l); }
.gh-peers .ecl-checkbox { margin: 0; }

/* Small facet checkbox count, beside an ECL checkbox. */
.gh-facet { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-xs); }
.gh-facet .ecl-checkbox { flex: 1; margin: 0 0 var(--sp-2xs); }
.gh-facet__count { color: var(--c-text-3); font: var(--ecl-font-xs); font-variant-numeric: tabular-nums; }
.gh-facet .ecl-checkbox__label { padding-top: 2px; padding-bottom: 2px; }

/* ── 7. ECL tweaks ────────────────────────────────────────────────────── */

/* The site header without ECL's language selector and login: our logo in
   the logo slot, search on the right. */
.ecl-site-header__logo-link.gh-logo { padding: var(--sp-xs) 0; }
.ecl-site-header__search-container .ecl-search-form { min-width: min(420px, 40vw); }

/* Sortable header button inside an ECL table header. */
.ecl-table__header .gh-sort { font: inherit; font-weight: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; text-align: inherit; }
.ecl-table__header .gh-sort::after { content: "↕"; color: var(--c-text-3); font-weight: 400; }
.ecl-table__header[aria-sort="ascending"] .gh-sort::after { content: "↑"; color: var(--c-primary); }
.ecl-table__header[aria-sort="descending"] .gh-sort::after { content: "↓"; color: var(--c-primary); }
.ecl-table__cell.gh-num, .ecl-table__header.gh-num { text-align: right; font-variant-numeric: tabular-nums; }
.ecl-table__body .ecl-table__row th.ecl-table__cell { font-weight: 700; white-space: nowrap; text-align: start; }

/* Tabs used for in-page panels (ECL's tabs are navigation links). */
.gh-tabs { margin-bottom: var(--sp-l); }
.gh-tabs .ecl-tabs__list { flex-wrap: wrap; }
[role="tabpanel"][hidden] { display: none; }

/* A content item that is a whole link card. */
.gh-result.ecl-content-item { border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--sp-l); background: #fff; margin: 0; }
.gh-result.ecl-content-item:hover { box-shadow: var(--ecl-shadow-2); border-color: var(--ecl-color-primary-40); }
.gh-results { display: grid; gap: var(--sp-m); }
.gh-result .ecl-content-block__secondary-meta-container { display: flex; flex-wrap: wrap; gap: var(--sp-2xs) var(--sp-l); }
.gh-result .ecl-content-block__secondary-meta-item { margin: 0; }

/* Fact figures used inline at a smaller size. */
.gh-facts-s .ecl-fact-figures__value { font: var(--ecl-font-2xl); font-weight: 400; }
.gh-facts-s .ecl-fact-figures__items { margin-top: 0; }

.ecl-notification { margin-bottom: var(--sp-l); }
.ecl-page-header__actions { display: flex; flex-wrap: wrap; gap: var(--sp-s); margin-top: var(--sp-l); }

.gh-prose { max-width: 75ch; font: var(--ecl-font-m); }
.gh-prose h2 { font: var(--ecl-font-2xl); font-weight: 700; margin: var(--sp-2xl) 0 var(--sp-m); }
.gh-prose h3 { font: var(--ecl-font-l); font-weight: 700; margin: var(--sp-xl) 0 var(--sp-s); }
.gh-prose p, .gh-prose ul, .gh-prose ol { margin: 0 0 var(--sp-m); }
.gh-prose li { margin-bottom: var(--sp-2xs); }

/* Custom line icons sit among ECL's filled sprite icons. */
.ecl-icon.gh-icon-line { fill: none; stroke: currentColor; }

/* ── 8. Utilities, print ──────────────────────────────────────────────── */

.gh-u-muted { color: var(--c-text-2); }
.gh-u-small { font: var(--ecl-font-s); }
.gh-u-flex { display: flex; flex-wrap: wrap; gap: var(--sp-s); align-items: center; }
.gh-u-between { justify-content: space-between; }
.gh-u-mono { font-family: var(--font-mono); font-size: .92em; }

@media print {
  .gh-identity, .ecl-menu, .ecl-site-header__action, .ecl-site-footer, .gh-hero__motif, .gh-chart__actions, .gh-carousel__nav { display: none !important; }
  .gh-tool, .gh-chart, .gh-indicator { break-inside: avoid; box-shadow: none; }
}
.gh-prose a:not([class]) { color: var(--ecl-color-primary); }
.ecl-notification__content { min-width: 0; overflow-wrap: anywhere; }
.gh-lab > * { min-width: 0; }
.gh-cta-banner .ecl-button--secondary { background: transparent; color: #fff; border-color: #fff; }
.gh-cta-banner .ecl-button--secondary:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ── Earth Engine connector ──────────────────────────────────────────── */
.gh-ee-steps { list-style: none; margin: 0; padding: 0; counter-reset: none; display: block; }
.gh-ee-steps > li { margin: 0; padding: 0; }
.gh-ee-steps > li::before { content: none; display: none; }
.gh-ee-options { display: flex; flex-wrap: wrap; gap: var(--ecl-spacing-l, 16px) var(--ecl-spacing-xl, 24px); align-items: flex-end; }
.gh-ee-options .ecl-form-group { margin: 0; }
.gh-ee-clip { padding-bottom: 6px; }
.gh-ee-card--picked { outline: 3px solid var(--ecl-color-primary, #0e47cb); outline-offset: 2px; }
.gh-ee-custom { border: 1px solid var(--ecl-color-neutral-40, #cfd4dd); border-radius: 4px; padding: 12px 16px; background: var(--ecl-color-white, #fff); }
.gh-ee-custom > summary { cursor: pointer; font-weight: 600; color: var(--ecl-color-primary, #0e47cb); }
.gh-ee-custom__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 16px; align-items: end; margin-top: 12px; }
.gh-ee-custom__form .ecl-form-group { margin: 0; }
.gh-ee-custom__form .ecl-text-input { width: 100%; max-width: none; }
.gh-ee-preview { margin: 0; }
.gh-ee-preview img { display: block; width: 100%; max-width: 520px; height: auto; border: 1px solid var(--ecl-color-neutral-40, #cfd4dd); border-radius: 4px; background: #f3f6fc; }
.gh-ee-result .ecl-text-input { width: 100%; max-width: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; }

/* ── Desmond, the portal guide ───────────────────────────────────────── */
.gh-desmond { position: fixed; right: 20px; bottom: 20px; z-index: 900; font-family: var(--ecl-font-family-default, Arial, sans-serif); }
.gh-desmond__launcher { display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; background: var(--ecl-color-primary, #0e47cb); color: #fff; font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; box-shadow: 0 6px 20px rgba(10, 50, 142, 0.35); transition: transform .15s ease, box-shadow .15s ease; }
.gh-desmond__launcher:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(10, 50, 142, 0.42); }
.gh-desmond__launcher:focus-visible { outline: 3px solid #fcd116; outline-offset: 3px; }
.gh-desmond--open .gh-desmond__launcher { display: none; }
.gh-desmond__avatar { position: relative; display: inline-block; width: 44px; height: 44px; flex: none; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.gh-desmond__avatar-svg { display: block; width: 100%; height: 100%; border-radius: 50%; }
.gh-desmond__avatar--s { width: 38px; height: 38px; }
.gh-desmond__avatar--xs { width: 28px; height: 28px; box-shadow: none; }
.gh-desmond__flag { position: absolute; right: -4px; bottom: -2px; width: 18px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1.5px #fff; }
.gh-desmond__panel { position: absolute; right: 0; bottom: 0; width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 18px 50px rgba(23, 29, 45, 0.28); border: 1px solid #d5dbe6; }
.gh-desmond__panel[hidden] { display: none; }
.gh-desmond__head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--ecl-color-primary, #0e47cb); color: #fff; }
.gh-desmond__who { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.gh-desmond__who strong { font-size: 1.05rem; }
.gh-desmond__who span { font-size: .8rem; opacity: .85; }
.gh-desmond__close { border: 0; background: transparent; color: #fff; font-size: 1.7rem; line-height: 1; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; }
.gh-desmond__close:hover, .gh-desmond__close:focus-visible { background: rgba(255, 255, 255, .16); outline: none; }
.gh-desmond__log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f3f6fc; }
.gh-desmond__msg { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.gh-desmond__msg--user { justify-content: flex-end; }
.gh-desmond__bubble { padding: 10px 12px; border-radius: 12px; font-size: .92rem; line-height: 1.45; color: #1f2630; background: #fff; border: 1px solid #e0e5ee; max-width: 86%; overflow-wrap: anywhere; }
.gh-desmond__msg--user .gh-desmond__bubble { background: var(--ecl-color-primary, #0e47cb); color: #fff; border-color: transparent; border-bottom-right-radius: 4px; }
.gh-desmond__msg--bot .gh-desmond__bubble { border-bottom-left-radius: 4px; }
.gh-desmond__bubble p { margin: 0 0 6px; }
.gh-desmond__bubble p:last-child { margin-bottom: 0; }
.gh-desmond__bubble a { color: var(--ecl-color-primary, #0e47cb); }
.gh-desmond__bubble code { font-size: .82rem; background: #eef2fa; padding: 1px 4px; border-radius: 3px; }
.gh-desmond__label { font-weight: 600; margin-top: 6px !important; }
.gh-desmond__list { margin: 2px 0 4px; padding-left: 18px; }
.gh-desmond__list li { margin: 2px 0; }
.gh-desmond__kind { font-size: .72rem; color: #5e6977; text-transform: uppercase; letter-spacing: .03em; }
.gh-desmond__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gh-desmond__link { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ecl-color-primary, #0e47cb); color: var(--ecl-color-primary, #0e47cb) !important; text-decoration: none; font-size: .82rem; font-weight: 600; }
.gh-desmond__link:hover { background: #e7edfa; }
.gh-desmond__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: #fff; }
.gh-desmond__chips:empty { display: none; }
.gh-desmond__chip { border: 1px solid #c9d3e6; background: #fff; color: #0a328e; border-radius: 999px; padding: 5px 10px; font: inherit; font-size: .8rem; cursor: pointer; text-align: left; }
.gh-desmond__chip:hover, .gh-desmond__chip:focus-visible { background: #e7edfa; border-color: var(--ecl-color-primary, #0e47cb); outline: none; }
.gh-desmond__form { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #e6eaf1; margin-top: 8px; }
.gh-desmond__input { flex: 1; min-width: 0; border: 1px solid #b9c3d3; border-radius: 999px; padding: 9px 14px; font: inherit; font-size: .92rem; }
.gh-desmond__input:focus { outline: 2px solid var(--ecl-color-primary, #0e47cb); outline-offset: 1px; border-color: transparent; }
.gh-desmond__send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--ecl-color-primary, #0e47cb); color: #fff; cursor: pointer; display: grid; place-items: center; }
.gh-desmond__send:hover { background: #0a328e; }
.gh-desmond__note { margin: 0; padding: 0 12px 10px; font-size: .72rem; color: #5e6977; background: #fff; }
.gh-desmond__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gh-desmond__typing { display: inline-flex; gap: 4px; padding: 2px 0; }
.gh-desmond__typing i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6b8; animation: gh-desmond-dot 1.1s infinite ease-in-out; }
.gh-desmond__typing i:nth-child(2) { animation-delay: .15s; }
.gh-desmond__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes gh-desmond-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 640px) {
  .gh-desmond { right: 12px; bottom: 12px; }
  .gh-desmond__launcher-text { display: none; }
  .gh-desmond__launcher { padding: 4px; }
  .gh-desmond__panel { position: fixed; right: 8px; left: 8px; bottom: 8px; width: auto; height: min(560px, calc(100vh - 16px)); }
}
@media (prefers-reduced-motion: reduce) { .gh-desmond__launcher, .gh-desmond__typing i { transition: none; animation: none; } }
@media print { .gh-desmond { display: none; } }
.gh-desmond__pending { display: none !important; }

/* ── Accounts: sign-in page, header control, sign-in prompt ─────────── */
.gh-auth__hero { position: relative; background: var(--ecl-color-primary, #0e47cb); background: linear-gradient(180deg, #0e47cb 0%, #0a3aa8 100%); color: #fff; padding: 28px 0 64px; }
.gh-auth__crumb { display: flex; gap: 10px; align-items: center; font-size: .95rem; margin-bottom: 18px; }
.gh-auth__crumb a { color: #fff; }
.gh-auth__title { color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.08; margin: 0 0 22px; letter-spacing: -.01em; }
.gh-auth__lead { color: #e6edfb; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; max-width: 52rem; margin: 0; }
.gh-auth__stripe { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; display: grid; grid-template-columns: 1fr 1fr 1fr; }
.gh-auth__stripe span:nth-child(1) { background: #ce1126; }
.gh-auth__stripe span:nth-child(2) { background: #fcd116; }
.gh-auth__stripe span:nth-child(3) { background: #006b3f; }
.gh-auth__body { padding-top: 56px; padding-bottom: 72px; }
.gh-auth__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.gh-auth__card { position: relative; overflow: hidden; background: #0e47cb; color: #fff; border-radius: 10px; padding: 36px 38px 44px; box-shadow: 0 14px 40px rgba(14, 71, 203, .22); }
.gh-auth__card::after { content: ""; position: absolute; right: -40px; bottom: -46px; width: 220px; height: 110px; background: linear-gradient(135deg, transparent 0 30%, #fcd116 30% 46%, transparent 46% 56%, #006b3f 56% 74%, transparent 74%); opacity: .9; transform: rotate(-8deg); pointer-events: none; }
.gh-auth__card h2 { color: #fff; font-size: 1.9rem; font-weight: 800; margin: 0 0 26px; }
.gh-auth__field { margin-bottom: 18px; }
.gh-auth__field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: #fff; }
.gh-auth__field label span { font-weight: 400; opacity: .8; }
.gh-auth__field input, .gh-auth__field select { width: 100%; box-sizing: border-box; padding: 14px 14px; border: 2px solid transparent; border-radius: 4px; background: #e8efff; color: #111; font: inherit; font-size: 1.05rem; }
.gh-auth__field input:focus, .gh-auth__field select:focus { outline: none; border-color: #fff; box-shadow: 0 0 0 3px #fcd116; background: #fff; }
.gh-auth__static { margin: 0; padding: 10px 0; color: #fff; font-size: 1.05rem; }
.gh-auth__hint { margin: -10px 0 16px; font-size: .85rem; color: #cfdcfb; }
.gh-auth__check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 12px; font-size: .95rem; color: #fff; cursor: pointer; }
.gh-auth__check input { width: 18px; height: 18px; margin-top: 2px; accent-color: #fcd116; flex: none; }
.gh-auth__links { margin: 18px 0 0; }
.gh-auth__links--tight { margin: -4px 0 18px; }
.gh-auth__links a, .gh-auth__card a { color: #fff; }
.gh-auth__pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 30px; border-radius: 999px; border: 2px solid #fff; background: #fff; color: #0e47cb !important; font: inherit; font-weight: 800; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, transform .1s; }
.gh-auth__pill:hover { background: #e8efff; }
.gh-auth__pill:active { transform: translateY(1px); }
.gh-auth__pill:focus-visible { outline: 3px solid #fcd116; outline-offset: 3px; }
.gh-auth__pill:disabled { opacity: .7; cursor: wait; }
.gh-auth__pill--blue { background: #0e47cb; border-color: #0e47cb; color: #fff !important; }
.gh-auth__pill--blue:hover { background: #0a328e; }
.gh-auth__pill--ghost { background: transparent; color: #fff !important; }
.gh-auth__pill--ghost:hover { background: rgba(255, 255, 255, .12); }
.gh-auth__row { display: flex; flex-wrap: wrap; gap: 12px; }
.gh-auth__or { display: flex; align-items: center; gap: 14px; margin: 30px 0 18px; color: #fff; font-size: 1.05rem; }
.gh-auth__or::before, .gh-auth__or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, .45); }
.gh-auth__provider { position: relative; z-index: 1; display: flex; width: 100%; align-items: center; justify-content: center; gap: 12px; min-height: 56px; margin-bottom: 12px; border: 0; border-radius: 999px; background: #fff; color: #0e47cb; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
.gh-auth__provider:hover { background: #e8efff; }
.gh-auth__msg { margin: 6px 0 18px; padding: 12px 14px; border-radius: 6px; font-size: .95rem; line-height: 1.45; }
.gh-auth__msg--error { background: #fff0f1; color: #8c0d1c; border-left: 5px solid #ce1126; }
.gh-auth__msg--success { background: #ecf8f1; color: #0b5132; border-left: 5px solid #006b3f; }
.gh-auth__msg a, .gh-auth__inline { color: inherit !important; font-weight: 700; text-decoration: underline; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.gh-auth__text { color: #fff; font-size: 1.05rem; line-height: 1.55; }
.gh-auth__side h2 { color: #0e47cb; font-size: 1.9rem; font-weight: 800; line-height: 1.2; margin: 18px 0 26px; }
.gh-auth__side p { font-size: 1.05rem; line-height: 1.55; color: #404040; }
.gh-auth__benefits { list-style: none; margin: 0 0 30px; padding: 0; }
.gh-auth__benefits li { display: flex; gap: 14px; align-items: center; margin: 0 0 18px; font-size: 1.12rem; color: #3a3a3a; }
.gh-auth__benefits svg { flex: none; }
.gh-auth__small { margin-top: 26px; font-size: .92rem !important; color: #5e6977 !important; }
@media (max-width: 900px) {
  .gh-auth__grid { grid-template-columns: 1fr; gap: 40px; }
  .gh-auth__card { padding: 28px 22px 40px; }
  .gh-auth__hero { padding-bottom: 48px; }
}

.ecl-site-header__action { display: flex; align-items: center; gap: 12px; }
.gh-account-slot:empty { display: none; }
.gh-account__signin { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.gh-account { position: relative; }
.gh-account > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; }
.gh-account > summary::-webkit-details-marker { display: none; }
.gh-account > summary:hover, .gh-account[open] > summary { background: #e7edfa; }
.gh-account__avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #0e47cb; color: #fff; font-weight: 700; font-size: .85rem; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #fcd116; }
.gh-account__name { font-weight: 600; color: #0e47cb; }
.gh-account__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 950; min-width: 230px; background: #fff; border: 1px solid #d5dbe6; border-radius: 8px; box-shadow: 0 12px 30px rgba(23, 29, 45, .18); padding: 8px; }
.gh-account__who { margin: 6px 8px 10px; font-size: .85rem; color: #5e6977; overflow-wrap: anywhere; }
.gh-account__who strong { color: #1f2630; }
.gh-account__menu a, .gh-account__menu button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 6px; border: 0; background: none; font: inherit; color: #0e47cb; text-decoration: none; cursor: pointer; }
.gh-account__menu a:hover, .gh-account__menu button:hover { background: #e7edfa; }
@media (max-width: 640px) { .gh-account__name { display: none; } }

.gh-auth-prompt { padding: 0; border: 0; border-radius: 12px; width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 70px rgba(10, 30, 80, .35); overflow: hidden; }
.gh-auth-prompt::backdrop { background: rgba(10, 30, 80, .45); }
.gh-auth-prompt__band { display: grid; grid-template-columns: 1fr 1fr 1fr; height: 6px; }
.gh-auth-prompt__band span:nth-child(1) { background: #ce1126; } .gh-auth-prompt__band span:nth-child(2) { background: #fcd116; } .gh-auth-prompt__band span:nth-child(3) { background: #006b3f; }
.gh-auth-prompt__body { padding: 26px 28px 24px; }
.gh-auth-prompt h2 { margin: 0 0 10px; color: #0e47cb; font-size: 1.5rem; }
.gh-auth-prompt p { margin: 0 0 12px; line-height: 1.5; }
.gh-auth-prompt__list { margin: 0 0 18px; padding-left: 20px; color: #3a3a3a; }
.gh-auth-prompt__list li { margin: 4px 0; }
.gh-auth-prompt__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.gh-auth-prompt__note { font-size: .85rem; color: #5e6977; }
.gh-ee-values { border-top: 1px solid var(--ecl-color-neutral-40, #cfd4dd); padding-top: 16px; }
.gh-ee-values:empty { display: none; }

/* ── Share data (Zotero-style item editor) and the review queue ──────── */
.gh-share-steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gh-share-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 14px; background: #f3f6fc; border-radius: 8px; font-size: .95rem; line-height: 1.4; }
.gh-share-steps li span { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #0e47cb; color: #fff; font-weight: 700; }
.gh-share-steps strong { display: block; color: #0e47cb; }
.gh-zot { display: grid; grid-template-columns: 240px minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.gh-zot__types { position: sticky; top: 16px; border: 1px solid #d5dbe6; border-radius: 8px; background: #fbfcfe; overflow: hidden; }
.gh-zot__types-title { margin: 0; padding: 10px 14px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: #5e6977; background: #eef2f8; border-bottom: 1px solid #d5dbe6; }
.gh-zot__types ul { list-style: none; margin: 0; padding: 4px; }
.gh-zot__type { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: 6px; background: none; font: inherit; cursor: pointer; color: #1f2630; }
.gh-zot__type strong { display: block; font-size: .95rem; }
.gh-zot__type span { display: block; font-size: .78rem; color: #5e6977; margin-top: 2px; }
.gh-zot__type:hover { background: #e7edfa; }
.gh-zot__type.is-active { background: #0e47cb; color: #fff; }
.gh-zot__type.is-active span { color: #dbe4f8; }
.gh-zot__wand { display: grid; grid-template-columns: auto 1fr auto; gap: 8px 10px; align-items: center; padding: 12px 14px; margin-bottom: 16px; background: #fff8dc; border: 1px solid #f0d77a; border-radius: 8px; }
.gh-zot__wand-label { font-weight: 700; color: #6b5300; white-space: nowrap; }
.gh-zot__wand-note { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: #6b5a1f; }
.gh-zot__pane { border: 1px solid #d5dbe6; border-radius: 8px; background: #fff; margin-bottom: 16px; }
.gh-zot__pane h3 { margin: 0; padding: 10px 14px; font-size: 1rem; border-bottom: 1px solid #e6eaf1; background: #fbfcfe; border-radius: 8px 8px 0 0; display: flex; align-items: center; gap: 10px; }
.gh-zot__pane > :not(h3) { margin-left: 14px; margin-right: 14px; }
.gh-zot__pane > :last-child { margin-bottom: 14px; }
.gh-zot__pane > h3 + * { margin-top: 12px; }
.gh-zot__type-tag { font-size: .75rem; font-weight: 600; color: #0e47cb; background: #e7edfa; border-radius: 999px; padding: 2px 10px; }
.gh-zot__row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px dashed #edf0f5; }
.gh-zot__row:last-child { border-bottom: 0; }
.gh-zot__row--top { align-items: start; }
.gh-zot__row--top .gh-zot__label { padding-top: 8px; }
.gh-zot__label { text-align: right; font-size: .85rem; color: #5e6977; font-weight: 600; }
.gh-zot__input { width: 100%; box-sizing: border-box; padding: 7px 9px; border: 1px solid transparent; border-radius: 4px; background: #f6f8fb; font: inherit; font-size: .95rem; color: #1f2630; }
.gh-zot__input:hover { border-color: #d5dbe6; }
.gh-zot__input:focus { outline: none; background: #fff; border-color: #0e47cb; box-shadow: 0 0 0 2px #cfdaf5; }
textarea.gh-zot__input { resize: vertical; }
.gh-zot__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gh-zot__creator { display: grid; grid-template-columns: 130px 1fr 1fr auto auto auto; gap: 6px; align-items: center; margin-bottom: 6px; }
.gh-zot__creator:has(input:only-of-type) { grid-template-columns: 130px 2fr auto auto auto; }
.gh-zot__role { padding: 7px 6px; border: 1px solid #d5dbe6; border-radius: 4px; background: #fff; font: inherit; font-size: .88rem; }
.gh-zot__mini { width: 30px; height: 30px; border: 1px solid #d5dbe6; border-radius: 50%; background: #fff; color: #0e47cb; font-weight: 700; cursor: pointer; line-height: 1; }
.gh-zot__mini:hover:not(:disabled) { background: #e7edfa; }
.gh-zot__mini:disabled { opacity: .35; cursor: default; }
.gh-zot__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gh-zot__chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid #d5dbe6; border-radius: 999px; font-size: .85rem; cursor: pointer; background: #fff; }
.gh-zot__chip:has(input:checked) { background: #e7edfa; border-color: #0e47cb; color: #0a328e; }
.gh-zot__chip input { accent-color: #0e47cb; }
.gh-zot__drop { padding: 22px; border: 2px dashed #b9c3d3; border-radius: 8px; text-align: center; color: #3a4554; cursor: pointer; background: #fbfcfe; }
.gh-zot__drop span { font-size: .85rem; color: #5e6977; }
.gh-zot__drop .gh-zot__browse { color: #0e47cb; text-decoration: underline; font-size: inherit; }
.gh-zot__drop.is-over, .gh-zot__drop:focus { border-color: #0e47cb; background: #eef3fd; outline: none; }
.gh-zot__files { list-style: none; padding: 0; margin: 10px 14px; }
.gh-zot__files li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #edf0f5; }
.gh-zot__file { font-weight: 600; overflow-wrap: anywhere; flex: 1; }
.gh-zot__link { grid-template-columns: 1fr 2fr auto; margin-bottom: 6px; }
.gh-zot__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.gh-zot__tags:empty { display: none; }
.gh-zot__tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: #fff3c4; color: #5a4700; font-size: .85rem; }
.gh-zot__tag button { border: 0; background: none; cursor: pointer; font-size: 1rem; color: inherit; }
.gh-zot__consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px !important; font-size: .92rem; }
.gh-zot__consent input { margin-top: 3px; accent-color: #0e47cb; width: 18px; height: 18px; flex: none; }
.gh-zot__submit { padding: 4px 0; }
.gh-zot__side { position: sticky; top: 16px; padding: 16px; border-radius: 8px; background: #f3f6fc; border: 1px solid #dbe4f8; }
.gh-zot__side h3 { margin: 0 0 10px; font-size: 1rem; color: #0e47cb; }
.gh-zot__side ul { list-style: none; margin: 0; padding: 0; }
.gh-zot__side li { display: flex; gap: 8px; padding: 5px 0; font-size: .88rem; color: #5e6977; }
.gh-zot__side li span { flex: none; width: 18px; color: #9aa6b8; font-weight: 700; }
.gh-zot__side li.is-ok { color: #1f2630; }
.gh-zot__side li.is-ok span { color: #006b3f; }
.gh-zot-item { max-width: 56rem; }
.gh-zot-item__abstract { font-size: 1.05rem; line-height: 1.6; }
.gh-mine { list-style: none; padding: 0; margin: 0; }
.gh-mine__item { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #e6eaf1; }
.gh-mine__note { margin: 8px 0 0; padding: 8px 12px; background: #fff8dc; border-left: 4px solid #fcd116; font-size: .92rem; }
.gh-review-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.gh-review-tab { padding: 7px 14px; border: 1px solid #d5dbe6; border-radius: 999px; background: #fff; font: inherit; cursor: pointer; }
.gh-review-tab.is-active { background: #0e47cb; border-color: #0e47cb; color: #fff; }
.gh-review { border: 1px solid #d5dbe6; border-radius: 10px; padding: 18px 20px; margin-bottom: 18px; background: #fff; }
.gh-review header { display: flex; gap: 10px; align-items: center; }
.gh-review h2 { margin: 0; font-size: 1.3rem; }
.gh-review h3 { font-size: 1rem; margin: 16px 0 6px; }
.gh-review__decide { margin-top: 16px; padding-top: 16px; border-top: 1px solid #e6eaf1; }
.gh-review__decide fieldset { border: 0; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.gh-review__decide legend { font-weight: 700; margin-bottom: 6px; }
@media (max-width: 1100px) { .gh-zot { grid-template-columns: 200px minmax(0, 1fr); } .gh-zot__side { grid-column: 1 / -1; position: static; } }
@media (max-width: 760px) {
  .gh-zot { grid-template-columns: 1fr; } .gh-zot__types { position: static; } .gh-zot__types ul { display: flex; overflow-x: auto; }
  .gh-zot__type { min-width: 150px; } .gh-zot__row { grid-template-columns: 1fr; gap: 2px; } .gh-zot__label { text-align: left; }
  .gh-zot__creator { grid-template-columns: 1fr 1fr; } .gh-share-steps { grid-template-columns: 1fr 1fr; } .gh-zot__wand { grid-template-columns: 1fr; }
}

/* Language switcher, in the header beside the account control. */
.gh-lang { display: inline-flex; align-items: center; gap: .35rem; margin-right: .75rem; color: var(--ecl-color-primary-600, #0e47cb); font-size: .875rem; cursor: pointer; }
.gh-lang__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gh-lang__select { border: 1px solid #c8d3ea; border-radius: 4px; background: #fff; color: #1b1f27; font: inherit; padding: .3rem 1.6rem .3rem .5rem; cursor: pointer; }
.gh-lang__select:focus-visible { outline: 2px solid #0e47cb; outline-offset: 1px; }
/* The draft-translation notice under the identity bar. */
.gh-lang-notice { background: #fff8d6; border-bottom: 1px solid #f1df8a; font-size: .875rem; color: #3d3200; }
.gh-lang-notice .ecl-container { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; padding-top: .4rem; padding-bottom: .4rem; }
.gh-lang-notice a { color: #0a3a9f; font-weight: 600; }
.gh-lang-notice__en { margin-left: auto; border: 1px solid #c9b45a; background: #fff; border-radius: 4px; padding: .15rem .6rem; cursor: pointer; font: inherit; }
@media (max-width: 640px) { .gh-lang { margin-right: .4rem; } .gh-lang__select { max-width: 7.5rem; } }

/* ── Map explorer ─────────────────────────────────────────────────────── */
.gh-map__classes { margin-top: var(--sp-s); font: var(--ecl-font-s); color: var(--c-text); }
.gh-map__classes strong { display: block; margin-bottom: var(--sp-2xs, 4px); }
.gh-map__classes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 16px; }
.gh-map__classes li { display: flex; align-items: center; gap: 8px; }
.gh-map__swatch { width: 18px; height: 14px; border-radius: 2px; border: 1px solid rgba(0,0,0,.12); flex: none; }
.gh-ex__selection { background: var(--ecl-color-primary-5, #f3f6fc); border: 1px solid var(--ecl-color-primary-20, #cfdaf5); border-radius: 6px; padding: var(--sp-m, 16px); display: grid; grid-template-columns: minmax(240px, 2fr) repeat(4, minmax(140px, 1fr)); gap: var(--sp-m, 16px); align-items: end; }
.gh-ex__selection .ecl-form-group { margin: 0; }
.gh-ex__selection .ecl-select__container { width: 100%; max-width: none; }
.gh-ex__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--sp-l, 24px); align-items: start; margin-top: var(--sp-l, 24px); }
.gh-ex__panel { border: 1px solid var(--ecl-color-dark-20, #d9dde4); border-radius: 6px; padding: var(--sp-m, 16px); background: #fff; position: sticky; top: 16px; }
.gh-ex__panel h3 { margin: 0 0 4px; font: var(--ecl-font-prolonged-m, 600 1.125rem/1.4 Arial); }
.gh-ex__value { font-size: 2rem; font-weight: 700; color: var(--c-primary, #0e47cb); line-height: 1.1; margin: 8px 0 4px; }
.gh-ex__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gh-ex__source { margin-top: var(--sp-m, 16px); font: var(--ecl-font-xs); color: var(--c-text-2); }
.gh-ex__views { display: flex; gap: 4px; border-bottom: 2px solid var(--ecl-color-primary-20, #cfdaf5); margin-bottom: var(--sp-m, 16px); }
.gh-ex__views button { border: 0; background: transparent; padding: 10px 18px; font: inherit; font-weight: 700; color: var(--c-text-2); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.gh-ex__views button[aria-pressed="true"] { color: var(--c-primary, #0e47cb); border-bottom-color: var(--c-primary, #0e47cb); }
.gh-ex__desc { margin: 4px 0 0; color: var(--c-text-2); font: var(--ecl-font-s); }
@media (max-width: 960px) {
  .gh-ex__selection { grid-template-columns: 1fr 1fr; }
  .gh-ex__layout { grid-template-columns: 1fr; }
  .gh-ex__panel { position: static; }
}

/* ── Map frame (zoomable statistics map) ─────────────────────────────── */
.gh-mf { position: relative; height: clamp(440px, 68vh, 760px); background: #dfe9f2; border: 1px solid var(--ecl-color-primary-20, #cfdaf5); border-radius: 6px; overflow: hidden; touch-action: none; user-select: none; cursor: grab; outline: none; }
.gh-mf.is-dragging { cursor: grabbing; }
.gh-mf:fullscreen { height: 100vh; border-radius: 0; }
.gh-mf__tiles, .gh-mf__ref { position: absolute; inset: 0; pointer-events: none; }
.gh-mf__tiles img, .gh-mf__ref img { position: absolute; max-width: none; image-rendering: auto; }
.gh-mf__tiles img.is-failed, .gh-mf__ref img.is-failed { visibility: hidden; }
.gh-mf__land path { fill: #eef0f3; stroke: none; }
.gh-mf__ref { z-index: 2; }
.gh-mf__svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.gh-mf__choro path { stroke: #fff; stroke-width: .6; vector-effect: non-scaling-stroke; cursor: pointer; transition: filter .12s; }
.gh-mf__choro path:hover { filter: brightness(.9) saturate(1.2); }
.gh-mf__lines path, .gh-mf__outline path, .gh-mf__sel path { fill: none; vector-effect: non-scaling-stroke; pointer-events: none; }
.gh-mf__d path { stroke: rgba(255,255,255,.85); stroke-width: .7; }
.gh-mf__r path { stroke: #2b3440; stroke-width: 1.3; }
.gh-mf__outline path { stroke: #111; stroke-width: 1.8; }
.gh-mf__sel path { stroke: #000; stroke-width: 3.2; }
.gh-mf__labels { pointer-events: none; font-family: var(--ecl-font-family-default, Arial, sans-serif); paint-order: stroke; stroke: rgba(255,255,255,.92); stroke-linejoin: round; fill: #1b1f27; text-anchor: middle; dominant-baseline: middle; }
.gh-mf__lr { font-weight: 700; }
.gh-mf__ld { font-size: .85em; }
.gh-mf__pts circle { fill: #fcd116; stroke: #000; pointer-events: auto; }
.gh-mf__poi circle[data-i] { stroke: #fff; pointer-events: auto; cursor: pointer; }
.gh-mf__poi circle[data-i]:hover { stroke: #1b1f27; }
.gh-mf__cl { cursor: zoom-in; pointer-events: auto; }
.gh-mf__clbg { fill: rgba(255,255,255,.94); stroke: rgba(27,31,39,.18); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.gh-mf__cl text { fill: #1b1f27; font-weight: 700; text-anchor: middle; dominant-baseline: central; font-family: var(--ecl-font-family-default, Arial, sans-serif); pointer-events: none; }
.gh-mf__cl:hover .gh-mf__clbg { fill: #fff; stroke: #1b1f27; }
.gh-mf__dot { display: inline-block; width: 12px !important; height: 12px !important; border-radius: 50% !important; border: 2px solid #fff !important; box-shadow: 0 0 0 1px rgba(0,0,0,.18); flex: none; }
.gh-mf__poinote { position: absolute; z-index: 3; top: 12px; right: 12px; max-width: calc(100% - 90px); background: rgba(255,255,255,.94); border-radius: 999px; padding: 5px 12px; font: var(--ecl-font-xs); color: #1b1f27; box-shadow: 0 2px 10px rgba(10,30,80,.14); pointer-events: none; }
.gh-mf__tiprow { display: flex; align-items: center; gap: 6px; }
.gh-mf__tiprow i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.gh-mf__pnote { margin: 4px 0 2px; font-size: .75rem; color: var(--c-text-2); }
.gh-mf__search input { width: 100%; font: inherit; padding: 5px 8px; border: 1px solid #9aa3b2; border-radius: 4px; }
.gh-mf__tools { position: absolute; z-index: 4; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; }
.gh-mf__tools button { width: 44px; height: 44px; display: grid; place-items: center; background: #fff; color: var(--c-primary, #0e47cb); border: 2px solid var(--c-primary, #0e47cb); border-radius: 4px; cursor: pointer; padding: 0; }
.gh-mf__tools button:hover, .gh-mf__tools button:focus-visible { background: var(--ecl-color-primary-5, #eef3fd); }
.gh-mf__tools button[aria-expanded="true"], .gh-mf__tools button[aria-pressed="true"] { background: var(--c-primary, #0e47cb); color: #fff; }
.gh-mf__tools button[data-act="home"] { margin-bottom: 0; }
.gh-mf__panel { position: absolute; z-index: 5; top: 12px; left: 66px; width: 270px; max-height: calc(100% - 24px); overflow: auto; background: #fff; border-radius: 6px; box-shadow: 0 6px 24px rgba(10,30,80,.18); padding: 12px 14px; cursor: default; font: var(--ecl-font-s); }
.gh-mf__panel h3 { margin: 0 0 8px; font-size: 1rem; }
.gh-mf__panel h4 { margin: 12px 0 6px; font-size: .875rem; color: var(--c-text-2); }
.gh-mf__row { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
.gh-mf__row select { margin-left: auto; font: inherit; padding: 2px 4px; }
.gh-mf__row input[type="range"] { flex: 1; }
.gh-mf__indent { padding-left: 22px; color: var(--c-text-2); }
.gh-mf__pal { display: inline-flex; height: 14px; border-radius: 2px; overflow: hidden; }
.gh-mf__pal i { width: 18px; }
.gh-mf__legend { position: absolute; z-index: 4; right: 12px; bottom: 54px; min-width: 210px; max-width: 320px; max-height: calc(100% - 120px); overflow: auto; background: rgba(255,255,255,.96); border-radius: 6px; box-shadow: 0 4px 18px rgba(10,30,80,.16); padding: 8px 12px 10px; cursor: default; font: var(--ecl-font-s); }
.gh-mf__lhead { display: flex; align-items: center; gap: 6px; cursor: move; }
.gh-mf__lhead strong { flex: 1; font-size: 1rem; }
.gh-mf__lhead button { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--c-text-2); }
.gh-mf__grip { color: var(--c-text-2); display: inline-flex; }
.gh-mf__grip svg, .gh-mf__lhead button svg { width: 16px; height: 16px; }
.gh-mf__ltitle { margin: 4px 0 6px; color: var(--c-text-2); font-size: .8125rem; }
.gh-mf__legend ul { list-style: none; margin: 0; padding: 0; }
.gh-mf__legend li { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.gh-mf__lplaces { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); column-gap: 12px; font-size: .8125rem; }
.gh-mf__legend li span { width: 22px; height: 16px; border-radius: 2px; border: 1px solid rgba(0,0,0,.12); flex: none; }
.gh-mf__tip { position: absolute; z-index: 6; pointer-events: none; background: #1b1f27; color: #fff; border-radius: 4px; padding: 6px 9px; font: var(--ecl-font-xs); max-width: 220px; }
.gh-mf__tip strong { display: block; }
.gh-mf__hint { position: absolute; z-index: 3; left: 0; right: 0; bottom: 22px; text-align: center; padding: 6px 12px; background: rgba(255,255,255,.82); font: var(--ecl-font-s); pointer-events: none; }
.gh-mf__attr { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 3px 10px; text-align: right; background: rgba(255,255,255,.72); font-size: 11px; color: #3b4350; pointer-events: none; }
@media (max-width: 640px) {
  .gh-mf__tools button { width: 38px; height: 38px; }
  .gh-mf__panel { left: 56px; width: calc(100% - 68px); }
  .gh-mf__legend { bottom: 56px; max-width: calc(100% - 70px); }
  .gh-mf__lplaces { grid-template-columns: 1fr; }
  .gh-mf__poinote { top: 8px; right: 8px; left: 54px; max-width: none; border-radius: 6px; }
}

/* ── Footer ───────────────────────────────────────────────────────────── */
.gh-foot { background: #f3f6fc; border-top: 1px solid #dbe4f8; padding: 48px 0 24px; margin-top: 48px; color: #1b1f27; }
.gh-foot__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; }
.gh-foot__row--second { border-top: 2px solid #cfdaf5; margin-top: 40px; padding-top: 40px; }
.gh-foot__brand { display: inline-flex; align-items: center; gap: 12px; color: #4d5566; text-decoration: none; font-weight: 700; font-size: 2.1rem; letter-spacing: -.02em; line-height: 1.05; }
.gh-foot__brand svg { width: 64px; height: 64px; flex: none; }
.gh-foot__brand--s { font-size: 1.25rem; }
.gh-foot__brand--s svg { width: 52px; height: 52px; }
.gh-foot__about { margin: 16px 0 12px; font-size: 1rem; line-height: 1.5; max-width: 34rem; }
.gh-foot__title { font: 400 1.5rem/1.3 var(--ecl-font-family-default, Arial, sans-serif); margin: 0 0 4px; padding-bottom: 14px; border-bottom: 1px solid #cfdaf5; }
.gh-foot__block + .gh-foot__block { margin-top: 28px; }
.gh-foot__list { list-style: none; margin: 12px 0 0; padding: 0; }
.gh-foot__item { margin: 0 0 10px; }
.gh-foot__link { font-size: 1.05rem; }
.gh-foot__socials { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.gh-foot__social { width: 58px; height: 58px; display: grid; place-items: center; background: #0e47cb; color: #fff; border-radius: 6px; }
a.gh-foot__social:hover, a.gh-foot__social:focus-visible { background: #0a328e; }
.gh-foot__social--soon { background: #8ba6e3; cursor: default; }
.gh-foot__fine { margin: 40px 0 0; font-size: .8125rem; color: #4d5566; }
@media (max-width: 900px) {
  .gh-foot__row { grid-template-columns: 1fr; }
  .gh-foot__brand { font-size: 1.7rem; }
}

/* ── Home: feature blocks (image with an overlapping card) ───────────── */
.gh-section--warm { background: #f6f5f2; }
.gh-feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; margin-top: 56px; }
.gh-feature__media { grid-column: 1 / 8; grid-row: 1; margin: 0; border-radius: 6px; overflow: hidden; background: #e9edf3; }
.gh-feature__media img { display: block; width: 100%; height: clamp(240px, 30vw, 380px); object-fit: cover; object-position: center; }
.gh-feature__card { grid-column: 7 / 12; grid-row: 1; position: relative; z-index: 1; background: #fff; border: 1px solid #e3e1db; padding: 28px 30px; margin-top: 64px; box-shadow: 0 6px 22px rgba(20, 30, 60, .06); }
.gh-feature--flip .gh-feature__media { grid-column: 6 / 13; }
.gh-feature--flip .gh-feature__card { grid-column: 1 / 7; margin-top: 64px; }
.gh-feature__title { margin: 0 0 12px; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; color: #1b1f27; }
.gh-feature__card p { margin: 0 0 16px; color: #3b4350; line-height: 1.6; }
.gh-feature__link { font-weight: 700; color: var(--c-primary, #0e47cb); text-decoration: none; }
.gh-feature__link:hover, .gh-feature__link:focus-visible { text-decoration: underline; }
.gh-more { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 56px; padding-top: 24px; border-top: 1px solid #e3e1db; font-size: 1rem; }
.gh-more span { color: #5a6270; }
.gh-more a { font-weight: 700; color: var(--c-primary, #0e47cb); text-decoration: none; }
.gh-more a:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .gh-feature, .gh-feature--flip { display: block; margin-top: 40px; }
  .gh-feature__media img { height: 220px; }
  .gh-feature__card, .gh-feature--flip .gh-feature__card { margin: -36px 14px 0; padding: 20px 20px 22px; }
}

/* ── Home: audiences ──────────────────────────────────────────────────── */
.gh-audiences { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.gh-aud { background: #fff; border: 1px solid #dbe4f8; border-radius: 8px; padding: 24px 22px 26px; box-shadow: 0 4px 16px rgba(14, 71, 203, .06); transition: transform .15s, box-shadow .15s; }
.gh-aud:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(14, 71, 203, .12); }
.gh-aud__icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 10px; background: #e8eefb; color: var(--c-primary, #0e47cb); margin-bottom: 16px; }
.gh-aud__who { margin: 0 0 4px; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #5a6270; }
.gh-aud__title { margin: 0 0 10px; font-size: 1.25rem; font-weight: 700; color: #1b1f27; }
.gh-aud__text { margin: 0; color: #3b4350; line-height: 1.55; }
@media (max-width: 1000px) { .gh-audiences { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gh-audiences { grid-template-columns: 1fr; gap: 14px; } .gh-aud { padding: 20px; } }

/* ── Header on phones: one tidy row ───────────────────────────────────── */
@media (max-width: 640px) {
  .ecl-site-header__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: nowrap; }
  .gh-logo { gap: 8px; min-width: 0; }
  .gh-logo__mark { width: 34px !important; height: 34px !important; }
  .gh-logo__name { font-size: 1.05rem !important; white-space: nowrap; }
  .gh-logo__tag { display: none !important; }
  .ecl-site-header__action { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; margin-left: auto; }
  .gh-lang { margin-right: 2px; gap: 0; }
  .gh-lang svg { display: none; }
  .gh-lang__select { max-width: 92px; padding: 4px 18px 4px 6px; font-size: .8125rem; }
  .gh-account__signin { padding: 6px !important; min-width: 0; }
  .gh-account__signin span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gh-account__name { display: none; }
  .ecl-site-header__search-toggle { padding: 6px !important; }
  .gh-identity__inner > span { display: none; }
  .gh-hero h1, .gh-hero__title { font-size: 2rem !important; line-height: 1.15; }
}

/* Language switcher in the identity strip (dark bar at the very top). */
.gh-identity .gh-lang { margin: 0 4px 0 auto; color: #fff; }
.gh-identity .gh-lang + details { margin-left: 16px; }
.gh-identity .gh-lang__select { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.45); padding: 3px 22px 3px 8px; font-size: .875rem; }
.gh-identity .gh-lang__select option { color: #1b1f27; }
.gh-identity .gh-lang__select:focus-visible { outline-color: #fcd116; }
@media (max-width: 640px) {
  .gh-identity .gh-lang { margin-left: auto; }
  .gh-identity .gh-lang svg { display: inline; }
  .gh-identity .gh-lang + details { margin-left: 10px; }
  .gh-identity .gh-lang__select { max-width: 112px; }
  .gh-identity summary { font-size: .8125rem; }
}
@media (max-width: 380px) { .gh-identity summary { font-size: 0; gap: 0; } .gh-identity summary::before { content: "Official?"; font-size: .8125rem; } }

/* ── Usage: world bubbles, the portal in use ─────────────────────────── */
.gh-world { position: relative; background: #e9edf2; border-radius: 6px; overflow: hidden; }
.gh-world__svg { display: block; width: 100%; height: auto; }
.gh-world__dots circle { fill: rgba(14, 71, 203, .62); stroke: #fff; cursor: default; }
.gh-world__dots circle:hover { fill: #0e47cb; }
.gh-world__tip { position: absolute; z-index: 2; pointer-events: none; background: #1b1f27; color: #fff; border-radius: 4px; padding: 5px 8px; font: var(--ecl-font-xs); }
.gh-world__tip strong { display: block; }
.gh-world__empty { position: absolute; inset: auto 0 8px; text-align: center; margin: 0; font-size: .8125rem; color: var(--c-text-2); }
.gh-usage__line { font-weight: 700; margin: 0 0 8px; }
.gh-usage__mini .gh-world { border-radius: 4px; }
.gh-usage__map { max-width: 1100px; }
.gh-usage__days { width: 100%; max-width: 900px; height: auto; display: block; }
.gh-usage__bar { fill: #2a78d6; }
.gh-usage__days g:hover .gh-usage__bar { fill: #0e47cb; }
.gh-usage__grid { stroke: #e3e7ee; stroke-width: 1; }
.gh-usage__base { stroke: #9aa3b2; stroke-width: 1; }
.gh-usage__axis { font-size: 11px; fill: #5b6474; font-family: var(--ecl-font-family-default, Arial, sans-serif); }
.gh-usage__top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.gh-usage__top h3 { margin: 0 0 8px; font-size: 1.125rem; }
.gh-usage__list { margin: 0; padding-left: 1.4em; }
.gh-usage__list li { padding: 6px 0; border-bottom: 1px solid #e3e7ee; }
.gh-usage__list li::after { content: ""; display: table; clear: both; }
.gh-usage__list li span { float: right; margin-left: 12px; color: var(--c-text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .gh-usage__top { grid-template-columns: 1fr; } }
