:root {
  --bg: #0b0c2a;
  --primary: #e63946;
  --accent: #a8dadc;
  --text-light: #f1f1f1;
  --text-muted: #cccccc;
  --font-main: "Lato", sans-serif;
  --headline-color-on-white: #0b0c2a; /* dark text for light backgrounds */
  --headline-color-on-color: #f1f1f1; /* light text for dark sections */
  --paragraph-color-on-white: #333333; /* slightly lighter than black for better readability */
  --paragraph-color-on-color: #f1f1f1; /* same as text-light for dark backgrounds */
  --paragraph-background-color: #181a2f; /* slightly lighter than --bg, creates depth contrast */
  --nav-link-color: #f1f1f1; /* white text for links */
  --nav-background-color: #121232; /* deep navy/black for nav background */
  --nav-hover-link-color: #a8dadc; /* uses accent color on hover */
  --nav-hover-background-color: #1f1f3c; /* subtle shade change on hover */
}

body {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  background-color: var(--bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--headline-color-on-color);
  margin: 1.5rem 0 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1rem;
}

h6 {
  font-size: 0.875rem;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--paragraph-color-on-color);
  font-family: var(--font-main);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--primary);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  background-color: var(--background);
  color: var(--text-light);
  line-height: 1.6;
}

.site-header {
  background-color: var(--nav-background-color);
  border-bottom: 2px solid var(--primary);
  padding: 1rem 2rem;
  font-family: var(--font-main);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  height: 60px;
  border-radius: 10px;
}

.time-widget {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}
.time-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.time-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  width: 2.8rem;
}
.time-value {
  font-size: 0.8rem;
  font-family: monospace;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-links li a {
  color: var(--nav-link-color);
  text-decoration: none;
  font-weight: 500;
}
.nav-links li a:hover {
  color: var(--nav-hover-link-color);
}

/* Dropdown nav */
.nav-dropdown {
  position: relative;
}
/* Invisible bridge so mouse can travel from "Library" to the menu without losing hover */
.nav-dropdown > a {
  position: relative;
}
.nav-dropdown > a::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -1rem;
  width: calc(100% + 2rem);
  height: 1rem;
  background: transparent;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 35, 0.97);
  border: 1px solid rgba(100, 160, 255, 0.2);
  border-radius: 8px;
  list-style: none;
  padding: 0.75rem 0 0.5rem;
  margin: 0;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  z-index: 100;
}
.dropdown-menu li a {
  display: block;
  padding: 0.55rem 1.1rem;
  color: var(--nav-link-color);
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.9rem;
}
.dropdown-menu li a:hover {
  background: rgba(100, 160, 255, 0.1);
  color: var(--nav-hover-link-color);
}
.nav-dropdown:hover .dropdown-menu {
  display: block;
}
.nav-dropdown.open .dropdown-menu {
  display: block;
}

#user-time-info {
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.8rem;
}

footer {
  background: var(--nav-hover-background-color);
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-family: var(--font-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

footer p {
  margin: 0;
}

.btn-coffee {
  background: var(--accent);
  color: var(--headline-color-on-white);
  border: none;
  border-radius: 10px;
  padding: 0.5em 1.25em;
  font-size: 1em;
  display: inline-block;
  cursor: pointer;
  text-decoration: none;
}

footer nav a {
  color: var(--text-muted);
  margin: 0 1em;
  text-decoration: none;
}

footer nav a:hover {
  color: var(--text-light);
} 
@media (max-width: 768px) {
  /* --- Navbar: logo + clock on row 1, nav links on row 2 --- */
  .site-header {
    padding: 0.6rem 1rem;
  }
  .navbar {
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
  }
  .logo img {
    height: 44px;
  }
  #user-time-info {
    margin-left: auto;
  }
  .nav-links {
    order: 3;
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin: 0.25rem 0 0;
    padding: 0;
    justify-content: flex-start;
  }

  /* --- Hero --- */
  #hero {
    padding: 5em 1.25rem;
  }
  #hero h1 {
    font-size: 2rem;
  }
  #hero p {
    font-size: 1rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  /* --- Blog --- */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* --- Library cards --- */
  .library-section {
    padding: 1.5rem 1rem;
  }
  .library-grid.news-row {
    grid-template-columns: 1fr;
  }

  /* --- Footer --- */
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
  }
  footer nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
  }
}
.btn-accent {
  background-color: var(--accent);
  color: var(--headline-color-on-color);
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn-accent:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

#hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10em 1em;
  background: url("../images/nightSky.jpg") no-repeat center center/cover;
}
#hero > * {
  position: relative;
  z-index: 1;
}
#hero h1 {
  font-size: 3rem;
  margin-bottom: 0.3em;
  color: var(--primary);
}
#hero h2 {
  font-size: 1.5rem;
  margin-bottom: 1em;
  color: var(--text-light);
}
#hero .hero-buttons {
  display: flex;
  gap: 1em;
  align-items: center;
  justify-content: center;
}
#hero .hero-buttons a {
  background: var(--accent);
  color: var(--bg);
  padding: 0.75em 1.5em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}
#hero .hero-buttons a:hover {
  background: var(--primary);
  color: var(--text-light);
}

#substack-preview {
  background-color: var(--paragraph-background-color);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-light);
}
#substack-preview h2 {
  color: var(--accent);
  margin-bottom: 2rem;
}
#substack-preview #space-posts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-height: 150px;
}
#substack-preview .substack-card {
  background-color: #1a1b3c;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: left;
  color: var(--text-light);
}
#substack-preview .substack-card h3 a {
  color: var(--accent);
  text-decoration: none;
}
#substack-preview .substack-card h3 a:hover {
  color: var(--primary);
}
#substack-preview .substack-card p {
  margin: 0.5rem 0;
}

.main-focus-slider {
  padding: 3rem 2rem;
  background-color: var(--bg);
  color: var(--text-light);
  text-align: center;
}
.main-focus-slider h2 {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 2rem;
}
.main-focus-slider .slider {
  display: flex;
  overflow: hidden;
  justify-content: center;
  gap: 2rem;
}
.main-focus-slider .slider .slide {
  display: none;
  flex-direction: column;
  align-items: center;
  background-color: var(--paragraph-background-color);
  padding: 5rem;
  border-radius: 12px;
  transition: transform 0.3s ease;
}
.main-focus-slider .slider .slide img {
  width: 100%;
  height: 400px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px;
  margin-bottom: 5rem;
}
.main-focus-slider .slider .slide h3 {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.main-focus-slider .slider .slide p {
  font-size: 1rem;
  color: var(--text-muted);
}
.main-focus-slider .slider .slide.active {
  display: flex;
}
.main-focus-slider .slide-controls {
  margin-top: 2rem;
}
.main-focus-slider .slide-controls button {
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.25rem;
  padding: 0.5rem 1rem;
  margin: 0 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.main-focus-slider .slide-controls button:hover {
  background-color: var(--accent);
  color: var(--bg);
}

.section-preview {
  padding: 3rem 2rem;
  background-color: var(--paragraph-background-color);
  border-top: 2px solid var(--primary);
  text-align: center;
}
.section-preview h2 {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 2rem;
}
.section-preview .post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.section-preview .post-card {
  background-color: #1a1b3c;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  color: var(--text-light);
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
}
.section-preview .post-card img {
  width: 100%;
  height: 180px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.section-preview .post-card h3 {
  font-size: 1.2rem;
  color: var(--accent);
}
.section-preview .post-card:hover {
  background-color: #29294d;
  transform: translateY(-5px);
}

.home-page {
  padding-top: 1rem;
}

.hero-section,
.featured-posts,
.main-focus,
.substack-preview {
  margin-bottom: 4rem;
}

body {
  background-color: var(--bg);
}

.blog-section {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.blog-section h1 {
  font-size: 2.5rem;
  text-align: center;
  color: var(--accent);
  margin-bottom: 2rem;
}
.blog-section .blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.blog-section .blog-card {
  background: var(--paragraph-background-color);
  padding: 1.5rem;
  border-radius: 12px;
  color: var(--text-light);
  transition: background 0.3s ease;
}
.blog-section .blog-card h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--accent);
}
.blog-section .blog-card p {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}
.blog-section .blog-card small {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.blog-section .blog-card:hover {
  background: #29294d;
}

/* =====================
   Comet C/2026 A1 Page
   ===================== */
.comet-hero {
  background:
    radial-gradient(ellipse at 60% 0%, rgba(80,120,255,0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(168,218,220,0.08) 0%, transparent 50%),
    linear-gradient(to bottom, #0a0e23, #060918);
  padding: 5rem 2rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(100,160,255,0.1);
}
.comet-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}
.comet-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.comet-hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: #fff;
  margin: 0 0 0.4rem;
}
.comet-subtitle {
  color: rgba(255,255,255,0.45);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}
.comet-tagline {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto;
}
.comet-stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(100,160,255,0.1);
  padding: 1.25rem 2rem;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 2rem;
  gap: 0.3rem;
}
.stat-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  font-family: monospace;
}
.stat-date {
  font-size: 0.95rem;
  font-family: var(--font-main);
  font-weight: 400;
}
.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255,255,255,0.1);
}
.comet-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.comet-card {
  background: var(--paragraph-background-color);
  border-radius: 12px;
  padding: 2rem;
  color: var(--text-light);
}
.comet-card h2 {
  font-size: 1.4rem;
  color: var(--accent);
  margin: 0 0 1.25rem;
}
.comet-card p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.comet-card p:last-child { margin-bottom: 0; }
.comet-card strong { color: var(--text-light); }
.data-unavailable {
  color: var(--text-muted);
  font-style: italic;
}
.orbit-pending {
  background: rgba(168,218,220,0.05);
  border: 1px solid rgba(168,218,220,0.15);
  border-radius: 8px;
  padding: 1.25rem;
}
.orbit-pending p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.orbit-pending strong { color: var(--text-light); }
.orbit-jpl-link {
  font-size: 0.85rem;
  color: var(--accent);
  text-decoration: none;
}
.orbit-jpl-link:hover { text-decoration: underline; }
.orbital-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.orbital-item {
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.orbital-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.orbital-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  font-family: monospace;
}
.visibility-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.vis-phase {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.vis-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.35rem;
}
.vis-past     { background: rgba(255,255,255,0.2); }
.vis-upcoming { background: #64a0ff; box-shadow: 0 0 8px rgba(100,160,255,0.5); }
.vis-peak     { background: var(--accent); box-shadow: 0 0 10px rgba(168,218,220,0.4); }
.vis-content h3 {
  font-size: 0.95rem;
  color: var(--text-light);
  margin: 0 0 0.4rem;
}
.vis-content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.mag-guide {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.mag-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mag-num {
  font-family: monospace;
  font-size: 1rem;
  font-weight: 700;
  min-width: 2.5rem;
  text-align: right;
}
.mag-num.bright { color: #ffd700; }
.mag-num.mid    { color: var(--accent); }
.mag-num.dim    { color: var(--text-muted); }
.mag-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.mag-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
}
.map-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}
.orbit-map-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.orbit-map {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .comet-stats-bar { padding: 1rem; }
  .stat-item { padding: 0.5rem 1rem; }
  .stat-divider { display: none; }
  .stat-value { font-size: 1.1rem; }
  .comet-body { padding: 2rem 1rem; }
  .comet-card { padding: 1.25rem; }
}

.library-section {
  padding: 3rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-main);
}
.library-section h1 {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.library-section p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.library-section .library-content {
  background-color: var(--paragraph-background-color);
  padding: 2rem;
  border-radius: 12px;
}

.library-grid {
  display: grid;
}

.library-grid.custom-layout {
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 2rem;
}

.large-card {
  background-color: var(--paragraph-background-color);
  padding: 2rem;
  border-radius: 12px;
  color: var(--text-light);
  text-align: left;
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.2);
}
.large-card h2 {
  color: var(--accent);
  margin-bottom: 1rem;
}
.large-card h3 {
  color: var(--primary);
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
}
.large-card p {
  color: var(--text-muted);
  line-height: 1.5;
}
.large-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.left-card-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  min-width: 0;
}

.side-card-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.small-card {
  background-color: var(--paragraph-background-color);
  padding: 1.5rem;
  border-radius: 12px;
  color: var(--text-light);
  text-align: left;
  box-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.2);
  flex: 1;
}
.small-card h2 {
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.small-card p {
  color: var(--text-muted);
  line-height: 1.5;
  overflow-wrap: break-word;
}
.small-card img {
  width: 100%;
  height: 200px;
  -o-object-fit: cover;
     object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.rover-slideshow {
  position: relative;
  overflow: hidden;
}
.rover-slideshow .rover-slide-container {
  position: relative;
}
.rover-slideshow .rover-slide {
  opacity: 0;
  transition: opacity 1s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.rover-slideshow .rover-slide img {
  width: 100%;
  border-radius: 10px;
  display: block;
}
.rover-slideshow .rover-slide small {
  display: block;
  margin-top: 0.5rem;
  color: var(--text-muted);
}
.rover-slideshow .rover-slide.active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}
.rover-slideshow .rover-controls {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.rover-slideshow .rover-controls button {
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.5rem 1rem;
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer;
}
.rover-slideshow .rover-controls button:hover {
  background: var(--accent);
  color: var(--bg);
}

/* NEO list */
.neo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.neo-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.75rem;
  border-left: 3px solid var(--accent);
}
.neo-item.hazardous {
  border-left-color: #ff4444;
}
.neo-item strong {
  display: block;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}
.neo-item small {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.hazard-badge {
  font-size: 0.75rem;
  color: #ff4444;
  display: block;
  margin-bottom: 0.25rem;
}

/* News section */
.news-heading {
  color: var(--accent);
  font-size: 1.8rem;
  margin: 3rem 0 1.5rem;
  text-align: left;
}
.library-grid.news-row {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 0;
}
.news-link {
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.news-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.news-link img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.75rem;
}
.news-link h3 {
  color: var(--text-light);
  font-size: 0.95rem;
  margin: 0.25rem 0;
  flex: 1;
}
.news-link p {
  font-size: 0.85rem;
}
.news-link small {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}
.news-source {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 800px) {
  .library-grid.custom-layout {
    grid-template-columns: 1fr;
  }
  .side-card-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .small-card {
    flex: 1 1 45%;
    margin: 0.5rem;
  }
  .library-section {
    padding: 2rem 1rem;
  }
  .large-card,
  .small-card {
    padding: 1.5rem;
  }
}
/* ── About Hero ── */
.about-hero {
  background: linear-gradient(160deg, #0d0f2b 0%, #1a1040 60%, #0d0f2b 100%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 4rem 2rem 3rem;
  text-align: center;
}
.about-hero-content {
  max-width: 700px;
  margin: 0 auto;
}
.about-avatar {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(100, 200, 255, 0.3));
}
.about-hero h1 {
  font-size: 2.6rem;
  color: var(--accent);
  margin: 0 0 0.4rem;
}
.about-tagline {
  color: rgba(255,255,255,0.55);
  font-size: 1rem;
  letter-spacing: 0.04em;
  margin: 0 0 1.5rem;
}
.about-badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.about-badge {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* ── About Body ── */
.about-body {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}
.about-intro {
  text-align: center;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto 3rem;
}

/* ── Section Cards ── */
.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.about-cards .about-card:first-child {
  grid-column: 1 / -1;
}
.about-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.75rem 2rem;
  transition: border-color 0.2s;
}
.about-card:hover {
  border-color: rgba(100, 200, 255, 0.25);
}
.about-card-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}
.about-card h2 {
  font-size: 1.2rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.about-card p {
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}
.about-card p:last-child {
  margin-bottom: 0;
}

/* ── Connect ── */
.about-connect {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2.5rem;
}
.about-connect h2 {
  font-size: 1.3rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.connect-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.connect-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.connect-icon {
  font-size: 1.6rem;
}
.connect-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
}
.connect-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}

/* ── About responsive ── */
@media (max-width: 768px) {
  .about-hero {
    padding: 2.5rem 1.25rem 2rem;
  }
  .about-hero h1 {
    font-size: 2rem;
  }
  .about-cards {
    grid-template-columns: 1fr;
  }
  .about-cards .about-card:first-child {
    grid-column: 1;
  }
  .connect-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Next Launch (Home Page) ── */
.next-launch-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
.next-launch-section > h2 {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.next-launch-card {
  display: flex;
  gap: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
}
.next-launch-image {
  flex: 0 0 300px;
}
.next-launch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.next-launch-info {
  padding: 1.75rem 1.75rem 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.launch-status-badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(100, 200, 100, 0.15);
  border: 1px solid rgba(100, 200, 100, 0.35);
  color: #7ddc7d;
  width: fit-content;
}
.launch-name {
  font-size: 1.3rem;
  color: var(--text-light);
  margin: 0;
}
.launch-meta {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
}
.launch-mission-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin: 0;
}
.launch-time {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}
.launch-countdown {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}
.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  min-width: 56px;
}
.cd-num {
  font-size: 1.6rem;
  font-weight: 700;
  font-family: monospace;
  color: var(--primary);
  line-height: 1;
}
.cd-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-top: 0.2rem;
}
.launch-source {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  margin-top: auto;
}
.launch-source:hover {
  color: var(--accent);
}
.launch-unavailable {
  color: rgba(255,255,255,0.4);
  font-style: italic;
}

/* ── Upcoming Launches (Library Page) ── */
.launches-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}
.launch-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: border-color 0.2s;
}
.launch-row:hover {
  border-color: rgba(100,200,255,0.2);
}
.launch-row-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.launch-row-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.launch-row-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.launch-row-rocket {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.launch-row-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0;
}
.launch-row-pad {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}
.launch-row-time {
  font-size: 0.82rem;
  color: var(--accent);
  margin: 0;
}
.launch-row-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
  line-height: 1.5;
}
.event-type-badge {
  background: rgba(120, 100, 220, 0.15);
  border-color: rgba(120, 100, 220, 0.35);
  color: #b8a8ff;
}
.event-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.25rem;
}
.event-links a {
  font-size: 0.8rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}
.event-links a:hover {
  text-decoration: underline;
}

/* ── Launch responsive ── */
@media (max-width: 768px) {
  .next-launch-card {
    flex-direction: column;
  }
  .next-launch-image {
    flex: none;
    height: 200px;
  }
  .next-launch-info {
    padding: 1.25rem;
  }
  .launch-countdown {
    gap: 0.5rem;
  }
  .countdown-block {
    min-width: 46px;
    padding: 0.4rem 0.6rem;
  }
  .cd-num {
    font-size: 1.3rem;
  }
  .launch-row-img {
    width: 80px;
    height: 80px;
  }
  /* Launch & event list rows */
  .launch-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .launch-row-img {
    width: 100%;
    height: 160px;
    border-radius: 8px;
  }
  .launch-row-info {
    width: 100%;
  }
  .launch-row-info h3 {
    font-size: 1rem;
  }
  .launch-row-info p {
    text-align: left;
  }
  /* Sections padding */
  .launches-section,
  .events-section {
    padding: 2rem 1rem;
  }
  .launches-section h2,
  .events-section h2 {
    font-size: 1.4rem;
  }
  /* News section */
  .news-heading {
    font-size: 1.4rem;
    padding: 0 1rem;
  }
  /* Comet stats bar */
  .comet-stats-bar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
  }
  .stat-divider { display: none; }
  .stat-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding-bottom: 0.6rem;
  }
  .stat-item:last-child { border-bottom: none; }
  .stat-value { font-size: 1rem; }
  /* Comet body */
  .comet-body { padding: 1.5rem 1rem; }
  .comet-card { padding: 1.25rem; }
  .orbital-grid { grid-template-columns: 1fr 1fr; }
  /* Featured topics home */
  .featured-topics-grid {
    grid-template-columns: 1fr;
  }
}
/*# sourceMappingURL=main.css.map */