/* ============================================================
   SITHEAN — Shared Stylesheet
   Used by all pages. Edit here to change the look site-wide.
============================================================ */

/* --- Google / CDN Fonts --- */
@import url('https://fonts.cdnfonts.com/css/ocr-a-std');

/* ============================================================
   RESET & BASE
============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #050008;
  background: url("backgrounds/7QYZXBU4KD6EC2LB52RZ6DLVG5D6U6KS.gif") repeat;
  font-family: 'OCR A Std', monospace;
  color: #A398B8;
  cursor: url("https://www.rw-designer.com/cursor-extern.php?id=165"), auto;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  font-smooth: never;
}

/* ============================================================
   MAIN CONTAINER — 800px centered column
============================================================ */
#container {
  width: 800px;
  margin: 30px auto 50px auto;
  background: url("backgrounds/galaxy3.gif");
  border: 5px solid #3c003c;
  box-shadow: 0 0 30px #7a00aa88, inset 0 0 50px rgba(60,0,60,0.5);
}

/* ============================================================
   SITE FONTS
============================================================ */
@font-face {
  font-family: 'Belligoes';
  src: url('Belligoes-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'BlackMorgana';
  src: url('BlackMorgana-Regular.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Pecot Lined';
  src: url('Pecot%20Lined.ttf') format('truetype');
  font-display: swap;
}

/* ============================================================
   HEADER BANNER — "Welcome to Sìthean" in Belligoes blackletter
   over a CSS starfield. Pure CSS recreation of the old banner
   image; the text lives in ::before so no page markup changes.
============================================================ */
#header {
  width: 100%;
  height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  /* starfield: layered radial-gradient "stars" over deep space */
  background:
    radial-gradient(1px 1px at 8% 30%,  rgba(255,255,255,0.9) 0%, transparent 100%),
    radial-gradient(1px 1px at 22% 74%, rgba(255,255,255,0.7) 0%, transparent 100%),
    radial-gradient(2px 2px at 31% 18%, rgba(220,210,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 44% 60%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 53% 12%, rgba(255,255,255,0.85) 0%, transparent 100%),
    radial-gradient(2px 2px at 64% 82%, rgba(200,190,255,0.7) 0%, transparent 100%),
    radial-gradient(1px 1px at 72% 38%, rgba(255,255,255,0.75) 0%, transparent 100%),
    radial-gradient(1px 1px at 84% 66%, rgba(255,255,255,0.6) 0%, transparent 100%),
    radial-gradient(2px 2px at 92% 24%, rgba(230,220,255,0.8) 0%, transparent 100%),
    radial-gradient(1px 1px at 16% 52%, rgba(255,255,255,0.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 58% 44%, rgba(255,255,255,0.55) 0%, transparent 100%),
    radial-gradient(ellipse at 50% 45%, #0b0020 0%, #050010 65%, #020008 100%);
}

/* the sign itself — silver "engraved" gradient clipped to the glyphs */
#header::before {
  content: 'Welcome to Sithean';
  font-family: 'Belligoes', 'Times New Roman', serif;
  font-size: clamp(34px, 9.5vw, 96px);
  line-height: 1;
  padding: 0 12px;
  white-space: nowrap;
  background: repeating-linear-gradient(
    0deg,
    #f2f0fa 0px,
    #b9b4d0 1px,
    #eeeaf8 2px,
    #a49ec0 3px,
    #f6f4fc 4px
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter:
    drop-shadow(0 0 10px rgba(210,195,255,0.45))
    drop-shadow(0 0 30px rgba(140,90,220,0.30));
  animation: bannerGlow 5s ease-in-out infinite;
}

@keyframes bannerGlow {
  0%, 100% {
    filter:
      drop-shadow(0 0 10px rgba(210,195,255,0.45))
      drop-shadow(0 0 30px rgba(140,90,220,0.30));
  }
  50% {
    filter:
      drop-shadow(0 0 14px rgba(220,205,255,0.65))
      drop-shadow(0 0 40px rgba(160,110,240,0.40));
  }
}

#header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
}

/* ============================================================
   NAVIGATION BAR
============================================================ */
#nav {
  text-align: center;
  padding: 12px 8px;
  background: url("https://sithean.space/backgrounds/spacegal.gif");
  border-top: 2px solid #5500aa;
  border-bottom: 2px solid #5500aa;
  position: sticky;
  top: 0;
  z-index: 100;
  line-height: 2.3;
  box-shadow:
    0 4px 28px rgba(100,0,200,0.3),
    inset 0 0 70px rgba(10,0,28,0.65);
}

/* semi-transparent overlay so text stays readable against the gif */
#nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4,0,12,0.52);
  pointer-events: none;
  z-index: 0;
}

/* pulsing inner border lines */
#nav::after {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(190,0,255,0.45);
  border-bottom: 1px solid rgba(190,0,255,0.45);
  pointer-events: none;
  z-index: 1;
  animation: navBorderPulse 4s ease-in-out infinite;
}

@keyframes navBorderPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1;   }
}

#nav a {
  position: relative;
  z-index: 2;
  color: #ccc0f0;
  margin: 0 1px;
  text-decoration: none;
  font-weight: bold;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 4px 7px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, text-shadow 0.2s, background 0.2s;
}

/* ✦ separator between links */
#nav a:not(:last-child)::after {
  content: '  \2726  ';
  color: #2d0048;
  font-size: 7px;
  vertical-align: middle;
  letter-spacing: 0;
  transition: color 0.2s;
}

/* glowing dot floating above the active link */
#nav a.active::before {
  content: '\00B7';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  color: #bb77ff;
  font-size: 20px;
  line-height: 1;
  text-shadow: 0 0 8px #bb77ff, 0 0 18px rgba(170,100,255,0.55);
  pointer-events: none;
}

#nav a:hover {
  color: #ff66ff;
  text-shadow: 0 0 12px #ff66ff, 0 0 26px rgba(255,102,255,0.35);
  border-bottom-color: #ff66ff;
  background: rgba(110,0,170,0.18);
}

#nav a:hover::after { color: #3d0060; }

#nav a.active {
  color: #e2d4ff;
  border-bottom-color: #cc99ff;
  text-shadow: 0 0 10px #cc99ff, 0 0 22px rgba(200,150,255,0.35);
}

#nav a.active::after { color: #3d0060; }

/* ============================================================
   PAGE TITLE STRIP
============================================================ */
#pageTitle {
  background: rgba(0,0,0,0.55);
  border-bottom: 1px solid #5500aa;
  padding: 14px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#pageTitle h1 {
  font-size: 18px;
  color: #d4c8ff;
  text-shadow: 0 0 12px #aa66ff;
  letter-spacing: 2px;
}

#pageTitle .titleGlyph {
  color: #7a00aa;
  font-size: 20px;
}

#pageTitle .pageTitleRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

#pageTitle .pageTitleSub {
  font-size: 11px;
  color: #5544aa;
  letter-spacing: 1px;
}

.apiCredit {
  font-size: 10px;
  color: #443366;
  text-align: right;
  margin-top: 3px;
  letter-spacing: 1px;
}

/* ============================================================
   MAIN CONTENT AREA
============================================================ */
#content {
  padding: 28px 32px;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
h2 {
  color: #d4c8ff;
  font-size: 15px;
  margin: 22px 0 10px 0;
  letter-spacing: 1px;
  border-left: 3px solid #7a00aa;
  padding-left: 10px;
}

h3, h4, h5 {
  color: #c4b8e8;
  font-size: 13px;
  letter-spacing: 1px;
  margin: 16px 0 6px 0;
  padding-left: 8px;
  border-left: 2px solid #5500aa;
}

p {
  font-size: 13px;
  line-height: 1.85;
  margin-bottom: 14px;
  color: #b8adcc;
}

a {
  color: #cc99ff;
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

a:hover {
  color: #ff66ff;
  text-shadow: 0 0 8px #ff66ff;
}

strong { color: #d4c8ff; }
em { color: #9988bb; font-style: italic; }

/* ============================================================
   HORIZONTAL DIVIDER
============================================================ */
hr {
  border: 0;
  border-top: 1px solid #44006688;
  margin: 24px 0;
}

/* ============================================================
   CARD / PANEL
============================================================ */
.card {
  background: rgba(0,0,0,0.4);
  border: 1px solid #440066;
  border-left: 3px solid #7a00aa;
  padding: 16px 20px;
  margin-bottom: 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: #9900cc;
  box-shadow: 0 0 12px rgba(120,0,200,0.25);
}

.card h3 {
  color: #cc99ff;
  font-size: 14px;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

/* ============================================================
   TAG / BADGE
============================================================ */
.tag {
  display: inline-block;
  background: rgba(100,0,160,0.4);
  border: 1px solid #7700bb;
  color: #cc99ff;
  font-size: 11px;
  padding: 2px 8px;
  margin: 3px 3px 3px 0;
  letter-spacing: 0.5px;
}

/* ============================================================
   TERMINAL / CODE BLOCK
============================================================ */
.terminal {
  background: rgba(0,0,0,0.7);
  border: 1px solid #5500aa;
  padding: 12px 16px;
  font-size: 12px;
  color: #cc99ff;
  letter-spacing: 1px;
  margin: 12px 0;
  word-break: break-all;
  position: relative;
}

.terminal::before {
  content: '> ';
  color: #7a00aa;
}


#musicWidget {
  display: flex;
  gap: 12px;
  padding: 10px;
  border: 1px solid #440066;
  background: rgba(0,0,0,0.4);
  align-items: center;
  margin-top: 10px;
}

.musicCoverWrap img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  image-rendering: pixelated;
  border: 1px solid #330044;
}

.musicInfo {
  flex: 1;
  font-family: 'OCR A Std', monospace;
  font-size: 13px;
}

#musicStatus {
  color: #66ff99;
  font-size: 11px;
  margin-bottom: 4px;
  letter-spacing: 1px;
}

#musicTrack {
  font-size: 14px;
  font-weight: bold;
  color: #d4c8ff;
}

#musicArtist {
  color: #9988bb;
  font-size: 12px;
}

#musicAlbum {
  color: #6655aa;
  font-size: 11px;
  margin-bottom: 6px;
}

#musicLink {
  color: #cc99ff;
  font-size: 11px;
  text-decoration: none;
}

#musicLink:hover {
  color: #ff66ff;
  text-shadow: 0 0 6px #ff66ff;
}

#recentTracks {
  margin-top: 10px;
  font-family: 'OCR A Std', monospace;
  font-size: 12px;
}

.recentTrack {
  display: flex;
  gap: 10px;
  padding: 6px 8px;
  background: rgba(0,0,0,0.3);
  border: 1px solid #220033;
  margin-bottom: 5px;
}

.recentTrack img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 1px solid #330044;
}

.recentTrackName {
  font-weight: bold;
  font-size: 12px;
  color: #c4b8e8;
}

.recentTrackArtist {
  font-size: 11px;
  color: #7766aa;
}


/* ===========================
   LAST.FM WIDGET STYLING
   (retro space theme fix)
=========================== */

#musicWidgetWrap {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #7a2cff;
  background: rgba(10, 10, 20, 0.65);
  box-shadow: 0 0 12px rgba(122, 44, 255, 0.4);
  max-width: 420px;
}

/* the actual web component */
lastfm-tracks {
  display: block;
  font-family: monospace;
  font-size: 12px;
  color: #d6c7ff;
}

/* album headers / groups (important for Nygaard widget style) */
lastfm-tracks::part(album-header) {
  color: #b388ff;
  font-weight: bold;
  margin-top: 10px;
}

/* track rows */
lastfm-tracks::part(track) {
  display: flex;
  gap: 8px;
  padding: 2px 0;
}

/* hover effect */
lastfm-tracks::part(track):hover {
  color: #ffffff;
  text-shadow: 0 0 6px #7a2cff;
}

#musicWidgetWrap::before {
  content: "LAST.FM STREAM";
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  color: #7a2cff;
  margin-bottom: 8px;
  opacity: 0.8;
}

/* ============================================================
   INFO ROW
============================================================ */
.infoRow {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid #330044;
}

.infoRow .icon {
  font-size: 22px;
  min-width: 30px;
  text-align: center;
}

.infoRow .text {
  font-size: 12px;
  line-height: 1.7;
  color: #b8adcc;
}

/* ============================================================
   VISIT COUNTER — sits inside #pageTitle on home page
============================================================ */
#visitCounter {
  font-size: 11px;
  color: #6a5a8a;
  text-align: right;
  letter-spacing: 1px;
}

#visitCounter a {
  color: #7755aa;
}

/* ============================================================
   RETRO 88x31 BUTTON BADGES
============================================================ */
#retroButtons {
  text-align: center;
  padding: 14px 10px;
  background: rgba(0,0,0,0.35);
  border-top: 1px dashed #440066;
}

#retroButtons img {
  height: 31px;
  width: 88px;
  object-fit: contain;
  margin: 5px 5px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

#retroButtons img:hover {
  transform: translateY(-3px) scale(1.05);
  filter: brightness(1.3) drop-shadow(0 0 4px #cc66ff);
}

/* ============================================================
   FOOTER
============================================================ */
#footer {
  text-align: center;
  padding: 12px;
  font-size: 11px;
  color: #5a4a7a;
  border-top: 2px solid #3c003c;
  background: rgba(0,0,0,0.5);
  letter-spacing: 1px;
}

#footer a {
  color: #7755aa;
}

/* ============================================================
   COMING SOON PLACEHOLDER
============================================================ */
.comingSoon {
  text-align: center;
  padding: 40px 20px;
  color: #5a4a7a;
  font-size: 13px;
  letter-spacing: 2px;
  border: 1px dashed #440066;
}

.comingSoon .bigGlyph {
  font-size: 36px;
  display: block;
  margin-bottom: 12px;
  opacity: 0.4;
}



/* ============================================================
   SPA NAVIGATION TRANSITION
============================================================ */
/* nav.js handles transitions via the full-screen overlay — no
   container opacity transition needed here. */

/* ============================================================
   STARFIELD CANVAS
============================================================ */
#starfield {
  display: block;
  width: 100%;
  height: 140px;
  background: #000;
  border: 1px solid #330044;
  margin-bottom: 20px;
}



/* ============================================================
   🌌 Masonry layout 
============================================================ */

/* 🌌 Masonry layout */
.apodGrid {
  column-count: 4;
  column-gap: 10px;
}
@media (max-width: 900px) {
  .apodGrid { column-count: 3; }
}
@media (max-width: 600px) {
  .apodGrid { column-count: 2; }
}

.apodThumb {
  display: inline-block;
  width: 100%;
  margin-bottom: 10px;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border: 1px solid #330044;
  background: #050010;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

/* ✨ glow + lift */
.apodThumb:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: #aa44ff;
  box-shadow: 0 0 20px rgba(160,0,255,0.5);
}

/* 🌠 image fade-in */
.apodThumb img {
  width: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.3s;
}
.apodThumb img.loaded {
  opacity: 1;
}
.apodThumb:hover img {
  transform: scale(1.05);
}





/* ============================================================
   BOOT / TYPEWRITER TERMINAL
============================================================ */
.bootTerminal {
  background: rgba(0,0,0,0.88);
  border: 1px solid #5500aa;
  border-left: 3px solid #33ff77;
  padding: 14px 18px;
  font-size: 11px;
  color: #66ff99;
  letter-spacing: 0.3px;
  margin: 14px 0;
  min-height: 560px;
  overflow: hidden;
  line-height: 1.55;
}

/* Line type base */
.tLine {
  display: block;
  margin-bottom: 0;
  line-height: 1.55;
}
.tLine--sep { min-height: 7px; }

/* Kernel messages — dim green */
.tLine--kern  { color: #2a7a50; }
.tStamp       { color: #1a4a35; }
.tKernText    { color: #2a7a50; }

/* systemd [  OK  ] lines */
.tLine--ok    { color: #88ddbb; }
.tOK          { color: #00ff77; font-weight: bold; }
.tOKText      { color: #88ddbb; }

/* Centered info banners */
.tLine--info  {
  color: #9977cc;
  letter-spacing: 2px;
  text-align: center;
  margin: 2px 0;
}

/* Auth / final lines */
.tLine--auth  {
  color: #d4c8ff;
  letter-spacing: 1.5px;
  text-shadow: 0 0 8px #aa66ff;
}

/* Neofetch block */
.tLine--neo   { white-space: pre; }
.tNeoArt      { color: #aa66ff; }
.tNeoInfo     { color: #d4c8ff; }
/* neofetch separator line (──) inherits tNeoInfo */

.bootTerminal .cursor {
  display: none;
  width: 8px;
  height: 12px;
  background: #66ff99;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   ISS LIVE TRACKER PANEL
============================================================ */
.issPanel {
  background: rgba(0,0,0,0.7);
  border: 1px solid #440066;
  margin: 14px 0;
  overflow: hidden;
}
.issHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(60,0,90,0.5);
  border-bottom: 1px solid #440066;
  font-size: 11px;
  letter-spacing: 1.5px;
}
.issHeaderLeft { display: flex; align-items: center; gap: 8px; }
.issHeaderTitle { color: #d4c8ff; }
.issDot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #444;
  animation: issPulse 1.2s ease infinite;
  flex-shrink: 0;
}
@keyframes issPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(102,255,153,0.6); }
  50%      { box-shadow: 0 0 0 5px rgba(102,255,153,0); }
}
.issSignal {
  font-size: 10px;
  color: #664488;
  letter-spacing: 1.5px;
  animation: blink 1.4s step-end infinite;
}

.issCoordRow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #330044;
}
.issCoordBlock {
  padding: 12px 14px;
  border-right: 1px solid #220033;
}
.issCoordBlock:last-child { border-right: none; }
.issCoordLabel {
  font-size: 9px;
  color: #5544aa;
  letter-spacing: 2px;
  margin-bottom: 5px;
  text-transform: uppercase;
}
.issCoordValue {
  font-size: 16px;
  color: #cc99ff;
  letter-spacing: 1px;
  text-shadow: 0 0 12px #9966ff;
}

.issStatRow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid #330044;
  padding: 8px 0;
}
.issStat {
  display: flex;
  flex-direction: column;
  padding: 4px 14px;
  border-right: 1px solid #220033;
  gap: 3px;
}
.issStat:last-child { border-right: none; }
.issStatLabel {
  font-size: 9px;
  color: #443366;
  letter-spacing: 1.5px;
}
.issStatVal {
  font-size: 12px;
  color: #9977cc;
  letter-spacing: 1px;
}

.issFooterRow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(30,0,50,0.5);
}
.issFooterCell {
  padding: 9px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-right: 1px solid #220033;
}
.issFooterCell:last-child { border-right: none; }
.issFootLabel {
  font-size: 9px;
  color: #443366;
  letter-spacing: 1.5px;
}
.issFootVal {
  font-size: 12px;
  color: #aa88dd;
  letter-spacing: 0.5px;
}

/* ============================================================
   DEEP SPACE TELEMETRY GRID
============================================================ */
.telemetry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
}
.telemetryCell {
  background: rgba(0,0,0,0.6);
  border: 1px solid #330044;
  border-top: 2px solid #5500aa;
  padding: 12px 14px;
}
.telemetryLabel {
  font-size: 10px;
  color: #5544aa;
  letter-spacing: 2px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.telemetryValue {
  font-size: 15px;
  color: #cc99ff;
  letter-spacing: 1px;
  animation: glowPulse 3s ease infinite;
  margin-bottom: 3px;
}
.telemetrySub {
  font-size: 10px;
  color: #443366;
  letter-spacing: 0.5px;
}
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 10px #9966ff; }
  50%       { text-shadow: 0 0 22px #cc66ff, 0 0 32px #9933ff; }
}

/* ============================================================
   SPACE FACT ROTATOR
============================================================ */
.factRotator {
  background: rgba(0,0,0,0.5);
  border: 1px solid #440066;
  border-left: 3px solid #aa44ff;
  padding: 14px 18px;
  margin: 14px 0;
  min-height: 68px;
}
.factRotator .factLabel {
  font-size: 10px;
  color: #5544aa;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.factText {
  font-size: 12px;
  color: #b8adcc;
  line-height: 1.7;
  transition: opacity 0.5s ease;
}

/* ============================================================
   QUICK LINKS GRID
============================================================ */
.quickLinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0;
}
.quickLink {
  background: rgba(0,0,0,0.45);
  border: 1px solid #440066;
  border-top: 3px solid #7a00aa;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s, background 0.2s;
  display: block;
}
.quickLink:hover {
  border-color: #cc00ff;
  box-shadow: 0 0 14px rgba(180,0,255,0.3);
  background: rgba(60,0,80,0.35);
  color: inherit;
}
.quickLink .qlIcon {
  font-size: 26px;
  display: block;
  margin-bottom: 8px;
}
.quickLink .qlTitle {
  font-size: 12px;
  color: #d4c8ff;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}
.quickLink .qlDesc {
  font-size: 11px;
  color: #7766aa;
  display: block;
}

/* ============================================================
   GLOBAL ENHANCEMENTS — smooth scroll, selection, scrollbar
============================================================ */
html {
  scroll-behavior: smooth;
}

::selection {
  background: rgba(122, 0, 170, 0.55);
  color: #f0e6ff;
}

/* Custom scrollbar — webkit only */
::-webkit-scrollbar {
  width: 7px;
}
::-webkit-scrollbar-track {
  background: #0a0012;
}
::-webkit-scrollbar-thumb {
  background: #7a00aa;
  border-radius: 4px;
  box-shadow: 0 0 6px #aa44ff;
}
::-webkit-scrollbar-thumb:hover {
  background: #aa33dd;
  box-shadow: 0 0 10px #cc66ff;
}

/* ============================================================
   FOCUS STYLES — keyboard accessibility
============================================================ */
:focus-visible {
  outline: 2px solid #9933ff;
  outline-offset: 3px;
  box-shadow: 0 0 8px rgba(153, 51, 255, 0.5);
}

/* ============================================================
   CONTENT LINK STYLES
============================================================ */
#content a {
  color: #cc99ff;
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

#content a:hover {
  color: #ff66ff;
  text-shadow: 0 0 8px #ff66ff;
}

/* ============================================================
   INFO ROW HOVER
============================================================ */
.infoRow {
  transition: background 0.2s, border-color 0.2s;
}

.infoRow:hover {
  background: rgba(60, 0, 80, 0.35);
  border-color: #5500aa;
}

/* ============================================================
   TAG HOVER
============================================================ */
.tag {
  transition: box-shadow 0.2s, border-color 0.2s, color 0.2s;
}

.tag:hover {
  border-color: #cc44ff;
  box-shadow: 0 0 8px rgba(180, 0, 255, 0.4);
  color: #f0ddff;
}

/* ============================================================
   CODE & PRE — terminal monospace blocks
============================================================ */
code {
  font-family: 'OCR A Std', monospace;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.6);
  color: #33ff88;
  border: 1px solid #2a0040;
  padding: 1px 5px;
}

pre {
  font-family: 'OCR A Std', monospace;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.72);
  color: #33ff88;
  border: 1px solid #330044;
  border-left: 3px solid #33ff88;
  padding: 12px 16px;
  margin: 12px 0;
  overflow-x: auto;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

pre code {
  background: none;
  border: none;
  padding: 0;
}

/* ============================================================
   BLOCKQUOTE
============================================================ */
blockquote {
  border-left: 3px solid #7a00aa;
  margin: 16px 0;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.3);
  color: #9988bb;
  font-style: italic;
  font-size: 13px;
  line-height: 1.75;
}

blockquote::before {
  content: '\201C';
  color: #5500aa;
  font-size: 22px;
  line-height: 0;
  vertical-align: -6px;
  margin-right: 4px;
}

/* ============================================================
   TABLE — base style for identTable and similar
============================================================ */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 12px;
  letter-spacing: 0.5px;
}

table th {
  background: rgba(80, 0, 120, 0.5);
  color: #d4c8ff;
  border: 1px solid #440066;
  padding: 8px 12px;
  text-align: left;
  letter-spacing: 1px;
  font-size: 11px;
  text-transform: uppercase;
}

table td {
  background: rgba(0, 0, 0, 0.35);
  color: #b8adcc;
  border: 1px solid #2a0040;
  padding: 7px 12px;
  vertical-align: top;
}

table tr:nth-child(even) td {
  background: rgba(20, 0, 35, 0.45);
}

table tr:hover td {
  background: rgba(60, 0, 80, 0.35);
  color: #d4c8ff;
}

/* ============================================================
   .sectionHeader — reusable ◆ label + fading rule
============================================================ */
.sectionHeader {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 14px 0;
  font-size: 11px;
  letter-spacing: 2px;
  color: #7a00aa;
  text-transform: uppercase;
}

.sectionHeader::before {
  content: '\25C6';
  color: #9933ff;
  font-size: 10px;
  flex-shrink: 0;
}

.sectionHeader::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #5500aa44, transparent);
}

/* ============================================================
   .panel — generic reusable content box
============================================================ */
.panel {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid #440066;
  border-top: 2px solid #7a00aa;
  padding: 16px 20px;
  margin-bottom: 18px;
}

/* ============================================================
   .statusBadge — status indicators for projects etc.
============================================================ */
.statusBadge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 10px;
  border: 1px solid currentColor;
}

.statusBadge.active {
  color: #33ff88;
  border-color: #33ff88;
  text-shadow: 0 0 8px #33ff88;
  box-shadow: 0 0 6px rgba(51, 255, 136, 0.3);
}

.statusBadge.wip {
  color: #ffaa33;
  border-color: #ffaa33;
  text-shadow: 0 0 8px #ffaa33;
  box-shadow: 0 0 6px rgba(255, 170, 51, 0.25);
}

.statusBadge.done {
  color: #9988bb;
  border-color: #5544aa;
}

.statusBadge.offline {
  color: #ff4455;
  border-color: #ff4455;
  text-shadow: 0 0 8px #ff4455;
  box-shadow: 0 0 6px rgba(255, 68, 85, 0.25);
}

/* ============================================================
   .divider — centered glyph horizontal rule
============================================================ */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0;
  color: #5500aa;
  font-size: 11px;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #44006688);
}

.divider::after {
  background: linear-gradient(to left, transparent, #44006688);
}

.divider span {
  color: #7a00aa;
  font-size: 12px;
  letter-spacing: 3px;
  flex-shrink: 0;
}

/* ============================================================
   CRT TERMINAL EFFECT
   Extends the scanlines already on #header::after to cover
   the full viewport. Three composited layers, all fixed,
   all pointer-events:none — zero layout impact, GPU-accelerated.

   Z-index stack (well below nav.js transition at 99999):
     9001 — #crtScan     slow phosphor beam sweep (via nav.js)
     9000 — body::before  static scanlines
     8999 — body::after   vignette + top/bottom burn lines
============================================================ */

/* ── Pixel grid ──────────────────────────────────────────────
   Horizontal scanlines + vertical grid lines combined create
   the "screen door" effect of an old phosphor dot matrix.
   3px pitch (1px dark line, 2px gap) in both axes.
   Horizontal lines are darker — matches real CRT scanlines.
──────────────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0,0,0,0.13)  0px,
      rgba(0,0,0,0.13)  1px,
      transparent        1px,
      transparent        3px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(0,0,0,0.07)  0px,
      rgba(0,0,0,0.07)  1px,
      transparent        1px,
      transparent        3px
    );
}

/* Pages can opt out of the CRT scanlines + vignette by adding
   class="no-crt" on <body>. Also disables every decorative
   pulse/flicker animation the rest of the site uses, so pages
   with lots of images (photoalbum, telescope-live) read as steady
   instead of flashing. */
body.no-crt::before,
body.no-crt::after { display: none !important; }
body.no-crt #container,
body.no-crt #nav::after,
body.no-crt .telemetryValue,
body.no-crt .issDot,
body.no-crt .cursor,
body.no-crt .issSignal { animation: none !important; }

/* ── Vignette + edge burn ────────────────────────────────────
   Radial gradient darkens the outer ring like a phosphor tube.
   Linear gradient adds a faint purple burn at top and bottom
   — the kind of glow you see on a warm CRT in a dark room.
──────────────────────────────────────────────────────────── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 8999;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 50% 50%,
      transparent 52%,
      rgba(0,0,10,0.75) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(70,0,90,0.10) 0%,
      transparent        6%,
      transparent        94%,
      rgba(70,0,90,0.10) 100%
    );
}


/* ── Pixelated image rendering ───────────────────────────── */
#content img,
.apodThumb img,
.apodFeaturedImg,
.epicImg,
.scrobArt {
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* ── Phosphor text glow ──────────────────────────────────────
   Tuned to the site's purple palette — like a violet phosphor
   coating rather than the classic green/amber terminal.
──────────────────────────────────────────────────────────── */
#content p,
#content li {
  text-shadow: 0 0 6px rgba(150,110,215,0.11);
}

#content h2 {
  text-shadow:
    0 0 14px rgba(125,55,215,0.30),
    0 0  3px rgba(185,145,255,0.18);
}

/* ── Slow irregular flicker ──────────────────────────────────
   Mirrors the instability of a warm CRT tube.
   Respects prefers-reduced-motion automatically.
──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes crtFlicker {
    0%,  86%, 100% { opacity: 1;     }
    87%            { opacity: 0.974; }
    88%            { opacity: 1;     }
    89%            { opacity: 0.955; }
    90%            { opacity: 1;     }
    91%            { opacity: 0.980; }
    92%            { opacity: 1;     }
  }

  #container { animation: crtFlicker 18s ease-in-out infinite; }
}

/* ============================================================
   RESPONSIVE — 600px mobile baseline
============================================================ */
@media (max-width: 600px) {
  #container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-left: none;
    border-right: none;
  }

  #content {
    padding: 18px 16px;
  }

  #nav a {
    margin: 0 3px;
    font-size: 11px;
    letter-spacing: 0.5px;
    padding: 4px 6px;
  }

  #nav a:not(:last-child)::after {
    content: ' \2726 ';
    font-size: 6px;
  }

  #pageTitle {
    padding: 10px 16px;
  }

  #pageTitle h1 {
    font-size: 14px;
  }

  /* hide the starfield canvas on small screens */
  #starfield {
    display: none;
  }

  .telemetry {
    grid-template-columns: 1fr;
  }

  .quickLinks {
    grid-template-columns: 1fr 1fr;
  }

  .issCoordRow,
  .issStatRow,
  .issFooterRow {
    grid-template-columns: 1fr 1fr;
  }
}
/* ================================================================
   ALIEN TOGGLE — tiny terminal switch at the bottom-left of the nav.
   Injected by alien-companion.js on every page. Purple shell,
   green power LED when the little guy is active.
================================================================ */
#alienToggle {
  position: absolute;
  left: 8px;
  bottom: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  background: rgba(4,0,14,0.85);
  border: 1px solid #7a00aa;
  color: #9b86c8;
  font-family: monospace;
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
#alienToggle:hover {
  border-color: #cc00ff;
  color: #d4c8ff;
  box-shadow: 0 0 10px rgba(180,0,255,0.35);
}
#alienToggle:focus-visible {
  outline: 1px dashed #44ff99;
  outline-offset: 2px;
}
#alienToggle .atLed {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #173322;            /* powered-down LED */
  border: 1px solid #1f4d33;
  transition: background 0.2s, box-shadow 0.2s;
}
#alienToggle[aria-pressed="true"] .atLed {
  background: #44ff99;            /* terminal green */
  border-color: #44ff99;
  box-shadow: 0 0 6px #44ff99;
}
#alienToggle[aria-pressed="true"] {
  color: #b9a8e0;
}
/* narrow screens: nav wraps, so flow the switch inline instead of
   pinning it where it could overlap links */
@media (max-width: 600px) {
  #alienToggle {
    position: static;
    vertical-align: middle;
    margin-right: 8px;
  }
}

/* ================================================================
   MOBILE NAV — collapsed link list behind a NAVIGATE button.
   The button is injected by nav.js; invisible on desktop.
================================================================ */
#navToggle { display: none; }

@media (max-width: 600px) {
  /* header banner: shorter, and the sign scales down */
  #header { height: 130px; }

  /* comfortable reading size for body text */
  #content p,
  #content li {
    font-size: 13px;
    line-height: 1.8;
  }

  /* the collapsed bar: UFO switch + NAVIGATE button side by side */
  #navToggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(4,0,14,0.85);
    border: 1px solid #7a00aa;
    color: #cc99ff;
    font-family: monospace;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
  }
  #navToggle:hover {
    border-color: #cc00ff;
    color: #ff66ff;
    box-shadow: 0 0 10px rgba(180,0,255,0.35);
  }

  #alienToggle { padding: 10px 12px; font-size: 10px; }

  #nav {
    line-height: 1.4;
    padding: 10px 12px;
    text-align: left;
  }

  /* links hidden until the menu is opened */
  #nav a { display: none; }

  #nav.navOpen a {
    display: block;
    margin: 0;
    padding: 12px 10px;          /* ≥40px tap target */
    font-size: 13px;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(85,0,170,0.25);
  }

  /* no ✦ separators or floating dots in the vertical list */
  #nav.navOpen a:not(:last-child)::after { content: none; }
  #nav a.active::before { content: none; }

  #nav.navOpen a.active {
    background: rgba(110,0,170,0.18);
    border-left: 3px solid #cc99ff;
  }
}
