/* X-Axis product shell: shared chrome for Weather Outlook, Orbit View and FloodWatch.
   Light by default (body.light); dark for space scenes (body.dark). */
:root {
  --navy: #003366; --orange: #E47A49; --orange-soft: rgba(228,122,73,.14);
  --ok: #2ECC71; --warn: #F4C542; --bad: #FF6B6B; --info: #4FA3E3;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 14px;
}
body.light { --ink-900: #eef2f7; --ink-800: #ffffff; --ink-700: #f3f6fa; --ink-600: #e3e9f2; --text: #0b1626; --dim: #4a5a70; --faint: #7a8aa0; --line: rgba(0,51,102,.12); --panel: rgba(255,255,255,.97); --attrib: rgba(255,255,255,.8); --hover: rgba(0,51,102,.06); }
body.dark { --ink-900: #060d18; --ink-800: #0b1626; --ink-700: #112238; --ink-600: #1a3050; --text: #e8eef7; --dim: #9fb0c6; --faint: #6b7d95; --line: rgba(255,255,255,.08); --panel: rgba(11,22,38,.96); --attrib: rgba(6,13,24,.75); --hover: rgba(255,255,255,.07); }
* { box-sizing: border-box; } [hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { font-family: var(--font); color: var(--text); background: var(--ink-900); overflow: hidden; -webkit-font-smoothing: antialiased; display: grid; grid-template-rows: 56px 1fr; grid-template-columns: var(--side-w, 380px) 1fr; grid-template-areas: "top top" "side map"; }
body.map-left { grid-template-columns: 1fr var(--side-w, 380px); grid-template-areas: "top top" "map side"; }
.top { grid-area: top; display: flex; align-items: center; gap: 16px; padding: 0 18px; background: var(--ink-800); border-bottom: 1px solid var(--line); z-index: 5; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-size: 16px; } .brand strong { font-weight: 700; }
.mark { width: 26px; height: 26px; border-radius: 7px; background: var(--navy); position: relative; flex-shrink: 0; } .mark::before { content: ""; position: absolute; inset: 6px; border: 2.5px solid var(--orange); border-radius: 50%; } .mark::after { content: ""; position: absolute; left: 11px; top: 11px; width: 4px; height: 4px; background: var(--orange); border-radius: 50%; }
.tagline { color: var(--dim); font-size: 13px; flex: 1; margin: 0; } .tagline a { color: var(--orange); margin-left: 12px; text-decoration: none; }
.top-actions { display: flex; gap: 6px; }
.icon-btn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--dim); font: inherit; cursor: pointer; display: inline-grid; place-items: center; } .icon-btn:hover { background: var(--hover); color: var(--text); }
.side { grid-area: side; overflow: auto; background: var(--ink-800); border-right: 1px solid var(--line); padding: 14px 16px 24px; }
body.map-left .side { border-right: 0; border-left: 1px solid var(--line); }
#map { grid-area: map; position: relative; background: #000; }
body.light #map { background: #dfe6ee; }
h2 { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 14px 0 8px; font-weight: 600; display: flex; align-items: center; gap: 8px; } h2 small { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--faint); }
.hint { color: var(--dim); font-size: 12.5px; line-height: 1.45; margin: 4px 0 8px; }
.search { display: flex; gap: 6px; position: relative; } .search input { flex: 1; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--ink-700); color: var(--text); font: inherit; font-size: 13.5px; } .search button { width: 40px; border: 0; border-radius: 10px; background: var(--orange); color: #fff; font-weight: 700; cursor: pointer; font-size: 16px; }
.search-results { position: absolute; top: 42px; left: 0; right: 0; list-style: none; margin: 0; padding: 6px; background: var(--ink-800); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 20; max-height: 260px; overflow: auto; } .search-results li { padding: 8px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; color: var(--dim); } .search-results li:hover { background: var(--hover); color: var(--text); } .search-results li b { color: var(--text); display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; } .chip { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-700); color: var(--dim); font: inherit; font-size: 12.5px; cursor: pointer; } .chip:hover, .chip.on { border-color: var(--orange); color: var(--text); background: var(--orange-soft); }
.pill { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--ink-700); color: var(--dim); font: inherit; font-size: 12.5px; cursor: pointer; } .pill.on, .pill:hover { border-color: var(--orange); color: var(--text); background: var(--orange-soft); } .pill:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.toggle { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; cursor: pointer; } .toggle:last-child { border: 0; } .toggle input { accent-color: var(--orange); margin-top: 3px; } .toggle small { display: block; color: var(--faint); font-size: 11.5px; margin-top: 2px; }
.what { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line); color: var(--faint); font-size: 10.5px; font-weight: 700; cursor: help; margin-left: 4px; position: relative; flex-shrink: 0; }
.what::after { content: attr(data-tip); position: absolute; left: 50%; top: 22px; transform: translateX(-50%); width: 240px; background: var(--ink-700); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 12px; font-weight: 400; line-height: 1.45; box-shadow: 0 8px 24px rgba(0,0,0,.25); display: none; z-index: 30; text-transform: none; letter-spacing: 0; text-align: left; }
.what:hover::after, .what.open::after { display: block; }
.card { border: 1px solid var(--line); border-radius: 12px; background: var(--ink-800); margin: 10px 0; overflow: hidden; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px; background: var(--ink-700); cursor: pointer; } .card-h b { font-size: 13.5px; } .card-h span { font-family: var(--mono); font-size: 11px; color: var(--faint); } .card-h button { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 14px; }
.card-b { padding: 10px 12px; }
.status { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink-700); border: 1px solid var(--line); color: var(--text); font-size: 12.5px; padding: 8px 14px; border-radius: 999px; z-index: 6; max-width: calc(100% - 40px); }
.legend { position: absolute; left: 12px; bottom: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 11.5px; color: var(--dim); z-index: 4; display: flex; gap: 10px; flex-wrap: wrap; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.maplibregl-ctrl-attrib { background: var(--attrib) !important; color: var(--faint) !important; font-size: 10.5px !important; } .maplibregl-ctrl-attrib a { color: var(--faint) !important; }
.maplibregl-popup-content { background: var(--ink-700); color: var(--text); border-radius: 10px; font: 12.5px var(--font); box-shadow: 0 10px 30px rgba(0,0,0,.3); padding: 8px 10px; } .maplibregl-popup-tip { border-top-color: var(--ink-700) !important; border-bottom-color: var(--ink-700) !important; }
/* tour */
.tour { position: fixed; inset: 0; z-index: 100; }
.tour-spot { position: absolute; border-radius: 14px; box-shadow: 0 0 0 9999px rgba(3,8,16,.72), 0 0 0 3px var(--orange); transition: all .3s ease; pointer-events: none; }
.tour-spot.none { left: 50%; top: 50%; width: 0; height: 0; box-shadow: 0 0 0 9999px rgba(3,8,16,.78); border-radius: 50%; }
.tour-card { position: absolute; width: min(400px, calc(100vw - 32px)); background: var(--ink-800); border: 1px solid rgba(228,122,73,.5); border-radius: 16px; padding: 20px 20px 16px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.tour-step { margin: 0 0 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); font-weight: 600; }
.tour-card h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.25; } .tour-card p.t { margin: 0 0 16px; color: var(--dim); font-size: 14px; line-height: 1.55; }
.tour-actions { display: flex; align-items: center; gap: 8px; } .tour-dots { flex: 1; display: flex; gap: 5px; justify-content: center; } .tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-600); display: inline-block; } .tour-dots i.on { background: var(--orange); }
/* mobile: side panel becomes a bottom sheet */
.sheet-handle { display: none; }
@media (max-width: 900px) {
  body, body.map-left { grid-template-columns: 1fr; grid-template-areas: "top" "map"; }
  .tagline { display: none; }
  .side { position: absolute; top: auto; left: 0; right: 0; bottom: 0; height: 44vh; z-index: 30; transition: height .25s ease; border: 0; border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 30px rgba(0,0,0,.25); padding-top: 0; }
  .side.open { height: 86vh; } .side.collapsed { height: 46px; overflow: hidden; }
  .sheet-handle { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: 0; z-index: 2; background: var(--ink-800); padding: 12px 14px 8px; margin: 0 -16px 8px; cursor: pointer; font-size: 12.5px; color: var(--dim); border-bottom: 1px solid var(--line); }
  .sheet-handle::before { content: ""; position: absolute; left: 50%; top: 5px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--line); }
  .sheet-handle b { color: var(--text); font-weight: 600; }
  .legend { bottom: auto; top: 66px; left: 10px; max-width: calc(100% - 70px); }
  .what::after { width: 200px; }
}
