/* ============================================================
   BEYOND BRAIN HEALTH — NSRI™ Evidence Page
   Prefix: ev-
   Requires: global.css, header.css
   ============================================================ */

/* ============================================================
   HERO
   ============================================================ */
body{
  background: var(--bg-dark);
}
.bbh-btn-ghost-light{
    color: var(--soft-white);
    text-align: center;
    text-decoration: underline;
  }
.ev-hero {
  background: var(--bg-dark);
  padding: 80px 0 64px;
  position: relative;
  overflow: hidden;
}

.ev-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 90% 40%, rgba(0,88,89,0.4) 0%, transparent 65%),
    radial-gradient(ellipse 50% 70% at 5% 90%,  rgba(1,68,37,0.5) 0%, transparent 60%);
  pointer-events: none;
}

.ev-hero-inner {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--section-px);
  position: relative;
}

.ev-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--r-full);
  padding: 6px 16px;
  font-family: var(--font-ui);
  font-size: var(--type-cap);
  font-weight: 600;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--s6);
}

.ev-hero-eyebrow span {
  width: 6px;
  height: 6px;
  background: var(--brand-orange);
  border-radius: var(--r-full);
  flex-shrink: 0;
}

.ev-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  line-height: var(--lh-display);
  color: var(--text-inverse);
  margin-bottom: var(--s5);
  max-width: 780px;
  letter-spacing: var(--ls-tight);
}

.ev-hero h1 em {
  font-style: italic;
  color: var(--brand-mint);
}

.ev-hero-sub {
  font-size: var(--type-lead);
  color: var(--text-inverse-dim);
  max-width: 620px;
  line-height: var(--lh-relaxed);
  margin-bottom: var(--s10);
}

.ev-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
}

.ev-hero-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--r-sm);
  padding: var(--s3) var(--s5);
  font-family: var(--font-ui);
  font-size: var(--type-sm);
  color: var(--text-inverse-dim);
  font-weight: 500;
}

.ev-hero-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-inverse);
  line-height: 1.2;
  margin-bottom: 2px;
}

/* ============================================================
   SHARED SECTION LAYOUT
   ============================================================ */

.ev-section {
  padding: var(--s16) 0;
  border-top: 1px solid var(--border);
}

.ev-section.ev-bg-cream  { background: var(--warm-cream); }
.ev-section.ev-bg-white  { background: var(--soft-white); }
.ev-section.ev-bg-teal   { background: var(--teal-wash); }

.ev-container {
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

.ev-section-label {
  font-family: var(--font-ui);
  font-size: var(--type-tag);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--brand-terracotta);
  margin-bottom: var(--s2);
}

.ev-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: var(--lh-heading);
  color: var(--brand-teal);
  margin-bottom: var(--s4);
}

.ev-section-intro {
  font-family: var(--font-ui);
  font-size: var(--type-lead);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--s10);
}

/* ============================================================
   TOC
   ============================================================ */

.ev-toc {
  background: var(--soft-white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s6);
  margin-bottom: var(--s10);
}

.ev-toc-label {
  font-family: var(--font-ui);
  font-size: var(--type-tag);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--brand-terracotta);
  margin-bottom: var(--s3);
}

.ev-toc-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}

.ev-toc-link {
  font-family: var(--font-ui);
  font-size: var(--type-sm);
  font-weight: 500;
  background: var(--teal-wash);
  color: var(--brand-teal);
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 1px solid var(--border);
  transition: background var(--t-fast), border-color var(--t-fast);
  text-decoration: none;
}

.ev-toc-link:hover {
  background: var(--teal-wash-hover);
  border-color: var(--brand-teal);
}

/* ============================================================
   DEF / CALLOUT BOXES
   ============================================================ */

.ev-def-box {
  background: rgba(0, 88, 89, 0.07);
  border-left: 4px solid var(--brand-teal);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--s6) var(--s8);
  margin-bottom: var(--s8);
}

.ev-def-box p {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--brand-teal);
  line-height: 1.65;
}

.ev-callout {
  background: var(--brand-teal);
  border-radius: var(--r-md);
  padding: var(--s6) var(--s8);
  margin: var(--s6) 0;
}

.ev-callout p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-inverse);
  line-height: 1.65;
}

.ev-callout-orange {
  background: var(--orange-wash, rgba(251,122,2,0.07));
  border-left: 4px solid var(--brand-terracotta);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--s5) var(--s6);
  margin: var(--s6) 0;
}

.ev-callout-orange p {
  font-family: var(--font-ui);
  font-size: var(--type-body);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.ev-callout-orange strong {
  color: var(--brand-terracotta);
}

.ev-data-note {
  background: rgba(251,122,2,0.07);
  border-left: 3px solid var(--brand-terracotta);
  border-radius: 0 var(--r-xs) var(--r-xs) 0;
  padding: var(--s3) var(--s4);
  font-family: var(--font-ui);
  font-size: var(--type-sm);
  color: var(--brand-terracotta);
  font-weight: 500;
  margin-bottom: var(--s8);
}

/* ============================================================
   QUOTE BLOCK
   ============================================================ */

.ev-quote {
  border-left: 4px solid var(--brand-terracotta);
  padding: var(--s5) var(--s8);
  margin: var(--s8) 0;
  background: rgba(180, 48, 0, 0.04);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.ev-quote blockquote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--brand-teal);
  line-height: 1.55;
  margin-bottom: var(--s2);
}

.ev-quote-attr {
  font-family: var(--font-ui);
  font-size: var(--type-sm);
  font-weight: 600;
  color: var(--brand-terracotta);
  letter-spacing: 0.04em;
}

/* ============================================================
   STAT CARDS
   ============================================================ */

.ev-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--s4);
  margin: var(--s8) 0;
}

.ev-stat-card {
  background: var(--soft-white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand-teal);
  border-radius: var(--r-sm);
  padding: var(--s6) var(--s5);
  text-align: center;
}

.ev-stat-card.ev-orange {
  border-top-color: var(--brand-terracotta);
}

.ev-stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-teal);
  line-height: 1;
  margin-bottom: var(--s2);
}

.ev-stat-card.ev-orange .ev-stat-num {
  color: var(--brand-terracotta);
}

.ev-stat-lbl {
  font-family: var(--font-ui);
  font-size: var(--type-sm);
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   TABLE
   ============================================================ */

.ev-table-wrap {
  overflow-x: auto;
  margin-bottom: var(--s6);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
}

.ev-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: var(--type-sm);
}

.ev-table thead tr {
  background: var(--brand-teal);
}

.ev-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: var(--type-tag);
  font-weight: 600;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-inverse);
  white-space: nowrap;
}

.ev-table tbody tr:nth-child(even) {
  background: var(--teal-wash);
}

.ev-table tbody tr:nth-child(odd) {
  background: var(--soft-white);
}

.ev-table tbody tr:hover {
  background: var(--teal-wash-hover);
}

.ev-table tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  line-height: 1.55;
  vertical-align: top;
}

.ev-table tbody td:first-child {
  font-weight: 600;
  color: var(--brand-teal);
}

.ev-table tbody td a {
  color: var(--mint-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   DOMAIN CARDS (animated bars)
   ============================================================ */

.ev-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s4);
  margin: var(--s6) 0;
}

.ev-domain-card {
  background: var(--soft-white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s6);
  position: relative;
  overflow: hidden;
}

.ev-domain-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--brand-teal);
}

.ev-domain-card.ev-domain-weak::before {
  background: var(--brand-terracotta);
}

.ev-domain-num {
  font-family: var(--font-ui);
  font-size: var(--type-tag);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--s1);
}

.ev-domain-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand-teal);
  margin-bottom: var(--s3);
}

.ev-domain-card.ev-domain-weak .ev-domain-name {
  color: var(--brand-terracotta);
}

.ev-bar-wrap {
  background: var(--border);
  border-radius: var(--r-full);
  height: 7px;
  margin-bottom: var(--s2);
  overflow: hidden;
}

.ev-bar {
  height: 100%;
  border-radius: var(--r-full);
  background: var(--brand-teal);
  width: 0%;
  transition: width 1.2s var(--ease-out);
}

.ev-domain-card.ev-domain-weak .ev-bar {
  background: var(--brand-terracotta);
}

.ev-domain-pct {
  font-family: var(--font-ui);
  font-size: var(--type-sm);
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: var(--s3);
}

.ev-domain-desc {
  font-family: var(--font-ui);
  font-size: var(--type-sm);
  color: var(--text-muted);
  line-height: var(--lh-body);
}

/* ============================================================
   VULNERABILITIES LIST
   ============================================================ */

.ev-vuln-list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin: var(--s6) 0;
}

.ev-vuln-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: var(--s4);
  align-items: center;
  background: var(--soft-white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s4) var(--s5);
  transition: border-color var(--t-fast);
}

.ev-vuln-item:hover {
  border-color: var(--brand-teal);
}

.ev-vuln-rank {
  width: 36px;
  height: 36px;
  background: var(--brand-teal);
  color: var(--text-inverse);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--type-sm);
  flex-shrink: 0;
}

.ev-vuln-item:nth-child(1) .ev-vuln-rank,
.ev-vuln-item:nth-child(2) .ev-vuln-rank,
.ev-vuln-item:nth-child(3) .ev-vuln-rank {
  background: var(--brand-terracotta);
}

.ev-vuln-name {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--type-body);
}

.ev-vuln-domain {
  font-size: var(--type-tag);
  color: var(--text-muted);
  font-weight: 400;
}

.ev-vuln-finding {
  font-family: var(--font-ui);
  font-size: var(--type-sm);
  color: var(--text-muted);
  margin-top: 2px;
  line-height: var(--lh-body);
}

.ev-vuln-pct {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-terracotta);
  white-space: nowrap;
}

/* ============================================================
   BOTTLENECK GRID
   ============================================================ */

.ev-bn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s3);
  margin: var(--s6) 0;
}

.ev-bn-card {
  background: var(--soft-white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s5);
  transition: border-color var(--t-fast);
}

.ev-bn-card:hover {
  border-color: var(--brand-teal);
}

.ev-bn-pct {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-teal);
  line-height: 1;
  margin-bottom: var(--s1);
}

.ev-bn-name {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: var(--type-sm);
  color: var(--text-primary);
  margin-bottom: var(--s1);
}

.ev-bn-mod {
  font-family: var(--font-ui);
  font-size: var(--type-tag);
  color: var(--text-muted);
}

/* ============================================================
   SECTION SUBHEADING
   ============================================================ */

.ev-sh {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brand-teal);
  margin: var(--s10) 0 var(--s4);
}

/* ============================================================
   REFERENCE LIST
   ============================================================ */

.ev-ref-group {
  margin-bottom: var(--s8);
}

.ev-ref-group-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand-teal);
  border-bottom: 2px solid var(--border);
  padding-bottom: var(--s2);
  margin-bottom: var(--s3);
  line-height: var(--lh-heading);
}

.ev-ref-list {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.ev-ref-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s4);
  align-items: start;
  padding: var(--s3) var(--s4);
  background: var(--soft-white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font-ui);
  font-size: var(--type-sm);
  line-height: 1.65;
  color: var(--text-secondary);
  transition: border-color var(--t-fast);
}

.ev-ref-item:hover {
  border-color: var(--brand-teal);
}

.ev-ref-num {
  color: var(--brand-teal);
  font-weight: 700;
}

.ev-ref-item a {
  color: var(--mint-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ev-badge-verified {
  display: inline-block;
  background: var(--teal-wash);
  color: var(--mint-dark);
  font-family: var(--font-ui);
  font-size: var(--type-tag);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.ev-badge-landmark {
  display: inline-block;
  background: var(--brand-teal);
  color: var(--text-inverse);
  font-family: var(--font-ui);
  font-size: var(--type-tag);
  font-weight: 700;
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.ev-ref-note {
  font-size: var(--type-tag);
  color: var(--text-muted);
  margin-top: var(--s1);
  display: block;
}

/* ============================================================
   CTA STRIP
   ============================================================ */

.ev-cta-strip {
  background: var(--bg-dark);
  padding: var(--s20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.ev-cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(1,68,37,0.5) 0%, transparent 70%);
  pointer-events: none;
}

.ev-cta-inner {
  max-width: var(--max-mid);
  margin: 0 auto;
  padding: 0 var(--section-px);
  position: relative;
}

.ev-cta-strip h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  color: var(--text-inverse);
  margin-bottom: var(--s3);
  line-height: var(--lh-heading);
}

.ev-cta-strip p {
  font-family: var(--font-ui);
  font-size: var(--type-lead);
  color: var(--text-inverse-dim);
  max-width: 480px;
  margin: 0 auto var(--s8);
  line-height: var(--lh-relaxed);
}

.ev-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
  .ev-vuln-pct       { display: none; }
  .ev-vuln-item      { grid-template-columns: 36px 1fr; }

  .ev-cta-actions    { flex-direction: column; }
}

@media (max-width: 480px) {
  .ev-stat-grid      { grid-template-columns: 1fr 1fr; }
  .ev-hero-badges    { gap: var(--s2); }
  .ev-ref-item       { grid-template-columns: 1fr; }
  .ev-badge-verified,
  .ev-badge-landmark { display: none; }
}