/* ═══════════════════════════════════════════════════
   OVERVIEW PAGE — uses wordscout.css tokens
   ═══════════════════════════════════════════════════ */

/* ── SUB-NAV (science section pages) ───────────────── */
.sci-subnav {
  background: var(--teal-light);
  border-bottom: 2px solid var(--teal);
  display: flex;
  justify-content: center;
  gap: 4px;
  padding: 8px 20px;
  flex-wrap: wrap;
}

.sci-subnav-link {
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--teal-dark);
  transition: background 0.18s, color 0.18s;
}

.sci-subnav-link:hover,
.sci-subnav-link.active {
  background: var(--teal);
  color: white;
}

/* ── SHARED LABEL ───────────────────────────────────── */
.ov-section-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.5rem;
  display: block;
}

/* ── HERO ───────────────────────────────────────────── */
.ov-hero {
  background: linear-gradient(135deg, var(--teal) 0%, #00d8e8 60%, #00e0b8 100%);
  padding: 0 1.5rem;
}

.ov-hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0;
  position: relative;
}

/* Dot-grid texture */
.ov-hero-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
  pointer-events: none;
}

.ov-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.2);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 40px;
  margin-bottom: 1.5rem;
  width: fit-content;
  position: relative;
  z-index: 1;
}

.ov-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.ov-title-accent {
  color: var(--yellow);
  font-style: italic;
}

.ov-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  max-width: 480px;
  line-height: 1.75;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.ov-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Floating stat pills */
.ov-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.ov-stat {
  background: white;
  border-radius: var(--radius);
  padding: 18px 22px;
  min-width: 160px;
  box-shadow: var(--shadow-md);
  animation: ovFloat 5.5s ease-in-out infinite;
}

.ov-stat:nth-child(2) { animation-delay: -1.8s; }
.ov-stat:nth-child(3) { animation-delay: -3.6s; }

@keyframes ovFloat {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.ov-stat-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1;
  margin-bottom: 5px;
}

.ov-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.4;
}

/* ── INTRO SECTION ──────────────────────────────────── */
.ov-intro {
  background: var(--cream);
  padding: 5rem 1.5rem;
}

.ov-intro-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}

.ov-intro-text h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--ink);
}

.ov-intro-text p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: rgba(42,42,42,0.85);
  margin-bottom: 1rem;
}

.ov-pull-quote {
  background: var(--yellow);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
  position: relative;
}

.ov-pull-quote::before {
  content: '\201C';
  font-size: 5rem;
  color: rgba(0,181,202,0.2);
  position: absolute;
  top: -10px;
  left: 16px;
  line-height: 1;
  font-style: normal;
}

.ov-pull-attr {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 12px;
  padding-left: 4px;
}

/* ── TECHNIQUES GRID ────────────────────────────────── */
.ov-techniques {
  background: var(--ink);
  padding: 5rem 1.5rem;
  text-align: center;
}

.ov-techniques .ov-section-label {
  color: var(--teal);
}

.ov-techniques-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--yellow);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.ov-techniques-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  max-width: 540px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.ov-tech-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  text-align: left;
}

.ov-tech-card {
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  color: white;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}

.ov-tech-card:hover {
  transform: translateY(-5px);
  color: white;
}

.ov-tech--retrieval:hover   { background: rgba(0,181,202,0.18); border-color: var(--teal); }
.ov-tech--spaced:hover      { background: rgba(252,236,97,0.12); border-color: var(--yellow); }
.ov-tech--elaborative:hover { background: rgba(76,175,80,0.12); border-color: #4caf50; }
.ov-tech--protege:hover     { background: rgba(156,39,176,0.12); border-color: #9c27b0; }

.ov-tech-num {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.2;
  margin-bottom: 10px;
  color: var(--teal);
}

.ov-tech-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.ov-tech-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
  line-height: 1.3;
}

.ov-tech-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 14px;
}

.ov-tech-stat {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.ov-tech-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.18s;
}

.ov-tech-card:hover .ov-tech-cta { gap: 10px; }

/* ── EXPLORE GRID ───────────────────────────────────── */
.ov-explore {
  background: white;
  padding: 5rem 1.5rem;
}

.ov-explore > h2 {
  max-width: var(--container);
  margin: 0 auto 0.75rem;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 800;
  color: var(--ink);
}

.ov-explore-sub {
  max-width: var(--container);
  margin: 0 auto 2.5rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
}

.ov-explore-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.ov-explore-card {
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.ov-explore-card::after {
  content: '';
  position: absolute;
  bottom: -30px; right: -30px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  pointer-events: none;
}

.ov-explore-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}

.ov-explore--facts       { background: #f5c842; }
.ov-explore--explanation { background: var(--teal); color: white; }
.ov-explore--glossary    { background: #1a6b50; color: white; }
.ov-explore--resources   { background: var(--teal-light); }

.ov-explore-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.ov-explore-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.2;
  color: inherit;
}

.ov-explore-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  flex: 1;
  opacity: 0.85;
  margin-bottom: 18px;
  color: inherit;
}

.ov-explore-link {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin-top: auto;
  display: inline-block;
  color: inherit;
  opacity: 0.9;
}

/* ── BACK STRIP ─────────────────────────────────────── */
.ov-back-strip {
  background: var(--yellow);
  padding: 4rem 1.5rem;
}

.ov-back-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.ov-back-inner h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.ov-back-inner p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.6;
}

.ov-back-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.btn-yellow {
  background: var(--ink);
  color: var(--yellow);
}

.btn-yellow:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 860px) {
  .ov-hero-inner { grid-template-columns: 1fr; padding: 3.5rem 0; }
  .ov-hero-stats { flex-direction: row; flex-wrap: wrap; }
  .ov-stat { min-width: 120px; flex: 1; }
  .ov-intro-inner { grid-template-columns: 1fr; gap: 2rem; }
  .ov-back-inner { grid-template-columns: 1fr; }
  .ov-back-btns { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 640px) {
  .ov-hero { padding: 0 1rem; }
  .ov-hero-inner { padding: 3rem 0; }
  .ov-title { font-size: 2rem; }
  .ov-techniques { padding: 3.5rem 1rem; }
  .ov-explore { padding: 3.5rem 1rem; }
  .ov-back-strip { padding: 3rem 1rem; }
  .ov-tech-grid,
  .ov-explore-grid { grid-template-columns: 1fr; }
}
