/**
Theme Name: Wellume Astra
Author: HA Web Studio
Author URI: https://hawebstudio.com
Description: Custom Astra child theme for the Wellume wellness publishing website.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wellume-astra
Template: astra
*/

/* ==========================================================================
   WELLUME DESIGN TOKENS
   Global custom properties for the Wellume brand.
   These are the single source of truth for colors, typography, spacing,
   and layout values used throughout the child theme.
   ========================================================================== */

:root {
  /* ── Brand Colors ── */
  --wlm-green: #1B6B4A;
  --wlm-green-dark: #144F37;
  --wlm-navy: #1A1F36;
  --wlm-text: #222222;
  --wlm-text-light: #555555;
  --wlm-text-muted: #888888;
  --wlm-bg: #FFFFFF;
  --wlm-bg-alt: #F9F9F9;
  --wlm-surface: #FFFFFF;
  --wlm-white: #FFFFFF;
  --wlm-border: #EAEAEA;
  --wlm-focus: rgba(27, 107, 74, 0.3);

  /* ── Typography Scale ── */
  --wlm-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wlm-font-size-xs: 0.75rem;   /* 12px */
  --wlm-font-size-sm: 0.875rem;  /* 14px */
  --wlm-font-size-base: 1.0625rem; /* 17px */
  --wlm-font-size-lg: 1.125rem;  /* 18px */
  --wlm-font-size-xl: 1.25rem;   /* 20px */
  --wlm-font-size-2xl: 1.5rem;   /* 24px */
  --wlm-font-size-3xl: 2rem;     /* 32px */
  --wlm-font-size-4xl: 2.75rem;  /* 44px */
  --wlm-line-height: 1.6;
  --wlm-heading-weight: 700;

  /* ── Spacing Scale (8px base) ── */
  --wlm-space-xs: 0.25rem;
  --wlm-space-sm: 0.5rem;
  --wlm-space-md: 1rem;
  --wlm-space-lg: 1.5rem;
  --wlm-space-xl: 2rem;
  --wlm-space-2xl: 3rem;
  --wlm-space-3xl: 4rem;
  --wlm-space-4xl: 6rem;

  /* ── Responsive Breakpoints (reference values) ── */
  --wlm-bp-mobile: 480px;
  --wlm-bp-tablet: 768px;
  --wlm-bp-desktop: 1024px;
  --wlm-bp-wide: 1280px;

  /* ── Layout ── */
  --wlm-site-width: 98%;
  --wlm-content-max-width: 78ch; /* editorial reading width */
  --wlm-radius: 4px; /* subtle border radius for premium feel */
  --wlm-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --wlm-shadow-md: 0 4px 6px rgba(0,0,0,0.05);
}

/* ==========================================================================
   GLOBAL BASE STYLES
   Foundational styles that apply site-wide.
   ========================================================================== */

/* ── Site Background & Body Text ── */
body {
  background-color: var(--wlm-bg);
  color: var(--wlm-text);
  font-family: var(--wlm-font-family);
  -webkit-font-smoothing: antialiased;
}

body .entry-content {
  font-family: var(--wlm-font-family);
  font-size: var(--wlm-font-size-base);
  line-height: var(--wlm-line-height);
  color: var(--wlm-text);
}

/* ── Heading Hierarchy ── */
h1, h2, h3, h4, h5, h6, .entry-title {
  color: var(--wlm-navy);
  font-family: var(--wlm-font-family);
  font-weight: var(--wlm-heading-weight);
  line-height: 1.25;
  margin-top: 0;
  margin-bottom: var(--wlm-space-md);
}

h1 { font-size: var(--wlm-font-size-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--wlm-font-size-3xl); letter-spacing: -0.01em; }
h3 { font-size: var(--wlm-font-size-2xl); }
h4 { font-size: var(--wlm-font-size-xl); }

.wlm-eyebrow {
  font-size: var(--wlm-font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--wlm-green);
  margin-bottom: var(--wlm-space-sm);
  display: block;
}

/* ── Wide Site Layout ── */
.ast-container {
  max-width: var(--wlm-site-width) !important;
  padding-left: var(--wlm-space-md);
  padding-right: var(--wlm-space-md);
}

/* ── Preserve Reading Width for Long-Form Content ── */
.wlm-reading-width,
.single .entry-content,
.page .entry-content,
.ast-single-post .entry-content {
  max-width: var(--wlm-content-max-width);
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 1024px) {
  :root {
    --wlm-site-width: 96%;
    --wlm-font-size-4xl: 2.25rem;
    --wlm-font-size-3xl: 1.75rem;
  }
}

@media (max-width: 768px) {
  :root {
    --wlm-site-width: 100%;
    --wlm-font-size-4xl: 2rem;
  }
  .ast-container {
    padding-left: var(--wlm-space-sm);
    padding-right: var(--wlm-space-sm);
  }
}

/* ==========================================================================
   HEADER COMPONENT
   Custom Header replacing Astra's default header.
   ========================================================================== */

/* ── Global Header Variables ── */
:root {
  --wlm-header-bg: var(--wlm-white);
  --wlm-utility-bg: var(--wlm-navy);
  --wlm-utility-text: var(--wlm-white);
  --wlm-utility-height: 36px;
  --wlm-header-height-desktop: 80px;
  --wlm-header-height-mobile: 64px;
}

/* ── Utility Bar ── */
.wlm-utility-bar {
  background-color: var(--wlm-utility-bg);
  color: var(--wlm-utility-text);
  font-size: var(--wlm-font-size-sm);
  display: none;
  /* hidden on mobile by default */
}

@media (min-width: 768px) {
  .wlm-utility-bar {
    display: block;
  }
}

.wlm-utility-bar__inner {
  width: var(--wlm-site-width);
  max-width: 100%;
  margin: 0 auto;
  height: var(--wlm-utility-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wlm-utility-bar__tagline {
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: var(--wlm-space-md);
}

.wlm-utility-bar__right {
  display: flex;
  align-items: center;
  gap: var(--wlm-space-sm);
}

.wlm-utility-nav {
  display: flex;
  align-items: center;
}

.wlm-utility-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--wlm-space-md);
}

.wlm-utility-nav a {
  color: var(--wlm-utility-text);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.wlm-utility-nav a:hover,
.wlm-utility-nav a:focus {
  opacity: 1;
}

.wlm-utility-bar__sep {
  opacity: 0.3;
}

/* ── Main Header ── */
.wlm-header {
  background-color: var(--wlm-header-bg);
  border-bottom: 1px solid var(--wlm-border);
  position: relative;
  z-index: 100;
}

.wlm-header__inner {
  width: var(--wlm-site-width);
  max-width: 100%;
  margin: 0 auto;
  height: var(--wlm-header-height-mobile);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .wlm-header__inner {
    height: var(--wlm-header-height-desktop);
  }
}

/* ── Logo ── */
.wlm-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wlm-header__logo img,
.wlm-header__logo .custom-logo {
  max-height: 40px;
  width: auto;
}

/* ── Primary Navigation (Desktop) ── */
.wlm-header__nav {
  display: none;
  flex-grow: 1;
  justify-content: center;
}

@media (min-width: 1024px) {
  .wlm-header__nav {
    display: flex;
  }
}

.wlm-primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--wlm-space-xl);
}

.wlm-primary-menu>li>a {
  color: var(--wlm-navy);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.0625rem;
  padding: var(--wlm-space-sm) 0;
  display: block;
  transition: color 0.2s;
}

.wlm-primary-menu>li>a:hover,
.wlm-primary-menu>li>a:focus,
.wlm-primary-menu>li.current-menu-item>a {
  color: var(--wlm-green);
}

/* Dropdowns */
.wlm-primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--wlm-white);
  border: 1px solid var(--wlm-border);
  border-radius: var(--wlm-radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  list-style: none;
  padding: var(--wlm-space-sm) 0;
  margin: 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.2s ease;
  z-index: 101;
}

.wlm-primary-menu li {
  position: relative;
}

/* Show submenu on hover */
.wlm-primary-menu li:hover>.sub-menu,
.wlm-primary-menu li:focus-within>.sub-menu,
.wlm-primary-menu li.is-hovered>.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wlm-primary-menu .sub-menu a {
  display: block;
  padding: var(--wlm-space-sm) var(--wlm-space-md);
  color: var(--wlm-text);
  text-decoration: none;
  font-size: var(--wlm-font-size-sm);
}

.wlm-primary-menu .sub-menu a:hover,
.wlm-primary-menu .sub-menu a:focus {
  background-color: var(--wlm-bg-alt);
  color: var(--wlm-navy);
}

/* Add dropdown arrow icon for items with children */
.wlm-primary-menu .menu-item-has-children>a::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
  border-top: 4px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}


/* ── Actions (Right side) ── */
.wlm-header__actions {
  display: flex;
  align-items: center;
  gap: var(--wlm-space-md);
  flex-shrink: 0;
}

/* ── Market Selector ── */
.wlm-market-selector {
  position: relative;
}

.wlm-market-selector__trigger {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--wlm-font-family);
  font-size: var(--wlm-font-size-sm);
  color: inherit;
}

/* Utility bar variant */
.wlm-market-selector--utility .wlm-market-selector__trigger {
  color: var(--wlm-white);
}

/* Header variant */
.wlm-market-selector--main .wlm-market-selector__trigger {
  color: var(--wlm-navy);
  font-weight: 500;
}

.wlm-market-selector--main {
  display: none;
  /* Hidden on mobile/tablet if we put it in menu */
}

@media (min-width: 768px) {
  .wlm-market-selector--main {
    display: block;
  }
}

/* ── Search Toggle & Overlay ── */
.wlm-search-toggle {
  background: none;
  border: none;
  padding: var(--wlm-space-xs);
  color: var(--wlm-navy);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.wlm-search-toggle:hover {
  color: var(--wlm-green);
}

.wlm-search-overlay {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--wlm-white);
  padding: var(--wlm-space-md) 0;
  border-bottom: 1px solid var(--wlm-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 90;
}

.wlm-search-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wlm-search-overlay__inner {
  width: var(--wlm-site-width);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--wlm-space-md);
}

.wlm-search-form {
  flex-grow: 1;
  display: flex;
  margin: 0;
}

.wlm-search-form__field {
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid var(--wlm-border);
  padding-bottom: var(--wlm-space-xs);
  transition: border-color 0.2s;
}

.wlm-search-form__field:focus-within {
  border-bottom-color: var(--wlm-green);
}

.wlm-search-form__submit {
  background: none;
  border: none;
  padding: 0 var(--wlm-space-sm) 0 0;
  color: var(--wlm-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.wlm-search-form__submit:hover,
.wlm-search-form__submit:focus {
  color: var(--wlm-navy);
}

.wlm-search-form__input {
  flex-grow: 1;
  border: none;
  background: transparent;
  font-size: var(--wlm-font-size-lg);
  font-family: var(--wlm-font-family);
  color: var(--wlm-navy);
  outline: none;
  padding: 0;
  width: 100%;
  -webkit-appearance: none;
}

.wlm-search-form__input::placeholder {
  color: var(--wlm-text-light);
  font-weight: 400;
}

.wlm-search-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--wlm-text-light);
  cursor: pointer;
}

/* ── CTA Button ── */
.wlm-header__cta {
  display: none;
  background-color: var(--wlm-green);
  color: var(--wlm-white);
  text-decoration: none;
  padding: var(--wlm-space-sm) var(--wlm-space-md);
  border-radius: var(--wlm-radius);
  font-weight: 600;
  font-size: var(--wlm-font-size-sm);
  transition: background-color 0.2s;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .wlm-header__cta {
    display: inline-block;
  }
}

.wlm-header__cta:hover,
.wlm-header__cta:focus {
  background-color: var(--wlm-green-dark);
  color: var(--wlm-white);
}

/* ── Mobile Menu Toggle (Hamburger) ── */
.wlm-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 1024px) {
  .wlm-menu-toggle {
    display: none;
  }
}

.wlm-menu-toggle__bar {
  width: 24px;
  height: 2px;
  background-color: var(--wlm-navy);
  border-radius: 2px;
}

/* ── Mobile Menu Overlay ── */
.wlm-mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  display: flex;
  justify-content: flex-end;
  visibility: hidden;
  transition: visibility 0.3s;
}

.wlm-mobile-menu.is-open {
  visibility: visible;
}

/* Backdrop */
.wlm-mobile-menu__overlay-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wlm-mobile-menu.is-open .wlm-mobile-menu__overlay-bg {
  opacity: 1;
}

/* Panel */
.wlm-mobile-menu__panel {
  position: relative;
  width: 85%;
  max-width: 400px;
  height: 100%;
  background: var(--wlm-white);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.wlm-mobile-menu.is-open .wlm-mobile-menu__panel {
  transform: translateX(0);
}

/* Mobile Header Content */
.wlm-mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--wlm-space-md);
  border-bottom: 1px solid var(--wlm-border);
}

.wlm-mobile-menu__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--wlm-text-light);
  cursor: pointer;
  padding: 0;
}

.wlm-mobile-menu__logo img {
  max-height: 30px;
  width: auto;
}

.wlm-market-selector--mobile .wlm-market-selector__trigger {
  color: var(--wlm-text);
}

/* Mobile Navigations */
.wlm-mobile-menu__nav ul,
.wlm-mobile-menu__secondary ul {
  list-style: none;
  margin: 0;
  padding: var(--wlm-space-md);
}

.wlm-mobile-menu__nav li,
.wlm-mobile-menu__secondary li {
  margin-bottom: var(--wlm-space-sm);
}

.wlm-mobile-menu__nav a {
  display: block;
  font-size: var(--wlm-font-size-lg);
  font-weight: 600;
  color: var(--wlm-navy);
  text-decoration: none;
  padding: var(--wlm-space-xs) 0;
}

.wlm-mobile-menu__secondary a {
  display: block;
  font-size: var(--wlm-font-size-base);
  color: var(--wlm-text);
  text-decoration: none;
  padding: var(--wlm-space-xs) 0;
}

.wlm-mobile-menu__divider {
  height: 1px;
  background: var(--wlm-border);
  margin: 0 var(--wlm-space-md);
}

/* Mobile Footer/CTA */
.wlm-mobile-menu__footer {
  padding: var(--wlm-space-lg) var(--wlm-space-md);
  margin-top: auto;
}

.wlm-mobile-menu__cta {
  display: block;
  text-align: center;
  background-color: var(--wlm-green);
  color: var(--wlm-white);
  text-decoration: none;
  padding: var(--wlm-space-md);
  border-radius: var(--wlm-radius);
  font-weight: 600;
  font-size: var(--wlm-font-size-base);
}

/* ==========================================================================
   FOOTER COMPONENT
   Custom Footer replacing Astra's default footer.
   ========================================================================== */

/* ── Global Footer Variables ── */
:root {
  --wlm-footer-bg: var(--wlm-white);
  --wlm-footer-text: var(--wlm-navy);
  --wlm-footer-border: var(--wlm-border);
}

.wlm-footer {
  background-color: var(--wlm-footer-bg);
  border-top: 1px solid var(--wlm-footer-border);
  color: var(--wlm-footer-text);
  padding-top: var(--wlm-space-2xl);
}

.wlm-footer__main {
  width: var(--wlm-site-width);
  max-width: 100%;
  margin: 0 auto;
}

.wlm-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--wlm-space-xl);
  padding-bottom: var(--wlm-space-2xl);
}

/* ── Columns Grid ── */
@media (min-width: 768px) {
  .wlm-footer__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: var(--wlm-space-2xl);
    column-gap: var(--wlm-space-lg);
  }
}

@media (min-width: 1024px) {
  .wlm-footer__inner {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 2.5fr;
  }
}

/* ── Column Overrides (Tablet) ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .wlm-footer__col--brand {
    grid-column: 1 / -1;
    /* Span full width on first row if needed, or adjust based on exact tablet design */
  }

  /* According to tablet reference:
     Row 1: Branding (span 1.5?), Explore, Topics, Company
     Row 2: Legal, Mission
  */
  .wlm-footer__inner {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .wlm-footer__col:nth-child(5) {
    /* Legal */
    grid-column: 1 / 3;
    padding-top: var(--wlm-space-xl);
    border-top: 1px solid var(--wlm-border);
  }

  .wlm-footer__col--mission {
    /* Mission */
    grid-column: 3 / -1;
    padding-top: var(--wlm-space-xl);
    border-top: 1px solid var(--wlm-border);
  }
}

/* ── Branding Area ── */
.wlm-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--wlm-space-sm);
}

.wlm-footer-brand__link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--wlm-navy);
  margin-bottom: var(--wlm-space-xs);
}

.wlm-footer-brand__icon {
  max-height: 40px;
  width: auto;
  display: block;
}

.wlm-footer-brand__name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.wlm-footer-brand__tagline {
  font-weight: 600;
  margin: 0;
}

.wlm-footer-brand__desc {
  margin: 0;
  font-size: var(--wlm-font-size-sm);
  line-height: 1.5;
  color: var(--wlm-text-light);
}

/* ── Social Icons ── */
.wlm-footer-socials {
  display: flex;
  gap: var(--wlm-space-sm);
  margin-top: var(--wlm-space-md);
}

.wlm-footer-socials__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--wlm-border);
  color: var(--wlm-navy);
  transition: all 0.2s ease;
}

.wlm-footer-socials__icon:hover,
.wlm-footer-socials__icon:focus {
  background-color: var(--wlm-navy);
  color: var(--wlm-white);
  border-color: var(--wlm-navy);
}

/* ── Headings ── */
.wlm-footer__heading {
  font-size: var(--wlm-font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wlm-navy);
  margin-top: 0;
  margin-bottom: var(--wlm-space-md);
  position: relative;
  display: inline-block;
}

/* Add the small green underline accent */
.wlm-footer__heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 24px;
  height: 2px;
  background-color: var(--wlm-green);
}

/* ── Navigation Links ── */
.wlm-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--wlm-space-sm);
}

.wlm-footer-links a,
.wlm-footer-menu__label {
  color: var(--wlm-text-light);
  text-decoration: none;
  font-size: var(--wlm-font-size-sm);
  transition: color 0.2s;
}

.wlm-footer-menu__label {
  cursor: default;
  opacity: 0.7;
}

.wlm-footer-links a:hover,
.wlm-footer-links a:focus {
  color: var(--wlm-green);
}

/* ── Mission Area & Botanical ── */
.wlm-footer__col--mission {
  position: relative;
}

.wlm-footer-mission__text {
  font-size: var(--wlm-font-size-sm);
  line-height: 1.6;
  color: var(--wlm-text-light);
  margin: 0;
  max-width: 280px;
}

.wlm-footer-botanical {
  margin-top: var(--wlm-space-lg);
  display: flex;
  justify-content: flex-end;
  /* Align right as per reference */
}

@media (max-width: 767px) {
  .wlm-footer-botanical {
    justify-content: flex-start;
  }
}


/* ── Footer Bottom Row ── */
.wlm-footer__bottom {
  border-top: 1px solid var(--wlm-footer-border);
  padding: var(--wlm-space-md) 0;
}

.wlm-footer__bottom-inner {
  width: var(--wlm-site-width);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--wlm-space-md);
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .wlm-footer__bottom-inner {
    flex-direction: row;
  }
}

.wlm-footer__copyright {
  margin: 0;
  font-size: var(--wlm-font-size-sm);
  color: var(--wlm-text-light);
}

/* ==========================================================================
   STEP 9: CONTENT ARCHITECTURE FOUNDATION
   Basic structure for the dynamic grid, cards, and single templates.
   ========================================================================== */

/* -- Container Overrides -- */
.wlm-container {
  padding: var(--wlm-space-2xl) var(--wlm-space-md);
}

/* -- Grid System -- */
.wlm-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wlm-space-lg);
  margin-bottom: var(--wlm-space-2xl);
  align-items: stretch;
}

@media (min-width: 768px) {
  .wlm-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .wlm-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (min-width: 1440px) {
  .wlm-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }
}

/* -- Card Component -- */
.wlm-card {
  background: var(--wlm-surface);
  border: 1px solid var(--wlm-border);
  border-radius: var(--wlm-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
  box-shadow: var(--wlm-shadow-sm);
}

.wlm-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--wlm-shadow-md);
}

.wlm-card__image-link {
  display: block;
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: var(--wlm-bg-alt);
  border-bottom: 1px solid var(--wlm-border);
}

.wlm-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.wlm-card:hover .wlm-card__image {
  transform: scale(1.03);
}

.wlm-card__image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wlm-navy);
}

.wlm-card__badge {
  position: absolute;
  top: var(--wlm-space-sm);
  left: var(--wlm-space-sm);
  background: var(--wlm-white);
  color: var(--wlm-navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wlm-card__badge--review { background: var(--wlm-navy); color: var(--wlm-white); }
.wlm-card__badge--product { background: var(--wlm-green); color: var(--wlm-white); }
.wlm-card__badge--comparison { background: #f59e0b; color: var(--wlm-white); }
.wlm-card__badge--guide { background: #315f5b; color: var(--wlm-white); }

.wlm-card__body {
  padding: var(--wlm-space-lg);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.wlm-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--wlm-font-size-xs);
  font-weight: 700;
  margin-bottom: var(--wlm-space-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wlm-card__term {
  color: var(--wlm-green);
  text-decoration: none;
}

.wlm-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
}
.wlm-card__rating span {
  color: var(--wlm-text-light);
}

.wlm-card__title {
  font-size: var(--wlm-font-size-xl);
  margin: 0 0 var(--wlm-space-sm) 0;
  line-height: 1.3;
}

.wlm-card__title a {
  color: var(--wlm-navy);
  text-decoration: none;
}

.wlm-card__title a:hover {
  color: var(--wlm-green);
}

.wlm-card__excerpt {
  color: var(--wlm-text-light);
  font-size: var(--wlm-font-size-base);
  margin-bottom: var(--wlm-space-md);
  flex-grow: 1;
  line-height: 1.6;
}

.wlm-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  font-size: var(--wlm-font-size-sm);
  color: var(--wlm-text-muted);
}

.wlm-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--wlm-navy);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  font-size: var(--wlm-font-size-xs);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.wlm-card__readmore:hover {
  color: var(--wlm-green);
}

/* -- Archive Header -- */
.wlm-archive-header {
  text-align: center;
  margin-bottom: var(--wlm-space-2xl);
  max-width: var(--wlm-content-max-width);
  margin-left: auto;
  margin-right: auto;
}

.wlm-archive-title {
  font-size: var(--wlm-font-size-3xl);
  margin-bottom: var(--wlm-space-sm);
}

.wlm-archive-desc {
  color: var(--wlm-text-light);
  font-size: var(--wlm-font-size-lg);
}

/* -- Pagination -- */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--wlm-space-xl);
}

.nav-links {
  display: flex;
  gap: 8px;
}

.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--wlm-border);
  border-radius: var(--wlm-radius);
  color: var(--wlm-navy);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.page-numbers.current {
  background: var(--wlm-green);
  color: var(--wlm-white);
  border-color: var(--wlm-green);
}

.page-numbers:not(.current):hover {
  background: var(--wlm-bg-alt);
}

/* -- Single Templates -- */
.wlm-single-article {
  max-width: var(--wlm-content-max-width);
  margin: 0 auto;
}

.wlm-single-header {
  text-align: center;
  margin-bottom: var(--wlm-space-xl);
}

.wlm-single-meta-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wlm-space-sm);
  margin-bottom: var(--wlm-space-md);
  font-size: var(--wlm-font-size-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wlm-badge {
  background: var(--wlm-bg-alt);
  color: var(--wlm-navy);
  padding: 4px 12px;
  border-radius: 4px;
}

.wlm-badge--review { background: var(--wlm-navy); color: var(--wlm-white); }
.wlm-badge--product { background: var(--wlm-green); color: var(--wlm-white); }

.wlm-term-link {
  color: var(--wlm-green);
  text-decoration: none;
}

.wlm-single-title {
  font-size: var(--wlm-font-size-4xl);
  margin-bottom: var(--wlm-space-md);
}

.wlm-single-meta-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--wlm-space-md);
  color: var(--wlm-text-light);
  font-size: var(--wlm-font-size-sm);
}

.wlm-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wlm-author-avatar {
  border-radius: 50%;
}

.wlm-author-name a {
  color: var(--wlm-navy);
  font-weight: 600;
  text-decoration: none;
}

.wlm-single-thumbnail {
  margin: 0 0 var(--wlm-space-xl) 0;
  border-radius: var(--wlm-radius);
  overflow: hidden;
}

.wlm-single-thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}

.wlm-single-content {
  font-size: 1.125rem;
  margin-bottom: var(--wlm-space-3xl);
}

/* -- Related Content -- */
.wlm-related-content {
  border-top: 1px solid var(--wlm-border);
  padding-top: var(--wlm-space-2xl);
  margin-top: var(--wlm-space-2xl);
}

.wlm-related-content__heading {
  font-size: var(--wlm-font-size-2xl);
  margin-bottom: var(--wlm-space-xl);
  text-align: center;
}

/* ==========================================================================
   STEP 10: HOMEPAGE DYNAMIC ARCHITECTURE
   ========================================================================== */

/* -- Homepage Main Override -- */
.wlm-home-main {
  padding-bottom: 0; /* Let footer handle spacing */
}

/* -- Common Section Structure -- */
.wlm-home-section {
  padding: var(--wlm-space-2xl) 0;
  border-bottom: 1px solid var(--wlm-border);
}

.wlm-home-section:last-of-type {
  border-bottom: none;
}

.wlm-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--wlm-space-xl);
  flex-wrap: wrap;
  gap: var(--wlm-space-md);
}

.wlm-section-title {
  font-size: var(--wlm-font-size-2xl);
  margin: 0;
}

.wlm-section-link {
  font-weight: 600;
  color: var(--wlm-navy);
  text-decoration: none;
  font-size: var(--wlm-font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wlm-section-link:hover {
  color: var(--wlm-green);
}

/* -- Hero Section -- */
.wlm-home-hero {
  background: var(--wlm-navy);
  color: var(--wlm-white);
  padding: 80px 0 100px 0;
  text-align: center;
}

.wlm-home-hero__content {
  max-width: 800px;
  margin: 0 auto;
}

.wlm-home-hero__title {
  color: var(--wlm-white);
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--wlm-space-lg);
  font-weight: 800;
}

.wlm-home-hero__desc {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--wlm-space-xl);
  line-height: 1.6;
}

.wlm-home-hero__actions {
  display: flex;
  justify-content: center;
  gap: var(--wlm-space-md);
}

/* -- Discovery Section -- */
.wlm-home-discovery {
  padding-top: var(--wlm-space-2xl);
  border-bottom: none;
}

.wlm-discovery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--wlm-space-md);
}

@media (min-width: 768px) {
  .wlm-discovery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.wlm-discovery-card {
  background: var(--wlm-bg-alt);
  border: 1px solid var(--wlm-border);
  border-radius: var(--wlm-radius);
  padding: var(--wlm-space-lg) var(--wlm-space-md);
  text-align: center;
  text-decoration: none;
  color: var(--wlm-navy);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--wlm-space-sm);
}

.wlm-discovery-card:hover {
  background: var(--wlm-white);
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
  transform: translateY(-2px);
  border-color: var(--wlm-green);
}

.wlm-discovery-icon {
  color: var(--wlm-green);
}

.wlm-discovery-label {
  font-weight: 700;
  font-size: var(--wlm-font-size-lg);
}

/* -- Topics Section -- */
.wlm-topics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wlm-space-md);
}

@media (min-width: 600px) {
  .wlm-topics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .wlm-topics-grid { grid-template-columns: repeat(3, 1fr); }
}

.wlm-topic-card {
  display: block;
  padding: var(--wlm-space-lg);
  background: var(--wlm-white);
  border: 1px solid var(--wlm-border);
  border-radius: var(--wlm-radius);
  text-decoration: none;
  transition: all 0.2s;
  border-left: 4px solid var(--wlm-green);
}

.wlm-topic-card:hover {
  background: var(--wlm-bg-alt);
}

.wlm-topic-card__title {
  color: var(--wlm-navy);
  margin: 0 0 4px 0;
  font-size: var(--wlm-font-size-lg);
}

.wlm-topic-card__count {
  color: var(--wlm-text-light);
  font-size: var(--wlm-font-size-sm);
}

/* -- Trust / Editorial Section -- */
.wlm-home-trust {
  background: var(--wlm-bg-alt);
  padding: 80px 0;
  margin: var(--wlm-space-2xl) 0;
}

.wlm-trust-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.wlm-trust-title {
  font-size: var(--wlm-font-size-3xl);
  margin-bottom: var(--wlm-space-md);
}

.wlm-trust-desc {
  font-size: var(--wlm-font-size-lg);
  color: var(--wlm-text);
  margin-bottom: var(--wlm-space-xl);
}

.wlm-trust-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--wlm-space-xl) 0;
  display: flex;
  flex-direction: column;
  gap: var(--wlm-space-md);
  text-align: left;
}

@media (min-width: 768px) {
  .wlm-trust-features {
    flex-direction: row;
    justify-content: center;
    gap: var(--wlm-space-2xl);
  }
}

.wlm-trust-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--wlm-navy);
}

.wlm-trust-features li svg {
  color: var(--wlm-green);
}

/* -- Newsletter CTA -- */
.wlm-home-newsletter {
  border: none;
  padding-bottom: 80px;
}

.wlm-newsletter-box {
  background: var(--wlm-navy);
  color: var(--wlm-white);
  border-radius: var(--wlm-radius);
  padding: var(--wlm-space-2xl);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wlm-space-xl);
  align-items: center;
}

@media (min-width: 768px) {
  .wlm-newsletter-box {
    grid-template-columns: 1fr 1fr;
  }
}

.wlm-newsletter-title {
  color: var(--wlm-white);
  font-size: var(--wlm-font-size-3xl);
  margin: 0 0 var(--wlm-space-sm) 0;
}

.wlm-newsletter-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--wlm-font-size-lg);
  margin: 0;
}

.wlm-newsletter-fake {
  display: flex;
  gap: 8px;
  width: 100%;
}

.wlm-newsletter-fake input {
  flex-grow: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

.wlm-newsletter-note {
  display: block;
  margin-top: 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
}

/* -- Empty States -- */
.wlm-empty-state {
  background: var(--wlm-bg-alt);
  border: 1px dashed var(--wlm-border);
  border-radius: var(--wlm-radius);
  padding: var(--wlm-space-2xl) var(--wlm-space-md);
  text-align: center;
  color: var(--wlm-text-light);
}

.wlm-empty-state__icon {
  margin-bottom: var(--wlm-space-md);
  color: var(--wlm-green);
  opacity: 0.8;
}

.wlm-empty-state__title {
  color: var(--wlm-navy);
  font-size: var(--wlm-font-size-xl);
  margin: 0 0 var(--wlm-space-sm) 0;
}

.wlm-empty-state__desc {
  max-width: 500px;
  margin: 0 auto;
  font-size: 1rem;
}


/* ==========================================================================
   STEP 11: PRODUCT SYSTEM
   ========================================================================== */

/* -- Product Archive Header -- */
.wlm-product-archive-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--wlm-space-xl) auto;
}

.wlm-archive-intro {
  font-size: var(--wlm-font-size-lg);
  color: var(--wlm-text-light);
  margin-top: var(--wlm-space-sm);
}

/* -- Product Category Filter Chips -- */
.wlm-product-filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--wlm-space-xl);
  justify-content: center;
}

.wlm-filter-chip {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--wlm-border);
  border-radius: 4px;
  font-size: var(--wlm-font-size-sm);
  font-weight: 600;
  color: var(--wlm-text);
  text-decoration: none;
  transition: all 0.2s;
  background: var(--wlm-white);
}

.wlm-filter-chip:hover {
  background: var(--wlm-bg-alt);
  border-color: var(--wlm-navy);
  color: var(--wlm-navy);
}

.wlm-filter-chip--active {
  background: var(--wlm-navy);
  color: var(--wlm-white);
  border-color: var(--wlm-navy);
}

.wlm-filter-chip--active:hover {
  background: var(--wlm-navy);
  color: var(--wlm-white);
}

/* -- Product Card Specializations -- */
.wlm-product-card__brand {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wlm-text-light);
}

.wlm-product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--wlm-space-sm);
}

.wlm-product-tag {
  display: inline-block;
  padding: 2px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  border: 1px solid var(--wlm-border);
  border-radius: 4px;
  color: var(--wlm-text-light);
  text-decoration: none;
  transition: all 0.15s;
}

.wlm-product-tag:hover {
  background: var(--wlm-green);
  color: var(--wlm-white);
  border-color: var(--wlm-green);
}

/* -- Product Single Hero -- */
.wlm-product-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wlm-space-xl);
  margin-bottom: var(--wlm-space-2xl);
  align-items: start;
}

@media (min-width: 768px) {
  .wlm-product-hero {
    grid-template-columns: 1fr 1fr;
  }
}

.wlm-product-hero__figure {
  margin: 0;
  border-radius: var(--wlm-radius);
  overflow: hidden;
  background: var(--wlm-bg-alt);
}

.wlm-product-hero__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.wlm-product-hero__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background: var(--wlm-bg-alt);
  border-radius: var(--wlm-radius);
}

.wlm-product-hero__info {
  display: flex;
  flex-direction: column;
  gap: var(--wlm-space-sm);
}

.wlm-product-brand {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wlm-text-light);
}

.wlm-product-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0;
}

/* -- Product Star Rating -- */
.wlm-product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b; /* Amber for stars */
}

.wlm-product-rating__value {
  font-weight: 700;
  font-size: var(--wlm-font-size-lg);
  color: var(--wlm-navy);
  margin-left: 4px;
}

.wlm-product-summary {
  font-size: var(--wlm-font-size-lg);
  color: var(--wlm-text);
  line-height: 1.6;
}

.wlm-product-summary p {
  margin: 0;
}

.wlm-product-actions {
  padding-top: var(--wlm-space-sm);
}

/* -- Product Details Panel -- */
.wlm-product-details {
  background: var(--wlm-bg-alt);
  border: 1px solid var(--wlm-border);
  border-radius: var(--wlm-radius);
  padding: var(--wlm-space-lg);
  margin-bottom: var(--wlm-space-2xl);
}

.wlm-product-details__heading {
  font-size: var(--wlm-font-size-lg);
  margin: 0 0 var(--wlm-space-md) 0;
  padding-bottom: var(--wlm-space-sm);
  border-bottom: 1px solid var(--wlm-border);
}

.wlm-product-details__list {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wlm-space-sm);
}

@media (min-width: 600px) {
  .wlm-product-details__list {
    grid-template-columns: 140px 1fr;
    gap: var(--wlm-space-xs) var(--wlm-space-md);
  }
}

.wlm-product-details__list dt {
  font-weight: 700;
  font-size: var(--wlm-font-size-sm);
  color: var(--wlm-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wlm-product-details__list dd {
  margin: 0 0 var(--wlm-space-sm) 0;
}

@media (min-width: 600px) {
  .wlm-product-details__list dd {
    margin-bottom: 0;
  }
}

.wlm-product-details__list dd a {
  color: var(--wlm-navy);
  text-decoration: none;
}

.wlm-product-details__list dd a:hover {
  color: var(--wlm-green);
}

/* -- Product Content -- */
.wlm-product-content {
  max-width: 780px;
}

/* -- Product Related Content -- */
.wlm-product-related {
  border-top: 1px solid var(--wlm-border);
  padding-top: var(--wlm-space-2xl);
  margin-top: var(--wlm-space-2xl);
}

/* ==========================================================================
   STEP 12: REVIEW SYSTEM
   ========================================================================== */

/* -- Review Archive Header -- */
.wlm-review-archive-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--wlm-space-xl) auto;
}

/* -- Review Card Specializations -- */
.wlm-review-card__product {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.wlm-review-card__product a {
  color: var(--wlm-green);
  text-decoration: none;
}

.wlm-review-card__product a:hover {
  text-decoration: underline;
}

.wlm-review-card__author-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--wlm-text-light);
}

.wlm-review-card__author {
  font-weight: 600;
}

/* -- Review Single Hero -- */
.wlm-review-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wlm-space-xl);
  margin-bottom: var(--wlm-space-2xl);
  align-items: start;
}

@media (min-width: 768px) {
  .wlm-review-hero {
    grid-template-columns: 1fr 1fr;
  }
}

.wlm-review-hero__figure {
  margin: 0;
  border-radius: var(--wlm-radius);
  overflow: hidden;
  background: var(--wlm-bg-alt);
}

.wlm-review-hero__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.wlm-review-hero__info {
  display: flex;
  flex-direction: column;
  gap: var(--wlm-space-sm);
}

.wlm-review-title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  margin: 0;
}

/* -- Reviewed Product Reference -- */
.wlm-review-product-ref {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wlm-review-product-ref__link {
  font-size: var(--wlm-font-size-lg);
  font-weight: 700;
  color: var(--wlm-navy);
  text-decoration: none;
}

.wlm-review-product-ref__link:hover {
  color: var(--wlm-green);
}

/* -- Review Rating (Single) -- */
.wlm-review-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wlm-review-rating__stars {
  display: flex;
  gap: 2px;
  color: #f59e0b;
}

.wlm-review-rating__value {
  font-weight: 700;
  font-size: var(--wlm-font-size-xl);
  color: var(--wlm-navy);
}

/* -- Review Summary -- */
.wlm-review-summary {
  font-size: var(--wlm-font-size-lg);
  color: var(--wlm-text);
  line-height: 1.6;
}

.wlm-review-summary p {
  margin: 0;
}

.wlm-review-actions {
  padding-top: var(--wlm-space-xs);
}

/* -- Review Content -- */
.wlm-review-content {
  max-width: 780px;
}

/* -- Pros / Cons -- */
.wlm-review-pros-cons {
  max-width: 780px;
  margin-top: var(--wlm-space-2xl);
  padding-top: var(--wlm-space-xl);
  border-top: 1px solid var(--wlm-border);
}

.wlm-review-pros-cons__heading {
  font-size: var(--wlm-font-size-2xl);
  margin: 0 0 var(--wlm-space-lg) 0;
}

.wlm-review-pros-cons__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--wlm-space-md);
}

@media (min-width: 600px) {
  .wlm-review-pros-cons__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.wlm-review-pros,
.wlm-review-cons {
  padding: var(--wlm-space-lg);
  border-radius: var(--wlm-radius);
}

.wlm-review-pros {
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.wlm-review-cons {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.wlm-review-pros__title,
.wlm-review-cons__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--wlm-font-size-lg);
  margin: 0 0 var(--wlm-space-sm) 0;
}

.wlm-review-pros__title {
  color: #16a34a;
}

.wlm-review-cons__title {
  color: #dc2626;
}

.wlm-review-pros ul,
.wlm-review-cons ul {
  margin: 0;
  padding-left: 20px;
}

.wlm-review-pros li,
.wlm-review-cons li {
  margin-bottom: 4px;
}

/* -- Verdict -- */
.wlm-review-verdict {
  max-width: 780px;
  margin-top: var(--wlm-space-xl);
  padding: var(--wlm-space-lg);
  background: var(--wlm-bg-alt);
  border: 1px solid var(--wlm-border);
  border-radius: var(--wlm-radius);
  border-left: 4px solid var(--wlm-green);
}

.wlm-review-verdict__heading {
  font-size: var(--wlm-font-size-xl);
  margin: 0 0 var(--wlm-space-sm) 0;
}

.wlm-review-verdict__content {
  line-height: 1.6;
}

.wlm-review-verdict__content p:last-child {
  margin-bottom: 0;
}

.wlm-review-verdict__rating {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: var(--wlm-space-md);
}

.wlm-review-verdict__score {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--wlm-navy);
  line-height: 1;
}

.wlm-review-verdict__scale {
  font-size: var(--wlm-font-size-xl);
  color: var(--wlm-text-light);
  font-weight: 600;
}

/* -- Methodology Note -- */
.wlm-review-methodology {
  max-width: 780px;
  margin-top: var(--wlm-space-xl);
  padding: var(--wlm-space-md) var(--wlm-space-lg);
  background: var(--wlm-bg-alt);
  border-radius: var(--wlm-radius);
  font-size: var(--wlm-font-size-sm);
  color: var(--wlm-text-light);
}

.wlm-review-methodology p {
  margin: 0;
}

.wlm-review-methodology strong {
  color: var(--wlm-navy);
}

/* ==========================================================================
   STEP 13: COMPARISON SYSTEM
   ========================================================================== */

/* -- Comparison Archive Header -- */
.wlm-comparison-archive-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--wlm-space-xl) auto;
}

/* -- Comparison Card Specializations -- */
.wlm-comparison-card__products {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--wlm-navy);
  margin-bottom: 2px;
}

.wlm-comparison-card__more {
  color: var(--wlm-text-light);
  font-size: 0.7rem;
  font-weight: 600;
}

/* -- Comparison Single Hero -- */
.wlm-comparison-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--wlm-space-2xl) auto;
}

.wlm-comparison-hero__meta {
  justify-content: center;
  margin-bottom: var(--wlm-space-sm);
}

.wlm-comparison-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 var(--wlm-space-sm) 0;
}

.wlm-comparison-summary {
  font-size: var(--wlm-font-size-lg);
  color: var(--wlm-text);
  line-height: 1.6;
  margin-bottom: var(--wlm-space-lg);
}

.wlm-comparison-summary p {
  margin: 0;
}

.wlm-comparison-hero__author-date {
  justify-content: center;
}

/* -- Comparison Product Strip -- */
.wlm-comparison-strip {
  display: flex;
  flex-direction: column;
  gap: var(--wlm-space-lg);
  align-items: center;
  justify-content: center;
  margin-bottom: var(--wlm-space-2xl);
  padding: var(--wlm-space-lg);
  background: var(--wlm-bg-alt);
  border-radius: var(--wlm-radius);
  border: 1px solid var(--wlm-border);
}

@media (min-width: 768px) {
  .wlm-comparison-strip {
    flex-direction: row;
    align-items: stretch;
    padding: var(--wlm-space-xl);
  }
}

.wlm-comparison-strip__item {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: center;
  width: 100%;
  max-width: 320px;
  background: var(--wlm-white);
  padding: var(--wlm-space-md);
  border-radius: var(--wlm-radius);
  border: 1px solid var(--wlm-border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.wlm-comparison-strip__image-link {
  display: block;
  margin-bottom: var(--wlm-space-md);
  border-radius: var(--wlm-radius);
  overflow: hidden;
  background: var(--wlm-bg-alt);
}

.wlm-comparison-strip__img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.wlm-comparison-strip__info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--wlm-space-md);
}

.wlm-comparison-strip__title {
  font-size: var(--wlm-font-size-lg);
  margin: 0;
}

.wlm-comparison-strip__title a {
  color: var(--wlm-navy);
  text-decoration: none;
}

.wlm-comparison-strip__title a:hover {
  color: var(--wlm-green);
}

.wlm-comparison-strip__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #f59e0b;
  font-weight: 700;
  font-size: var(--wlm-font-size-sm);
}

.wlm-comparison-strip__vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--wlm-text-light);
  padding: 0 var(--wlm-space-sm);
}

@media (max-width: 767px) {
  .wlm-comparison-strip__vs {
    padding: var(--wlm-space-xs) 0;
  }
}

/* -- Comparison Table Wrapper -- */
.wlm-comparison-table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--wlm-space-2xl);
  border: 1px solid var(--wlm-border);
  border-radius: var(--wlm-radius);
}

.wlm-comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

/* -- Comparison Content -- */
.wlm-comparison-content {
  max-width: 780px;
  margin: 0 auto;
}

/* -- Comparison Verdict -- */
.wlm-comparison-verdict {
  max-width: 780px;
  margin: var(--wlm-space-2xl) auto 0 auto;
  padding: var(--wlm-space-xl);
  background: var(--wlm-navy);
  color: var(--wlm-white);
  border-radius: var(--wlm-radius);
  text-align: center;
}

.wlm-comparison-verdict__heading {
  font-size: var(--wlm-font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
  margin: 0 0 var(--wlm-space-md) 0;
}

.wlm-comparison-winner {
  margin-bottom: var(--wlm-space-lg);
}

.wlm-comparison-winner__title {
  font-size: var(--wlm-font-size-2xl);
  margin: 0;
}

.wlm-comparison-winner__title a {
  color: var(--wlm-green);
  text-decoration: none;
}

.wlm-comparison-winner__title a:hover {
  text-decoration: underline;
}

.wlm-comparison-verdict__content {
  font-size: var(--wlm-font-size-lg);
  line-height: 1.6;
}

.wlm-comparison-verdict__content p:last-child {
  margin-bottom: 0;
}

/* -- Related Content -- */
.wlm-comparison-related {
  border-top: 1px solid var(--wlm-border);
  padding-top: var(--wlm-space-2xl);
  margin-top: var(--wlm-space-2xl);
}

/* ==========================================================================
   STEP 14: BUYING GUIDE SYSTEM
   ========================================================================== */

/* -- Archive Header -- */
.wlm-buying-guide-archive-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--wlm-space-xl) auto;
}

/* -- Card Specializations -- */
.wlm-buying-guide-card__count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--wlm-navy);
  background: var(--wlm-bg-alt);
  padding: 2px 8px;
  border-radius: 4px;
}

/* -- Single Hero -- */
.wlm-buying-guide-hero {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--wlm-space-2xl) auto;
}

.wlm-buying-guide-hero__meta {
  justify-content: center;
  margin-bottom: var(--wlm-space-sm);
}

.wlm-buying-guide-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 var(--wlm-space-sm) 0;
}

.wlm-buying-guide-summary {
  font-size: var(--wlm-font-size-lg);
  color: var(--wlm-text);
  line-height: 1.6;
  margin-bottom: var(--wlm-space-lg);
}

.wlm-buying-guide-summary p {
  margin: 0;
}

.wlm-buying-guide-hero__author-date {
  justify-content: center;
  flex-direction: column;
  gap: var(--wlm-space-sm);
  margin-bottom: var(--wlm-space-xl);
}

@media (min-width: 600px) {
  .wlm-buying-guide-hero__author-date {
    flex-direction: row;
    gap: var(--wlm-space-md);
  }
}

.wlm-buying-guide-hero__dates {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wlm-buying-guide-hero__figure {
  margin: 0;
  border-radius: var(--wlm-radius);
  overflow: hidden;
}

.wlm-buying-guide-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

/* -- Content -- */
.wlm-buying-guide-content {
  max-width: 780px;
  margin: 0 auto;
}

/* -- Recommendations Section -- */
.wlm-buying-guide-recommendations {
  max-width: 900px;
  margin: var(--wlm-space-2xl) auto;
  padding-top: var(--wlm-space-2xl);
  border-top: 2px solid var(--wlm-border);
}

.wlm-buying-guide-recommendations__heading {
  font-size: var(--wlm-font-size-2xl);
  margin-bottom: var(--wlm-space-xl);
  text-align: center;
}

.wlm-buying-guide-recommendations__list {
  display: flex;
  flex-direction: column;
  gap: var(--wlm-space-xl);
}

/* -- Recommendation Card -- */
.wlm-recommendation-card {
  display: flex;
  flex-direction: column;
  background: var(--wlm-white);
  border: 1px solid var(--wlm-border);
  border-radius: var(--wlm-radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

@media (min-width: 768px) {
  .wlm-recommendation-card {
    flex-direction: row;
  }
}

.wlm-recommendation-card__image-col {
  flex: 0 0 300px;
  background: var(--wlm-bg-alt);
}

.wlm-recommendation-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 250px;
}

.wlm-recommendation-card__content-col {
  flex: 1;
  padding: var(--wlm-space-xl);
  display: flex;
  flex-direction: column;
}

.wlm-recommendation-card__award {
  display: inline-block;
  align-self: flex-start;
  background: var(--wlm-green);
  color: var(--wlm-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: var(--wlm-space-sm);
}

.wlm-recommendation-card__title {
  font-size: var(--wlm-font-size-xl);
  margin: 0 0 var(--wlm-space-sm) 0;
}

.wlm-recommendation-card__title a {
  color: var(--wlm-navy);
  text-decoration: none;
}

.wlm-recommendation-card__title a:hover {
  color: var(--wlm-green);
}

.wlm-recommendation-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #f59e0b;
  font-weight: 700;
  margin-bottom: var(--wlm-space-sm);
}

.wlm-recommendation-card__desc {
  font-size: var(--wlm-font-size-md);
  color: var(--wlm-text);
  line-height: 1.6;
  margin-bottom: var(--wlm-space-lg);
  flex-grow: 1;
}

.wlm-recommendation-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wlm-space-sm);
}

/* -- Related Content -- */
.wlm-buying-guide-related {
  border-top: 1px solid var(--wlm-border);
  padding-top: var(--wlm-space-2xl);
  margin-top: var(--wlm-space-2xl);
}

/* ==========================================================================
   STEP 15: JOURNAL / EDITORIAL SYSTEM
   ========================================================================== */

/* -- Journal Archive -- */
.wlm-journal-archive-header,
.wlm-blog-archive-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--wlm-space-xl) auto;
}

.wlm-journal-filter-nav,
.wlm-blog-filter-nav {
  margin-bottom: var(--wlm-space-xl);
}

/* -- Journal Single Article -- */
.wlm-journal-single {
  padding-top: var(--wlm-space-xl);
}

.wlm-journal-article {
  margin-bottom: var(--wlm-space-2xl);
}

/* -- Journal Hero -- */
.wlm-journal-hero__inner {
  max-width: 800px;
  margin: 0 auto var(--wlm-space-xl) auto;
  text-align: center;
  padding: 0 var(--wlm-space-md);
}

.wlm-journal-hero__meta-top {
  margin-bottom: var(--wlm-space-sm);
}

.wlm-journal-cat {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--wlm-green);
  text-decoration: none;
}

.wlm-journal-cat:hover {
  text-decoration: underline;
}

.wlm-journal-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  margin: 0 0 var(--wlm-space-md) 0;
  color: var(--wlm-navy);
}

.wlm-journal-dek {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  color: var(--wlm-text-light);
  line-height: 1.6;
  margin-bottom: var(--wlm-space-lg);
}

.wlm-journal-dek p {
  margin: 0;
}

.wlm-journal-hero__meta-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wlm-journal-hero__meta-bottom .wlm-author {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.wlm-journal-hero__meta-bottom .wlm-author-info {
  display: flex;
  flex-direction: column;
}

.wlm-journal-hero__meta-bottom .wlm-author-name {
  font-weight: 600;
  color: var(--wlm-navy);
}

.wlm-journal-hero__meta-bottom .wlm-author-name a {
  color: inherit;
  text-decoration: none;
}

.wlm-journal-hero__meta-bottom .wlm-author-name a:hover {
  color: var(--wlm-green);
}

.wlm-journal-dates {
  font-size: 0.8rem;
  color: var(--wlm-text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* -- Journal Hero Image -- */
.wlm-journal-hero__figure {
  margin: 0 0 var(--wlm-space-xl) 0;
  width: 100%;
}

.wlm-journal-hero__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: cover;
  border-radius: 0;
}

@media (min-width: 768px) {
  .wlm-journal-hero__figure {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
  .wlm-journal-hero__img {
    border-radius: var(--wlm-radius);
  }
}

.wlm-journal-hero__caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--wlm-text-light);
  margin-top: 8px;
}

/* -- Journal Body (Constrained Width) -- */
.wlm-journal-body {
  max-width: 720px; /* ~65-80 characters line length */
  margin: 0 auto;
  padding: 0 var(--wlm-space-md);
}

.wlm-journal-content {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--wlm-text);
}

.wlm-journal-content h2,
.wlm-journal-content h3 {
  color: var(--wlm-navy);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.wlm-journal-content p {
  margin-bottom: 1.5em;
}

.wlm-journal-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--wlm-radius);
  margin: var(--wlm-space-md) 0;
}

.wlm-journal-content blockquote {
  font-size: 1.25rem;
  font-style: italic;
  border-left: 4px solid var(--wlm-green);
  padding-left: var(--wlm-space-md);
  margin: var(--wlm-space-xl) 0;
  color: var(--wlm-navy);
}

/* -- Journal Tags -- */
.wlm-journal-tags {
  margin-top: var(--wlm-space-xl);
  padding-top: var(--wlm-space-lg);
  border-top: 1px solid var(--wlm-border);
  font-size: 0.9rem;
}

.wlm-tags-label {
  font-weight: 700;
  color: var(--wlm-navy);
}

.wlm-journal-tags a {
  display: inline-block;
  background: var(--wlm-bg-alt);
  color: var(--wlm-text);
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  margin: 2px;
}

.wlm-journal-tags a:hover {
  background: var(--wlm-border);
}

/* -- Author Box -- */
.wlm-journal-author-box {
  max-width: 720px;
  margin: var(--wlm-space-2xl) auto 0 auto;
  padding: var(--wlm-space-xl);
  background: var(--wlm-bg-alt);
  border-radius: var(--wlm-radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--wlm-space-md);
}

@media (min-width: 600px) {
  .wlm-journal-author-box {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: var(--wlm-space-lg);
  }
}

.wlm-journal-author-box__avatar img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
}

.wlm-journal-author-box__name {
  margin: 0 0 var(--wlm-space-xs) 0;
  font-size: var(--wlm-font-size-xl);
}

.wlm-journal-author-box__name a {
  color: var(--wlm-navy);
  text-decoration: none;
}

.wlm-journal-author-box__name a:hover {
  color: var(--wlm-green);
}

.wlm-journal-author-box__bio {
  margin: 0;
  font-size: var(--wlm-font-size-md);
  line-height: 1.6;
  color: var(--wlm-text);
}

/* -- Related Content (Journal) -- */
.wlm-journal-related {
  background: var(--wlm-bg-alt);
  padding: var(--wlm-space-2xl) 0;
  margin-top: var(--wlm-space-2xl);
  border-top: 1px solid var(--wlm-border);
}

/* ==========================================================================
   STEP 17: AUTHORS & EDITORIAL TRUST
   ========================================================================== */

/* -- Author Profile Header -- */
.wlm-author-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--wlm-bg-alt);
  border-radius: var(--wlm-radius);
  padding: var(--wlm-space-2xl) var(--wlm-space-xl);
  margin-bottom: var(--wlm-space-2xl);
  gap: var(--wlm-space-lg);
}

@media (min-width: 768px) {
  .wlm-author-profile {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: var(--wlm-space-3xl) var(--wlm-space-2xl);
    gap: var(--wlm-space-2xl);
  }
}

.wlm-author-profile__avatar img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 4px solid var(--wlm-white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

@media (min-width: 768px) {
  .wlm-author-profile__avatar img {
    width: 140px;
    height: 140px;
  }
}

.wlm-author-profile__info {
  flex: 1;
}

.wlm-author-profile__name {
  font-size: var(--wlm-font-size-3xl);
  color: var(--wlm-navy);
  margin: 0 0 var(--wlm-space-sm) 0;
}

.wlm-author-profile__bio {
  font-size: var(--wlm-font-size-md);
  color: var(--wlm-text);
  line-height: 1.6;
  margin-bottom: var(--wlm-space-md);
  max-width: 800px;
}

.wlm-author-profile__bio p {
  margin-bottom: 0.5em;
}

.wlm-author-profile__count {
  margin-top: var(--wlm-space-md);
}

/* -- Author Content Section -- */
.wlm-author-content {
  margin-bottom: var(--wlm-space-3xl);
}

.wlm-author-content__heading {
  font-size: var(--wlm-font-size-xl);
  color: var(--wlm-navy);
  margin-bottom: var(--wlm-space-lg);
  padding-bottom: var(--wlm-space-sm);
  border-bottom: 1px solid var(--wlm-border);
}

/* -- Editorial Trust Links -- */
.wlm-review-methodology__link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--wlm-green);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}

.wlm-review-methodology__link:hover {
  color: var(--wlm-green);
}

.wlm-search-form__clear {
  background: none;
  border: none;
  padding: 0 0 0 var(--wlm-space-sm);
  color: var(--wlm-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.wlm-search-form__clear:hover,
.wlm-search-form__clear:focus {
  color: var(--wlm-navy);
}

.wlm-search-form__clear[hidden] {
  display: none !important;
}

/* -- Search Empty State -- */
.wlm-search-empty-state .wlm-empty-state {
  max-width: 600px;
  margin: 0 auto;
}

.wlm-empty-state__suggestions {
  margin: var(--wlm-space-xl) 0;
  text-align: left;
  background: var(--wlm-bg-alt);
  padding: var(--wlm-space-lg) var(--wlm-space-xl);
  border-radius: var(--wlm-radius);
}

.wlm-suggestions-title {
  font-size: var(--wlm-font-size-md);
  margin-top: 0;
  margin-bottom: var(--wlm-space-sm);
  color: var(--wlm-navy);
}

.wlm-suggestions-list {
  margin: 0;
  padding-left: var(--wlm-space-md);
  color: var(--wlm-text);
}

.wlm-suggestions-list li {
  margin-bottom: var(--wlm-space-xs);
}

.wlm-suggestions-list li:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   STEP 22: PRESENTATION COMPOSITION OVERHAUL
   Final visual layer for archive, static page, card, empty, and responsive polish.
   ========================================================================== */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: #fbfaf7;
}

body a {
  color: var(--wlm-green);
  text-decoration-color: rgba(27, 107, 74, 0.35);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

body a:hover,
body a:focus {
  color: var(--wlm-green-dark);
  text-decoration-color: currentColor;
}

body :focus-visible {
  outline: 3px solid var(--wlm-focus);
  outline-offset: 3px;
}

.ast-container,
.wlm-container,
.wlm-header__inner,
.wlm-utility-bar__inner,
.wlm-footer__inner,
.wlm-footer__bottom-inner {
  width: min(100% - 32px, 1280px) !important;
  max-width: 1280px !important;
  box-sizing: border-box;
}

.wlm-container {
  padding: clamp(32px, 5vw, 72px) 0;
}

.wlm-archive-main .wlm-container {
  padding-top: clamp(28px, 4vw, 56px);
}

.wlm-archive-header,
.wlm-product-archive-header,
.wlm-review-archive-header,
.wlm-comparison-archive-header,
.wlm-buying-guide-archive-header,
.wlm-journal-archive-header,
.wlm-blog-archive-header {
  text-align: left;
  max-width: 860px;
  margin: 0 0 clamp(20px, 3vw, 32px) 0 !important;
  padding: 0 !important;
}

.wlm-archive-header .wlm-eyebrow {
  margin-bottom: 10px;
}

.wlm-eyebrow {
  letter-spacing: 0.08em;
}

.wlm-archive-title {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.02;
  margin: 0 0 14px 0 !important;
  max-width: 980px;
  letter-spacing: 0;
}

.wlm-archive-intro,
.wlm-archive-desc {
  max-width: 720px;
  margin: 0 !important;
  color: var(--wlm-text-light);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
}

.wlm-product-filter-nav {
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 clamp(24px, 4vw, 40px) 0;
  padding: 0 0 4px 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.wlm-filter-chip {
  flex: 0 0 auto;
  border-radius: 4px;
  padding: 7px 12px;
  background: transparent;
  border-color: rgba(26, 31, 54, 0.16);
  color: var(--wlm-navy);
  font-size: 0.8125rem;
  line-height: 1.2;
  text-transform: none;
}

.wlm-filter-chip--active {
  background: var(--wlm-navy);
  border-color: var(--wlm-navy);
  color: var(--wlm-white);
}

.wlm-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
  margin-bottom: clamp(32px, 5vw, 64px);
}

@media (min-width: 1180px) {
  .wlm-product-grid,
  .wlm-review-grid,
  .wlm-comparison-grid,
  .wlm-buying-guide-grid,
  .wlm-journal-grid,
  .wlm-blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (min-width: 1440px) {
  .wlm-product-grid,
  .wlm-review-grid,
  .wlm-comparison-grid,
  .wlm-buying-guide-grid,
  .wlm-journal-grid,
  .wlm-blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  }
}

.wlm-card {
  border-color: rgba(26, 31, 54, 0.12);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(26, 31, 54, 0.03);
  background: var(--wlm-white);
}

.wlm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(26, 31, 54, 0.08);
}

.wlm-card__image-link {
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(135deg, rgba(27, 107, 74, 0.08), rgba(26, 31, 54, 0.06)),
    #f4f1eb;
}

.wlm-product-card .wlm-card__image-link {
  aspect-ratio: 4 / 3;
}

.wlm-comparison-card .wlm-card__image-link {
  aspect-ratio: 21 / 10;
}

.wlm-card__image-fallback {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(27, 107, 74, 0.08), rgba(26, 31, 54, 0.04)),
    #f7f4ee;
}

.wlm-card__body {
  padding: clamp(18px, 2vw, 24px);
  gap: 0;
}

.wlm-card__meta,
.wlm-card__term,
.wlm-product-card__brand,
.wlm-card__badge,
.wlm-card__readmore {
  letter-spacing: 0.07em;
}

.wlm-card__meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.wlm-card__title {
  font-size: clamp(1.125rem, 1.5vw, 1.35rem);
  line-height: 1.25;
}

.wlm-card__excerpt {
  font-size: 0.98rem;
  line-height: 1.58;
}

.wlm-card__footer,
.wlm-review-card__author-date,
.wlm-card__author-date,
.wlm-buying-guide-card__info {
  min-width: 0;
}

.wlm-card__readmore {
  border-color: rgba(26, 31, 54, 0.14) !important;
  border-radius: 4px !important;
  background: var(--wlm-white);
}

.wlm-card__readmore:hover,
.wlm-card__readmore:focus {
  background: #f5f3ee;
  color: var(--wlm-navy);
}

.wlm-button--primary,
.wlm-btn--primary {
  background: var(--wlm-green) !important;
  color: var(--wlm-white) !important;
  border-color: var(--wlm-green) !important;
}

.wlm-product-card {
  border-top: 3px solid rgba(27, 107, 74, 0.75);
}

.wlm-review-card {
  border-top: 3px solid rgba(26, 31, 54, 0.78);
}

.wlm-comparison-card {
  border-top: 3px solid #b7791f;
}

.wlm-buying-guide-card {
  border-top: 3px solid #8a6f3d;
}

.wlm-comparison-card__products {
  color: var(--wlm-navy) !important;
  line-height: 1.45;
}

.wlm-empty-state {
  width: min(100%, 680px);
  margin: clamp(18px, 3vw, 32px) auto;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(26, 31, 54, 0.12);
  border-radius: 6px;
  box-shadow: none;
}

.wlm-empty-state__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  color: var(--wlm-green);
  background: rgba(27, 107, 74, 0.08);
  border-radius: 50%;
}

.wlm-empty-state__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 10px;
}

.wlm-empty-state__desc {
  max-width: 560px;
  color: var(--wlm-text-light);
}

.wlm-empty-state__actions {
  margin-top: 20px;
}

.wlm-search-empty-state .wlm-empty-state {
  max-width: 720px;
}

.wlm-empty-state__suggestions {
  background: #f5f3ee;
  border: 1px solid rgba(26, 31, 54, 0.1);
  margin: 24px auto;
  max-width: 520px;
}

.wlm-single-article,
.wlm-product-article,
.wlm-review-article,
.wlm-comparison-article,
.wlm-buying-guide-article {
  max-width: 1120px;
}

.wlm-single-header {
  text-align: left;
  max-width: 820px;
}

.wlm-single-meta-top,
.wlm-single-meta-bottom {
  justify-content: flex-start;
}

.wlm-single-title,
.wlm-product-title,
.wlm-review-title,
.wlm-comparison-title,
.wlm-buying-guide-title,
.wlm-journal-title,
.wlm-static-page__title {
  font-size: clamp(2.25rem, 5vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.wlm-product-hero,
.wlm-review-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.wlm-product-hero__figure,
.wlm-review-hero__figure,
.wlm-product-hero__placeholder {
  max-height: 560px;
}

.wlm-product-hero__img,
.wlm-review-hero__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.wlm-product-details,
.wlm-review-pros-cons,
.wlm-review-verdict,
.wlm-review-methodology,
.wlm-comparison-strip,
.wlm-comparison-verdict,
.wlm-buying-guide-recommendations,
.wlm-recommendation-card {
  border-radius: 6px;
  border-color: rgba(26, 31, 54, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.wlm-single-content,
.wlm-product-content,
.wlm-review-content,
.wlm-comparison-content,
.wlm-buying-guide-content {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.wlm-journal-hero__inner,
.wlm-static-page__header {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.wlm-journal-hero__meta-bottom {
  justify-content: flex-start;
}

.wlm-journal-body,
.wlm-static-page__content {
  max-width: 760px;
  margin: 0 auto;
  padding: 0;
}

.wlm-static-page {
  max-width: 1040px;
  margin: 0 auto;
}

.wlm-static-page__header {
  margin-bottom: clamp(24px, 4vw, 48px);
}

.wlm-static-page__lead {
  max-width: 720px;
  color: var(--wlm-text-light);
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.wlm-static-page__lead p {
  margin: 0;
}

.wlm-static-page__figure {
  max-width: 960px;
  margin: 0 auto clamp(32px, 5vw, 56px);
}

.wlm-static-page__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.wlm-static-page__content,
.wlm-journal-content,
.wlm-single-content {
  font-size: 1.125rem;
  line-height: 1.75;
}

.wlm-static-page__content > * + *,
.wlm-journal-content > * + *,
.wlm-single-content > * + * {
  margin-top: 1.25em;
}

.wlm-static-page__content h2,
.wlm-static-page__content h3,
.wlm-static-page__content h4,
.wlm-journal-content h2,
.wlm-journal-content h3,
.wlm-single-content h2,
.wlm-single-content h3 {
  margin-top: 2em;
  margin-bottom: 0.55em;
  letter-spacing: 0;
}

.wlm-static-page__content p,
.wlm-static-page__content li,
.wlm-journal-content p,
.wlm-journal-content li,
.wlm-single-content p,
.wlm-single-content li {
  overflow-wrap: anywhere;
}

.wlm-static-page__content ul,
.wlm-static-page__content ol,
.wlm-journal-content ul,
.wlm-journal-content ol,
.wlm-single-content ul,
.wlm-single-content ol {
  padding-left: 1.25em;
}

.wlm-static-page__content blockquote,
.wlm-journal-content blockquote,
.wlm-single-content blockquote {
  margin: 32px 0;
  padding: 18px 0 18px 24px;
  border-left: 3px solid var(--wlm-green);
  color: var(--wlm-navy);
  background: transparent;
}

.wlm-static-page__content table,
.wlm-journal-content table,
.wlm-single-content table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.wlm-static-page__content th,
.wlm-static-page__content td,
.wlm-journal-content th,
.wlm-journal-content td,
.wlm-single-content th,
.wlm-single-content td {
  border: 1px solid var(--wlm-border);
  padding: 10px 12px;
}

.wlm-static-page__content a,
.wlm-journal-content a,
.wlm-single-content a {
  font-weight: 600;
}

.wlm-footer {
  background: #f5f3ee;
  border-top-color: rgba(26, 31, 54, 0.12);
}

.wlm-footer__inner {
  gap: clamp(24px, 4vw, 48px);
}

.wlm-footer-links a,
.wlm-footer-menu__label {
  line-height: 1.35;
}

@media (max-width: 1023px) {
  .wlm-header__nav,
  .wlm-header__cta {
    display: none;
  }

  .wlm-product-hero,
  .wlm-review-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .ast-container,
  .wlm-container,
  .wlm-header__inner,
  .wlm-utility-bar__inner,
  .wlm-footer__inner,
  .wlm-footer__bottom-inner {
    width: min(100% - 24px, 1280px) !important;
  }

  .wlm-container {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .wlm-archive-title,
  .wlm-single-title,
  .wlm-product-title,
  .wlm-review-title,
  .wlm-comparison-title,
  .wlm-buying-guide-title,
  .wlm-journal-title,
  .wlm-static-page__title {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .wlm-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .wlm-card__image-link,
  .wlm-product-card .wlm-card__image-link,
  .wlm-comparison-card .wlm-card__image-link {
    aspect-ratio: 16 / 9;
  }

  .wlm-product-filter-nav {
    flex-wrap: nowrap;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .wlm-static-page__content,
  .wlm-journal-content,
  .wlm-single-content {
    font-size: 1.0625rem;
  }

  .wlm-empty-state {
    padding: 24px 18px;
  }

  .wlm-single-meta-bottom,
  .wlm-buying-guide-hero__author-date,
  .wlm-journal-dates {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   STEP 23: HEALTH VISUAL SYSTEM, HERO SYSTEM, MARKETS UI
   ========================================================================== */

:root {
  --wlm-green: #176B4D;
  --wlm-green-dark: #0F4A36;
  --wlm-navy: #17213C;
  --wlm-text: #17213C;
  --wlm-text-light: #4F5E57;
  --wlm-text-muted: #6F7C75;
  --wlm-sage: #5F8F78;
  --wlm-mint: #EAF4EE;
  --wlm-cream: #F7F5EF;
  --wlm-surface: #FFFFFF;
  --wlm-bg: #F7F5EF;
  --wlm-bg-alt: #EAF4EE;
  --wlm-border: #DDE5DF;
  --wlm-gold: #C89B3C;
  --wlm-error: #9F4E45;
  --wlm-focus: rgba(23, 107, 77, 0.32);
  --wlm-radius: 5px;
}

body,
.site,
.ast-separate-container,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
  background: var(--wlm-cream) !important;
  color: var(--wlm-text);
}

.ast-container,
.wlm-container,
.wlm-header__inner,
.wlm-utility-bar__inner,
.wlm-footer__inner,
.wlm-footer__bottom-inner {
  width: min(100% - clamp(32px, 5vw, 96px), 1440px) !important;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 600px) {
  .ast-container,
  .wlm-container,
  .wlm-header__inner,
  .wlm-utility-bar__inner,
  .wlm-footer__inner,
  .wlm-footer__bottom-inner {
    width: min(100% - 32px, 1440px) !important;
  }
}

a,
.entry-content a,
.wlm-static-page__content a,
.wlm-journal-content a,
.wlm-single-content a {
  color: var(--wlm-green);
}

a:hover,
a:focus,
.entry-content a:hover,
.entry-content a:focus {
  color: var(--wlm-green-dark);
}

button,
input,
select,
textarea,
.wlm-btn,
.wlm-card__readmore {
  border-radius: var(--wlm-radius) !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--wlm-focus) !important;
  outline-offset: 3px;
}

.wlm-btn,
.wlm-header__cta,
.wlm-mobile-menu__cta,
.wp-block-button__link,
.entry-content .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--wlm-green);
  background: var(--wlm-green);
  color: var(--wlm-white) !important;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.wlm-btn:hover,
.wlm-btn:focus,
.wlm-header__cta:hover,
.wlm-header__cta:focus,
.wlm-mobile-menu__cta:hover,
.wlm-mobile-menu__cta:focus,
.wp-block-button__link:hover,
.entry-content .wp-block-button__link:hover {
  background: var(--wlm-green-dark);
  border-color: var(--wlm-green-dark);
  color: var(--wlm-white) !important;
  transform: translateY(-1px);
}

.wlm-btn--outline,
.wlm-card__readmore,
.entry-content .is-style-outline .wp-block-button__link {
  background: var(--wlm-surface) !important;
  border-color: var(--wlm-border) !important;
  color: var(--wlm-green) !important;
}

.wlm-btn--outline:hover,
.wlm-btn--outline:focus,
.wlm-card__readmore:hover,
.wlm-card__readmore:focus {
  background: var(--wlm-mint) !important;
  border-color: var(--wlm-green) !important;
  color: var(--wlm-green-dark) !important;
}

.wlm-archive-header,
.wlm-product-archive-header,
.wlm-review-archive-header,
.wlm-comparison-archive-header,
.wlm-buying-guide-archive-header,
.wlm-journal-archive-header,
.wlm-blog-archive-header,
.wlm-static-page__header {
  position: relative;
  max-width: 920px;
  min-height: 0;
  margin: 0 auto clamp(24px, 4vw, 40px) !important;
  padding: clamp(34px, 6vw, 72px) 0 clamp(18px, 3vw, 32px) !important;
  text-align: center;
}

.wlm-archive-header::before,
.wlm-static-page__header::before {
  content: "";
  position: absolute;
  inset: 18px 50% auto auto;
  width: min(420px, 80vw);
  height: 1px;
  transform: translateX(50%);
  background: linear-gradient(90deg, transparent, rgba(95, 143, 120, 0.45), transparent);
}

.wlm-archive-title,
.wlm-static-page__title,
.wlm-journal-title,
.wlm-single-title,
.wlm-product-title,
.wlm-review-title,
.wlm-comparison-title,
.wlm-buying-guide-title {
  color: var(--wlm-navy);
  letter-spacing: 0;
}

.wlm-archive-intro,
.wlm-archive-desc,
.wlm-static-page__lead,
.wlm-journal-dek {
  margin-left: auto !important;
  margin-right: auto !important;
  color: var(--wlm-text-light);
}

.wlm-eyebrow,
.wlm-card__term,
.wlm-product-brand,
.wlm-product-card__brand,
.wlm-journal-cat {
  color: var(--wlm-green);
}

.wlm-product-filter-nav {
  justify-content: center;
  gap: 8px;
}

.wlm-filter-chip {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--wlm-border);
  color: var(--wlm-navy);
}

.wlm-filter-chip:hover,
.wlm-filter-chip:focus {
  background: var(--wlm-mint);
  border-color: var(--wlm-green);
  color: var(--wlm-green-dark);
}

.wlm-filter-chip--active,
.wlm-filter-chip--active:hover,
.wlm-filter-chip--active:focus,
.current-menu-item > a,
.current_page_item > a {
  background: var(--wlm-green) !important;
  border-color: var(--wlm-green) !important;
  color: var(--wlm-white) !important;
}

.wlm-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--wlm-border);
  backdrop-filter: blur(14px);
}

.wlm-utility-bar {
  background: var(--wlm-navy);
}

.wlm-header__inner {
  gap: 18px;
}

.wlm-header__logo a,
.wlm-primary-menu a,
.wlm-mobile-menu a {
  color: var(--wlm-navy);
}

.wlm-primary-menu a:hover,
.wlm-primary-menu a:focus,
.wlm-mobile-menu a:hover,
.wlm-mobile-menu a:focus {
  color: var(--wlm-green-dark);
  background: var(--wlm-mint);
}

.wlm-search-toggle,
.wlm-menu-toggle,
.wlm-search-form__submit,
.wlm-search-close,
.wlm-search-form__clear,
.wlm-mobile-menu__close {
  background: var(--wlm-surface) !important;
  border: 1px solid var(--wlm-border) !important;
  color: var(--wlm-navy) !important;
}

.wlm-search-toggle:hover,
.wlm-search-toggle:focus,
.wlm-menu-toggle:hover,
.wlm-menu-toggle:focus,
.wlm-search-form__submit:hover,
.wlm-search-form__submit:focus,
.wlm-search-close:hover,
.wlm-search-close:focus,
.wlm-search-form__clear:hover,
.wlm-search-form__clear:focus,
.wlm-mobile-menu__close:hover,
.wlm-mobile-menu__close:focus {
  background: var(--wlm-mint) !important;
  border-color: var(--wlm-green) !important;
  color: var(--wlm-green-dark) !important;
}

.wlm-market-selector {
  position: relative;
}

.wlm-market-selector__trigger {
  min-height: 40px;
  gap: 8px;
  border: 1px solid var(--wlm-border) !important;
  background: var(--wlm-surface) !important;
  color: var(--wlm-navy) !important;
  box-shadow: 0 1px 0 rgba(23, 33, 60, 0.04);
}

.wlm-market-selector__trigger:hover,
.wlm-market-selector__trigger:focus,
.wlm-market-selector[data-open="true"] .wlm-market-selector__trigger,
.wlm-market-selector.is-open .wlm-market-selector__trigger {
  background: var(--wlm-mint) !important;
  border-color: var(--wlm-green) !important;
  color: var(--wlm-green-dark) !important;
}

.wlm-market-selector__label {
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wlm-market-selector [role="listbox"],
.wlm-market-selector__dropdown,
.wellume-market-picker,
.wellume-markets-picker,
.wellume-market-switcher {
  min-width: 260px;
  padding: 10px;
  background: var(--wlm-surface);
  border: 1px solid var(--wlm-border);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(23, 33, 60, 0.14);
  color: var(--wlm-navy);
  z-index: 300;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.wlm-market-selector__dropdown.is-open,
.wellume-market-switcher.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.wlm-market-selector [role="option"],
.wlm-market-selector__option,
.wellume-market-picker a,
.wellume-markets-picker a,
.wellume-market-switcher__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  color: var(--wlm-navy);
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.15s ease;
}

.wellume-market-switcher__link:hover,
.wellume-market-switcher__link:focus {
  background-color: var(--wlm-bg-alt);
  outline: none;
}

.wellume-market-switcher__link:focus-visible {
  outline: 2px solid var(--wlm-focus);
  outline-offset: -2px;
}

.wlm-market-selector [aria-selected="true"],
.wlm-market-selector__option--active,
.wellume-market-picker .is-active,
.wellume-markets-picker .is-active,
.wellume-market-switcher__current {
  background: var(--wlm-mint);
  color: var(--wlm-green-dark);
  font-weight: 500;
  cursor: default;
}

.wellume-market-switcher li {
  margin: 0;
  list-style: none;
}

/* Mobile-specific market switcher positioning */
@media (max-width: 767px) {
  .wlm-market-selector--mobile .wellume-market-switcher {
    position: fixed;
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    min-width: 100%;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  
  .wlm-market-selector--mobile .wellume-market-switcher.is-open {
    transform: translateY(0);
  }
}

.wlm-footer {
  background: var(--wlm-navy) !important;
  color: rgba(255, 255, 255, 0.82);
  border-top: 0;
}

.wlm-footer__main {
  border-top: 1px solid rgba(234, 244, 238, 0.16);
}

.wlm-footer-brand__name,
.wlm-footer-brand__tagline,
.wlm-footer__heading,
.wlm-footer-links a,
.wlm-footer-brand__link,
.wlm-footer__copyright {
  color: var(--wlm-white) !important;
}

.wlm-footer-brand__desc,
.wlm-footer-mission__text,
.wlm-footer-menu__label {
  color: rgba(255, 255, 255, 0.72);
}

.wlm-footer__heading::after {
  background: var(--wlm-gold);
}

.wlm-footer-links a:hover,
.wlm-footer-links a:focus {
  color: var(--wlm-mint) !important;
}

.wlm-footer-socials__icon {
  border-color: rgba(234, 244, 238, 0.22);
  color: var(--wlm-white);
}

.wlm-footer-socials__icon:hover,
.wlm-footer-socials__icon:focus {
  background: var(--wlm-green);
  border-color: var(--wlm-green);
}

.wlm-card,
.wlm-static-page__content,
.wlm-product-details,
.wlm-review-pros-cons,
.wlm-review-verdict,
.wlm-review-methodology,
.wlm-comparison-strip,
.wlm-comparison-verdict,
.wlm-buying-guide-recommendations,
.wlm-recommendation-card,
.wlm-empty-state {
  background: var(--wlm-surface);
  border-color: var(--wlm-border);
}

.wlm-card:hover {
  border-color: rgba(23, 107, 77, 0.42);
}

.wlm-card__rating,
.wlm-product-rating,
.wlm-review-rating,
.wlm-recommendation-card__rating,
.wlm-comparison-strip__rating {
  color: var(--wlm-gold);
}

.wlm-market-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 var(--wlm-space-md);
  font-size: 0.875rem;
}

.wlm-market-summary__price,
.wlm-market-summary__availability {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  background: var(--wlm-mint);
  border: 1px solid rgba(23, 107, 77, 0.16);
  color: var(--wlm-green-dark);
  font-weight: 700;
  border-radius: var(--wlm-radius);
}

.wlm-market-summary__market {
  margin-left: 6px;
  color: var(--wlm-text-light);
  font-weight: 600;
}

.wlm-market-buy-button {
  display: contents;
}

.wlm-review-pros {
  background: rgba(234, 244, 238, 0.78);
}

.wlm-review-cons {
  background: rgba(159, 78, 69, 0.08);
}

.wlm-review-cons__title {
  color: var(--wlm-error);
}

.wlm-empty-state {
  max-width: 680px;
  box-shadow: 0 1px 0 rgba(23, 33, 60, 0.04);
}

.wlm-empty-state__icon {
  color: var(--wlm-green);
  background: var(--wlm-mint);
}

.wlm-empty-state__search {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 24px auto 0;
}

.wlm-empty-state__search input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--wlm-border);
  background: var(--wlm-surface);
  color: var(--wlm-navy);
  padding: 10px 12px;
}

.wlm-404-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  min-height: min(620px, calc(100vh - 180px));
  padding: clamp(28px, 5vw, 72px) 0;
}

.wlm-404-hero__art {
  display: flex;
  justify-content: center;
}

.wlm-404-illustration {
  width: min(100%, 460px);
  height: auto;
}

.wlm-404-hero__content {
  max-width: 560px;
}

.wlm-404-hero__title {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  line-height: 0.98;
  color: var(--wlm-navy);
}

.wlm-404-hero__desc {
  margin: 0;
  color: var(--wlm-text-light);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.wlm-404-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.wlm-static-page__content {
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--wlm-border);
  border-radius: 8px;
}

.page-id-0 .wlm-static-page__content {
  background: var(--wlm-surface);
}

@media (max-width: 1023px) {
  .wlm-header__actions {
    gap: 8px;
  }

  .wlm-header-market .wlm-market-selector__label {
    max-width: 7.5rem;
  }
}

@media (max-width: 767px) {
  .wlm-archive-header,
  .wlm-static-page__header {
    text-align: left;
    padding-top: 30px !important;
  }

  .wlm-archive-intro,
  .wlm-archive-desc,
  .wlm-static-page__lead {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .wlm-product-filter-nav {
    justify-content: flex-start;
  }

  .wlm-market-selector__label {
    max-width: 5.75rem;
  }

  .wlm-404-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: left;
  }

  .wlm-404-hero__art {
    justify-content: flex-start;
  }

  .wlm-404-illustration {
    width: min(100%, 320px);
  }

  .wlm-empty-state__search {
    flex-direction: column;
  }

  .wlm-static-page__content {
    padding: 22px 18px;
  }
}

/* ==========================================================================
   STEP 24: ARCHIVE, SEARCH, HEADER & MARKET UX CORRECTION
   ========================================================================== */

.wlm-archive-main .wlm-container {
  padding-top: clamp(18px, 3vw, 36px);
}

.wlm-archive-header,
.wlm-product-archive-header,
.wlm-review-archive-header,
.wlm-comparison-archive-header,
.wlm-buying-guide-archive-header,
.wlm-journal-archive-header,
.wlm-blog-archive-header,
.wlm-search-hero {
  display: block;
  width: min(100%, 920px);
  min-height: 0;
  margin: 0 auto clamp(28px, 4vw, 48px) !important;
  padding: clamp(42px, 6vw, 76px) 0 clamp(28px, 4vw, 42px) !important;
  text-align: center;
  border-bottom: 1px solid rgba(221, 229, 223, 0.9);
}

.wlm-archive-header::before,
.wlm-static-page__header::before {
  display: none;
}

.wlm-archive-title {
  margin-bottom: 14px !important;
}

.wlm-archive-intro,
.wlm-archive-desc {
  max-width: 720px;
}

.wlm-archive-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin: 0 0 clamp(22px, 3vw, 34px);
  padding: 14px 0;
  border-top: 1px solid var(--wlm-border);
  border-bottom: 1px solid var(--wlm-border);
}

.wlm-archive-toolbar__filters {
  min-width: 0;
}

.wlm-archive-toolbar .wlm-product-filter-nav {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 2px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.wlm-archive-toolbar .wlm-filter-chip {
  flex: 0 0 auto;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

.wlm-archive-toolbar__pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: max-content;
}

.wlm-archive-toolbar__count {
  color: var(--wlm-text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.wlm-archive-toolbar__nav .page-numbers {
  margin: 0;
}

.wlm-archive-toolbar__nav .page-numbers,
.wlm-archive-toolbar__nav .page-numbers li {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.wlm-archive-toolbar__nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.wlm-archive-toolbar__nav a,
.wlm-archive-toolbar__nav span {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--wlm-border);
  border-radius: var(--wlm-radius);
  background: var(--wlm-surface);
  color: var(--wlm-navy);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.wlm-archive-toolbar__nav .current {
  background: var(--wlm-green);
  border-color: var(--wlm-green);
  color: var(--wlm-white);
}

.wlm-archive-toolbar__nav a:hover,
.wlm-archive-toolbar__nav a:focus {
  background: var(--wlm-mint);
  border-color: var(--wlm-green);
  color: var(--wlm-green-dark);
}

.wlm-archive-main .wlm-grid {
  clear: both;
  margin-top: 0;
}

@media (min-width: 900px) {
  .wlm-archive-main .wlm-grid {
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  }

  .wlm-archive-main .wlm-grid:has(> article:only-child) {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
  }

  .wlm-archive-main .wlm-grid:has(> article:first-child:nth-last-child(2)) {
    grid-template-columns: repeat(2, minmax(290px, 420px));
    justify-content: center;
  }

  .wlm-archive-main .wlm-grid:has(> article:first-child:nth-last-child(2)) > article,
  .wlm-archive-main .wlm-grid:has(> article:first-child:nth-last-child(2)) > article ~ article {
    width: 100%;
  }
}

.wlm-page-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(100%, 760px);
  margin: 28px auto 0;
}

.wlm-page-search-form input {
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--wlm-border);
  background: var(--wlm-surface);
  color: var(--wlm-navy);
  font: inherit;
}

.wlm-page-search-form input:focus {
  border-color: var(--wlm-green);
  box-shadow: 0 0 0 3px var(--wlm-focus);
  outline: none;
}

.wlm-search-results-header {
  width: min(100%, 920px);
  margin: 0 auto 18px;
  text-align: center;
}

.wlm-search-results-header__title {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.wlm-search-results-header__count {
  margin: 0;
  color: var(--wlm-text-muted);
  font-weight: 700;
}

.wlm-search-empty-state {
  width: min(100%, 780px);
  margin: 0 auto;
}

.wlm-empty-state--search {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(18px, 3vw, 30px) 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.wlm-empty-state--search .wlm-empty-state__suggestions {
  background: transparent;
  border: 0;
  padding: 0;
}

.wlm-empty-state--search .wlm-suggestions-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.wlm-empty-state--search .wlm-suggestions-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--wlm-border);
  border-radius: var(--wlm-radius);
  background: var(--wlm-surface);
  color: var(--wlm-green);
  font-weight: 700;
  text-decoration: none;
}

.wlm-empty-state--search .wlm-suggestions-list a:hover,
.wlm-empty-state--search .wlm-suggestions-list a:focus {
  border-color: var(--wlm-green);
  background: var(--wlm-mint);
  color: var(--wlm-green-dark);
}

.wlm-header-market {
  display: block;
}

.wlm-market-selector__trigger {
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .wlm-archive-toolbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .wlm-archive-toolbar__pagination {
    justify-content: flex-start;
    min-width: 0;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .wlm-archive-header,
  .wlm-search-hero {
    text-align: left;
    padding-top: 32px !important;
    padding-bottom: 26px !important;
  }

  .wlm-page-search-form {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }

  .wlm-archive-toolbar {
    margin-bottom: 20px;
    padding: 12px 0;
  }

  .wlm-archive-toolbar .wlm-product-filter-nav {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .wlm-archive-toolbar__count {
    width: 100%;
  }

  .wlm-archive-toolbar__nav {
    max-width: 100%;
    overflow-x: auto;
  }

  .wlm-empty-state--search .wlm-suggestions-list {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   STEP 25: STRUCTURAL PAGE TEMPLATE CORRECTION
   ========================================================================== */

:root {
  --wlm-bg: #fbf7ef;
  --wlm-bg-alt: #fbf7ef;
  --wlm-border: #e2ddd0;
  --wlm-text-muted: #6d756d;
  --wlm-page-width: min(92vw, 1560px);
  --wlm-page-pad: clamp(16px, 4vw, 48px);
}

body,
.site,
.site-content,
.ast-container,
.wlm-archive-main,
.wlm-page-main,
.wlm-search-main {
  background: var(--wlm-bg);
}

.ast-container,
.wlm-container {
  width: var(--wlm-page-width) !important;
  max-width: var(--wlm-page-width) !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

.wlm-archive-main .wlm-container,
.wlm-page-main .wlm-container,
.wlm-search-main .wlm-container {
  padding-top: 0;
}

.wlm-archive-hero-section,
.wlm-search-hero-section,
.wlm-static-page__hero-section {
  width: 100%;
  background: var(--wlm-bg);
}

.wlm-archive-content-section,
.wlm-search-results-section,
.wlm-static-page__content-section {
  width: 100%;
  background: var(--wlm-bg);
  padding-bottom: clamp(46px, 7vw, 92px);
}

.wlm-archive-header,
.wlm-product-archive-header,
.wlm-review-archive-header,
.wlm-comparison-archive-header,
.wlm-buying-guide-archive-header,
.wlm-journal-archive-header,
.wlm-blog-archive-header,
.wlm-search-hero {
  width: 100% !important;
  max-width: none !important;
  min-height: clamp(280px, 24vw, 380px);
  display: grid;
  align-content: center;
  justify-items: center;
  margin: 0 !important;
  padding: clamp(42px, 6vw, 70px) var(--wlm-page-pad) clamp(34px, 5vw, 58px) !important;
  border-bottom: 0;
  text-align: center;
}

.wlm-archive-header .wlm-eyebrow,
.wlm-search-hero .wlm-eyebrow,
.wlm-static-page__header .wlm-eyebrow {
  margin-bottom: 12px;
}

.wlm-archive-title,
.wlm-static-page__title,
.wlm-author-profile__name {
  max-width: 1100px;
  margin: 0 auto 14px !important;
  font-size: clamp(2.25rem, 5vw, 4.65rem);
  line-height: 1.05;
  letter-spacing: 0;
  text-wrap: balance;
}

.wlm-archive-intro,
.wlm-archive-desc,
.wlm-search-hero .wlm-archive-intro,
.wlm-static-page__lead {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  color: var(--wlm-text-light);
  font-size: clamp(1.03rem, 1.35vw, 1.22rem);
  line-height: 1.7;
}

.wlm-archive-toolbar {
  width: 100%;
  margin: 0 0 clamp(26px, 3.5vw, 44px);
  padding: 16px 0;
  border-top: 1px solid var(--wlm-border);
  border-bottom: 1px solid var(--wlm-border);
  background: transparent;
}

.wlm-archive-results {
  width: 100%;
}

.wlm-archive-main .wlm-grid,
.wlm-search-main .wlm-grid {
  width: 100%;
  margin: 0;
  gap: clamp(18px, 2vw, 30px);
}

@media (min-width: 900px) {
  .wlm-archive-main .wlm-grid,
  .wlm-search-main .wlm-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }

  .wlm-archive-main .wlm-grid:has(> article:only-child),
  .wlm-search-main .wlm-grid:has(> article:only-child) {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
  }

  .wlm-archive-main .wlm-grid:has(> article:first-child:nth-last-child(2)),
  .wlm-search-main .wlm-grid:has(> article:first-child:nth-last-child(2)) {
    grid-template-columns: repeat(2, minmax(300px, 460px));
    justify-content: center;
  }

  .wlm-archive-main .wlm-grid:has(> article:first-child:nth-last-child(3)),
  .wlm-search-main .wlm-grid:has(> article:first-child:nth-last-child(3)) {
    grid-template-columns: repeat(3, minmax(280px, 420px));
    justify-content: center;
  }
}

.wlm-archive-bottom-pagination {
  width: 100%;
  margin-top: clamp(30px, 4vw, 52px);
}

.wlm-search-results-header {
  width: 100%;
  max-width: 860px;
  margin: 0 auto clamp(20px, 3vw, 34px);
  padding: 0;
  text-align: center;
}

.wlm-search-results-section {
  padding-top: 0;
}

.wlm-search-empty-state {
  width: min(100%, 860px);
  margin: 0 auto;
}

.wlm-empty-state--search {
  padding-top: 0;
}

.wlm-page-search-form {
  width: min(100%, 840px);
}

.wlm-static-page__hero-section {
  padding: clamp(38px, 5vw, 64px) 0 clamp(16px, 2.4vw, 28px);
}

.wlm-static-page {
  width: 100%;
  max-width: none;
  margin: 0;
}

.wlm-static-page__header {
  width: 100%;
  max-width: none;
  min-height: clamp(220px, 20vw, 320px);
  display: grid;
  align-content: center;
  justify-items: center;
  margin: 0;
  padding: 0 var(--wlm-page-pad);
  text-align: center;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.wlm-static-page__title {
  margin-left: auto !important;
  margin-right: auto !important;
}

.wlm-static-page__lead {
  width: min(100%, 860px);
  margin-left: auto;
  margin-right: auto;
}

.wlm-static-page__content-section {
  padding-top: clamp(12px, 2vw, 26px);
}

.wlm-static-page__figure {
  width: 100%;
  margin: 0 0 clamp(24px, 4vw, 42px);
}

.wlm-static-page__content {
  width: 100%;
  max-width: none !important;
  margin: 0;
  padding: 0 var(--wlm-page-pad);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.wlm-static-page__content > * {
  max-width: 860px;
}

.wlm-static-page__content > .alignwide,
.wlm-static-page__content > .alignfull,
.wlm-static-page__content > .wp-block-columns,
.wlm-static-page__content > .wp-block-group {
  max-width: 100%;
}

.wlm-author-profile {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(52px, 7vw, 86px) var(--wlm-page-pad) clamp(34px, 5vw, 60px);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.wlm-author-content {
  width: 100%;
}

@media (max-width: 1023px) {
  :root {
    --wlm-page-width: min(92vw, 960px);
  }
}

@media (max-width: 767px) {
  :root {
    --wlm-page-width: calc(100vw - 20px);
    --wlm-page-pad: 0;
  }

  .wlm-archive-header,
  .wlm-search-hero {
    min-height: 0;
    justify-items: start;
    padding: 38px 0 30px !important;
    text-align: left;
  }

  .wlm-archive-title,
  .wlm-static-page__title,
  .wlm-author-profile__name {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .wlm-static-page__hero-section {
    padding: 38px 0 20px;
  }

  .wlm-static-page__header,
  .wlm-static-page__content {
    padding-left: 0;
    padding-right: 0;
  }
}

.wlm-header__inner,
.wlm-utility-bar__inner,
.wlm-search-overlay__inner,
.wlm-footer__inner,
.wlm-footer__bottom-inner {
  width: var(--wlm-page-width);
  max-width: var(--wlm-page-width);
}

.wlm-header-market,
.wlm-market-selector--main {
  display: block !important;
}

.wlm-header .wlm-market-selector__trigger {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--wlm-border);
  background: var(--wlm-surface);
  color: var(--wlm-navy);
}

.wlm-header {
  background: var(--wlm-white);
}

.wlm-primary-menu a,
.wlm-mobile-menu a {
  position: relative;
  background: transparent !important;
}

.wlm-primary-menu a:hover,
.wlm-primary-menu a:focus,
.wlm-mobile-menu a:hover,
.wlm-mobile-menu a:focus {
  background: transparent !important;
  color: var(--wlm-green-dark) !important;
}

.current-menu-item > a,
.current_page_item > a,
.current-menu-ancestor > a,
.current_page_ancestor > a {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--wlm-navy) !important;
}

.wlm-primary-menu > .current-menu-item > a::after,
.wlm-primary-menu > .current_page_item > a::after,
.wlm-primary-menu > .current-menu-ancestor > a::after,
.wlm-primary-menu > .current_page_ancestor > a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 28px;
  height: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--wlm-green);
}

.wlm-mobile-menu .current-menu-item > a,
.wlm-mobile-menu .current_page_item > a {
  color: var(--wlm-green-dark) !important;
}

.wlm-mobile-menu .current-menu-item > a::after,
.wlm-mobile-menu .current_page_item > a::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--wlm-green);
}

.wlm-search-toggle,
.wlm-menu-toggle,
.wlm-search-form__submit,
.wlm-search-close,
.wlm-search-form__clear,
.wlm-mobile-menu__close {
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--wlm-navy) !important;
}

.wlm-search-toggle:hover,
.wlm-search-toggle:focus,
.wlm-search-toggle:active,
.wlm-search-toggle[aria-expanded="true"],
.wlm-menu-toggle:hover,
.wlm-menu-toggle:focus,
.wlm-menu-toggle:active,
.wlm-menu-toggle[aria-expanded="true"],
.wlm-search-form__submit:hover,
.wlm-search-form__submit:focus,
.wlm-search-form__submit:active,
.wlm-search-close:hover,
.wlm-search-close:focus,
.wlm-search-close:active,
.wlm-search-form__clear:hover,
.wlm-search-form__clear:focus,
.wlm-search-form__clear:active,
.wlm-mobile-menu__close:hover,
.wlm-mobile-menu__close:focus,
.wlm-mobile-menu__close:active {
  border: 0 !important;
  outline: 0 !important;
  background: rgba(27, 107, 74, 0.08) !important;
  box-shadow: 0 0 0 3px rgba(27, 107, 74, 0.12) !important;
  color: var(--wlm-green-dark) !important;
}

@media (max-width: 1023px) {
  .wlm-header__nav,
  .wlm-header__cta {
    display: none;
  }

  .wlm-header__actions {
    gap: 10px;
  }
}

@media (max-width: 767px) {
  .wlm-header__inner {
    gap: 10px;
  }

  .wlm-header__logo {
    min-width: 0;
  }

  .wlm-header__actions {
    flex: 0 0 auto;
    gap: 8px;
  }

  .wlm-static-page__hero-section {
    padding: 30px 0 14px;
  }

  .wlm-static-page__header {
    min-height: 0;
    padding: 28px 0 22px;
  }

  .wlm-header-market {
    display: none !important;
  }

  .wlm-header .wlm-market-selector__trigger {
    max-width: 108px;
    min-height: 36px;
    padding: 0 8px;
    gap: 4px;
    overflow: hidden;
  }

  .wlm-header .wlm-market-selector__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ==========================================================================
   STEP 29: ARCHIVE CARD GRID AND RELATED BLOG PRESENTATION
   ========================================================================== */

.wlm-archive-main {
  background: var(--wlm-bg);
}

.wlm-archive-content-section .wlm-container {
  width: min(94vw, 1560px) !important;
  max-width: min(94vw, 1560px) !important;
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(64px, 7vw, 96px);
}

.wlm-archive-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px 24px;
  width: 100%;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid rgba(26, 31, 54, 0.12);
  border-bottom: 1px solid rgba(26, 31, 54, 0.12);
}

.wlm-archive-toolbar__filters {
  min-width: 0;
}

.wlm-archive-toolbar .wlm-product-filter-nav,
.wlm-archive-toolbar .wlm-blog-filter-nav {
  margin: 0;
}

.wlm-archive-toolbar__pagination {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.wlm-archive-results {
  width: 100%;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 0;
}

.wlm-archive-main .wlm-grid {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 2.2vw, 32px);
  align-items: stretch;
  justify-content: stretch;
  margin: 0 0 clamp(48px, 6vw, 80px);
}

.wlm-archive-main .wlm-grid > .wlm-card,
.wlm-archive-main .wlm-grid > article {
  justify-self: stretch;
}

.wlm-archive-main .wlm-grid:has(> article:only-child),
.wlm-archive-main .wlm-grid:has(> article:first-child:nth-last-child(2)),
.wlm-archive-main .wlm-grid:has(> article:first-child:nth-last-child(3)) {
  justify-content: stretch !important;
}

.wlm-archive-main .wlm-grid > article,
.wlm-related-blog-grid > article {
  width: 100%;
  min-width: 0;
}

/* Fixed column counts (not auto-fill/auto-fit) so tablet always shows 2
   cards per row and desktop always shows 3 — matching the approved layout —
   instead of silently collapsing back to 1 column. Single/short result sets
   still stretch to fill the row via .wlm-archive-main .wlm-grid:has(...)
   { justify-content: stretch } above. */
@media (min-width: 700px) and (max-width: 1079px) {
  .wlm-archive-main .wlm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1080px) and (max-width: 1499px) {
  .wlm-archive-main .wlm-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1500px) {
  .wlm-archive-main .wlm-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.wlm-card {
  height: 100%;
  min-width: 0;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(26, 31, 54, 0.12);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(26, 31, 54, 0.03);
}

.wlm-card:hover {
  transform: translateY(-2px);
  border-color: rgba(27, 107, 74, 0.28);
  box-shadow: 0 12px 28px rgba(26, 31, 54, 0.07);
}

.wlm-card__image-link {
  aspect-ratio: 16 / 10;
}

.wlm-product-card .wlm-card__image-link {
  aspect-ratio: 4 / 3;
}

.wlm-comparison-card .wlm-card__image-link {
  aspect-ratio: 16 / 9;
}

.wlm-card__body {
  min-height: 0;
  padding: clamp(18px, 1.8vw, 24px);
}

.wlm-card__meta {
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.wlm-card__term,
.wlm-card__badge,
.wlm-product-card__brand {
  font-size: 0.72rem;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wlm-card__title {
  margin-bottom: 12px;
  font-size: clamp(1.05rem, 1.15vw, 1.25rem);
  line-height: 1.28;
}

.wlm-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: var(--wlm-text-light);
  font-size: 0.96rem;
  line-height: 1.58;
}

.wlm-card__rating {
  width: fit-content;
  margin-bottom: 14px !important;
  padding: 7px 10px;
  border: 1px solid rgba(245, 158, 11, 0.24);
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.08);
  color: #b45309;
}

.wlm-card__rating::before {
  content: "Wellume Rating";
  margin-right: 6px;
  color: var(--wlm-navy);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wlm-card__footer {
  margin-top: auto;
}

.wlm-card__readmore {
  min-height: 40px;
}

.wlm-card__readmore svg {
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.wlm-card__readmore:hover svg,
.wlm-card__readmore:focus svg {
  transform: translateX(3px);
}

.wlm-archive-bottom-pagination {
  width: 100%;
  margin-top: clamp(48px, 6vw, 80px);
  margin-bottom: clamp(64px, 7vw, 96px);
}

.wlm-archive-bottom-pagination .pagination {
  margin: 0;
}

.wlm-archive-bottom-pagination .nav-links {
  justify-content: center;
  flex-wrap: wrap;
}

.wlm-archive-bottom-pagination .page-numbers.current {
  background: transparent;
  border-color: var(--wlm-green);
  color: var(--wlm-navy);
  box-shadow: inset 0 -2px 0 var(--wlm-green);
}

.wlm-journal-related {
  margin-top: clamp(64px, 8vw, 96px);
  padding-top: clamp(32px, 5vw, 48px);
  padding-bottom: clamp(64px, 7vw, 96px);
}

.wlm-journal-related .wlm-container {
  width: min(94vw, 1280px) !important;
  max-width: min(94vw, 1280px) !important;
  padding-top: 0;
  padding-bottom: 0;
}

.wlm-related-content__heading {
  margin-bottom: clamp(32px, 5vw, 48px);
}

.wlm-related-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 2.2vw, 32px);
  margin-bottom: 0;
}

@media (min-width: 700px) {
  .wlm-related-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .wlm-related-blog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .wlm-archive-content-section .wlm-container {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    overflow-x: hidden;
  }

  .wlm-archive-toolbar {
    grid-template-columns: 1fr;
  }

  .wlm-archive-toolbar__pagination {
    justify-content: flex-start;
  }

  .wlm-archive-main .wlm-grid {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: minmax(0, 1fr) !important;
    overflow-x: hidden;
  }

  .wlm-archive-main .wlm-grid > .wlm-card,
  .wlm-archive-main .wlm-grid > article {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }

  .wlm-card,
  .wlm-card__body,
  .wlm-card__image-link,
  .wlm-card__footer,
  .wlm-card__author-date,
  .wlm-review-card__author-date,
  .wlm-buying-guide-card__info {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .wlm-card__meta,
  .wlm-card__footer,
  .wlm-card__author-date,
  .wlm-review-card__author-date,
  .wlm-buying-guide-card__info {
    flex-wrap: wrap;
  }

  .wlm-card__title,
  .wlm-card__excerpt,
  .wlm-card__term,
  .wlm-card__readmore {
    overflow-wrap: anywhere;
  }

  .wlm-card__readmore {
    width: 100% !important;
    min-width: 0;
  }
}

/* :has() parser fallback for caching/minification layers and older browsers.
   Mirrors the fixed 2/3/4-column rules above. */
@media (min-width: 700px) and (max-width: 1079px) {
  .wlm-archive-main .wlm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1080px) and (max-width: 1499px) {
  .wlm-archive-main .wlm-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1500px) {
  .wlm-archive-main .wlm-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* ==========================================================================
   STEP 31: ARCHIVE TOOLBAR — POSTS-PER-PAGE SELECT + RESULT COUNT LAYOUT
   On every screen size (desktop through mobile): the "Show" and "Sort"
   controls sit on one row (space-between, vertically centered), and the
   "Showing x-y of z" count sits on its own row underneath, centered.
   ========================================================================== */

.wlm-archive-toolbar__pagination {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.wlm-archive-toolbar__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.wlm-archive-toolbar__perpage,
.wlm-archive-toolbar__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

.wlm-archive-toolbar__sort-label {
  color: var(--wlm-text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.wlm-archive-toolbar__sort-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--wlm-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231A1F36' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 11px;
  border: 1px solid var(--wlm-border);
  border-radius: var(--wlm-radius);
  color: var(--wlm-navy);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  min-height: 34px;
  padding: 7px 30px 7px 12px;
  cursor: pointer;
  max-width: 100%;
}

.wlm-archive-toolbar__sort-select:hover {
  border-color: var(--wlm-green);
}

.wlm-archive-toolbar__sort-select:focus-visible {
  outline: 2px solid var(--wlm-green);
  outline-offset: 2px;
}

.wlm-archive-toolbar__perpage-label {
  color: var(--wlm-text-muted);
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
}

.wlm-archive-toolbar__perpage-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--wlm-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%231A1F36' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 11px;
  border: 1px solid var(--wlm-border);
  border-radius: var(--wlm-radius);
  color: var(--wlm-navy);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  min-height: 34px;
  padding: 7px 30px 7px 12px;
  cursor: pointer;
  max-width: 100%;
}

.wlm-archive-toolbar__perpage-select:hover {
  border-color: var(--wlm-green);
}

.wlm-archive-toolbar__perpage-select:focus-visible {
  outline: 2px solid var(--wlm-green);
  outline-offset: 2px;
}

.wlm-archive-toolbar__count {
  flex: 0 0 auto;
  width: 100%;
  margin-left: 0;
  text-align: center;
}

@media (max-width: 767px) {
  .wlm-archive-toolbar__pagination {
    gap: 8px;
  }

  .wlm-archive-toolbar__controls {
    gap: 8px;
  }

  .wlm-archive-toolbar__perpage-label,
  .wlm-archive-toolbar__sort-label {
    display: none;
  }

  .wlm-archive-toolbar__perpage-select,
  .wlm-archive-toolbar__sort-select {
    font-size: 0.8rem;
    min-height: 32px;
    padding: 6px 26px 6px 10px;
    background-position: right 8px center;
  }

  .wlm-archive-toolbar__count {
    font-size: 0.8rem;
  }
}

@media (max-width: 380px) {
  .wlm-archive-toolbar__count {
    white-space: normal;
  }
}

/* ==========================================================================
   STEP 32: CIRCULAR MOBILE PAGINATION
   Category filter chips (on the archives that have them — product, review,
   comparison, buying-guide) render inline at every screen size now; there is
   no more collapsible "Filter | Sort" toggle. Only narrow (<=767px) screens
   get the sketch-style circular page-number pagination below.
   ========================================================================== */

@media (max-width: 767px) {
  /* Sketch-style bottom pagination: plain arrows, circular page numbers. */
  .wlm-archive-bottom-pagination .nav-links {
    align-items: center;
    gap: 10px;
  }

  .wlm-archive-bottom-pagination .page-numbers {
    min-width: 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    font-size: 0.85rem;
  }

  .wlm-archive-bottom-pagination a.prev.page-numbers,
  .wlm-archive-bottom-pagination a.next.page-numbers {
    width: auto;
    min-width: 0;
    height: auto;
    border: 0;
    background: transparent;
    padding: 4px;
  }

  .wlm-archive-bottom-pagination .nav-prev-text,
  .wlm-archive-bottom-pagination .nav-next-text {
    display: none;
  }
}
