/* =========================================================
   Political News Aggregator — v3 (Intel Dashboard Theme + Premium About)
   DROP-IN replacement for static/css/style.css
   Notes:

   ========================================================= */

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

/* ---------- Theme tokens ---------- */
:root {
  --bg: #101a2e;                  /* page background */
  --panel: rgba(17, 24, 39, 0.78);/* section panels */
  --card: rgba(2, 6, 23, 0.62);   /* story cards */
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.22);

  --text: #e5e7eb;
  --muted: rgba(226, 232, 240, 0.70);
  --muted-2: rgba(226, 232, 240, 0.55);

  --accent: #60a5fa;              /* primary */
  --accent-2: #93c5fd;            /* hover */

  --danger: #ef4444;
  --warning: #f59e0b;
  --ok: #22c55e;

  --shadow: none;                 /* keep it crisp */
  --radius: 16px;
}

/* ---------- Base ---------- */
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background:
    radial-gradient(1200px 800px at 20% 0%, rgba(96, 165, 250, 0.10), transparent 50%),
    radial-gradient(1000px 700px at 90% 10%, rgba(34, 197, 94, 0.06), transparent 55%),
    var(--bg);
  min-height: 100vh;
  color: var(--text);
  line-height: 1.55;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

.main-content {
  padding: 0 0 2.2rem;
  min-height: calc(100vh - 140px);
}

/* ---------- Navigation ---------- */
.navbar {
  background: rgba(10, 16, 28, 0.80);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.95rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 10px;
}

/* Brand */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.nav-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.35));
}

.nav-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,.95);
}

.nav-brand:hover .nav-title {
  color: var(--accent);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Time selector (dropdown) */
.time-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-selector label {
  font-weight: 550;
  color: rgb(255, 255, 255);
  font-size: 0.92rem;
}

.time-selector select {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.time-selector select:focus {
  outline: none;
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(255, 255, 255, 0.07);
}

/* Links that look like buttons */
.refresh-btn {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.refresh-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(96, 165, 250, 0.32);
  box-shadow: none;
}

.about-active {
  border-color: rgba(96,165,250,0.40) !important;
  background: rgba(96,165,250,0.10) !important;
}

/* ---------- Loading overlay ---------- */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.spinner {
  text-align: center;
  color: var(--accent);
}

.spinner i {
  font-size: 2.8rem;
  animation: pulse 1.6s infinite;
  display: block;
  margin-bottom: 0.9rem;
}

.spinner p {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.6; transform: translateY(-2px); }
}

/* ---------- Error message ---------- */
.error-message {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-radius: 12px;
  padding: 1rem;
  color: rgba(254, 226, 226, 0.95);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.2rem;
}

/* ---------- Header ---------- */
.dashboard-header {
  text-align: center;
  margin: 1.2rem 0 2.0rem;
}

.dashboard-header h1 {
  font-size: 2.4rem;
  font-weight: 760;
  color: var(--text);
  margin-bottom: 0.6rem;
  text-shadow: none;
  letter-spacing: 0.2px;
}

.dashboard-subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
  font-weight: 420;
}

/* Bias info pills */
.bias-info-panel {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.2rem 0 1.2rem;
  flex-wrap: wrap;
}

.bias-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.bias-color {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bias-color.left-color { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.bias-color.center-color { background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); }
.bias-color.right-color { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); }

.bias-details {
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.bias-title {
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.35px;
}

.bias-description {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 450;
}

/* ---------- Stats ---------- */
.stats-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  background: rgba(17, 24, 39, 0.55);
  padding: 1.2rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: none;
  min-width: 160px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.30);
}

.stat-icon {
  font-size: 1.7rem;
  margin-bottom: 0.45rem;
  display: block;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Panels (Bias / Sources / Topics / etc.) ---------- */
.bias-section,
.source-section,
.topics-section,
.blindspots-section {
  background: var(--panel);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-bottom: 1.1rem;
  border: 1px solid var(--border);
  box-shadow: none;
}

.bias-section h2,
.source-section h2,
.topics-section h2,
.blindspots-section h2 {
  font-size: 1.35rem;
  font-weight: 750;
  color: var(--text);
  margin-bottom: 0.4rem;
  text-align: center;
  letter-spacing: 0.2px;
}

.section-description {
  text-align: center;
  color: var(--muted);
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ---------- Overall bias temperature bar ---------- */
.temperature-bar-container {
  max-width: 900px;
  margin: 0 auto;
}

.temperature-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 6px;
}

.temp-label-left,
.temp-label-center,
.temp-label-right {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 650;
}

.temperature-bar {
  display: flex;
  border-radius: 18px;
  overflow: hidden;
  height: 74px;
  position: relative;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.temp-segment {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: transform 0.15s ease;
  cursor: pointer;
}

.temp-segment:hover {
  transform: scale(1.01);
  z-index: 10;
}

.temp-segment.left { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); color: white; }
.temp-segment.center { background: linear-gradient(135deg, #22c55e 0%, #15803d 100%); color: white; }
.temp-segment.right { background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); color: white; }

.temp-label {
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 1px;
}

.temp-percent {
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 2px;
}

.temp-tooltip {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(2, 6, 23, 0.95);
  color: white;
  padding: 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.18s ease;
  z-index: 1000;
  min-width: 200px;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.temp-segment:hover .temp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-10px);
}

.temp-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(2, 6, 23, 0.95);
}

/* Insights */
.temperature-insights {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  border: 1px solid var(--border);
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.insight-item:last-child {
  margin-bottom: 0;
}

.insight-icon {
  color: var(--accent);
  font-size: 1rem;
}

/* ---------- Sources grid ---------- */
.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
  margin-top: 0.8rem;
}

.source-card {
  background: rgba(2, 6, 23, 0.55);
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid var(--border);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.source-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.28);
}

.source-card.left { border-left: 4px solid rgba(239, 68, 68, 0.9); }
.source-card.left-center { border-left: 4px solid rgba(239, 68, 68, 0.75); }
.source-card.center-left { border-left: 4px solid rgba(34, 197, 94, 0.85); }
.source-card.center { border-left: 4px solid rgba(34, 197, 94, 0.85); }
.source-card.center-right { border-left: 4px solid rgba(59, 130, 246, 0.75); }
.source-card.right-center { border-left: 4px solid rgba(59, 130, 246, 0.85); }
.source-card.right { border-left: 4px solid rgba(59, 130, 246, 0.95); }

.source-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.source-name {
  font-weight: 750;
  color: var(--text);
  font-size: 1rem;
}

.source-bias-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.source-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- Blindspots ---------- */
.blindspots-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0.9rem;
}

/* Keep compatibility with your existing blindspot card markup */
.blindspot-card {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.blindspot-card i {
  color: rgba(245, 158, 11, 0.95);
  font-size: 1.15rem;
}

.blindspot-text {
  color: rgba(253, 230, 138, 0.95);
  font-weight: 650;
}

/* ---------- Topics (Story dossiers) ---------- */
.topics-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 1.25rem;
}

.topic-card {
  background: var(--card);
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid var(--border);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.topic-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.32);
  background: rgba(2, 6, 23, 0.74);
}

.topic-header {
  margin-bottom: 0.95rem;
}

.topic-title {
  font-size: 1.15rem;
  font-weight: 780;
  color: var(--text);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topic-meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Slim, professional bias bar */
.topic-temperature-bar {
  display: flex;
  border-radius: 999px;
  overflow: hidden;
  height: 22px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.topic-temp-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  transition: filter 0.15s ease;
}

.topic-temp-segment:hover {
  filter: brightness(1.08);
}

/* Articles list */
.articles-list {
  margin-bottom: 0.4rem;
}

.article-item {
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.10);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  margin-bottom: 0.6rem;
}

.article-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(148, 163, 184, 0.18);
  transform: translateY(-1px);
}

.article-title {
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  line-height: 1.35;
}

.article-title:hover {
  color: var(--accent-2);
}

.article-meta {
  font-size: 0.86rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Bias pills */
.bias-tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.bias-tag.left,
.bias-tag.left-center {
  color: rgba(254, 202, 202, 0.95);
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.10);
}

.bias-tag.center,
.bias-tag.center-left {
  color: rgba(187, 247, 208, 0.95);
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.10);
}

.bias-tag.center-right,
.bias-tag.right-center,
.bias-tag.right {
  color: rgba(191, 219, 254, 0.95);
  border-color: rgba(59, 130, 246, 0.25);
  background: rgba(59, 130, 246, 0.10);
}

/* Hidden articles wrapper (JS uses this) */
.articles-hidden {
  margin-top: 0.6rem;
}

/* ---------- Footer ---------- */
.footer {
  background: rgba(10, 16, 28, 0.75);
  padding: 1rem 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 1.6rem;
  border-top: 1px solid var(--border);
}

/* ---------- Responsive (global) ---------- */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 0.85rem;
  }

  .dashboard-header h1 {
    font-size: 1.8rem;
  }

  .stats-container {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }

  .topics-container {
    grid-template-columns: 1fr;
  }

  .temperature-bar {
    height: 60px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .nav-controls {
    flex-direction: column;
    gap: 10px;
  }

  .dashboard-header h1 {
    font-size: 1.45rem;
  }

  .topics-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* =========================================================
   Homepage hero logo (optional — safe)
   ========================================================= */
.hero-logo {
  width: 92px;
  height: 92px;
  display: block;
  margin: 0 auto 14px;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.35));
}

.hero-lockup {
  width: min(250px, 80%);
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  filter: drop-shadow(0 26px 50px rgba(0,0,0,.40));
  opacity: 0.98;
}

.hero-tagline {
  margin-top: 0px;
  margin-bottom: 1.4rem;
  font-size: 1.05rem;
}

/* =========================================================
   ABOUT PAGE — Loveable-style upgrade (append to end of style.css)
   Keeps your navbar + palette intact.
   ========================================================= */

   .about-page { padding: 0; }

   /* ---- Loveable tokens mapped to your palette ---- */
   :root {
     --bias-left: 0 84% 60%;     /* red */
     --bias-center: 142 71% 45%; /* green */
     --bias-right: 217 91% 60%;  /* blue */
   }
   
   /* ---- Starfield hero background ---- */
   .starfield-bg{
     position: relative;
     background:
       radial-gradient(1200px 800px at 20% 0%, rgba(96, 165, 250, 0.10), transparent 50%),
       radial-gradient(1000px 700px at 90% 10%, rgba(34, 197, 94, 0.06), transparent 55%),
       radial-gradient(900px 600px at 55% 85%, rgba(59, 130, 246, 0.08), transparent 60%),
       var(--bg);
     overflow: hidden;
   }
   .starfield-bg::before{
     content:"";
     position:absolute; inset:-20%;
     background-image:
       radial-gradient(circle, rgba(255,255,255,.22) 1px, transparent 1px),
       radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1px);
     background-size: 44px 44px, 72px 72px;
     background-position: 0 0, 20px 40px;
     opacity: .26;
     transform: translateZ(0);
     animation: starDrift 22s linear infinite;
     pointer-events:none;
   }
   @keyframes starDrift {
     from { transform: translate3d(0,0,0); }
     to   { transform: translate3d(120px, 80px, 0); }
   }
   
   /* ---- Gradient text + dividers ---- */
   .text-gradient{
     background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(226,232,240,.72));
     -webkit-background-clip: text;
     background-clip: text;
     color: transparent;
   }
   .glow-divider{
     height: 6px;
     width: 220px;
     margin: 22px auto;
     border-radius: 999px;
     background: linear-gradient(90deg,
       rgba(96,165,250,.00),
       rgba(96,165,250,.55),
       rgba(34,197,94,.40),
       rgba(59,130,246,.55),
       rgba(96,165,250,.00)
     );
     filter: blur(.2px);
     opacity: .95;
   }
   .glow-divider.small{ width: 140px; height: 6px; margin: 18px auto; }
   .animate-glow-pulse{ animation: glowPulse 2.6s ease-in-out infinite; }
   @keyframes glowPulse {
     0%,100% { transform: scaleX(.98); opacity: .75; }
     50% { transform: scaleX(1.02); opacity: 1; }
   }
   
   /* ---- Glass cards ---- */
   .glass-card{
     background: rgba(17,24,39,.55);
     border: 1px solid var(--border);
     border-radius: 18px;
   }
   .glass-card-hover{
     background: rgba(17,24,39,.55);
     border: 1px solid var(--border);
     border-radius: 18px;
     transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
   }
   .glass-card-hover:hover{
     transform: translateY(-2px);
     border-color: rgba(96,165,250,.28);
     background: rgba(17,24,39,.62);
     box-shadow: 0 0 35px -18px rgba(96,165,250,.35);
   }
   
   /* ---- Hero v2 ---- */
   .about-hero-v2{
     min-height: calc(100vh - 74px);
     display:flex;
     align-items:center;
     justify-content:center;
     padding: 64px 18px 44px;
   }
   .hero-ambient{
     position:absolute;
     inset:0;
     pointer-events:none;
   }
   .hero-ambient::after{
     content:"";
     position:absolute;
     top: 22%;
     left: 50%;
     transform: translateX(-50%);
     width: 600px;
     height: 600px;
     border-radius: 999px;
     background: rgba(96,165,250,.06);
     filter: blur(120px);
   }
   .about-hero-v2-inner{
     position:relative;
     text-align:center;
     max-width: 860px;
     z-index: 2;
   }
   .about-title-v2{
     font-size: clamp(2.6rem, 5vw, 4.4rem);
     font-weight: 850;
     letter-spacing: -0.5px;
     line-height: 1.05;
   }
   .about-subtitle-v2{
     margin-top: 14px;
     font-size: clamp(1.05rem, 1.6vw, 1.25rem);
     color: var(--muted);
     font-weight: 450;
   }
   .about-primary-btn{
     margin-top: 10px;
     padding: 14px 18px;
     border-radius: 14px;
     border: 1px solid rgba(96,165,250,.35);
     background: rgba(96,165,250,.18);
     color: rgba(255,255,255,.92);
     font-weight: 800;
     cursor:pointer;
     transition: transform .18s ease, background .18s ease, border-color .18s ease;
   }
   .about-primary-btn:hover{
     transform: translateY(-1px);
     background: rgba(96,165,250,.24);
     border-color: rgba(96,165,250,.55);
   }
   .about-hero-scrollhint{
     margin-top: 22px;
     display:inline-flex;
     align-items:center;
     gap:10px;
     color: rgba(226,232,240,.55);
     font-weight: 650;
     font-size: .92rem;
   }
   .scrollhint-dot{
     width: 10px; height: 10px; border-radius: 999px;
     background: rgba(96,165,250,.65);
     box-shadow: 0 0 0 8px rgba(96,165,250,.10);
   }
   
   /* ---- Layout ---- */
   .about-shell-v2{ padding: 22px 18px 34px; }
   .about-section-v2{ padding: 84px 0; }
   .about-center{ text-align:center; }
   .about-max-v2{ max-width: 820px; margin-left:auto; margin-right:auto; }
   
   .about-grid-2{ display:grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items:center; }
   .about-grid-2-v2{ display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
   .about-grid-3-v2{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
   
   .about-h2-v2{ font-size: clamp(1.9rem, 2.6vw, 2.5rem); font-weight: 850; }
   .about-p-v2{ margin-top: 10px; color: rgba(226,232,240,.70); font-size: 1.06rem; line-height: 1.65; }
   .about-p-v2.muted{ color: rgba(226,232,240,.60); }
   
   /* ---- Visual card ---- */
   .about-visual-card{ padding: 28px; min-height: 280px; display:flex; align-items:center; justify-content:center; }
   .about-visual-wrap{ position:relative; width: 220px; height: 220px; display:flex; align-items:center; justify-content:center; }
   .about-visual-icon{
     font-size: 92px;
     color: rgba(96,165,250,.40);
     animation: floaty 4.6s ease-in-out infinite;
   }
   .about-float-dot{
     position:absolute;
     border-radius: 999px;
     animation: floaty 4.6s ease-in-out infinite;
     opacity: .9;
   }
   .about-float-dot.dot-left{ width: 18px; height: 18px; left: 12px; top: 60px; background: rgba(239,68,68,.55); animation-delay: 1s; }
   .about-float-dot.dot-center{ width: 14px; height: 14px; left: 56px; bottom: 28px; background: rgba(34,197,94,.55); animation-delay: 2s; }
   .about-float-dot.dot-right{ width: 16px; height: 16px; right: 8px; top: 96px; background: rgba(59,130,246,.55); animation-delay: .5s; }
   @keyframes floaty{
     0%,100%{ transform: translateY(0); }
     50%{ transform: translateY(-10px); }
   }
   
   /* ---- Feature cards ---- */
   .about-feature-card{ padding: 26px; text-align:center; }
   .about-feature-card h3{ margin-top: 14px; font-size: 1.15rem; font-weight: 800; }
   .about-feature-card p{ margin-top: 8px; color: var(--muted); font-size: .95rem; }
   
   .feature-icon{
     width: 56px; height: 56px;
     margin: 0 auto;
     border-radius: 14px;
     display:flex; align-items:center; justify-content:center;
     border: 1px solid var(--border);
     background: rgba(255,255,255,.04);
     transition: transform .25s ease;
     color: rgba(255,255,255,.92);
   }
   .about-feature-card:hover .feature-icon{ transform: scale(1.07); }
   .bias-left-bg{ border-color: rgba(239,68,68,.22); background: rgba(239,68,68,.10); }
   .bias-center-bg{ border-color: rgba(34,197,94,.22); background: rgba(34,197,94,.10); }
   .bias-right-bg{ border-color: rgba(59,130,246,.22); background: rgba(59,130,246,.10); }
   .neutral-bg{ border-color: rgba(96,165,250,.18); background: rgba(96,165,250,.10); }
   
   /* ---- Buckets glow ---- */
   .about-bucket-card{ padding: 26px; text-align:center; cursor:pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
   .about-bucket-card:hover{ transform: translateY(-2px) scale(1.01); }
   .bucket-title{ font-size: 1.6rem; font-weight: 900; letter-spacing: 1.2px; }
   .bucket-left{ color: hsl(var(--bias-left)); }
   .bucket-center{ color: hsl(var(--bias-center)); }
   .bucket-right{ color: hsl(var(--bias-right)); }
   
   .hover-glow-left:hover{ border-color: hsl(var(--bias-left) / .50); box-shadow: 0 0 35px -10px hsl(var(--bias-left) / .35); }
   .hover-glow-center:hover{ border-color: hsl(var(--bias-center) / .50); box-shadow: 0 0 35px -10px hsl(var(--bias-center) / .30); }
   .hover-glow-right:hover{ border-color: hsl(var(--bias-right) / .50); box-shadow: 0 0 35px -10px hsl(var(--bias-right) / .35); }
   
   /* root bucket glow (subtle page tint) */
   :root[data-aboutBucket="left"] .about-shell-v2 { box-shadow: 0 0 0 9999px hsl(var(--bias-left) / 0.03) inset; }
   :root[data-aboutBucket="center"] .about-shell-v2 { box-shadow: 0 0 0 9999px hsl(var(--bias-center) / 0.03) inset; }
   :root[data-aboutBucket="right"] .about-shell-v2 { box-shadow: 0 0 0 9999px hsl(var(--bias-right) / 0.03) inset; }
   
   .about-footnote{
     margin-top: 16px;
     color: rgba(226,232,240,.55);
     font-size: .86rem;
     line-height: 1.55;
     text-align:center;
     max-width: 820px;
     margin-left:auto;
     margin-right:auto;
   }
   .about-footnote-link{
     color: rgba(255,255,255,.92);
     text-decoration: underline;
     text-underline-offset: 3px;
   }
   .about-footnote-link:hover{ color: var(--accent-2); }
   
   /* ---- Steps ---- */
   .about-step-card{ padding: 24px; text-align:left; }
   .step-head{ display:flex; align-items:flex-start; gap: 14px; }
   .step-icon{
     width: 48px; height: 48px;
     border-radius: 14px;
     display:flex; align-items:center; justify-content:center;
     background: rgba(96,165,250,.12);
     border: 1px solid rgba(96,165,250,.22);
     color: rgba(255,255,255,.92);
   }
   .step-kicker{
     font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
     font-size: .78rem;
     color: rgba(226,232,240,.55);
     margin-bottom: 4px;
   }
   .about-step-card h3{ font-size: 1.12rem; font-weight: 820; }
   .about-step-card p{ margin-top: 10px; color: rgba(226,232,240,.65); font-size: .95rem; line-height: 1.6; }
   
   /* ---- Blindspot ring cards ---- */
   .about-ring-card{
     padding: 28px;
     text-align:center;
     border: 1px solid rgba(148,163,184,.18);
     position: relative;
     overflow:hidden;
   }
   .about-ring-card::after{
     content:"";
     position:absolute;
     inset: -20%;
     border-radius: 999px;
     opacity: .35;
     animation: ringPulse 2.8s ease-in-out infinite;
   }
   .ring-left::after{ background: radial-gradient(circle, hsl(var(--bias-left) / .20), transparent 55%); }
   .ring-right::after{ background: radial-gradient(circle, hsl(var(--bias-right) / .20), transparent 55%); }
   @keyframes ringPulse{
     0%,100%{ transform: scale(.92); opacity:.22; }
     50%{ transform: scale(1.02); opacity:.40; }
   }
   .ring-icon{ font-size: 38px; display:block; margin: 0 auto 14px; }
   .about-ring-card h3{ font-size: 1.12rem; font-weight: 820; }
   
   /* ---- Big card ---- */
   .about-big-card{ padding: 34px; border: 1px solid rgba(148,163,184,.22); }
   
   /* ---- MBFC ---- */
   .about-mbfc-card{
     padding: 22px;
     display:flex;
     justify-content:space-between;
     align-items:center;
     gap: 14px;
   }
   .mbfc-title{ font-weight: 900; font-size: 1.05rem; }
   .mbfc-sub{ margin-top: 6px; color: rgba(226,232,240,.62); font-size: .95rem; }
   
   .about-mbfc-btn{
     border: 1px solid rgba(96,165,250,.30);
     background: rgba(96,165,250,.12);
     padding: 12px 14px;
     border-radius: 14px;
     font-weight: 800;
     color: rgba(255,255,255,.92);
     text-decoration:none;
     display:inline-flex;
     align-items:center;
     gap: 10px;
     transition: transform .18s ease, background .18s ease, border-color .18s ease;
   }
   .about-mbfc-btn:hover{
     transform: translateY(-1px);
     background: rgba(96,165,250,.18);
     border-color: rgba(96,165,250,.50);
   }
   
   /* ---- CTA ---- */
   .about-cta-text{
     margin-top: 12px;
     font-size: clamp(1.6rem, 2.8vw, 2.3rem);
     font-weight: 850;
   }
   .about-cta-btn{
     margin-top: 18px;
     display:inline-flex;
     padding: 12px 16px;
     border-radius: 14px;
     border: 1px solid rgba(96,165,250,.30);
     background: rgba(255,255,255,.03);
     color: rgba(255,255,255,.92);
     font-weight: 800;
     text-decoration:none;
     transition: transform .18s ease, background .18s ease, border-color .18s ease;
   }
   .about-cta-btn:hover{
     transform: translateY(-1px);
     background: rgba(96,165,250,.08);
     border-color: rgba(96,165,250,.40);
   }
   
   /* ---- Scroll reveal ---- */
   .sr{ opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
   .sr.in{ opacity: 1; transform: translateY(0); }
   
   /* ---- Responsive ---- */
   @media (max-width: 980px){
     .about-grid-2{ grid-template-columns: 1fr; }
     .about-grid-2-v2{ grid-template-columns: 1fr; }
     .about-grid-3-v2{ grid-template-columns: 1fr; }
     .about-section-v2{ padding: 64px 0; }
     .about-hero-v2{ min-height: calc(100vh - 118px); }
   }
   
   /* =========================================================
   ABOUT PAGE — PATCH v2 (append BELOW your current About CSS)
   - Adds subtle section separators (line + soft tint)
   - Improves hero background (no palette change)
   - Bigger CTA button
   - Adds vertical spacing between headings/subtitles and cards/buttons
   - Removes any reliance on em-dash (layout spacing only)
   ========================================================= */

/* ---------- 1) Section separators (subtle line + fade) ---------- */
.about-section-v2{
  position: relative;
  padding: 56px 0;                 /* reduce dead space */
  scroll-margin-top: 110px;
}

/* top divider for every section except the first inside shell */
.about-shell-v2 .about-section-v2 + .about-section-v2::before{
  content:"";
  position:absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: min(860px, 92%);
  height: 1px;
  background: linear-gradient(90deg,
    rgba(96,165,250,0),
    rgba(148,163,184,.22),
    rgba(96,165,250,0)
  );
  opacity: .9;
}

/* soft band behind the divider */
.about-shell-v2 .about-section-v2 + .about-section-v2::after{
  content:"";
  position:absolute;
  left: 50%;
  top: -32px;
  transform: translateX(-50%);
  width: min(980px, 96%);
  height: 64px;
  background: linear-gradient(180deg,
    rgba(96,165,250,.06),
    rgba(96,165,250,0)
  );
  filter: blur(0.2px);
  pointer-events:none;
  opacity: .9;
}

/* ---------- 2) Hero background upgrade ---------- */
.about-hero-v2{
  padding: 76px 18px 54px; /* more breathing room */
}

/* layered glow + subtle "grid" like intel dashboards */
.starfield-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(700px 360px at 50% 38%, rgba(96,165,250,.12), transparent 60%),
    radial-gradient(540px 320px at 62% 42%, rgba(34,197,94,.07), transparent 62%),
    radial-gradient(620px 340px at 38% 46%, rgba(59,130,246,.09), transparent 62%),
    linear-gradient(to bottom, rgba(2,6,23,.35), rgba(2,6,23,.00) 40%, rgba(2,6,23,.35));
  pointer-events:none;
}

/* subtle grid overlay */
.about-hero-v2 .hero-ambient::before{
  content:"";
  position:absolute;
  inset:-2px;
  background-image:
    linear-gradient(to right, rgba(148,163,184,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148,163,184,.06) 1px, transparent 1px);
  background-size: 84px 84px;
  opacity: .18;
  mask-image: radial-gradient(circle at 50% 40%, rgba(0,0,0,1), rgba(0,0,0,0) 62%);
  pointer-events:none;
}

/* ---------- 3) Bigger hero CTA button ---------- */
.about-primary-btn{
  margin-top: 18px;
  padding: 18px 24px;
  border-radius: 16px;
  font-size: 1.02rem;
  letter-spacing: 0.2px;
  min-width: 260px;
}

/* ---------- 4) Add spacing between headings/subtitles and content ---------- */
.about-center{
  margin-bottom: 26px;  /* creates gap before cards/buttons */
}
.about-center .about-p-v2{
  margin-top: 12px;
}

/* specifically for buckets section: extra gap between subtitle and cards */
#buckets .about-center{
  margin-bottom: 34px;
}

/* methodology heading gap */
#methodology .about-center{
  margin-bottom: 30px;
}

/* blindspot heading gap */
#blindspot .about-center{
  margin-bottom: 30px;
}

/* reduce clutter in general cards by adding a bit of internal spacing */
.about-bucket-card p{
  margin-top: 10px;
  color: rgba(226,232,240,.68);
}

/* ---------- 5) Tighten layout a bit (less huge gaps) ---------- */
.about-shell-v2{
  padding: 14px 18px 28px;
}

/* ---------- 6) Responsive tuning ---------- */
@media (max-width: 980px){
  .about-section-v2{ padding: 46px 0; }
  .about-primary-btn{ width: min(320px, 92%); }
  .about-center{ margin-bottom: 22px; }
  #buckets .about-center{ margin-bottom: 26px; }
}
/* =========================================================
   ABOUT PAGE — Full-width section divider (override)
   Add at END of style.css
   ========================================================= */

/* Kill the narrow centered divider/band */
.about-shell-v2 .about-section-v2 + .about-section-v2::before,
.about-shell-v2 .about-section-v2 + .about-section-v2::after{
  content: none !important;
}

/* Full-width divider line */
.about-shell-v2 .about-section-v2 + .about-section-v2{
  position: relative;
}
.about-shell-v2 .about-section-v2 + .about-section-v2::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: 0;

  height: 1px;
  background: linear-gradient(90deg,
    rgba(148,163,184,0),
    rgba(148,163,184,.26),
    rgba(148,163,184,0)
  );
  opacity: .95;
  pointer-events:none;
}

/* Full-width soft band behind the line */
.about-shell-v2 .about-section-v2 + .about-section-v2::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: -32px;

  height: 64px;
  background: linear-gradient(180deg,
    rgba(96,165,250,.06),
    rgba(96,165,250,0)
  );
  pointer-events:none;
  opacity: .9;
}
/* =========================================================
   ABOUT PAGE — Divider FIX (reliable)
   Add at END of style.css
   ========================================================= */

/* Full-width divider using a border (cannot "disappear") */
.about-shell-v2 .about-section-v2 + .about-section-v2{
  position: relative;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 56px; /* keeps spacing after the divider */
}

/* Soft band above the divider */
.about-shell-v2 .about-section-v2 + .about-section-v2::before{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  top: -32px;
  height: 64px;
  background: linear-gradient(180deg, rgba(96,165,250,.06), rgba(96,165,250,0));
  pointer-events:none;
  z-index: 0;
}

/* Ensure section content stays above the band */
.about-shell-v2 .about-section-v2{
  position: relative;
  z-index: 1;
}

/* =========================================================
   HOME SEARCH (append to end of style.css)
   ========================================================= */

   .search-panel{
    max-width: 820px;
    margin: 0.9rem auto 0;
  }
  
  .search-row{
    display: flex;
    gap: 10px;
    justify-content: center;
  }
  
  .search-input-wrap{
    position: relative;
    width: min(820px, 100%);
    display: flex;
    align-items: center;
    background: rgba(17, 24, 39, 0.55);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 12px;
  }
  
  .search-input-wrap i{
    color: rgba(226, 232, 240, 0.55);
    margin-right: 10px;
    font-size: 0.95rem;
  }
  
  .search-input-wrap input{
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 550;
    padding: 6px 38px 6px 0;
  }
  
  .search-input-wrap input::placeholder{
    color: rgba(226, 232, 240, 0.45);
    font-weight: 500;
  }
  
  .search-clear{
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  }
  
  .search-clear:hover{
    transform: translateY(-50%) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(96, 165, 250, 0.28);
  }
  
  .search-results{
    margin-top: 12px;
    background: rgba(2, 6, 23, 0.55);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
  }
  
  .search-result-card{
    padding: 12px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  }
  
  .search-result-card:last-child{
    border-bottom: none;
  }
  
  .search-result-title{
    display: block;
    color: rgba(255,255,255,.92);
    text-decoration: none;
    font-weight: 700;
    line-height: 1.35;
  }
  
  .search-result-title:hover{
    color: var(--accent-2);
  }
  
  .search-result-meta{
    margin-top: 6px;
    color: rgba(226, 232, 240, 0.60);
    font-size: 0.86rem;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .search-result-topic{
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(226, 232, 240, 0.80);
    font-weight: 650;
    font-size: 0.78rem;
  }
  
  @media (max-width: 768px){
    .search-panel{ margin-top: 0.75rem; }
  }

  .search-result-btn{
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
  }

  .topic-card { scroll-margin-top: 110px; }
