/*
Theme Name: C3XO Astro v2
Theme URI: https://c3xoastro.com
Author: C3XO
Author URI: https://c3xoastro.com
Description: C3XO Astro v2 — Deep space astrophotography theme. Black & electric blue. Dynamic gallery, rig-based gear, Pirate Weather dashboard, cycling quote carousel, full blog, events, and about timeline.
Version: 2.0.2
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: Private
Text Domain: c3xo-astro
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --blue:          #0033ff;
  --blue-bright:   #0055ff;
  --blue-dim:      #0022cc;
  --blue-glow:     rgba(0, 51, 255, 0.4);
  --blue-faint:    rgba(0, 51, 255, 0.07);
  --blue-border:   rgba(0, 51, 255, 0.28);
  --blue-mid:      rgba(0, 51, 255, 0.15);
  --teal:          #00c8ff;
  --teal-dim:      rgba(0, 200, 255, 0.25);
  --black:         #000000;
  --near-black:    #050510;
  --panel:         #080818;
  --panel-light:   #0d0d22;
  --surface:       #111128;
  --text:          #e8eeff;
  --muted:         #7a84bb;
  --muted-light:   #aab0d8;
  --font-orb:      'Orbitron', sans-serif;
  --font-body:     'Exo 2', sans-serif;
  --font-mono:     'Share Tech Mono', monospace;
  --nav-height:    68px;
  --max-width:     1200px;
  --gap:           2px;
  --radius:        0px;
  --transition:    0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  /* overflow: clip instead of hidden — clips horizontal overflow without
     creating a scroll container, which would break position:fixed on Android
     Chrome causing the header and starfield canvas to visibly jitter/scale. */
  overflow-x: clip;
  min-font-size: 14px;
}

/* ENFORCE MINIMUM 14px THROUGHOUT */
* { min-font-size: 14px; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-bright); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-orb);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

p { margin-bottom: 1rem; color: var(--muted-light); font-size: 15px; }

strong { color: var(--text); }

/* ============================================================
   STARFIELD CANVAS
   ============================================================ */
#c3xo-starfield {
  position: fixed;
  top: 0;
  left: 0;
  /* Do NOT set CSS width/height here — JS sets them to exactly match the
     pixel buffer so the browser never scales the canvas content.
     inset:0 would let the CSS dimensions drift from the pixel dimensions
     on mobile when the viewport height changes, causing visible scaling. */
  z-index: 0;
  pointer-events: none;
}

/* ============================================================
   NOISE TEXTURE OVERLAY
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(0, 0, 6, 0.94);
  border-bottom: 1px solid rgba(0, 200, 255, 0.12);
  box-shadow: 0 1px 0 rgba(0, 200, 255, 0.06), 0 4px 24px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  transition: background 0.4s, border-color 0.3s, box-shadow 0.3s;
}

#site-header.scrolled {
  background: rgba(0, 0, 4, 0.98);
  border-bottom-color: rgba(0, 200, 255, 0.2);
  box-shadow: 0 1px 0 rgba(0, 200, 255, 0.1), 0 6px 30px rgba(0, 0, 0, 0.7);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.site-logo svg, .site-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--blue-border);
  filter: drop-shadow(0 0 8px var(--blue-glow));
}

.site-title-link {
  font-family: var(--font-orb);
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 20px var(--blue-glow);
}

.site-title-link span { color: var(--blue-bright); }
.site-title-link:hover { color: var(--text); }

/* Nav Menu */
#site-navigation { display: flex; align-items: center; gap: 0; }

#primary-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0; padding: 0;
}

#primary-menu > li { position: relative; }

#primary-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-orb);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 13px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: color var(--transition), background var(--transition), border-color var(--transition);
}

#primary-menu > li > a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
}
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-menu-ancestor > a {
  color: var(--teal);
  background: rgba(0, 200, 255, 0.08);
  border-color: rgba(0, 200, 255, 0.2);
}

/* Dropdowns */
#primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: calc(100% + 1px); left: 0;
  background: rgba(5, 5, 20, 0.98);
  border: 1px solid var(--blue-border);
  border-top: 2px solid var(--blue-bright);
  list-style: none;
  min-width: 210px;
  padding: 8px 0;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px var(--blue-glow);
}

#primary-menu > li:hover > .sub-menu { display: block; }

#primary-menu .sub-menu li a {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  padding: 10px 22px;
  letter-spacing: 0.1em;
  transition: all var(--transition);
  border-bottom: none;
}

#primary-menu .sub-menu li a:hover {
  color: var(--teal);
  background: var(--blue-faint);
  padding-left: 28px;
}

/* Mobile-only toolbox icon button — hidden on desktop */
.nav-tb-mobile-btn { display: none; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--blue-border);
  color: var(--blue-bright);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.15em;
  padding: 8px 16px;
  cursor: pointer;
  transition: all var(--transition);
}

.menu-toggle:hover { background: var(--blue-faint); }

@media (max-width: 900px) {
  /* Remove backdrop-filter on mobile — it forces GPU compositing on every scroll
     frame on Android Chrome, causing the header and starfield to visibly jitter. */
  #site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(0, 0, 8, 0.97);
    /* Tighten padding so nav controls fit at all mobile widths */
    padding: 0 0.875rem;
    /* Never let anything inside push past the viewport edge */
    max-width: 100%;
    overflow: hidden;
  }

  /* Branding: allow it to shrink and truncate rather than overflow */
  .site-branding {
    flex-shrink: 1;
    min-width: 0;
    gap: 10px;
  }

  /* Site title: truncate instead of wrapping or overflowing */
  .site-title-link {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 15px;
    letter-spacing: 0.1em;
    min-width: 0;
  }

  /* Nav: allow it to shrink, keep items in a row */
  #site-navigation {
    position: static;
    flex-shrink: 0;
    gap: 4px;
  }

  /* Hide the desktop Toolbox mega-menu wrap on mobile */
  .nav-tb-wrap { display: none; }

  /* Show the mobile toolbox icon button */
  .nav-tb-mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--blue-border);
    color: var(--blue-bright);
    padding: 7px 9px;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
  }
  .nav-tb-mobile-btn:hover,
  .nav-tb-mobile-btn[aria-expanded="true"] {
    background: var(--blue-faint);
    border-color: var(--teal);
    color: var(--teal);
  }

  /* Mobile nav-tb-panel: full-width fixed overlay */
  .nav-tb-panel.mobile-tb-panel--open {
    display: grid !important;
    position: fixed !important;
    top: var(--nav-height) !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
    grid-template-columns: repeat(2, 1fr) !important;
    z-index: 1200;
    border-radius: 0 !important;
  }

  /* Compact config button sizing */
  .nav-cfg-btn {
    padding: 6px 8px;
    min-width: 0;
  }

  /* Tighter hamburger button */
  .menu-toggle {
    display: block;
    padding: 7px 10px;
    font-size: 13px;
    letter-spacing: 0.1em;
    flex-shrink: 0;
  }

  #primary-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    /* Fixed position: independent of the header's compositing layer,
       so it can't slide when the header repaints. */
    position: fixed;
    top: var(--nav-height); right: 0;
    width: 260px;
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
    background: rgba(5, 5, 20, 0.99);
    border: 1px solid var(--blue-border);
    border-top: 2px solid var(--blue-bright);
    padding: 8px 0;
    gap: 0;
    z-index: 999;
  }

  #primary-menu.open { display: flex; }

  #primary-menu > li > a {
    border-bottom: 1px solid rgba(0, 51, 255, 0.08);
    padding: 14px 24px;
    font-size: 14px;
  }

  #primary-menu .sub-menu {
    position: static;
    border: none;
    border-top: none;
    border-left: 2px solid var(--blue-border);
    margin-left: 24px;
    display: block;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  /* ── Mobile Toolbox section (JS-injected) ─────────────────────────────── */
  .mobile-tb-injected {
    border-top: 1px solid rgba(0, 200, 255, 0.15);
    padding: 14px 20px 16px;
    list-style: none;
  }

  .mobile-tb-section-hdr {
    display: block;
    font-family: var(--font-orb);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 14px;
  }

  .mobile-tb-group {
    margin-bottom: 12px;
  }

  .mobile-tb-group-hdr {
    display: block;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(0, 51, 255, 0.12);
    margin-bottom: 4px;
  }

  .mobile-tb-links {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile-tb-link {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--muted);
    padding: 6px 6px 6px 10px;
    border-left: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
  }

  .mobile-tb-link:hover,
  .mobile-tb-link--active {
    color: var(--teal);
    border-left-color: var(--teal);
  }

  .mobile-tb-footer-link {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--teal);
    padding: 8px 0 0;
    border-top: 1px solid rgba(0, 200, 255, 0.1);
    margin-top: 4px;
  }
}

/* ── 480px and below: tighten further ─────────────────────────────────────── */
@media (max-width: 480px) {
  #site-header { padding: 0 0.625rem; }

  .site-branding { gap: 8px; }

  .site-logo svg, .site-logo img {
    width: 36px;
    height: 36px;
  }

  .site-title-link {
    font-size: 13px;
    letter-spacing: 0.07em;
  }
}

/* ── 360px and below: smallest phones (Galaxy S8, older iPhones) ─────────── */
@media (max-width: 360px) {
  #site-header { padding: 0 0.5rem; }

  .site-logo svg, .site-logo img {
    width: 32px;
    height: 32px;
  }

  /* Hide site title text on very narrow screens — logo alone identifies the site */
  .site-title-link { display: none; }

  .menu-toggle {
    padding: 7px 8px;
    font-size: 12px;
  }
}

/* ============================================================
   PAGE WRAPPER
   ============================================================ */
#page { padding-top: var(--nav-height); position: relative; z-index: 1; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 2rem 8rem;
  overflow: hidden;
}

.hero-nebula-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%, rgba(0, 40, 200, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 20% 30%, rgba(0, 80, 200, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 35% 40% at 80% 70%, rgba(0, 100, 220, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 25% 35% at 65% 15%, rgba(0, 200, 255, 0.12) 0%, transparent 50%);
  animation: nebulaPulse 12s ease-in-out infinite alternate;
}

@keyframes nebulaPulse {
  0%   { opacity: 0.85; }
  100% { opacity: 1; }
}

/* Scanning grid lines */
.hero-scan-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,51,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,51,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 80%);
}

/* Reticle rings */
.hero-reticle {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: min(75vw, 640px);
  height: min(75vw, 640px);
  border-radius: 50%;
  border: 1px solid rgba(0, 51, 255, 0.30);
  pointer-events: none;
  animation: reticleRotate 60s linear infinite;
}

.hero-reticle::before {
  content: '';
  position: absolute; inset: 22px; border-radius: 50%;
  border: 1px solid rgba(0, 51, 255, 0.18);
}

.hero-reticle::after {
  content: '';
  position: absolute; inset: 44px; border-radius: 50%;
  border: 1px solid rgba(0, 51, 255, 0.14);
}

.hero-reticle-inner {
  position: absolute; inset: 0;
}

.hero-reticle-inner::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,51,255,0.45), transparent);
}

.hero-reticle-inner::after {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(0,51,255,0.45), transparent);
}

@keyframes reticleRotate { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Corner decorators */
.hero-corner {
  position: absolute;
  width: 24px; height: 24px;
  pointer-events: none;
}
.hero-corner::before, .hero-corner::after {
  content: '';
  position: absolute;
  background: var(--blue-bright);
}
.hero-corner::before { width: 100%; height: 1px; }
.hero-corner::after  { width: 1px; height: 100%; }

.hero-corner--tl { top: 2.5rem; left: 2.5rem; }
.hero-corner--tr { top: 2.5rem; right: 2.5rem; transform: scaleX(-1); }
.hero-corner--bl { bottom: 5rem; left: 2.5rem; transform: scaleY(-1); }
.hero-corner--br { bottom: 5rem; right: 2.5rem; transform: scale(-1,-1); }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.35em;
  color: var(--teal);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 2rem;
  position: relative;
}

.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: block;
  width: 50px; height: 1px;
  background: var(--teal);
  opacity: 0.5;
}

.hero-title {
  font-family: var(--font-orb);
  font-size: clamp(52px, 10vw, 110px);
  font-weight: 900;
  line-height: 0.9;
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow:
    0 0 40px rgba(0, 51, 255, 0.6),
    0 0 80px rgba(0, 51, 255, 0.3),
    0 0 160px rgba(0, 51, 255, 0.15);
  margin-bottom: 0.5rem;
  position: relative;
}

.hero-title .accent {
  color: var(--blue-bright);
  position: relative;
  display: inline-block;
}

.hero-title .accent::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-bright), var(--teal));
  filter: blur(2px);
}

.hero-subtitle {
  font-family: var(--font-orb);
  font-size: clamp(14px, 2.2vw, 20px);
  font-weight: 400;
  letter-spacing: 0.4em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 16px;
  color: var(--muted-light);
  max-width: 520px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Live coord strip */
.hero-coords-strip {
  position: absolute;
  bottom: 4rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(0, 51, 255, 0.4);
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.hero-coords-strip span { color: rgba(0, 51, 255, 0.8); }

.hero-scroll-indicator {
  position: absolute;
  bottom: 1.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.hero-scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--blue-bright), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse { 0%,100%{opacity:0.3;transform:scaleY(0.8)} 50%{opacity:1;transform:scaleY(1)} }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-orb);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 36px;
  cursor: pointer;
  transition: all 0.22s;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn:hover::after { opacity: 1; }

.btn-primary {
  background: var(--blue-bright);
  color: #fff;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  box-shadow: 0 0 0 rgba(0,51,255,0);
}

.btn-primary:hover {
  background: var(--blue-dim);
  color: #fff;
  box-shadow: 0 0 40px rgba(0, 51, 255, 0.6), 0 0 80px rgba(0, 51, 255, 0.2);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-bright);
  border: 1px solid var(--blue-bright);
}

.btn-outline:hover {
  background: var(--blue-faint);
  color: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 24px rgba(0, 200, 255, 0.2);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(0, 51, 255, 0.22);
  font-size: 14px;
}

.btn-ghost:hover {
  color: var(--blue-bright);
  border-color: var(--blue-bright);
}

/* ============================================================
   SECTION STRUCTURE
   ============================================================ */
.c3xo-section {
  position: relative;
  z-index: 1;
  padding: 7rem 2.5rem;
}

.c3xo-section--dark { background: rgba(5, 5, 16, 0.82); }
.c3xo-section--panel { background: var(--panel); }
.c3xo-section--black { background: rgba(0, 0, 0, 0.75); }
.c3xo-section--surface { background: var(--surface); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.35em;
  color: var(--teal);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 1.2rem;
}

.section-eyebrow::before, .section-eyebrow::after {
  content: '';
  display: block;
  width: 36px; height: 1px;
  background: var(--teal);
  opacity: 0.45;
}

.section-title {
  font-family: var(--font-orb);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-bright), var(--teal));
  margin: 0 auto 1.8rem;
  border-radius: 1px;
}

.section-lead {
  font-size: 16px;
  color: var(--muted-light);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================================
   SKY CONDITIONS / WEATHER DASHBOARD
   ============================================================ */
.conditions-bar {
  background: var(--panel);
  border-top: 1px solid var(--blue-border);
  border-bottom: 1px solid var(--blue-border);
  padding: 0;
  position: relative;
  z-index: 5;
  overflow: hidden;
}

.conditions-bar::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: scanLine 4s linear infinite;
}

.conditions-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: -100%; right: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: scanLine 4s linear infinite 2s;
}

@keyframes scanLine { to { left: 100%; right: -100%; } }

.conditions-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Header: location + live badge */
.conditions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 0.75rem;
  border-bottom: 1px solid rgba(0,51,255,0.1);
}

.conditions-loc-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.conditions-label {
  font-family: var(--font-orb);
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--blue-bright);
  text-transform: uppercase;
}

.conditions-sep {
  color: rgba(255,255,255,0.25);
  font-size: 13px;
}

.conditions-location {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: #fff;
  text-transform: uppercase;
}

.conditions-locate-btn {
  background: none;
  border: 1px solid rgba(0,51,255,0.35);
  color: var(--blue-bright);
  font-size: 13px;
  width: 20px; height: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
}
.conditions-locate-btn:hover { border-color: var(--teal); color: var(--teal); }

.conditions-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.12em;
  flex-shrink: 0;
}

.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #00dd66;
  box-shadow: 0 0 8px #00dd66;
  animation: liveBlink 1.8s ease-in-out infinite;
}

@keyframes liveBlink { 0%,100%{opacity:1;box-shadow:0 0 8px #00dd66} 50%{opacity:0.3;box-shadow:none} }

/* Three-column dashboard: primary | weather data | sky quality */
.conditions-dashboard {
  display: grid;
  grid-template-columns: 180px 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid rgba(0,51,255,0.1);
}

.conditions-panel {
  padding: 1.4rem 0;
}

.conditions-panel + .conditions-panel {
  border-left: 1px solid rgba(0,51,255,0.1);
  padding-left: 1.75rem;
}

.conditions-panel-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--blue-bright);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* Primary panel: big icon + temp */
.conditions-panel--primary {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-right: 1rem;
}

.sky-primary-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}

.sky-condition-icon {
  font-size: 46px;
  line-height: 1;
  margin-bottom: 6px;
}

.sky-hero-temp {
  font-family: var(--font-orb);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.sky-feels {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

.sky-condition-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 4px;
}

/* Footer: hourly strip + updated timestamp */
.conditions-footer {
  padding: 0.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.conditions-updated-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(0,51,255,0.45);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Hourly strip */
.hourly-forecast {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
}
.hourly-forecast::-webkit-scrollbar { display: none; }

.hf-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 50px;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(0,51,255,0.06);
  border: 1px solid rgba(0,51,255,0.12);
}

.hf-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}

.hf-icon { font-size: 15px; line-height: 1; }

.hf-temp {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #fff;
  font-weight: 600;
}

.hf-precip {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #60a5fa;
}

/* Condition value colors (also used by live.php) */
.condition-item { display: flex; flex-direction: column; gap: 4px; }

.condition-key {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

.condition-value {
  font-family: var(--font-orb);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.condition-value.good  { color: #00dd66; text-shadow: 0 0 12px rgba(0,220,100,0.4); }
.condition-value.ok    { color: #ffcc00; text-shadow: 0 0 12px rgba(255,200,0,0.3); }
.condition-value.poor  { color: #ff4444; text-shadow: 0 0 12px rgba(255,50,50,0.3); }

/* Responsive */
@media (max-width: 900px) {
  .conditions-dashboard { grid-template-columns: 160px 1fr; }
  .conditions-panel--primary { grid-row: 1 / 3; }
  .conditions-panel--primary ~ .conditions-panel:last-child {
    border-left: 1px solid rgba(0,51,255,0.1);
    border-top: 1px solid rgba(0,51,255,0.1);
    padding-left: 1.75rem;
  }
}

@media (max-width: 640px) {
  .conditions-dashboard { grid-template-columns: 1fr; }
  .conditions-panel--primary { grid-row: auto; padding-right: 0; justify-content: flex-start; }
  .sky-primary-inner { flex-direction: row; gap: 12px; align-items: center; text-align: left; }
  .sky-condition-icon { font-size: 36px; margin-bottom: 0; }
  .sky-hero-temp { font-size: 28px; }
  .conditions-panel + .conditions-panel { border-left: none; border-top: 1px solid rgba(0,51,255,0.1); padding-left: 0; }
  .conditions-inner { padding: 0 1.25rem; }
}

/* ============================================================
   FEATURED IMAGES — homepage hero grid
   ============================================================ */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 480px 300px;
  gap: 3px;
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 860px) {
  .featured-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 360px 280px 240px;
  }
  .featured-item:first-child { grid-row: auto; }
}

.featured-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--panel);
  border: 1px solid rgba(0, 51, 255, 0.2);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.featured-item:hover {
  border-color: rgba(0, 120, 255, 0.55);
  box-shadow: 0 0 40px rgba(0, 51, 255, 0.2), inset 0 0 0 1px rgba(0, 120, 255, 0.12);
}

.featured-item:first-child { grid-row: 1 / 3; }

.featured-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), filter 1.1s ease;
  filter: brightness(0.85) saturate(1.1);
}

.featured-item:hover img {
  transform: scale(1.06);
  filter: brightness(1) saturate(1.15);
}

/* Corner bracket — top and left edges, always slightly present */
.featured-item::before, .featured-item::after {
  content: '';
  position: absolute;
  z-index: 4;
  opacity: 0.2;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.featured-item:hover::before, .featured-item:hover::after { opacity: 1; }

.featured-item::before {
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-bright) 0%, rgba(0,100,255,0.5) 35%, transparent 65%);
}

.featured-item::after {
  top: 0; left: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-bright) 0%, rgba(0,100,255,0.5) 35%, transparent 65%);
}

/* Always-visible bottom nameplate — fades out on hover */
.featured-persistent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 3.5rem 1.75rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,20,0.98) 0%, rgba(0,0,20,0.7) 45%, transparent 85%);
  z-index: 2;
  transition: opacity 0.35s ease;
}

.featured-item:hover .featured-persistent { opacity: 0; }

.featured-category {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--teal);
  text-transform: uppercase;
  background: rgba(0, 180, 200, 0.1);
  border: 1px solid rgba(0, 180, 200, 0.28);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 9px;
}

.featured-title {
  font-family: var(--font-orb);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,0.9);
  line-height: 1.3;
}

.featured-item:first-child .featured-title { font-size: 24px; }

/* Hover reveal */
.featured-reveal {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 30, 0.97) 0%,
    rgba(0, 0, 25, 0.7) 40%,
    rgba(0, 0, 10, 0.2) 70%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.75rem 1.75rem;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 3;
}

.featured-reveal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--teal) 40%, transparent 100%);
  opacity: 0.5;
}

.featured-item:hover .featured-reveal { opacity: 1; }

.featured-reveal .featured-title {
  font-size: 15px;
  margin-bottom: 1rem;
}

.featured-item:first-child .featured-reveal .featured-title { font-size: 22px; }

.featured-exif {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem 1.25rem;
}

.featured-view-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--teal);
  text-transform: uppercase;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 180, 200, 0.2);
}

.featured-view-hint::after { content: '→'; font-size: 14px; }

.exif-block { display: flex; flex-direction: column; gap: 3px; }

.exif-key {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--teal);
  text-transform: uppercase;
}

.exif-val {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #fff;
}

/* ============================================================
   QUOTE CAROUSEL
   ============================================================ */
.quote-bar {
  position: relative;
  z-index: 2;
  background: var(--near-black);
  border-top: 1px solid var(--blue-border);
  border-bottom: 1px solid var(--blue-border);
  padding: 5rem 2.5rem;
  overflow: hidden;
}

.quote-bar::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(0,51,255,0.06), transparent);
  pointer-events: none;
}

.quote-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: -100%; right: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: scanLine 4s linear infinite 1s;
  pointer-events: none;
}

/* Physical top scan line for elements where ::before is already used (e.g. quote-bar) */
.scan-line-top {
  position: absolute;
  top: 0; left: -100%; right: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: scanLine 4s linear infinite 3s;
  pointer-events: none;
  z-index: 10;
}

/* Reusable class: animated teal scan lines on top and bottom borders */
.scan-borders {
  border-top: 1px solid var(--blue-border);
  border-bottom: 1px solid var(--blue-border);
  overflow: hidden;
}
.scan-borders::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: scanLine 4s linear infinite;
  pointer-events: none;
  z-index: 2;
}
.scan-borders::after {
  content: '';
  position: absolute;
  bottom: 0; left: -100%; right: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  animation: scanLine 4s linear infinite 2s;
  pointer-events: none;
  z-index: 2;
}

.quote-carousel {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  display: grid;
}

/* All slides occupy the same grid cell so the carousel never changes height */
.quote-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.0s ease;
  /* Reserve space for up to 3 lines of quote text + portrait */
  min-height: 300px;
}

.quote-slide.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  animation: quoteFadeIn 1.0s ease;
}

@keyframes quoteFadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.quote-portrait-wrap {
  width: 200px; height: 200px;
  border-radius: 10%;
  border: 2px solid var(--blue-border);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.quote-portrait-wrap::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 10%;
  box-shadow: 0 0 20px var(--blue-glow);
}

.quote-portrait-wrap img {
  width: 200px; height: 200px;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(40%) contrast(1.1);
  display: block;
}

.quote-portrait-fallback {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-faint);
  font-family: var(--font-orb);
  font-size: 24px;
  color: var(--blue-bright);
}

.quote-text-wrap { text-align: center; }

.quote-text {
  font-family: var(--font-orb);
  font-size: clamp(16px, 2.5vw, 26px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.03em;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  quotes: none;
}

.quote-text::before { content: '"'; color: var(--blue-bright); margin-right: 2px; }
.quote-text::after  { content: '"'; color: var(--blue-bright); margin-left: 2px; }

.quote-cite {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--teal);
  letter-spacing: 0.28em;
  font-style: normal;
  display: block;
  margin-bottom: 4px;
}

.quote-source {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.15em;
}

/* Carousel dots */
.quote-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 2.5rem;
}

.quote-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid var(--blue-border);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
}

.quote-dot.active, .quote-dot:hover {
  background: var(--blue-bright);
  border-color: var(--blue-bright);
  box-shadow: 0 0 8px var(--blue-glow);
}

/* Prev/next arrows */
.quote-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: none;
  border: 1px solid var(--blue-border);
  color: var(--blue-bright);
  font-size: 18px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 2;
}

.quote-nav:hover { background: var(--blue-faint); border-color: var(--blue-bright); }
.quote-nav--prev { left: -60px; }
.quote-nav--next { right: -60px; }

@media (max-width: 800px) {
  .quote-nav--prev { left: 0; top: auto; bottom: -60px; transform: none; }
  .quote-nav--next { right: 0; top: auto; bottom: -60px; transform: none; }
}

/* ============================================================
   GALLERY SECTION — Homepage Teaser
   ============================================================ */
.gallery-masonry {
  columns: 3;
  column-gap: var(--gap);
  max-width: var(--max-width);
  margin: 0 auto;
}

@media (max-width: 900px) { .gallery-masonry { columns: 2; } }
@media (max-width: 500px) { .gallery-masonry { columns: 1; } }

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--gap);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: var(--panel);
  display: block;
  border: 1px solid rgba(0,51,255,0.1);
}

.gallery-item::before, .gallery-item::after {
  content: '';
  position: absolute;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.gallery-item:hover::before, .gallery-item:hover::after { opacity: 1; }

.gallery-item::before {
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-bright), transparent);
}

.gallery-item::after {
  top: 0; left: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue-bright), transparent);
}

/* The thumb link is the positioning context for all overlays */
.gallery-thumb-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.gallery-thumb-link img {
  width: 100%; display: block;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-thumb-link:hover img { transform: scale(1.25); }

/* Always-visible title + category bar — positioned inside .gallery-thumb-link */
.gallery-persistent {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(0, 0, 20, 0.95) 60%, transparent);
  z-index: 2;
  pointer-events: none;
}

.gallery-item-category {
  font-size: 12px;
  color: var(--teal);
  font-family: var(--font-mono);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

/* Hover reveal — full EXIF overlay */
.gallery-reveal {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 30, 0.98) 0%, rgba(0, 0, 20, 0.55) 50%, transparent 75%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.2rem 1.25rem;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
}
.gallery-thumb-link:hover .gallery-reveal { opacity: 1; }

.gallery-zoom-icon {
  display: inline-block;
  margin-top: .6rem;
  font-size: 18px;
  color: var(--blue-bright);
  opacity: 0.8;
}

.gallery-item-title {
  font-family: var(--font-orb);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.gallery-item-sub {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--teal);
  margin-bottom: 10px;
}

.gallery-item-exif { display: flex; gap: 12px; flex-wrap: wrap; }
.gallery-exif-block { display: flex; flex-direction: column; gap: 2px; }

.gallery-exif-key {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--teal);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gallery-exif-val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #dde;
}

.single-hero-link::after {
  width: 160px;
  height: 72px;
  top: 20px;
  right: 20px;
  opacity: 0.6;
} */

/* Filter tabs */
.gallery-filters {
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.gallery-filter {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(0, 51, 255, 0.2);
  padding: 9px 22px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
}

.gallery-filter:hover, .gallery-filter.active {
  background: var(--blue-bright);
  color: #fff;
  border-color: var(--blue-bright);
  box-shadow: 0 0 20px rgba(0,51,255,0.4);
}

/* Load more */
.gallery-load-more { text-align: center; margin-top: 3.5rem; }

/* ============================================================
   GEAR — RIG-BASED LAYOUT
   ============================================================ */
.rig-tabs {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.rig-tab {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(0,51,255,0.2);
  padding: 10px 26px;
  font-family: var(--font-orb);
  font-size: 14px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}

.rig-tab::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--blue-bright);
  transition: all var(--transition);
}

.rig-tab:hover { color: var(--text); border-color: rgba(0,51,255,0.5); }

.rig-tab.active {
  color: #fff;
  border-color: var(--blue-bright);
  background: var(--blue-faint);
}

.rig-tab.active::before { left: 0; right: 0; }

.rig-panel { display: none; }
.rig-panel.active { display: block; }

.rig-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--panel-light);
  border: 1px solid var(--blue-border);
  border-top: 2px solid var(--blue-bright);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.rig-header-text { flex: 1; }

.rig-photo-wrap {
  flex-shrink: 0;
  width: 220px;
  border: 1px solid rgba(0,51,255,0.25);
  overflow: hidden;
  position: relative;
}

.rig-photo-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-bright), transparent);
  z-index: 1;
}

.rig-photo {
  width: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

@media (max-width: 680px) {
  .rig-header { flex-direction: column; text-align: center; }
  .rig-photo-wrap { width: 100%; }
}

.rig-title {
  font-family: var(--font-orb);
  font-size: 22px;
  color: #fff;
  margin-bottom: 0.5rem;
}

.rig-subtitle {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
  max-width: var(--max-width);
  margin: 0 auto;
}

.gear-card {
  background: var(--panel);
  border: 1px solid rgba(0,51,255,0.1);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}

.gear-card:hover {
  border-color: rgba(0,51,255,0.5);
  transform: translateY(-2px);
}

.gear-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-bright), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.gear-card:hover::before { transform: scaleX(1); }

.gear-icon-wrap {
  width: 52px; height: 52px;
  border: 1px solid var(--blue-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 22px;
  background: var(--blue-faint);
}

.gear-type {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.28em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.gear-name {
  font-family: var(--font-orb);
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.gear-desc {
  font-size: 14px;
  color: var(--muted-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.gear-specs { display: flex; flex-direction: column; gap: 0; }

.gear-spec {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  border-bottom: 1px solid rgba(0,51,255,0.07);
  padding: 8px 0;
}

.gear-spec:last-child { border-bottom: none; }

.spec-key { color: var(--muted); }
.spec-val { color: var(--blue-bright); font-weight: bold; }

.gear-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.15em;
  border: 1px solid rgba(0,51,255,0.18);
  padding: 6px 14px;
  transition: all var(--transition);
}

.gear-link-btn:hover { color: var(--teal); border-color: var(--teal); }

/* ============================================================
   EVENTS
   ============================================================ */
.events-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.event-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 2rem;
  align-items: center;
  border-bottom: 1px solid rgba(0,51,255,0.1);
  padding: 2rem 1rem;
  cursor: pointer;
  transition: padding 0.25s, background 0.25s;
  text-decoration: none;
}

.event-row:hover {
  background: var(--blue-faint);
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

@media (max-width: 600px) {
  .event-row { grid-template-columns: 76px 1fr; grid-template-rows: auto auto; }
  .event-type { grid-column: 2; }
}

.event-date-block {
  text-align: center;
  background: rgba(0,51,255,0.08);
  border: 1px solid var(--blue-border);
  padding: 10px 8px;
}

.event-month {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.28em;
  color: var(--teal);
  text-transform: uppercase;
}

.event-day {
  display: block;
  font-family: var(--font-orb);
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.event-title {
  font-family: var(--font-orb);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.event-detail { font-size: 14px; color: var(--muted); line-height: 1.55; }

.event-type {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
  background: rgba(0,51,255,0.08);
  border: 1px solid var(--blue-border);
  padding: 6px 14px;
  white-space: nowrap;
}

/* ============================================================
   EVENTS — Enhanced row variants + status badges
   ============================================================ */

/* TBD date block */
.event-date-block--tbd {
  background: rgba(244,160,48,0.06);
  border-color: rgba(244,160,48,0.25);
}

.event-day--tbd {
  font-size: 18px !important;
  letter-spacing: 0.08em;
  color: #f4a030 !important;
}

/* Launch hover hint in badge */
.event-hover-hint {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.6;
  margin-top: 3px;
  text-transform: none;
}

/* Launch infobox — CSS-only hover reveal */
.event-row--launch-hover {
  position: relative;
  cursor: pointer;
  overflow: visible;
  z-index: 1;
  user-select: none;
}

.event-row--launch-hover:hover { background: var(--blue-faint); }

.event-row--launch-hover.is-open {
  background: var(--blue-faint);
  z-index: 20;
  border-bottom-color: transparent;
}

.launch-infobox {
  display: none;
  position: absolute;
  top: 100%;
  left: -1px;
  right: -1px;
  background: #05051a;
  border: 1px solid rgba(0,51,255,0.35);
  border-top: none;
  padding: 1.25rem 1.5rem 1.5rem;
  z-index: 100;
  box-shadow: 0 16px 48px rgba(0,0,0,0.75);
}

.event-row--launch-hover.is-open .launch-infobox { display: block; }

/* Toggle arrow indicator */
.launch-toggle-arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  transition: transform 0.2s;
  vertical-align: middle;
}

.event-row--launch-hover.is-open .launch-toggle-arrow {
  transform: rotate(180deg);
}

.launch-infobox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem 2rem;
  margin-bottom: 0.9rem;
}

.launch-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.launch-info-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

.launch-info-val {
  font-size: 14px;
  color: #fff;
  font-family: var(--font-orb);
  font-weight: 600;
  line-height: 1.35;
}

.launch-info-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  border-top: 1px solid rgba(0,51,255,0.15);
  padding-top: 0.75rem;
}

.event-body { flex: 1; min-width: 0; }

.event-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.5;
}

.event-status {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 3px 10px;
  border: 1px solid;
}

.event-status--go  { color: var(--teal);      border-color: rgba(0,200,200,0.3);  background: rgba(0,200,200,0.06); }
.event-status--tbd { color: #f4a030;           border-color: rgba(244,160,48,0.3); background: rgba(244,160,48,0.06); }

/* Source-tinted type badge */
.event-type--launch      { color: var(--blue-bright); }
.event-type--moon        { color: #c0c8e0;  border-color: rgba(192,200,224,0.3); background: rgba(192,200,224,0.06); }
.event-type--season      { color: var(--teal);         border-color: rgba(0,200,200,0.3);  background: rgba(0,200,200,0.06); }
.event-type--meteor      { color: #f4a030;             border-color: rgba(244,160,48,0.3); background: rgba(244,160,48,0.06); }
.event-type--space_event { color: #c084fc;             border-color: rgba(192,132,252,0.3); background: rgba(192,132,252,0.06); }
.event-type--custom      { color: #ffd700;             border-color: rgba(255,215,0,0.3);  background: rgba(255,215,0,0.06); }

/* ============================================================
   SPACE CALENDAR PAGE
   ============================================================ */

.cal-legend-bar {
  border-bottom: 1px solid rgba(0,51,255,0.15);
  padding: 0.9rem 0;
  background: rgba(0,0,10,0.5);
}

.cal-legend-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cal-legend {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.cal-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.cal-refresh-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--teal);
  text-decoration: none;
  border: 1px solid rgba(0,200,200,0.3);
  padding: 4px 12px;
  transition: background 0.2s;
}
.cal-refresh-btn:hover { background: rgba(0,200,200,0.08); }

/* ── Legacy two-month grid (kept for backward compat) ── */
.cal-two-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 860px) {
  .cal-two-months { grid-template-columns: 1fr; }
}

/* ── Calendar card stack ── */
/* ── Calendar card-stack nav bar ──────────────────────────────────
   Full-width background/border; controls sit inside .container     */
.cal-stack-nav {
  border-bottom: 1px solid rgba(0,51,255,.12);
  background: var(--panel, #070d1c);
  position: sticky;
  top: var(--nav-height, 64px);
  z-index: 40;
}
.cal-stack-nav .container {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.cal-nav-btn {
  background: rgba(0,51,255,.08);
  border: 1px solid rgba(0,51,255,.25);
  color: rgba(160,180,240,.85);
  width: 34px;
  height: 34px;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
  flex-shrink: 0;
}
.cal-nav-btn:hover:not(:disabled) {
  background: rgba(0,100,255,.18);
  border-color: var(--teal, #00c8ff);
  color: #fff;
}
.cal-nav-btn:disabled { opacity: .3; cursor: default; }
.cal-nav-center {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.cal-nav-label {
  font-family: var(--font-orb, inherit);
  font-size: clamp(15px, 2.5vw, 20px);
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
  white-space: nowrap;
}
.cal-nav-counter {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: var(--muted, #5577aa);
  letter-spacing: .1em;
  white-space: nowrap;
}
.cal-nav-today {
  background: transparent;
  border: 1px solid rgba(0,200,255,.25);
  color: var(--teal, #00c8ff);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 6px 14px;
  border-radius: 3px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  flex-shrink: 0;
}
.cal-nav-today:hover {
  background: rgba(0,200,255,.1);
  border-color: var(--teal, #00c8ff);
  color: #fff;
}

/* ── Card viewport — inside .container so width is always bounded ── */
.cal-card-viewport {
  overflow: hidden;
  width: 100%;
  padding: 24px 0 8px;
}
.cal-card-track {
  display: flex;
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}
/* Cards get pixel width set by JS (= viewport.offsetWidth) */
.cal-month-card {
  flex-shrink: 0;
  box-sizing: border-box;
  padding-bottom: 20px;
}
.cal-month-card--today .cal-month-header {
  border-top-color: var(--teal, #00c8ff);
  color: var(--teal, #00c8ff);
}
@media (max-width: 600px) {
  .cal-nav-today { display: none; }
}

.cal-month {
  background: var(--panel);
  border: 1px solid rgba(0,51,255,0.15);
  border-top: 2px solid var(--blue-bright);
}

.cal-month-header {
  font-family: var(--font-orb);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(0,51,255,0.15);
  background: rgba(0,51,255,0.04);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.cal-dow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 0.6rem 0.3rem;
  border-bottom: 1px solid rgba(0,51,255,0.1);
}

.cal-cell {
  position: relative;
  min-height: 64px;
  padding: 6px 5px 4px;
  border-right: 1px solid rgba(0,51,255,0.07);
  border-bottom: 1px solid rgba(0,51,255,0.07);
  transition: background 0.2s;
}

.cal-cell:nth-child(7n) { border-right: none; }

.cal-cell--empty { background: transparent; }

.cal-cell--today { background: rgba(0,51,255,0.07); }
.cal-cell--today .cal-day-num { color: var(--blue-bright); font-weight: 700; }

/* Gold border on days with custom (user-created) events */
.cal-cell--has-custom .cal-day-num {
  display: inline-block;
  min-width: 20px;
  text-align: center;
  border: 1.5px solid #c8a800;
  border-radius: 3px;
  padding: 0 2px;
  color: #e8c800;
  font-weight: 700;
  box-shadow: 0 0 6px rgba(200,168,0,.35);
}

.cal-cell--has-events:hover { background: rgba(0,51,255,0.1); cursor: default; }

.cal-day-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: right;
  margin-bottom: 4px;
}

.cal-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
}

.cal-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  cursor: default;
}

/* Popover on hover */
.cal-cell { z-index: 1; }
.cal-cell--has-events:hover { z-index: 10; }

.cal-popover {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--panel-light);
  border: 1px solid rgba(0,51,255,0.3);
  padding: 8px 12px;
  min-width: 180px;
  max-width: 240px;
  z-index: 100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

.cal-cell--has-events:hover .cal-popover { display: block; }

.cal-pop-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(0,51,255,0.1);
}

.cal-pop-item:last-child { border-bottom: none; }

.cal-pop-type {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cal-pop-type--launch      { color: var(--blue-bright); }
.cal-pop-type--moon        { color: #c0c8e0; }
.cal-pop-type--season      { color: var(--teal); }
.cal-pop-type--meteor      { color: #f4a030; }
.cal-pop-type--space_event { color: #c084fc; }
.cal-pop-type--custom      { color: #ffd700; }

.cal-pop-title {
  font-size: 12px;
  color: #fff;
  line-height: 1.4;
}

.cal-list-heading {
  font-family: var(--font-orb);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0,51,255,0.15);
  letter-spacing: 0.04em;
}

/* ── Event list month filter header ─────────────────────────── */
.sc-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 10px;
  border-bottom: 1px solid rgba(0,51,255,.12);
  margin-bottom: 24px;
}
.sc-list-month-label {
  font-family: var(--font-orb);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .05em;
}
.sc-list-toggle {
  background: transparent;
  border: 1px solid rgba(0,200,255,.22);
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 5px 14px;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.sc-list-toggle:hover, .sc-list-toggle[aria-pressed="true"] {
  background: rgba(0,200,255,.1);
  border-color: var(--teal);
  color: #fff;
}

/* Month groups hidden by the card-stack filter */
.sc-month-hidden { display: none !important; }

/* ── Calendar pip improvements ── */
.cal-pips {
  display: flex; flex-wrap: wrap; gap: 2px; justify-content: center;
  align-items: center; margin-top: 2px;
}
.cal-pip {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  transition: opacity 0.2s;
}
.cal-count-badge {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); line-height: 1;
}
.cal-cell--today {
  background: rgba(0,51,255,0.1);
  box-shadow: inset 0 0 0 2px var(--blue-bright);
}
.cal-cell--today .cal-day-num {
  color: var(--blue-bright); font-weight: 700;
}
.cal-cell--selected {
  background: rgba(0,200,200,0.1) !important;
  box-shadow: inset 0 0 0 2px var(--teal) !important;
  cursor: pointer;
}
.cal-cell--selected .cal-day-num { color: var(--teal); }
.cal-cell--has-events { cursor: pointer; }
.cal-cell--has-events:hover { background: rgba(0,51,255,0.1); }

/* Popover enhancements */
.cal-pop-date {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em;
  color: var(--teal); text-transform: uppercase; margin-bottom: 6px;
}
.cal-pop-item {
  display: flex; align-items: flex-start; gap: 7px;
  padding: 5px 0; border-bottom: 1px solid rgba(0,51,255,0.1);
}
.cal-pop-item:last-of-type { border-bottom: none; }
.cal-pop-pip {
  width: 6px; height: 6px; border-radius: 50%;
  flex-shrink: 0; margin-top: 4px;
}
.cal-pop-cta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--teal); text-align: right; margin-top: 6px;
  letter-spacing: .1em; opacity: .7;
}
/* Interactive legend */
.cal-legend-item {
  background: none; border: 1px solid transparent;
  padding: 4px 10px; border-radius: 2px;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.cal-legend-item:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.cal-legend-item--active {
  background: rgba(0,200,200,.08); border-color: var(--teal); color: var(--teal);
}

/* ── Mission Control summary strip ── */
.mc-strip {
  background: rgba(0,0,10,.6); border-bottom: 1px solid rgba(0,51,255,.15);
  padding: 1.5rem 0;
}
.mc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) { .mc-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 500px) { .mc-grid { grid-template-columns: 1fr; } }
.mc-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(var(--mc-clr, 0,51,255),.25, .25);
  border-left: 3px solid var(--mc-clr, var(--blue-bright));
  padding: 1rem 1.25rem;
  display: flex; flex-direction: column; gap: 4px;
}
.mc-card-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 6px;
}
.mc-card-icon { font-size: 22px; line-height: 1; margin: 2px 0; }
.mc-card-title { font-family: var(--font-orb); font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; }
.mc-card-meta  { font-size: 12px; color: var(--muted); margin-top: 1px; }
.mc-card-countdown {
  font-family: var(--font-mono); font-size: 13px; color: var(--teal); margin-top: 4px;
}
.mc-card-tbd {
  font-family: var(--font-mono); font-size: 12px; color: #f4a030; margin-top: 4px;
}
.mc-card-btn {
  display: inline-block; margin-top: 6px;
  background: rgba(244,160,48,.12); border: 1px solid rgba(244,160,48,.35);
  color: #f4a030; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .1em; padding: 4px 10px;
  text-decoration: none; text-transform: uppercase;
  transition: background .15s;
}
.mc-card-btn:hover { background: rgba(244,160,48,.25); color: #f4a030; }
.mc-live-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: #f4a030; animation: mc-pulse 1.2s ease-in-out infinite;
}
@keyframes mc-pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }
.mc-counts-list { display: flex; flex-direction: column; gap: 5px; margin-top: 4px; }
.mc-count-row   { display: flex; align-items: center; gap: 7px; }
.mc-count-dot   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mc-count-val   { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: #fff; min-width: 22px; }
.mc-count-lbl   { font-size: 12px; color: var(--muted); }

/* ── Controls bar ── */
.sc-controls-bar {
  background: rgba(0,0,10,.65); border-bottom: 1px solid rgba(0,51,255,.15);
  padding: .9rem 0;
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
}
.sc-controls-bar .container {
  display: flex; flex-wrap: wrap; gap: .6rem; align-items: center;
}
.sc-search-wrap {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(0,51,255,.2);
  padding: 5px 10px; flex: 1 1 220px; max-width: 300px;
}
.sc-search-icon { font-size: 14px; color: var(--muted); }
.sc-search {
  background: none; border: none; outline: none;
  font-family: var(--font-mono); font-size: 13px; color: var(--text);
  width: 100%; min-width: 0;
}
.sc-search::placeholder { color: var(--muted); opacity: .6; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 5px; flex: 1 1 auto; }
.sc-chip {
  padding: 4px 11px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid rgba(0,51,255,.2);
  color: var(--muted); border-radius: 2px; transition: all .15s;
  white-space: nowrap;
}
.sc-chip:hover { background: rgba(255,255,255,.06); color: var(--text); }
.sc-chip--active {
  background: rgba(0,200,200,.1); border-color: var(--teal); color: var(--teal);
}
/* Override with per-chip source colour when active */
.sc-chip[style]:not(.sc-chip--active):hover { border-color: rgba(255,255,255,.2); }
.sc-range-btns, .sc-view-btns, .sc-time-btns {
  display: flex; gap: 0; flex-shrink: 0;
}
.sc-range-btn, .sc-view-btn, .sc-time-btn {
  padding: 4px 10px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .1em; cursor: pointer; background: transparent;
  border: 1px solid rgba(0,51,255,.2); color: var(--muted);
  margin-left: -1px; transition: all .15s; white-space: nowrap;
}
.sc-range-btn:first-child, .sc-view-btn:first-child, .sc-time-btn:first-child { margin-left: 0; }
.sc-range-btn:hover, .sc-view-btn:hover, .sc-time-btn:hover { background: rgba(255,255,255,.05); color: var(--text); }
.sc-range-btn--active, .sc-view-btn--active, .sc-time-btn--active {
  background: rgba(0,51,255,.12); border-color: var(--blue-bright); color: var(--blue-bright); z-index: 1;
}
.sc-toolbar-right { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; margin-left: auto; }

/* ── TBD/TBC toggle button ── */
.sc-tbd-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .1em; cursor: pointer; border-radius: 3px;
  border: 1px solid rgba(0,51,255,.2); background: transparent;
  color: var(--muted); white-space: nowrap; transition: all .15s;
  flex-shrink: 0;
}
.sc-tbd-toggle:hover { background: rgba(255,255,255,.05); color: var(--text); }
.sc-tbd-toggle--on {
  background: rgba(244,160,48,.08);
  border-color: rgba(244,160,48,.4);
  color: #f4a030;
}
.sc-tbd-toggle--on .sc-tbd-icon { opacity: 1; }
.sc-tbd-toggle--off { color: var(--muted); opacity: .55; }
.sc-tbd-icon { font-size: 11px; font-weight: 700; line-height: 1; }

/* ── Filter status bar ── */
.sc-filter-status {
  background: rgba(0,200,200,.06); border-bottom: 1px solid rgba(0,200,200,.15);
  padding: .45rem 0;
}
.sc-filter-status .container { display: flex; align-items: center; justify-content: space-between; }
.sc-filter-status-text { font-family: var(--font-mono); font-size: 12px; color: var(--teal); letter-spacing: .1em; }
.sc-filter-clear {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  background: none; border: 1px solid rgba(0,51,255,.2); padding: 2px 8px; cursor: pointer;
  transition: all .15s;
}
.sc-filter-clear:hover { color: var(--text); border-color: rgba(255,255,255,.2); }

/* ── Event card (replaces event-row) ── */
.event-card {
  display: grid;
  grid-template-columns: 72px 80px 1fr auto;
  grid-template-rows: auto auto;
  gap: 0 1.25rem;
  align-items: start;
  border-bottom: 1px solid rgba(0,51,255,.1);
  padding: 1.25rem 1rem;
  background: rgba(20,20,28,0.92);
  transition: background .2s;
  position: relative;
}
.event-card:hover { background: rgba(30,30,42,0.95); }
.event-card[hidden] { display: none; }
.ec--launch { cursor: pointer; }
.ec--past { opacity: 0.62; }
.ec--past .ec-thumb img { filter: saturate(0.35); }
.ec--past .ec-title { color: var(--muted-light); }
.ec--past .ec-date { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); }
.ec--past .ec-month,
.ec--past .ec-day   { color: var(--muted); }
.ec--past:hover { opacity: 0.85; }

/* Thumb */
.ec-thumb {
  grid-column: 1; grid-row: 1;
  width: 64px; height: 64px; overflow: hidden;
  background: rgba(0,51,255,.07); border: 1px solid rgba(0,51,255,.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ec-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-thumb-icon { font-size: 24px; line-height: 1; }
.ec-thumb--moon        { background: rgba(192,200,224,.06); }
.ec-thumb--meteor      { background: rgba(244,160,48,.06); }
.ec-thumb--season      { background: rgba(0,200,200,.06); }
.ec-thumb--space_event { background: rgba(192,132,252,.06); }
.ec-thumb--custom      { background: rgba(255,215,0,.06); }

/* Date */
.ec-date {
  grid-column: 2; grid-row: 1;
  text-align: center;
  background: rgba(0,51,255,.08); border: 1px solid rgba(0,51,255,.2);
  padding: 8px 6px; align-self: start;
}
.ec-date--tbd { background: rgba(244,160,48,.06); border-color: rgba(244,160,48,.25); }
.ec-month {
  display: block; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: .28em; color: var(--teal); text-transform: uppercase;
}
.ec-day {
  display: block; font-family: var(--font-orb); font-size: 30px;
  font-weight: 900; color: #fff; line-height: 1;
}
.ec-day--tbd { font-size: 17px !important; letter-spacing: .08em; color: #f4a030 !important; }
.ec-tbd-flag {
  display: block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .18em; text-transform: uppercase;
  color: #f4a030; margin-top: 3px; line-height: 1;
}

/* Body */
.ec-body   { grid-column: 3; grid-row: 1; min-width: 0; }
.ec-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.ec-title  { font-family: var(--font-orb); font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; }
.ec-my-badge {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em;
  text-transform: uppercase; color: #ffd700;
  background: rgba(255,215,0,.08); border: 1px solid rgba(255,215,0,.3);
  padding: 1px 7px; white-space: nowrap; flex-shrink: 0;
}
.ec-meta { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: 3px; }
.ec-time-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin-bottom: 3px; }
/* Local time = primary: bright, normal weight */
.ec-local-time {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: .02em;
}
/* UTC = secondary: muted, smaller, shown in parens style */
.ec-utc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,.35);
  letter-spacing: .04em;
}
.ec-utc::before { content: '('; }
.ec-utc::after  { content: ')'; }
.ec-desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 3px; }

/* Action row */
.ec-actions {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 7px;
}
.ec-status {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; padding: 2px 8px; border: 1px solid;
}
.ec-status--go   { color: var(--teal); border-color: rgba(0,200,200,.3); background: rgba(0,200,200,.06); }
.ec-status--tbd  { color: #f4a030;     border-color: rgba(244,160,48,.3); background: rgba(244,160,48,.06); }
.ec-status--warn { color: #f4a030;     border-color: rgba(244,160,48,.3); background: rgba(244,160,48,.06); }
.ec-countdown {
  font-family: var(--font-mono); font-size: 12px; color: var(--teal);
}
.ec-live-badge {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em;
  text-transform: uppercase; color: #f4a030;
  background: rgba(244,160,48,.12); border: 1px solid rgba(244,160,48,.35);
  padding: 2px 8px; animation: ec-live-pulse 1.4s ease-in-out infinite;
}
@keyframes ec-live-pulse { 0%,100%{opacity:1} 50%{opacity:.6} }
.ec-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; padding: 3px 10px; text-decoration: none;
  border: 1px solid; cursor: pointer; transition: all .15s;
}
.ec-btn--live   { color: #f4a030; border-color: rgba(244,160,48,.4); background: rgba(244,160,48,.08); }
.ec-btn--replay { color: var(--teal); border-color: rgba(0,200,200,.35); background: rgba(0,200,200,.06); }
.ec-btn--stream { color: var(--blue-bright); border-color: rgba(0,51,255,.35); background: rgba(0,51,255,.08); }
.ec-btn--link   { color: var(--muted); border-color: rgba(0,51,255,.2); background: transparent; }
.ec-btn--link:hover { color: var(--text); border-color: rgba(0,51,255,.4); }
.ec-btn:hover   { opacity: .85; }
.ec-ics-btn {
  background: none; border: 1px solid rgba(0,51,255,.2); color: var(--muted);
  font-size: 13px; padding: 2px 6px; cursor: pointer; transition: all .15s; line-height: 1;
}
.ec-ics-btn:hover { border-color: rgba(0,200,200,.3); color: var(--teal); }

/* Type badge (right column) */
.ec-badge {
  grid-column: 4; grid-row: 1;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue-bright);
  background: rgba(0,51,255,.08); border: 1px solid rgba(0,51,255,.2);
  padding: 5px 10px; white-space: nowrap; align-self: start;
}
.ec-badge--launch      { color: var(--blue-bright); border-color: rgba(0,51,255,.25); }
.ec-badge--moon        { color: #c0c8e0; border-color: rgba(192,200,224,.3); background: rgba(192,200,224,.05); }
.ec-badge--season      { color: var(--teal); border-color: rgba(0,200,200,.3); background: rgba(0,200,200,.06); }
.ec-badge--meteor      { color: #f4a030; border-color: rgba(244,160,48,.3); background: rgba(244,160,48,.06); }
.ec-badge--space_event { color: #c084fc; border-color: rgba(192,132,252,.3); background: rgba(192,132,252,.06); }
.ec-badge--custom      { color: #ffd700; border-color: rgba(255,215,0,.3); background: rgba(255,215,0,.05); }
.ec-toggle-arrow {
  display: inline-block; margin-left: 6px; font-size: 11px;
  transition: transform .2s; vertical-align: middle;
}
.ec--open .ec-toggle-arrow { transform: rotate(180deg); }

/* Launch details panel */
.ec-details {
  display: none;
  grid-column: 1 / -1; grid-row: 2;
  background: rgba(0,0,20,.6); border-top: 1px solid rgba(0,51,255,.2);
  padding: 1.25rem 1.5rem 1.5rem; margin-top: 6px;
}
.ec--open .ec-details { display: block; }
.ec-details-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: .6rem 1.75rem;
  margin-bottom: .85rem;
}
.ec-ditem { display: flex; flex-direction: column; gap: 2px; }
.ec-dkey  { font-family: var(--font-mono); font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--teal); }
.ec-dval  { font-size: 14px; color: #fff; font-family: var(--font-orb); font-weight: 600; line-height: 1.35; }
.ec-ddesc {
  font-size: 13px; color: var(--muted); line-height: 1.6;
  border-top: 1px solid rgba(0,51,255,.15); padding-top: .65rem; margin: .6rem 0;
}
.ec-details-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .75rem; }
.ec-ics-btn--full {
  padding: 4px 12px; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  background: none; border: 1px solid rgba(0,51,255,.25); cursor: pointer;
  transition: all .15s;
}
.ec-ics-btn--full:hover { border-color: rgba(0,200,200,.35); color: var(--teal); }

/* Custom event card accent */
.ec--custom { border-left: 3px solid #ffd700; }
.ec--custom .ec-date { background: rgba(255,215,0,.06); border-color: rgba(255,215,0,.2); }
.ec--custom .ec-month { color: #ffd700; }

/* Mobile */
@media (max-width: 700px) {
  .event-card { grid-template-columns: 60px 1fr auto; gap: 0 .75rem; padding: 1rem .5rem; }
  .ec-thumb   { width: 52px; height: 52px; }
  .ec-date    { grid-column: 1; }
  .ec-body    { grid-column: 2; }
  .ec-badge   { grid-column: 3; padding: 4px 6px; font-size: 11px; }
  .ec-day     { font-size: 24px; }
}
@media (max-width: 480px) {
  .event-card { grid-template-columns: 1fr auto; }
  .ec-thumb   { display: none; }
  .ec-date    { grid-column: 1; grid-row: 1; display: flex; gap: 6px; align-items: center; padding: 6px 8px; }
  .ec-month   { letter-spacing: .1em; }
  .ec-day     { font-size: 20px; }
  .ec-body    { grid-column: 1; grid-row: 2; }
  .ec-badge   { grid-column: 2; grid-row: 1; }
  .ec-details-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Timeline view ── */
.sc-timeline { padding: 0; }
.sc-tl-group { margin-bottom: 2rem; }
.sc-tl-date-bar {
  display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem;
}
.sc-tl-date-bar::before {
  content: ''; flex: none; width: 12px; height: 12px;
  border-radius: 50%; background: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(0,51,255,.15);
}
.sc-tl-date-bar::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(0,51,255,.3), transparent);
}
.sc-tl-date-label {
  font-family: var(--font-orb); font-size: 14px; font-weight: 700;
  color: var(--blue-bright); white-space: nowrap; letter-spacing: .06em;
}
.sc-tl-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: .75rem;
  padding-left: 1.75rem;
}
.sc-tl-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(0,51,255,.15);
  border-left: 3px solid var(--blue-bright); padding: .75rem 1rem;
}
.sc-tl-card--moon        { border-left-color: #c0c8e0; }
.sc-tl-card--meteor      { border-left-color: #f4a030; }
.sc-tl-card--season      { border-left-color: var(--teal); }
.sc-tl-card--space_event { border-left-color: #c084fc; }
.sc-tl-card--custom      { border-left-color: #ffd700; }
.sc-tl-card-type { font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.sc-tl-card-title { font-size: 13px; font-weight: 600; color: #fff; line-height: 1.35; }
.sc-tl-card-meta  { font-size: 12px; color: var(--muted); margin-top: 2px; }
.sc-tl-card-time  { font-family: var(--font-mono); font-size: 12px; color: var(--teal); margin-top: 4px; }
.sc-tl-card-countdown { font-family: var(--font-mono); font-size: 12px; color: var(--teal); margin-top: 2px; }

/* ── Misc ── */
.sc-no-events { color: var(--muted); font-family: var(--font-mono); font-size: 14px; }
.sc-empty-state {
  text-align: center; padding: 3rem 1rem;
  font-family: var(--font-mono); font-size: 14px; color: var(--muted);
}
.sc-empty-icon { display: block; font-size: 32px; margin-bottom: 1rem; opacity: .4; }

/* Two-month calendar — single column on mobile */
@media (max-width: 860px) {
  .cal-two-months { grid-template-columns: 1fr; }
}

/* ============================================================
   SINGLE SPACE EVENT
   ============================================================ */
.space-event-meta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem 2rem;
  background: var(--panel);
  border: 1px solid rgba(0,51,255,0.15);
  border-top: 2px solid var(--blue-bright);
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.space-event-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.space-event-meta-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
}

.space-event-meta-val {
  font-family: var(--font-orb);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.space-event-content {
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  margin-bottom: 2.5rem;
}

.space-event-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ============================================================
   ABOUT — Homepage Brief
   ============================================================ */
.about-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-brief-body {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 860px) {
  .about-wrap { grid-template-columns: 1fr; gap: 3rem; }
}

.about-image-frame {
  position: relative;
}

.about-image-frame img {
  width: 100%;
  border: 1px solid var(--blue-border);
  filter: grayscale(20%) contrast(1.05);
  transition: filter 0.4s;
}

.about-image-frame:hover img { filter: grayscale(0%) contrast(1.1); }

.about-image-frame::before {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(0,51,255,0.15);
  pointer-events: none;
}

.about-image-frame::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-bright), var(--teal));
}

.about-eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-eyebrow::after {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: var(--teal); opacity: 0.45;
}

.about-heading {
  font-family: var(--font-orb);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-body { color: var(--muted-light); font-size: 15px; margin-bottom: 1rem; line-height: 1.85; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-top: 2.5rem;
}

.stat-box {
  background: var(--panel);
  border: 1px solid rgba(0,51,255,0.1);
  padding: 2rem;
  text-align: center;
  transition: border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue-bright), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-box:hover { border-color: rgba(0,51,255,0.45); }
.stat-box:hover::before { opacity: 1; }

.stat-number {
  display: block;
  font-family: var(--font-orb);
  font-size: 48px;
  font-weight: 900;
  color: var(--blue-bright);
  line-height: 1;
  margin-bottom: 6px;
  text-shadow: 0 0 30px rgba(0,51,255,0.5);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ============================================================
   BLOG — Field Notes
   ============================================================ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--gap);
  max-width: var(--max-width);
  margin: 0 auto;
}

.post-card {
  background: var(--panel);
  border: 1px solid rgba(0,51,255,0.1);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: rgba(0,51,255,0.5);
  transform: translateY(-3px);
}

.post-card::before {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--blue-bright), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.post-card:hover::before { transform: scaleX(1); }

.post-thumbnail {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.post-thumbnail img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
}

.post-card:hover .post-thumbnail img { transform: scale(1.07); }

/* Review badge */
.post-review-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--blue-bright);
  color: #fff;
  font-family: var(--font-orb);
  font-size: 14px;
  letter-spacing: 0.15em;
  padding: 4px 10px;
  text-transform: uppercase;
}

.post-body {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-category {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.28em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.post-title-link { color: inherit; text-decoration: none; }

.post-entry-title {
  font-family: var(--font-orb);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.post-excerpt {
  font-size: 14px;
  color: var(--muted-light);
  flex: 1;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}

/* Star rating for reviews */
.post-rating {
  display: flex;
  gap: 3px;
  margin-bottom: 0.75rem;
}

.post-rating .star { color: #ffcc00; font-size: 14px; }
.post-rating .star.empty { color: rgba(255,204,0,0.3); }

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(0,51,255,0.08);
}

.post-date {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.post-read-more {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--blue-bright);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.post-read-more:hover { color: var(--teal); }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--panel);
  border-top: 1px solid var(--blue-border);
  padding: 6rem 2.5rem 2.5rem;
  position: relative;
  z-index: 2;
}

#site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-bright) 30%, var(--teal) 70%, transparent);
}

.footer-inner { max-width: var(--max-width); margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (max-width: 500px)  { .footer-top { grid-template-columns: 1fr; } }

.footer-brand-name {
  font-family: var(--font-orb);
  font-size: 24px;
  font-weight: 900;
  color: var(--blue-bright);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
  display: block;
  text-shadow: 0 0 20px var(--blue-glow);
}

.footer-tagline {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.footer-social { display: flex; gap: 8px; flex-wrap: wrap; }

.footer-social a {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--muted);
  border: 1px solid rgba(0,51,255,0.2);
  padding: 6px 12px;
  text-transform: uppercase;
  transition: all var(--transition);
}

.footer-social a:hover { color: var(--teal); border-color: var(--teal); }

.footer-col h4 {
  font-family: var(--font-orb);
  font-size: 14px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.4rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,51,255,0.15);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  font-size: 14px;
  color: var(--muted);
  transition: color var(--transition);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.footer-col ul li a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(0,51,255,0.1);
  padding-top: 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.footer-coords {
  font-family: var(--font-mono);
  font-size: 14px;
  color: rgba(0,51,255,0.5);
  letter-spacing: 0.1em;
}

/* ============================================================
   ABOUT PAGE — Timeline
   ============================================================ */
.about-page-hero {
  background: var(--near-black);
  border-bottom: 1px solid var(--blue-border);
  padding: 5rem 2.5rem;
  text-align: center;
}

.about-page-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}

.about-page-bio {
  font-size: 16px;
  color: var(--muted-light);
  line-height: 1.9;
  margin-bottom: 3rem;
}

.about-image-full {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border: 1px solid var(--blue-border);
  margin-bottom: 3rem;
  filter: grayscale(15%);
}

/* Timeline — legacy stubs (layout now in supplemental.css .c3xo-tl-* classes) */
.timeline-year  { font-family: var(--font-mono); color: var(--teal); }
.timeline-title { font-family: var(--font-orb); color: #fff; }
.timeline-body  { color: var(--muted-light); line-height: 1.8; }

/* About page gear snapshot */
.about-gear-snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  margin: 3rem 0;
}

.about-gear-item {
  background: var(--panel);
  border: 1px solid rgba(0,51,255,0.1);
  padding: 1.5rem;
  font-family: var(--font-mono);
}

.about-gear-item-type {
  font-size: 14px;
  color: var(--teal);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.about-gear-item-name {
  font-size: 14px;
  color: #fff;
}

/* ============================================================
   GALLERY ARCHIVE PAGE
   ============================================================ */
.gallery-page-header {
  background: var(--near-black);
  border-bottom: 1px solid var(--blue-border);
  padding: 4rem 2.5rem;
  text-align: center;
}

.gallery-archive-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 2.5rem;
}

/* View toggle */
.gallery-view-toggle {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.view-btn {
  background: none;
  border: 1px solid rgba(0,51,255,0.2);
  color: var(--muted);
  padding: 8px 14px;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
}

.view-btn.active, .view-btn:hover {
  border-color: var(--blue-bright);
  color: var(--blue-bright);
  background: var(--blue-faint);
}

/* Grid view */
.gallery-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

@media (max-width: 768px) { .gallery-grid-3col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid-3col { grid-template-columns: 1fr; } }

/* Search */
.gallery-search-wrap {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
}

.gallery-search-input {
  flex: 1;
  background: var(--panel);
  border: 1px solid var(--blue-border);
  border-right: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 11px 18px;
  outline: none;
  letter-spacing: 0.1em;
}

.gallery-search-input:focus { border-color: var(--blue-bright); }
.gallery-search-input::placeholder { color: var(--muted); }

.gallery-search-btn {
  background: var(--blue-bright);
  border: none;
  color: #fff;
  font-family: var(--font-orb);
  font-size: 14px;
  letter-spacing: 0.15em;
  padding: 11px 22px;
  cursor: pointer;
  transition: background var(--transition);
}

.gallery-search-btn:hover { background: var(--blue-dim); }

/* Sort controls */
.gallery-sort {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.gallery-sort-label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.15em;
}

.gallery-sort select {
  background: var(--panel);
  border: 1px solid var(--blue-border);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 8px 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
  outline: none;
}

.gallery-sort select:focus { border-color: var(--blue-bright); }

/* ============================================================
   BLOG / SINGLE POST
   ============================================================ */
.blog-archive-header {
  background: var(--near-black);
  border-bottom: 1px solid var(--blue-border);
  padding: 4rem 2.5rem;
  text-align: center;
}

.c3xo-single {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}

.single-header { margin-bottom: 3rem; }

.single-category {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.28em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.single-title {
  font-family: var(--font-orb);
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.2rem;
  line-height: 1.15;
}

.single-meta {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.12em;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.single-hero-image {
  width: 100%;
  border: 1px solid var(--blue-border);
  margin-bottom: 3.5rem;
}

.entry-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted-light);
}

.entry-content h2, .entry-content h3, .entry-content h4 {
  color: #fff;
  margin: 3rem 0 1.2rem;
  font-family: var(--font-orb);
}

.entry-content h2 { font-size: 26px; }
.entry-content h3 { font-size: 20px; }

.entry-content p { margin-bottom: 1.4rem; font-size: 16px; }

.entry-content a { color: var(--blue-bright); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--teal); }

.entry-content blockquote {
  border-left: 3px solid var(--blue-bright);
  padding: 1.2rem 1.75rem;
  margin: 2.5rem 0;
  background: var(--blue-faint);
  font-family: var(--font-orb);
  font-size: 17px;
  color: #fff;
  font-style: normal;
}

.entry-content img {
  width: 100%;
  border: 1px solid var(--blue-border);
  margin: 2rem 0;
}

.entry-content code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: rgba(0,51,255,0.1);
  border: 1px solid var(--blue-border);
  padding: 2px 8px;
  color: var(--teal);
}

.entry-content pre {
  background: var(--panel);
  border: 1px solid var(--blue-border);
  padding: 2rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.entry-content pre code { border: none; background: none; padding: 0; }

/* Review box */
.review-box {
  background: var(--panel-light);
  border: 1px solid var(--blue-border);
  border-top: 2px solid var(--blue-bright);
  padding: 2rem;
  margin: 3rem 0;
}

.review-box-title {
  font-family: var(--font-orb);
  font-size: 16px;
  color: #fff;
  margin-bottom: 1.25rem;
}

.review-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
}

.review-stars .star { color: #ffcc00; font-size: 20px; }

.review-verdict {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--teal);
  letter-spacing: 0.15em;
}

/* Post navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(0,51,255,0.15);
}

.post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 45%;
}

.post-nav-label {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.post-nav-title {
  font-family: var(--font-orb);
  font-size: 14px;
  color: var(--blue-bright);
  line-height: 1.4;
  transition: color var(--transition);
}

.post-nav-title:hover { color: var(--teal); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 3.5rem 2.5rem;
}

.page-numbers {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid rgba(0,51,255,0.18);
  padding: 10px 16px;
  transition: all var(--transition);
}

.page-numbers.current, .page-numbers:hover {
  background: var(--blue-bright);
  color: #fff;
  border-color: var(--blue-bright);
  box-shadow: 0 0 18px rgba(0,51,255,0.4);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.c3xo-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.c3xo-reveal.is-visible { opacity: 1; transform: translateY(0); }

.c3xo-reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.c3xo-reveal-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.c3xo-reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.c3xo-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.c3xo-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.c3xo-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.c3xo-reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.c3xo-reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.c3xo-reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.47s; }
.c3xo-reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.54s; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-blue   { color: var(--blue-bright); }
.text-teal   { color: var(--teal); }
.text-muted  { color: var(--muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Section anchor offset for fixed nav */
.section-anchor { scroll-margin-top: calc(var(--nav-height) + 20px); }

/* ============================================================
   WORDPRESS ALIGNMENTS
   ============================================================ */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 1.5rem auto; }
.alignwide  { max-width: 100%; }
.alignfull  { width: 100vw; margin-left: calc(50% - 50vw); }

/* ============================================================
   WIDGET AREAS
   ============================================================ */
.widget {
  background: var(--panel);
  border: 1px solid rgba(0,51,255,0.12);
  padding: 1.75rem;
  margin-bottom: 2px;
}

.widget-title {
  font-family: var(--font-orb);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(0,51,255,0.15);
  margin-bottom: 1.2rem;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 2.5rem;
}

@media (max-width: 900px) { .blog-layout { grid-template-columns: 1fr; } }

/* ============================================================
   COMMENTS
   ============================================================ */
.comments-area {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2.5rem 5rem;
}

.comments-title {
  font-family: var(--font-orb);
  font-size: 22px;
  color: #fff;
  margin-bottom: 2.5rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(0,51,255,0.15);
}

.comment-list { list-style: none; }

.comment-body {
  background: var(--panel);
  border: 1px solid rgba(0,51,255,0.1);
  padding: 1.75rem;
  margin-bottom: 2px;
}

.comment-meta {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.comment-author b { color: var(--teal); font-style: normal; font-weight: 600; }

.comment-content { font-size: 15px; color: var(--muted-light); line-height: 1.8; }

.comment-form label {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--blue-bright);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--blue-border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  transition: border-color var(--transition);
  outline: none;
}

.comment-form input:focus, .comment-form textarea:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 2px rgba(0,51,255,0.12);
}

.comment-form textarea { min-height: 150px; resize: vertical; }

/* ============================================================
   WOOCOMMERCE (print shop)
   ============================================================ */
.woocommerce .price { font-family: var(--font-orb); color: var(--blue-bright); font-size: 18px; }

.woocommerce .products .product {
  background: var(--panel);
  border: 1px solid rgba(0,51,255,0.12);
  padding: 1.5rem;
  transition: border-color 0.3s;
}

.woocommerce .products .product:hover { border-color: rgba(0,51,255,0.5); }

/* ============================================================
   NAV LIVE LINK
   ============================================================ */
.nav-live-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border: 1px solid transparent;
  transition: color 0.3s, border-color 0.3s;
}
.nav-live-link:hover { color: #fff; }
.nav-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted);
  display: inline-block;
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}
.nav-live-link.live-active {
  color: #00dd66;
  text-shadow: 0 0 10px rgba(0,220,100,0.5);
  border-color: rgba(0,220,100,0.2);
}
.nav-live-link.live-active .nav-live-dot {
  background: #00dd66;
  box-shadow: 0 0 8px #00dd66;
  animation: liveBlink 1.8s ease-in-out infinite;
}

/* ============================================================
   LIVE PAGE — BANNERS
   ============================================================ */
.live-out-of-hours-banner {
  background: var(--panel);
  border-top: 2px solid var(--blue-bright);
  border-bottom: 1px solid var(--blue-border);
  padding: 1rem 0;
}
.live-out-of-hours-banner .container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.live-ooh-icon { font-size: 18px; color: var(--blue-bright); }
.live-ooh-text { color: #fff; }
.live-ooh-next { color: var(--muted); }

.live-offline-banner {
  background: var(--panel);
  border-top: 2px solid #f4a030;
  border-bottom: 1px solid rgba(244,160,48,0.2);
  padding: 1rem 0;
}
.live-offline-banner .container {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
}
.live-offline-text { color: #f4a030; font-weight: 600; }
.live-offline-countdown { color: var(--muted); }

.live-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.live-status-dot--on {
  background: #00dd66;
  box-shadow: 0 0 8px #00dd66;
  animation: liveBlink 1.8s ease-in-out infinite;
}
.live-status-dot--offline {
  background: #f4a030;
  box-shadow: 0 0 6px rgba(244,160,48,0.5);
}

/* ============================================================
   LIVE PAGE — SESSION BAR
   ============================================================ */
.live-session-bar {
  background: var(--panel);
  border-top: 1px solid var(--blue-border);
  border-bottom: 1px solid var(--blue-border);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.live-session-bar::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; right: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00dd66, transparent);
  animation: scanLine 4s linear infinite;
}
.live-session-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: -100%; right: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00dd66, transparent);
  animation: scanLine 4s linear infinite 2s;
}
.live-session-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.live-session-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.live-session-state {
  font-family: var(--font-orb);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: #00dd66;
  text-shadow: 0 0 10px rgba(0,220,100,0.5);
}
.live-session-stats {
  display: flex;
  gap: 2.5rem;
}
.live-session-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ============================================================
   LIVE PAGE — DASHBOARD GRID
   ============================================================ */
.live-dashboard-section { padding-top: 2rem; }

.live-dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.live-panel {
  background: var(--panel);
  border-top: 2px solid var(--blue-bright);
  padding: 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.live-panel-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(0,51,255,0.15);
  padding-bottom: 0.5rem;
}

.live-data-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 24px;
}
.live-data-row .condition-key {
  min-width: 90px;
  flex-shrink: 0;
  font-size: 12px;
}
.live-data-row .condition-value {
  font-size: 15px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-data-row--progress {
  align-items: center;
  gap: 0.75rem;
}
.live-progress-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
}
.live-progress-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  min-width: 38px;
  text-align: right;
}

/* Guider sparkline */
.live-sparkline-wrap {
  margin-top: 0.5rem;
  border: 1px solid rgba(0,51,255,0.15);
  border-radius: 2px;
  padding: 4px 0 2px;
  background: rgba(0,0,20,0.4);
}
.live-sparkline {
  display: block;
  width: 100%;
  height: 60px;
}
.live-sparkline-legend {
  display: flex;
  gap: 1.5rem;
  padding: 4px 8px 0;
}
.live-spark-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.live-spark-label::before {
  content: '─ ';
}
.live-spark-label--ra  { color: #0055ff; }
.live-spark-label--dec { color: #00c8ff; }

/* ============================================================
   LIVE PAGE — IMAGE PANEL
   ============================================================ */
.live-image-panel {
  background: var(--panel);
  border-top: 2px solid var(--blue-bright);
  padding: 1.5rem;
  position: relative;
}
.live-image-inner {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
}
.live-thumbnail-wrap {
  flex-shrink: 0;
}
.live-thumbnail {
  max-width: 320px;
  width: 100%;
  display: block;
  border: 1px solid var(--blue-border);
}
.live-thumbnail-placeholder {
  width: 320px;
  height: 200px;
  border: 1px dashed var(--blue-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
}
.live-image-stats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 600px) {
  .hero-corner { display: none; }
  .c3xo-section { padding: 5rem 1.5rem; }
  .btn { padding: 12px 28px; font-size: 14px; }
}

@media (max-width: 720px) {
  .live-dashboard-grid { grid-template-columns: 1fr; }
  .live-session-stats { flex-wrap: wrap; gap: 1rem; }
  .live-image-inner { flex-direction: column; }
  .live-thumbnail-placeholder { width: 100%; max-width: 320px; }
}

/* =====================================================================
   DARK SKY MODE TOGGLE — button in header
   ===================================================================== */
.nav-dark-sky-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  padding: 6px 10px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.nav-dark-sky-btn:hover {
  color: #cc3300;
  border-color: rgba(200,50,0,0.25);
}
.nav-dark-sky-btn:focus-visible {
  outline: 2px solid rgba(200,50,0,0.6);
  outline-offset: 2px;
}
.nav-dark-sky-icon {
  font-size: 13px;
  line-height: 1;
  transition: color 0.25s;
}
/* Active / ON state */
.dark-sky-mode .nav-dark-sky-btn {
  color: #ff3300;
  border-color: rgba(200,40,0,0.4);
  text-shadow: 0 0 8px rgba(255,60,0,0.5);
}
.dark-sky-mode .nav-dark-sky-icon {
  color: #ff3300;
  filter: drop-shadow(0 0 4px rgba(255,40,0,0.7));
}

/* =====================================================================
   DARK SKY MODE — full-screen red overlay + grayscale filter
   ===================================================================== */

/* Red overlay — pointer-events:none so it never blocks anything */
.dark-sky-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(200, 0, 0, 0.62);
  mix-blend-mode: multiply;
  pointer-events: none;
  display: none;
}
.dark-sky-mode .dark-sky-overlay {
  display: block;
}

/* Filter applied to the page wrapper so it doesn't affect the overlay itself */
.dark-sky-mode #page {
  filter: grayscale(1) sepia(1) saturate(4) hue-rotate(330deg) brightness(0.6) contrast(1.15);
}

/* Canvas elements (starfield, ecliptic, clearsky, etc.) inherit via #page */
/* No extra rules needed — filter cascades naturally */

/* =====================================================================
   MANMADE — Stale TLE banner + pass table date cell
   ===================================================================== */
.mm-stale-banner {
  margin: 0 0 10px;
  padding: 8px 14px;
  background: rgba(200,140,0,0.12);
  border-left: 3px solid rgba(220,160,0,0.7);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #d4a800;
}
.mm-stale-banner--critical {
  background: rgba(200,40,0,0.12);
  border-left-color: rgba(220,60,0,0.8);
  color: #e05020;
}
.mm-tle-stale   { color: #d4a800; font-size: 11px; }
.mm-tle-critical { color: #e05020; font-size: 11px; }
.mm-pass-row--stale td    { opacity: 0.85; }
.mm-pass-row--critical td { opacity: 0.75; border-left: 2px solid rgba(200,50,0,0.3); }
.mm-pt-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted, #888);
  white-space: nowrap;
}
