:root{
  --navy:#0a1f44;
  --navy-2:#123163;
  --navy-3:#0d2a56;
  --green:#16a34a;
  --green-bright:#22c55e;
  --amber:#f59e0b;
  --red:#ef4444;
  --bg:#eef2f7;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --border:#e2e8f0;
  --radius:14px;
  --shadow:0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Helvetica,Arial,sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  line-height:1.45;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
h1,h2,h3{margin:0;font-weight:700;letter-spacing:-.01em}
.muted{color:var(--muted)}
.small{font-size:.82rem}
.right{text-align:right}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;
  background:linear-gradient(180deg,#0b2350,#0a1f44);
  color:#fff;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header-inner{
  max-width:1400px;margin:0 auto;padding:.6rem 1.25rem;
  display:flex;align-items:center;gap:1.25rem;
}
.brand{display:flex;align-items:center;gap:.65rem;flex:0 0 auto}
.brand-mark svg{width:42px;height:42px;display:block}
.brand-mark.small svg{width:34px;height:34px}
.brand-text{display:flex;flex-direction:column;line-height:1.05}
.brand-text strong{font-size:1rem;letter-spacing:.02em;text-transform:uppercase}
.brand-text em{font-style:normal;font-size:1rem;font-weight:700;color:var(--green-bright);text-transform:uppercase}
.brand-text small{font-size:.66rem;color:rgba(255,255,255,.6);margin-top:.2rem}

.main-nav{display:flex;gap:.25rem;margin-left:auto;flex-wrap:wrap}
.main-nav a{
  font-size:.78rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  padding:.5rem .8rem;border-radius:999px;color:rgba(255,255,255,.78);
  transition:background .15s,color .15s;
}
.main-nav a:hover{background:rgba(255,255,255,.09);color:#fff}
.main-nav a[aria-current="page"]{background:rgba(255,255,255,.14);color:#fff}

.header-status{display:flex;align-items:center;gap:1rem;margin-left:.5rem;flex:0 0 auto}
.header-clock{display:flex;flex-direction:column;line-height:1.1;text-align:right;font-size:.78rem}
.header-clock strong{font-size:1rem}
.header-clock small{color:rgba(255,255,255,.6);font-size:.68rem}
.theme-toggle{color:rgba(255,255,255,.75);display:flex;align-items:center;background:none;border:none;cursor:pointer;padding:.35rem;border-radius:8px;transition:background .15s,color .15s}
.theme-toggle:hover{background:rgba(255,255,255,.12);color:#fff}

.pill{display:inline-flex;align-items:center;gap:.35rem;font-size:.68rem;font-weight:700;letter-spacing:.08em;padding:.28rem .55rem;border-radius:999px;text-transform:uppercase}
.pill .dot{width:.5rem;height:.5rem;border-radius:50%;background:currentColor;display:inline-block}
.pill-live{color:#8ef0b0;background:rgba(34,197,94,.14);border:1px solid rgba(34,197,94,.35)}
.pill-live.is-stale{color:#fcd34d;background:rgba(245,158,11,.14);border-color:rgba(245,158,11,.35)}
.pill-live.is-offline{color:#fca5a5;background:rgba(239,68,68,.14);border-color:rgba(239,68,68,.35)}
.pill-live.small{font-size:.6rem;padding:.2rem .45rem}
.pill-station{color:#cfe0f7;background:rgba(59,130,246,.16);border:1px solid rgba(59,130,246,.4)}

/* ---------- hero ---------- */
.hero{position:relative;color:#fff;overflow:hidden;background:#081a38}
.hero-bg{
  position:absolute;inset:0;
  background:
    radial-gradient(120% 90% at 78% 20%, rgba(56,189,248,.30), transparent 55%),
    radial-gradient(90% 80% at 15% 90%, rgba(251,146,60,.28), transparent 60%),
    linear-gradient(180deg,#0b2a5b 0%, #0a1f44 55%, #071733 100%);
}
.hero-bg::before{
  content:"";position:absolute;inset:0;z-index:1;
  background-image:url("images/hero-table-mountain.jpg");
  background-size:cover;background-position:center 62%;background-repeat:no-repeat;
  filter:contrast(1.06) saturate(1.06) brightness(0.95);
}

/* readability scrim: enough contrast for the headline, light enough to keep the photo */
.hero-bg::after{
  content:"";position:absolute;inset:0;z-index:2;
  background:
    linear-gradient(180deg, rgba(4,12,28,.48) 0%, rgba(4,12,28,.06) 26%, rgba(4,12,28,.06) 62%, rgba(4,12,28,.74) 100%),
    linear-gradient(90deg,
      rgba(4,12,28,.88) 0%,
      rgba(4,12,28,.68) 30%,
      rgba(4,12,28,.38) 54%,
      rgba(4,12,28,.21) 78%,
      rgba(4,12,28,.47) 100%);
}
/* discreet photo credit, tucked into the corner of the banner */
.hero-credit{
  position:absolute;right:1.1rem;bottom:.55rem;z-index:3;margin:0;
  font-size:.56rem;line-height:1.3;letter-spacing:.02em;
  color:rgba(255,255,255,.26);text-align:right;max-width:60%;
}
.hero-credit a{color:rgba(255,255,255,.36);text-decoration:none}
.hero-credit a:hover{color:rgba(255,255,255,.6)}
@media (max-width:640px){
  .hero-credit{right:.7rem;bottom:.4rem;font-size:.5rem;max-width:80%}
}
.hero-inner{
  position:relative;z-index:3;
  max-width:1400px;margin:0 auto;
  padding:3.2rem 1.25rem 2.6rem;
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);
  gap:2rem;align-items:center;
}
.hero-copy h1{font-size:clamp(2.1rem,4.2vw,3.4rem);line-height:1.05}
.hero-copy p{margin:.9rem 0 0;max-width:34ch;color:rgba(255,255,255,.85);font-size:1.02rem}
.hero-actions{display:flex;gap:.7rem;margin-top:1.5rem;flex-wrap:wrap}
.hero-station{margin-top:1.1rem;font-size:.82rem;line-height:1.45;color:rgba(255,255,255,.78)!important;max-width:44ch}
.hero-station strong{color:#fff}
.hero-station a{color:#8ecbff;text-decoration:none}
.hero-station a:hover{text-decoration:underline}
.hero-refresh-note{margin:.7rem 0 0;font-size:.72rem;line-height:1.5;color:rgba(255,255,255,.55)!important;max-width:52ch}
.hero-refresh-note.is-working{animation:rf-pulse 1.5s ease-in-out infinite}
@keyframes rf-pulse{0%,100%{opacity:1}50%{opacity:.45}}

.btn{
  display:inline-flex;align-items:center;gap:.5rem;cursor:pointer;
  font:inherit;font-weight:700;font-size:.85rem;letter-spacing:.04em;
  padding:.8rem 1.15rem;border-radius:10px;border:1px solid transparent;
  transition:transform .12s,background .15s,box-shadow .15s;
}
.btn:active{transform:translateY(1px)}
.btn-primary{background:var(--green);color:#fff;box-shadow:0 6px 18px rgba(22,163,74,.35)}
.btn-primary:hover{background:#15803d}
.btn-ghost{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.25)}
.btn-ghost:hover{background:rgba(255,255,255,.16)}

.hero-panels{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.panel{border-radius:var(--radius);padding:1rem 1.1rem;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.panel h2{font-size:.78rem;letter-spacing:.09em;text-transform:uppercase;display:flex;align-items:center;gap:.35rem}
.panel .info{
  font-style:normal;font-size:.62rem;width:1rem;height:1rem;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid currentColor;opacity:.5;cursor:help;
}
.panel-outlook{background:rgba(6,20,44,.55);border:1px solid rgba(255,255,255,.16)}
.panel-outlook h2{color:rgba(255,255,255,.75)}
.outlook-rating{font-size:2.4rem;font-weight:800;color:var(--green-bright);margin:.5rem 0 .35rem;line-height:1}
.outlook-line{margin:.25rem 0;font-size:.88rem;color:rgba(255,255,255,.92)}
.outlook-line.muted{color:rgba(255,255,255,.62)}
.panel-foot{margin:.9rem 0 0;font-size:.74rem;color:rgba(255,255,255,.6)}
.panel-foot.right{text-align:right}
.panel-foot a{color:#8ecbff}

/* Space Weather: same dark glass as the outlook panel, so both read as one system
   over the photograph and the white card no longer dominates the banner */
.panel-weather{background:rgba(6,20,44,.55);color:#fff;border:1px solid rgba(255,255,255,.16)}
.panel-weather h2{color:rgba(255,255,255,.75)}
.panel-weather .ico{color:var(--amber)}
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:.4rem;margin:.75rem 0 .5rem}
.tile{display:flex;flex-direction:column;gap:.15rem;padding:.5rem .35rem;border-radius:8px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.13);text-align:center}
.tile-label{font-size:.64rem;color:rgba(255,255,255,.62);text-transform:uppercase;letter-spacing:.06em}
.tile-value{font-size:1.25rem;font-weight:800;color:#fff}
.tile-delta{font-size:.68rem;font-weight:700;color:rgba(255,255,255,.7)}
.tile-delta.up{color:#7ee2a0}
.tile-delta.down{color:#ff9b9b}
.weather-summary{margin:.35rem 0 0;font-size:.82rem;color:rgba(255,255,255,.85)}

/* ---------- layout ---------- */
.layout{
  max-width:1400px;margin:0 auto;padding:1.5rem 1.25rem 2.5rem;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.25rem;
}
.card{
  background:var(--card);border:1px solid var(--border);border-radius:var(--radius);
  padding:1rem 1.1rem 1.1rem;box-shadow:var(--shadow);display:flex;flex-direction:column;
}
.card-wide{grid-column:span 1}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.75rem}
.card-head h2{font-size:.78rem;letter-spacing:.09em;text-transform:uppercase;color:var(--navy);display:flex;align-items:center;gap:.45rem}
.card-head .ico{color:var(--green)}
.tag{font-size:.6rem;font-weight:800;letter-spacing:.08em;padding:.22rem .45rem;border-radius:999px;text-transform:uppercase;white-space:nowrap}
.tag-derived{color:#166534;background:#dcfce7;border:1px solid #bbf7d0}
.tag-pending{color:#92400e;background:#fef3c7;border:1px solid #fde68a}
.tag-measured{color:#1e3a8a;background:#dbeafe;border:1px solid #bfdbfe}
.card-foot{margin:.85rem 0 0;font-size:.8rem;font-weight:600}
.card-foot a{color:#1d4ed8}
.card-foot.muted{font-weight:400;color:var(--muted)}

/* band list */
.band-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.4rem}
.band-row{display:flex;align-items:center;gap:.7rem;padding:.5rem .6rem;border-radius:9px;background:#f8fafc;border-left:4px solid var(--muted)}
.band-row .band{font-weight:800;font-size:.95rem;min-width:3.2rem}
.band-row .range{font-size:.72rem;color:var(--muted);flex:1}
.band-row .rating{font-size:.68rem;font-weight:800;letter-spacing:.06em;padding:.22rem .5rem;border-radius:999px;text-transform:uppercase}
.band-row.r-excellent{border-left-color:var(--green)}
.band-row.r-excellent .rating{color:#166534;background:#dcfce7}
.band-row.r-good{border-left-color:var(--green-bright)}
.band-row.r-good .rating{color:#166534;background:#dcfce7}
.band-row.r-fair{border-left-color:var(--amber)}
.band-row.r-fair .rating{color:#92400e;background:#fef3c7}
.band-row.r-poor{border-left-color:var(--red)}
.band-row.r-poor .rating{color:#991b1b;background:#fee2e2}
.band-row.r-closed{border-left-color:#94a3b8}
.band-row.r-closed .rating{color:#334155;background:#e2e8f0}
.skeleton-row{height:2.1rem;border-radius:9px;background:linear-gradient(90deg,#f1f5f9,#e2e8f0,#f1f5f9);background-size:200% 100%;animation:sh 1.4s infinite}
@keyframes sh{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* map */
.map-wrap{position:relative;border-radius:10px;overflow:hidden;border:1px solid var(--border);background:#04122b}
.map-canvas{display:block;width:100%;aspect-ratio:2 / 1;height:auto;background:#061831}
/* the map has a page of its own: give it the full width and real size on
   desktop, while the smaller breakpoints below still apply on tablets/phones */
@media (min-width:900px){
  .layout-single .map-canvas{min-height:520px}
  .layout-single .map-legend{margin-top:.7rem;font-size:.8rem}
  .layout-single .map-caption{font-size:.88rem}
}
.map-legend{display:flex;gap:.9rem;justify-content:center;padding:.5rem;background:rgba(2,10,24,.85);font-size:.68rem;color:#cbd5e1;flex-wrap:wrap}
.map-legend i{width:10px;height:10px;border-radius:3px;display:inline-block;margin-right:.3rem;vertical-align:middle}
.sw-poor{background:#ef4444}.sw-fair{background:#f59e0b}.sw-good{background:#22c55e}.sw-exc{background:#84cc16}
.sw-grey{background:#e2e8f0}.sw-night{background:#0b1730;border:1px solid #64748b}
.map-caption{margin:.65rem 0 0;font-size:.72rem;color:var(--muted);font-variant-numeric:tabular-nums}

/* forecast */
.tag-noaa{color:#1e3a8a;background:#dbeafe;border:1px solid #bfdbfe}
.fc-list{list-style:none;margin:.2rem 0 0;padding:0;display:flex;flex-direction:column;gap:.35rem}
.fc-list li{display:flex;align-items:center;gap:.5rem;font-size:.82rem;padding:.35rem 0;border-bottom:1px solid #f1f5f9}
.fc-list li:last-child{border-bottom:none}
.fc-list .name{flex:1}
.fc-list .val{font-weight:800;font-variant-numeric:tabular-nums}
.fc-list .age{font-size:.72rem;color:var(--muted)}

/* settings */
.settings-grid{display:flex;flex-direction:column;gap:.8rem}
.field{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.field label{font-size:.84rem;font-weight:600}
.field select{
  font:inherit;font-size:.82rem;padding:.4rem .55rem;border-radius:8px;
  border:1px solid var(--border);background:var(--card);color:var(--text);min-width:10rem;
}
input[type="text"]{
  font:inherit;font-size:.82rem;padding:.4rem .55rem;border-radius:8px;
  border:1px solid var(--border);background:var(--card);color:var(--text);min-width:10rem;
}
.btn-small{
  font:inherit;font-size:.78rem;font-weight:700;padding:.5rem .8rem;border-radius:8px;
  border:1px solid var(--border);background:#f1f5f9;color:var(--text);cursor:pointer;
}
.btn-small:hover{background:#e2e8f0}

/* alert strip */
.alert-strip{
  max-width:1400px;margin:1rem auto -0.25rem;padding:.7rem 1rem;
  background:#fef3c7;border:1px solid #fde68a;border-radius:10px;
  font-size:.84rem;color:#78350f;
}
.alert-strip[hidden]{display:none}

/* tables */
.data-table{width:100%;border-collapse:collapse;font-size:.82rem}
.data-table th{text-align:left;font-size:.66rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:.35rem .3rem;border-bottom:1px solid var(--border)}
.data-table td{padding:.5rem .3rem;border-bottom:1px solid #f1f5f9}
.data-table tr:last-child td{border-bottom:none}
.data-table td.num{font-variant-numeric:tabular-nums}
.rel{font-weight:800}
.rel.high{color:var(--green)}
.rel.mid{color:#b45309}
.rel.low{color:var(--red)}

/* source list — fixed columns so the state pill and age always line up */
.source-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.55rem}
.source-list li{
  display:grid;
  grid-template-columns:minmax(0,1fr) 7rem 9.5rem;
  align-items:center;
  gap:.75rem;
  font-size:.85rem;padding:.4rem 0;border-bottom:1px solid #f1f5f9;
}
.source-list li:last-child{border-bottom:none}
.source-list .name{min-width:0}
.source-list .name small{display:block;line-height:1.35}
.source-list .state{
  justify-self:center;white-space:nowrap;
  font-size:.66rem;font-weight:800;letter-spacing:.06em;
  padding:.2rem .45rem;border-radius:999px;text-transform:uppercase;
}
.state-live{color:#166534;background:#dcfce7}
.state-cached{color:#92400e;background:#fef3c7}
.state-stale{color:#991b1b;background:#fee2e2}
.state-pending{color:#334155;background:#e2e8f0}
.source-list .age{font-size:.74rem;color:var(--muted);text-align:right;overflow-wrap:anywhere}

/* tools */
.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.6rem}
.tool{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.35rem;
  padding:.85rem .4rem;border:1px solid var(--border);border-radius:10px;background:#f8fafc;
  font-size:.72rem;font-weight:600;text-align:center;color:var(--navy);transition:background .15s,transform .12s;
}
.tool:hover{background:#eff6ff;transform:translateY(-1px)}
.tool-ico{font-size:1.1rem;color:var(--green)}
.tool small{font-size:.6rem;color:var(--amber);font-weight:700}
.tool.is-disabled{opacity:.6;cursor:not-allowed;background:#f8fafc}
.tool.is-disabled:hover{transform:none;background:#f8fafc}

/* disclaimer + footer */
.disclaimer-strip{background:#e2e8f0;border-top:1px solid #cbd5e1;border-bottom:1px solid #cbd5e1}
.disclaimer-inner{max-width:1400px;margin:0 auto;padding:.9rem 1.25rem;display:flex;gap:1.5rem;align-items:center;justify-content:space-between;flex-wrap:wrap}
.disclaimer-inner p{margin:0;font-size:.8rem;color:#334155;display:flex;gap:.5rem;align-items:flex-start;max-width:70ch}
.disclaimer-inner .ico{color:#1d4ed8}
.disclaimer-links{display:flex;gap:1rem;font-size:.78rem;font-weight:600;flex-wrap:wrap}
.disclaimer-links a{color:#1d4ed8}

.site-footer{background:#0a1f44;color:#fff;margin-top:0}
.footer-inner{max-width:1400px;margin:0 auto;padding:1.4rem 1.25rem;display:flex;gap:2rem;align-items:center;justify-content:space-between;flex-wrap:wrap}
.footer-brand{display:flex;gap:.7rem;align-items:center}
.footer-brand strong{font-size:.85rem;letter-spacing:.04em;text-transform:uppercase}
.footer-brand small{color:rgba(255,255,255,.6);font-size:.72rem}
.footer-mid{text-align:center;font-size:.8rem}
.footer-mid p{margin:.1rem 0}
.footer-right{text-align:right;font-size:.78rem}
.footer-right p{margin:.1rem 0;color:rgba(255,255,255,.75)}
.footer-right .pill{margin-top:.35rem}

/* ---------- utilities ---------- */
.layout-single{grid-template-columns:1fr}
.layout-narrow{max-width:960px}
.layout-narrow-sm{max-width:760px}
.section-sub{margin-top:1.4rem;font-size:.9rem}
.install-hint{
  margin-top:.75rem;font-size:.78rem;color:rgba(255,255,255,.8);
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.2);
  border-radius:10px;padding:.6rem .75rem;max-width:42ch;
}
.install-hint[hidden]{display:none}
.install-hint strong{color:#fff}
.install-hint ol{margin:.35rem 0 0;padding-left:1.1rem}
.install-hint li{margin:.15rem 0}

/* ---------- responsive ---------- */@media (max-width:1100px){
  .layout{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-inner{grid-template-columns:1fr}
  .hero-panels{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .header-inner{flex-wrap:wrap;gap:.5rem}
  .header-status{margin-left:auto}
  .layout{grid-template-columns:1fr}
  .hero-panels{grid-template-columns:1fr}
  .tiles{grid-template-columns:repeat(2,1fr)}
  .tool-grid{grid-template-columns:repeat(2,1fr)}
  .footer-inner{flex-direction:column;text-align:center}
  .footer-right{text-align:center}
}

/* ---------- dark theme ---------- */
[data-theme="dark"]{
  --bg:#0b1626;
  --card:#111f36;
  --text:#e6edf7;
  --muted:#93a4bd;
  --border:#1e2f4a;
}
[data-theme="dark"] .card-head h2{color:#cfe0f7}
[data-theme="dark"] .band-row{background:#0e1c30}
[data-theme="dark"] .tool{background:#0e1c30;border-color:var(--border);color:var(--text)}
[data-theme="dark"] .tool:hover{background:#152744}
[data-theme="dark"] .tool.is-disabled:hover{background:#0e1c30}
[data-theme="dark"] .data-table td{border-color:#1a2942}
[data-theme="dark"] .data-table th{border-color:#1e2f4a}
[data-theme="dark"] .source-list li{border-color:#1a2942}
[data-theme="dark"] .fc-list li{border-color:#1a2942}
[data-theme="dark"] .card-foot a{color:#7cb6ff}
[data-theme="dark"] .disclaimer-strip{background:#0e1c30;border-color:#1e2f4a}
[data-theme="dark"] .disclaimer-inner p{color:#a9bcd6}
[data-theme="dark"] .disclaimer-links a{color:#7cb6ff}
[data-theme="dark"] .btn-small{background:#0e1c30;border-color:var(--border);color:var(--text)}
[data-theme="dark"] .btn-small:hover{background:#152744}
[data-theme="dark"] .alert-strip{background:#2a2110;border-color:#4a3a12;color:#fcd34d}
[data-theme="dark"] .map-wrap{border-color:var(--border)}
[data-theme="dark"] .tag-derived{color:#86efac;background:#14321f;border-color:#1f5132}
[data-theme="dark"] .tag-noaa{color:#bfdbfe;background:#132a4d;border-color:#1e3f6e}
[data-theme="dark"] .tag-pending{color:#fcd34d;background:#33280d;border-color:#4a3a12}
[data-theme="dark"] .tag-measured{color:#bfdbfe;background:#132a4d;border-color:#1e3f6e}
[data-theme="dark"] .state-live{color:#86efac;background:#14321f}
[data-theme="dark"] .state-cached{color:#fcd34d;background:#33280d}
[data-theme="dark"] .state-stale{color:#fca5a5;background:#3a1a1a}
[data-theme="dark"] .state-pending{color:#cbd5e1;background:#1e293b}
[data-theme="dark"] .band-row.r-excellent .rating,
[data-theme="dark"] .band-row.r-good .rating{color:#86efac;background:#14321f}
[data-theme="dark"] .band-row.r-fair .rating{color:#fcd34d;background:#33280d}
[data-theme="dark"] .band-row.r-poor .rating{color:#fca5a5;background:#3a1a1a}
[data-theme="dark"] .band-row.r-closed .rating{color:#cbd5e1;background:#1e293b}
[data-theme="dark"] .fc-kp{border-color:var(--border)}

/* forecast bar heights (class-based so CSP style-src 'self' is satisfied) */
.fc-h5{height:5%}
.fc-h10{height:10%}
.fc-h15{height:15%}
.fc-h20{height:20%}
.fc-h25{height:25%}
.fc-h30{height:30%}
.fc-h35{height:35%}
.fc-h40{height:40%}
.fc-h45{height:45%}
.fc-h50{height:50%}
.fc-h55{height:55%}
.fc-h60{height:60%}
.fc-h65{height:65%}
.fc-h70{height:70%}
.fc-h75{height:75%}
.fc-h80{height:80%}
.fc-h85{height:85%}
.fc-h90{height:90%}
.fc-h95{height:95%}
.fc-h100{height:100%}

/* ---------- licensing consent gate ---------- */
/* Content is withheld until the licensing notice is accepted. */
html:is([data-consent="pending"],[data-consent="declined"]) .site-header,
html:is([data-consent="pending"],[data-consent="declined"]) .hero,
html:is([data-consent="pending"],[data-consent="declined"]) main,
html:is([data-consent="pending"],[data-consent="declined"]) .alert-strip,
html:is([data-consent="pending"],[data-consent="declined"]) .disclaimer-strip,
html:is([data-consent="pending"],[data-consent="declined"]) .site-footer{
  display:none;
}
html[data-consent="accepted"] .consent-gate{display:none}
.consent-gate[hidden]{display:none}

.consent-gate{
  position:fixed;inset:0;z-index:500;
  display:flex;align-items:center;justify-content:center;
  padding:1.25rem;background:rgba(6,14,28,.88);
  overflow:auto;
}
.gate-card{
  width:100%;max-width:640px;background:var(--card);color:var(--text);
  border:1px solid var(--border);border-radius:16px;
  padding:1.5rem 1.6rem;box-shadow:0 24px 60px rgba(0,0,0,.45);
}
.gate-card h2{margin:0 0 .6rem;font-size:1.2rem}
.gate-card p{margin:.5rem 0;font-size:.9rem;line-height:1.5}
.gate-card ul{margin:.5rem 0 .5rem 1.1rem;padding:0;font-size:.86rem}
.gate-card li{margin:.25rem 0}
.gate-card .gate-links{margin-top:.9rem;font-size:.84rem}
.gate-actions{display:flex;gap:.7rem;margin-top:1.2rem;flex-wrap:wrap}
.gate-actions .btn{border-width:1px}
.gate-actions .btn-ghost{color:var(--text);background:#f1f5f9;border-color:var(--border)}
.gate-actions .btn-ghost:hover{background:#e2e8f0}
.consent-gate[data-state="ask"] .gate-declined{display:none}
.consent-gate[data-state="declined"] .gate-ask{display:none}
.gate-declined h2{color:#b45309}
.gate-note{font-size:.78rem;color:var(--muted);margin-top:1rem}
[data-theme="dark"] .gate-actions .btn-ghost{background:#0e1c30;border-color:var(--border);color:var(--text)}
[data-theme="dark"] .gate-actions .btn-ghost:hover{background:#152744}

/* ---------- space weather alerts ---------- */
.alert-strip{
  display:flex;align-items:center;gap:.7rem;
}
.alert-strip a{font-weight:700;white-space:nowrap}
.sev-chip{
  display:inline-flex;align-items:center;justify-content:center;
  font-size:.68rem;font-weight:800;letter-spacing:.05em;
  padding:.25rem .5rem;border-radius:999px;white-space:nowrap;
  border:1px solid transparent;
}
.sev-none{color:#334155;background:#e2e8f0;border-color:#cbd5e1}
.sev-minor{color:#166534;background:#dcfce7;border-color:#bbf7d0}
.sev-moderate{color:#92400e;background:#fef3c7;border-color:#fde68a}
.sev-strong{color:#9a3412;background:#ffedd5;border-color:#fed7aa}
.sev-extreme{color:#991b1b;background:#fee2e2;border-color:#fecaca}

.alert-list{display:flex;flex-direction:column;gap:1rem}
.alert-item{border:1px solid var(--border);border-radius:10px;padding:.8rem .9rem;background:#f8fafc}
.al-head{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.al-head h3{margin:0;font-size:.92rem}
.al-meaning{margin:.55rem 0 0;font-size:.85rem;line-height:1.5}
.al-impacts{margin:.45rem 0 0;font-size:.8rem;color:#475569;line-height:1.45}
.al-details{margin-top:.6rem;font-size:.8rem}
.al-details summary{cursor:pointer;font-weight:700;color:#1d4ed8}
.al-grid{display:flex;flex-direction:column;gap:.2rem;margin:.55rem 0 .5rem}
.al-row{display:flex;gap:.6rem;font-size:.78rem;border-bottom:1px solid #eef2f7;padding:.2rem 0}
.al-k{min-width:11rem;color:var(--muted);font-weight:600}
.al-v{flex:1;word-break:break-word}
.al-raw{
  white-space:pre-wrap;word-break:break-word;font-size:.72rem;line-height:1.45;
  background:#0b1f3a;color:#dbeafe;border-radius:8px;padding:.6rem .7rem;margin:.3rem 0 0;
  max-height:16rem;overflow:auto;
}
[data-theme="dark"] .alert-item{background:#0e1c30}
[data-theme="dark"] .al-row{border-color:#1a2942}
[data-theme="dark"] .al-impacts{color:#a9bcd6}
[data-theme="dark"] .al-details summary{color:#7cb6ff}
[data-theme="dark"] .sev-none{color:#cbd5e1;background:#1e293b;border-color:#334155}

.code-chip{
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.68rem;font-weight:700;letter-spacing:.03em;
  padding:.2rem .45rem;border-radius:6px;
  color:#1e3a8a;background:#e0e7ff;border:1px solid #c7d2fe;
}
[data-theme="dark"] .code-chip{color:#c7d2fe;background:#1e2749;border-color:#33406b}

/* ---------- glossary / guide ---------- */
.glossary{margin:0}
.glossary dt{font-weight:700;margin-top:.9rem;font-size:.9rem}
.glossary dt:first-child{margin-top:0}
.glossary dd{margin:.25rem 0 0;font-size:.85rem;color:var(--muted);line-height:1.55}
.rate-chip{
  display:inline-block;font-size:.66rem;font-weight:800;letter-spacing:.06em;
  padding:.22rem .5rem;border-radius:999px;text-transform:uppercase;white-space:nowrap;
}
.rate-excellent,.rate-good{color:#166534;background:#dcfce7}
.rate-fair{color:#92400e;background:#fef3c7}
.rate-poor{color:#991b1b;background:#fee2e2}
.rate-closed{color:#334155;background:#e2e8f0}
a.tag{text-decoration:none}
a.tag:hover{filter:brightness(.95)}
[data-theme="dark"] .glossary dd{color:#a9bcd6}
[data-theme="dark"] .rate-excellent,[data-theme="dark"] .rate-good{color:#86efac;background:#14321f}
[data-theme="dark"] .rate-fair{color:#fcd34d;background:#33280d}
[data-theme="dark"] .rate-poor{color:#fca5a5;background:#3a1a1a}
[data-theme="dark"] .rate-closed{color:#cbd5e1;background:#1e293b}

/* ============================================================
   MOBILE / TABLET  — phones and tablets first-class
   ============================================================ */
html{-webkit-text-size-adjust:100%}
img,canvas,svg{max-width:100%}

/* comfortable touch targets */
@media (hover:none){
  .btn,.btn-small,.tool,.main-nav a,.theme-toggle,#gate-accept,#gate-decline,#gate-reconsider{
    min-height:44px;
  }
  .btn{align-items:center}
  .main-nav a{display:inline-flex;align-items:center}
}

/* tablets */
@media (max-width:900px){
  .header-inner{padding:.55rem .9rem;gap:.75rem;flex-wrap:wrap}
  .main-nav{order:3;width:100%;justify-content:center;margin-left:0}
  .layout{padding:1.1rem .9rem 2rem;gap:1rem}
  .hero-inner{padding:2.2rem .9rem 1.9rem;gap:1.4rem}
  .hero-copy h1{font-size:clamp(1.9rem,6vw,2.6rem)}
  .map-canvas{height:280px}
}

/* phones */
@media (max-width:640px){
  .header-inner{gap:.45rem;padding:.5rem .7rem}
  .brand-text small{display:none}
  .brand-text strong,.brand-text em{font-size:.9rem}
  .brand-mark svg{width:36px;height:36px}
  .main-nav{order:3;width:100%;justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;padding-bottom:.15rem;padding-right:.35rem;scrollbar-width:none;-webkit-mask-image:linear-gradient(90deg,#000 92%,transparent);mask-image:linear-gradient(90deg,#000 92%,transparent)}
  .main-nav::-webkit-scrollbar{display:none}
  .main-nav a{padding:.5rem .6rem;font-size:.72rem;white-space:nowrap}
  .header-status{gap:.5rem}
  .header-clock{font-size:.68rem}
  .header-clock strong{font-size:.85rem}
  .header-clock small{display:none}
  .pill{font-size:.6rem;padding:.22rem .45rem}

  .hero-inner{padding:1.6rem .8rem 1.4rem}
  .hero-copy h1{font-size:1.85rem}
  .hero-copy p{font-size:.92rem}
  .hero-actions{width:100%}
  .hero-actions .btn{flex:1;justify-content:center}
  .hero-panels{grid-template-columns:1fr;gap:.75rem}
  .outlook-rating{font-size:2rem}

  .layout{padding:.9rem .7rem 1.6rem;gap:.9rem}
  .card{padding:.85rem .8rem .95rem;border-radius:12px}
  .card-head{gap:.4rem;flex-wrap:wrap}
  .card-head h2{font-size:.72rem}
  .tag{font-size:.55rem;padding:.18rem .4rem}

  .band-row{gap:.45rem;padding:.45rem .5rem}
  .band-row .band{font-size:.86rem;min-width:2.7rem}
  .band-row .range{font-size:.66rem}

  .map-canvas{aspect-ratio:2 / 1;min-height:190px}
  .map-caption{margin:.55rem 0 0;font-size:.68rem;text-align:left}
  .map-legend{gap:.6rem;font-size:.62rem}

  .fc-kp{overflow-x:auto;gap:2px}
  .fc-col{min-width:15px}
  .fc-x{font-size:.5rem}
  .fc-chart{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .fc-main{min-width:330px}

  .tool-grid{grid-template-columns:repeat(2,1fr);gap:.5rem}
  .tool{padding:.7rem .35rem;font-size:.68rem}

  .settings-grid .field{flex-direction:column;align-items:stretch;gap:.35rem}
  .field select{min-width:0;width:100%}

  .alert-strip{flex-direction:column;align-items:flex-start;gap:.45rem;padding:.65rem .7rem}
  .al-head{gap:.45rem}
  .al-head h3{font-size:.85rem;width:100%}
  .al-row{flex-direction:column;gap:.1rem}
  .al-k{min-width:0}
  .al-raw{font-size:.66rem}

  .disclaimer-inner{flex-direction:column;align-items:flex-start;gap:.6rem;padding:.8rem}
  .disclaimer-links{gap:.75rem;font-size:.74rem}
  .footer-inner{padding:1.1rem .8rem;gap:1rem}
  .footer-right{text-align:center}

  .consent-gate{padding:.75rem}
  .gate-card{padding:1.1rem 1rem;max-height:92vh;overflow:auto}
  .gate-card h2{font-size:1.05rem}
  .gate-actions{flex-direction:column}
  .gate-actions .btn{width:100%;justify-content:center}

  /* stacked data tables */
  .data-table{font-size:.82rem}
  .data-table thead{display:none}
  .data-table tr{
    display:block;border:1px solid var(--border);border-radius:10px;
    padding:.5rem .65rem;margin:0 0 .5rem;background:#f8fafc;
  }
  .data-table td{display:block;border:none;padding:.18rem 0}
  .data-table td[data-label]::before{
    content:attr(data-label);display:block;
    font-size:.62rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;
    color:var(--muted);
  }
  /* tables without data-labels (glossary/guide): keep headers, scroll horizontally */
  .data-table:not(:has(td[data-label])){display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .data-table:not(:has(td[data-label])) thead{display:table-header-group}
  .data-table:not(:has(td[data-label])) tr{display:table-row;border:none;padding:0;margin:0;background:transparent}
  .data-table:not(:has(td[data-label])) td{display:table-cell;padding:.4rem .5rem;white-space:normal}
}

[data-theme="dark"] .data-table tr{background:#0e1c30}
@media (max-width:640px){
  [data-theme="dark"] .data-table tr{background:#0e1c30;border-color:var(--border)}
  [data-theme="dark"] .data-table:not(:has(td[data-label])) tr{background:transparent;border:none}
}

/* small phones */
@media (max-width:360px){
  .header-inner{padding:.5rem .45rem}
  .hero-inner{padding:1.35rem .6rem 1.2rem}
  .tool{padding:.6rem .25rem;font-size:.64rem}
}

/* ---------- alert history ---------- */
.al-history{margin-top:1rem;border-top:1px solid var(--border);padding-top:.7rem}
.al-history summary{cursor:pointer;font-weight:700;font-size:.84rem;color:#1d4ed8}
.ah-day{margin-top:.7rem}
.ah-day h4{margin:0 0 .35rem;font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ah-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.35rem}
.ah-list li{display:flex;align-items:center;gap:.45rem;flex-wrap:wrap;font-size:.78rem;padding:.3rem 0;border-bottom:1px solid #f1f5f9}
.ah-list li:last-child{border-bottom:none}
.ah-title{flex:1;min-width:8rem}
.ah-time{color:var(--muted);font-size:.72rem;font-variant-numeric:tabular-nums;white-space:nowrap}
[data-theme="dark"] .al-history{border-color:var(--border)}
[data-theme="dark"] .al-history summary{color:#7cb6ff}
[data-theme="dark"] .ah-list li{border-color:#1a2942}
@media (max-width:640px){
  .ah-list li{gap:.35rem}
  .ah-title{min-width:100%;order:3}
  .ah-time{order:4}
}

/* ---------- forecast chart (v2: axis, day groups, labels on their own row) ---------- */
.fc-chart{margin-top:.2rem}
.fc-main{min-width:0}
.fc-dayrow,.fc-plotrow,.fc-timerow{display:flex;gap:2px;padding-left:1.15rem}
.fc-daycell{
  font-size:.62rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;
  color:var(--muted);text-align:center;padding-bottom:.3rem;
  border-bottom:1px solid var(--border);margin-bottom:.35rem;
}
.fc-plotrow{
  position:relative;height:88px;align-items:flex-end;
  background-image:repeating-linear-gradient(to top,
      rgba(148,163,184,.22) 0 1px, transparent 1px 29.33px);
  border-bottom:1px solid var(--border);
}
.fc-col{flex:1;display:flex;align-items:flex-end;height:100%;min-width:0}
.fc-bar{width:100%;border-radius:2px 2px 0 0;min-height:3px}
.fc-bar.kp-low{background:linear-gradient(180deg,#34d399,#16a34a)}
.fc-bar.kp-mid{background:linear-gradient(180deg,#fbbf24,#f59e0b)}
.fc-bar.kp-high{background:linear-gradient(180deg,#f87171,#ef4444)}
.fc-ytick{
  position:absolute;left:0;font-size:.55rem;color:var(--muted);
  transform:translateY(50%);font-variant-numeric:tabular-nums;
}
.fc-y9{top:0}.fc-y6{top:33.33%}.fc-y3{top:66.66%}.fc-y0{top:100%}
.fc-timerow{margin-top:.3rem}
.fc-tcell{
  flex:1;font-size:.56rem;color:var(--muted);text-align:center;white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.fc-g1{flex-grow:1}.fc-g2{flex-grow:2}.fc-g3{flex-grow:3}.fc-g4{flex-grow:4}
.fc-g5{flex-grow:5}.fc-g6{flex-grow:6}.fc-g7{flex-grow:7}.fc-g8{flex-grow:8}
.fc-g9{flex-grow:9}.fc-g10{flex-grow:10}.fc-g11{flex-grow:11}.fc-g12{flex-grow:12}

/* forecast summary rows */
.fc-caption{margin:.7rem 0 .3rem;font-size:.8rem;color:var(--muted);font-variant-numeric:tabular-nums}
.fc-list li{font-size:.84rem}
.fc-list .val.num{font-size:1rem;font-variant-numeric:tabular-nums}
.fc-list .val.chips{display:flex;gap:.35rem}
.fc-scale{
  display:inline-flex;align-items:baseline;gap:.2rem;
  font-size:.78rem;font-weight:800;font-variant-numeric:tabular-nums;
  padding:.15rem .45rem;border-radius:6px;
  color:var(--muted);background:rgba(148,163,184,.14);border:1px solid var(--border);
}
.fc-scale i{font-style:normal;font-size:.62rem;font-weight:700;opacity:.75}
.fc-scale.on{color:#fff;background:#f59e0b;border-color:#d97706}
[data-theme="dark"] .fc-scale.on{color:#1c1400;background:#fbbf24;border-color:#f59e0b}
[data-theme="dark"] .fc-plotrow{background-image:repeating-linear-gradient(to top,
      rgba(148,163,184,.16) 0 1px, transparent 1px 29.33px)}

/* ---------- compact, scrollable alert list ---------- */
.alert-list{
  max-height:360px;overflow-y:auto;overscroll-behavior:contain;
  padding-right:.4rem;scrollbar-width:thin;
  scrollbar-color:rgba(148,163,184,.5) transparent;
}
.alert-list::-webkit-scrollbar{width:8px}
.alert-list::-webkit-scrollbar-track{background:transparent}
.alert-list::-webkit-scrollbar-thumb{background:rgba(148,163,184,.45);border-radius:4px}
.alert-list::-webkit-scrollbar-thumb:hover{background:rgba(148,163,184,.7)}
.alert-list .alert-item{padding:.6rem .7rem}
.alert-list .al-head{gap:.4rem}
.alert-list .al-head h3{font-size:.84rem;line-height:1.3}
.alert-list .sev-chip{font-size:.6rem;padding:.18rem .42rem}
.alert-list .code-chip{font-size:.6rem;padding:.15rem .35rem}
.alert-list .al-meaning{font-size:.78rem;line-height:1.45;margin:.4rem 0 0;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.alert-list .al-details{margin-top:.45rem;font-size:.74rem}
.alert-list .al-impacts{font-size:.74rem;margin:.45rem 0 0}
.alert-list .al-raw{font-size:.68rem;max-height:12rem}
.alert-list .al-history{margin-top:.8rem;padding-top:.6rem}
@media (max-width:640px){
  .alert-list{max-height:300px;padding-right:.25rem}
  .alert-list .al-meaning{-webkit-line-clamp:2}
}

/* ---------- legal pages (licensing, disclaimer, privacy) ---------- */
.legal-lead{font-size:.92rem;line-height:1.6;border-left:3px solid var(--green);padding-left:.85rem;margin:.2rem 0 1.2rem}
.legal-version{font-size:.84rem;color:var(--muted);margin:.1rem 0 1rem}
.notice-title{margin:1.3rem 0 .4rem;font-size:.85rem;letter-spacing:.02em;color:var(--navy)}
.notice{
  margin:0 0 1rem;padding:.8rem .95rem;border-left:3px solid #94a3b8;
  background:#f8fafc;border-radius:0 8px 8px 0;font-size:.82rem;line-height:1.55;
}
.notice p{margin:.45rem 0}
.notice p:first-child{margin-top:0}
.notice p:last-child{margin-bottom:0}
.notice footer{margin-top:.5rem;font-size:.76rem;color:var(--muted);font-style:italic}
[data-theme="dark"] .notice{background:#0e1c30;border-left-color:#475569}
[data-theme="dark"] .notice-title{color:#cfe0f7}
[data-theme="dark"] .legal-lead{border-left-color:#22c55e}

/* ---------- status page ---------- */
.status-summary{margin:.1rem 0 .7rem;font-size:.9rem}
.problem-list{list-style:none;margin:0 0 .6rem;padding:0;display:flex;flex-direction:column;gap:.3rem}
.problem-list li{
  font-size:.82rem;padding:.4rem .6rem;border-radius:8px;
  background:#fef3c7;border:1px solid #fde68a;color:#78350f;
}
[data-theme="dark"] .problem-list li{background:#33280d;border-color:#4a3a12;color:#fcd34d}

/* source list on phones: name + pill on one line, age beneath */
@media (max-width:640px){
  .source-list li{
    grid-template-columns:minmax(0,1fr) auto;
    gap:.3rem .5rem;
  }
  .source-list .name{grid-column:1}
  .source-list .state{grid-column:2;justify-self:end}
  .source-list .age{grid-column:1 / -1;text-align:left}
}

/* ---------- QO-100 satellite panel ---------- */
.qo-note{margin:.7rem 0 .4rem;font-size:.78rem;line-height:1.5;color:var(--muted)}
.qo-links{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:.3rem}
.qo-links li{font-size:.8rem;line-height:1.4}
.qo-links a{font-weight:600}
.qo-links small{display:block;font-size:.72rem}

/* ---------- hero banner preview page (not part of the live site) ---------- */
.pv-wrap{max-width:1400px;margin:0 auto;padding:1.5rem 1.25rem 3rem}
.pv-title{font-size:1.3rem;margin:.2rem 0 .4rem}
.pv-item{margin-bottom:2.2rem}
.pv-item h2{font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;color:var(--navy);margin:0 0 .5rem}
.pv-hero{position:relative;height:380px;border-radius:12px;overflow:hidden;border:1px solid var(--border);background:#081a38}
.pv-art{position:absolute;inset:0}
.pv-art-photo{background-image:url("images/hero-mountain.svg");background-size:cover;background-position:center bottom;background-repeat:no-repeat}
.pv-art-photo-custom{background-image:url("images/hero-photo.jpg");background-size:cover;background-position:center;background-repeat:no-repeat}
.pv-art-gradient{background:
  radial-gradient(120% 90% at 78% 26%, rgba(56,189,248,.26), transparent 58%),
  radial-gradient(90% 80% at 22% 92%, rgba(251,146,60,.22), transparent 62%),
  linear-gradient(180deg,#0b2a5b 0%, #0a1f44 55%, #061531 100%);}
.pv-svg{width:100%;height:100%;display:block}
.pv-scrim{position:absolute;inset:0;background:linear-gradient(90deg,
  rgba(5,14,32,.94) 0%, rgba(5,14,32,.80) 32%, rgba(5,14,32,.42) 55%,
  rgba(5,14,32,.30) 74%, rgba(5,14,32,.55) 100%)}
.pv-copy{position:relative;padding:3rem 1.6rem;color:#fff;max-width:46ch}
.pv-copy h1{margin:0;font-size:clamp(2rem,4vw,3.2rem);line-height:1.05}
.pv-copy p{margin:.9rem 0 1.4rem;color:rgba(255,255,255,.85);font-size:1rem}
.pv-note{font-size:.82rem;color:var(--muted);margin:.6rem 0 0;max-width:80ch}
[data-theme="dark"] .pv-item h2{color:#cfe0f7}

/* ---------- wide layouts for prose-heavy pages ---------- */
.layout-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.span-2{grid-column:1 / -1}
@media (max-width:1100px){
  .layout-2{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:760px){
  .layout-2{grid-template-columns:1fr}
  .span-2{grid-column:auto}
}
.qo-intro{margin:.2rem 0 .8rem;font-size:.88rem;line-height:1.55}
/* live monitor links: larger, easier tap targets, no sub-text */
.qo-links li{font-size:.88rem;padding:.35rem 0;border-bottom:1px solid var(--border)}
.qo-links li:last-child{border-bottom:none}
.qo-links a{font-weight:600;color:#1d4ed8}
[data-theme="dark"] .qo-links a{color:#7cb6ff}
[data-theme="dark"] .qo-links li{border-color:#1a2942}

/* ---------- bilingual about blocks ---------- */
.lang-block{margin:0 0 1.4rem}
.lang-block:last-child{margin-bottom:0}
.lang-tag{
  display:inline-block;margin:0 0 .55rem;
  font-size:.62rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase;
  color:#166534;background:#dcfce7;border:1px solid #bbf7d0;
  padding:.2rem .5rem;border-radius:999px;
}
.lang-block p{margin:.55rem 0;font-size:.9rem;line-height:1.6}
.lang-block p:last-child{margin-bottom:0}
[data-theme="dark"] .lang-tag{color:#86efac;background:#14321f;border-color:#1f5132}

/* ---------- private install page ---------- */
.install-hero{display:flex;align-items:center;gap:1rem;margin:.3rem 0 1rem}
.install-icon{border-radius:14px;flex:0 0 auto}
.install-meta{display:flex;flex-direction:column;line-height:1.35}
.install-meta strong{font-size:1.05rem}
.install-meta small{font-size:.8rem}
.install-actions{display:flex;gap:.7rem;flex-wrap:wrap;margin:1.1rem 0 0}
.install-actions .btn-ghost{color:var(--text);background:transparent;border-color:var(--border)}
.install-actions .btn-ghost:hover{background:rgba(148,163,184,.14)}
.install-hint{
  margin-top:1.1rem;font-size:.85rem;line-height:1.55;max-width:56ch;
  background:rgba(148,163,184,.12);border:1px solid var(--border);
  border-radius:10px;padding:.85rem .95rem;color:var(--text);
}
.install-hint[hidden]{display:none}
.install-hint strong{display:block;margin-bottom:.35rem}
.install-hint ol{margin:.35rem 0 .5rem;padding-left:1.2rem}
.install-hint li{margin:.2rem 0}
.install-hint p{margin:.4rem 0 0;font-size:.8rem;color:var(--muted)}
/* the same hint inside the dark hero needs light text */
.hero .install-hint{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.88)}
.hero .install-hint p{color:rgba(255,255,255,.65)}

/* guide callouts */
.callout{border-left:4px solid var(--green);background:rgba(34,197,94,.07);padding:.7rem .9rem;border-radius:8px;margin:.9rem 0 0;font-size:.88rem}
.callout.tip{border-left-color:#1d4ed8;background:rgba(59,130,246,.08)}
.callout a{color:#1d4ed8}
.callout ul{margin:.15rem 0 0;padding-left:1.25rem}
[data-theme="dark"] .callout{background:rgba(34,197,94,.10);border-left-color:#22c55e}
[data-theme="dark"] .callout.tip{background:rgba(59,130,246,.12);border-left-color:#7cb6ff}
[data-theme="dark"] .callout a{color:#7cb6ff}

/* Measured-ionosphere tile (SANSA) */
.iono-grid{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;margin-top:.25rem}
@media(max-width:560px){.iono-grid{grid-template-columns:1fr}}
.iono-station{border:1px solid #e2e8f0;border-radius:12px;padding:.7rem .85rem;background:linear-gradient(180deg,rgba(13,42,86,.035),transparent)}
.iono-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.4rem}
.iono-name{font-weight:800;font-size:.85rem;letter-spacing:.02em}
.iono-chip{font-size:.6rem;font-weight:800;letter-spacing:.04em;padding:.16rem .45rem;border-radius:999px;background:#e0f2fe;color:#075985;border:1px solid #bae6fd;white-space:nowrap}
.iono-metrics{display:flex;gap:1.1rem}
.iono-metric{display:flex;flex-direction:column}
.iono-valrow{display:flex;align-items:baseline;gap:.2rem}
.iono-val{font-size:1.55rem;font-weight:800;line-height:1;color:#0d2a56}
.iono-unit{font-size:.62rem;font-weight:700;color:#64748b}
.iono-lab{font-size:.58rem;text-transform:uppercase;letter-spacing:.09em;color:#64748b;margin-top:.1rem}
.iono-chartcap{font-size:.62rem;color:#64748b;margin:.5rem 0 .1rem}
.iono-chart{width:100%;height:auto;display:block;margin:.1rem 0 .25rem}
.iono-grid-line{stroke:#e2e8f0;stroke-width:1;vector-effect:non-scaling-stroke}
.iono-axis{font-size:9px;fill:#94a3b8}
.iono-area{fill:rgba(27,135,27,.12);stroke:none}
.iono-line{fill:none;stroke:#1B871B;stroke-width:2;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.iono-line.flat{stroke:#cbd5e1}
.iono-dot{fill:#1B871B;stroke:#fff;stroke-width:1}
.iono-time{font-size:.62rem;color:#64748b}
.iono-meta{font-size:.7rem;color:#475569;margin-top:.55rem}
[data-theme="dark"] .iono-station{border-color:#1e3f6e;background:linear-gradient(180deg,rgba(59,130,246,.07),transparent)}
[data-theme="dark"] .iono-val{color:#e2e8f0}
[data-theme="dark"] .iono-chip{background:#132a4d;color:#bfdbfe;border-color:#1e3f6e}
[data-theme="dark"] .iono-grid-line{stroke:#1e293b}
[data-theme="dark"] .iono-axis{fill:#94a3b8}
[data-theme="dark"] .iono-area{fill:rgba(74,222,128,.14)}
[data-theme="dark"] .iono-line{stroke:#4ade80}
[data-theme="dark"] .iono-line.flat{stroke:#334155}
[data-theme="dark"] .iono-dot{fill:#4ade80;stroke:#0b1220}
[data-theme="dark"] .iono-unit,[data-theme="dark"] .iono-lab,[data-theme="dark"] .iono-time{color:#94a3b8}
[data-theme="dark"] .iono-meta{color:#94a3b8}
