/* Saving Planets — main stylesheet (homepage + shared) */

/* Reset-ish defaults */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Montserrat", "Segoe UI", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 3px solid #009cde;
  outline-offset: 2px;
}
.nav-toggle:focus-visible {
  outline-color: #fff;
}
nav.scrolled .nav-toggle:focus-visible {
  outline-color: #003755;
}

/* Navigation bar (homepage) */
nav { position: absolute; top: 0; left: 0; right: 0; z-index: 1000; background: transparent; transition: background 0.25s ease, box-shadow 0.25s ease; }
nav.scrolled { position: fixed; background: #fff; box-shadow: 0 1px 0 rgba(0,55,85,0.08); }
.nav-container { max-width: 1280px; margin: 0 auto; height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; }
.brand-word { color: #fff; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; }
nav.scrolled .brand-word { color: #003755; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #fff; font-weight: 600; font-size: 1.15rem; text-decoration: none; }
nav.scrolled .nav-links a { color: #003755; }
.nav-links a:hover { color: #009cde; }
.btn-nav { background: #009cde; color: #fff; border-radius: 4px; padding: 12px 22px; font-weight: 700; text-decoration: none; }
.btn-nav:hover { background: #007bb8; }



/* Hero section */
.hero { position: relative; height: 100vh; min-height: 640px; display: flex; justify-content: center; align-items: flex-start; background: linear-gradient(180deg, rgba(0,20,40,0.28) 0%, rgba(0,20,40,0.12) 42%, rgba(0,20,40,0.45) 100%), url('assets/Saturn.jpg') center 35%/cover no-repeat; }
.hero-content { width: min(46rem, 62vw); max-width: 46rem; margin: 0 auto; text-align: center; padding: calc(22vh + 3.4rem) 1.25rem 2rem; }
.hero-kicker { color: #fff; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; font-size: 1.7rem; line-height: 1.15; margin-bottom: 2.8rem; text-shadow: 0 2px 16px rgba(0,0,0,0.55); }
.hero-welcome { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.05; margin-bottom: 1rem; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,0.55); }
.welcome-brand { color: #009cde; }
.welcome-minus { color: #fff; }
.welcome-doom { color: #ff6b6b; }
.hero-example { max-width: none; font-size: 1.15rem; color: rgba(255,255,255,0.92); text-shadow: 0 1px 10px rgba(0,0,0,0.45); }
.hero-email { margin-top: 1.4rem; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.hero-email a { color: #fff; text-decoration: underline; }
.hero-email a:hover { color: #009cde; }

/* Card band (homepage solutions grid) */
.card-band { max-width: 1200px; margin: 0 auto; padding: 2.6rem 1.5rem 0; }
.card-band h2 { text-align: center; color: #003755; margin-bottom: 1.2rem; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.card-band .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 0; margin: 0; }
.card-band .card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,55,85,0.12); height: 100%; }
.card-band .image-container { overflow: hidden; }
.card-band .image-container img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.35s ease; }
.card-band .card:hover .image-container img { transform: scale(1.05); }
.card-band h3 { color: #009cde; text-align: center; font-size: 1.85rem; font-weight: 800; text-decoration: none; padding: 1rem 0.6rem 0.35rem; margin: 0; }
.solution-list { list-style: none; margin: 0; padding: 0.2rem 1rem 1.2rem; text-align: center; }
.solution-list li + li { margin-top: 0.4rem; }
.solution-list a { color: #009cde; font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.solution-list a:hover { text-decoration: underline; }

/* Photo overlay (reusable across all solution cards) */
.photo-link { position: relative; display: block; }
.photo-tip {
    position: absolute; left: 0; right: 0; bottom: 0; width: 100%;
    padding: 0.85rem 1rem 0.95rem;
    background: linear-gradient(180deg, rgba(0,20,40,0.92) 0%, rgba(180,120,40,0.55) 100%);
    color: #fff; font-size: 0.82rem; font-weight: 600; line-height: 1.45;
    text-align: center; text-shadow: 0 1px 6px rgba(0,0,0,0.55);
    opacity: 0; transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.photo-link:hover .photo-tip,
.photo-link:focus-within .photo-tip { opacity: 1; transform: translateY(0); }
.photo-tip::after {
    content: ""; position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
    border-left: 7px solid transparent; border-right: 7px solid transparent;
    border-bottom: 7px solid rgba(0,20,40,0.92);
}
.photo-link:focus { outline: 2px solid #009cde; outline-offset: 2px; }

/* Impact bar (homepage stats) */
.impact-bar { display: flex; flex-direction: column; align-items: center; margin-top: 2.6rem; padding: 2rem 1.5rem; background: #003755; color: #fff; }
.stats-title { width: 100%; text-align: center; color: #fff; font-size: 1.45rem; font-weight: 700; margin: 0 0 1.1rem; line-height: 1.2; }
.stats-title .brand-blue { color: #009cde; text-shadow: 0 1px 0 rgba(0,0,0,0.25); }
.stat-row { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; width: 100%; }
.stat { text-align: center; }
.stat-number { display: block; font-size: 2.4rem; font-weight: 800; color: #009cde; letter-spacing: -0.02em; }
.stat-label { display: block; font-size: 0.95rem; opacity: 0.9; margin-top: 0.3rem; max-width: 16rem; margin-left: auto; margin-right: auto; }
.stat-source { width: 100%; text-align: center; font-size: 0.8rem; opacity: 0.75; margin: 1.2rem 0 0; }

/* Actions section (homepage) */
#actions { background: #003755; margin-top: 2.6rem; padding: 2rem 1.5rem; }
#actions .mission-block { padding-top: 0; max-width: 920px; margin: 0 auto; text-align: center; }
#actions .mission-block h2 { color: #009cde; font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; line-height: 1.15; }
#actions .join-lead { color: #fff; font-size: 1.35rem; margin-top: 0.8rem; }
#actions .join-lead a { color: #fff; text-decoration: underline; }
#actions .join-lead a:hover { color: #009cde; }

/* Footer */
footer { background: #003755; padding: 1.4rem 1.5rem; text-align: center; color: rgba(255,255,255,0.85); font-size: 0.85rem; }
footer a { color: #fff; text-decoration: underline; }
footer a:hover { color: #009cde; }

/* Subpage shared styles */
body.toc-sub .page-hero { height: 34vh; min-height: 220px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.55) 100%), url('assets/OceanBeach.JPG') center/cover no-repeat; text-align: center; color: #fff; }
body.toc-sub .page-hero.forest-hero { background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.55) 100%), url('assets/Threetrees3.jpg') center/cover no-repeat; }
body.toc-sub .page-hero.space-hero { background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.55) 100%), url('assets/Saturn.jpg') center/cover no-repeat; }
body.toc-sub .page-hero.clearspace-hero { background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.55) 100%), url('assets/RocketLaunch.jpg') center/cover no-repeat; }
body.toc-sub .page-hero.lakes-hero { background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.55) 100%), url('https://images.pexels.com/photos/417074/pexels-photo-417074.jpeg?auto=compress&cs=tinysrgb&w=1400') center/cover no-repeat; }
body.toc-sub .page-hero.rivers-hero { background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.55) 100%), url('assets/StreamLog.JPG') center/cover no-repeat; }
body.toc-sub .page-hero.pr-hero { background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.55) 100%), url('assets/Nebula2.jpg') center/cover no-repeat; }
body.toc-sub .page-hero-content { padding: 0 1.25rem; }
body.toc-sub .page-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 0.5rem; text-shadow: 0 2px 12px rgba(0,0,0,0.55); }
body.toc-sub .page-hero p { font-size: 1.1rem; margin: 0; color: rgba(255,255,255,0.92); text-shadow: 0 1px 8px rgba(0,0,0,0.45); }
body.toc-sub h2 { color: #003755; margin: 1.4rem 0 1rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }

body.toc-sub h3 { color: #009cde; margin: 0 0 0.4rem; font-size: 1.25rem; }
body.toc-sub .five-ws { max-width: 1200px; margin: 0 auto; padding: 0.4rem 1.5rem 1.2rem; }
body.toc-sub .ws-grid, body.toc-sub .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
body.toc-sub .w-card .image-container { overflow: hidden; border-radius: 8px; margin-bottom: 0.7rem; }
body.toc-sub .w-card .image-container img { width: 100%; height: 140px; object-fit: cover; display: block; }

body.toc-sub .w-card p { margin: 0; }




body.toc-sub .btn { background: #009cde; color: #fff; border-radius: 4px; padding: 12px 22px; font-weight: 700; text-decoration: none; }
body.toc-sub .btn:hover { background: #007bb8; }
body.toc-sub footer { background: #003755; padding: 1.4rem 1.5rem; text-align: center; color: rgba(255,255,255,0.85); font-size: 0.85rem; }

/* Dark mode */
html.dark { background: #071018; color: #e8eef5; }
html.dark body.toc-home,
html.dark body.toc-sub { background: #071018; color: #e8eef5; }
html.dark nav.scrolled { background: rgba(7, 16, 24, 0.88); border-bottom-color: rgba(255,255,255,0.10); box-shadow: 0 4px 24px rgba(0,0,0,0.35); }
html.dark nav.scrolled .brand-word,
html.dark nav.scrolled .nav-links a{ color: #fff; border-color: #fff; }
html.dark .nav-toggle { border-color: rgba(255,255,255,0.55); }
html.dark .nav-toggle span { background: #fff; }
html.dark .dropdown-menu { background: rgba(15, 27, 38, 0.96); box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
html.dark .dropdown-menu a { color: #e8eef5 !important; }
html.dark .card-band .card,
html.dark body.toc-sub .ps-card,
html.dark body.toc-sub .w-card { background: #0f1b26; box-shadow: 0 10px 28px rgba(0,0,0,0.45); }
html.dark .card-band h2,
html.dark .card-band h3,
html.dark body.toc-sub h2,
html.dark body.toc-sub h3,
html.dark .mission-block h2,
html.dark .ps-card h3,
html.dark .breadcrumb [aria-current] { color: #e8eef5; }
html.dark .brand-blue,
html.dark .welcome-brand,
html.dark .solution-list a,
html.dark .card-band h3 a,
html.dark body.toc-sub .solution-list a { color: #4da3ff; }
html.dark .stat-number,
html.dark .mw-count b { color: #4da3ff; }
html.dark .stat-label,
html.dark .stat-source,
html.dark .ps-card small,
html.dark .ps-note,
html.dark .mw-date,
html.dark .mw-note,
html.dark .mw-status,
html.dark .mw-count small { color: #9fb3c4; opacity: 1; }
html.dark .mw-news li { border-bottom-color: #1c2d3d; }
html.dark .mw-milestones li::before { background: #3a5166; }
html.dark .mw-milestones li.done { color: #9fb3c4; }
html.dark .breadcrumb a,
html.dark .next-solutions a { color: #8fd3ff; border-color: #8fd3ff; }
html.dark .next-solutions a:hover { background: #8fd3ff; color: #071018; }
html.dark .btn,
html.dark .btn-nav,
html.dark body.toc-sub .btn { background: #007bb8; }
html.dark .btn:hover,
html.dark .btn-nav:hover,
html.dark body.toc-sub .btn:hover { background: #009cde; }
html.dark nav.open .nav-links { background: #0f1b26; }
html.dark nav.open .nav-links a{ color: #e8eef5; border-color: #e8eef5; }
html.dark .photo-tip { background: linear-gradient(180deg, rgba(7,16,24,0.94) 0%, rgba(120,80,30,0.55) 100%); }
html.dark .photo-tip::after { border-bottom-color: rgba(7,16,24,0.94); }
html.dark .skip-link { background: #4da3ff; color: #071018; }
html.dark .skip-link:focus { outline-color: #4da3ff; }
html.dark :focus-visible { outline-color: #4da3ff; }
html.dark .hero-kicker,
html.dark .hero-welcome,
html.dark .hero-example,
html.dark .hero-email,
html.dark .join-lead,
html.dark .join-lead a,
html.dark .stats-title,
html.dark body.toc-sub .page-hero h1,
html.dark body.toc-sub .page-hero p,
html.dark footer,
html.dark body.toc-sub footer,
html.dark #actions .join-lead,
html.dark #actions .join-lead a { color: #e8eef5; }
html.dark .hero-email a:hover,
html.dark .join-lead a:hover,
html.dark footer a:hover,
html.dark body.toc-sub footer a:hover,
html.dark #actions .join-lead a:hover { color: #4da3ff; }
html.dark .welcome-minus { color: #e8eef5; }

/* Responsive */
@media (max-width: 900px) {
  .card-band .grid { grid-template-columns: 1fr 1fr; }
  .hero-content { width: min(46rem, 88vw); padding-top: calc(18vh + 3.4rem); }
  .stats-title { font-size: 1.2rem; }
  .hero-kicker { font-size: 1.25rem; margin-bottom: 2rem; }
  .card-band h3 { font-size: 1.55rem; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 88px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 1.5rem 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
  nav.open .nav-links { display: flex; }
  nav.open .nav-links a { color: #003755; }
  .btn-nav { display: none; }
  .nav-dropdown .dropdown-menu { position: static; box-shadow: none; padding-left: 1rem; }
}
@media (max-width: 600px) {
  .card-band .grid { grid-template-columns: 1fr; }
  .stat-row { gap: 1.5rem; }
}

/* Breadcrumbs + next-solution block */
.breadcrumb { max-width: 1100px; margin: 0 auto; padding: 0.8rem 1.5rem 0; font-size: 0.8rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.35rem; opacity: 0.6; }
.breadcrumb a { color: #009cde; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current] { opacity: 0.75; }
.next-solutions { max-width: 1100px; margin: 1.5rem auto 2.5rem; padding: 0 1.5rem; text-align: center; }
.next-solutions h2 { font-size: 1.15rem; margin-bottom: 0.8rem; }
.next-solutions ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.next-solutions a { display: inline-block; padding: 0.5rem 1rem; border: 1px solid #009cde; border-radius: 999px; color: #009cde; font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.next-solutions a:hover { background: #009cde; color: #fff; }
html.dark .breadcrumb a, html.dark .next-solutions a { color: #8fd3ff; border-color: #8fd3ff; }
html.dark .next-solutions a:hover { background: #8fd3ff; color: #071018; }
nav.breadcrumb, body.toc-sub nav.breadcrumb, body.toc-home nav.breadcrumb, nav.jump-nav, body.toc-sub nav.jump-nav { position: static; background: none; box-shadow: none; z-index: auto; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ===== Merged from toc-home.css (loads after base rules; wins on conflicts) ===== */
:root { --toc-navy: #003755; --toc-blue: #009cde; --brand-blue: #009cde; --solution-green: #00b894; --section-gap: 2.6rem; --nav-height: 88px; }

body.toc-home, body.toc-sub { font-family: "Montserrat", "Segoe UI", sans-serif; background: #fff; color: var(--toc-navy); }

/* Skip link for keyboard users */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--toc-navy); color: #fff; padding: 0.6rem 1rem; z-index: 2000; font-weight: 700; text-decoration: none; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* Mobile hamburger menu */
.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,0.7); border-radius: 4px; padding: 8px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; }
nav.scrolled .nav-toggle span { background: var(--toc-navy); }
nav.scrolled .nav-toggle { border-color: var(--toc-navy); }

/* Navigation bar — frosted glass (2026 glassmorphism pattern) */
body.toc-home nav, body.toc-sub nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(0, 20, 40, 0.35);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
body.toc-home nav.scrolled, body.toc-sub nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: rgba(0,55,85,0.10);
  box-shadow: 0 4px 24px rgba(0,55,85,0.10);
}
body.toc-home .nav-container, body.toc-sub .nav-container { height: var(--nav-height); max-width: 1280px; }
body.toc-home .brand-word, body.toc-sub .brand-word { color: #fff; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; }
body.toc-home nav.scrolled .brand-word, body.toc-home nav.scrolled .nav-links a, body.toc-sub nav.scrolled .brand-word, body.toc-sub nav.scrolled .nav-links a { color: var(--toc-navy); }
body.toc-home .nav-links a, body.toc-sub .nav-links a { color: #fff; font-weight: 600; font-size: 1.15rem; text-decoration: none; transition: color 0.2s ease; }
body.toc-home .nav-links a:hover, body.toc-sub .nav-links a:hover { color: var(--toc-blue); }
body.toc-home .btn-nav, body.toc-sub .btn-nav { background: var(--toc-blue); color: #fff; border-radius: 4px; padding: 12px 22px; font-weight: 700; text-decoration: none; }
.nav-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: rgba(255,255,255,0.95); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-radius: 8px; list-style: none; min-width: 140px; padding: 0.4rem 0; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a { color: var(--toc-navy) !important; display: block; padding: 0.55rem 1rem; }

.brand-blue, .welcome-brand { color: var(--brand-blue); }
body.toc-home .hero.space-hero { height: 100vh; min-height: 640px; justify-content: center; align-items: flex-start; background: linear-gradient(180deg, rgba(0,20,40,0.28) 0%, rgba(0,20,40,0.12) 42%, rgba(0,20,40,0.45) 100%), url('assets/Saturn.jpg') center 35%/cover no-repeat; }
body.toc-home .hero-content { width: min(46rem, 62vw); max-width: 46rem; margin: 0 auto; text-align: center; padding: calc(22vh + 3.4rem) 1.25rem 2rem; }
body.toc-home .hero-kicker, body.toc-home .hero-welcome, body.toc-home .hero-example, body.toc-home .hero-email { text-align: center; margin-left: auto; margin-right: auto; }
body.toc-home .hero-kicker { color: #fff; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; font-size: 1.7rem; line-height: 1.15; margin-bottom: 2.8rem; text-shadow: 0 2px 16px rgba(0,0,0,0.55); }
body.toc-home .hero-welcome { font-size: clamp(2.4rem, 5vw, 4.4rem); line-height: 1.05; margin-bottom: 1rem; }
body.toc-home .hero-example { max-width: none; font-size: 1.15rem; }
body.toc-home h2, body.toc-sub h2 { margin: 1.4rem 0 1rem; }
body.toc-home .mission-block { max-width: 920px; margin: 0 auto; padding: var(--section-gap) 1.5rem 0; text-align: center; }
body.toc-home .mission-block h2 { color: var(--toc-navy); font-size: clamp(2rem, 4vw, 3.2rem); margin: 0; line-height: 1.15; }
body.toc-home .card-band { max-width: 1200px; margin: 0 auto; padding: var(--section-gap) 1.5rem 0; }
body.toc-home .card-band h2 { text-align: center; color: var(--toc-navy); margin-bottom: 1.2rem; }
body.toc-home .card-band .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 0; margin: 0; }
body.toc-home .card-band .card { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 28px rgba(0,55,85,0.12); height: 100%; }
body.toc-home .card-band .image-container { overflow: hidden; }
body.toc-home .card-band .image-container img { width: 100%; height: 220px; object-fit: cover; transition: transform 0.35s ease; }
body.toc-home .card-band .card:hover .image-container img { transform: scale(1.05); }
/* Ken Burns trial — Space card only (Saturn.jpg) */
body.toc-home .card-band #space-card .image-container img { animation: kenburns 5s ease-in-out infinite alternate; }
body.toc-home .card-band #space-card .card:hover .image-container img { animation-play-state: paused; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.18) translate(-2.5%, -2%); } }
@media (prefers-reduced-motion: reduce) { body.toc-home .card-band #space-card .image-container img { animation: none; } }
body.toc-home .card-band h3 { color: var(--brand-blue); text-align: center; font-size: 1.85rem; font-weight: 800; padding: 1rem 0.6rem 0.35rem; margin: 0; }
body.toc-home .card-band h3 a { color: inherit; text-decoration: none; }
body.toc-home .card-band h3 a:hover { text-decoration: underline; }
body.toc-home .solution-list { list-style: none; margin: 0; padding: 0.2rem 1rem 1.2rem; text-align: center; }
body.toc-home .solution-list li + li { margin-top: 0.4rem; }
body.toc-home .solution-list a { color: var(--brand-blue); font-size: 1.05rem; font-weight: 700; text-decoration: none; }
body.toc-home .solution-list a:hover { text-decoration: underline; }
body.toc-home .impact-bar { display: flex; flex-direction: column; align-items: center; margin-top: var(--section-gap); padding: 2rem 1.5rem; background: #003755; color: #fff; }
body.toc-home .stats-title { width: 100%; text-align: center; color: #fff; font-size: 1.45rem; font-weight: 700; margin: 0 0 1.1rem; line-height: 1.2; }
body.toc-home .stats-title .brand-blue { color: var(--toc-blue); text-shadow: 0 1px 0 rgba(0,0,0,0.25); }
body.toc-home .stat-row { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; width: 100%; }
body.toc-home .stat { text-align: center; }
body.toc-home .stat-number { display: block; font-size: 2.4rem; font-weight: 800; color: var(--toc-blue); letter-spacing: -0.02em; }
body.toc-home .stat-label { display: block; font-size: 0.95rem; opacity: 0.9; margin-top: 0.3rem; max-width: 16rem; margin-left: auto; margin-right: auto; }
body.toc-home .stat-source { width: 100%; text-align: center; font-size: 0.8rem; opacity: 0.75; margin: 1.2rem 0 0; }
body.toc-home #actions .join-lead { color: #fff; font-size: 1.35rem; margin-top: 0.8rem; }
body.toc-home #actions .join-lead a { color: #fff; text-decoration: underline; }
body.toc-home #actions .join-lead a:hover { color: var(--toc-blue); }
body.toc-home #actions { background: #003755; margin-top: var(--section-gap); padding: 2rem 1.5rem; }
body.toc-home #actions .mission-block { padding-top: 0; }
body.toc-home #actions .mission-block h2 { color: var(--brand-blue); }
body.toc-sub .page-hero, body.toc-sub .page-hero.space-hero { height: 34vh; min-height: 220px; }
body.toc-sub h2, body.toc-sub h3, body.toc-sub .page-hero h1 { font-family: "Montserrat", "Segoe UI", sans-serif; }
body.toc-sub .page-hero h1 { color: #fff; }
body.toc-sub .impact h2 { color: var(--toc-blue); }
body.toc-sub .five-ws { padding-top: 0.4rem; }
body.toc-sub .ws-grid, body.toc-sub .grid { gap: 1rem; padding-bottom: 1.2rem; }
body.toc-sub .w-card { padding: 1.2rem; background: #003755; color: #fff; border-radius: 10px; box-shadow: 0 8px 22px rgba(0,55,85,0.15); }
body.toc-sub .w-card h3 { color: #fff; font-size: 1.35rem; }
body.toc-sub .w-card p { color: #fff; font-size: 1.05rem; line-height: 1.6; }
body.toc-sub .card { padding: 1.2rem 1.2rem 1.6rem; overflow: visible; }
body.toc-sub .impact { max-width: 1200px; margin: 0 auto; padding: 0.6rem 1.5rem 1rem; }
body.toc-sub .impact-box { background: #003755; color: #fff; border-radius: 10px; padding: 1.6rem 1.8rem; box-shadow: 0 8px 22px rgba(0,55,85,0.15); }
body.toc-sub .impact-box p { margin-bottom: 0.6rem; font-size: 1rem; line-height: 1.6; }
body.toc-sub .impact-box p:last-child { margin-bottom: 0; }
body.toc-sub .btn { position: static; display: inline-block; margin-top: 1.1rem; }
body.toc-sub .btn, body.toc-home .btn { background: #009cde; color: #fff; border-radius: 4px; padding: 12px 22px; font-weight: 700; text-decoration: none; }
body.toc-sub .btn:hover, body.toc-home .btn:hover { background: #007bb8; }
body.toc-sub .cleanup-link { padding: 1.6rem 1.5rem 2.2rem; }
body.toc-sub .cleanup-link { margin-top: 0.5rem; }
body.toc-sub .cleanup-card h3 { margin: 0 0 0.4rem; }
body.toc-sub .cleanup-card p { margin: 0; }
body.toc-sub footer, body.toc-home footer { background: var(--toc-navy); padding: 1.4rem 1.5rem; }

/* Anchor targets: stop short of the fixed nav bar */
:target { scroll-margin-top: calc(var(--nav-height) + 1rem); }

html.dark body.toc-home, html.dark body.toc-sub { background: #0b1220; color: #e8eef5; }
html.dark nav.scrolled { background: rgba(11, 18, 32, 0.85); border-bottom-color: rgba(255,255,255,0.08); }
html.dark nav.scrolled .brand-word, html.dark nav.scrolled .nav-links a, html.dark nav.scrolled .nav-toggle span { color: #fff; background: transparent; border-color: rgba(255,255,255,0.7); }
html.dark .w-card, html.dark .card, html.dark .dropdown-menu { background: #152033; color: #e8eef5; }
html.dark .dropdown-menu a { color: #e8eef5 !important; }
html.dark body.toc-home .mission-block h2, html.dark body.toc-home .card-band h2, html.dark body.toc-sub h2, html.dark body.toc-sub h3 { color: #e8eef5; }
html.dark body.toc-home .card-band h3, html.dark .brand-blue { color: #4da3ff; }
html.dark body.toc-home .solution-list a { color: #4da3ff; }
html.dark body.toc-home #actions .join-lead { color: #fff; }
html.dark footer, html.dark .impact, html.dark .impact-bar, html.dark #actions { background: #071018; }

/* Organization brand block (Ocean Cleanup template) */
.org-brand { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.org-brand h1 { margin: 0; }
.org-logo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.85); box-shadow: 0 4px 18px rgba(0,0,0,0.35); }
.org-logo-large { width: 220px; height: 220px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,0.85); box-shadow: 0 4px 18px rgba(0,0,0,0.35); }

/* Donate-in-the-water banner (reusable across pages) */
.donate-banner { max-width: 1250px; margin: 0 auto; padding: 0 1.5rem 5rem; }
.donate-banner-card { background: linear-gradient(rgba(0,55,85,0.72), rgba(0,55,85,0.72)), url('assets/OceanBeach.JPG') center/cover no-repeat; border-radius: 18px; padding: 3.5rem 2rem; text-align: center; color: #fff; box-shadow: 0 10px 35px rgba(0,55,85,0.25); }
.donate-banner-card h2 { color: #fff; margin: 0 0 0.8rem; }
.donate-banner-card p { margin: 0 0 1.5rem; font-size: 1.1rem; opacity: 0.95; }
.donate-banner-card .btn { background: var(--toc-blue); }
.donate-banner-card .btn:hover { background: var(--brand-blue); }

/* Donate button: photo with Donate text centered (reusable across pages) */
.donate-btn { position: relative; display: block; width: min(200px, 52vw); margin: 0.8rem auto 0; border-radius: 50%; overflow: hidden; box-shadow: 0 10px 30px rgba(0,55,85,0.35); text-decoration: none; }
.donate-btn img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.donate-btn span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,55,85,0.45); color: #fff; font-family: "Montserrat", "Segoe UI", sans-serif; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: 0.04em; text-shadow: 0 2px 10px rgba(0,0,0,0.55); }
.donate-btn:hover span { background: rgba(0,102,204,0.55); }

@media (max-width: 900px) {
  body.toc-home .card-band .grid { grid-template-columns: 1fr 1fr; }
  body.toc-home .hero-content { width: min(46rem, 88vw); padding-top: calc(18vh + 3.4rem); }
  body.toc-home .stats-title { font-size: 1.2rem; }
  body.toc-home .hero-kicker { font-size: 1.25rem; margin-bottom: 2rem; }
  body.toc-home .card-band h3 { font-size: 1.55rem; }
  .nav-toggle { display: block; }
  body.toc-home .nav-links, body.toc-sub .nav-links { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; background: rgba(255,255,255,0.97); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); flex-direction: column; align-items: stretch; padding: 1rem 1.5rem 1.5rem; box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
  body.toc-home nav.open .nav-links, body.toc-sub nav.open .nav-links { display: flex; }
  body.toc-home nav.open .nav-links a, body.toc-sub nav.open .nav-links a { color: var(--toc-navy); }
  body.toc-home .btn-nav { display: none; }
  body.toc-home .nav-dropdown .dropdown-menu { position: static; box-shadow: none; padding-left: 1rem; }
}
@media (max-width: 600px) {
  body.toc-home .card-band .grid { grid-template-columns: 1fr; }
  body.toc-home .stat-row { gap: 1.5rem; }
  .org-logo-large { width: 160px; height: 160px; }
}

/* ===== Page-specific: 404 (was inline <style>) ===== */
body.toc-sub.nf-page .page-hero { height: 50vh; min-height: 320px; }
.nf-wrap { max-width: 640px; margin: 0 auto; padding: 2rem 1.5rem 3rem; text-align: center; }
.nf-wrap h2 { color: #003755; margin-bottom: 0.8rem; }
.nf-wrap p { color: #334; font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.6rem; }
.nf-wrap .btn { margin-top: 0; }
html.dark .nf-wrap h2 { color: #e8eef5; }
html.dark .nf-wrap p { color: #e8eef5; }

/* ===== Page-specific: ClearSpace (was inline <style>) ===== */
body.toc-sub.space-page .page-hero.space-hero {
    background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.55) 100%), url('assets/Nebula.jpg') center/cover no-repeat;
}

/* ===== Page-specific: Orbital_Data_Centers (was inline <style>) ===== */
body.toc-sub.odc-page .page-hero.space-hero {
  background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.55) 100%), url('assets/DataOrbitalCenters.jpg') center/cover no-repeat;
}
body.toc-sub.odc-page .donate-btn span {
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  padding: 0 1.6rem;
}

/* ===== Page-specific: Project-R (was inline <style>) ===== */
/* Upcoming-launches widget + category cards (Project R only) */
.launch-widget { max-width: 1200px; margin: 0 auto; padding: 1.6rem 1.5rem 0.4rem; }
.launch-widget .lw-box { background: linear-gradient(135deg, #003755 0%, #00253a 100%); color: #fff; border-radius: 10px; padding: 1.4rem 1.6rem; box-shadow: 0 8px 22px rgba(0,55,85,0.15); }
.launch-widget .lw-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.8rem; }
body.toc-sub .launch-widget h2 { margin: 0; color: #fff; font-family: "Montserrat", "Segoe UI", sans-serif; font-size: clamp(1.3rem, 2.6vw, 1.7rem); }
.launch-widget .lw-live { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.85); }
.launch-widget .lw-dot { width: 8px; height: 8px; border-radius: 50%; background: #00b894; box-shadow: 0 0 0 0 rgba(0,184,148,0.6); animation: lw-pulse 1.8s infinite; }
@keyframes lw-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,184,148,0.6); } 70% { box-shadow: 0 0 0 8px rgba(0,184,148,0); } 100% { box-shadow: 0 0 0 0 rgba(0,184,148,0); } }
@media (prefers-reduced-motion: reduce) { .launch-widget .lw-dot { animation: none; } }
.launch-widget .lw-next { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 1rem 1.2rem; }
.launch-widget .lw-kicker { margin: 0 0 0.25rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8fd3ff; }
.launch-widget .lw-mission { margin: 0 0 0.3rem; color: #fff; font-size: clamp(1.25rem, 3vw, 1.75rem); font-weight: 800; }
.launch-widget .lw-meta { margin: 0 0 0.2rem; color: rgba(255,255,255,0.9); font-size: 1rem; }
.launch-widget .lw-when { margin: 0; color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.launch-widget .lw-countdown { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.launch-widget .lw-unit { min-width: 64px; text-align: center; background: rgba(0,156,222,0.18); border: 1px solid rgba(0,156,222,0.45); border-radius: 8px; padding: 0.4rem 0.5rem; }
.launch-widget .lw-unit b { display: block; font-family: "Montserrat", "Segoe UI", sans-serif; font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #fff; }
.launch-widget .lw-unit small { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
.launch-widget .lw-list { list-style: none; margin: 0.9rem 0 0; padding: 0; }
.launch-widget .lw-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.2rem 1rem; padding: 0.55rem 0; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.95rem; }
.launch-widget .lw-list .lw-l-name { font-weight: 700; color: #fff; }
.launch-widget .lw-list .lw-l-sub { color: rgba(255,255,255,0.72); font-size: 0.85rem; display: block; font-weight: 500; }
.launch-widget .lw-list .lw-l-date { color: #8fd3ff; font-weight: 600; white-space: nowrap; }
.launch-widget .lw-note { margin: 0.9rem 0 0.2rem; font-size: 0.8rem; font-style: italic; color: rgba(255,255,255,0.7); }
.launch-widget .lw-more { margin: 0.4rem 0 0; }
.launch-widget .lw-more a { color: #8fd3ff; font-weight: 700; text-decoration: none; }
.launch-widget .lw-more a:hover, .launch-widget .lw-more a:focus { text-decoration: underline; }
.launch-widget .lw-credit { margin: 0.4rem 0 0; font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.launch-widget .lw-loading, .launch-widget .lw-error { margin: 0; color: rgba(255,255,255,0.85); }
html.dark .launch-widget .lw-box { background: linear-gradient(135deg, #152033 0%, #0b1220 100%); }
body.pr-page #categories .cat-intro { text-align: center; max-width: 720px; margin: -0.4rem auto 1.2rem; font-size: 1.05rem; line-height: 1.6; }
body.pr-page #categories .grid { grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); justify-content: center; }
body.pr-page #categories .card { padding: 0; overflow: hidden; }
html.dark body.pr-page #categories h2 { color: #e8eef5; }
html.dark body.pr-page #categories h3, html.dark body.pr-page #categories h3 a { color: #4da3ff; }
@media (max-width: 600px) { .launch-widget .lw-box { padding: 1.1rem; } .launch-widget .lw-unit { min-width: 56px; } }
/* Phones only: keep Project Rawane hub order (impact, Five W's, hub card groups, stats, launches). */
@media (max-width: 600px) {
  body.pr-page .pr-flow { display: flex; flex-direction: column; }
  body.pr-page .pr-flow > .impact { order: 1; }
  body.pr-page .pr-flow > .five-ws { order: 2; }
  body.pr-page .pr-flow > .hub-group { order: 3; }
  body.pr-page .pr-flow > .page-stats { order: 4; }
  body.pr-page .pr-flow > .launch-widget { order: 5; padding-bottom: 1.6rem; }
}

/* ===== Page-specific: Search (was inline <style>) ===== */
.search-wrap { max-width: 40rem; margin: 0 auto; padding: 0 1.5rem 3rem; }
#q { width: 100%; padding: 0.8rem 1rem; font: inherit; font-size: 1.1rem; border: 2px solid #009cde; border-radius: 8px; color: #003755; }
#q:focus { outline: 3px solid rgba(0,156,222,0.35); }
#results { list-style: none; margin: 1.2rem 0 0; padding: 0; }
#results li { margin: 0.6rem 0; }
#results a { color: #00b894; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
#results a:hover { text-decoration: underline; }
#results .match { display: block; color: #003755; font-weight: 400; font-size: 0.9rem; margin-top: 0.15rem; }
#status { color: #003755; opacity: 0.7; margin-top: 0.8rem; }
html.dark #q { background: #152033; color: #e8eef5; border-color: #4da3ff; }
html.dark #results .match, html.dark #status { color: #e8eef5; }

/* ===== Page-specific: Space_Disposal (was inline <style>) ===== */
.impact-box h3.mission-title { color: #fff; font-size: 1.25rem; margin: 1.2rem 0 0.5rem; }
.impact-box a.inline-link { color: #8fd3ff; font-weight: 700; }
.impact-box p.source-link { margin-top: 1.2rem; padding-top: 0.9rem; border-top: 1px solid rgba(255,255,255,0.18); font-size: 0.9rem; text-align: right; }
.impact-box p.source-link a { color: rgba(255,255,255,0.82); font-family: "Montserrat", "Segoe UI", sans-serif; font-weight: 600; letter-spacing: 0.02em; text-decoration: none; border-bottom: 1px dotted rgba(255,255,255,0.5); }
.impact-box p.source-link a:hover, .impact-box p.source-link a:focus { color: #fff; border-bottom-style: solid; }

/* ===== Page-specific: Jupiter ===== */
body.toc-sub.jupiter-page .page-hero.space-hero {
  background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.55) 100%), url('assets/Jupiter.jpg') center 40%/cover no-repeat;
}
body.toc-sub .w-card p.fact-source { margin-top: 0.7rem; font-size: 0.78rem; opacity: 0.8; }
body.toc-sub .w-card p.fact-source a, .impact-box p.fact-source a { color: #8fd3ff; }
.impact-box p.fact-source { font-size: 0.8rem; opacity: 0.85; }
.photo-credit { max-width: 1200px; margin: 0.4rem auto 0; padding: 0 1.5rem; font-size: 0.75rem; opacity: 0.7; text-align: right; }
.donate-banner .photo-credit { text-align: center; padding: 0; }
.donate-banner > p:first-child { text-align: center; font-size: 1.05rem; margin: 0 auto 0.4rem; max-width: 40rem; }

/* ===== Page-specific: Titan ===== */
body.toc-sub.titan-page .page-hero.space-hero {
  background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.6) 100%), url('assets/Titan.jpg') center 45%/cover no-repeat;
}

/* ===== Reusable mission status widget ([data-mission]) ===== */
.mission-widget { max-width: 1200px; margin: 1.5rem auto; padding: 1.25rem 1.5rem; border-radius: 14px; background: #0b2540; color: #e8f3ff; }
body.toc-sub .mission-widget h2, body.toc-sub .mission-widget h3 { color: #e8f3ff; margin: 0.9rem 0 0.4rem; }
body.toc-sub .mission-widget h2 { margin: 0 0 0.4rem; font-size: 1.35rem; }
.mission-widget .mw-status { margin: 0 0 0.8rem; opacity: 0.9; }
.mission-widget .mw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.8rem; }
.mission-widget .mw-count { background: rgba(255,255,255,0.08); border-radius: 10px; padding: 0.7rem 0.9rem; }
.mission-widget .mw-count small { display: block; opacity: 0.8; font-size: 0.8rem; }
.mission-widget .mw-count b { font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.mission-widget ul { margin: 0; padding-left: 1.1rem; }
.mission-widget li { margin: 0.25rem 0; }
.mission-widget li.done { opacity: 0.65; }
.mission-widget .mw-date { font-size: 0.8rem; opacity: 0.75; }
.mission-widget a { color: #8fd3ff; }
.mission-widget .mw-note { margin: 0.9rem 0 0; font-size: 0.78rem; opacity: 0.8; }

/* ===== Page-specific: Planetary Defense hub and pages, MMX ===== */
body.toc-sub.pd-page .page-hero.space-hero, body.toc-sub.hera-page .page-hero.space-hero { background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.6) 100%), url('assets/Hera.jpg') center/cover no-repeat; }
body.toc-sub.neos-page .page-hero.space-hero { background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.6) 100%), url('assets/NEO_Surveyor.jpg') center/cover no-repeat; }
body.toc-sub.webb-page .page-hero.space-hero { background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.6) 100%), url('assets/Webb_Infrared.jpg') center/cover no-repeat; }
body.toc-sub.mmx-page .page-hero.space-hero { background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.6) 100%), url('assets/Phobos.jpg') center 40%/cover no-repeat; }

/* ===== Stats engine (homepage overview + contextual .page-stats) ===== */
.site-overview { width: 100%; margin-bottom: 1.6rem; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.18); }
.page-stats { max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; }
body.toc-sub .page-stats h2 { margin: 0 0 0.8rem; }
.page-stats .ps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.page-stats .ps-card { background: #003755; color: #fff; border-radius: 12px; padding: 1rem 1.2rem; }
body.toc-sub .page-stats .ps-card h3 { color: #fff; margin: 0 0 0.4rem; font-size: 1.05rem; }
.page-stats .ps-card p { margin: 0.3rem 0; }
.page-stats .ps-card small { opacity: 0.8; }
.page-stats .ps-card a { color: #8fd3ff; }
.page-stats .ps-note { font-size: 0.78rem; opacity: 0.7; margin: 0.6rem 0 0; }
html.dark .page-stats .ps-card { background: #0d1b26; }
@media (max-width: 600px) { .page-stats { padding: 0 1rem; } }

/* ===== Space Weather & Earth Observation hubs ===== */
body.toc-sub.sw-page .page-hero.space-hero { background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.6) 100%), url('assets/SDO_Sun.jpg') center/cover no-repeat; }
body.toc-sub.eo-page .page-hero.space-hero { background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.6) 100%), url('assets/EPIC_Earth.jpg') center/cover no-repeat; }
.impact-box p.hub-label { display: inline-block; margin: 0 0 0.6rem; padding: 0.15rem 0.6rem; border-radius: 999px; background: rgba(143,211,255,0.18); font-size: 0.8rem; letter-spacing: 0.02em; }

/* ===== Horizon callout: potential solutions without confirmed contract/funding ===== */
.horizon-note { margin: 1rem 0; padding: 0.9rem 1.1rem; border-left: 4px solid #f5b942; border-radius: 10px; background: rgba(245,185,66,0.12); }
.horizon-note p { margin: 0.4rem 0 0; }
.horizon-badge { display: inline-block; padding: 0.15rem 0.65rem; border-radius: 999px; background: #f5b942; color: #1d1400; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; }
body.toc-sub.drag-page .page-hero.space-hero { background: linear-gradient(180deg, rgba(0,20,40,0.25) 0%, rgba(0,20,40,0.55) 100%), url('assets/Progress_Reentry.jpg') center/cover no-repeat; }
body.toc-sub.leolabs-page .page-hero.space-hero { background: linear-gradient(180deg, rgba(0,20,40,0.25) 0%, rgba(0,20,40,0.55) 100%), url('assets/LEO_View.jpg') center/cover no-repeat; }

/* Project R dropdown (generated by build-stats.js) */
.nav-dropdown-wide .dropdown-menu { min-width: 300px; max-height: calc(100vh - var(--nav-height, 88px) - 16px); overflow-y: auto; }
.dropdown-menu .menu-overview { font-weight: 600; }
.dropdown-menu .menu-group > a.menu-hub { font-weight: 700; border-top: 1px solid rgba(0,0,0,0.08); }
.dropdown-menu .menu-group ul { list-style: none; margin: 0; padding: 0 0 0.3rem; }
.dropdown-menu .menu-group ul a { padding: 0.35rem 1rem 0.35rem 1.8rem; font-size: 0.92em; }
.menu-tag { display: inline-block; font-size: 0.68em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 0.05rem 0.4rem; margin-left: 0.3rem; border-radius: 999px; background: #fff3cd; color: #7a5a00; vertical-align: middle; }
html.dark .menu-tag { background: #4a3b00; color: #ffe08a; }
[data-menu-item], #solution, #natural { scroll-margin-top: calc(var(--nav-height, 88px) + 16px); }
@media (max-width: 900px) {
  .nav-dropdown-wide .dropdown-menu { min-width: 0; max-height: 55vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .dropdown-menu a { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 900px) { nav.open .nav-links { max-height: calc(100vh - var(--nav-height, 88px)); overflow-y: auto; } }
@media (max-width: 900px) { body.toc-home nav.open .nav-links, body.toc-sub nav.open .nav-links { background: rgba(255,255,255,0.98); backdrop-filter: none; -webkit-backdrop-filter: none; } html.dark body nav.open .nav-links { background: #0f1a2b; } }
/* Project Rawane mission list (breadcrumb-styled, middot separators) */
.breadcrumb.mission-list li + li::before { content: "·"; }
/* On-page jump nav (Titan): pill links matching .next-solutions */
.jump-nav { max-width: 1100px; margin: 0.5rem auto 1.5rem; padding: 0 1.5rem; }
.jump-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.jump-nav a { display: inline-block; padding: 0.5rem 1rem; border: 1px solid #009cde; border-radius: 999px; color: #009cde; font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.jump-nav a:hover { background: #009cde; color: #fff; }
html.dark .jump-nav a { color: #8fd3ff; border-color: #8fd3ff; }
html.dark .jump-nav a:hover { background: #8fd3ff; color: #071018; }
#five-ws, #by-the-numbers { scroll-margin-top: calc(var(--nav-height, 88px) + 16px); }
/* Bottom link (one per page): donate / join / subtle "For further information" */
.bottom-link { text-align: center; padding-bottom: 3rem; }
.donate-btn.donate-btn-subtle { width: min(140px, 40vw); box-shadow: 0 6px 18px rgba(0,55,85,0.2); opacity: 0.9; }
.donate-btn.donate-btn-subtle span { background: rgba(0,55,85,0.6); font-size: 0.85rem; text-align: center; padding: 0 0.6rem; }
html.dark .donate-btn.donate-btn-subtle { box-shadow: 0 6px 18px rgba(0,0,0,0.5); }
/* Hub mission cards (card-band on hub pages) */
.card-band.hub-cards .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card-band.hub-cards h3, #categories .card h3 { font-size: 1.25rem; }
.card-band h3 a { color: inherit; text-decoration: none; }
.card-band .card-blurb { font-size: 0.9rem; padding: 0 1rem 1.2rem; margin: 0; text-align: center; }
html.dark .card-band .card-blurb { color: #c9d6e2; }
/* Project Rawane hub-group headings link to their hub */
.hub-group h2 a { color: inherit; text-decoration: none; }
.hub-group h2 a:hover { text-decoration: underline; }
/* Visually hidden (accessible) text */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.toc-sub h2.h2-center { text-align: center; }
/* Shared hub title hero: Nebula2 with the pr-hero dark overlay */
body.toc-sub .page-hero.hub-hero, body.toc-sub[class] .page-hero.hub-hero { background: linear-gradient(180deg, rgba(0,20,40,0.35) 0%, rgba(0,20,40,0.55) 100%), url('assets/Nebula2.jpg') center/cover no-repeat; }
/* Project Rawane: Space Disposal man-made / natural split cards */
.card-band .grid.sd-split { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; margin-bottom: 1.8rem; }
@media (max-width: 600px) { .card-band .grid.sd-split { grid-template-columns: 1fr; } }
.anchor-target { display: block; scroll-margin-top: calc(var(--nav-height, 88px) + 16px); }
.card-band .grid.sd-natural { grid-template-columns: repeat(3, minmax(0, 300px)); justify-content: center; margin-bottom: 1.8rem; }
@media (max-width: 600px) { .card-band .grid.sd-natural { grid-template-columns: 1fr; } }
/* Project Rawane dedication line inside the title hero */
body.toc-sub .page-hero.pr-hero p.pr-dedication { max-width: 760px; margin: 0.6rem auto 0; text-align: center; font-size: 1.05rem; font-style: italic; line-height: 1.5; color: rgba(255,255,255,0.94); text-shadow: 0 1px 8px rgba(0,0,0,0.6); }
body.toc-sub .page-hero.pr-hero { height: auto; min-height: 340px; padding: calc(var(--nav-height, 88px) + 2.2rem) 0 2.4rem; box-sizing: border-box; }
@media (max-width: 600px) { body.toc-sub .page-hero.pr-hero p.pr-dedication { font-size: 0.95rem; } }
