/* ═══════════════════════════════════════
   DEEPER – Science Page Styles
   ═══════════════════════════════════════ */

/* ── Science Hero ── */
.science-hero {
  background: var(--near-black);
  padding: calc(var(--nav-height) + 60px) 0 60px;
  text-align: center;
  position: relative;
}

.science-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 60%,
    rgba(212, 175, 55, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.science-hero .container {
  position: relative;
  z-index: 1;
}

.science-hero-sub {
  font-family: var(--ff-heading);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-style: italic;
  font-weight: 400;
  color: var(--cream);
  opacity: 0.7;
  max-width: 640px;
  margin: 20px auto 0;
  line-height: 1.7;
}

/* ── Science Sections ── */
.science-section {
  position: relative;
}

.science-section .body-lg {
  margin-bottom: 40px;
}

/* ── Science Cards ── */
.science-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: 28px;
  position: relative;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.science-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height 0.5s ease;
}

.science-card:hover::before {
  height: 100%;
}

.science-card:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.science-card p {
  margin-bottom: 16px;
  line-height: 1.75;
}

.science-card p:last-of-type {
  margin-bottom: 8px;
}

/* Dark variant */
.science-card-dark {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(212, 175, 55, 0.1);
}

.science-card-dark:hover {
  border-color: rgba(212, 175, 55, 0.3);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.science-card-title {
  font-family: var(--ff-heading);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 600;
  margin-bottom: 18px;
  line-height: 1.3;
}

/* ── Citations within cards ── */
.science-cite {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--cream-dark);
  line-height: 1.5;
}

.science-card-dark .science-cite {
  border-top-color: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
  opacity: 0.7;
}

/* ── Science List ── */
.science-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.science-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
  line-height: 1.7;
}

.science-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* ── Pull Quote ── */
.science-pullquote {
  position: relative;
  text-align: center;
  padding: clamp(40px, 5vw, 72px) clamp(20px, 4vw, 48px);
  margin: 48px 0 0;
}

.science-pullquote .excerpt-mark {
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.5;
  margin-bottom: -10px;
  display: block;
}

.science-pullquote .heading-elegant {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Math Table ── */
.math-table {
  margin: 24px 0 8px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.math-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.math-row span,
.math-row span.text-muted,
.math-row span.text-gold {
  padding: 14px 16px;
  font-family: var(--ff-body);
  font-size: 0.95rem;
  color: var(--cream);
  border-bottom: 1px solid rgba(212, 175, 55, 0.08);
  border-right: 1px solid rgba(212, 175, 55, 0.08);
  line-height: 1.4;
}

.math-row span.text-gold {
  color: var(--gold);
}

.math-row span.text-muted {
  color: rgba(250, 247, 240, 0.5);
}

.math-row span:last-child {
  border-right: none;
}

.math-header {
  background: rgba(212, 175, 55, 0.08);
}

.math-header span {
  font-family: var(--ff-display);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 12px 16px;
}

.math-row-highlight {
  background: rgba(212, 175, 55, 0.06);
}

.math-row-highlight span {
  border-bottom-color: rgba(212, 175, 55, 0.12);
}

/* ── Key Research / Citations List ── */
.citations-list {
  margin-top: 32px;
}

.citation-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--cream-dark);
}

.citation-item:first-child {
  border-top: 1px solid var(--cream-dark);
}

.citation-authors {
  font-family: var(--ff-display);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.citation-title {
  font-family: var(--ff-heading);
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  color: var(--text-body);
  margin-bottom: 4px;
  line-height: 1.4;
}

.citation-journal {
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--gold-dark);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 600px) {
  .math-row {
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    min-width: 480px;
  }

  .science-card {
    padding: 24px;
  }

  .science-pullquote {
    margin-top: 32px;
    padding: 32px 16px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .math-row span {
    padding: 12px;
    font-size: 0.9rem;
  }
}
