/* =========================================================
   SOVEREIGN-TERMINAL — Wellness for Moms Theme
   Calm, clean, premium, minimal, soft editorial.
   ========================================================= */

/* ── RESET & BASE ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Base surfaces & text */
  --bg:                #FAF8F4;
  --surface:            #FFFFFF;
  --text:              #2F3437;
  --text-muted:        #71767A;
  --border:            #E7E3DC;
  --on-color:          #FFFFFF;

  /* Primary — sage green */
  --primary:           #6A9C89;
  --primary-strong:    #4C7A67; /* darker sage, used for text/hover fills where --primary alone lacks contrast */
  --primary-light:     #E4EEE9;

  /* Secondary — warm beige */
  --secondary:         #D8BFA8;
  --secondary-strong:  #8A6A45;
  --secondary-light:   #F3EAE1;

  /* Accent — soft terracotta (CTA / pop color) */
  --accent:            #E98B73;
  --accent-strong:     #C05A3F;
  --accent-light:      #FBE4DC;

  /* Highlight — muted honey */
  --highlight:         #F4D87A;
  --highlight-strong:  #8A6E1E;
  --highlight-light:   #FBF1CE;

  /* Radius scale */
  --radius-sm:   12px;
  --radius-md:   18px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --radius-pill: 999px;

  /* Soft, ink-tinted shadows */
  --shadow-xs:   0 1px 2px rgba(47,52,55,.05);
  --shadow-sm:   0 4px 16px rgba(47,52,55,.06);
  --shadow-md:   0 12px 32px rgba(47,52,55,.09);
  --shadow-lg:   0 24px 64px rgba(47,52,55,.10);
  --shadow-hero: 0 4px 14px rgba(106,156,137,.10), 0 30px 70px rgba(47,52,55,.07);

  /* Typography */
  --font-headline: "DM Sans", system-ui, sans-serif;
  --font-body:     "Lato", system-ui, sans-serif;
  --font-script:   "Dancing Script", cursive;

  /* Layout */
  --container-w: 1200px;
  --section-py:  96px;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
.site-main { flex: 1; }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-strong); text-decoration: none; }
a:hover { color: var(--accent-strong); }

/* ── UTILITY ──────────────────────────────────────────── */
.container {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, filter .2s;
  border: 1.5px solid transparent;
  line-height: 1;
}
.btn--accent  { background: var(--accent-strong); color: var(--on-color); }
.btn--accent:hover { filter: brightness(.92); color: var(--on-color); }
.btn--outline { background: transparent; border-color: var(--primary); color: var(--primary-strong); }
.btn--outline:hover { background: var(--primary); color: var(--on-color); }

.section-heading { margin-bottom: 40px; }
.section-heading--center { text-align: center; }
.section-title {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.section-sub {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ── TOP BAR ──────────────────────────────────────────── */
.top-bar {
  background: var(--secondary-light);
  text-align: center;
  padding: 8px 16px;
  color: var(--text);
  font-family: var(--font-headline);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ── HEADER ───────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.header-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding: 0 24px;
  height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.header-logo { display: flex; align-items: center; }
.header-logo img { height: 48px; width: auto; object-fit: contain; }
.header-logo .custom-logo-link { display: flex; align-items: center; }
.header-logo .site-title-text {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.header-nav { justify-self: center; }
.header-nav .nav-list { display: flex; list-style: none; gap: 8px; }
.header-nav .nav-list a {
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.header-nav .nav-list a:hover { color: var(--primary-strong); background: var(--primary-light); }

/* Desktop dropdown */
.header-nav .nav-list > li {
  position: relative;
}
.header-nav .nav-list > li > a.menu-item-has-children-toggle::after,
.header-nav .nav-list li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  transition: transform .2s;
}
.header-nav .nav-list li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}
.header-nav .nav-list li.menu-item-has-children .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 6px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}
.header-nav .nav-list li.menu-item-has-children:hover .sub-menu,
.header-nav .nav-list li.menu-item-has-children:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.header-nav .nav-list .sub-menu a {
  display: block;
  padding: 9px 18px;
  font-size: .87rem;
  color: var(--text);
  border-radius: 0;
  background: none;
  white-space: nowrap;
}
.header-nav .nav-list .sub-menu a:hover { color: var(--primary-strong); background: var(--primary-light); }
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.header-membership-btn {
  padding: 9px 22px;
  font-size: .78rem;
  white-space: nowrap;
}
.header-search-btn, .burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}
.header-search-btn:hover, .burger-btn:hover { color: var(--primary-strong); background: var(--primary-light); }
.burger-btn { display: none; }

.header-search-btn {
  position: relative;
  top: 2px;
}

/* Search Bar */
.header-search-bar {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 12px 0;
  display: flex;
  justify-content: center;
}
.header-search-bar[hidden] { display: none; }
.header-search-bar .search-form {
  display: flex;
  gap: 0;
  width: 100%;
  max-width: var(--container-w);
  padding-inline: 24px;
}
.header-search-bar input[type="search"] {
  flex: 1;
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: .95rem;
  outline: none;
  background: var(--surface);
  color: var(--text);
  transition: border-color .2s;
  min-width: 0;
}
.header-search-bar input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(106,156,137,.15);
}
.header-search-bar input[type="search"]::placeholder { color: var(--text-muted); opacity: .7; }
.header-search-bar button[type="submit"] {
  background: var(--accent-strong);
  color: var(--on-color);
  border: 1.5px solid var(--accent-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 28px;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: filter .2s;
  flex-shrink: 0;
}
.header-search-bar button[type="submit"]:hover { filter: brightness(.92); }
.header-search-bar button[type="submit"] svg { display: block; }

/* Mobile nav backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 299;
}
.nav-backdrop.is-open { display: block; }

/* Mobile nav drawer — slides from left */
.nav-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(300px, 85vw);
  background: var(--surface);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transform: translateX(-110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}
.nav-menu.is-open { transform: translateX(0); }
.nav-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-menu__brand {
  display: flex;
  align-items: center;
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.nav-menu__brand img { height: 36px; width: auto; object-fit: contain; }
.nav-menu__brand .custom-logo-link { display: flex; align-items: center; }
.nav-menu__brand .site-title-text { color: inherit; }
.nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .2s, background .2s;
}
.nav-close:hover { color: var(--primary-strong); background: var(--primary-light); }
.nav-menu__body { padding: 8px 0; }

/* Mobile nav dropdown: items expand inline */
.nav-menu .menu li.menu-item-has-children > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-menu .menu li.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  flex-shrink: 0;
  transition: transform .25s;
}
.nav-menu .menu li.menu-item-has-children.is-open > a::after {
  transform: rotate(180deg);
}
.nav-menu .menu .sub-menu {
  display: none;
  list-style: none;
  background: var(--primary-light);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  overflow: hidden;
}
.nav-menu .menu li.menu-item-has-children.is-open > .sub-menu {
  display: block;
}
.nav-menu .menu .sub-menu a {
  padding: 10px 24px 10px 32px;
  font-size: .93rem;
  border-left-color: transparent;
}
.nav-menu .menu { list-style: none; display: flex; flex-direction: column; gap: 0; }
.nav-menu .menu li a {
  display: block;
  font-family: var(--font-body);
  font-size: .98rem;
  font-weight: 600;
  color: var(--text);
  padding: 14px 24px;
  border-left: 3px solid transparent;
  transition: color .2s, background .2s, border-color .2s;
}
.nav-menu .menu li a:hover {
  color: var(--primary-strong);
  background: var(--primary-light);
  border-left-color: var(--primary);
}
.nav-menu__subscribe {
  padding: 20px 20px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.nav-menu__subscribe .btn { display: block; text-align: center; }

/* ── EDITORIAL HERO — featured article + quick reads ──── */
.hero-section {
  background: var(--bg);
  padding: 64px 0 96px;
  position: relative;
  overflow: hidden;
}

/* Subtle grain texture over the warm background */
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

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

/* Big image with a bottom scrim; title sits directly on the photo.
   The aspect-ratio/clip/shadow live on the link (not this wrapper) so
   that on mobile — where the title drops into normal flow below the
   image instead of overlaying it — it isn't clipped by this element's
   own overflow. */
.hero-feature__media {
  position: relative;
}
.hero-feature__media-link {
  display: block;
  aspect-ratio: 16/8;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hero);
}
.hero-feature__img,
.hero-feature__img-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-feature__img-placeholder { background: var(--secondary-light); }

/* Gradient scrim, tinted with the ink color rather than flat black */
.hero-feature__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(47,52,55,.72) 0%, rgba(47,52,55,.34) 38%, rgba(47,52,55,0) 68%);
  pointer-events: none;
  z-index: 1;
}

.hero-feature__cat {
  position: absolute;
  top: 28px; left: 28px;
  z-index: 3;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-feature__cat:hover { background: var(--surface); }

.hero-feature__overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 40px 48px;
}
.hero-feature__title {
  font-family: var(--font-headline);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--on-color);
  max-width: 760px;
}
.hero-feature__title a { color: inherit; transition: color .2s; }
.hero-feature__title a:hover { color: var(--highlight); }

/* Three quick-read cards, in a plain row below the hero — no overlap */
.hero-quick-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.quick-read-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: transform .2s, box-shadow .2s;
}
.quick-read-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quick-read-card__media {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
}
.quick-read-card__img,
.quick-read-card__img-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
}
.quick-read-card__img-placeholder { background: var(--secondary-light); }
.quick-read-card__body { min-width: 0; }
.quick-read-card__eyebrow {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent-strong);
  margin-bottom: 5px;
}
.quick-read-card__title {
  font-family: var(--font-headline);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.quick-read-card__title a { color: inherit; }
.quick-read-card__title a:hover { color: var(--accent-strong); }

/* ── COMMUNITY BANNER ─────────────────────────────────── */
.community-banner {
  background: var(--primary);
  color: var(--on-color);
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.community-banner__inner {
  max-width: var(--container-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.community-banner__title {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  margin: 0;
  opacity: .97;
  letter-spacing: .01em;
}
.community-banner .btn--accent {
  background: var(--surface);
  color: var(--primary-strong);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 8px 22px;
  font-size: .8rem;
}
.community-banner .btn--accent:hover { background: var(--primary-light); filter: none; }

/* ── RECIPES GRID ─────────────────────────────────────── */
.recipes-section {
  padding: var(--section-py) 0;
  background: var(--bg);
}
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.recipe-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.recipe-card__img-link { display: block; aspect-ratio: 4/5; overflow: hidden; }
/* The homepage "more stories" row, the archive/search grid (search.php
   shares the .archive-main wrapper class), and the single-post
   "You May Also Like" row use a shorter ratio than the base portrait crop. */
.recipes-section .recipe-card__img-link,
.archive-main .recipe-card__img-link,
.related-posts .recipe-card__img-link { aspect-ratio: 5/4; }
.recipe-card__img, .recipe-card__img-placeholder {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.recipe-card__img-placeholder { background: var(--secondary-light); }
.recipe-card:hover .recipe-card__img { transform: scale(1.04); }
.recipe-card__body { padding: 18px 18px 22px; }
.recipe-card__cat {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--primary-strong);
  margin-bottom: 10px;
}
.recipe-card__title {
  font-family: var(--font-headline);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.recipe-card__title a { color: inherit; }
.recipe-card__title a:hover { color: var(--accent-strong); }

/* Bento spotlight block — first 4 posts, asymmetric feature/wide/standard mix.
   Fixed row height + spans (not real masonry) keeps it deterministic and
   image-agnostic via object-fit: cover. */
.post-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 28px;
  margin-bottom: 28px;
}
.post-bento__item--feature { grid-column: span 2; grid-row: span 2; }
.post-bento__item--wide    { grid-column: span 2; grid-row: span 1; }
.post-bento__item--standard { grid-column: span 1; grid-row: span 1; }

.post-bento__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.post-bento__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.post-bento__media { position: absolute; inset: 0; display: block; }
.post-bento__img,
.post-bento__img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.post-bento__img-placeholder { background: var(--secondary-light); }

/* Bottom scrim so light or busy photos still keep the title legible */
.post-bento__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(47,52,55,.78) 0%, rgba(47,52,55,.25) 45%, rgba(47,52,55,0) 72%);
  pointer-events: none;
}

.post-bento__cat {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 3;
}

.post-bento__body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px 22px;
}
.post-bento__title {
  font-family: var(--font-headline);
  font-weight: 700;
  line-height: 1.25;
  color: var(--on-color);
}
.post-bento__item--feature .post-bento__title { font-size: clamp(1.3rem, 2vw, 1.7rem); margin-bottom: 10px; }
.post-bento__item--wide .post-bento__title,
.post-bento__item--standard .post-bento__title { font-size: 1rem; }
.post-bento__title a { color: inherit; transition: color .2s; }
.post-bento__title a:hover { color: var(--highlight); }
.post-bento__excerpt {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  line-height: 1.6;
  max-width: 44ch;
}

/* ── TIPS SECTION — dark divider band between the two post sections ──── */
.tips-section {
  background: var(--text);
  padding: 128px 0;
  position: relative;
  overflow: hidden;
}

/* Two soft radial glows (sage + terracotta) keep the dark band from
   feeling flat without introducing any new colors to the palette. */
.tips-section::before,
.tips-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.tips-section::before {
  top: -120px; left: -80px;
  width: 360px; height: 360px;
  background: rgba(106,156,137,.25);
}
.tips-section::after {
  bottom: -140px; right: -100px;
  width: 420px; height: 420px;
  background: rgba(233,139,115,.18);
}

.tips-section .container { position: relative; z-index: 1; }

.tips-section .section-title { color: var(--on-color); }
.tips-section .section-sub { color: rgba(255,255,255,.7); max-width: 560px; margin-inline: auto; }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Cycle through the palette for the icon badge + eyebrow via a local
   custom property, so each card gets a color without repeating CSS. */
.tip-card--a { --tip-accent: var(--primary); }
.tip-card--b { --tip-accent: var(--accent); }
.tip-card--c { --tip-accent: var(--secondary); }
.tip-card--d { --tip-accent: var(--highlight); }

.tip-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: left;
  transition: transform .2s, background .2s;
}
.tip-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); }
.tip-card__icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border-radius: 50%;
  background: var(--tip-accent);
  margin-bottom: 20px;
}
.tip-card__eyebrow {
  display: block;
  font-family: var(--font-headline);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--tip-accent);
  margin-bottom: 8px;
}
.tip-card__title {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--on-color);
  line-height: 1.3;
}
.tip-card__text { font-size: .92rem; color: rgba(255,255,255,.68); line-height: 1.65; }

/* ── CATEGORIES SECTION ──────────────────────────────── */
.categories-section {
  padding: var(--section-py) 0;
  background: var(--bg);
}
/* Flex + wrap (not grid) so a partial last row centers itself instead of
   left-aligning with an empty gap on the right. */
.cat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  gap: 16px;
  flex: 0 0 calc((100% - 112px) / 5);
}
.cat-card__img-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--secondary-light);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s;
}
.cat-card:hover .cat-card__img-wrap { box-shadow: var(--shadow-md); }
.cat-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s;
}
.cat-card:hover .cat-card__img { transform: scale(1.08); }
.cat-card__img-placeholder {
  width: 100%; height: 100%;
  background: var(--secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.cat-card__title {
  font-family: var(--font-headline);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  transition: color .2s;
}
.cat-card:hover .cat-card__title { color: var(--accent-strong); }

/* ── SECTION DIVIDER — thin fading rule + mark, between sections ─
   The wrap is full-bleed and carries whatever background the two
   flanking sections use, so the divider never shows a mismatched
   sliver of the page's default background behind it. */
.section-divider-wrap { background: var(--bg); }
.section-divider-wrap--surface { background: var(--surface); }
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  max-width: 220px;
  margin: 0 auto;
  padding: 8px 0 24px;
}
.section-divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border));
}
.section-divider__line:last-child { background: linear-gradient(to left, transparent, var(--border)); }
.section-divider__mark {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-strong);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── MOM'S TIME FOR HERSELF — alternating editorial rows ─ */
.selfcare-section {
  padding: var(--section-py) 0;
  background: var(--surface);
}
.selfcare-section .section-heading { max-width: 620px; }

.selfcare-list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.selfcare-item {
  display: flex;
  align-items: center;
  gap: 48px;
}
.selfcare-item--reverse { flex-direction: row-reverse; }

.selfcare-item__media {
  display: block;
  flex: 0 0 42%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.selfcare-item__img,
.selfcare-item__img-placeholder { width: 100%; height: 100%; object-fit: cover; }
.selfcare-item__img-placeholder { background: var(--secondary-light); }

.selfcare-item__body { flex: 1; min-width: 0; }
.selfcare-item__index {
  display: block;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 3.2rem;
  line-height: 1;
  color: var(--primary-light);
  margin-bottom: 10px;
}
.selfcare-item__body .chip { margin-bottom: 14px; }
.selfcare-item__title {
  font-family: var(--font-headline);
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 14px;
}
.selfcare-item__title a { color: inherit; transition: color .2s; }
.selfcare-item__title a:hover { color: var(--accent-strong); }
.selfcare-item__excerpt {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 18px;
}
.selfcare-item__meta {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.selfcare-item__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: .9rem;
  color: var(--accent-strong);
  transition: gap .2s, color .2s;
}
.selfcare-item__link svg { transition: transform .2s; }
.selfcare-item__link:hover { color: var(--primary-strong); gap: 12px; }
.selfcare-item__link:hover svg { transform: translateX(3px); }

/* ── TESTIMONIALS ─────────────────────────────────────── */
.testimonials-section {
  background: var(--bg);
  padding: var(--section-py) 0;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-card__stars { color: var(--highlight-strong); font-size: 1.1rem; letter-spacing: 2px; }
.testimonial-card__text {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
  font-style: italic;
}
.testimonial-card__author {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.testimonial-card__name { font-weight: 700; font-size: .95rem; color: var(--text); }

/* ── NEWSLETTER ───────────────────────────────────────── */
.newsletter-section {
  background: var(--surface);
  padding: var(--section-py) 0;
}
.newsletter-inner {
  max-width: 560px;
  margin-inline: auto;
  text-align: center;
}
.newsletter-inner__title {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem,2.6vw,2.1rem);
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
.newsletter-inner__sub { color: var(--text-muted); margin-bottom: 24px; }
/* Shared CF7 styling — used by the homepage newsletter block and the
   membership-funnel template's signup/download panels. */
.newsletter-inner .wpcf7-form,
.funnel-form-panel .wpcf7-form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-inner .wpcf7-form input[type="email"],
.newsletter-inner .wpcf7-form input[type="text"],
.funnel-form-panel .wpcf7-form input[type="email"],
.funnel-form-panel .wpcf7-form input[type="text"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
}
.newsletter-inner .wpcf7-form input[type="submit"],
.funnel-form-panel .wpcf7-form input[type="submit"] {
  background: var(--accent-strong);
  color: var(--on-color);
  border: none;
  border-radius: var(--radius-pill);
  padding: 13px 32px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  width: 100%;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: filter .2s;
}
.newsletter-inner .wpcf7-form input[type="submit"]:hover,
.funnel-form-panel .wpcf7-form input[type="submit"]:hover { filter: brightness(.92); color: var(--on-color); }

.wpcf7-spinner {
  display: none;
}

/* Form layout: stack email + button with gap, suppress the raw <br> */
.newsletter-inner .form-fields p,
.funnel-form-panel .form-fields p {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.newsletter-inner .form-fields p br,
.funnel-form-panel .form-fields p br { display: none; }
.newsletter-inner .form-privacy p,
.funnel-form-panel .form-privacy p { margin: 0; }

/* Validation: red border on invalid email, hide CF7 tip text */
.newsletter-inner .wpcf7-not-valid-tip,
.funnel-form-panel .wpcf7-not-valid-tip { display: none !important; }
.newsletter-inner .wpcf7-form input.wpcf7-not-valid,
.funnel-form-panel .wpcf7-form input.wpcf7-not-valid {
  border-color: #c0392b;
}
/* Red underline on privacy label when acceptance is invalid */
.newsletter-inner .wpcf7-acceptance.wpcf7-not-valid .wpcf7-list-item-label,
.funnel-form-panel .wpcf7-acceptance.wpcf7-not-valid .wpcf7-list-item-label {
  text-decoration: underline;
  text-decoration-color: #c0392b;
  text-underline-offset: 2px;
}

/* ── EDITOR SECTION — asymmetric pull-quote panel ─────── */
.editor-section {
  background: var(--bg);
  padding: var(--section-py) 0;
}
.editor-panel {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 56px;
}
.editor-panel__body { order: 1; }
.editor-panel__media { order: 2; }

.editor-panel__eyebrow {
  display: block;
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: var(--accent-strong);
  margin-bottom: 10px;
}
.editor-panel__quote-mark { color: var(--primary-light); margin-bottom: 16px; }
.editor-panel__desc {
  font-family: var(--font-headline);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  font-weight: 500;
  font-style: italic;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 20px;
}
.editor-panel__name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 16px;
}
.editor-panel__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}
.editor-panel__media img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  display: block;
}

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-inner {
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}
.footer-brand-logo img { height: 40px; width: auto; }
.footer-brand-logo .site-title-text {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.footer-nav ul { display: flex; list-style: none; gap: 24px; }
.footer-nav a { color: var(--text-muted); font-size: .9rem; }
.footer-nav a:hover { color: var(--primary-strong); }
.footer-divider { grid-column: 1/-1; border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.footer-copy { grid-column: 1/-1; font-size: .82rem; color: var(--text-muted); text-align: center; }

/* ── SHARED INNER-PAGE UTILITIES ─────────────────────── */
.container--narrow {
  max-width: 780px;
  margin-inline: auto;
  padding-inline: 24px;
}
.section-pad { padding: var(--section-py) 0; }

/* Category pill badge — rounded, colored per category via .chip--{slug} */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--primary-light);
  color: var(--primary-strong);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 1px solid transparent;
  transition: background .2s, color .2s;
}
.chip:hover { background: var(--primary-strong); color: var(--on-color); }

/* Optional per-category color variants (matched by category slug) */
.chip--wellness-for-moms       { background: var(--primary-light);   color: var(--primary-strong); }
.chip--kids-family-health      { background: var(--secondary-light); color: var(--secondary-strong); }
.chip--recipes-nutrition       { background: var(--accent-light);    color: var(--accent-strong); }
.chip--mental-emotional-health { background: var(--bg);              color: var(--text-muted); border-color: var(--border); }
.chip--moms-time-for-herself   { background: var(--highlight-light); color: var(--highlight-strong); }

/* Frosted variant for chips sitting on top of a photo (legible regardless of
   the underlying image) — overrides whichever slug color was set above. */
.chip--on-photo,
.chip--on-photo:hover {
  background: rgba(255,255,255,.85);
  color: var(--text);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ── POST GRID & TILE (archive, index, related) ──────── */
.post-grid {
  display: grid;
  gap: 28px;
  margin-bottom: 56px;
}
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }
.post-grid--2 { grid-template-columns: repeat(2, 1fr); }

.post-tile {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.post-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-tile__thumb-link { display: block; aspect-ratio: 4/5; overflow: hidden; }
.post-tile__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-tile:hover .post-tile__thumb { transform: scale(1.04); }
.post-tile__body { padding: 20px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.post-tile__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.post-tile__title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
}
.post-tile__title a { color: inherit; }
.post-tile__title a:hover { color: var(--accent-strong); }
.post-tile__excerpt { font-size: .9rem; color: var(--text-muted); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.post-tile__meta { font-size: .8rem; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.post-tile__meta time { }

/* ── PAGINATION ──────────────────────────────────────── */
.pagination { margin-top: 26px; margin-bottom: 72px; }
.pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: .9rem; font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s;
}
.pagination .page-numbers:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary-strong); }
.pagination .page-numbers.current { background: var(--primary); color: var(--on-color); border-color: var(--primary); }
.pagination .page-numbers.dots { border: none; background: none; min-width: auto; padding: 0 4px; }

/* ── NO RESULTS ──────────────────────────────────────── */
.no-results { text-align: center; padding: 72px 0; }
.no-results p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 24px; }

/* ── ARCHIVE / CATEGORY PAGE ─────────────────────────── */
.archive-main { padding: 56px 0 80px; }

.archive-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  padding: 48px;
  margin-bottom: 56px;
}
/* .chip already supplies the pill look (padding/radius/bg/color); this
   class only adds the spacing above the title. */
.archive-header__eyebrow { margin-bottom: 14px; }
.archive-header__title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 12px;
}
.archive-header__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  line-height: 1.7;
}
.archive-header__meta {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── SINGLE POST ─────────────────────────────────────── */

/* Reading progress bar */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--primary);
  z-index: 9999;
  transition: width .1s linear;
}

.single-main { padding: 56px 0 80px; }
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}

/* Article header */
.article-header { margin-bottom: 32px; }
.article-header__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.article-header__title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}
.article-header__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-muted);
}

/* Featured image */
.article-hero { margin-bottom: 40px; border-radius: var(--radius-lg); overflow: hidden; }
.article-hero__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.article-hero__caption {
  font-size: .8rem;
  color: var(--text-muted);
  text-align: center;
  padding: 8px 0;
  font-style: italic;
}

/* Prose content */
.entry-content {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.8;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--text);
  margin: 1.8em 0 .6em;
  line-height: 1.25;
}
.entry-content h2 { font-size: 1.55rem; }
.entry-content h3 { font-size: 1.25rem; }
.entry-content h4 { font-size: 1.05rem; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content ul,
.entry-content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.entry-content li { margin-bottom: .4em; }
.entry-content a { color: var(--primary-strong); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--accent-strong); }
.entry-content img { border-radius: var(--radius-lg); margin: 1.5em 0; }
.entry-content blockquote {
  border-left: 3px solid var(--primary);
  margin: 2em 0;
  padding: 1em 1.5em;
  background: var(--bg);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}
.entry-content blockquote p { margin: 0; }
.entry-content code {
  background: var(--secondary-light);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: .88em;
}
.entry-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5em 0;
}

/* Prev / Next post nav */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.article-nav__prev { text-align: left; }
.article-nav__next { text-align: right; }
.article-nav__label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary-strong);
  margin-bottom: 6px;
}
.article-nav__link {
  font-family: var(--font-headline);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}
.article-nav__link:hover { color: var(--accent-strong); }

/* Related posts */
.related-posts { margin-top: 56px; }
.related-posts__heading {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

/* Sticky sidebar */
.single-sidebar { position: sticky; top: calc(var(--header-h, 64px) + 24px); }
.sidebar-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}
.sidebar-panel__heading {
  font-family: var(--font-headline);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary-strong);
  margin-bottom: 20px;
}
.side-article {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.side-article:last-child { border-bottom: none; padding-bottom: 0; }
.side-article__thumb-link {
  display: block;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.side-article__thumb {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.side-article__thumb-link:hover .side-article__thumb { transform: scale(1.05); }
.side-article__body { flex: 1; min-width: 0; margin-top: -5px; }
/* The base .chip size is tuned for full-size post cards; scaled down here
   so it doesn't overpower this compact 72px-thumbnail list item. */
.side-article__body .post-tile__chips { margin-bottom: 5px; }
.side-article__body .chip { font-size: .6rem; padding: 3px 10px; }
.side-article__title {
  font-family: var(--font-headline);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 4px;
}
.side-article__title a { color: var(--text); }
.side-article__title a:hover { color: var(--accent-strong); }

/* ── STATIC PAGE ─────────────────────────────────────── */
.page-main { padding: 56px 0 80px; }
.page-header { margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.page-header__title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}
.page-hero { margin-bottom: 40px; border-radius: var(--radius-lg); overflow: hidden; }
.page-hero__img { width: 100%; aspect-ratio: 16/6; object-fit: cover; }

/* ── 404 PAGE ────────────────────────────────────────── */
.error-main { padding: 80px 0 100px; }
.error-page { text-align: center; }
.error-page__code {
  font-family: var(--font-headline);
  font-size: clamp(6rem, 20vw, 10rem);
  font-weight: 800;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 8px;
  user-select: none;
}
.error-page__title {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.error-page__desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin-inline: auto;
  line-height: 1.7;
  margin-bottom: 36px;
}
.error-page__actions { margin-bottom: 64px; }
.btn--primary { background: var(--accent-strong); color: var(--on-color); border-color: var(--accent-strong); }
.btn--primary:hover { filter: brightness(.92); color: var(--on-color); }

.error-recent {
  max-width: 500px;
  margin-inline: auto;
  text-align: left;
}
.error-recent__heading {
  font-family: var(--font-headline);
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary-strong);
  margin-bottom: 16px;
}
.error-recent__list { list-style: none; }
.error-recent__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.error-recent__list li:last-child { border-bottom: none; }
.error-recent__list a {
  font-weight: 600;
  color: var(--text);
  font-size: .95rem;
  flex: 1;
}
.error-recent__list a:hover { color: var(--accent-strong); }
.error-recent__list time { font-size: .78rem; color: var(--text-muted); white-space: nowrap; }

/* ── MEMBERSHIP FUNNEL TEMPLATE ───────────────────────── */
.funnel-hero {
  background: var(--bg);
  padding: 72px 0 48px;
  text-align: center;
}
.funnel-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: var(--highlight-light);
  color: var(--highlight-strong);
  font-family: var(--font-headline);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 20px;
}
.funnel-hero__title {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.12;
  margin-bottom: 18px;
}
.funnel-hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 32px;
}
.funnel-hero__cta { padding: 16px 40px; font-size: .95rem; }

.funnel-section { padding: 64px 0; background: var(--bg); }
.funnel-section--alt { background: var(--surface); }
.funnel-section--cta { padding: 24px 0 64px; background: var(--bg); }

.funnel-eyebrow {
  display: block;
  font-family: var(--font-headline);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent-strong);
  margin-bottom: 10px;
}
.funnel-subheading {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  margin-bottom: 32px;
}

.funnel-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  margin-bottom: 36px;
}
.funnel-checklist__item { display: flex; gap: 14px; align-items: flex-start; }
.funnel-checklist__icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary-strong);
}
.funnel-checklist--accent .funnel-checklist__icon { background: var(--accent-light); color: var(--accent-strong); }
.funnel-checklist__body { display: flex; flex-direction: column; }
.funnel-checklist__title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: .98rem;
  color: var(--text);
  margin-bottom: 2px;
}
.funnel-checklist__desc { font-size: .88rem; color: var(--text-muted); line-height: 1.5; }

.funnel-highlight-box {
  background: var(--secondary-light);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  text-align: center;
}
.funnel-highlight-box__title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 12px;
}
.funnel-highlight-box__text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
  max-width: 60ch;
  margin: 0 auto;
}

.funnel-form-panel {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 56px 48px;
}
.funnel-form-panel__title {
  font-family: var(--font-headline);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.funnel-form-panel__sub { color: var(--text-muted); margin-bottom: 24px; }

.funnel-extra-content { padding-bottom: var(--section-py); }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Header — flex so logo stays left, icons stay right */
  .header-inner { display: flex; justify-content: space-between; padding: 0 16px; }
  .header-nav { display: none; }
  .header-membership-btn { display: none; }
  .burger-btn { display: flex; }

  .recipes-grid { grid-template-columns: repeat(2, 1fr); }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card { flex-basis: calc((100% - 56px) / 3); }
  .hero-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .selfcare-item, .selfcare-item--reverse { gap: 32px; }

  /* Bento block — asymmetry only makes sense at full desktop width;
     collapse to a plain uniform 2-col grid below that. */
  .post-bento { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: 220px; }
  .post-bento__item--feature,
  .post-bento__item--wide,
  .post-bento__item--standard { grid-column: span 1; grid-row: span 1; }

  /* Inner pages */
  .post-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .single-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
  /* Recipe/archive/related grids: 2-col at tablet */
  .recipes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {

  /* Hero — shorter image, single-column quick reads. Title moves off the
     photo and into normal flow below it, so long titles simply wrap and
     grow the page instead of overflowing a fixed-height overlay. */
  .hero-section { padding: 32px 0 48px; }
  .hero-feature__media-link { aspect-ratio: 4/3; border-radius: var(--radius-lg); }
  .hero-feature__scrim { display: none; }
  .hero-feature__overlay {
    position: static;
    padding: 20px 4px 0;
  }
  .hero-feature__title {
    font-size: clamp(1.3rem, 5.5vw, 1.7rem);
    color: var(--text);
    max-width: 100%;
  }
  .hero-feature__title a:hover { color: var(--accent-strong); }
  .hero-quick-grid { grid-template-columns: 1fr; }
  .post-bento { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .post-bento__excerpt { display: none; }
  .tips-section { padding: 64px 0; }
  .tips-grid { grid-template-columns: 1fr; }
  .funnel-hero { padding: 56px 0 40px; }
  .funnel-checklist { grid-template-columns: 1fr; gap: 20px; }
  .funnel-form-panel { padding: 36px 24px; }
  .funnel-highlight-box { padding: 28px 24px; }
  .selfcare-list { gap: 40px; }
  .selfcare-item, .selfcare-item--reverse { flex-direction: column; align-items: flex-start; gap: 20px; }
  .selfcare-item__media { flex-basis: auto; width: 100%; aspect-ratio: 16/10; }
  .selfcare-item__index { font-size: 2.4rem; }

  .community-banner__inner { gap: 14px; flex-direction: column; text-align: center; }
  .editor-panel { grid-template-columns: 1fr; text-align: center; padding: 36px 28px; gap: 28px; }
  .editor-panel__media { order: 1; }
  .editor-panel__body { order: 2; }
  .editor-panel__quote-mark { margin-inline: auto; }
  .editor-panel__credentials { justify-content: center; }
  .editor-panel__media img { max-width: 220px; aspect-ratio: 1/1; border-radius: 50%; margin-inline: auto; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cat-card { flex-basis: calc((100% - 28px) / 2); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-nav ul { justify-content: center; }

  /* Inner pages */
  .post-grid--3 { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; gap: 16px; }
  .article-nav__next { text-align: left; }
  .article-hero__img { aspect-ratio: 4/3; }
  .archive-header { padding: 28px 24px; margin-bottom: 40px; }
}

@media (max-width: 560px) {
  .recipes-grid { grid-template-columns: repeat(2, 1fr); }

  .recipe-card__body { padding: 18px 12px 22px; }
  .recipe-card__cat { padding: 4px 10px; }
}
