/* ═══════════════════════════════════════════
   Learn Archive — page-specific styles (v10)
   Template: page-learn-archive.php
   Mobile-first: base = 375px+, tablet = 768px+, desktop = 1024px+

   CHANGELOG
   ─────────
   v10 — 2026-06-02: Section-tab carousel + page H1 swapped to shop's
        canonical components. The H1 now uses .wv-shop__heading
        (40px / weight 300, the authoritative shop styling) instead
        of the local .wv-la-title + .wv-h2 (which was weight 400).
        The section-tab carousel was rebuilt on the .wv-shop-cats
        component family (.wv-shop-cats / __track / __arrow / __pill /
        __pill--active), matching shop's pill height (55/40), gap
        (20 between pills, 12 arrow-to-track), and 35px circular
        arrows verbatim. Article-count badges removed from tabs per
        designer direction — tabs are bare labels now. The bespoke
        .wv-la-header*, .wv-la-title, .wv-la-carousel-* (wrap, inner,
        track-wrap, track), .wv-la-section-tab, .wv-la-tab-label,
        .wv-la-tab-count, and .wv-la-carr-btn* rules are all removed
        — every style they covered is now provided by the shop-cats
        global classes (Rule 3 compliance: no local redeclarations).
        Active state is toggled in JS via the .wv-shop-cats__pill--active
        BEM modifier (was the local .active class).
   v9 — 2026-06-02: Whole-page alignment to shop pattern. Outer
        .wv-la / .wv-la__inner now own the 1440 frame + page-gutter
        edge padding for the entire archive (mirrors .wv-shop /
        .wv-shop__inner). Removed redundant max-width:1100 + horizontal
        padding from header / carousel / toolbar / pills / grid-wrap;
        they now stretch full inner width. Grid converted to shop's
        auto-fill minmax(288, 288) recipe + clamp gap + justify center
        (consistent 4→3→2→1 reflow). Load More restyled and remarked
        up to the exact shop pattern: .wv-la__load-more (flex/center)
        + .wv-la__load-more-btn (300/30px + plus-circle SVG +
        "Load More" label). Tablet/desktop padding-override blocks
        dropped (gutter token handles it on the outer wrapper).
   v8 — 2026-04-16: Active pill mirrored to shop (12px/400, transparent bg,
        SVG × button, 5px 12px padding), badge sized to 20px, sort pill
        clickable-to-remove
   v7 — 2026-04-16: Removed double border, carousel-wrap border→margin,
        toolbar borders to rgba(42,43,20,0.15), track padding-block: 4px
   v6 — 2026-04-16: Tab strip→pill treatment (bordered, rounded, filled active),
        header padding reduced (20px mobile, 32px tablet)
   v5 — 2026-04-16: Toolbar mirrored to shop pattern (20px/300, 70px min-height,
        top+bottom borders, 32px margin-bottom)
   v4 — 2026-04-16: Header→section pill, carousel arrows mobile hide,
        toolbar border+icon sizing, mobile title size override,
        removed eyebrow+count selectors
   v3 — 2026-04-16: Global typography audit, color-primary→accent,
        hardcoded hex → token variables
   v2 — 2026-04-16: Mobile-first conversion
   v1 — Initial build
   ═══════════════════════════════════════════ */

/* ── Page Shell — mirrors .wv-shop / .wv-shop__inner (v9, 2026-06-02) ── */
.wv-la {
  background: var(--wv-color-background);
}
.wv-la__inner {
  max-width: var(--wv-container-max);
  margin: 0 auto;
  padding-block-start: clamp(16px, 2vw, 24px);
  padding-block-end: clamp(40px, 5vw, 60px);
  padding-inline: var(--wv-page-gutter);
}

/* Page heading (H1) + section tabs (carousel) now use shop's canonical
   .wv-shop__heading / .wv-shop-cats* component family directly — see
   wv-components.css. No local redeclarations (Rule 3 / v10). */

/* ── Toolbar — mirrors shop toolbar pattern (gutter on outer wrapper, v9) ── */
.wv-la-toolbar {
  margin: 0 0 12px;
  min-height: 70px;
  padding: 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(42, 43, 20, 0.15);
  border-bottom: 1px solid rgba(42, 43, 20, 0.15);
}

.wv-la-toolbar__filter,
.wv-la-toolbar__sort {
  /* mirrors .wv-shop-toolbar__filter/.sort */
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--wv-font-primary);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0;
  color: var(--wv-color-text-primary);
  cursor: pointer;
}

.wv-la-toolbar__filter svg,
.wv-la-toolbar__sort svg {
  width: auto;
  height: 20px;
  color: var(--wv-color-text-primary);
}

.wv-la-toolbar__filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wv-color-accent);
  color: var(--wv-color-text-inverse);
  border-radius: var(--wv-radius-pill);
  font-size: 11px;
  font-weight: 600;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
}

.wv-la-toolbar__filter-badge:empty {
  display: none;
}

/* ── Active Pills — below toolbar (gutter on outer wrapper, v9) ── */
.wv-la-pills {
  margin: 0;
  padding: 0 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.wv-la-pills__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wv-la-pills__right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wv-la-active-pill {
  /* mirrors .wv-shop-pills__pill */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wv-font-primary);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  padding: 5px 12px;
  border-radius: var(--wv-radius-pill);
  background: transparent;
  border: 1px solid var(--wv-color-border);
  color: var(--wv-color-text-secondary);
  cursor: pointer;
}

.wv-la-active-pill svg {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.wv-la-active-pill:hover {
  border-color: var(--wv-color-text-primary);
  background: var(--wv-color-surface);
}

/* ── Article Grid — mirrors shop's .wv-product-grid recipe (v9) ── */
.wv-la-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(288px, 288px));
  gap: clamp(16px, 2vw, 24px);
  justify-content: center;
  align-items: start;
  margin-bottom: 32px;
}

/* ── Load More — exact mirror of .wv-shop__load-more* (v9) ── */
.wv-la__load-more {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.wv-la__load-more-btn {
  display: flex;
  /* Explicit row + nowrap + whitespace prevents the inner icon span
     from blockifying to its own line at narrower widths (2026-06-02). */
  flex-direction: row;
  flex-wrap: nowrap;
  white-space: nowrap;
  align-items: center;
  gap: 12px;
  font-family: var(--wv-font-primary);
  font-weight: 300;
  font-size: 30px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--wv-color-text-primary);
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: color var(--wv-transition-base);
}
.wv-la__load-more-btn svg {
  display: block;
  flex-shrink: 0;
}
.wv-la__load-more-btn:hover {
  color: var(--wv-color-text-link-hover);
}
.wv-la__load-more-icon svg {
  width: 35px;
  height: 35px;
}

/* ── Article Card + Cluster Pill — now uses global wv-card.css ── */

/* ── Empty State ── */
.wv-la-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 0;
}
.wv-la-empty__title {
  /* typography via .wv-h2 in markup — flag: was 22px serif, now 40px sans */
  color: var(--wv-color-text-secondary);
  margin-bottom: 8px;
}
.wv-la-empty__body {
  /* typography via .wv-body-sm in markup */
  color: var(--wv-color-text-secondary); /* closest token — visual review needed */
}

/* ── Article Overlay ── */
.wv-la-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--wv-color-overlay);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.wv-la-overlay.open { display: flex; }

.wv-la-overlay__inner {
  background: var(--wv-color-background);
  border-radius: 14px;
  max-width: var(--wv-content-max);
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.wv-la-overlay__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--wv-color-text-secondary);
  cursor: pointer;
  line-height: 1;
  z-index: 1;
}
.wv-la-overlay__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 14px 14px 0 0;
  background: var(--wv-color-surface);
}
.wv-la-overlay__img--placeholder {
  /* typography via .wv-label-legal in markup */
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: italic;
  color: var(--wv-color-text-secondary); /* closest token — visual review needed */
}
.wv-la-overlay__body {
  padding: 28px 34px 34px;
}
.wv-la-overlay__tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.wv-la-overlay__title {
  /* typography via .wv-h2 in markup — flag: was serif 24px, now General Grotesque 40px */
  color: var(--wv-color-text-primary);
  margin-bottom: 10px;
}
.wv-la-overlay__byline {
  /* typography via .wv-label-legal in markup */
  color: var(--wv-color-text-secondary); /* closest token — visual review needed */
  margin-bottom: 18px;
}
.wv-la-overlay__text {
  /* typography via .wv-body in markup */
  line-height: 1.9;
  color: var(--wv-color-text-secondary);
}
.wv-la-overlay__text p { margin-bottom: 14px; }
.wv-la-overlay__text p:last-child { margin-bottom: 0; }
.wv-la-overlay__text strong {
  font-weight: 600;
  color: var(--wv-color-text-primary);
}
.wv-la-overlay__cta {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.wv-la-btn--read {
  /* typography via .wv-label-legal in markup + local overrides */
  background: var(--wv-color-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background 0.15s;
}
.wv-la-btn--read:hover { background: var(--wv-color-atc-hover); }

/* ── Drawer (filter/sort) ── */
.wv-la-drawer {
  width: 100%;
}
.wv-la-drawer--right {
  width: 100%;
}

/* v10: All former tablet/desktop overrides for this page have been
   absorbed into the shop component classes (.wv-shop__heading,
   .wv-shop-cats*, .wv-shop__inner-clone .wv-la__inner). No page-local
   media-query overrides remain — see wv-components.css for the
   shop component breakpoint behavior. */
