/* ============================================================
   ORBIS globe: /globe only. Loaded after style.css and uses its tokens.
   The stage fills the window under the header. Two panels float over it
   (controls left, details right); on a phone they become a drawer and a sheet.
   ============================================================ */

.globe-page { background: #070605; }
.globe-page .sticky-cta { display: none; }

.gl {
  --fl: 16px; --fr: 16px; --pw-l: 328px; --pw-r: 388px;
  position: relative;
  height: calc(100vh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  min-height: 540px;
  overflow: hidden;
  background: #070605;
  color: var(--text);
  font-family: var(--body);
  -webkit-tap-highlight-color: transparent;
}
.gl.has-left { --fl: calc(var(--pw-l) + 32px); }
.gl.has-right { --fr: calc(var(--pw-r) + 32px); }
.gl [hidden] { display: none !important; }
.gl button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.gl button:disabled { cursor: default; }
.gl :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.gl-stage { position: absolute; inset: 0; touch-action: none; }
.gl-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ---------- panels ---------- */

.gl-panel {
  position: absolute; top: 16px; bottom: 16px; z-index: 5;
  display: flex; flex-direction: column;
  background: rgba(22, 20, 17, 0.94);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.gl-left { left: 16px; width: var(--pw-l); }
.gl-right { right: 16px; width: var(--pw-r); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 244, 230, 0.18) transparent; }

.gl-ibtn {
  display: inline-grid !important; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 10px; color: var(--text-2) !important;
  transition: background-color 0.15s, color 0.15s;
}
.gl-ibtn:hover { background: rgba(255, 244, 230, 0.09) !important; color: var(--text) !important; }
.gl-ibtn[aria-pressed="true"] { background: rgba(106, 165, 255, 0.18) !important; color: var(--accent-light) !important; }

.gl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 18px 12px 4px 20px; }
.gl-title { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.05; letter-spacing: -0.01em; margin: 0; }
.gl-sub { margin: 6px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--text-2); }

.gl-search { position: relative; padding: 12px 16px 0; }
.gl-search-box, .gl-filter {
  display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px;
  background: rgba(255, 244, 230, 0.06); border: 1px solid var(--hairline); border-radius: 12px; color: var(--text-3);
  transition: border-color 0.15s, background-color 0.15s;
}
.gl-search-box:focus-within, .gl-filter:focus-within { border-color: rgba(106, 165, 255, 0.65); background: rgba(255, 244, 230, 0.09); }
.gl-search-box input, .gl-filter input {
  flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 14.5px;
}
.gl-search-box input:focus-visible, .gl-filter input:focus-visible { outline: 0; }
.gl-search-box input::placeholder, .gl-filter input::placeholder { color: var(--text-3); }
.gl-search-box input::-webkit-search-cancel-button, .gl-filter input::-webkit-search-cancel-button { -webkit-appearance: none; }
.gl-results {
  position: absolute; left: 16px; right: 16px; top: calc(100% + 6px); z-index: 4;
  background: #23201c; border: 1px solid rgba(255, 244, 230, 0.16); border-radius: 12px; padding: 5px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.gl-result { display: flex !important; align-items: center; gap: 10px; width: 100%; padding: 8px 9px !important; border-radius: 8px; font-size: 14px; }
.gl-result.is-on, .gl-result:hover { background: rgba(255, 244, 230, 0.09) !important; }
.gl-result-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-result-kind { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.gl-result-dot { width: 20px; height: 15px; display: grid; place-items: center; flex: none; }
.gl-result-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }

.gl-flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12); }
.gl-flag-lg { width: 32px; height: 24px; border-radius: 4px; }

.gl-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 14px 16px 0; padding: 3px; background: rgba(255, 244, 230, 0.05); border-radius: 12px; }
.gl-tabs button {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px 7px; border-radius: 9px;
  font-size: 11.5px; font-weight: 600; color: var(--text-3); text-align: center; transition: background-color 0.15s, color 0.15s;
}
.gl-tabs button:hover { color: var(--text); }
.gl-tabs button[aria-selected="true"] { background: rgba(255, 244, 230, 0.12); color: var(--text); }

.gl-panes { flex: 1; min-height: 0; margin-top: 6px; }
.gl-pane { height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 4px 10px 16px; scrollbar-width: thin; scrollbar-color: rgba(255, 244, 230, 0.18) transparent; }

.gl-group { margin: 14px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); }
.gl-row {
  display: flex !important; align-items: center; gap: 11px; width: 100%; min-height: 40px; padding: 7px 10px !important; border-radius: 10px;
  font-size: 14.5px; color: var(--text) !important; transition: background-color 0.15s;
}
.gl-row:hover { background: rgba(255, 244, 230, 0.07) !important; }
.gl-row.is-on { background: rgba(106, 165, 255, 0.16) !important; box-shadow: inset 0 0 0 1px rgba(106, 165, 255, 0.45); }
.gl-row-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 244, 230, 0.07); color: var(--text-2); flex: none; }
.gl-row-text { flex: 1; min-width: 0; line-height: 1.3; }
.gl-count { font-size: 12px; font-weight: 500; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.gl-switch { position: relative; width: 34px; height: 20px; border-radius: 10px; background: rgba(255, 244, 230, 0.16); flex: none; transition: background-color 0.18s; }
.gl-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #EEE8E0; transition: transform 0.18s; }
.gl-layer[aria-checked="true"] .gl-switch { background: var(--accent); }
.gl-layer[aria-checked="true"] .gl-switch::after { transform: translateX(14px); background: #fff; }
.gl-layer[aria-checked="true"] .gl-row-icon { background: rgba(106, 165, 255, 0.18); color: var(--accent-light); }
.gl-hint { display: flex; gap: 8px; margin: 16px 10px 0; padding: 11px 12px; border-radius: 10px; background: rgba(255, 244, 230, 0.05); font-size: 13px; line-height: 1.45; color: var(--text-2); }
.gl-hint svg { flex: none; margin-top: 2px; color: var(--text-3); }

.gl-filter { margin: 8px 6px 10px; height: 36px; }
.gl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#glFeatured { padding: 0 6px 10px; }
.gl-chip {
  display: inline-flex !important; align-items: center; gap: 6px; min-height: 30px; padding: 4px 11px !important; border-radius: 999px;
  background: rgba(255, 244, 230, 0.07) !important; border: 1px solid var(--hairline) !important; font-size: 13px; line-height: 1.25; color: var(--text) !important;
  transition: background-color 0.15s, border-color 0.15s;
}
button.gl-chip:hover { background: rgba(255, 244, 230, 0.13) !important; border-color: rgba(255, 244, 230, 0.24) !important; }
.gl-chip.is-on { background: rgba(106, 165, 255, 0.2) !important; border-color: rgba(106, 165, 255, 0.6) !important; }
.gl-chip.is-plain { color: var(--text-2) !important; }
.gl-chip b { color: var(--accent-light); font-weight: 700; font-variant-numeric: tabular-nums; }
.gl-cat { border-top: 1px solid var(--hairline); }
.gl-cat summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 10px; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; border-radius: 8px; }
.gl-cat summary::-webkit-details-marker { display: none; }
.gl-cat summary:hover { background: rgba(255, 244, 230, 0.05); }
.gl-cat[open] summary { color: var(--accent-light); }
.gl-cat .gl-row { min-height: 34px; font-size: 14px; padding-left: 14px !important; }
.gl-cat[open] { padding-bottom: 8px; }

/* ---------- the card on the right ---------- */

.gl-card-head { position: relative; padding: 18px 56px 4px 20px; }
.gl-card-head.has-photo { padding-top: 0; }
.gl-photo { position: relative; height: 150px; margin: 0 -56px 14px -20px; background: #14120f; overflow: hidden; }
.gl-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 20, 17, 0) 45%, rgba(22, 20, 17, 0.92) 100%); }
.gl-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.has-photo .gl-close { background: rgba(14, 13, 11, 0.6) !important; color: #fff !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.gl-kicker { margin: 0 0 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); }
.gl-card-title h2 { display: flex; align-items: center; gap: 11px; margin: 0; font-family: var(--display); font-weight: 500; font-size: 27px; line-height: 1.12; letter-spacing: -0.01em; }
.gl-card-sub { margin: 10px 0 0; }
.gl-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 244, 230, 0.07); font-size: 13px; font-weight: 600; line-height: 1.3; }
.gl-status i, .gl-rel-label i, .gl-side-name i, .gl-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.gl-dot { margin-right: 7px; }

.gl-card-body { padding: 12px 20px 22px; display: flex; flex-direction: column; gap: 14px; }
.gl-card-body > * { margin: 0; }
.gl-lede { font-size: 15.5px; line-height: 1.5; color: var(--text); }
.gl-text { font-size: 14.5px; line-height: 1.58; color: var(--text-2); }
.gl-note { font-size: 13.5px; color: var(--text-3); padding: 6px 2px; margin: 0; }
.gl-sec { display: flex; flex-direction: column; gap: 9px; padding-top: 14px; border-top: 1px solid var(--hairline); }
.gl-sec > * { margin: 0; }
.gl-sec h3 { display: flex; align-items: center; font-family: var(--body); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.gl-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gl-sec-head h3 { margin: 0; }
.gl-mini { display: inline-flex !important; align-items: center; gap: 5px; padding: 4px 10px !important; border-radius: 999px; border: 1px solid var(--hairline) !important; font-size: 12px; font-weight: 600; color: var(--text-2) !important; }
.gl-mini:hover { border-color: rgba(255, 244, 230, 0.3) !important; color: var(--text) !important; }
.gl-mini.is-on { background: rgba(106, 165, 255, 0.18) !important; border-color: rgba(106, 165, 255, 0.55) !important; color: var(--accent-light) !important; }

.gl-callout { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: rgba(106, 165, 255, 0.12); border: 1px solid rgba(106, 165, 255, 0.35); }
.gl-callout-label { font-size: 12px; font-weight: 600; color: var(--accent-light); }
.gl-callout-value { font-family: var(--brand); font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.gl-callout-sub { font-size: 13px; color: var(--text-2); line-height: 1.4; }

.gl-leader { display: flex; align-items: center; gap: 12px; }
.gl-leader img, .gl-leader-ph { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: center 20%; flex: none; background: rgba(255, 244, 230, 0.08); }
.gl-leader-ph { display: grid; place-items: center; color: var(--text-3); }
.gl-leader div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gl-leader strong { font-size: 15px; font-weight: 600; }
.gl-leader span { font-size: 13px; color: var(--text-2); line-height: 1.35; }

.gl-grade { display: flex; align-items: center; gap: 13px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 244, 230, 0.05); border: 1px solid var(--hairline); transition: border-color 0.15s; }
.gl-grade:hover { border-color: rgba(255, 244, 230, 0.26); }
.gl-grade b { font-family: var(--display); font-size: 34px; font-weight: 500; line-height: 1; min-width: 34px; text-align: center; }
.gl-grade span { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.gl-grade strong { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }

.gl-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gl-fact { display: flex !important; flex-direction: column; gap: 1px; padding: 10px 12px !important; border-radius: 11px; background: rgba(255, 244, 230, 0.055) !important; border: 1px solid transparent !important; min-width: 0; }
button.gl-fact:hover { border-color: rgba(106, 165, 255, 0.55) !important; background: rgba(106, 165, 255, 0.1) !important; }
.gl-fact-label { font-size: 12px; color: var(--text-3); line-height: 1.3; }
.gl-fact-value { font-family: var(--brand); font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: var(--text); overflow-wrap: anywhere; }
.gl-fact-sub { font-size: 12px; color: var(--text-3); line-height: 1.35; }

.gl-cchips { display: flex; flex-wrap: wrap; gap: 6px; }
.gl-cchip { display: inline-flex !important; align-items: center; gap: 7px; min-height: 30px; padding: 4px 11px 4px 7px !important; border-radius: 999px; background: rgba(255, 244, 230, 0.07) !important; font-size: 13px; line-height: 1.25; transition: background-color 0.15s; }
button.gl-cchip:not(:disabled):hover { background: rgba(255, 244, 230, 0.15) !important; }
.gl-cchip.is-plain { padding-left: 11px !important; color: var(--text-2); }
.gl-cchip em { font-style: normal; font-size: 12px; color: var(--text-3); }
.gl-rel { display: flex; flex-direction: column; gap: 6px; }
.gl-rel-label { display: flex; align-items: center; gap: 8px; margin: 2px 0 0; font-size: 13px; font-weight: 600; }
.gl-rel details summary { font-size: 13px; color: var(--accent-light); cursor: pointer; padding: 2px 0 6px; }
.gl-linklist { display: flex; flex-direction: column; }
.gl-linklist a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 2px; border-top: 1px solid var(--hairline); font-size: 13.5px; color: var(--text-2); }
.gl-linklist a:hover { color: var(--text); }
.gl-linklist a svg { color: var(--text-3); flex: none; }

.gl-list { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px !important; }
.gl-item { display: flex !important; align-items: flex-start; gap: 11px; width: 100%; padding: 8px !important; border-radius: 10px; transition: background-color 0.15s; }
.gl-item:hover { background: rgba(255, 244, 230, 0.07) !important; }
.gl-item > i { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-top: 6px; }
.gl-item span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gl-item strong { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.gl-item em { font-style: normal; font-size: 13px; color: var(--text-2); line-height: 1.4; }
.gl-item-grade { font-family: var(--display); font-size: 22px; font-weight: 500; line-height: 1.1; width: 30px; text-align: center; flex: none; }

.gl-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gl-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.gl-side > * { margin: 0; }
.gl-side-name { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.gl-side-sub { margin: 4px 0 0; font-size: 12px; color: var(--text-3); }

.gl-latest { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gl-latest li { display: grid; grid-template-columns: 50px 1fr; gap: 8px; }
.gl-latest time { font-size: 12px; font-weight: 600; color: var(--accent-light); padding-top: 2px; white-space: nowrap; }
.gl-latest p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }

.gl-trade { display: flex; flex-direction: column; gap: 5px; }
.gl-trade + .gl-trade { margin-top: 6px; }
.gl-trade-title { margin: 0; font-size: 12.5px; color: var(--text-3); }
.gl-bar { display: grid; grid-template-columns: 132px 1fr 36px; align-items: center; gap: 8px; font-size: 13px; }
.gl-bar-name { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-bar-track { height: 6px; border-radius: 3px; background: rgba(255, 244, 230, 0.07); overflow: hidden; }
.gl-bar-track i { display: block; height: 100%; border-radius: 3px; background: var(--data); }
.gl-bar-val { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }

.gl-top { list-style: none; margin: 0 -8px !important; padding: 0; display: flex; flex-direction: column; }
.gl-top button { position: relative; display: grid !important; grid-template-columns: 22px 20px 1fr auto; align-items: center; gap: 9px; width: 100%; padding: 8px 8px 11px !important; border-radius: 9px; font-size: 14px; }
.gl-top button:not(:disabled):hover { background: rgba(255, 244, 230, 0.07) !important; }
.gl-top-rank { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; text-align: right; }
.gl-top-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-top-val { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gl-top-bar { position: absolute; left: 39px; right: 8px; bottom: 4px; height: 3px; border-radius: 2px; background: rgba(255, 244, 230, 0.06); overflow: hidden; }
.gl-top-bar i { display: block; height: 100%; background: var(--data); border-radius: 2px; }

.gl-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.gl-more-link {
  display: flex !important; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 10px 16px !important; border-radius: 12px;
  background: rgba(255, 244, 230, 0.08) !important; border: 1px solid var(--hairline) !important; font-size: 14.5px; font-weight: 600; line-height: 1.3; color: var(--text) !important;
  transition: background-color 0.15s, border-color 0.15s;
}
.gl-more-link:hover { background: rgba(255, 244, 230, 0.14) !important; border-color: rgba(255, 244, 230, 0.26) !important; }
.gl-more-link svg { flex: none; color: var(--text-2); }
.gl-actions .gl-more-link:first-child { background: var(--ice) !important; border-color: transparent !important; color: #12100D !important; }
.gl-actions .gl-more-link:first-child svg { color: #12100D; }
.gl-actions .gl-more-link:first-child:hover { background: #fff !important; }

.gl-appcard { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255, 244, 230, 0.055); border: 1px solid var(--hairline); }
.gl-appcard p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.gl-appcard strong { display: block; color: var(--text); font-weight: 600; }
.gl-appcard .btn { flex: none; }
.gl-card-body > .gl-appcard { margin-top: 4px; }
.gl-appcard.is-pinned { position: sticky; bottom: 14px; z-index: 2; background: #26221d; box-shadow: 0 -14px 24px 6px rgba(22, 20, 17, 0.94), 0 10px 28px rgba(0, 0, 0, 0.5); }
.gl-views { margin-bottom: -2px !important; }

/* ---------- over the globe: legend, tools, tooltip ---------- */

.gl-legend {
  position: absolute; z-index: 4; top: 16px; left: var(--fl); max-width: min(340px, calc(100% - var(--fl) - var(--fr)));
  padding: 11px 12px 11px 14px; border-radius: 14px; background: rgba(22, 20, 17, 0.84); border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
.gl-legend-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gl-legend-head strong { font-size: 13.5px; font-weight: 600; line-height: 1.35; padding-top: 3px; }
.gl-legend-x { width: 26px !important; height: 26px !important; margin: -1px -3px 0 0; }
.gl-legend-items { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px 12px; }
.gl-legend-items li { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.gl-legend-items i { width: 11px; height: 11px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.gl-legend-note { margin: 8px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--text-3); }
.gl-legend-note a { text-decoration: underline; text-decoration-color: rgba(255, 244, 230, 0.25); text-underline-offset: 2px; }
.gl-legend-note a:hover { color: var(--text-2); }

.gl-tools { position: absolute; z-index: 4; left: var(--fl); right: var(--fr); bottom: 16px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; pointer-events: none; }
.gl-tools > * { pointer-events: auto; }
.gl-styles, .gl-zoom { display: flex; padding: 3px; gap: 2px; border-radius: 13px; background: rgba(22, 20, 17, 0.84); border: 1px solid var(--hairline); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.gl-zoom { flex-direction: column; }
.gl-styles button { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--text-2); transition: background-color 0.15s, color 0.15s; }
.gl-styles button:hover { color: var(--text); }
.gl-styles button[aria-pressed="true"] { background: rgba(255, 244, 230, 0.13); color: var(--text); }

.gl-more {
  position: absolute; z-index: 4; bottom: 19px; right: calc(var(--fr) + 56px);
  display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; color: var(--text-2); white-space: nowrap;
  background: rgba(22, 20, 17, 0.84); border: 1px solid var(--hairline); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: color 0.15s;
}
.gl-more:hover { color: var(--text); }

.gl-fab {
  position: absolute; z-index: 5; display: inline-flex !important; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 13px !important; border-radius: 13px;
  background: rgba(22, 20, 17, 0.88) !important; border: 1px solid var(--hairline) !important; font-size: 14px; font-weight: 600;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.gl-fab:hover { border-color: rgba(255, 244, 230, 0.28) !important; }
.gl-left-open { top: 16px; left: 16px; }
.gl-right-open { top: 16px; right: 16px; max-width: 46vw; }
.gl-right-open span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl:not(.has-left) .gl-legend { top: 70px; }

.gl-tip {
  position: absolute; z-index: 6; top: 0; left: 0; pointer-events: none; max-width: 280px;
  display: flex; flex-direction: column; gap: 2px; padding: 8px 11px; border-radius: 10px;
  background: rgba(14, 13, 11, 0.94); border: 1px solid rgba(255, 244, 230, 0.16); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}
.gl-tip strong { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.gl-tip span { font-size: 12.5px; color: var(--text-2); line-height: 1.35; }

.gl-loading { position: absolute; z-index: 3; left: calc(var(--fl) + (100% - var(--fl) - var(--fr)) / 2); top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); }
.gl-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 244, 230, 0.18); border-top-color: var(--accent); animation: gl-spin 0.8s linear infinite; }
@keyframes gl-spin { to { transform: rotate(360deg); } }
.gl-stage { opacity: 0; transition: opacity 0.7s ease; }
.gl.is-ready .gl-stage { opacity: 1; }

.gl-fallback { position: absolute; z-index: 3; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.gl-fallback h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 28px; }
.gl-fallback p { margin: 0; max-width: 440px; color: var(--text-2); line-height: 1.55; }
.gl-fallback-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px !important; }
.gl-fallback-links .btn { background: rgba(255, 244, 230, 0.1); color: var(--text); }

/* ---------- under the globe ---------- */

.gl-about { background: var(--base); border-top: 1px solid var(--hairline); padding: 72px 0 80px; }
.gl-about-inner { display: flex; flex-direction: column; gap: 56px; }
.gl-h2 { margin: 0 0 14px; font-family: var(--display); font-weight: 500; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; letter-spacing: -0.01em; color: var(--text); }
.gl-about-lead { max-width: 760px; }
.gl-about-lead p { margin: 0 0 12px; font-size: 17px; line-height: 1.65; color: var(--text-2); }
.gl-about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gl-feature { padding: 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--hairline); }
.gl-feature-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: rgba(106, 165, 255, 0.13); color: var(--accent-light); }
.gl-feature h3 { margin: 16px 0 6px; font-family: var(--body); font-size: 16.5px; font-weight: 600; color: var(--text); }
.gl-feature p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.gl-h3 { margin: 26px 0 10px; font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-3); }
.gl-h3 a:hover { color: var(--text); }
.gl-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gl-pills a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hairline); font-size: 14px; color: var(--text); transition: border-color 0.15s, background-color 0.15s; }
.gl-pills a:hover { border-color: rgba(255, 244, 230, 0.28); background: var(--elevated); }
.gl-pills i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.gl-faq { max-width: 760px; }
.gl-faq details { border-top: 1px solid var(--hairline); }
.gl-faq details:last-child { border-bottom: 1px solid var(--hairline); }
.gl-faq summary { padding: 16px 28px 16px 0; font-size: 16.5px; font-weight: 600; color: var(--text); cursor: pointer; list-style: none; position: relative; }
.gl-faq summary::-webkit-details-marker { display: none; }
.gl-faq summary::after { content: "+"; position: absolute; right: 2px; top: 13px; font-size: 22px; font-weight: 400; color: var(--text-3); }
.gl-faq details[open] summary::after { content: "−"; }
.gl-faq details p { margin: 0 0 18px; font-size: 15.5px; line-height: 1.65; color: var(--text-2); }
.gl-app { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px 30px; border-radius: 18px; background: var(--surface); border: 1px solid var(--hairline); }
.gl-app .gl-h2 { margin-bottom: 6px; font-size: 26px; }
.gl-app p { margin: 0; color: var(--text-2); line-height: 1.55; max-width: 560px; }
.gl-app .btn { flex: none; }
.gl-credits { margin: -24px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-3); }

/* ---------- narrower screens ---------- */

@media (max-width: 1100px) { .gl-more { display: none; } }
@media (max-width: 1180px) {
  .gl { --pw-l: 296px; --pw-r: 344px; }
  .gl-styles button span { display: none; }
  .gl-styles button { padding: 0 10px; }
  .gl-bar { grid-template-columns: 112px 1fr 34px; }
}
@media (max-width: 960px) {
  .gl-about-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone: the controls are a drawer over the globe, the card is a sheet at the bottom. */
@media (max-width: 759px) {
  .gl { --fl: 10px !important; --fr: 10px !important; min-height: 480px; }
  .gl-panel { border-radius: 18px; }
  .gl-left { left: 8px; right: 8px; top: 8px; bottom: 8px; width: auto; z-index: 8; background: rgba(22, 20, 17, 0.96); }
  .gl-right { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 46%; z-index: 7; background: rgba(22, 20, 17, 0.95); }
  .gl-photo { height: 96px; }
  .gl-card-title h2 { font-size: 23px; }
  .gl-left-open { top: 10px; left: 10px; height: 40px; }
  .gl-right-open { top: auto; bottom: 12px; right: auto; left: 50%; transform: translateX(-50%); max-width: 70vw; }
  .gl-legend { top: 58px !important; left: 10px; right: 10px; max-width: none; padding: 8px 10px 9px 12px; }
  .gl-legend-items { gap: 4px 10px; }
  .gl-legend-note { display: none; }
  .gl-tools { bottom: auto; top: 10px; left: auto; right: 10px; }
  .gl-zoom { display: none; }
  .gl-styles button { width: 34px; padding: 0; justify-content: center; }
  .gl-tip { display: none !important; }
  .gl-about { padding: 48px 0 56px; }
  .gl-about-inner { gap: 40px; }
  .gl-about-grid { grid-template-columns: 1fr; }
  .gl-app { flex-direction: column; align-items: flex-start; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .gl-stage { transition: none; }
  .gl-spinner { animation-duration: 2.4s; }
}
