

.globe-host { display: block; min-width: 0; }
.cg { position: relative; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); min-width: 0; }
.cg [hidden] { display: none !important; }

.globe-host .cg p { margin: 0; max-width: none; line-height: 1.5; }


.cg-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cg-plate { min-width: 0; font-family: var(--font-mono), ui-monospace, monospace; font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.cg-views { display: inline-flex; border: 1px solid var(--line-2); }
.cg-views button { appearance: none; border: 0; background: transparent; color: var(--ink-dim); cursor: pointer; padding: 8px 15px; font-family: var(--font-mono), ui-monospace, monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.cg-views button + button { border-left: 1px solid var(--line-2); }
.cg-views button:hover { color: var(--ink); }
.cg-views button.on { background: var(--accent); color: #0a0b0d; }


.cg-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 340px); }
.cg-stage { position: relative; min-width: 0; height: clamp(440px, 44vw, 620px); overflow: hidden; }
.cg--page .cg-stage { height: clamp(460px, 52vw, 700px); }
.cg-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.cg-canvas.dragging { cursor: grabbing; }
.cg-hint { position: absolute; left: 18px; top: 16px; pointer-events: none; font-family: var(--font-mono), ui-monospace, monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.cg-zoom { position: absolute; right: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.cg-zoom button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line-2); background: rgba(10, 11, 13, 0.72); color: var(--ink-dim); font: 400 18px/1 var(--font-inter), system-ui, sans-serif; cursor: pointer; }
.cg-zoom button:hover { color: var(--ink); border-color: var(--ink-mute); }

.cg-insp { min-width: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; border-left: 1px solid var(--line); }
.cg-insp-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; }
.cg-k { font-family: var(--font-mono), ui-monospace, monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.cg-x { width: 28px; height: 28px; padding: 0; border: 1px solid var(--line-2); background: transparent; color: var(--ink-dim); font: 400 17px/1 var(--font-inter), system-ui, sans-serif; cursor: pointer; }
.cg-x:hover { color: var(--ink); border-color: var(--ink-mute); }
.cg p.cg-empty { color: var(--ink-dim); font-size: 14px; line-height: 1.5; }

.cg-card { display: flex; flex-direction: column; gap: 10px; }
.cg-eyebrow { font-family: var(--font-mono), ui-monospace, monospace; font-size: 10.5px; letter-spacing: 0.14em; color: var(--ink-mute); }
.cg-route { margin: 0; font-family: var(--font-jost), sans-serif; font-weight: 300; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); outline: none; overflow-wrap: anywhere; }
.cg-route:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cg-arr { color: var(--accent); }
.cg-countries { margin-top: -6px; color: var(--ink-dim); font-size: 13.5px; }
.cg-facts { margin: 4px 0 0; }
.cg-facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 8px 0; border-top: 1px dashed var(--line-2); }
.cg-facts > div:last-child { border-bottom: 1px dashed var(--line-2); }
.cg-facts dt { flex: none; font-family: var(--font-mono), ui-monospace, monospace; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-mute); }
.cg-facts dd { margin: 0; min-width: 0; text-align: right; font-family: var(--font-mono), ui-monospace, monospace; font-size: 12.5px; color: var(--ink); overflow-wrap: anywhere; }
.cg-via-k { font-family: var(--font-mono), ui-monospace, monospace; font-size: 11px; letter-spacing: 0.04em; color: var(--ink-mute); margin-bottom: 4px; }
.cg .cg-via p { color: var(--ink-dim); font-size: 13px; line-height: 1.55; }
.cg-also { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 13px; color: var(--ink-mute); }
.cg-also button { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(245, 185, 66, 0.45); }
.cg p.cg-approx { font-size: 12px; color: var(--ink-mute); }



.cg.has-sel .cg-list { display: none; }
.cg-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.cg-list li { border-bottom: 1px solid var(--line); }
.cg-list button { width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 8px 2px; border: 0; background: none; color: var(--ink-dim); font: 400 13px/1.35 var(--font-inter), system-ui, sans-serif; text-align: left; cursor: pointer; }
.cg-list button:hover, .cg-list button.on { color: var(--ink); }
.cg-list button.on .cg-n { color: var(--accent); }
.cg-n { font-family: var(--font-mono), ui-monospace, monospace; font-size: 10.5px; color: var(--ink-mute); letter-spacing: 0.06em; }
.cg-li-r { min-width: 0; overflow-wrap: anywhere; }
.cg-li-c { font-family: var(--font-mono), ui-monospace, monospace; font-size: 10.5px; color: var(--ink-mute); text-align: right; }
.cg p.cg-foot { margin-top: auto; font-size: 12px; line-height: 1.5; color: var(--ink-mute); }


.cg-tablewrap { padding: 6px 18px 18px; }
.cg-scroll { overflow-x: auto; }
.cg-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.cg-tbl th { padding: 12px 10px 10px; text-align: left; font-family: var(--font-mono), ui-monospace, monospace; font-size: 10.5px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.cg-tbl td { padding: 12px 10px; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-dim); }
.cg-tbl tr[data-id] { cursor: pointer; }
.cg-tbl tr[data-id]:hover td, .cg-tbl tr.on td { background: rgba(245, 185, 66, 0.05); }
.cg-tbl tr:focus-within td { background: rgba(245, 185, 66, 0.07); }
.cg-tbl .cg-num { text-align: right; font-family: var(--font-mono), ui-monospace, monospace; font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.cg-tbl td.cg-n { padding-right: 0; }
.cg-rowbtn { display: block; padding: 0; border: 0; background: none; color: var(--ink); font: 400 15px/1.35 var(--font-inter), system-ui, sans-serif; text-align: left; cursor: pointer; }
.cg-rowbtn:hover { color: var(--accent); }
.cg-sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-mute); }
.cg-narrow { display: none; }
.cg-tablewrap p.cg-foot { margin-top: 14px; }

@media (max-width: 899px) {
  .cg-body { grid-template-columns: minmax(0, 1fr); }
  .cg-stage, .cg--page .cg-stage { height: auto; aspect-ratio: 1 / 1; max-height: 560px; border-bottom: 1px solid var(--line); }
  .cg-insp { border-left: 0; }
}
@media (max-width: 600px) {
  .cg-bar { padding: 12px 14px; }
  .cg-insp { padding: 16px 14px 18px; }
  .cg-hint { left: 12px; top: 12px; }
  .cg-zoom { right: 10px; bottom: 10px; }
  .cg-tablewrap { padding: 4px 10px 14px; }
  .cg-tbl th, .cg-tbl td { padding-left: 6px; padding-right: 6px; }
  .cg-wide { display: none; }
  .cg-narrow { display: block; }
}
