/* ═══════════════════════════════════════════════════════
   TIANGONG TRACKER — PAGE-SPECIFIC STYLES
   CSS prefix: tg-  |  NORAD: 48274  |  Accent: #ff6b4a (warm red-orange)
   Separated for cache efficiency and obfuscation
   ═══════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────── */
.tg-hero{text-align:center;padding:48px 0 24px}
.tg-hero h1{font-family:'Orbitron',monospace;font-weight:900;font-size:clamp(26px,5vw,44px);color:#fff;letter-spacing:1.5px;line-height:1.15;margin-bottom:16px}
.tg-hero h1 .tg-h1-accent{color:#ff6b4a;display:block;font-size:clamp(14px,2.2vw,18px);font-weight:700;letter-spacing:3px;margin-bottom:8px;text-transform:uppercase}
.tg-hero-sub{font-size:15px;color:#c8c4b8;max-width:640px;margin:0 auto;line-height:1.7}
.tg-live-badge{display:inline-flex;align-items:center;gap:8px;padding:7px 20px;border-radius:999px;background:rgba(255,107,74,.06);border:1px solid rgba(255,107,74,.25);font-family:'Orbitron',monospace;font-size:11px;font-weight:700;color:#ff6b4a;letter-spacing:1.5px;text-transform:uppercase;margin-bottom:24px}
.tg-live-dot{width:8px;height:8px;border-radius:50%;background:#ff6b4a;box-shadow:0 0 12px rgba(255,107,74,.6);animation:tg-pulse 1.8s ease-in-out infinite}
@keyframes tg-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(.6)}}

/* ── Stats Ticker ─────────────────────────────────────── */
.tg-stats-ticker{max-width:780px;margin:0 auto 28px;display:flex;align-items:center;overflow:hidden;border-radius:12px;border:1px solid rgba(255,107,74,.12);background:linear-gradient(90deg,rgba(10,14,34,.8),rgba(14,18,40,.7),rgba(10,14,34,.8));font-family:'JetBrains Mono',monospace;font-size:11px;position:relative}
.tg-stats-ticker::before,.tg-stats-ticker::after{content:'';position:absolute;top:0;bottom:0;width:40px;z-index:2;pointer-events:none}
.tg-stats-ticker::before{left:0;background:linear-gradient(90deg,rgba(10,14,34,.95),transparent)}
.tg-stats-ticker::after{right:0;background:linear-gradient(270deg,rgba(10,14,34,.95),transparent)}
.tg-stats-scroll{display:flex;gap:0;white-space:nowrap;animation:tg-ticker-scroll 40s linear infinite}
.tg-stats-scroll:hover{animation-play-state:paused}
.tg-stat-item{display:flex;align-items:center;gap:7px;padding:11px 16px;color:rgba(255,255,255,.55)}
.tg-stat-item::after{content:'';width:3px;height:3px;border-radius:50%;background:rgba(255,107,74,.2);box-shadow:0 0 4px rgba(255,107,74,.15);flex-shrink:0;margin-left:8px}
.tg-stat-item:last-child::after{display:none}
.tg-stat-item strong{color:#ff6b4a;font-weight:600}
.tg-stat-item .tg-stat-gold{color:#ffe060}
.tg-stat-icon{width:14px;height:14px;flex-shrink:0;opacity:.5}
.tg-stat-icon svg{width:14px;height:14px;display:block}
@keyframes tg-ticker-scroll{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}

/* ── Live Position Card ───────────────────────────────── */
.tg-live-wrap{position:relative;max-width:780px;margin:0 auto 28px}
.tg-live-card{position:relative;border-radius:18px;border:1px solid rgba(255,107,74,.15);background:linear-gradient(160deg,rgba(10,14,34,.94),rgba(14,18,40,.90));overflow:hidden}
.tg-live-card::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 0%,rgba(255,107,74,.06),transparent 65%);pointer-events:none;z-index:0}
.tg-live-card::after{content:'';position:absolute;top:0;left:0;right:0;height:1px;background:linear-gradient(90deg,transparent 10%,rgba(255,107,74,.35) 50%,transparent 90%);animation:tg-scan 4s ease-in-out infinite;pointer-events:none;z-index:1}
@keyframes tg-scan{0%{top:-1px;opacity:.6}50%{opacity:1}100%{top:100%;opacity:0}}
.tg-lc-header{position:relative;z-index:2;display:flex;align-items:center;gap:10px;padding:16px 22px 0;font-family:'Orbitron',monospace;font-size:11px;letter-spacing:1.2px;text-transform:uppercase}
.tg-lc-tag{margin-left:auto;color:rgba(255,255,255,.25);font-size:10px}
.tg-passing{position:relative;z-index:2;padding:18px 22px 10px;min-height:72px}
.tg-passing-lbl{font-family:'Orbitron',monospace;font-size:10px;letter-spacing:1.8px;text-transform:uppercase;color:rgba(255,107,74,.45);margin-bottom:6px}
.tg-passing-loc{font-family:'Orbitron',monospace;font-size:clamp(16px,3.5vw,26px);font-weight:700;color:#fff;line-height:1.3;min-height:34px;transition:opacity .4s,color .4s}
.tg-passing-loc.ocean{color:rgba(255,107,74,.6)}
.tg-passing-coords{font-family:'JetBrains Mono',monospace;font-size:11px;color:rgba(255,255,255,.4);margin-top:6px;letter-spacing:.3px;font-variant-numeric:tabular-nums}
.tg-speed-wrap{position:relative;z-index:2;padding:0 22px;margin-top:4px}
.tg-speed-bar{height:3px;background:rgba(255,255,255,.04);border-radius:2px;overflow:hidden}
.tg-speed-fill{height:100%;border-radius:2px;background:linear-gradient(90deg,#ff6b4a,#ffe060);transition:width .8s ease;width:0}
.tg-speed-labels{display:flex;justify-content:space-between;font-family:'JetBrains Mono',monospace;font-size:9px;color:rgba(255,255,255,.35);margin-top:3px;padding:0 2px}
/* Telemetry grid */
.tg-telem{position:relative;z-index:2;display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background:rgba(255,255,255,.03);border-top:1px solid rgba(255,255,255,.05);margin-top:14px}
.tg-telem-cell{padding:18px 10px;text-align:center;background:rgba(8,12,26,.5);transition:background .3s}
.tg-telem-cell:hover{background:rgba(255,107,74,.03)}
.tg-telem-val{font-family:'JetBrains Mono',monospace;font-size:clamp(16px,2.5vw,26px);font-weight:700;color:#fff;line-height:1;margin-bottom:5px;transition:color .5s;white-space:nowrap}
.tg-telem-val.updating{color:rgba(255,107,74,.5)}
.tg-telem-lbl{font-family:'JetBrains Mono',monospace;font-size:9px;color:rgba(255,255,255,.45);letter-spacing:.6px;text-transform:uppercase}
.tg-sunlit-badge{display:inline-flex;align-items:center;gap:5px;margin-left:auto;padding:3px 10px;border-radius:999px;font-size:9px;font-family:'JetBrains Mono',monospace;letter-spacing:.5px;text-transform:uppercase;transition:all .5s}
.tg-sunlit-badge.sunlit{color:#ffe060;background:rgba(255,224,96,.06);border:1px solid rgba(255,224,96,.15)}
.tg-sunlit-badge.eclipse{color:rgba(255,255,255,.3);background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.06)}
.tg-sunlit-dot{width:6px;height:6px;border-radius:50%;transition:all .5s}
.tg-sunlit-badge.sunlit .tg-sunlit-dot{background:#ffe060;box-shadow:0 0 6px rgba(255,224,96,.5)}
.tg-sunlit-badge.eclipse .tg-sunlit-dot{background:rgba(255,255,255,.2)}
.tg-powered{position:relative;z-index:2;display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 22px;background:rgba(255,107,74,.02);border-top:1px solid rgba(255,107,74,.05);font-family:'JetBrains Mono',monospace;font-size:10px;color:rgba(255,107,74,.4);letter-spacing:.4px}
.tg-powered img{width:14px;height:14px;opacity:.45}
.tg-powered a{color:rgba(255,107,74,.55);text-decoration:none;transition:color .2s}
.tg-powered a:hover{color:#ff6b4a}

/* ── Ground Track Map ─────────────────────────────────── */
.tg-map-wrap{position:relative;max-width:780px;margin:0 auto 0;border-radius:16px 16px 0 0;overflow:hidden;border:1px solid rgba(255,255,255,.06);border-bottom:none;background:#060a16}
.tg-map-svg{width:100%;height:auto;display:block}
.tg-map-land{fill:rgba(255,255,255,.06);stroke:rgba(255,255,255,.08);stroke-width:.5;stroke-linejoin:round}
.tg-map-grid line{stroke:rgba(255,255,255,.03);stroke-width:.5}
.tg-map-equator{stroke:rgba(255,224,96,.08);stroke-width:.5;stroke-dasharray:4,4}
.tg-map-overlay{position:absolute;bottom:8px;right:12px;font-family:'JetBrains Mono',monospace;font-size:9px;color:rgba(255,255,255,.15);letter-spacing:.5px;z-index:2}
.tg-map-incl-band{fill:rgba(255,107,74,.03);stroke:rgba(255,107,74,.08);stroke-width:.5;stroke-dasharray:6,4}
/* Toggle bar below map */
.tg-map-controls{max-width:780px;margin:0 auto 32px;border-radius:0 0 16px 16px;border:1px solid rgba(255,255,255,.06);border-top:none;background:rgba(10,14,34,.7);padding:10px 18px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.tg-map-toggle{padding:6px 14px;border-radius:8px;font-size:10px;font-family:'Orbitron',monospace;font-weight:700;letter-spacing:.6px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.03);color:rgba(255,255,255,.4);cursor:pointer;transition:all .2s;text-transform:uppercase}
.tg-map-toggle:hover,.tg-map-toggle.active{background:rgba(255,107,74,.08);border-color:rgba(255,107,74,.25);color:#ff6b4a}

/* ── ISS vs Tiangong Comparison ───────────────────────── */
.tg-compare{max-width:780px;margin:0 auto 40px}
.tg-compare-grid{display:grid;grid-template-columns:1fr auto 1fr;gap:0;border-radius:14px;overflow:hidden;border:1px solid rgba(255,255,255,.06);background:rgba(10,14,34,.5)}
.tg-compare-header{grid-column:1/-1;display:grid;grid-template-columns:1fr auto 1fr;background:rgba(255,255,255,.03);border-bottom:1px solid rgba(255,255,255,.05)}
.tg-compare-header-cell{padding:14px 18px;font-family:'Orbitron',monospace;font-size:11px;letter-spacing:1px;text-transform:uppercase;text-align:center}
.tg-compare-header-cell:first-child{color:#ff6b4a}
.tg-compare-header-cell:nth-child(2){color:rgba(255,255,255,.25);font-size:9px;display:flex;align-items:center}
.tg-compare-header-cell:last-child{color:#60eafe}
.tg-compare-row{display:contents}
.tg-compare-cell{padding:12px 18px;text-align:center;font-family:'JetBrains Mono',monospace;font-size:14px;color:#fff;font-weight:600;border-bottom:1px solid rgba(255,255,255,.03)}
.tg-compare-cell.label{font-size:10px;font-family:'Orbitron',monospace;color:rgba(255,255,255,.3);letter-spacing:.8px;text-transform:uppercase;display:flex;align-items:center;justify-content:center;border-left:1px solid rgba(255,255,255,.03);border-right:1px solid rgba(255,255,255,.03)}
.tg-compare-cell.tg-val{color:rgba(255,107,74,.85)}
.tg-compare-cell.iss-val{color:rgba(96,234,254,.75)}
.tg-compare-live{display:flex;align-items:center;gap:6px;justify-content:center}
.tg-compare-live-dot{width:6px;height:6px;border-radius:50%;background:#4cff8e;animation:tg-pulse 2s ease-in-out infinite}
.tg-compare-distance{grid-column:1/-1;padding:14px 18px;text-align:center;background:rgba(76,255,142,.02);border-top:1px solid rgba(76,255,142,.08)}
.tg-compare-dist-label{font-size:9px;font-family:'Orbitron',monospace;color:rgba(76,255,142,.5);letter-spacing:1.2px;text-transform:uppercase;margin-bottom:4px}
.tg-compare-dist-val{font-family:'JetBrains Mono',monospace;font-size:clamp(18px,3vw,28px);font-weight:700;color:#4cff8e;letter-spacing:1px;font-variant-numeric:tabular-nums}
.tg-compare-dist-note{font-size:10px;color:rgba(255,255,255,.3);margin-top:4px}

/* ── Module Explorer ──────────────────────────────────── */
.tg-modules{max-width:780px;margin:0 auto 40px}
.tg-module-viz{position:relative;border-radius:14px;border:1px solid rgba(255,255,255,.06);background:rgba(10,14,34,.6);padding:28px;overflow:hidden}
.tg-module-viz::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 50% 50%,rgba(255,107,74,.03),transparent 60%);pointer-events:none}
.tg-module-svg{width:100%;max-width:600px;margin:0 auto;display:block}
.tg-module-part{cursor:pointer;transition:opacity .3s,filter .3s}
.tg-module-part:hover{filter:brightness(1.3)}
.tg-module-part.active{filter:brightness(1.4) drop-shadow(0 0 8px rgba(255,107,74,.4))}
.tg-module-info{margin-top:20px;padding:16px 20px;border-radius:10px;background:rgba(255,107,74,.03);border:1px solid rgba(255,107,74,.1);min-height:80px;transition:all .3s}
.tg-module-info-name{font-family:'Orbitron',monospace;font-size:14px;font-weight:700;color:#ff6b4a;letter-spacing:.8px;margin-bottom:6px}
.tg-module-info-desc{font-size:13px;color:rgba(255,255,255,.6);line-height:1.7}
.tg-module-info-stats{display:flex;gap:20px;margin-top:10px;flex-wrap:wrap}
.tg-module-info-stat{font-size:11px;color:rgba(255,255,255,.4)}
.tg-module-info-stat strong{color:rgba(255,255,255,.7)}

/* ── Pass Predictions ─────────────────────────────────── */
.tg-passes-section{max-width:780px;margin:0 auto 40px}
.tg-loc-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:20px}
.tg-loc-input{flex:1;min-width:200px;padding:12px 16px;background:rgba(18,20,34,.7);border:1px solid rgba(255,107,74,.15);border-radius:11px;color:#fff;font-family:'JetBrains Mono',monospace;font-size:13px;outline:none;transition:border-color .2s}
.tg-loc-input:focus{border-color:rgba(255,107,74,.4)}
.tg-loc-input::placeholder{color:rgba(255,255,255,.3)}
.tg-loc-btn{padding:12px 20px;border-radius:11px;border:1px solid rgba(255,107,74,.25);background:rgba(255,107,74,.06);color:#ff6b4a;font-family:'Orbitron',monospace;font-size:11px;font-weight:700;letter-spacing:.8px;cursor:pointer;transition:all .2s;white-space:nowrap}
.tg-loc-btn:hover{background:rgba(255,107,74,.15);border-color:rgba(255,107,74,.45)}
.tg-pass-list{display:flex;flex-direction:column;gap:8px}
.tg-pass-card{display:grid;grid-template-columns:1fr 80px 1fr 1fr;gap:1px;background:rgba(255,255,255,.03);border-radius:12px;overflow:hidden;border:1px solid rgba(255,255,255,.05);transition:border-color .2s;cursor:pointer}
.tg-pass-card:hover{border-color:rgba(255,107,74,.2)}
.tg-pass-card.best{border-color:rgba(76,255,142,.25);box-shadow:0 0 20px rgba(76,255,142,.05)}
.tg-pass-cell{padding:14px 12px;background:rgba(8,12,26,.6)}
.tg-pass-cell-label{font-size:9px;font-family:'Orbitron',monospace;color:rgba(255,255,255,.4);letter-spacing:.8px;text-transform:uppercase;margin-bottom:4px}
.tg-pass-cell-value{font-family:'JetBrains Mono',monospace;font-size:14px;color:#fff;font-weight:600}
.tg-pass-cell-sub{font-size:10px;color:rgba(255,255,255,.45);margin-top:2px}
.tg-pass-empty{text-align:center;padding:40px 20px;color:rgba(255,255,255,.5);font-family:'JetBrains Mono',monospace;font-size:13px}
.tg-pass-bright{color:#4cff8e}
.tg-countdown{text-align:center;padding:20px;margin-bottom:16px;background:rgba(255,107,74,.03);border:1px solid rgba(255,107,74,.1);border-radius:14px}
.tg-countdown-label{font-size:10px;font-family:'Orbitron',monospace;color:rgba(255,107,74,.5);letter-spacing:1.5px;text-transform:uppercase;margin-bottom:8px}
.tg-countdown-value{font-family:'JetBrains Mono',monospace;font-size:clamp(24px,4vw,36px);font-weight:700;color:#ff6b4a;letter-spacing:2px;font-variant-numeric:tabular-nums}

/* ── Crew Section ─────────────────────────────────────── */
.tg-crew-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;max-width:780px;margin:0 auto}
.tg-crew-card{padding:18px;border-radius:12px;background:rgba(18,20,34,.5);border:1px solid rgba(255,255,255,.05);text-align:center;transition:border-color .2s}
.tg-crew-card:hover{border-color:rgba(255,107,74,.2)}
.tg-crew-flag{font-size:28px;margin-bottom:8px}
.tg-crew-name{font-family:'Orbitron',monospace;font-size:12px;font-weight:700;color:#fff;letter-spacing:.5px;margin-bottom:4px}
.tg-crew-role{font-size:11px;color:rgba(255,107,74,.75);font-family:'JetBrains Mono',monospace}
.tg-crew-mission{font-size:10px;color:rgba(255,255,255,.3);margin-top:4px}
.tg-crew-days{font-size:10px;color:rgba(255,224,96,.5);margin-top:2px}

/* ── Docking Timeline ─────────────────────────────────── */
.tg-docking{max-width:780px;margin:0 auto 40px}
.tg-timeline{position:relative;padding-left:28px}
.tg-timeline::before{content:'';position:absolute;left:12px;top:0;bottom:0;width:2px;background:rgba(255,107,74,.15)}
.tg-timeline-item{position:relative;margin-bottom:16px;padding:14px 18px;background:rgba(18,20,34,.5);border:1px solid rgba(255,255,255,.05);border-radius:10px;transition:border-color .2s}
.tg-timeline-item:hover{border-color:rgba(255,107,74,.2)}
.tg-timeline-item::before{content:'';position:absolute;left:-22px;top:18px;width:10px;height:10px;border-radius:50%;background:rgba(255,107,74,.3);border:2px solid rgba(255,107,74,.5)}
.tg-timeline-item.active::before{background:#ff6b4a;box-shadow:0 0 8px rgba(255,107,74,.4)}
.tg-timeline-name{font-family:'Orbitron',monospace;font-size:12px;font-weight:700;color:#fff;letter-spacing:.5px;margin-bottom:4px}
.tg-timeline-meta{font-size:11px;color:rgba(255,255,255,.4);display:flex;gap:12px;flex-wrap:wrap}
.tg-timeline-status{display:inline-flex;padding:2px 8px;border-radius:4px;font-size:9px;font-family:'Orbitron',monospace;letter-spacing:.5px;text-transform:uppercase}
.tg-timeline-status.docked{background:rgba(76,255,142,.08);border:1px solid rgba(76,255,142,.2);color:#4cff8e}
.tg-timeline-status.departed{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);color:rgba(255,255,255,.35)}

/* ── Specifications Grid ──────────────────────────────── */
.tg-specs{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px;max-width:780px;margin:0 auto}
.tg-spec{padding:16px 18px;border-radius:11px;border:1px solid rgba(255,255,255,.05);background:rgba(18,20,34,.5)}
.tg-spec-label{font-size:10px;font-family:'Orbitron',monospace;color:rgba(255,255,255,.45);letter-spacing:.8px;text-transform:uppercase;margin-bottom:4px}
.tg-spec-value{font-family:'JetBrains Mono',monospace;font-size:15px;color:#fff;font-weight:600}

/* ── Size Comparison Bars ─────────────────────────────── */
.tg-size-compare{max-width:700px}
.tg-size-row{margin-bottom:10px}
.tg-size-bar{height:24px;border-radius:6px;transition:width 1.2s cubic-bezier(.22,1,.36,1);width:0}
.tg-size-label{display:flex;justify-content:space-between;align-items:center;font-family:'JetBrains Mono',monospace;font-size:12px;color:rgba(255,255,255,.6);margin-top:4px}
.tg-size-val{color:rgba(255,255,255,.3);font-size:11px}

/* ── FAQ ──────────────────────────────────────────────── */
.tg-faq{max-width:780px;margin:0 auto}
.tg-faq-item{border-bottom:1px solid rgba(255,255,255,.05)}
.tg-faq-q{display:flex;justify-content:space-between;align-items:center;width:100%;padding:16px 0;background:none;border:none;color:rgba(255,255,255,.8);font-family:'JetBrains Mono',monospace;font-size:14px;font-weight:600;cursor:pointer;text-align:left;line-height:1.5}
.tg-faq-q:hover{color:#ff6b4a}
.tg-faq-q .chevron{font-size:10px;color:rgba(255,255,255,.2);transition:transform .2s;flex-shrink:0;margin-left:12px}
.tg-faq-item.open .tg-faq-q .chevron{transform:rotate(180deg)}
.tg-faq-a{max-height:0;overflow:hidden;transition:max-height .3s ease,padding .3s ease;font-size:13px;line-height:1.8;color:rgba(255,255,255,.82)}
.tg-faq-item.open .tg-faq-a{max-height:600px;padding-bottom:18px}
.tg-faq-a a{color:#ff6b4a;text-decoration:none}
.tg-faq-a a:hover{text-decoration:underline}

/* ── Body Text ────────────────────────────────────────── */
.tg-body-text{font-size:14px;line-height:1.8;color:rgba(255,255,255,.82);max-width:700px}
.tg-text-highlight{color:#ff6b4a;font-weight:600}

/* ── Embed Section ────────────────────────────────────── */
.tg-embed-section{max-width:700px}
.tg-embed-code{position:relative;padding:14px 18px;background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.06);border-radius:10px;font-family:'JetBrains Mono',monospace;font-size:11px;color:rgba(255,255,255,.5);word-break:break-all;cursor:pointer;transition:border-color .2s;line-height:1.6}
.tg-embed-code:hover{border-color:rgba(255,107,74,.25)}
.tg-embed-copied{position:absolute;top:8px;right:12px;font-size:10px;color:#4cff8e;opacity:0;transition:opacity .3s}
.tg-embed-copied.show{opacity:1}

/* ── Overhead Alert ───────────────────────────────────── */
.tg-overhead-alert{position:fixed;top:0;left:0;right:0;z-index:9999;padding:10px 20px;background:linear-gradient(90deg,rgba(255,107,74,.15),rgba(255,107,74,.08));border-bottom:1px solid rgba(255,107,74,.3);font-family:'Orbitron',monospace;font-size:11px;color:#ff6b4a;letter-spacing:.8px;text-align:center;transform:translateY(-100%);transition:transform .4s ease;backdrop-filter:blur(12px)}
.tg-overhead-alert.active{transform:translateY(0)}
.tg-overhead-alert-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#ff6b4a;animation:tg-pulse 1s ease-in-out infinite;margin-right:8px;vertical-align:middle}
.tg-overhead-dismiss{background:none;border:none;color:rgba(255,107,74,.6);cursor:pointer;margin-left:12px;font-size:14px}

/* ── Responsive ───────────────────────────────────────── */
@media(max-width:700px){
  .tg-telem{grid-template-columns:repeat(3,1fr)}
  .tg-compare-grid{grid-template-columns:1fr;gap:0}
  .tg-compare-header{grid-template-columns:1fr}
  .tg-compare-header-cell:nth-child(2){display:none}
  .tg-compare-row{display:grid;grid-template-columns:1fr 1fr;gap:1px;border-bottom:1px solid rgba(255,255,255,.03)}
  .tg-compare-cell.label{grid-column:1/-1;padding:8px 14px}
  .tg-pass-card{grid-template-columns:1fr;gap:0}
  .tg-loc-bar{flex-direction:column}
  .tg-loc-btn{width:100%}
  .tg-crew-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr))}
}
@media(max-width:480px){
  .tg-telem{grid-template-columns:repeat(2,1fr)}
  .tg-specs{grid-template-columns:1fr}
  .tg-module-viz{padding:16px}
}

/* ── Light Mode ───────────────────────────────────────── */
html.or-light-mode .tg-hero h1{color:#1a1e2e}
html.or-light-mode .tg-hero h1 .tg-h1-accent{color:#c04020}
html.or-light-mode .tg-hero-sub{color:rgba(10,14,34,.55)}
html.or-light-mode .tg-live-badge{background:rgba(192,64,32,.06);border-color:rgba(192,64,32,.2);color:#c04020}
html.or-light-mode .tg-live-card{background:rgba(255,255,255,.95);border-color:rgba(0,0,0,.08)}
html.or-light-mode .tg-live-card::before{background:radial-gradient(ellipse at 50% 0%,rgba(192,64,32,.04),transparent 65%)}
html.or-light-mode .tg-passing-loc{color:#1a1e2e}
html.or-light-mode .tg-passing-lbl{color:rgba(192,64,32,.5)}
html.or-light-mode .tg-telem-val{color:#1a1e2e}
html.or-light-mode .tg-telem-cell{background:rgba(240,242,248,.6)}
html.or-light-mode .tg-telem-lbl{color:rgba(10,14,34,.4)}
html.or-light-mode .tg-stats-ticker{background:rgba(255,255,255,.5);border-color:rgba(0,0,0,.06)}
html.or-light-mode .tg-compare-grid{background:rgba(255,255,255,.7);border-color:rgba(0,0,0,.06)}
html.or-light-mode .tg-compare-cell{color:#1a1e2e}
html.or-light-mode .tg-module-viz{background:rgba(255,255,255,.5);border-color:rgba(0,0,0,.06)}
html.or-light-mode .tg-spec{background:rgba(255,255,255,.5);border-color:rgba(0,0,0,.06)}
html.or-light-mode .tg-spec-value{color:#1a1e2e}
html.or-light-mode .tg-crew-card{background:rgba(255,255,255,.6);border-color:rgba(0,0,0,.06)}
html.or-light-mode .tg-crew-name{color:#1a1e2e}
html.or-light-mode .tg-faq-q{color:#1a1e2e}
html.or-light-mode .tg-faq-a{color:rgba(10,14,34,.65)}
html.or-light-mode .tg-body-text{color:rgba(10,14,34,.6)}
html.or-light-mode .tg-pass-card{background:rgba(255,255,255,.7);border-color:rgba(0,0,0,.06)}
html.or-light-mode .tg-countdown{background:rgba(192,64,32,.03);border-color:rgba(192,64,32,.1)}
html.or-light-mode .tg-timeline-item{background:rgba(255,255,255,.5);border-color:rgba(0,0,0,.06)}

/* ── Share Button (UX 18) ────────────────────────────── */
.tg-share-btn{margin-left:auto;padding:4px 12px;border-radius:6px;border:1px solid rgba(255,107,74,.2);background:rgba(255,107,74,.06);color:rgba(255,107,74,.6);font-family:'JetBrains Mono',monospace;font-size:10px;cursor:pointer;transition:all .2s}
.tg-share-btn:hover{background:rgba(255,107,74,.12);color:#ff6b4a}

/* ── How to See Tiangong (SEO 12) ────────────────────── */
.tg-seeing-guide{max-width:780px;margin:0 auto}
.tg-seeing-steps{display:flex;flex-direction:column;gap:12px;margin-top:16px}
.tg-seeing-step{display:flex;gap:16px;align-items:flex-start;padding:14px 18px;border-radius:12px;background:rgba(255,107,74,.03);border:1px solid rgba(255,107,74,.06)}
.tg-seeing-step-num{flex-shrink:0;width:28px;height:28px;border-radius:50%;background:rgba(255,107,74,.1);border:1px solid rgba(255,107,74,.2);display:flex;align-items:center;justify-content:center;font-family:'Orbitron',monospace;font-size:12px;font-weight:700;color:#ff6b4a}
.tg-seeing-step-text{font-size:13px;color:rgba(255,255,255,.75);line-height:1.6}
.tg-seeing-step-text strong{color:rgba(255,255,255,.85)}
.tg-seeing-step-text a{color:#ff6b4a;text-decoration:none}

/* ── Light mode additions ────────────────────────────── */
html.or-light-mode .tg-seeing-step{background:rgba(192,64,32,.03);border-color:rgba(192,64,32,.08)}
html.or-light-mode .tg-seeing-step-text{color:rgba(10,14,34,.6)}

/* ── Bug #12/#13: Overhead Alert (standardised transform + z-index 9999) ── */
/* Override existing overhead alert styles */

/* ── Killer #29: Distance context line ────────────────── */
.tg-compare-dist-context{font-size:11px;color:rgba(255,255,255,.35);margin-top:4px;font-family:'JetBrains Mono',monospace}

/* ── UX #21: Pass toggle bar ─────────────────────────── */
.tg-pass-toggle-bar{display:flex;gap:8px;margin-bottom:16px}

/* ── UX #25: Embed with explicit copy button ──────────── */
.tg-embed-wrap{position:relative}
.tg-embed-code{padding-right:80px}
.tg-embed-copy-btn{position:absolute;top:10px;right:10px;padding:6px 14px;border-radius:6px;border:1px solid rgba(255,107,74,.2);background:rgba(255,107,74,.08);color:#ff6b4a;font-family:'JetBrains Mono',monospace;font-size:10px;font-weight:600;cursor:pointer;transition:all .2s}
.tg-embed-copy-btn:hover{background:rgba(255,107,74,.15)}

/* ── Consistency #50: Sunlit badge standardised to 999px ── */

/* ── UX #26: Expandable pass detail ──────────────────── */
.tg-pass-detail{grid-column:1/-1;padding:0 14px;max-height:0;overflow:hidden;transition:max-height .3s,padding .3s;background:rgba(8,12,26,.6)}
.tg-pass-card.expanded .tg-pass-detail{max-height:200px;padding:14px}
.tg-pass-detail-inner{display:flex;gap:16px;align-items:center;justify-content:center;flex-wrap:wrap}

/* ── UX #27: Calendar export button ──────────────────── */
.tg-pass-cal-btn{padding:6px 14px;border-radius:8px;border:1px solid rgba(255,107,74,.2);background:rgba(255,107,74,.06);color:#ff6b4a;font-family:'JetBrains Mono',monospace;font-size:10px;cursor:pointer;transition:all .2s;text-decoration:none}
.tg-pass-cal-btn:hover{background:rgba(255,107,74,.12)}

/* ── Light mode additions for new features ───────────── */
html.or-light-mode .tg-embed-copy-btn{background:rgba(192,64,32,.06);border-color:rgba(192,64,32,.15)}
html.or-light-mode .tg-compare-dist-context{color:rgba(10,14,34,.35)}

/* ── Fix 3: Location Autocomplete Dropdown ────────────── */
.tg-loc-bar{position:relative}
.tg-loc-dropdown{display:none;position:absolute;top:100%;left:0;right:0;z-index:100;margin-top:4px;border-radius:10px;border:1px solid rgba(255,107,74,.2);background:rgba(10,14,34,.96);backdrop-filter:blur(12px);overflow:hidden;max-height:240px;overflow-y:auto}
.tg-loc-dropdown.open{display:block}
.tg-loc-dropdown-item{padding:10px 16px;font-family:'JetBrains Mono',monospace;font-size:12px;color:rgba(255,255,255,.7);cursor:pointer;border-bottom:1px solid rgba(255,255,255,.04);transition:background .15s}
.tg-loc-dropdown-item:hover,.tg-loc-dropdown-item.selected{background:rgba(255,107,74,.1);color:#fff}
.tg-loc-dropdown-item:last-child{border-bottom:none}
.tg-loc-dropdown-item small{display:block;font-size:10px;color:rgba(255,255,255,.35);margin-top:2px}
html.or-light-mode .tg-loc-dropdown{background:rgba(255,255,255,.97);border-color:rgba(0,0,0,.1)}
html.or-light-mode .tg-loc-dropdown-item{color:rgba(10,14,34,.7)}
html.or-light-mode .tg-loc-dropdown-item:hover{background:rgba(255,107,74,.08);color:#1a1e2e}

/* ── CTA ROW ──────────────────────────────────────────── */
.tg-cta-row{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-bottom:40px}
.tg-cta{display:inline-flex;align-items:center;gap:6px;padding:12px 24px;font-family:'Orbitron',monospace;font-weight:700;font-size:13px;letter-spacing:.5px;border-radius:10px;text-decoration:none;transition:all .2s;cursor:pointer;white-space:nowrap}
.tg-cta-primary{color:#070a18;background:linear-gradient(135deg,#ff6b4a,#ffa04a);box-shadow:0 4px 20px rgba(255,107,74,.2)}
.tg-cta-primary:hover{transform:translateY(-2px);box-shadow:0 8px 28px rgba(255,107,74,.35)}
.tg-cta-secondary{color:#ffe060;background:rgba(255,224,96,.06);border:1px solid rgba(255,224,96,.25)}
.tg-cta-secondary:hover{background:rgba(255,224,96,.12);border-color:rgba(255,224,96,.45);transform:translateY(-2px)}
@media(max-width:600px){.tg-cta-row{flex-direction:column;align-items:center}}

/* ── MOBILE GLOBE MODAL ───────────────────────────────── */
.or-mobile-globe-overlay{display:none;position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.6);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);align-items:flex-end;justify-content:center;opacity:0;transition:opacity .25s}
.or-mobile-globe-overlay.show{display:flex;opacity:1}
.or-mobile-globe-sheet{width:100%;max-width:420px;background:linear-gradient(180deg,#1a1e2e 0%,#12142a 100%);border-radius:20px 20px 0 0;padding:28px 24px 36px;box-shadow:0 -8px 40px rgba(0,0,0,.5);transform:translateY(20px);transition:transform .3s cubic-bezier(.22,1,.36,1)}
.or-mobile-globe-overlay.show .or-mobile-globe-sheet{transform:translateY(0)}
.or-mobile-globe-handle{width:36px;height:4px;background:rgba(255,255,255,.15);border-radius:2px;margin:0 auto 20px}
.or-mobile-globe-icon{font-size:32px;text-align:center;margin-bottom:12px}
.or-mobile-globe-title{font-family:'Orbitron',monospace;font-weight:700;font-size:15px;color:#ffe060;text-align:center;letter-spacing:.5px;margin-bottom:8px}
.or-mobile-globe-desc{font-size:13px;color:rgba(255,255,255,.6);text-align:center;line-height:1.6;margin-bottom:22px}
.or-mobile-globe-actions{display:flex;flex-direction:column;gap:10px}
.or-mobile-globe-btn{display:flex;align-items:center;justify-content:center;gap:8px;padding:14px 20px;border-radius:12px;font-family:'Orbitron',monospace;font-weight:700;font-size:12px;letter-spacing:.5px;border:none;cursor:pointer;text-decoration:none;transition:all .2s}
.or-mobile-globe-btn.primary{background:linear-gradient(135deg,#60eafe,#4cff8e);color:#070a18}
.or-mobile-globe-btn.secondary{background:rgba(255,255,255,.06);color:rgba(255,255,255,.6);border:1px solid rgba(255,255,255,.1)}
.or-mobile-globe-btn.secondary:hover{background:rgba(255,255,255,.1)}
.or-mobile-globe-copied{font-size:11px;color:#4cff8e;text-align:center;opacity:0;transition:opacity .3s;height:0}
.or-mobile-globe-copied.show{opacity:1;height:auto;margin-top:4px}
