/* CityTicker Globe: dark weather-globe, site green and gold. */
body.ct-globe { background: #05080a; color: #e8edf0; }
body.ct-globe .ct-tapes,
body.ct-globe .copilot,
body.ct-globe .signup-prompt,
body.ct-globe #ask-box,
body.ct-globe .ask-toggle,
body.ct-globe #copilot-toggle { display: none !important; }
body.ct-globe #page-frame, body.ct-globe.copilot-open #page-frame { display: block !important; padding: 0 !important; max-width: none; width: 100%; }
body.ct-globe .ct-top { background: #05080a; border-bottom: 1px solid #1a2428; }

.gl {
  --gl-line: #00a884; --gl-gold: #c4a35a; --gl-up: #25d366; --gl-down: #ea0038;
  --gl-muted: #8b9aa0; --gl-panel: #0b1114; --gl-edge: #1a2428;
  display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  height: calc(100vh - var(--ct-top, 52px)); min-height: 520px;
  background: radial-gradient(120% 90% at 70% 40%, #0a1a1c 0%, #05080a 60%, #020405 100%);
  color: #e8edf0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.gl-list { display: flex; flex-direction: column; min-height: 0; background: var(--gl-panel); border-right: 1px solid var(--gl-edge); }
.gl-head { padding: 16px 18px 10px; border-bottom: 1px solid var(--gl-edge); }
.gl-head h1 { margin: 0; font-size: 1.15rem; letter-spacing: .02em; color: #fff; }
.gl-head h1::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gl-gold); margin-right: 8px; }
.gl-head p { margin: 4px 0 0; font-size: .8rem; color: var(--gl-muted); }
#gl-rows { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; flex: 1; }
.gl-row {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 10px 18px; color: inherit; text-decoration: none; border-left: 3px solid transparent;
  transition: background .15s, border-color .15s;
}
.gl-row:hover, .gl-row:focus-visible, .gl-row.is-focus { background: #101a1e; border-left-color: var(--gl-gold); outline: none; }
.gl-flag { width: 24px; height: 18px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgb(255 255 255 / .18); }
.gl-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.gl-name b { font-size: .95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-name small { color: var(--gl-muted); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.gl-num { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; font-variant-numeric: tabular-nums; }
.gl-level { font-size: .98rem; font-weight: 600; }
.gl-move { font-size: .78rem; font-weight: 600; }
.dir-up .gl-move, .dir-up .gl-level { color: var(--gl-up); }
.dir-down .gl-move, .dir-down .gl-level { color: var(--gl-down); }
.dir-flat .gl-move { color: var(--gl-muted); }
.dir-none .gl-level, .dir-none .gl-move { color: var(--gl-muted); }
.gl-time { min-width: 62px; text-align: right; font-size: .8rem; color: #b9c6cb; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.gl-foot { padding: 10px 18px; border-top: 1px solid var(--gl-edge); font-size: .72rem; color: var(--gl-muted); }

.gl-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
#gl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#gl-canvas:active { cursor: grabbing; }
#gl-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
#gl-labels svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#gl-labels line { stroke: rgb(255 255 255 / .35); stroke-width: 1; }
.gl-lbl {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 3px 8px 3px 6px; border-radius: 999px; font-size: 12.5px; line-height: 1.2; font-variant-numeric: tabular-nums;
  background: rgb(5 12 14 / .78); border: 1px solid rgb(255 255 255 / .22); color: #fff;
  backdrop-filter: blur(4px); pointer-events: auto; cursor: pointer; text-decoration: none;
  will-change: transform; transition: opacity .2s, border-color .15s;
}
.gl-lbl img { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; }
.gl-lbl b { font-weight: 700; letter-spacing: .02em; }
.gl-lbl .lv { font-weight: 700; }
.gl-lbl em { font-style: normal; font-size: 11px; opacity: .95; }
.gl-lbl.dir-up { border-color: rgb(37 211 102 / .75); } .gl-lbl.dir-up .lv, .gl-lbl.dir-up em { color: var(--gl-up); }
.gl-lbl.dir-down { border-color: rgb(234 0 56 / .8); } .gl-lbl.dir-down .lv, .gl-lbl.dir-down em { color: #ff4d6d; }
.gl-lbl.dir-none .lv, .gl-lbl.dir-none em, .gl-lbl.dir-flat em { color: var(--gl-muted); }
.gl-lbl.is-focus { border-color: var(--gl-gold); box-shadow: 0 0 0 2px rgb(196 163 90 / .35); z-index: 5; }
.gl-lbl.is-hidden { opacity: 0; pointer-events: none; }
.gl-hint { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; font-size: .72rem; color: #5f7077; pointer-events: none; }
.gl-nojs, .gl-nogl { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gl-muted); padding: 24px; text-align: center; }

@media (max-width: 860px) {
  .gl { grid-template-columns: 1fr; grid-template-rows: minmax(300px, 52vh) minmax(0, 1fr); height: auto; min-height: calc(100vh - var(--ct-top, 52px)); }
  .gl-stage { order: -1; }
  .gl-list { border-right: 0; border-top: 1px solid var(--gl-edge); }
  .gl-head { padding: 12px 14px 8px; } .gl-head p { display: none; }
  .gl-row { padding: 9px 14px; gap: 8px; grid-template-columns: 24px minmax(0, 1fr) auto auto; }
  .gl-time { min-width: 54px; font-size: .74rem; }
  .gl-lbl { font-size: 11px; padding: 2px 6px 2px 5px; }
  .gl-hint { font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) { .gl-lbl { transition: none; } }
