/* ================================================================
   The Dog Effect - "Warm Trail" Design System

   An outdoor-editorial aesthetic for active dog owners.
   Warm, earthy, trustworthy — like your favorite trail companion.

   Typography:
     Display: Lora (editorial serif with warmth)
     Body:    Nunito Sans (rounded, friendly sans)

   Color Tokens:
     --bark:        #2A1F14   (deep espresso, headings)
     --bark-mid:    #4A3F34   (body text)
     --amber:       #C8782A   (primary accent)
     --forest:      #3B6B4A   (secondary, nature/health)
     --terracotta:  #B8654A   (warm accent)
     --cream:       #FAF6EF   (page background)
     --stone:       #8B8178   (secondary text)
   ================================================================ */

/* ── Design Tokens ── */

:root {
  /* Color */
  --bark: #2A1F14;
  --bark-mid: #4A3F34;
  --bark-light: #6B5F54;
  --amber: #C8782A;
  --amber-hover: #B06820;
  --amber-light: #F5E6D3;
  --amber-glow: rgba(200, 120, 42, 0.15);
  --forest: #3B6B4A;
  --forest-hover: #2F5A3D;
  --forest-light: #E4EDE6;
  --terracotta: #B8654A;
  --terracotta-light: #F2DED6;
  --cream: #FAF6EF;
  --cream-dark: #F0EAE0;
  --stone: #8B8178;
  --stone-light: #D4CFC8;
  --white: #FFFFFF;

  /* Typography */
  --font-display: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows (warm-tinted) */
  --shadow-sm: 0 1px 3px rgba(42, 31, 20, 0.06);
  --shadow-md: 0 4px 12px rgba(42, 31, 20, 0.08);
  --shadow-lg: 0 8px 30px rgba(42, 31, 20, 0.1);
  --shadow-xl: 0 16px 50px rgba(42, 31, 20, 0.14);
  --shadow-amber: 0 4px 20px rgba(200, 120, 42, 0.2);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 0.15s;
  --duration-normal: 0.25s;
  --duration-slow: 0.4s;

  /* Layout */
  --max-width: 1200px;
  --max-width-content: 680px;
  --header-height: 72px;
}

/* ── Reset & Base ── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--bark-mid);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--amber);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(200, 120, 42, 0.4);
  transition: color var(--duration-fast) ease,
    text-decoration-color var(--duration-fast) ease;
}

a:hover {
  color: var(--amber-hover);
  text-decoration-color: var(--amber-hover);
}

ul,
ol {
  padding-left: 1.5em;
}

::selection {
  background: var(--amber-light);
  color: var(--bark);
}

/* ── Skip Link ── */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--bark);
  color: var(--white);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 0;
}

/* ── Typography ── */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--bark);
  margin-top: var(--space-xl);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  margin-top: 0;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
}

h3 {
  font-size: 1.375rem;
}

h4 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1.25rem;
}

blockquote {
  border-left: 3px solid var(--amber);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  background: var(--amber-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--bark-mid);
}

code {
  font-size: 0.88em;
  background: rgba(42, 31, 20, 0.06);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-weight: 500;
}

pre {
  background: var(--bark);
  color: #ede8e0;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin: var(--space-lg) 0;
}

pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-weight: 400;
}

hr {
  border: none;
  border-top: 1px solid var(--stone-light);
  margin: var(--space-2xl) 0;
}

/* Base table — used outside article-content */

table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-lg) 0;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--stone-light);
}

th {
  background: var(--cream-dark);
  font-weight: 600;
  color: var(--bark);
  font-size: 0.9rem;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.75rem;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(200, 120, 42, 0.3);
}

.btn-primary:hover {
  background: var(--amber-hover);
  color: var(--white);
  box-shadow: var(--shadow-amber);
}

.btn-secondary {
  background: transparent;
  color: var(--amber);
  border: 2px solid var(--amber);
}

.btn-secondary:hover {
  background: var(--amber);
  color: var(--white);
}

.btn-lg {
  padding: 0.9rem 2.25rem;
  font-size: 1.05rem;
}

/* ── Layout Containers ── */

.header-inner,
.footer-inner,
.section-inner,
.pillar-page,
.list-page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.single-article {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.single-article.has-toc {
  max-width: 1080px;
}

/* ── Section Headers ── */

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

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--amber);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--bark);
  margin-top: 0;
  margin-bottom: 0;
}

/* ── Header ── */

.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(212, 207, 200, 0.6);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--duration-normal) ease,
    background var(--duration-normal) ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.site-logo {
  text-decoration: none;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-logo img {
  height: 38px;
  width: auto;
}

.site-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bark);
  letter-spacing: -0.02em;
  transition: color var(--duration-fast) ease;
}

.site-name-accent {
  color: var(--amber);
}

.site-logo:hover .site-name {
  color: var(--amber);
}

/* Nav Toggle (Mobile) */

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1.5px solid var(--stone-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
  transition: border-color var(--duration-fast) ease;
}

.nav-toggle:hover {
  border-color: var(--amber);
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--bark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Primary Nav */

.primary-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--stone-light);
  box-shadow: var(--shadow-lg);
}

.primary-nav.is-open {
  display: block;
  animation: navSlideDown 0.3s var(--ease-out);
}

@keyframes navSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-list {
  list-style: none;
  padding: var(--space-sm) var(--space-lg);
}

.nav-item a {
  display: block;
  padding: 0.75rem 0;
  color: var(--bark-mid);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--cream-dark);
  transition: color var(--duration-fast) ease;
}

.nav-item:last-child a {
  border-bottom: none;
}

.nav-item a:hover,
.nav-item.is-active a {
  color: var(--amber);
}

body.nav-open {
  overflow: hidden;
}

/* Desktop Nav */

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .primary-nav {
    display: block;
    position: static;
    background: none;
    border: none;
    box-shadow: none;
  }

  .nav-list {
    display: flex;
    gap: 0.15rem;
    padding: 0;
  }

  .nav-item a {
    padding: 0.45rem 0.85rem;
    border-bottom: none;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    position: relative;
  }

  .nav-item a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--amber);
    border-radius: 2px;
    transition: width var(--duration-normal) var(--ease-out),
      left var(--duration-normal) var(--ease-out);
  }

  .nav-item a:hover::after {
    width: 60%;
    left: 20%;
  }

  .nav-item a:hover {
    background: none;
    color: var(--amber);
  }

  .nav-item.is-active a {
    color: var(--amber);
    font-weight: 700;
  }

  .nav-item.is-active a::after {
    width: 60%;
    left: 20%;
  }

  body.nav-open {
    overflow: auto;
  }
}

/* ── Breadcrumbs ── */

.breadcrumbs {
  padding: var(--space-md) 0 var(--space-sm);
  font-size: 0.85rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0;
}

.breadcrumbs li::after {
  content: "\203A";
  margin-left: 0.5rem;
  color: var(--stone);
  font-weight: 300;
}

.breadcrumbs li:last-child::after {
  content: "";
}

.breadcrumbs a {
  color: var(--stone);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.breadcrumbs a:hover {
  color: var(--amber);
}

.breadcrumbs [aria-current="page"] {
  color: var(--bark-mid);
  font-weight: 600;
}

/* ── Hero Section ── */

.hero {
  position: relative;
  background: linear-gradient(155deg, var(--bark) 0%, #3D2E1E 35%, #6B4F2E 65%, var(--amber) 100%);
  color: var(--white);
  text-align: center;
  padding: var(--space-4xl) var(--space-lg) calc(var(--space-4xl) + 2rem);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.06'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -5%;
  right: -5%;
  height: 60px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.hero-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  padding: 0.35rem 1.25rem;
  margin-bottom: var(--space-xl);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: var(--space-md);
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.hero-tagline {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  opacity: 0.88;
  margin-bottom: var(--space-2xl);
  line-height: 1.65;
  font-weight: 300;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn-primary {
  background: var(--white);
  color: var(--bark);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero .btn-primary:hover {
  background: var(--cream);
  color: var(--bark);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

/* Decorative paw trail (subtle, hero only) */
.hero-decor {
  position: absolute;
  top: 20%;
  right: 8%;
  opacity: 0.04;
  font-size: 8rem;
  transform: rotate(-15deg);
  pointer-events: none;
  z-index: 0;
  user-select: none;
}

@media (min-width: 768px) {
  .hero {
    padding: calc(var(--space-4xl) + 1rem) var(--space-xl) calc(var(--space-4xl) + 3rem);
  }
}

/* ── Pillar Hero (Section Pages) ── */

.pillar-hero {
  position: relative;
  background: linear-gradient(155deg, var(--bark) 0%, #3D2E1E 50%, var(--amber) 100%);
  color: var(--white);
  padding: var(--space-3xl) var(--space-lg) calc(var(--space-3xl) + 2rem);
  margin: 0 calc(-1 * var(--space-lg)) var(--space-2xl);
  text-align: center;
  overflow: hidden;
}

.pillar-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
}

.pillar-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -5%;
  right: -5%;
  height: 40px;
  background: var(--cream);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}

.pillar-hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.pillar-description {
  font-size: 1.1rem;
  opacity: 0.88;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  font-weight: 300;
}

@media (min-width: 768px) {
  .pillar-hero {
    padding: var(--space-4xl) var(--space-xl) calc(var(--space-4xl) + 2rem);
    margin: 0 calc(-1 * var(--space-lg)) var(--space-2xl);
  }
}

/* ── Pillars Grid (Homepage) ── */

.pillars-section,
.latest-section {
  padding: var(--space-3xl) 0;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

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

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

.pillar-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--stone-light);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}

.pillar-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  color: inherit;
  border-top-color: var(--amber);
}

/* Colored top borders for each pillar */
.pillar-card:nth-child(1) { border-top-color: var(--forest); }
.pillar-card:nth-child(2) { border-top-color: var(--amber); }
.pillar-card:nth-child(3) { border-top-color: var(--bark-light); }
.pillar-card:nth-child(4) { border-top-color: var(--terracotta); }
.pillar-card:nth-child(5) { border-top-color: #5B7B8A; }
.pillar-card:nth-child(6) { border-top-color: #7A9A6A; }

.pillar-card:nth-child(1):hover { border-top-color: var(--forest); }
.pillar-card:nth-child(2):hover { border-top-color: var(--amber); }
.pillar-card:nth-child(3):hover { border-top-color: var(--bark-light); }
.pillar-card:nth-child(4):hover { border-top-color: var(--terracotta); }
.pillar-card:nth-child(5):hover { border-top-color: #5B7B8A; }
.pillar-card:nth-child(6):hover { border-top-color: #7A9A6A; }

.pillar-icon {
  font-size: 2.25rem;
  display: block;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.pillar-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--bark);
  transition: color var(--duration-fast) ease;
}

.pillar-card:hover .pillar-card-title {
  color: var(--amber);
}

.pillar-card-description {
  font-size: 0.9rem;
  color: var(--stone);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.pillar-card-count {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--amber);
}

/* ── Cluster Grid (Section Pages) ── */

.cluster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

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

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

.cluster-card {
  background: var(--white);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-out);
}

.cluster-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.cluster-card-image {
  overflow: hidden;
}

.cluster-card-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.cluster-card:hover .cluster-card-image img {
  transform: scale(1.04);
}

.cluster-card-body {
  padding: var(--space-lg);
}

.cluster-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: var(--space-sm);
}

.cluster-card-title a {
  color: var(--bark);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.cluster-card-title a:hover {
  color: var(--amber);
}

.cluster-card-description {
  font-size: 0.9rem;
  color: var(--stone);
  margin-bottom: 0;
  line-height: 1.55;
}

.cluster-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) var(--space-lg);
  border-top: 1px solid var(--stone-light);
  font-size: 0.82rem;
}

.cluster-card-reading-time {
  color: var(--stone);
  font-weight: 500;
}

.cluster-card-link {
  color: var(--amber);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  transition: color var(--duration-fast) ease;
}

.cluster-card-link:hover {
  color: var(--amber-hover);
}

/* Cluster section divider & header */
.cluster-section {
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--stone-light);
}

/* Pillar hero article count badge */
.pillar-hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  padding: 0.3rem 1rem;
  margin-top: var(--space-md);
  position: relative;
  z-index: 1;
}

/* Pillar content — constrain width for readability */
.pillar-content {
  max-width: var(--max-width-content);
  margin-left: auto;
  margin-right: auto;
}

/* ── Latest Articles Grid ── */

.latest-section {
  background: var(--white);
  position: relative;
}

.latest-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -5%;
  right: -5%;
  height: 40px;
  background: var(--cream);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.latest-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

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

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

  .latest-card:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .latest-card:first-child .latest-card-image img {
    aspect-ratio: 16/10;
    height: 100%;
    min-height: 280px;
  }

  .latest-card:first-child .latest-card-title {
    font-size: 1.5rem;
  }

  .latest-card:first-child .latest-card-description {
    font-size: 1rem;
    -webkit-line-clamp: 4;
  }
}

.latest-card {
  border: 1px solid var(--stone-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  transition: all var(--duration-normal) var(--ease-out);
}

.latest-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.latest-card-image {
  overflow: hidden;
}

.latest-card-image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.latest-card:hover .latest-card-image img {
  transform: scale(1.04);
}

.latest-card-body {
  padding: var(--space-lg);
}

.latest-card-section {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: var(--space-xs);
}

.latest-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0.3rem 0 var(--space-sm);
  line-height: 1.3;
}

.latest-card-title a {
  color: var(--bark);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.latest-card-title a:hover {
  color: var(--amber);
}

.latest-card-description {
  font-size: 0.88rem;
  color: var(--stone);
  margin-bottom: var(--space-sm);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.latest-card-body time {
  font-size: 0.8rem;
  color: var(--stone);
  font-weight: 500;
}

/* ── Article Hero Banner ── */

.article-hero {
  position: relative;
  width: 100%;
  height: clamp(220px, 35vw, 360px);
  overflow: hidden;
}

.article-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(42, 31, 20, 0.85) 0%, rgba(42, 31, 20, 0.4) 50%, rgba(42, 31, 20, 0.15) 100%);
  display: flex;
  align-items: flex-end;
}

.article-hero-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg) var(--space-xl);
}

.article-hero-section {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: var(--space-sm);
}

.article-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--white);
  margin: 0 0 var(--space-sm);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 720px;
}

.article-meta--hero {
  color: rgba(255, 255, 255, 0.7);
}

.article-meta--hero .meta-sep {
  color: rgba(255, 255, 255, 0.35);
}

.article-meta--hero .reading-time {
  color: rgba(255, 255, 255, 0.7);
}

/* Article Header (no-image fallback) */

.article-header {
  margin-bottom: var(--space-xl);
  padding-top: var(--space-md);
}

.article-header h1 {
  margin-bottom: var(--space-md);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.article-meta {
  font-size: 0.85rem;
  color: var(--stone);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.meta-sep {
  color: var(--stone-light);
}

.reading-time {
  color: var(--stone);
}

/* Article Layout — Grid with optional TOC sidebar */

.article-layout {
  display: block;
}

/* ── Article Content — Readability System ── */

.article-content {
  margin-bottom: var(--space-2xl);
  font-size: 1rem;
  line-height: 1.8;
}

/* — Headings — */

.article-content h2 {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--stone-light);
  font-size: 1.5rem;
}

.article-content h2:first-child {
  border-top: none;
  padding-top: 0;
}

.article-content h3 {
  font-size: 1.25rem;
  margin-top: var(--space-xl);
}

.article-content h4 {
  font-size: 1.05rem;
  margin-top: var(--space-lg);
  color: var(--bark-mid);
}

/* — Paragraphs & Inline — */

.article-content > p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--bark);
}

.article-content a {
  font-weight: 600;
}

.article-content strong {
  color: var(--bark);
  font-weight: 700;
}

/* — Blockquotes (pull-quote style) — */

.article-content blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  border-left: 4px solid var(--amber);
  background: var(--amber-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--bark);
  position: relative;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

/* — Lists — */

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.25em;
}

.article-content ul {
  list-style: none;
  padding-left: 0;
}

.article-content ul > li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.6rem;
  line-height: 1.7;
}

.article-content ul > li::before {
  content: '';
  position: absolute;
  left: 0.2em;
  top: 0.65em;
  width: 7px;
  height: 7px;
  background: var(--amber);
  border-radius: 50%;
}

/* Nested bullet variation */
.article-content ul ul > li::before {
  background: transparent;
  border: 1.5px solid var(--amber);
}

.article-content ol {
  counter-reset: article-ol;
  list-style: none;
  padding-left: 0;
}

.article-content ol > li {
  counter-increment: article-ol;
  position: relative;
  padding-left: 2.25em;
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.article-content ol > li::before {
  content: counter(article-ol);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.6em;
  height: 1.6em;
  background: var(--amber);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.article-content li::marker {
  color: var(--amber);
}

/* — Images — */

.article-content img {
  border-radius: var(--radius-md);
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-sm);
}

/* — Horizontal Rules (section dividers) — */

.article-content hr {
  border: none;
  margin: var(--space-2xl) 0;
  height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-content hr::before {
  content: '\2022 \2022 \2022';
  letter-spacing: 0.75em;
  color: var(--stone-light);
  font-size: 0.9rem;
}

/* — Tables (responsive, styled) — */

.article-content .table-wrap {
  margin: var(--space-xl) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--stone-light);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.article-content .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Scroll hint on mobile */
.article-content .table-scroll.is-scrollable::after {
  content: 'Scroll \2192';
  display: block;
  text-align: right;
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--stone);
  background: var(--cream-dark);
  border-top: 1px solid var(--stone-light);
}

@media (min-width: 768px) {
  .article-content .table-scroll.is-scrollable::after {
    display: none;
  }
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.article-content th {
  background: var(--bark);
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 1;
}

.article-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--stone-light);
  color: var(--bark-mid);
  vertical-align: top;
}

/* Zebra striping */
.article-content tbody tr:nth-child(even) {
  background: rgba(240, 234, 224, 0.4);
}

.article-content tbody tr:hover {
  background: var(--amber-light);
}

/* First column emphasis (for comparison tables) */
.article-content td:first-child {
  font-weight: 600;
  color: var(--bark);
}

/* Bold cells that contain check/cross marks */
.article-content td strong {
  color: var(--forest);
}

/* — Inline code within content — */

.article-content code {
  background: var(--cream-dark);
  color: var(--bark);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.88em;
  font-weight: 600;
}

/* — Key Info Patterns — */
/* Style bold labels that start list items (e.g., "Price:", "Best for:") */

.article-content li > strong:first-child {
  color: var(--bark);
  font-weight: 700;
}


/* TOC — Mobile: collapsible above content */

.toc-sidebar {
  background: var(--cream-dark);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.toc-heading {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--amber);
}

.toc-sidebar #TableOfContents ul {
  list-style: none;
  padding-left: 0;
}

.toc-sidebar #TableOfContents ul ul {
  padding-left: var(--space-md);
  margin-top: var(--space-xs);
}

.toc-sidebar #TableOfContents li {
  margin-bottom: 0.15rem;
}

.toc-sidebar #TableOfContents a {
  display: block;
  padding: 0.35rem 0.5rem;
  color: var(--bark-mid);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.45;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) ease;
}

.toc-sidebar #TableOfContents a:hover {
  color: var(--amber);
  background: var(--amber-light);
}

/* TOC — Desktop: sticky sidebar in grid */

@media (min-width: 1024px) {
  .has-toc .article-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: var(--space-2xl);
    align-items: start;
  }

  .has-toc .article-content {
    min-width: 0;
  }

  .toc-sidebar {
    position: sticky;
    top: calc(var(--header-height) + var(--space-lg));
    margin-bottom: 0;
    order: 2;
  }

  .has-toc .article-content {
    order: 1;
  }
}

/* Custom TOC (shortcode) */

.custom-toc {
  background: var(--cream-dark);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

.custom-toc summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--bark);
}

.custom-toc #TableOfContents ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.custom-toc #TableOfContents ul ul {
  padding-left: var(--space-md);
}

.custom-toc #TableOfContents a {
  display: block;
  padding: 0.3rem 0;
  color: var(--bark-mid);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--duration-fast) ease;
}

.custom-toc #TableOfContents a:hover {
  color: var(--amber);
}

/* ── Product Cards ── */

.product-card {
  background: var(--white);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin: var(--space-lg) 0;
  text-align: center;
  transition: all var(--duration-normal) var(--ease-out);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--amber-light);
}

.product-card img {
  max-height: 200px;
  width: auto;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-sm);
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: var(--space-sm);
  color: var(--bark);
}

.product-card .verdict {
  font-size: 0.95rem;
  color: var(--stone);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.product-card .price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: var(--space-md);
}

.product-card .btn {
  width: 100%;
  max-width: 280px;
}

/* ── Callout Boxes ── */

.callout {
  border-left: 4px solid var(--forest);
  background: var(--forest-light);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-lg) 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout-info {
  border-left-color: var(--forest);
  background: var(--forest-light);
}

.callout-warning {
  border-left-color: var(--amber);
  background: var(--amber-light);
}

.callout-tip {
  border-left-color: var(--amber);
  background: rgba(200, 120, 42, 0.08);
}

.callout-danger {
  border-left-color: #C0392B;
  background: #FBEAE8;
}

/* ── FAQ Section ── */

.faq-section {
  margin: var(--space-xl) 0;
}

.faq-item {
  border-bottom: 1px solid var(--stone-light);
}

.faq-item:first-child {
  border-top: 1px solid var(--stone-light);
}

.faq-details {
  padding: 0;
}

.faq-question {
  padding: var(--space-md) 0;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--bark);
  transition: color var(--duration-fast) ease;
}

.faq-question:hover {
  color: var(--amber);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--amber);
  flex-shrink: 0;
  margin-left: var(--space-md);
  transition: transform var(--duration-normal) var(--ease-out);
}

.faq-details[open] .faq-question::after {
  content: "\2212";
}

.faq-answer {
  padding: 0 0 var(--space-lg);
  color: var(--bark-mid);
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

/* ── Related Posts ── */

.related-posts {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--stone-light);
  max-width: var(--max-width-content);
}

.has-toc .related-posts,
.has-toc .author-bio {
  max-width: none;
}

.related-posts-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: var(--space-lg);
  margin-top: 0;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

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

.related-post-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: all var(--duration-normal) var(--ease-out);
}

.related-post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  color: inherit;
}

.related-post-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.related-post-section {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  padding: var(--space-md) var(--space-md) 0;
}

.related-post-title {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0.25rem 0 0;
  padding: 0 var(--space-md) var(--space-md);
  color: var(--bark);
  line-height: 1.35;
}

/* ── Author Bio ── */

.author-bio {
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--stone-light);
}

.author-bio-inner {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.author-bio-text {
  flex: 1;
}

.author-name {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--bark);
}

.author-description {
  font-size: 0.88rem;
  color: var(--stone);
  margin-bottom: 0.35rem;
}

.author-reviewed {
  font-size: 0.85rem;
  color: var(--forest);
  margin-bottom: 0;
  font-weight: 600;
}

/* ── Disclaimer ── */

.disclaimer {
  background: var(--amber-light);
  border: 1px solid rgba(200, 120, 42, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  font-size: 0.88rem;
  color: var(--bark-mid);
}

.disclaimer p {
  margin-bottom: 0;
}

.disclaimer-health {
  background: var(--forest-light);
  border-color: rgba(59, 107, 74, 0.2);
}

.disclaimer-product {
  background: var(--amber-light);
  border-color: rgba(200, 120, 42, 0.2);
}

/* ── List Pages ── */

.list-header {
  margin-bottom: var(--space-xl);
  padding-top: var(--space-md);
}

.list-description {
  font-size: 1.1rem;
  color: var(--stone);
}

.list-content {
  margin-bottom: var(--space-xl);
}

.page-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.page-list-item {
  display: flex;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--stone-light);
  transition: transform var(--duration-normal) var(--ease-out);
}

.page-list-item:hover {
  transform: translateX(4px);
}

.page-list-image {
  flex-shrink: 0;
  width: 180px;
}

.page-list-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.page-list-body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.page-list-body h2 a {
  color: var(--bark);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

.page-list-body h2 a:hover {
  color: var(--amber);
}

.page-list-body p {
  font-size: 0.9rem;
  color: var(--stone);
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

.page-list-meta {
  font-size: 0.82rem;
  color: var(--stone);
  display: flex;
  gap: var(--space-md);
}

@media (max-width: 599px) {
  .page-list-item {
    flex-direction: column;
  }

  .page-list-image {
    width: 100%;
  }
}

/* ── Pagination ── */

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
  list-style: none;
}

.pagination li a,
.pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-md);
  border: 1px solid var(--stone-light);
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--bark-mid);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--duration-fast) ease;
}

.pagination li.active span {
  background: var(--amber);
  color: var(--white);
  border-color: var(--amber);
}

.pagination li a:hover {
  background: var(--amber-light);
  border-color: var(--amber);
  color: var(--amber);
}

/* ── Footer ── */

.site-footer {
  background: var(--bark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-lg);
  margin-top: 0;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -5%;
  right: -5%;
  height: 50px;
  background: var(--cream);
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-site-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.footer-about-text {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.55);
}

.footer-heading {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--duration-fast) ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: var(--space-xl);
  text-align: center;
}

.footer-affiliate {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: var(--space-sm);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.footer-copyright {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0;
}

/* ── Related Pillars (Cross-Silo Links) ── */

.related-pillars {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--stone-light);
}

/* ── Enhanced Author Bio ── */

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--amber-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  overflow: hidden;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.author-credential {
  font-size: 0.82rem;
  color: var(--stone);
  margin-bottom: 0.35rem;
  font-style: italic;
}

.author-updated {
  font-size: 0.82rem;
  color: var(--stone);
  margin-bottom: 0;
}

/* ── Sticky First Column (Comparison Tables) ── */

@media (max-width: 767px) {
  .article-content .table-scroll table td:first-child,
  .article-content .table-scroll table th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--white);
  }

  .article-content .table-scroll table th:first-child {
    background: var(--bark);
  }

  .article-content .table-scroll table tbody tr:nth-child(even) td:first-child {
    background: #f7f3ed;
  }
}

/* ── TOC Active Link Highlighting ── */

.toc-sidebar #TableOfContents a.is-active {
  color: var(--amber);
  background: var(--amber-light);
  font-weight: 600;
}

/* ── Scroll Reveal Animations ── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }

/* Hero entrance animation */
.hero-inner > * {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.8s var(--ease-out) forwards;
}

.hero-inner > *:nth-child(1) { animation-delay: 0.1s; }
.hero-inner > *:nth-child(2) { animation-delay: 0.25s; }
.hero-inner > *:nth-child(3) { animation-delay: 0.4s; }
.hero-inner > *:nth-child(4) { animation-delay: 0.55s; }

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Print Styles ── */

@media print {
  .site-header,
  .nav-toggle,
  .primary-nav,
  .site-footer,
  .related-posts,
  .breadcrumbs,
  .toc-sidebar,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
    line-height: 1.5;
  }

  .single-article {
    max-width: 100%;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }

  a[href^="#"]::after,
  a[href^="javascript"]::after {
    content: "";
  }

  .product-card {
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
  }

  .callout {
    border-left: 3px solid #000;
    background: #f5f5f5;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }
}
