/*
Theme Name:  CuriousPaw
Theme URI:   https://curiouspaw.com
Author:      CuriousPaw
Author URI:  https://curiouspaw.com
Description: Premium editorial dog education theme. Clean, trustworthy, SEO-optimised.
Version:     1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: curiouspaw
Tags:        blog, education, custom-background, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════════════════════
   1. DESIGN TOKENS
═══════════════════════════════════════════════════════ */
:root {
  --cream:        #FAF7F2;
  --warm-white:   #FFFEF9;
  --ink:          #1A1208;
  --ink-mid:      #3D2E1A;
  --ink-light:    #7A6A54;
  --ink-muted:    #B5A898;
  --sage:         #4A7C59;
  --sage-light:   #EBF4EE;
  --sage-mid:     #6FA882;
  --sage-dark:    #3A6347;
  --amber:        #C2742A;
  --amber-light:  #FDF0E4;
  --amber-border: #EDD4A8;
  --rust:         #B84B2E;
  --rust-light:   #FCEAE6;
  --rust-border:  #E8B0A4;
  --blue:         #2A5F9C;
  --blue-light:   #E8F0FA;
  --purple:       #6B5FB5;
  --purple-light: #EDEAF8;
  --border:       #E8E0D4;
  --border-light: #F2EDE6;
  --ph-behavior:  linear-gradient(145deg,#FDF0E4,#EDCFA0);
  --ph-health:    linear-gradient(145deg,#FCEAE6,#EDB8AA);
  --ph-training:  linear-gradient(145deg,#EBF4EE,#BDD8C6);
  --ph-nutrition: linear-gradient(145deg,#EDEAF8,#C8C0EE);
  --ph-puppy:     linear-gradient(145deg,#E4EFF8,#B4CCE4);
  --ph-senior:    linear-gradient(145deg,#F8F4E4,#E2D8B0);
  --serif: 'Fraunces', Georgia, serif;
  --sans:  'DM Sans', system-ui, sans-serif;
  --r-xs: 4px;
  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --elev-1: 0 1px 3px rgba(26,18,8,.05), 0 1px 2px rgba(26,18,8,.04);
  --elev-2: 0 3px 10px rgba(26,18,8,.07), 0 1px 3px rgba(26,18,8,.05);
  --elev-3: 0 6px 24px rgba(26,18,8,.09), 0 2px 6px rgba(26,18,8,.06);
  --t:     .16s ease;
  --t-med: .24s ease;
}

/* ═══════════════════════════════════════════════════════
   2. BASE RESET & TYPOGRAPHY
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { color: inherit; }
ul, ol { list-style: none; padding: 0; }

/* ── Focus ── */
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: var(--r-xs); }

/* ── Utility ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -56px; left: 16px; z-index: 9999;
  background: var(--ink); color: #fff; padding: 10px 20px;
  font-size: .85rem; font-weight: 600; text-decoration: none;
  border-radius: 0 0 var(--r) var(--r); transition: top var(--t);
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════════════════
   3. LAYOUT
═══════════════════════════════════════════════════════ */
.wrap {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}
.section { margin-bottom: clamp(40px, 6vw, 60px); }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 14px; margin-bottom: 26px;
}
.section-head h2 {
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.38rem);
  font-weight: 700; color: var(--ink); letter-spacing: -.01em;
}
.section-head a { font-size: .82rem; color: var(--sage); text-decoration: none; font-weight: 500; white-space: nowrap; }
.section-head a:hover { text-decoration: underline; }
.section-intro { font-size: .93rem; color: var(--ink-light); line-height: 1.7; margin-bottom: 22px; max-width: 640px; }

/* ── Category Labels ── */
.cat { display: inline-block; font-size: .69rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; line-height: 1; }
.cat-behavior  { color: var(--amber); }
.cat-health    { color: var(--rust); }
.cat-training  { color: var(--sage); }
.cat-nutrition { color: var(--purple); }
.cat-puppy     { color: var(--blue); }
.cat-senior    { color: var(--ink-light); }
.cat-interview { color: var(--blue); }
.cat-anxiety   { color: #8B5CF6; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 22px; border-radius: 100px;
  font-size: .88rem; font-weight: 600; line-height: 1;
  text-decoration: none; border: none; cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn-sage  { background: var(--sage); color: #fff; }
.btn-sage:hover  { background: var(--sage-dark); box-shadow: 0 2px 8px rgba(74,124,89,.3); }
.btn-ink   { background: var(--ink); color: #fff; }
.btn-ink:hover   { background: #2d1e0a; }
.btn-ghost { background: transparent; color: var(--ink-mid); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: var(--ink-mid); color: var(--ink); }
.btn-sm    { padding: 8px 16px; font-size: .8rem; }

/* ═══════════════════════════════════════════════════════
   4. IMAGE SYSTEM
═══════════════════════════════════════════════════════ */
.img-wrap {
  position: relative; overflow: hidden;
  background: var(--border-light);
  width: 100%;
  /* Height set by padding-top on specific classes (art-card-img, article-hero-img, etc.) */
  height: 0;
}
.img-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
/* Silhouette fallback when no image */
.img-wrap:not(.has-img)::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Cpath opacity='.12' fill='%231A1208' d='M56 12c-2.5 0-5 1.3-6.3 3.4L47 14c-3.8-1.3-8-1-11.5 0l-1.2-3.4C33 8.3 30.5 7 28 7c-3.3 0-6 2.7-6 6 0 1.5.5 3 1.4 4.2L18 24c-1.5 2.3-1.5 5.5.3 7.3 1.3 1.3 3 1.5 4.5.7l.2-.1c-.3 4.5 1 9 4.4 12.4v7c0 2.2 1.8 4 4 4h2.5c2.2 0 4-1.8 4-4v-3h4.2v3c0 2.2 1.8 4 4 4H48c2.2 0 4-1.8 4-4v-7c3.3-3.4 4.7-8 4.4-12.4l.2.1c1.5.8 3.2.6 4.5-.7 1.8-1.8 1.8-5 .3-7.3l-5.4-6.8c.9-1.2 1.4-2.7 1.4-4.2 0-3.3-2.7-6-5.4-6z'/%3E%3C/svg%3E");
  background-size: 64px 64px;
  background-repeat: no-repeat;
  background-position: center;
}
.ph-behavior  { background: var(--ph-behavior); }
.ph-health    { background: var(--ph-health); }
.ph-training  { background: var(--ph-training); }
.ph-nutrition { background: var(--ph-nutrition); }
.ph-puppy     { background: var(--ph-puppy); }
.ph-senior    { background: var(--ph-senior); }

/* ═══════════════════════════════════════════════════════
   5. HEADER & NAVIGATION
═══════════════════════════════════════════════════════ */
.site-header {
  background: var(--warm-white); border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 300; will-change: transform;
}
.nav-bar { display: flex; align-items: center; height: 64px; gap: 20px; }
.logo {
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem;
  color: var(--ink); text-decoration: none; letter-spacing: -.025em;
  display: flex; align-items: center; gap: 8px; flex-shrink: 0;
}
/* Variant B — open stroke paw icon in sage, no background box */
.logo-mark {
  width: 26px; height: 26px; flex-shrink: 0;
  color: var(--sage);
  display: flex; align-items: center; justify-content: center;
  transition: color var(--t);
}
.logo:hover .logo-mark { color: var(--sage-dark); }
.logo-mark svg { width: 26px; height: 26px; display: block; }

/* Wordmark */
.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-name {
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
  letter-spacing: -.04em; color: var(--ink); line-height: 1;
}
.logo-tag {
  font-family: var(--sans); font-size: .58rem; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-light); line-height: 1;
}

.primary-nav { flex: 1; overflow: hidden; min-width: 0; }
.primary-nav ul { display: flex; gap: 0; list-style: none; flex-wrap: nowrap; }
.primary-nav a {
  color: var(--ink-mid); text-decoration: none;
  font-size: .82rem; font-weight: 500;
  padding: 8px 9px; border-radius: var(--r-xs);
  transition: background var(--t), color var(--t);
  white-space: nowrap; display: block;
}
.primary-nav a:hover  { background: var(--cream); color: var(--ink); }
.primary-nav a.current-menu-item,
.primary-nav a[aria-current="page"] { color: var(--sage); font-weight: 600; }

/* Inline expanding search form — lives directly in the nav bar */
.nav-search-form {
  display: flex; align-items: center; gap: 7px;
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: 100px; padding: 0 13px;
  height: 36px;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
  flex-shrink: 0;
}
.nav-search-form svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--ink-muted); }
.nav-search-input {
  border: none; background: transparent; outline: none;
  font-family: var(--sans); font-size: .84rem; color: var(--ink);
  /* Collapsed width — shows just the icon */
  width: 80px;
  transition: width .25s ease;
  min-width: 0;
}
.nav-search-input::placeholder { color: var(--ink-muted); }
/* Expand on focus */
.nav-search-form:focus-within {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(74,124,89,.12);
  background: var(--warm-white);
}
.nav-search-form:focus-within .nav-search-input { width: 200px; }
/* Already has a query — show expanded */
.nav-search-input:not(:placeholder-shown) { width: 200px; }
.nav-cta { flex-shrink: 0; }
.menu-btn {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t), border-color var(--t);
  padding: 0;
}
.menu-btn:hover { background: var(--cream); border-color: var(--ink-muted); }
.menu-btn svg { width: 20px; height: 20px; display: block; pointer-events: none; }

/* Drawer */
.drawer { display: none; position: fixed; inset: 0; z-index: 500; }
.drawer.open { display: block; }
.drawer-bg { position: absolute; inset: 0; background: rgba(26,18,8,.5); backdrop-filter: blur(2px); }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(300px, 82vw); background: var(--warm-white);
  display: flex; flex-direction: column;
  box-shadow: -6px 0 32px rgba(26,18,8,.14); overflow-y: auto;
}
.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--border-light); flex-shrink: 0;
}
.drawer-close {
  background: none; border: 1.5px solid var(--border);
  border-radius: var(--r-sm); padding: 6px 11px;
  font-size: .85rem; color: var(--ink-mid);
  transition: background var(--t); cursor: pointer;
}
.drawer-close:hover { background: var(--cream); }
.drawer-nav { padding: 8px 0 24px; flex: 1; }
.drawer-nav a {
  display: flex; align-items: center; padding: 14px 22px;
  font-size: .96rem; font-weight: 500; color: var(--ink-mid);
  text-decoration: none; border-bottom: 1px solid var(--border-light);
  transition: color var(--t), background var(--t);
}
.drawer-nav a:hover { color: var(--sage); background: var(--cream); }
.drawer-section-label {
  display: block; padding: 16px 22px 7px;
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-muted);
}

/* ═══════════════════════════════════════════════════════
   6. TOPICS BAR
═══════════════════════════════════════════════════════ */
.topics-bar {
  background: var(--warm-white); border-bottom: 1px solid var(--border);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.topics-bar::-webkit-scrollbar { display: none; }
.topics-inner { display: flex; min-width: max-content; padding-inline: clamp(16px,4vw,32px); }
.topic-tab {
  padding: 13px 16px; font-size: .84rem; font-weight: 500; color: var(--ink-light);
  text-decoration: none; border-bottom: 2px solid transparent;
  white-space: nowrap; display: inline-block;
  transition: color var(--t), border-color var(--t);
}
.topic-tab:hover { color: var(--ink); }
.topic-tab.active, .topic-tab[aria-current="true"] { color: var(--sage); border-bottom-color: var(--sage); font-weight: 600; }

/* ═══════════════════════════════════════════════════════
   7. HERO
═══════════════════════════════════════════════════════ */
.hero {
  background: var(--warm-white); border-bottom: 1px solid var(--border);
  padding: clamp(56px,8vw,88px) 0 clamp(52px,7vw,80px);
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: clamp(40px,6vw,72px);
  align-items: center;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 560px;
}

/* ── Hero image column ── */
.hero-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  /* Padding-top trick — reliable on all browsers including old iOS */
  padding-top: 115%;
  background: var(--sage-light);
  box-shadow:
    0 4px 6px -1px rgba(26,18,8,.04),
    0 16px 40px -8px rgba(26,18,8,.12);
}
.hero-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
/* Subtle warm overlay — ties image into the cream palette */
.hero-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    transparent 50%,
    rgba(250,247,242,.18) 100%
  );
  pointer-events: none;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sage-light); color: var(--sage); border-radius: 100px;
  padding: 4px 11px; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--serif); font-size: clamp(1.85rem,3.5vw,3rem);
  font-weight: 700; line-height: 1.12; letter-spacing: -.03em; color: var(--ink); margin-bottom: 18px;
}
.hero h1 em { font-style: italic; color: var(--sage); }
.hero-desc { font-size: 1.02rem; color: var(--ink-light); line-height: 1.74; max-width: 460px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-proof { display: flex; align-items: center; gap: 9px; margin-top: 22px; font-size: .79rem; color: var(--ink-muted); }
.hero-proof-faces { display: flex; }
.hero-proof-face {
  width: 27px; height: 27px; border-radius: 50%; background: var(--sage-light);
  border: 2px solid var(--warm-white); overflow: hidden; margin-right: -6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; color: var(--sage); flex-shrink: 0;
}
.hero-proof-face img { width: 100%; height: 100%; object-fit: cover; }

/* ═══════════════════════════════════════════════════════
   8. TRUST STRIP & DISCLAIMER
═══════════════════════════════════════════════════════ */
.trust-strip { background: var(--warm-white); border-bottom: 1px solid var(--border); padding: 16px 0; }
.trust-items { display: flex; justify-content: center; align-items: center; gap: clamp(20px,4vw,44px); flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-light); }
.trust-item strong { color: var(--ink-mid); font-weight: 600; }
.trust-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--sage); }
.disclaimer-bar { background: var(--amber-light); border-bottom: 1px solid var(--amber-border); padding: 10px 0; }
.disclaimer-bar p { font-size: .79rem; color: var(--ink-mid); text-align: center; line-height: 1.55; }
.disclaimer-bar strong { color: var(--amber); }
.disclaimer-bar a { color: var(--amber); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   9. PAGE BODY LAYOUT
═══════════════════════════════════════════════════════ */
.page-body {
  display: grid; grid-template-columns: 1fr 308px;
  gap: clamp(36px,5vw,60px);
  padding-block: clamp(36px,5vw,52px) clamp(48px,6vw,72px);
  align-items: start;
}
.page-body.no-sidebar { grid-template-columns: 1fr; max-width: 800px; margin-inline: auto; }

/* ═══════════════════════════════════════════════════════
   10. ARTICLE CARDS
═══════════════════════════════════════════════════════ */
.featured-link {
  display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  text-decoration: none; color: inherit; box-shadow: var(--elev-1);
  transition: border-color var(--t), box-shadow var(--t);
}
.featured-link:hover { border-color: var(--sage-mid); box-shadow: var(--elev-3); }
.featured-img { padding-top: 75%; min-height: unset; }
.featured-body { padding: clamp(22px,3vw,36px); display: flex; flex-direction: column; justify-content: center; }
.featured-body h2 { font-family: var(--serif); font-size: clamp(1.25rem,2vw,1.5rem); font-weight: 700; line-height: 1.2; color: var(--ink); margin: 9px 0 12px; }
.featured-body p { font-size: .93rem; color: var(--ink-light); line-height: 1.7; margin-bottom: 20px; flex-grow: 1; }

.art-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; }
.art-card {
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none; color: inherit; box-shadow: var(--elev-1);
  transition: border-color var(--t), transform var(--t-med), box-shadow var(--t-med);
}
.art-card:hover { border-color: var(--sage-mid); transform: translateY(-3px); box-shadow: var(--elev-3); }
.art-card-img { padding-top: 56.25%; }
.art-card-body { padding: 15px 17px 18px; flex-grow: 1; display: flex; flex-direction: column; }
.art-card-body h3 { font-family: var(--serif); font-size: .97rem; font-weight: 600; line-height: 1.32; color: var(--ink); margin: 8px 0 8px; }
.art-card-body p { font-size: .82rem; color: var(--ink-light); line-height: 1.58; flex-grow: 1; margin-bottom: 13px; }
.art-card-foot { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; color: var(--ink-muted); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border-light); }

/* Meta row */
.meta-row { display: flex; align-items: center; gap: 10px; font-size: .77rem; color: var(--ink-muted); flex-wrap: wrap; }
.meta-author { display: flex; align-items: center; gap: 6px; }
.meta-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--sage-light); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: .62rem; }
.meta-avatar img { width: 100%; height: 100%; object-fit: cover; }
.meta-name { font-weight: 600; color: var(--ink-mid); }
.meta-sep { color: var(--border); }

/* ═══════════════════════════════════════════════════════
   11. PROBLEMS & SYMPTOMS
═══════════════════════════════════════════════════════ */
.problems-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.problem-card {
  background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 17px 16px;
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit;
  box-shadow: var(--elev-1); transition: border-color var(--t), box-shadow var(--t-med), transform var(--t-med);
}
.problem-card:hover { border-color: var(--sage-mid); box-shadow: var(--elev-2); transform: translateY(-1px); }
.problem-icon { width: 42px; height: 42px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 3px; flex-shrink: 0; }
.pi-behavior { background: var(--amber-light); }
.pi-health   { background: var(--rust-light); }
.pi-mixed    { background: var(--blue-light); }
.problem-card h3 { font-family: var(--serif); font-size: .93rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.problem-card p { font-size: .79rem; color: var(--ink-light); line-height: 1.55; }
.problem-arrow { font-size: .77rem; color: var(--sage); font-weight: 600; margin-top: auto; padding-top: 6px; display: flex; align-items: center; gap: 4px; }

.cluster-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.cluster-tile {
  background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 14px;
  text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px;
  transition: border-color var(--t), background var(--t);
}
.cluster-tile:hover { border-color: var(--sage-mid); background: var(--sage-light); }
.cluster-tile-icon { font-size: 1.25rem; line-height: 1; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--cream); border-radius: var(--r-sm); }
.cluster-tile h3 { font-family: var(--serif); font-size: .85rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.cluster-tile p { font-size: .75rem; color: var(--ink-light); line-height: 1.5; }

.symptoms-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.symptom-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--warm-white); border: 1px solid var(--border); border-radius: 100px;
  padding: 8px 15px; font-size: .82rem; font-weight: 500; color: var(--ink-mid);
  text-decoration: none; min-height: 38px;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.symptom-pill:hover { background: var(--sage-light); border-color: var(--sage-mid); color: var(--sage); }
.sp-count { font-size: .69rem; color: var(--ink-muted); font-weight: 400; }

/* ═══════════════════════════════════════════════════════
   12. INTERVIEW CARDS
═══════════════════════════════════════════════════════ */
.interview-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px 22px; text-decoration: none; color: inherit; margin-bottom: 12px;
  box-shadow: var(--elev-1); transition: border-color var(--t), box-shadow var(--t-med);
}
.interview-card:hover { border-color: var(--sage-mid); box-shadow: var(--elev-2); }
.interview-avatar { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; background: var(--sage-light); border: 2px solid var(--border); overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.interview-avatar img { width: 100%; height: 100%; object-fit: cover; }
.interview-content { flex-grow: 1; }
.interview-role { font-size: .7rem; font-weight: 700; color: var(--sage); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 5px; }
.interview-content h3 { font-family: var(--serif); font-size: 1.03rem; font-weight: 600; color: var(--ink); line-height: 1.32; margin-bottom: 7px; }
.interview-content p { font-size: .83rem; color: var(--ink-light); line-height: 1.6; }
.interview-label { flex-shrink: 0; align-self: flex-start; background: var(--sage-light); color: var(--sage); font-size: .67rem; font-weight: 700; padding: 3px 9px; border-radius: 100px; text-transform: uppercase; letter-spacing: .05em; }

/* ═══════════════════════════════════════════════════════
   13. FAQ ACCORDION
═══════════════════════════════════════════════════════ */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--elev-1); transition: border-color var(--t); }
.faq-item.open { border-color: var(--sage-mid); }
.faq-trigger {
  width: 100%; background: none; border: none; text-align: left; cursor: pointer;
  padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-family: var(--sans); font-size: .92rem; font-weight: 600; color: var(--ink);
  transition: background var(--t); min-height: 54px;
  border-radius: var(--r-lg);
}
.faq-item.open .faq-trigger { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.faq-trigger:hover { background: var(--cream); }
.faq-chevron { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-muted); transition: transform var(--t-med); }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
/* Answer: hidden by default, shown only when .open is set on parent */
.faq-answer { display: none; border-top: 1px solid var(--border-light); padding: 15px 20px 18px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: .88rem; color: var(--ink-light); line-height: 1.72; }
.faq-tags { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.faq-tag { background: var(--cream); color: var(--ink-light); font-size: .7rem; padding: 3px 9px; border-radius: 100px; border: 1px solid var(--border); text-decoration: none; }

/* ═══════════════════════════════════════════════════════
   14. HOW WE WORK
═══════════════════════════════════════════════════════ */
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.how-card { background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px 18px; }
.how-icon { width: 36px; height: 36px; background: var(--sage-light); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; margin-bottom: 13px; flex-shrink: 0; }
.how-card h3 { font-family: var(--serif); font-size: .93rem; font-weight: 600; color: var(--ink); margin-bottom: 7px; line-height: 1.3; }
.how-card p { font-size: .81rem; color: var(--ink-light); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════
   15. ARTICLE PAGE COMPONENTS
═══════════════════════════════════════════════════════ */

/* Breadcrumbs */
.breadcrumbs { font-size: .78rem; color: var(--ink-muted); margin-bottom: 20px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--ink-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--sage); }
.breadcrumbs .sep { color: var(--border); }
/* Mobile: hide current page title — it's already shown as the H1 below */
@media (max-width: 900px) {
  .breadcrumbs .breadcrumb-current,
  .breadcrumbs .sep-last { display: none; }
}

/* Article header */
.article-header { margin-bottom: 28px; }
.article-hero-img { padding-top: 56.25%; border-radius: var(--r-xl); overflow: hidden; margin-bottom: 28px; box-shadow: var(--elev-2); }
.article-meta-bar { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.reading-time, .updated-date { font-size: .79rem; color: var(--ink-muted); display: flex; align-items: center; gap: 5px; }
.reading-time svg, .updated-date svg { width: 14px; height: 14px; }

/* Quick Answer Box */
.quick-answer { background: var(--sage-light); border: 1.5px solid var(--sage-mid); border-radius: var(--r-lg); padding: 18px 22px; margin-bottom: 28px; }
.qa-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sage); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.quick-answer p { font-size: .97rem; color: var(--ink-mid); line-height: 1.68; font-weight: 500; }

/* TOC */
.toc { background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 28px; }
.toc-heading { font-family: var(--serif); font-size: .98rem; font-weight: 700; color: var(--ink); margin-bottom: 13px; }
.toc ol { padding-left: 18px; list-style: decimal; }
.toc li { margin-bottom: 7px; }
.toc a { font-size: .87rem; color: var(--sage); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.toc li::marker { color: var(--ink-muted); font-size: .8rem; }

/* Article body prose */
.article-body { font-size: 1.01rem; line-height: 1.78; color: var(--ink-mid); }
.article-body h2 { font-family: var(--serif); font-size: 1.45rem; font-weight: 700; color: var(--ink); margin: 36px 0 14px; line-height: 1.2; }
.article-body h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--ink); margin: 28px 0 11px; }
.article-body p { margin-bottom: 18px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 18px; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 7px; }
.article-body a { color: var(--sage); text-decoration: underline; }
.article-body blockquote { border-left: 3px solid var(--sage); padding: 14px 20px; margin: 24px 0; background: var(--sage-light); border-radius: 0 var(--r) var(--r) 0; font-style: italic; color: var(--ink-mid); }
.article-body strong { color: var(--ink); }

/* Causes */
.causes-list { display: flex; flex-direction: column; gap: 11px; margin-top: 14px; }
.cause-item { background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--r); padding: 16px 18px; display: flex; gap: 15px; align-items: flex-start; }
.cause-num { width: 28px; height: 28px; min-width: 28px; background: var(--sage); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .77rem; font-weight: 700; margin-top: 2px; }
.cause-text h4 { font-family: var(--serif); font-size: .98rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.cause-text p { font-size: .86rem; color: var(--ink-light); line-height: 1.62; }

/* Steps */
.steps-list { display: flex; flex-direction: column; margin-top: 14px; }
.step-item { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.step-item:last-child { border-bottom: none; padding-bottom: 0; }
.step-num { width: 32px; height: 32px; min-width: 32px; background: var(--ink); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 700; margin-top: 2px; }
.step-content h4 { font-family: var(--serif); font-size: .99rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.step-content p { font-size: .87rem; color: var(--ink-light); line-height: 1.64; }

/* Vet Box */
.vet-box { background: var(--rust-light); border: 1.5px solid var(--rust-border); border-radius: var(--r-lg); padding: 18px 22px; margin: 26px 0; }
.vet-box-head { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.vet-box-head svg { width: 20px; height: 20px; color: var(--rust); flex-shrink: 0; }
.vet-box-head h3 { font-family: var(--serif); font-size: 1.02rem; font-weight: 700; color: var(--rust); }
.vet-box ul { padding-left: 18px; list-style: disc; }
.vet-box li { font-size: .87rem; color: var(--ink-mid); line-height: 1.62; margin-bottom: 5px; }

/* Reviewer box */
.reviewer-box { background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; display: flex; gap: 14px; align-items: center; margin: 26px 0; }
.reviewer-photo { width: 50px; height: 50px; border-radius: 50%; background: var(--sage-light); flex-shrink: 0; overflow: hidden; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.reviewer-photo img { width: 100%; height: 100%; object-fit: cover; }
.reviewer-info .reviewer-label { font-size: .67rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--sage); margin-bottom: 2px; }
.reviewer-info .reviewer-name { font-family: var(--serif); font-size: .96rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.reviewer-info .reviewer-role { font-size: .78rem; color: var(--ink-light); }

/* Sources */
.sources-box { background: var(--cream); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 17px 20px; margin-top: 26px; }
.sources-heading { font-family: var(--serif); font-size: .95rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.sources-box ol { padding-left: 18px; list-style: decimal; }
.sources-box li { font-size: .81rem; color: var(--ink-light); margin-bottom: 7px; line-height: 1.57; }
.sources-box a { color: var(--sage); text-decoration: underline; word-break: break-word; }
.sources-note { font-size: .75rem; color: var(--ink-muted); margin-top: 11px; font-style: italic; }

/* Related articles */
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 14px; }
.related-card { background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--elev-1); transition: border-color var(--t), box-shadow var(--t-med); }
.related-card:hover { border-color: var(--sage-mid); box-shadow: var(--elev-2); }
.related-img { padding-top: 56.25%; }
.related-body { padding: 11px 13px 14px; }
.related-body h4 { font-family: var(--serif); font-size: .86rem; font-weight: 600; color: var(--ink); line-height: 1.32; margin-top: 7px; }

/* ═══════════════════════════════════════════════════════
   16. SIDEBAR
═══════════════════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 18px; }
.widget { background: var(--warm-white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--elev-1); }
.widget-heading { font-family: var(--serif); font-size: .96rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; letter-spacing: -.01em; }
.widget-nl { background: #1C1208; border-color: transparent; }
.widget-nl .widget-heading { color: #fff; }
.nl-desc { font-size: .84rem; color: rgba(255,255,255,.52); line-height: 1.62; margin-bottom: 15px; }
.nl-input { width: 100%; padding: 10px 13px; border-radius: var(--r-sm); border: 1.5px solid rgba(255,255,255,.12); background: rgba(255,255,255,.08); color: #fff; font-size: .85rem; margin-bottom: 8px; outline: none; transition: border-color var(--t); }
.nl-input::placeholder { color: rgba(255,255,255,.3); }
.nl-input:focus { border-color: var(--sage-mid); }
.nl-btn { width: 100%; background: var(--sage); color: #fff; border: none; padding: 11px; border-radius: var(--r-sm); font-size: .86rem; font-weight: 600; cursor: pointer; transition: background var(--t); }
.nl-btn:hover { background: var(--sage-dark); }
.nl-note { font-size: .71rem; color: rgba(255,255,255,.25); text-align: center; margin-top: 8px; }
.tr-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.tr-row:last-child { border-bottom: none; padding-bottom: 0; }
.tr-num { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--border); min-width: 20px; line-height: 1.1; }
.tr-text h4 { font-size: .83rem; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 2px; }
.tr-text a { text-decoration: none; color: inherit; }
.tr-text a:hover { color: var(--sage); }
.tr-text span { font-size: .74rem; color: var(--ink-muted); }
.contrib-intro { font-size: .78rem; color: var(--ink-light); line-height: 1.55; margin-bottom: 12px; }
.contrib-row { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border-light); }
.contrib-row:last-child { border-bottom: none; }
.contrib-photo { width: 36px; height: 36px; border-radius: 50%; background: var(--sage-light); flex-shrink: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.contrib-photo img { width: 100%; height: 100%; object-fit: cover; }
.contrib-info h5 { font-size: .83rem; font-weight: 600; color: var(--ink); line-height: 1.2; }
.contrib-info p  { font-size: .74rem; color: var(--ink-muted); }
.topic-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.topic-pill { background: var(--cream); color: var(--ink-mid); font-size: .79rem; padding: 5px 11px; border-radius: 100px; border: 1px solid var(--border); text-decoration: none; transition: background var(--t), color var(--t), border-color var(--t); display: inline-block; }
.topic-pill:hover { background: var(--sage-light); color: var(--sage); border-color: var(--sage-mid); }

/* ═══════════════════════════════════════════════════════
   17. ARCHIVE / CATEGORY PAGE
═══════════════════════════════════════════════════════ */
.archive-header { background: var(--warm-white); border-bottom: 1px solid var(--border); padding: 40px 0 36px; margin-bottom: 0; }
.archive-eyebrow { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sage); margin-bottom: 8px; }
.archive-title { font-family: var(--serif); font-size: clamp(1.7rem,3vw,2.4rem); font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.archive-desc { font-size: .95rem; color: var(--ink-light); line-height: 1.7; max-width: 560px; }
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }

/* ═══════════════════════════════════════════════════════
   18. SEARCH
═══════════════════════════════════════════════════════ */
.search-form { display: flex; gap: 8px; margin-bottom: 32px; }
.search-input { flex: 1; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: 100px; font-size: .95rem; background: var(--warm-white); color: var(--ink); outline: none; transition: border-color var(--t); }
.search-input:focus { border-color: var(--sage); }
.search-btn { background: var(--sage); color: #fff; border: none; padding: 12px 22px; border-radius: 100px; font-size: .88rem; font-weight: 600; cursor: pointer; transition: background var(--t); }
.search-btn:hover { background: var(--sage-dark); }
.search-results-count { font-size: .86rem; color: var(--ink-light); margin-bottom: 20px; }

/* ═══════════════════════════════════════════════════════
   19. MOBILE BOTTOM NAV
═══════════════════════════════════════════════════════ */
.mobile-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 290;
  background: var(--warm-white); border-top: 1px solid var(--border);
  padding-top: 4px; padding-bottom: max(6px, env(safe-area-inset-bottom));
}
.mobile-nav-row { display: flex; justify-content: space-around; }
.m-tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 7px 8px 5px; font-size: .65rem; font-weight: 500; color: var(--ink-muted);
  text-decoration: none; background: none; border: none; cursor: pointer;
  transition: color var(--t); min-width: 54px; min-height: 44px; justify-content: center;
}
.m-tab svg { width: 21px; height: 21px; }
.m-tab:hover, .m-tab[aria-current="true"] { color: var(--sage); }

/* ═══════════════════════════════════════════════════════
   20. FOOTER
═══════════════════════════════════════════════════════ */
footer { background: var(--ink); color: rgba(255,255,255,.5); padding: clamp(40px,6vw,56px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(28px,4vw,48px); margin-bottom: 40px; }
.footer-brand .logo { color: #fff; font-size: 1.22rem; }
.footer-brand .logo-mark { background: none; color: var(--sage-mid); }
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-tag  { color: rgba(255,255,255,.28); }
.footer-brand p { font-size: .82rem; line-height: 1.66; margin-top: 12px; max-width: 210px; }
.footer-badge { display: inline-flex; align-items: center; gap: 5px; margin-top: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 100px; padding: 4px 11px; font-size: .73rem; color: rgba(255,255,255,.38); }
.footer-col h4 { font-size: .71rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.32); margin-bottom: 12px; }
.footer-col a { display: block; font-size: .84rem; color: rgba(255,255,255,.48); text-decoration: none; margin-bottom: 8px; transition: color var(--t); }
.footer-col a:hover { color: rgba(255,255,255,.88); }
hr.footer-rule { border: none; border-top: 1px solid rgba(255,255,255,.08); margin-bottom: 20px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 10px; font-size: .77rem; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.35); text-decoration: none; transition: color var(--t); }
.footer-links a:hover { color: rgba(255,255,255,.7); }
.footer-legal { font-size: .73rem; color: rgba(255,255,255,.22); max-width: 480px; line-height: 1.55; }

/* ═══════════════════════════════════════════════════════
   21. RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1040px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: clamp(28px, 4vw, 40px);
  }
  .page-body { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .problems-grid { grid-template-columns: repeat(2,1fr); }
  .how-grid { grid-template-columns: repeat(2,1fr); }
  .related-grid { grid-template-columns: repeat(2,1fr); }
  .cluster-grid { grid-template-columns: repeat(2,1fr); }
  .archive-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

/* ── Tablet: burger replaces nav, search stays visible ── */
@media (max-width: 900px) {
  .primary-nav, .nav-cta { display: none; }
  .menu-btn { display: flex; }
  .nav-bar { justify-content: space-between; }
  /* Search: always visible on tablet, fixed comfortable width */
  .nav-search-form { padding: 0 13px; gap: 7px; }
  .nav-search-input { width: 160px; }
  .nav-search-form:focus-within .nav-search-input { width: 200px; }
  /* Hero: single column, centred on tablet */
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-image { display: none; }
  .hero-text {
    align-items: center;
    text-align: center;
    max-width: 640px;
    margin-inline: auto;
  }
  .hero-desc { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-eyebrow { align-self: center; }
  .hero-proof { justify-content: center; }
}
@media (max-width: 680px) {
  .primary-nav, .nav-search-form, .nav-cta { display: none; }
  .menu-btn { display: flex; }
  .nav-bar { justify-content: space-between; padding-inline: 0; }
  .mobile-nav { display: flex; flex-direction: column; }
  .topics-bar { display: none; }
  .hero { padding: 36px 0 32px; }
  .hero-layout { grid-template-columns: 1fr; gap: 0; }
  .hero-image { display: none; }
  .hero-text {
    align-items: center;
    text-align: center;
    max-width: 100%;
  }
  .hero-desc { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { width: auto; }
  .hero-eyebrow { align-self: center; }
  .hero-proof { justify-content: center; }
  .hero h1 { font-size: 1.8rem; }
  .hero-desc { font-size: .95rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .featured-link { grid-template-columns: 1fr; }
  .featured-img { padding-top: 56.25%; min-height: unset; }
  .featured-body { padding: 18px; }
  .featured-body h2 { font-size: 1.18rem; }
  .art-grid { grid-template-columns: 1fr; }
  .problems-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .cluster-grid { grid-template-columns: repeat(2,1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .trust-items { gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; }
  .page-body { padding-bottom: 96px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════
   22. AFFILIATE & CONTENT COMPONENTS
   Production-ready styles for product comparisons,
   buying guides, pros/cons, callouts, affiliate boxes.
═══════════════════════════════════════════════════════ */

/* ── Affiliate disclosure ── */
.affiliate-disclosure {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--amber-light); border: 1px solid var(--amber-border);
  border-radius: var(--r); padding: 12px 16px; margin-bottom: 28px;
  font-size: .8rem; color: var(--ink-mid); line-height: 1.55;
}
.affiliate-disclosure svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--amber); }

/* ── Product recommendation box ── */
.product-box {
  border: 2px solid var(--sage-mid); border-radius: var(--r-lg);
  overflow: hidden; margin: 28px 0;
}
.product-box-header {
  background: var(--sage-light); padding: 10px 18px;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--sage);
}
.product-box-body {
  display: flex; gap: 20px; align-items: flex-start;
  padding: 20px 18px; background: var(--warm-white);
}
.product-box-img {
  width: 90px; height: 90px; flex-shrink: 0;
  object-fit: contain; border-radius: var(--r-sm);
  background: var(--cream); border: 1px solid var(--border);
  padding: 6px;
}
.product-box-info { flex: 1; }
.product-box-info h4 {
  font-family: var(--serif); font-size: 1.04rem; font-weight: 700;
  color: var(--ink); margin-bottom: 6px; line-height: 1.3;
}
.product-box-info p { font-size: .86rem; color: var(--ink-light); line-height: 1.6; margin-bottom: 12px; }
.product-box-footer {
  padding: 14px 18px; background: var(--cream);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.product-price { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.product-price small { font-size: .75rem; color: var(--ink-muted); font-family: var(--sans); font-weight: 400; }
.btn-affiliate {
  background: var(--amber); color: #fff; border: none;
  padding: 10px 20px; border-radius: 100px;
  font-size: .86rem; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--t);
}
.btn-affiliate:hover { background: #a5611f; }

/* ── Comparison table ── */
.comparison-table {
  width: 100%; border-collapse: collapse; margin: 28px 0;
  font-size: .9rem; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--elev-1);
}
.comparison-table th {
  background: var(--ink); color: #fff; padding: 13px 16px;
  font-weight: 600; text-align: left; font-size: .82rem;
  letter-spacing: .02em;
}
.comparison-table th:first-child { border-radius: var(--r-lg) 0 0 0; }
.comparison-table th:last-child  { border-radius: 0 var(--r-lg) 0 0; }
.comparison-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--border-light);
  color: var(--ink-mid); vertical-align: middle;
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--cream); }
.comparison-table tr:hover td { background: var(--sage-light); }
.comparison-table .winner td { background: #EBF9F1; font-weight: 600; }
.comparison-table .check { color: var(--sage); font-weight: 700; }
.comparison-table .cross  { color: var(--rust); }
/* Responsive scrollable wrapper */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 28px 0; border-radius: var(--r-lg); }
.table-wrap .comparison-table { margin: 0; }

/* ── Pros / Cons ── */
.pros-cons {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin: 28px 0;
}
.pros, .cons {
  border-radius: var(--r-lg); padding: 18px 20px;
}
.pros { background: #F0FAF4; border: 1.5px solid #A8DDB9; }
.cons { background: var(--rust-light); border: 1.5px solid var(--rust-border); }
.pros-title, .cons-title {
  font-family: var(--serif); font-size: .88rem; font-weight: 700;
  margin-bottom: 12px; display: flex; align-items: center; gap: 7px;
}
.pros-title { color: #1A6B38; }
.cons-title { color: var(--rust); }
.pros ul, .cons ul { padding: 0; list-style: none; }
.pros li, .cons li {
  font-size: .86rem; color: var(--ink-mid); line-height: 1.55;
  padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex; align-items: flex-start; gap: 8px;
}
.pros li:last-child, .cons li:last-child { border-bottom: none; }
.pros li::before { content: '✓'; color: #1A6B38; font-weight: 700; flex-shrink: 0; }
.cons li::before { content: '✗'; color: var(--rust); font-weight: 700; flex-shrink: 0; }

/* ── Callout boxes ── */
.callout {
  border-radius: var(--r-lg); padding: 18px 22px; margin: 24px 0;
  display: flex; gap: 13px; align-items: flex-start;
}
.callout-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.callout-body { flex: 1; }
.callout-title { font-family: var(--serif); font-size: .96rem; font-weight: 700; margin-bottom: 5px; }
.callout-body p { font-size: .88rem; line-height: 1.65; margin: 0; }
.callout-info    { background: var(--blue-light);    border: 1.5px solid #B0CAE8; }
.callout-info    .callout-title { color: var(--blue); }
.callout-warning { background: var(--amber-light);   border: 1.5px solid var(--amber-border); }
.callout-warning .callout-title { color: var(--amber); }
.callout-tip     { background: var(--sage-light);    border: 1.5px solid var(--sage-mid); }
.callout-tip     .callout-title { color: var(--sage-dark); }
.callout-danger  { background: var(--rust-light);    border: 1.5px solid var(--rust-border); }
.callout-danger  .callout-title { color: var(--rust); }

/* ── Key takeaway box ── */
.key-takeaway {
  background: var(--ink); color: #fff;
  border-radius: var(--r-lg); padding: 20px 24px; margin: 28px 0;
}
.key-takeaway-label {
  font-size: .68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--sage-mid); margin-bottom: 8px;
}
.key-takeaway p { font-size: .97rem; line-height: 1.65; color: rgba(255,255,255,.88); margin: 0; }

/* ── Star rating ── */
.star-rating { display: inline-flex; align-items: center; gap: 6px; }
.stars { color: #F5A623; font-size: 1.1rem; letter-spacing: 1px; line-height: 1; }
.star-rating-num { font-size: .82rem; font-weight: 600; color: var(--ink-mid); }
.star-rating-count { font-size: .78rem; color: var(--ink-muted); }

/* ── Article image caption ── */
.article-body figure { margin: 24px 0; }
.article-body figcaption {
  font-size: .8rem; color: var(--ink-muted); text-align: center;
  padding-top: 8px; font-style: italic;
}

/* ── Reading progress bar ── */
#reading-progress {
  position: fixed; top: 0; left: 0; z-index: 400;
  height: 3px; width: 0%; background: var(--sage);
  transition: width .1s linear;
  pointer-events: none;
}

/* ── Sticky mobile CTA (article pages) ── */
.sticky-mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 280;
  background: var(--warm-white); border-top: 1px solid var(--border);
  padding: 10px 16px max(10px, env(safe-area-inset-bottom));
}
/* Only show on article pages, only on mobile — toggled via JS */
.single .sticky-mobile-cta.visible { display: block; }

/* ── Article title ── */
.article-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700; line-height: 1.18; letter-spacing: -.025em;
  color: var(--ink); margin: 14px 0 18px;
}

/* ── Author box (E-E-A-T) ── */
.author-box {
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; margin: 32px 0;
  display: flex; gap: 18px; align-items: flex-start;
}
.author-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: var(--sage-light); border: 2px solid var(--border);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--sage);
}
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info { flex: 1; }
.author-info .author-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--sage); margin-bottom: 4px; }
.author-info .author-name { font-family: var(--serif); font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.author-info .author-role { font-size: .8rem; color: var(--ink-light); margin-bottom: 10px; }
.author-info .author-bio  { font-size: .86rem; color: var(--ink-mid); line-height: 1.62; }

/* ── Internal linking block ── */
.read-also {
  border-left: 3px solid var(--sage-mid); padding: 12px 18px;
  background: var(--sage-light); border-radius: 0 var(--r) var(--r) 0;
  margin: 24px 0; font-size: .9rem;
}
.read-also strong { color: var(--sage-dark); }
.read-also a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--sage-mid); }

/* ═══════════════════════════════════════════════════════
   23. PERFORMANCE — font-display & image improvements
═══════════════════════════════════════════════════════ */
/* Ensure system fonts show immediately, custom fonts swap in */
body { font-display: swap; }

/* Pagination */
.pagination { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-light); }
.pagination-inner { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination-inner a,
.pagination-inner span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: var(--r-sm); font-size: .84rem; font-weight: 500;
  text-decoration: none; border: 1px solid var(--border);
  background: var(--warm-white); color: var(--ink-mid);
  transition: background var(--t), border-color var(--t), color var(--t);
}
.pagination-inner a:hover { background: var(--sage-light); border-color: var(--sage-mid); color: var(--sage); }
.pagination-inner .current { background: var(--sage); border-color: var(--sage); color: #fff; }
.pagination-inner .prev, .pagination-inner .next { padding: 0 14px; }

/* ═══════════════════════════════════════════════════════
   24. RESPONSIVE — affiliate components
═══════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  .pros-cons { grid-template-columns: 1fr; }
  .product-box-body { flex-direction: column; }
  .product-box-img { width: 100%; height: 160px; }
  .product-box-footer { flex-direction: column; align-items: flex-start; }
  .comparison-table th, .comparison-table td { font-size: .8rem; padding: 10px 12px; }
  .author-box { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════
   25. INTERNAL LINKING COMPONENTS
═══════════════════════════════════════════════════════ */

/* ── Mid-article related strip ── */
.mid-article-links {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px 20px;
  margin: 32px 0;
}
.mid-article-links-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sage);
  margin-bottom: 14px;
}
.mid-article-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mid-article-link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color var(--t), box-shadow var(--t);
}
.mid-article-link-card:hover {
  border-color: var(--sage-mid);
  box-shadow: var(--elev-2);
}
.mid-link-img {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--sage-light);
}
.mid-link-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mid-link-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.mid-link-cat {
  font-size: .67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sage);
  line-height: 1;
}
.mid-link-title {
  font-family: var(--serif);
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mid-link-meta {
  font-size: .73rem;
  color: var(--ink-muted);
}

/* ── Read Also callout (already has .read-also base styles) ── */
.read-also {
  border-left: 3px solid var(--sage-mid);
  padding: 13px 18px;
  background: var(--sage-light);
  border-radius: 0 var(--r) var(--r) 0;
  margin: 24px 0;
  font-size: .92rem;
  line-height: 1.55;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
}

/* ── Topic cluster links (hub page) ── */
.cluster-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 24px 0;
}
.cluster-link-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: var(--ink-mid);
  transition: background var(--t), border-color var(--t), color var(--t);
}
.cluster-link-item:hover {
  background: var(--sage-light);
  border-color: var(--sage-mid);
  color: var(--ink);
}
.cluster-link-arrow {
  color: var(--sage);
  font-weight: 700;
  flex-shrink: 0;
}
.cluster-link-title {
  flex: 1;
  font-size: .92rem;
  font-weight: 500;
}
.cluster-link-meta {
  font-size: .75rem;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.cluster-link-more {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--sage);
  text-decoration: none;
}
.cluster-link-more:hover { text-decoration: underline; }

/* ── Responsive ── */
@media (max-width: 680px) {
  .mid-article-links-grid { grid-template-columns: 1fr; }
  .mid-article-link-card  { padding: 10px 12px; }
}

/* ═══════════════════════════════════════════════════════
   26. SHARE BUTTONS
═══════════════════════════════════════════════════════ */
.cp-share-row {
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap; margin: 16px 0 24px;
}
.cp-share-label {
  font-size: .78rem; font-weight: 600; color: var(--ink-muted);
  text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0;
}
.cp-share-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 13px; border-radius: 100px;
  font-size: .78rem; font-weight: 600; font-family: var(--sans);
  background: var(--cream); border: 1px solid var(--border);
  color: var(--ink-mid); cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
  white-space: nowrap;
}
.cp-share-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
.cp-share-btn:hover {
  background: var(--sage-light); border-color: var(--sage-mid); color: var(--sage-dark);
}

/* ═══════════════════════════════════════════════════════
   27. TOC IMPROVEMENTS — sticky desktop, collapsible mobile
═══════════════════════════════════════════════════════ */
.toc {
  background: var(--warm-white); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 28px;
}
.toc-heading {
  font-family: var(--serif); font-size: .98rem; font-weight: 700;
  color: var(--ink); margin-bottom: 13px;
  display: flex; align-items: center; justify-content: space-between;
}
.toc-toggle { font-size: .75rem; color: var(--ink-muted); margin-left: 8px; }
/* Mobile: heading is tappable */
@media (max-width: 900px) {
  .toc-heading[role="button"] { cursor: pointer; }
  .toc-heading[role="button"]:hover { color: var(--sage); }
}

/* ═══════════════════════════════════════════════════════
   28. READ ALSO — upgraded
═══════════════════════════════════════════════════════ */
.read-also {
  border-left: 3px solid var(--sage-mid);
  padding: 12px 18px;
  background: var(--sage-light);
  border-radius: 0 var(--r) var(--r) 0;
  margin: 24px 0;
  font-size: .92rem; line-height: 1.55;
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px;
}
.read-also strong { color: var(--sage-dark); flex-shrink: 0; }
.read-also a {
  color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--sage-mid);
}
.read-also a:hover { color: var(--sage-dark); }
.read-also-meta { color: var(--ink-muted); font-size: .8rem; }

/* ═══════════════════════════════════════════════════════
   29. CONTEXTUAL AUTO-LINKS in article body
═══════════════════════════════════════════════════════ */
.article-body a:not([class]) {
  color: var(--sage-dark);
  text-decoration: underline;
  text-decoration-color: rgba(74,124,89,.4);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--t), color var(--t);
}
.article-body a:not([class]):hover {
  color: var(--sage);
  text-decoration-color: var(--sage);
}

/* ═══════════════════════════════════════════════════════
   30. TRUST SIGNALS — citation, review badge, disclosure
═══════════════════════════════════════════════════════ */
.trust-note {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: .8rem; color: var(--ink-light); line-height: 1.55;
  background: var(--cream); border-radius: var(--r); padding: 12px 16px;
  margin: 20px 0;
}
.trust-note svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; color: var(--sage); }

.review-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--sage-light); border: 1px solid var(--sage-mid);
  border-radius: 100px; padding: 4px 12px;
  font-size: .72rem; font-weight: 700; color: var(--sage-dark);
  letter-spacing: .04em; text-transform: uppercase;
}
.review-badge svg { width: 12px; height: 12px; }

/* ═══════════════════════════════════════════════════════
   31. MOBILE SHARE ROW
═══════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  .cp-share-row { gap: 6px; }
  .cp-share-btn { padding: 7px 10px; font-size: .74rem; }
}
