/* ═══════════════════════════════════════════
   Learn Hub — page-specific styles
   Template: page-learn.php
   ═══════════════════════════════════════════
   Cluster color variables are defined in
   wv-learn-archive.css (:root block).
   ═══════════════════════════════════════════ */

/* ────────────────────────────────────────────
   1. HERO
   ──────────────────────────────────────────── */
.wv-lh-hero {
  background: var(--wv-color-background);
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--wv-color-border);
}
.wv-lh-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}
.wv-lh-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: start;
}

/* Hero — Left column */
.wv-lh-hero__eyebrow {
  font-family: var(--wv-font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--wv-color-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wv-lh-hero__eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--wv-color-primary);
}
.wv-lh-hero__title {
  font-family: var(--wv-font-serif);
  font-size: 54px;
  font-weight: 400;
  line-height: 1.08;
  color: var(--wv-color-text-primary);
  margin-bottom: 18px;
}
.wv-lh-hero__body {
  font-family: var(--wv-font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--wv-color-text-secondary);
  margin-bottom: 28px;
}
.wv-lh-hero__pills-label {
  font-family: var(--wv-font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #A09A8E; /* TODO: add to CSS variables if used across multiple pages */
  margin-bottom: 12px;
}
.wv-lh-hero__pills {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 10px;
  max-width: 420px;
}

/* Topic pills */
.wv-lh-tpill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--wv-font-primary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  padding: 9px 18px 8px;
  border-radius: var(--wv-radius-pill);
  border: 1px solid var(--wv-color-text-secondary);
  text-decoration: none;
  color: var(--wv-color-text-secondary);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--wv-transition-fast), color var(--wv-transition-fast), background var(--wv-transition-fast);
}
.wv-lh-tpill:hover {
  border-color: var(--wv-color-text-primary);
  color: var(--wv-color-text-primary);
}
.wv-lh-tpill--brand,
.wv-lh-tpill--neutral,
.wv-lh-tpill--f5 {
  background: var(--wv-color-background);
  color: var(--wv-color-text-secondary);
  border-color: var(--wv-color-text-secondary);
}
.wv-lh-tpill--brand:hover,
.wv-lh-tpill--neutral:hover,
.wv-lh-tpill--f5:hover {
  border-color: var(--wv-color-text-primary);
  color: var(--wv-color-text-primary);
}

/* Hero — Right column: Top Reads */
.wv-lh-hero__reads-label {
  font-family: var(--wv-font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #A09A8E; /* TODO: add to CSS variables if used across multiple pages */
  padding-bottom: 10px;
  border-bottom: 1px solid var(--wv-color-border);
  margin-bottom: 10px;
}
.wv-lh-mini-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--wv-color-surface);
  border: 1px solid var(--wv-color-border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color var(--wv-transition-fast), transform var(--wv-transition-fast);
}
.wv-lh-mini-card:last-child {
  margin-bottom: 0;
}
.wv-lh-mini-card:hover {
  border-color: var(--wv-color-text-secondary);
  transform: translateY(-2px);
}
.wv-lh-mini-card__inner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.wv-lh-mini-card__rank {
  font-family: var(--wv-font-serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: #A09A8E; /* TODO: add to CSS variables if used across multiple pages */
  flex-shrink: 0;
}
.wv-lh-mini-card__content {
  flex: 1;
  min-width: 0;
}
.wv-lh-mini-card__tags {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.wv-lh-mini-card__title {
  font-family: var(--wv-font-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--wv-color-text-primary);
  margin-bottom: 4px;
}
.wv-lh-mini-card__byline {
  font-family: var(--wv-font-primary);
  font-size: 11px;
  font-weight: 400;
  color: #A09A8E; /* TODO: add to CSS variables if used across multiple pages */
}

/* ────────────────────────────────────────────
   2. SECTIONS
   ──────────────────────────────────────────── */
.wv-lh-section {
  padding: 72px 0;
}
.wv-lh-section--surface {
  background: var(--wv-color-surface);
  border-top: 1px solid #E8E4D8; /* TODO: add to CSS variables if used across multiple pages */
  border-bottom: 1px solid #E8E4D8; /* TODO: add to CSS variables if used across multiple pages */
}
.wv-lh-section__intro {
  margin-bottom: 32px;
}
.wv-lh-section__eyebrow {
  font-family: var(--wv-font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #A09A8E; /* TODO: add to CSS variables if used across multiple pages */
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wv-lh-section__eyebrow::before {
  content: '';
  display: block;
  width: 16px;
  height: 1px;
  background: #A09A8E; /* TODO: add to CSS variables if used across multiple pages */
}
.wv-lh-section__heading {
  font-family: var(--wv-font-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--wv-color-text-primary);
  margin-bottom: 8px;
}
.wv-lh-section__sub {
  font-family: var(--wv-font-primary);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--wv-color-text-secondary);
}

/* ────────────────────────────────────────────
   3. FEATURED GRID
   ──────────────────────────────────────────── */
.wv-lh-feat-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 20px;
}
.wv-lh-feat-grid__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ────────────────────────────────────────────
   4. ARTICLE CARDS — now uses global wv-card.css
   Old wv-lh-card styles removed.
   ──────────────────────────────────────────── */

/* ────────────────────────────────────────────
   Card pills — neutral style
   ──────────────────────────────────────────── */
.wv-lh-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wv-font-primary);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px 3px;
  border-radius: var(--wv-radius-pill);
  border: 1px solid var(--wv-color-text-secondary);
  background: var(--wv-color-background);
  color: var(--wv-color-text-secondary);
  white-space: nowrap;
}

/* ────────────────────────────────────────────
   5. GOAL GRID
   ──────────────────────────────────────────── */
.wv-lh-goal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.wv-lh-goal-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #FFFFFF;
  border: 1px solid var(--wv-color-border);
  border-radius: 10px;
  padding: 24px 22px;
  cursor: pointer;
  transition: border-color var(--wv-transition-fast), transform var(--wv-transition-fast);
}
.wv-lh-goal-card:hover {
  border-color: var(--wv-color-text-secondary);
  transform: translateY(-2px);
}
.wv-lh-goal-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wv-lh-goal-card__label {
  font-family: var(--wv-font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--wv-color-text-primary);
  margin-bottom: 6px;
}
.wv-lh-goal-card__desc {
  font-family: var(--wv-font-primary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--wv-color-text-secondary);
  margin-bottom: 14px;
}
.wv-lh-goal-card__link {
  font-family: var(--wv-font-primary);
  font-size: 11px;
  font-weight: 600;
  color: var(--wv-color-primary);
}

/* ────────────────────────────────────────────
   6. CLUSTER BLOCKS
   ──────────────────────────────────────────── */
.wv-lh-cluster-block {
  margin-bottom: 52px;
}
.wv-lh-cluster-block:last-child {
  margin-bottom: 0;
}
.wv-lh-cluster__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--wv-color-border);
  margin-bottom: 20px;
}
.wv-lh-cluster__head-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wv-lh-cluster__heading {
  font-family: var(--wv-font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--wv-color-text-primary);
}
/* First5 product pills in cluster header — decorative, product colors */
.wv-lh-f5-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--wv-font-primary);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 10px 3px;
  border-radius: var(--wv-radius-pill);
  border: 1px solid;
  white-space: nowrap;
}
.wv-lh-f5-pill--omega     { color: var(--wv-color-omega-main);     border-color: var(--wv-color-omega-main);     background: color-mix(in srgb, var(--wv-color-omega-main) 10%, var(--wv-color-background)); }
.wv-lh-f5-pill--probiotic { color: var(--wv-color-probiotic-main); border-color: var(--wv-color-probiotic-main); background: color-mix(in srgb, var(--wv-color-probiotic-main) 10%, var(--wv-color-background)); }
.wv-lh-f5-pill--calciumd  { color: var(--wv-color-calcium-main);   border-color: var(--wv-color-calcium-main);   background: color-mix(in srgb, var(--wv-color-calcium-main) 10%, var(--wv-color-background)); }
.wv-lh-f5-pill--collagen  { color: var(--wv-color-collagen-main);  border-color: var(--wv-color-collagen-main);  background: color-mix(in srgb, var(--wv-color-collagen-main) 10%, var(--wv-color-background)); }
.wv-lh-f5-pill--multi     { color: var(--wv-color-multi-main);     border-color: var(--wv-color-multi-main);     background: color-mix(in srgb, var(--wv-color-multi-main) 10%, var(--wv-color-background)); }

.wv-lh-cluster__viewall {
  font-family: var(--wv-font-primary);
  font-size: 12px;
  font-weight: 600;
  color: var(--wv-color-primary);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--wv-transition-fast);
}
.wv-lh-cluster__viewall:hover {
  color: var(--wv-color-primary-hover);
}
.wv-lh-three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 20px;
}
.wv-lh-cluster__empty {
  font-family: var(--wv-font-primary);
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  color: var(--wv-color-text-secondary);
}

/* ────────────────────────────────────────────
   7. NEWSLETTER
   ──────────────────────────────────────────── */
.wv-lh-newsletter {
  background: var(--wv-color-surface);
  border-top: 1px solid var(--wv-color-border);
  padding: 56px 0;
}
.wv-lh-newsletter__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.wv-lh-newsletter__eyebrow {
  font-family: var(--wv-font-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #A09A8E; /* TODO: add to CSS variables if used across multiple pages */
  margin-bottom: 8px;
}
.wv-lh-newsletter__title {
  font-family: var(--wv-font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--wv-color-text-primary);
  margin-bottom: 8px;
}
.wv-lh-newsletter__body {
  font-family: var(--wv-font-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--wv-color-text-secondary);
  max-width: 420px;
}
.wv-lh-newsletter__form {
  display: flex;
  min-width: 340px;
}
.wv-lh-newsletter__input {
  flex: 1;
  height: 48px;
  border: 1px solid var(--wv-color-border);
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: #FFFFFF;
  padding: 0 16px;
  font-family: var(--wv-font-primary);
  font-size: 13px;
  font-weight: 400;
  color: var(--wv-color-text-primary);
  outline: none;
  transition: border-color var(--wv-transition-fast);
}
.wv-lh-newsletter__input::placeholder {
  color: #BDB5AC; /* TODO: add to CSS variables if used across multiple pages */
}
.wv-lh-newsletter__input:focus {
  border-color: var(--wv-color-text-secondary);
}
.wv-lh-newsletter__btn {
  height: 48px;
  border: none;
  border-radius: 0 8px 8px 0;
  background: var(--wv-color-primary);
  padding: 0 24px;
  font-family: var(--wv-font-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  transition: background var(--wv-transition-fast);
  white-space: nowrap;
}
.wv-lh-newsletter__btn:hover {
  background: var(--wv-color-primary-hover);
}

/* ────────────────────────────────────────────
   Recent Articles Carousel
   ──────────────────────────────────────────── */
.wv-lh-recent-carousel {
  position: relative;
}
.wv-lh-recent-carousel__track-wrap {
  overflow: hidden;
}
.wv-lh-recent-carousel__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  transition: transform 0.4s ease;
}
.wv-lh-recent-carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--wv-color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  color: var(--wv-color-text-secondary);
  transition: all 0.15s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.wv-lh-recent-carousel__btn:hover {
  border-color: var(--wv-color-text-primary);
  color: var(--wv-color-text-primary);
}
.wv-lh-recent-carousel__btn--prev { left: -18px; }
.wv-lh-recent-carousel__btn--next { right: -18px; }

.wv-lh-recent-viewall {
  text-align: center;
  margin-top: 32px;
}
.wv-lh-recent-viewall__btn {
  display: inline-block;
  background: none;
  border: 1px solid var(--wv-color-border);
  border-radius: 10px;
  padding: 12px 32px;
  font-family: var(--wv-font-primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wv-color-text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}
.wv-lh-recent-viewall__btn:hover {
  border-color: var(--wv-color-text-primary);
  color: var(--wv-color-text-primary);
}

/* ────────────────────────────────────────────
   RESPONSIVE
   ──────────────────────────────────────────── */
/* Tablet and below — card grids become horizontal carousels */
@media (max-width: 1023px) {
  .wv-lh-three-col {
    grid-template-columns: repeat(3, 280px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 20px;
  }
  .wv-lh-three-col > .wv-article-card {
    scroll-snap-align: start;
  }
  .wv-lh-feat-grid {
    grid-template-columns: 1fr;
  }
  .wv-lh-goal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .wv-lh-wrap,
  .wv-lh-newsletter__inner {
    padding-left: 20px;
    padding-right: 20px;
  }
  .wv-lh-hero {
    padding: 48px 0 40px;
  }
  .wv-lh-hero__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .wv-lh-hero__title {
    font-size: 36px;
  }
  .wv-lh-goal-grid {
    grid-template-columns: 1fr;
  }
  .wv-lh-newsletter__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
  .wv-lh-newsletter__form {
    min-width: 0;
    width: 100%;
  }
  .wv-lh-recent-carousel__track {
    grid-template-columns: repeat(3, 260px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .wv-lh-recent-carousel__btn {
    display: none;
  }
  .wv-lh-section {
    padding: 48px 0;
  }
  .wv-lh-section__heading {
    font-size: 28px;
  }
}
