/* World pop-up tab: World (globe + clocks), Flights, Earth & Space, Weather, Live Cams. Sits in the Leo pop-up, never over the player. */
#leo-pop-body:has(.hbn-world-paper) { background: var(--leo-pop-bg); color: var(--leo-pop-fg); padding: 0; overflow: hidden; }
.hbn-world-paper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  font-family: var(--leo-pop-font);
  color: var(--leo-pop-fg);
}
.hbn-world-head { margin: 0 0 12px; padding: 0 0 12px; border-bottom: 2px solid var(--leo-pop-line); flex: 0 0 auto; }
.hbn-world-mast {
  margin: 0 0 10px;
  font: 700 13px/1.2 var(--leo-pop-font);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hbn-world-views { display: flex; flex-wrap: wrap; gap: 8px; }
.hbn-world-view-btn {
  font: 700 13px/1.2 var(--leo-pop-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  padding: 7px 12px;
  border: 2px solid var(--leo-pop-line);
  background: transparent;
  color: var(--leo-pop-fg);
  cursor: pointer;
}
.hbn-world-view-btn:hover,
.hbn-world-view-btn:focus-visible { background: var(--leo-pop-inset); }
.hbn-world-view-btn.is-on,
.hbn-world-view-btn[aria-selected="true"] {
  background: var(--leo-pop-bar);
  color: var(--leo-pop-bar-fg);
}
.hbn-world-panel { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: auto; }
.hbn-world-panel[hidden] { display: none; }
.hbn-world-panel[data-panel="world"] { overflow: hidden; }
.hbn-world-panel[data-panel="world"] .hbn-world-globe-wrap {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.hbn-world-panel[data-panel="world"] .hbn-world-globe {
  flex: 1 1 auto;
  height: auto;
  min-height: 160px;
}
.hbn-world-panel[data-panel="world"] .hbn-world-credit {
  flex: 0 0 auto;
  margin: 6px 0;
  font-size: 11px;
  line-height: 1.35;
}
.hbn-world-panel[data-panel="world"] .hbn-world-clocks {
  flex: 0 0 auto;
  margin: 0;
}
.hbn-world-map {
  flex: 1 1 auto;
  min-height: 280px;
  border: 2px solid var(--leo-pop-line);
  background: var(--leo-pop-inset);
}
.hbn-world-map-earth { min-height: 240px; }
.hbn-world-note,
.hbn-world-credit,
.hbn-world-empty,
.hbn-world-noalert,
.hbn-world-meta {
  margin: 10px 0 0;
  color: var(--leo-pop-muted);
  font: 400 13px/1.45 var(--leo-pop-font);
}
.hbn-world-credit { margin-top: 12px; }
.hbn-world-credit a { color: inherit; font-weight: 700; }
.hbn-world-credit a:hover,
.hbn-world-credit a:focus-visible { text-decoration: underline; }
.hbn-world-space { flex: 0 0 auto; margin: 0 0 12px; }
.hbn-world-space-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.hbn-world-space-list li { display: flex; flex-direction: column; gap: 2px; margin: 0; }
.hbn-world-space-list span { color: var(--leo-pop-muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.hbn-world-space-list strong { font-size: 15px; font-weight: 700; }
.hbn-world-now { display: flex; gap: 14px; align-items: center; margin: 0 0 16px; }
.hbn-world-city { margin: 0; font: 700 18px/1.2 var(--leo-pop-font); }
.hbn-world-temp { margin: 4px 0 0; font: 400 20px/1.2 var(--leo-pop-font); }
.hbn-world-wx-ic { display: inline-flex; width: 18px; height: 18px; color: var(--leo-pop-fg); }
.hbn-world-wx-ic svg { width: 100%; height: 100%; }
.hbn-world-wx-ic-lg { width: 40px; height: 40px; flex: 0 0 auto; }
.hbn-world-days { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--leo-pop-line); }
.hbn-world-day { display: grid; grid-template-columns: 4.5em 24px 1fr auto; gap: 10px; align-items: center; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--leo-pop-line); }
.hbn-world-day-name { font-weight: 700; }
.hbn-world-day-label { color: var(--leo-pop-muted); font-size: 13px; }
.hbn-world-alerts { margin: 16px 0 0; }
.hbn-world-alerts h3 { margin: 0 0 8px; font: 700 13px/1.2 var(--leo-pop-font); letter-spacing: 0.08em; text-transform: uppercase; }
.hbn-world-alerts ul { list-style: none; margin: 0; padding: 0; }
.hbn-world-alerts li { margin: 0 0 8px; padding: 0 0 8px; border-bottom: 1px solid var(--leo-pop-line); font-size: 14px; }
.hbn-world-alerts a { color: inherit; font-weight: 700; }
.hbn-world-sev { display: inline-block; margin-right: 6px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700; }
.hbn-plane { background: none !important; border: 0 !important; }
.hbn-plane-rot { display: block; width: 22px; height: 22px; transform-origin: 50% 50%; }
.hbn-plane-rot img { display: block; width: 22px; height: 22px; }
body.tv-mode .tv-side-tabs [role="tab"] { font-size: 11px; padding: 0 4px; letter-spacing: 0.05em; }
@media (max-width: 760px) {
  .hbn-world-paper { padding: 12px 12px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .hbn-world-head { margin-bottom: 8px; padding-bottom: 8px; }
  .hbn-world-mast { margin-bottom: 8px; }
  .hbn-world-views { gap: 5px; }
  .hbn-world-map { min-height: 220px; }
  .hbn-world-space-list { grid-template-columns: 1fr; }
  .hbn-world-day { grid-template-columns: 3.6em 22px 1fr auto; gap: 6px; }
  .hbn-world-view-btn { padding: 6px 7px; font-size: 11px; }
}
.hbn-world-globe-wrap { flex: 0 0 auto; margin: 0 0 12px; }
.hbn-world-globe {
  width: 100%;
  height: 300px;
  border: 2px solid var(--leo-pop-line);
  background: #070b14;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}
.hbn-world-globe:active { cursor: grabbing; }
.hbn-world-globe canvas { display: block; width: 100% !important; height: 100% !important; }
.hbn-world-clocks {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  flex: 0 0 auto;
}
.hbn-world-clock {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 4px;
  border: 1px solid var(--leo-pop-line);
  min-width: 0;
  text-align: center;
  cursor: pointer;
}
.hbn-world-clock:focus-visible { outline: 2px solid var(--leo-pop-line); outline-offset: 1px; }
.hbn-world-clock-city {
  color: var(--leo-pop-muted);
  font: 700 10px/1.2 var(--leo-pop-font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hbn-world-clock-time { font: 700 13px/1.2 var(--leo-pop-font); white-space: nowrap; }
@media (max-width: 760px) {
  .hbn-world-globe { height: 220px; }
  .hbn-world-clocks { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .hbn-world-clock { padding: 4px 2px; gap: 1px; }
  .hbn-world-clock-city { font-size: 9px; }
  .hbn-world-clock-time { font-size: 11px; }
  .hbn-world-panel[data-panel="world"] .hbn-world-credit { margin: 4px 0; font-size: 10px; line-height: 1.3; }
}

/* Desktop: World uses the full available pop-up height so the globe isn't
   stuck in a short wide strip. iPhone is already a full-screen sheet and is left alone. */
@media (min-width: 761px) {
  #leo-pop-window:has(.hbn-world-paper) {
    height: calc(100vh - 48px);
    max-height: none;
  }
}

.hbn-world-panel[data-panel="satellite"] { overflow: hidden; }
.hbn-world-sat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 0 0 auto;
  margin: 0 0 10px;
}
.hbn-world-sat-toggle { display: flex; gap: 8px; flex: 0 0 auto; }
.hbn-world-sat-time {
  margin: 0;
  color: var(--leo-pop-muted);
  font: 400 13px/1.3 var(--leo-pop-font);
  text-align: right;
  min-width: 0;
}
.hbn-world-sat-frame {
  flex: 1 1 auto;
  min-height: 0;
  border: 2px solid var(--leo-pop-line);
  background: #070b14;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hbn-world-sat-frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.hbn-world-sat-frame .hbn-world-empty { position: absolute; margin: 0; }
@media (max-width: 760px) {
  .hbn-world-sat-bar { margin-bottom: 8px; gap: 8px; }
  .hbn-world-sat-time { font-size: 11px; }
  .hbn-world-sat-frame { min-height: 220px; }
}
a.hbn-world-view-btn {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}
.hbn-world-view-btn[aria-current="page"] {
  background: var(--leo-pop-bar);
  color: var(--leo-pop-bar-fg);
}
.hbn-world-mast a { color: inherit; text-decoration: none; }
.hbn-world-mast a:hover,
.hbn-world-mast a:focus-visible { text-decoration: underline; }
.hbn-world-panel[data-panel="home"] { overflow: auto; }
.hbn-world-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-width: 0;
}
.hbn-world-card {
  border: 1px solid var(--leo-pop-line, #b8c2dc);
  background: #fff;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.hbn-world-card-h {
  margin: 0;
  padding: 5px 8px;
  background: var(--leo-pop-inset, #e8eefb);
  border-bottom: 1px solid var(--leo-pop-line, #b8c2dc);
  font: 700 13px/1.2 var(--leo-pop-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hbn-world-card-h a { color: inherit; text-decoration: none; }
.hbn-world-card-h a:hover,
.hbn-world-card-h a:focus-visible { text-decoration: underline; }
.hbn-world-card-b { padding: 8px; flex: 1 1 auto; min-width: 0; }
.hbn-world-card-media { margin: 0 0 8px; }
.hbn-world-card-media img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: cover;
  object-position: center;
  background: #e8eefb;
  border: 1px solid var(--leo-pop-line, #ccc);
}
.hbn-world-card-stat { margin: 0; font: 700 18px/1.3 var(--leo-pop-font); }
.hbn-world-card-space { grid-template-columns: 1fr; gap: 6px; }
.hbn-world-more { margin: 0; padding: 0 8px 8px; text-align: right; font-size: 12px; }
.hbn-world-more a { color: inherit; }
.hbn-world-home-clocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 8px;
  min-width: 0;
}
.hbn-world-home-clock { display: flex; justify-content: space-between; gap: 6px; min-width: 0; font-size: 11px; }
.hbn-world-cam-thumbs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.hbn-world-cam-thumbs li { margin: 0; min-width: 0; }
.hbn-world-cam-thumbs a {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.hbn-world-cam-thumbs a:hover span,
.hbn-world-cam-thumbs a:focus-visible span { text-decoration: underline; }
.hbn-world-cam-thumbs img {
  display: block;
  width: 80px;
  height: 45px;
  object-fit: cover;
  background: #e8eefb;
  border: 1px solid var(--leo-pop-line, #ccc);
}
.hbn-world-cam-thumbs span { font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 760px) {
  .hbn-world-home { grid-template-columns: 1fr; gap: 10px; }
  .hbn-world-card-media img { height: 72px; }
}
.hbn-world-paper > .hbn-news-head {
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 2px solid var(--leo-pop-line);
  flex: 0 0 auto;
}
.hbn-world-site-title {
  margin: 8px 0 0;
  font: 700 22px/1.2 var(--leo-pop-font);
  letter-spacing: 0.04em;
  color: var(--leo-pop-fg);
}
.hbn-world-sat-toggle { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.hbn-world-sat-credit {
  margin: 0 0 8px;
  color: var(--leo-pop-muted, #334155);
  font-size: 11px;
}
.hbn-world-quake-h { margin: 0 0 6px; font: 700 16px/1.2 var(--leo-pop-font); }
.hbn-world-quake-list { list-style: none; margin: 0 0 12px; padding: 0; }
.hbn-world-quake { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--leo-pop-line); font-size: 14px; }
@media (max-width: 760px) {
  .hbn-world-site-title { font-size: 18px; }
  .hbn-world-sat-toggle { gap: 5px; }
}
