/* JetStream Live: Clear Sky for the standalone pages (track, pass, flight, stats, connect, ground, pickup, features, about, download, privacy, home, delete). */
:root[data-theme="clearsky"]{
  --bg:#f5f7fb;--bg2:#ffffff;--card:#ffffff;
  --blue:#2563eb;--cyan:#0284c7;--gold:#b45309;--green:#047857;--pink:#be185d;--purple:#6d28d9;--orange:#c2410c;
  --text:#0f1b33;--text2:#5b6883;--text3:#5b6883;--muted:#5b6883;
  --border:#e3e8f1;--border2:#bcd0f5;--line:#e3e8f1;
  --void:#f5f7fb;--ink:#ffffff;
  --cs-surface:#ffffff;--cs-wash:rgba(15,27,51,.04);--cs-line:#e3e8f1;
  --cs-ink:#0f1b33;--cs-muted:#5b6883;--cs-ontint:#0f1b33;
  color-scheme:light;
}
:root[data-theme="clearsky"] body{background:#f5f7fb!important;color:#0f1b33;font-family:'Red Hat Text',system-ui,sans-serif}
:root[data-theme="clearsky"] body::before,:root[data-theme="clearsky"] body::after{display:none!important}

/* neon gradient headings become solid navy */
:root[data-theme="clearsky"] h1,:root[data-theme="clearsky"] h2,:root[data-theme="clearsky"] h3,
:root[data-theme="clearsky"] .hero h1,:root[data-theme="clearsky"] .brand,:root[data-theme="clearsky"] .logo{
  background:none!important;-webkit-text-fill-color:currentColor!important;color:#0f1b33!important;text-shadow:none!important;
  font-family:'Red Hat Display',system-ui,sans-serif;letter-spacing:-.02em}
:root[data-theme="clearsky"] *{text-shadow:none}

/* cards and form controls */
:root[data-theme="clearsky"] .card,:root[data-theme="clearsky"] .search,:root[data-theme="clearsky"] .box,:root[data-theme="clearsky"] .panel{
  background:#fff!important;border:1px solid #e3e8f1!important;box-shadow:0 1px 2px rgba(15,27,51,.06),0 2px 8px rgba(15,27,51,.05);backdrop-filter:none}
:root[data-theme="clearsky"] input,:root[data-theme="clearsky"] select,:root[data-theme="clearsky"] textarea{
  background:#fff!important;color:#0f1b33!important;border:1px solid #cfd7e6!important;box-shadow:none}
:root[data-theme="clearsky"] input::placeholder,:root[data-theme="clearsky"] textarea::placeholder{color:#8a95ab!important}
:root[data-theme="clearsky"] input:focus,:root[data-theme="clearsky"] select:focus,:root[data-theme="clearsky"] textarea:focus{border-color:#2563eb!important;outline:none}

/* primary buttons */
:root[data-theme="clearsky"] button[class*="go"],:root[data-theme="clearsky"] button[class*="primary"],:root[data-theme="clearsky"] .btn-primary,:root[data-theme="clearsky"] .cta{
  background:#2563eb!important;color:#fff!important;-webkit-text-fill-color:#fff;border:0!important;box-shadow:0 6px 16px rgba(37,99,235,.25)}

/* the readable text column on simple pages */
:root[data-theme="clearsky"] a{color:#2563eb}
:root[data-theme="clearsky"] p,:root[data-theme="clearsky"] li{color:#44506a}
:root[data-theme="clearsky"] .leaflet-container{background:#eef2f8}

/* keep the mobile shell on top of page chrome */
:root[data-theme="clearsky"] .jslm-tabs a,:root[data-theme="clearsky"] .jslm-tab{text-decoration:none}

/* segmented tabs keep their selected state */
:root[data-theme="clearsky"] .tabs{background:#eef2f8!important;border-color:#e3e8f1!important}
:root[data-theme="clearsky"] .tabs .tab{background:transparent!important;color:#5b6883!important;box-shadow:none!important;-webkit-text-fill-color:currentColor}
:root[data-theme="clearsky"] .tabs .tab.active{background:#2563eb!important;color:#fff!important}

/* footer sits on navy */
:root[data-theme="clearsky"] footer p,:root[data-theme="clearsky"] footer li,:root[data-theme="clearsky"] footer span,:root[data-theme="clearsky"] footer div{color:#cbd5e1}
:root[data-theme="clearsky"] footer a{color:#e2e8f0!important}
:root[data-theme="clearsky"] footer h1,:root[data-theme="clearsky"] footer h2,:root[data-theme="clearsky"] footer h3,:root[data-theme="clearsky"] footer h4{color:#fff!important}

/* small accent text stays readable on white */
:root[data-theme="clearsky"] .tc-cyan{color:#0369a1!important}
:root[data-theme="clearsky"] .tc-gold{color:#92400e!important}
:root[data-theme="clearsky"] .tc-green{color:#047857!important}
:root[data-theme="clearsky"] .tc-pink{color:#be185d!important}
:root[data-theme="clearsky"] #liveCount{color:#0369a1!important}

/* links in the footer sit directly on the navy */
:root[data-theme="clearsky"] footer nav{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none!important}
:root[data-theme="clearsky"] footer .orb{color:#fff!important}

/* identify page points */
:root[data-theme="clearsky"] .id-point .t{color:#0f1b33!important}
:root[data-theme="clearsky"] .id-point .d{color:#5b6883!important}

/* locked cards stay readable */
:root[data-theme="clearsky"] .cc-card.locked{opacity:.68}
:root[data-theme="clearsky"] #h-vsi{color:#047857!important}

/* flight page: the mobile shell already shows the brand */
@media (max-width:768px){
  :root[data-theme="clearsky"] .topbar .tb-logo{display:none}
  :root[data-theme="clearsky"] .topbar{justify-content:space-between}
}

/* banner button keeps a readable label */
:root[data-theme="clearsky"] .lp-cta-inner .lp-btn-primary{-webkit-text-fill-color:#1d4ed8!important}

/* flight list and notes on white */
:root[data-theme="clearsky"] .ml-alt{color:#0369a1!important}
:root[data-theme="clearsky"] .cc-card .cc-tier{filter:brightness(.55) saturate(1.3)}

/* every solid accent button keeps white text */
:root[data-theme="clearsky"] .btn-go,:root[data-theme="clearsky"] button[class*="go"]{color:#fff!important;-webkit-text-fill-color:#fff!important}

/* flight ticket details */
:root[data-theme="clearsky"] #bp-status-badge{background:#047857!important;border-color:#047857!important;color:#fff!important}
:root[data-theme="clearsky"] .tkt-foot,:root[data-theme="clearsky"] .tkt-foot *{color:#5b6883!important}
:root[data-theme="clearsky"] .ticket label,:root[data-theme="clearsky"] .tkt label{color:#5b6883!important}
:root[data-theme="clearsky"] .status-strip{text-shadow:0 1px 2px rgba(15,27,51,.45)}

/* airport board: fits a phone in every theme, Close button always reachable */
@media (max-width:760px){
  #aptPanel>div:first-child{flex-wrap:wrap;gap:6px 12px!important;padding:12px 14px!important}
  #aptPanel>div:first-child>.orb:first-child{font-size:26px!important;letter-spacing:1px!important}
  #aptPanel>div:first-child>.orb:first-child span{font-size:15px!important}
  #aptPanel>div:first-child>div:nth-child(2){flex:1 1 100%!important;order:5;min-width:0}
  #aptPanel>div:first-child>div:nth-child(2)>div:first-child{font-size:15px!important}
  #aptClock{font-size:17px!important;margin-left:auto}
  #aptPanel>div:first-child>button{padding:8px 12px!important;font-size:13px!important}
  #aptPanel>div:nth-child(2){flex-wrap:wrap;gap:8px!important;padding:10px 14px 0!important}
  #aptPanel .apt-tab{flex:1 1 30%;min-width:0;padding:10px 4px!important;font-size:11px!important;white-space:nowrap;border-radius:10px!important}
  #aptPanel .apt-days{width:100%;margin:0!important;display:flex;gap:6px}
  #aptPanel .apt-day{flex:1;padding:8px 4px!important;font-size:12px!important}
  #aptRotateNote{display:none!important}
  #aptScreen{padding:8px 10px 20px!important;overflow-x:hidden!important}
  #aptPanel .fids-hd,#aptPanel .fids-row{grid-template-columns:62px 82px minmax(0,1fr) 74px!important;gap:8px!important;padding:10px 6px!important;font-size:12px!important}
  #aptPanel .fids-hd{font-size:9px!important;letter-spacing:.5px!important}
  #aptPanel .fids-time{font-size:13px!important}
  #aptPanel .fids-fn{font-size:13px!important}
  #aptPanel .fids-row>div{min-width:0;overflow-wrap:anywhere}
  #aptPanel .fids-row>div:last-child,#aptPanel .fids-row>div:last-child *{font-size:11px!important;padding-left:0;padding-right:0}
}

/* airport board in Clear Sky */
:root[data-theme="clearsky"] #aptPanel{background:#f5f7fb!important;color:#0f1b33}
:root[data-theme="clearsky"] #aptPanel>div:first-child{background:#fff!important;border-bottom:1px solid #e3e8f1!important}
:root[data-theme="clearsky"] #aptPanel [style*="color:#fff"],:root[data-theme="clearsky"] #aptPanel [style*="color:#cfe"]{color:#0f1b33!important}
:root[data-theme="clearsky"] #aptPanel [style*="#6f8aa6"],:root[data-theme="clearsky"] #aptPanel [style*="#7fa8c9"],:root[data-theme="clearsky"] #aptPanel .fids-hd{color:#5b6883!important}
:root[data-theme="clearsky"] #aptPanel .fids-time{color:#0f1b33!important}
:root[data-theme="clearsky"] #aptPanel .fids-fn{color:#2563eb!important}
:root[data-theme="clearsky"] #aptPanel .fids-row{background:#fff!important;border-bottom:1px solid #e3e8f1!important}
:root[data-theme="clearsky"] #aptPanel .fids-hd{border-bottom:1px solid #cfd7e6!important}
:root[data-theme="clearsky"] #aptPanel .apt-tab,:root[data-theme="clearsky"] #aptPanel .apt-day{background:#fff!important;color:#5b6883!important;border:1px solid #e3e8f1!important}
:root[data-theme="clearsky"] #aptPanel .apt-tab.on,:root[data-theme="clearsky"] #aptPanel .apt-day.on{background:#2563eb!important;color:#fff!important;border-color:#2563eb!important}
:root[data-theme="clearsky"] #aptClock{color:#b45309!important}

/* old tech lettering: same words, new type */
:root[data-theme="clearsky"] .nav-logo,:root[data-theme="clearsky"] .tb-logo{font-family:'Red Hat Display',system-ui,sans-serif!important;font-weight:800!important;letter-spacing:-.2px!important;text-transform:none!important;color:#0f1b33!important}
:root[data-theme="clearsky"] .orb{letter-spacing:-.2px!important}
:root[data-theme="clearsky"] footer .orb{font-family:'Red Hat Display',system-ui,sans-serif!important;text-transform:none!important}

/* footer brand on navy */
:root[data-theme="clearsky"] footer .orb,:root[data-theme="clearsky"] footer [class*="logo"]{background:none!important;-webkit-text-fill-color:#fff!important;color:#fff!important}
:root[data-theme="clearsky"] .ml-logo{font-family:'Red Hat Display',system-ui,sans-serif!important;letter-spacing:-.2px!important;color:#0f1b33!important;-webkit-text-fill-color:#0f1b33!important;background:none!important}

/* ground map legend sits above the phone tab bar */
@media (max-width:768px){.legend{bottom:calc(76px + env(safe-area-inset-bottom))!important}}

/* phone map: Flights button sits on the map, not on the filter buttons */
@media (max-width:900px){
  #mlToggle{top:66px!important;left:auto!important;right:10px!important}
}

/* smoother phones: no live blur, no endless decoration, off-screen sections skip layout and paint */
@media (max-width:900px){
  *,*::before,*::after{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
  .lp-orb,.lp-grid-floor,.ring,.ds-card-glow::before{animation:none!important}
  body>section:not(#tracker):not(#home),main>section:not(#tracker):not(#home){content-visibility:auto;contain-intrinsic-size:auto 900px}
}

/* flight ticket stub: fields stay inside the stub, barcode stays visible */
.tkt-stub-body>*,.tkt-stub-body div{min-width:0}
.tkt-stub input{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.tkt-stub-bars{overflow:hidden}
:root[data-theme="clearsky"] .tkt-stub-bars i,:root[data-theme="clearsky"] .bp-bar-item{background:#17242f!important}
