/* The globe explorer (T95): homepage section and /explore/. Scoped under .gx so no
   rule can reach the rest of the site (Tailwind owns everything else). MMI colours
   are the only saturated colours here (design system); the space around the globe
   is a pale sky, never black (no dark regions on public pages). */
.gx {
  --gx-primary: #0c3b5c; --gx-link: #135f7c; --gx-ink: #0f2231; --gx-ink-2: #364b5c;
  --gx-muted: #5b6b77; --gx-line: #d8e0e7; --gx-tint: #e8f0f4; --gx-sky: #eef4f7;
  --gx-paper: #ffffff; --gx-focus: #2b8fb0;
  --gx-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--gx-ink);
}
.gx [hidden] { display: none !important; }
.gx a { color: var(--gx-link); }
.gx .controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.gx .chip { font-weight: 600; font-size: .9rem; font-family: inherit; border: 1px solid var(--gx-line); background: var(--gx-paper); color: var(--gx-ink-2); border-radius: 999px; padding: 6px 14px 6px 10px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.gx .chip[aria-pressed="true"] { border-color: var(--gx-primary); color: var(--gx-ink); background: var(--gx-tint); }
.gx .chip .n { font-family: var(--gx-mono); font-size: .8rem; color: var(--gx-muted); font-variant-numeric: tabular-nums; }
.gx .chip .sw { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--gx-primary); }
.gx .chip .sw.filled { background: var(--gx-primary); }
.gx .controls .spacer { flex: 1; }
.gx .controls a.full { font-weight: 600; text-decoration: none; }
.gx .controls a.full:hover { text-decoration: underline; }
.gx .mapbox { position: relative; border: 1px solid var(--gx-line); border-radius: 10px; overflow: hidden; background: var(--gx-sky); aspect-ratio: 16 / 9; max-width: 100%; min-height: 420px; }
@media (max-width: 640px) { .gx .mapbox { aspect-ratio: 1 / 1.08; height: auto; min-height: 0; } }
.gx #gx-map { position: absolute; inset: 0; }
.gx .maplibregl-canvas:focus-visible { outline: 2px solid var(--gx-focus); }
.gx .overlay { position: absolute; background: rgba(255,255,255,.96); border: 1px solid var(--gx-line); border-radius: 8px; box-shadow: 0 2px 10px rgba(15,34,49,.08); }
.gx .legend { left: 10px; bottom: 28px; font-size: .82rem; color: var(--gx-ink-2); max-width: 250px; }
.gx .legend summary { cursor: pointer; padding: 7px 12px; font-weight: 700; color: var(--gx-ink); list-style: none; }
.gx .legend summary::-webkit-details-marker { display: none; }
.gx .legend summary::after { content: " +"; color: var(--gx-muted); }
.gx .legend[open] summary::after { content: " \2212"; }
.gx .legend .body { padding: 0 12px 10px; display: grid; gap: 8px; }
.gx .legend .row { display: flex; align-items: center; gap: 8px; }
.gx .legend .sizes { display: flex; align-items: flex-end; gap: 10px; }
.gx .legend .sizes span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--gx-mono); font-size: .72rem; }
.gx .legend .dot { border-radius: 50%; background: var(--gx-primary); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--gx-primary); }
.gx .legend .hollow { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--gx-primary); background: rgba(255,255,255,.7); }
.gx .legend .ladder { display: flex; gap: 3px; flex-wrap: wrap; }
.gx .legend .dash { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed rgba(15,34,49,.45); }
.gx .legend .lbl { color: var(--gx-muted); font-size: .76rem; }
.gx .badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; border: 1.5px solid #1e293b; font: 600 11px/1 var(--gx-mono); color: #1e293b; }
.gx .badge.lg { min-width: 30px; height: 26px; border-radius: 13px; font-size: 13px; }
.gx .cam { cursor: pointer; display: flex; align-items: center; filter: drop-shadow(0 1px 1.5px rgba(15,34,49,.35)); }
.gx .cam .badge { box-shadow: 0 0 0 2px #fff; }
.gx .cam .count { margin-left: -4px; background: #fff; border: 1.5px solid #1e293b; border-left: 0; border-radius: 0 9px 9px 0; height: 18px; padding: 0 6px 0 7px; font: 600 10px/16px var(--gx-mono); color: #1e293b; }
.gx .cam.sel .badge { box-shadow: 0 0 0 2px #fff, 0 0 0 4.5px var(--gx-focus); }
.gx .dist { font: 600 11px/1 var(--gx-mono); background: rgba(255,255,255,.92); color: var(--gx-ink-2); border: 1px solid var(--gx-line); border-radius: 4px; padding: 3px 5px; pointer-events: none; white-space: nowrap; }
.gx .evlabel { z-index: 1;  font-weight: 700; font-size: 12.5px; line-height: 1.2; font-family: inherit; background: var(--gx-primary); color: #fff; border-radius: 4px; padding: 4px 7px; pointer-events: none; white-space: nowrap;  }
.gx .tip { position: absolute; pointer-events: none; z-index: 5; font-size: .85rem; padding: 6px 9px; max-width: 260px; line-height: 1.3; color: var(--gx-ink); }
.gx .tip b { font-weight: 700; }
.gx .tip .sub { color: var(--gx-muted); font-size: .78rem; }
.gx .panel { right: 10px; top: 10px; bottom: 10px; width: 330px; display: flex; flex-direction: column; z-index: 4; }
.gx .panel .head { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px 6px; }
.gx .panel .head .k { font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gx-link); }
.gx .panel h3 { margin: 2px 0 0; font-size: 1.12rem; line-height: 1.25; font-weight: 800; text-wrap: balance; }
.gx .panel .x { margin-left: auto; border: 0; background: none; font-size: 1.4rem; line-height: 1; color: var(--gx-muted); cursor: pointer; padding: 2px 4px; }
.gx .panel .scroll { overflow-y: auto; padding: 4px 14px 14px; min-height: 0; }
.gx .facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 6px 0 12px; font-size: .9rem; }
.gx .facts dt { color: var(--gx-muted); }
.gx .facts dd { margin: 0; font-variant-numeric: tabular-nums; }
.gx .panel h4 { font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gx-ink-2); margin: 12px 0 6px; }
.gx .camlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gx .camlist button { width: 100%; text-align: left; display: flex; gap: 9px; align-items: center; border: 1px solid var(--gx-line); background: var(--gx-paper); border-radius: 6px; padding: 6px 8px; cursor: pointer; font: inherit; font-size: .9rem; color: var(--gx-ink); }
.gx .camlist button:hover { border-color: var(--gx-link); }
.gx .camlist .meta { color: var(--gx-muted); font-size: .8rem; font-family: var(--gx-mono); margin-left: auto; white-space: nowrap; }
.gx .camlist .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx .links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-weight: 600; font-size: .92rem; }
.gx .thumb { aspect-ratio: 16/9; background: repeating-linear-gradient(135deg, #eef2f5 0 10px, #e5ebf0 10px 20px); border-radius: 6px; display: flex; align-items: flex-end; padding: 8px; color: var(--gx-ink-2); font-size: .82rem; margin: 6px 0 10px; border: 1px solid var(--gx-line); }
.gx .clipnote { font-size: .85rem; color: var(--gx-muted); margin: 4px 0 0; }
.gx .cliprow { border-top: 1px solid var(--gx-line); padding: 10px 0; }
.gx .cliprow:first-of-type { border-top: 0; }
.gx .cliprow .ttl { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.gx .attrib { position: absolute; right: 8px; bottom: 6px; font-size: .7rem; color: var(--gx-muted); background: rgba(255,255,255,.75); padding: 1px 5px; border-radius: 3px; z-index: 2; }
.gx .panel:not([hidden]) ~ .attrib { right: 350px; }
@media (max-width: 640px) {
  .gx .panel { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 56%; }
  .gx .legend { bottom: 24px; left: 8px; }
  .gx .panel:not([hidden]) ~ .legend { display: none; }
  .gx .panel:not([hidden]) ~ .attrib { right: 8px; display: none; }
}
.gx .list { margin-top: 28px; }
.gx .tablewrap { overflow-x: auto; border: 1px solid var(--gx-line); border-radius: 8px; }
.gx table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 620px; }
.gx th, .gx td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--gx-line); vertical-align: middle; }
.gx th { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gx-ink-2); background: #f6f9fb; font-weight: 700; }
.gx tbody tr:last-child td { border-bottom: 0; }
.gx td.num { font-family: var(--gx-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gx td button { text-align: left; border: 0; background: none; padding: 0; font: inherit; color: var(--gx-link); font-weight: 600; cursor: pointer; text-align: left; }
.gx td button:hover { text-decoration: underline; }
.gx tr.sel td { background: var(--gx-tint); }
.gx .seg { display: inline-flex; border: 1px solid var(--gx-line); border-radius: 999px; overflow: hidden; }
.gx .seg button { font-weight: 600; font-size: .85rem; font-family: inherit; border: 0; background: var(--gx-paper); color: var(--gx-ink-2); padding: 6px 12px; cursor: pointer; }
.gx .seg button + button { border-left: 1px solid var(--gx-line); }
.gx .seg button[aria-pressed="true"] { background: var(--gx-tint); color: var(--gx-ink); }
.gx .controls .lbl2 { font-size: .82rem; color: var(--gx-muted); font-weight: 600; }
.gx .simlabel { font-weight: 600; font-size: 11px; font-family: inherit; line-height: 1; color: #1d6f86; background: rgba(255,255,255,.8); padding: 2px 5px; border-radius: 3px; text-decoration: none; white-space: nowrap; }
.gx .simlabel:hover { text-decoration: underline; }
.gx th button.sort { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.gx th button.sort:focus-visible { outline: 2px solid var(--gx-focus); }
.gx th button.sort .ar { color: var(--gx-muted); font-size: .7rem; min-width: .7rem; }
.gx .list .controls { margin: 10px 0; }
.gx .nogl { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--gx-ink-2); }
.gx .mapbox.full { aspect-ratio: auto; height: calc(100vh - 210px); min-height: 460px; }
@media (max-width: 640px) { .gx .mapbox.full { height: calc(100svh - 190px); min-height: 360px; } }
.gx .list { margin-top: 28px; }
.gx .list h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 4px; }
.gx .list > p { margin: 0 0 10px; color: var(--gx-muted); font-size: .9rem; }
.gx figcaption { margin: 10px 0 0; color: var(--gx-ink-2); font-size: .95rem; max-width: 72ch; }
.gx .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gx .thumb { position: relative; overflow: hidden; }
.gx .thumb span { position: relative; background: rgba(255,255,255,.85); padding: 1px 6px; border-radius: 3px; }
