/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --color-bg:         #0a0a0a;
  --color-surface:    #141414;
  --color-card:       #1e1e1e;
  --color-border:     #2e2e2e;
  --color-text:       #e0e0e0;
  --color-text-muted: #888888;
  --color-heading:    #ffffff;
  --color-hover:      #2a2a2a;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Base ──────────────────────────────────────────────── */
html, body {
  height: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;  /* ← stacks header/nav/main/footer */
  overflow: hidden;        /* ← no page scroll */
}

/* ─── Header ────────────────────────────────────────────── */
header {
  background-color: var(--color-surface);
  background-image: url('/img/header-bg.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--color-border);
  padding: 20px 50px;
  text-align: center;
  flex-shrink: 0;
  position: relative;
}

/* ─── Dark overlay so text stays readable ───────────────── */
header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);  /* ← adjust opacity to taste */
  z-index: 0;
}

/* ─── Keep header content above the overlay ────────────── */
header > * {
  position: relative;
  z-index: 1;
}

header h1 {
  color: var(--color-heading);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

header p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 2px;
}

#utcTimer {
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 4px;
  font-family: 'Courier New', monospace;
}

/* ─── Nav ───────────────────────────────────────────────── */
nav {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 4px;
  padding: 0 40px;
  justify-content: center;
  flex-shrink: 0;          /* ← never compress nav */
}

nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

nav a:hover {
  color: var(--color-heading);
  border-bottom-color: var(--color-text-muted);
}

nav a.active {
  color: var(--color-heading);
  border-bottom-color: var(--color-heading);
}

/* ─── Layout ────────────────────────────────────────────── */
.container {
  flex: 1;                 /* ← fills all remaining vertical space */
  min-height: 0;           /* ← required for flex children to shrink */
  display: flex;
  flex-direction: row;
  gap: 24px;
  padding: 24px 40px;
  overflow: hidden;        /* ← container itself doesn't scroll */
}

.panel-left {
  flex: 2;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.panel-right {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
}

/* ─── Card ──────────────────────────────────────────────── */
.card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;                 /* ← card fills panel height */
  min-height: 0;           /* ← required for inner scroll */
  overflow: hidden;
}

.card h2 {
  color: var(--color-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;          /* ← heading never scrolls away */
}

.card p {
  color: var(--color-text);
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card ul li {
  color: var(--color-text);
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}

.card ul li:last-child {
  border-bottom: none;
}

/* ─── Table wrapper — scrolls internally ─────────────────── */
.table-wrapper {
  overflow-y: auto;        /* ← only the table scrolls, not the page */
  flex: 1;
  min-height: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead tr {
  background-color: var(--color-surface);
  position: sticky;        /* ← header stays visible while scrolling */
  top: 0;
  z-index: 1;
}

thead th {
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
}

tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.15s;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background-color: var(--color-hover);
}

tbody td {
  color: var(--color-text);
  padding: 10px 12px;
  vertical-align: middle;
}

/* ─── Card image ────────────────────────────────────────── */
.card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 14px;
  display: block;
  flex-shrink: 0;
  background-color: var(--color-border);
}

/* ─── Links ─────────────────────────────────────────────── */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#missionTable a {
  color: inherit;
  text-decoration: none;
}

#missionTable a:hover {
  text-decoration: underline;
}

/* ─── Footer ────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--color-border);
  padding: 12px 40px;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  flex-shrink: 0;          /* ← never compress footer */
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  body {
    overflow: auto;        /* ← restore scroll on mobile */
  }

  header,
  nav,
  .container,
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .container {
    flex-direction: column;
    overflow: visible;
  }

  .panel-right {
    min-width: unset;
  }

  nav {
    flex-wrap: wrap;
  }

  .card {
    padding: 16px;
  }

  thead th,
  tbody td {
    padding: 8px;
    font-size: 0.82rem;
  }
}

/* ─── Custom scrollbar ──────────────────────────────────── */
.table-wrapper::-webkit-scrollbar {
  width: 6px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: var(--color-surface);
  border-radius: 3px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 3px;
  transition: background 0.2s;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

/* ─── Firefox ───────────────────────────────────────────── */
.table-wrapper {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) var(--color-surface);
}

/* CSS Drop-down menu*/
nav {
  display: flex;
  align-items: center;  /* keeps all items vertically aligned */
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  /* inherits your existing nav <a> styling automatically */
  cursor: pointer;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1a1a2e;   /* match your site theme */
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 1000;
  border-radius: 4px;
  overflow: hidden;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: #2a2a4e;   /* match your site theme */
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ─── Satellite card ────────────────────────────────────── */
.satellite-card {
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 20px 24px;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.sat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
}

.sat-header h2 {
  color: var(--color-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sat-agency {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 3px 10px;
}

.sat-body {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.sat-image {
  flex-shrink: 0;
  width: 170px;
  height: 130px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  object-fit: contain;
  display: block;
}

.sat-specs {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sat-type {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.88rem;
}

.spec-row:last-child {
  border-bottom: none;
}

.spec-label {
  color: var(--color-text-muted);
}

.spec-value {
  color: var(--color-text);
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
}

.sat-payload {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.payload-label {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.payload-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.payload-tag {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  padding: 3px 8px;
  font-family: 'Courier New', monospace;
  font-size: 0.78rem;
  color: var(--color-text);
  transition: background-color 0.15s;
}

.payload-tag:hover {
  background-color: var(--color-hover);
}

    /* Specific styling to center the message in your existing flex layout */
    .construction-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      height: 100%;
      padding: 40px;
    }
    .construction-icon {
      font-size: 4rem;
      margin-bottom: 20px;
      color: var(--color-text-muted);
    }
    .glitch-text {
      font-family: 'Courier New', monospace;
      color: var(--color-text-muted);
      letter-spacing: 2px;
      text-transform: uppercase;
    }
	
footer {
  padding: 20px;
  border-top: 1px solid var(--color-border);
  background-color: var(--color-bg);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers items horizontally in the flex column */
  gap: 8px;            /* Adds space between copyright and privacy link */
}

.privacy-link-container a {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.privacy-link-container a:hover {
  color: var(--color-text);
  cursor: pointer;
}

/* Add this to styles.css */
.acknowledgment-scroll {
  max-height: 250px;       /* Limits the height of the card */
  overflow-y: auto;        /* Adds vertical scroll only when needed */
  padding-right: 10px;     /* Prevents text from touching the scrollbar */
}

/* Custom Scrollbar Styling to match your dark theme */
.acknowledgment-scroll::-webkit-scrollbar {
  width: 6px;
}

.acknowledgment-scroll::-webkit-scrollbar-track {
  background: var(--color-bg);
}

.acknowledgment-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 10px;
}

.acknowledgment-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

	.container--split {
    display: flex;
    width: 100%;
    height: 100vh;
	}

	.container--split .panel-left,
	.container--split .panel-right {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    border-left: 1px solid #333;
	}

	.container--split .panel-left {
    border-left: none;
	}