/* Sol Foundation inspired — Disclosure Explorer */
:root {
  --bg: #08111F;
  --bg2: #0F1E35;
  --bg3: #152844;
  --card: #0F1E35;
  --text: #E8E4D9;
  --text-muted: #8A9AB5;
  --accent: #C9A84C;
  --accent2: #4A8FD4;
  --border: rgba(201,168,76,0.15);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, 'Helvetica Neue', Arial, system-ui, sans-serif;
}

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

body { background: var(--bg); color: var(--text); font-family: var(--sans); line-height: 1.7; }

/* ─── Navigation ─── */
.site-nav {
  background: rgba(8,17,31,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 18px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  color: #08111F;
}
.nav-logo-text { font-weight: 400; }
.nav-logo-text strong { color: var(--accent); font-weight: 600; }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }

/* ─── Hero ─── */
.page-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 80px clamp(20px, 4vw, 60px);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #08111F 0%, #0F2040 50%, #08111F 100%);
}
.page-hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.25;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(8,17,31,0.9) 0%, rgba(8,17,31,0.3) 60%, transparent 100%);
}
.page-hero-content { position: relative; z-index: 2; max-width: 800px; }

/* ─── Hero inner wrapper: centres content consistently on all pages ─── */
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  min-width: 0;
}
.page-hero-code {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--accent2);
  margin-bottom: 16px;
  font-family: monospace;
}
.page-hero-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.page-hero-sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ─── Section labels & titles ─── */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  display: block;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* ─── Sections ─── */
.section {
  padding: 48px clamp(20px, 4vw, 60px);
  max-width: 100%;
  margin: 0 auto;
}
.section-title {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 40px;
}
.section-divider {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin: 16px 0 40px;
}

/* ─── Profile / Feature cards ─── */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  transition: border-color 0.2s, transform 0.15s;
}
.profile-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.profile-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 4px;
}
.profile-title { font-size: 0.82rem; color: var(--accent); margin-bottom: 12px; }
.profile-body { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ─── Evidence / Timeline items ─── */
.evidence-list { display: flex; flex-direction: column; gap: 16px; }
.evidence-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.evidence-date {
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  min-width: 80px;
  margin-top: 2px;
  flex-shrink: 0;
}
.evidence-title { font-size: 0.95rem; color: var(--text); font-weight: 600; margin-bottom: 4px; }
.evidence-body { font-size: 0.84rem; color: var(--text-muted); line-height: 1.6; }

/* ─── Generic content card ─── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
  margin-bottom: 16px;
}
.card h3 { font-family: var(--serif); font-size: 1.05rem; color: var(--text); margin-bottom: 8px; }
.card p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ─── Quote ─── */
.featured-quote {
  background: var(--bg2);
  border-left: 4px solid var(--accent);
  padding: 32px 40px;
  margin: 40px 0;
  border-radius: 0 8px 8px 0;
}
.featured-quote blockquote, blockquote {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 12px;
}
.featured-quote cite, blockquote cite {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  font-style: normal;
}

/* Standalone blockquotes (legacy pages) */
blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 16px 0;
  background: rgba(201,168,76,0.05);
  border-radius: 0 6px 6px 0;
}

/* ─── Stats ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.stat-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}
.stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ─── Credential badges ─── */
.credential-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cred-badge {
  font-size: 0.7rem;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.08em;
  font-weight: 600;
  border: 1px solid var(--border);
  background: rgba(201,168,76,0.08);
  color: var(--accent);
}

/* ─── Audio player ─── */
.audio-player, .signal-audio-player {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
}
.audio-play-btn, .signal-play-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  color: #08111F;
  cursor: pointer;
  font-size: 1rem;
  flex-shrink: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.audio-play-btn:disabled, .signal-play-btn:disabled { opacity: 0.5; cursor: wait; }
.audio-label, .signal-audio-info { font-size: 0.8rem; color: var(--text-muted); flex: 1; }
.audio-progress-track, .signal-progress-bar, .signal-progress-wrap {
  flex: 1;
  height: 3px;
  background: rgba(201,168,76,0.15);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  max-width: 240px;
}
.audio-progress-fill, .signal-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
}
.audio-time, .signal-time { font-size: 0.75rem; color: var(--text-muted); min-width: 40px; }

/* ─── Affiliate / resource cards ─── */
.affiliate-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  margin: 24px 0;
}
.affiliate-header {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}
.affiliate-grid { display: flex; flex-direction: column; gap: 10px; }
.affiliate-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s;
}
.affiliate-card:hover { border-color: var(--accent); }
.affiliate-title { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.affiliate-author { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 6px; }

/* ─── Section header (legacy .section-header) ─── */
.section-header {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

/* ─── Hero variants for inner pages ─── */
.hero {
  padding: 60px clamp(20px, 4vw, 60px) 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 12px;
}
.hero-sub, .hero p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 24px;
}
.file-stamp {
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

/* ─── Main content ─── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px) 80px;
}
main h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text);
  margin: 32px 0 12px;
}
main p { font-size: 0.92rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 14px; }
main ul, main ol { margin-left: 1.5rem; margin-bottom: 14px; }
main li { font-size: 0.92rem; color: var(--text-muted); line-height: 1.8; }
main a { color: var(--accent2); text-decoration: none; }
main a:hover { color: var(--accent); text-decoration: underline; }

/* ─── Footer ─── */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 40px 60px;
  text-align: center;
}
footer .footer-logo {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 8px;
}
footer p { font-size: 0.8rem; color: var(--text-muted); }
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ─── Utility ─── */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.bg-stripe { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ─── Responsive ─── */

  .page-hero { padding: 40px 20px; min-height: 50vh; }
  .profile-grid { grid-template-columns: 1fr; }
  .site-nav { padding: 14px 20px; flex-wrap: wrap; gap: 12px; }
  .nav-links { gap: 14px; flex-wrap: wrap; }
  .nav-links a { font-size: 0.75rem; }
  .hero { padding: 32px 20px 24px; }
  main { padding: 0 20px 60px; }
  footer { padding: 32px 20px; }
  .featured-quote { padding: 20px 24px; }
  .evidence-item { flex-direction: column; gap: 8px; }
}

/* ─── Nav Dropdown ─── */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 4px; padding: 6px 0; min-width: 220px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3); z-index: 200; margin-top: 0;
}
/* Bridge pseudo-element closes the gap so mouse movement doesn't lose hover */
.nav-dropdown-menu::before {
  content: ''; position: absolute; top: -12px; left: 0;
  width: 100%; height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
/* Keep menu open when hovering the menu itself */
.nav-dropdown-menu:hover { display: block; }
.nav-dropdown-menu a {
  display: block; padding: 10px 16px; font-size: 0.82rem;
  color: var(--text-muted); text-decoration: none; transition: all 0.15s;
}
.nav-dropdown-menu a:hover { color: var(--accent); background: rgba(201,168,76,0.08); }

/* ─── Video sections ─── */
.video-section { margin: 32px 0; }
.video-section h3 { font-family: var(--serif); font-size: 1.1rem; color: var(--text); margin-bottom: 16px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.video-card { background: var(--card); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.video-card iframe { display: block; }
.video-card p { padding: 10px 14px; font-size: 0.8rem; color: var(--text-muted); }

/* ── Mobile Nav Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  z-index: 300;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive iframe wrapper ── */
.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 4px;
}
.video-responsive iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

/* ── Table overflow wrap ── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 4px;
}

/* ── Tablet (768px–1024px) ── */
@media (max-width: 1024px) {
  .page-hero { min-height: 50vh; }
  .section { padding: 32px 20px; }
  main { padding: 0 32px 60px; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  .site-nav { padding: 14px 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8,17,31,0.98);
    border-top: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 12px 0;
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links .nav-dropdown { 
    padding: 10px 24px;
    font-size: 0.9rem;
    width: 100%;
  }
  .nav-hamburger { display: flex; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: rgba(255,255,255,0.05);
    padding: 0;
    min-width: unset;
    display: block !important;
    margin-top: 4px;
  }
  .nav-dropdown-menu a { padding: 8px 24px 8px 36px; font-size: 0.82rem; }
  .nav-dropdown-menu::before { display: none; }

  .section { padding: 16px 12px; }
  .page-hero { padding: 40px 20px; min-height: 40vh; }
  main { padding: 0 20px 60px; }
  .hero { padding: 28px 20px 20px; }
  footer { padding: 32px 20px; flex-direction: column; gap: 12px; text-align: center; }
  .profile-grid { grid-template-columns: 1fr; }
  .evidence-item { flex-direction: column; gap: 8px; }
  .video-grid { grid-template-columns: 1fr; }
  .yt-grid { grid-template-columns: 1fr; }
  
  h1 { font-size: clamp(1.6rem, 6vw, 2.5rem); }
  h2 { font-size: clamp(1.3rem, 5vw, 2rem); }

  /* Fix any remaining wide fixed widths */
  .content-block, .article-body, .profile-body, .page-content {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* ── Small mobile (≤480px) ── */
@media (max-width: 480px) {
  .site-nav { padding: 12px 16px; }
  .section { padding: 16px 12px; }
  main { padding: 0 16px 40px; }
  .nav-logo-text { display: none; }
  h1 { font-size: 1.5rem; }
  .page-hero { min-height: 35vh; }
}

/* ── Image & Person Card Components ── */
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 24px 0; }
.img-card { border-radius: 8px; overflow: hidden; background: var(--bg2); border: 1px solid var(--border); }
.img-card img { width: 100%; height: 260px; object-fit: cover; display: block; }
.img-card .img-caption { padding: 10px 14px; font-size: 0.78rem; color: var(--text-muted); }
.featured-img { width: 100%; max-height: 500px; object-fit: cover; border-radius: 8px; margin: 24px 0; }
.person-card { display: flex; gap: 20px; align-items: flex-start; background: var(--bg2,#0F1E35); border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-bottom: 16px; }
.person-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.person-card .person-info h3 { margin: 0 0 6px; font-size: 1rem; color: var(--text); }
.person-card .person-info p { margin: 0; font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.race-card { background: var(--bg2,#0F1E35); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 32px; }
.race-card-img { width: 100%; height: 360px; object-fit: cover; display: block; }
.race-card-body { padding: 24px; }
.race-card-body h2 { font-family: var(--serif); font-size: 1.4rem; color: var(--accent); margin: 0 0 12px; }
.race-card-body p { font-size: 0.9rem; color: var(--text); line-height: 1.8; margin: 0; }

/* ── Layout fix: section-wrap ── */
.section-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .section-wrap {
    padding: 0 16px;
  }
}


/* ─── YouTube / Video-first sections ─── */
.yt-section { margin: 0 0 48px; }
.yt-section-label { font-size:0.7rem;color:var(--accent);font-weight:700;letter-spacing:0.1em;text-transform:uppercase;margin-bottom:8px; }
.yt-section-title { font-family:var(--serif);font-size:1.2rem;font-weight:400;color:var(--text);margin:0 0 6px; }
.yt-section-desc { font-size:0.85rem;color:var(--text-muted);margin:0 0 20px;line-height:1.6; }
.yt-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px; }
.yt-card { background:var(--bg2);border:1px solid var(--border);border-radius:6px;overflow:hidden; }
.yt-card iframe { display:block;width:100%;aspect-ratio:16/9;border:0; }
.yt-card p { padding:10px 14px;font-size:0.8rem;color:var(--text-muted);margin:0;line-height:1.4; }
.yt-featured { background:var(--bg2);border-radius:8px;overflow:hidden;margin-bottom:32px; }
.yt-featured-embed { position:relative;padding-bottom:56.25%;height:0; }
.yt-featured-embed iframe { position:absolute;top:0;left:0;width:100%;height:100%;border:0; }
.yt-featured-meta { padding:16px 20px; }
.yt-featured-badge { font-size:0.7rem;color:var(--accent);font-weight:700;letter-spacing:0.1em;margin-bottom:6px; }
.yt-featured-title { font-size:1rem;font-weight:600;color:var(--text); }
.yt-featured-desc { font-size:0.82rem;color:var(--text-muted);margin-top:4px; }
.yt-block { padding:40px 0 0; }

/* ── Read More / Collapsible text ── */
.read-more-block { position: relative; }
.read-more-content {
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.4s ease;
  position: relative;
}
.read-more-content.expanded { max-height: 9999px; }
.read-more-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--bg3, #16161f));
  pointer-events: none;
  transition: opacity 0.3s;
}
.read-more-fade.hidden { opacity: 0; }
.read-more-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 6px 16px;
  background: none; border: 1px solid var(--border);
  border-radius: 20px; color: var(--accent, #c9a84c);
  font-size: 0.78rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.05em;
}
.read-more-btn:hover { background: var(--bg2); }
