/*
Theme Name: Coo Coo Babys
Theme URI: https://coocoobabys.com
Author: Advertpreneur
Author URI: https://advertpreneur.com
Description: A high-performance, premium editorial and review platform for modern parents and grandparents in the USA. Designed for high-conversion Amazon affiliate marketing.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, editorial, parenting, baby gear, affiliate, reviews
Text Domain: coo-coo-babys
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --mocha:        #333333;
  --mocha-dark:   #1A1A1A;
  --mocha-light:  #555555;
  --rose:         #D4AF37; /* Premium Gold touch for conversions */
  --rose-light:   #F3E5AB;
  --cream:        #FAFAFA;
  --blush:        #FFFFFF;
  --blush-dark:   #F0F0F0;
  --text-primary: #1A1A1A;
  --text-body:    #4A4A4A;
  --text-muted:   #888888;
  --border:       #EAEAEA;

  --font-headline:   'Playfair Display', Georgia, serif;
  --font-ui:         'Inter', 'Outfit', system-ui, sans-serif;
  --font-expression: 'Cormorant Garamond', Georgia, serif;

  --max-w: 1440px;
  --content-w: 800px;
  --gap: clamp(1.5rem, 4vw, 3rem);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --shadow-card: 0 8px 30px rgba(0,0,0,.04);
  --shadow-hover: 0 20px 40px rgba(0,0,0,.12);
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-ui);
  font-size: clamp(15px, 1.1vw, 17px);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   SKIP LINK (a11y)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  padding: .5rem 1.2rem;
  background: var(--mocha);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: .875rem;
  border-radius: var(--radius-sm);
  z-index: 10000;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--mocha), var(--rose));
  z-index: 9999;
  transition: width .1s linear;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 250, 250, 0.95); /* Matches var(--cream) */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 2rem;
}

.site-branding { display: flex; align-items: center; }

.header-logo,
.custom-logo-link img,
.site-logo img {
  height: clamp(24px, calc(var(--header-logo-size, 34px) * 0.82), var(--header-logo-size, 34px)) !important;
  width: auto !important;
  display: block !important;
}

.custom-logo-link {
  display: block;
}

.site-tagline {
  display: none; /* Moved to screen-reader-text */
}

.main-nav { display: flex; align-items: center; }
.main-menu { display: flex; align-items: center; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.main-menu li { list-style: none; margin: 0; padding: 0; }
.main-menu li::before { display: none !important; }

.js .main-nav a {
  opacity: 0;
}
.main-nav a {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-primary);
  padding: .4rem .8rem;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--rose);
  transform: translateX(-50%);
  transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after { width: 80%; }

.main-nav a:focus-visible {
  outline: 4px solid var(--rose);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
  margin-left: auto !important;
}

.main-nav {
  margin-left: 2rem;
}

.header-search-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--mocha);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.header-search-btn:hover {
  background: var(--mocha);
  color: var(--cream);
  border-color: var(--mocha);
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(250, 248, 243, 0.98);
  z-index: 9998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.search-overlay.active {
  display: flex !important;
}

.search-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 3rem;
  color: var(--mocha);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.search-close:hover { color: var(--rose); }

.search-overlay-content {
  width: 100%;
  max-width: 650px;
  text-align: center;
}

.search-prompt {
  font-family: var(--font-expression);
  font-style: italic;
  color: var(--rose);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Search Form within Overlay */
.search-overlay .search-form {
  position: relative;
  display: flex;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: .35rem;
  box-shadow: 0 10px 40px rgba(92,61,46,0.12);
  align-items: center;
}

.search-overlay .search-field {
  flex: 1;
  background: transparent;
  border: none;
  padding: .8rem 1.5rem;
  font-family: var(--font-ui);
  font-size: 1.1rem;
  color: var(--mocha);
  outline: none;
  width: 100%;
}

.search-overlay .search-submit {
  background: var(--mocha);
  color: var(--cream);
  border-radius: 100px;
  padding: .75rem 2rem;
  font-family: var(--font-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  border: none;
  transition: all var(--transition);
  cursor: pointer;
}

.search-overlay .search-submit:hover {
  background: var(--rose);
  transform: scale(1.05);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px;
}
.mobile-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--mocha);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO / MASTHEAD
   ============================================================ */
.site-masthead {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--gap);
  text-align: center;
}

.js .masthead-eyebrow {
  opacity: 0;
  transform: translateY(20px);
}
.masthead-eyebrow {
  font-family: var(--font-expression);
  font-style: italic;
  font-size: clamp(.85rem, 1.2vw, 1rem);
  color: var(--rose);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.js .masthead-title {
  opacity: 0;
  transform: translateY(30px);
}
.masthead-title {
  font-family: var(--font-headline);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  color: var(--mocha);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}

.masthead-title em {
  font-family: var(--font-expression);
  font-style: italic;
  color: var(--rose);
  font-weight: 400;
}

.js .masthead-intro {
  opacity: 0;
  transform: translateY(20px);
}
.masthead-intro {
  font-family: var(--font-ui);
  font-size: clamp(.95rem, 1.3vw, 1.1rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

.js .masthead-divider {
  opacity: 0;
}
.masthead-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.masthead-divider::before,
.masthead-divider::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--border);
}
.masthead-divider span {
  font-size: .6rem;
  color: var(--rose);
  letter-spacing: .2em;
  text-transform: uppercase;
}

/* ============================================================
   DYNAMIC HERO GRID (Feature Slider + Sticky Column)
   ============================================================ */
.hero-feature-grid {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
  padding: 0 var(--gap);
}
.hero-grid-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.5rem;
  min-height: 520px;
}

/* Slider Column */
.hero-slider-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--mocha);
  box-shadow: var(--shadow-card);
  height: 100%;
}
.hero-slider {
  display: grid;
  grid-template-areas: "slide-area";
  height: 100%;
  width: 100%;
}
.hero-slide {
  grid-area: slide-area;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  z-index: 1;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.slide-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  color: #FFFFFF !important; /* Force white for readability on image */
  text-decoration: none !important;
}
.slide-image {
  width: 100%;
  height: 100%;
}
.slide-image img {
  width: 100%; 
  height: 100%;
  object-fit: cover;
  transition: transform 6s linear;
}
.hero-slide.active .slide-image img {
  transform: scale(1.1);
}

/* Overlay gradient for text readability */
.slide-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  z-index: 2;
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(2rem, 4vw, 4rem) 2.5rem;
  z-index: 3;
}
.slide-badge {
  display: inline-block;
  background: var(--rose);
  color: #fff;
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .7rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.slide-title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
  max-width: 800px;
}
.slide-meta {
  font-family: var(--font-ui);
  font-size: .85rem;
  opacity: 0.8;
  letter-spacing: .02em;
}

/* Sticky Column */
.hero-sticky-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sticky-card {
  flex: 1;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  transition: all var(--transition);
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(92, 61, 46, 0.04);
}
.sticky-card:hover {
  border-color: var(--rose-light);
  transform: translateX(6px);
  background: var(--blush);
  box-shadow: 0 10px 30px rgba(92, 61, 46, 0.08);
}
.sticky-card-cat {
  display: block;
  font-family: var(--font-ui);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .5rem;
}
.sticky-card-title {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--mocha);
  line-height: 1.4;
  margin-bottom: .75rem;
}
.sticky-card-action {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  color: var(--mocha);
  opacity: 0.6;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: opacity var(--transition);
}
.sticky-card:hover .sticky-card-action { opacity: 1; }

/* Progress Dots for Slider */
.slider-dots {
  position: absolute;
  right: 2.5rem;
  bottom: 2.5rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.slider-dot.active {
  background: var(--rose);
  transform: scale(1.3);
}

@media (max-width: 1024px) {
  .hero-grid-inner { grid-template-columns: 1fr; }
  .hero-slider-container { min-height: 400px; }
  .slider-dots { flex-direction: row; right: auto; left: 2.5rem; bottom: 1.5rem; }
}

@media (max-width: 768px) {
  .hero-slider-container { min-height: 320px; }
  .slide-content { padding: 2rem 1.5rem; }
  .slide-title { font-size: 1.5rem; }
}

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mocha);
  border: 1.5px solid var(--mocha);
  padding: .7rem 1.6rem;
  border-radius: 100px;
  transition: all var(--transition);
  align-self: flex-start;
}
.btn-read:hover {
  background: var(--mocha);
  color: var(--cream);
}
.btn-read svg { transition: transform var(--transition); }
.btn-read:hover svg { transform: translateX(4px); }

/* ============================================================
   POST STRIP (Quick Reads)
   ============================================================ */
.post-strip-section {
  background: var(--blush);
  padding: clamp(2rem, 4vw, 4rem) var(--gap);
}
.post-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--mocha);
  font-weight: 700;
  letter-spacing: -.02em;
}
.section-title em {
  font-family: var(--font-expression);
  font-style: italic;
  color: var(--rose);
  font-weight: 400;
}
.view-all {
  font-family: var(--font-ui);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: gap var(--transition);
}
.view-all:hover { gap: .7rem; }

.post-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Article Card */
.article-card {
  background: var(--cream);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.article-card:focus-within {
  outline: 4px solid var(--rose);
  outline-offset: 3px;
}

.card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--blush);
}
.card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.article-card:hover .card-thumb img { transform: scale(1.08); }

.card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.card-category {
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose);
}

.card-title {
  font-family: var(--font-headline);
  font-size: clamp(.95rem, 1.4vw, 1.1rem);
  font-weight: 700;
  color: var(--mocha);
  line-height: 1.3;
  letter-spacing: -.01em;
  flex: 1;
}
.card-title a:hover { color: var(--rose); }
.card-title a:focus-visible {
  outline: 2px solid var(--rose);
  border-radius: 2px;
}

.card-reading-time {
  font-size: .72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: .3rem;
}

/* ============================================================
   CATEGORY BROWSER
   ============================================================ */
.category-browser {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 5rem) var(--gap);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.tag-cloud-item {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1.4rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mocha);
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(92, 61, 46, 0.03);
}

.tag-cloud-item:hover {
  border-color: var(--rose-light);
  color: var(--rose);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(92, 61, 46, 0.08);
}

.tag-cloud-item .tag-count {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Subtle size variations for cloud feel */
.tag-cloud-item.size-large { font-size: 1.05rem; padding: 0.75rem 1.6rem; }
.tag-cloud-item.size-medium { font-size: 0.95rem; }
.tag-cloud-item.size-small { font-size: 0.8rem; }

.category-chip-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.4s ease;
  color: var(--mocha);
}
/* Lucide svg sizing */
.category-chip-icon svg,
.category-chip-icon .lucide {
  width: 38px;
  height: 38px;
  stroke: currentColor;
  stroke-width: 1.25px;
  transition: stroke 0.3s ease;
}
.category-chip:hover .category-chip-icon {
  transform: scale(1.15) rotate(3deg);
  color: var(--rose);
}

.category-chip-name {
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mocha);
  margin-top: 0.5rem;
}
.category-chip-count {
  font-size: .75rem;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-style: italic;
  opacity: 0.8;
}

/* ============================================================
   TAILORED WISDOM (Personalization Block)
   ============================================================ */
.tailored-wisdom {
  background: var(--mocha);
  padding: clamp(2.5rem, 5vw, 5rem) var(--gap);
}
.tailored-wisdom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.tailored-wisdom .section-title { color: var(--cream); }
.tailored-wisdom .section-title em { color: var(--rose-light); }
.tailored-wisdom .view-all { color: var(--rose-light); }

.wisdom-subtitle {
  font-family: var(--font-expression);
  font-style: italic;
  font-size: 1rem;
  color: var(--rose-light);
  margin-bottom: .5rem;
}

.wisdom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.wisdom-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all var(--transition);
}
.wisdom-card:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--rose);
  transform: translateY(-3px);
}

.wisdom-card-thumb {
  width: 80px; height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,.1);
}
.wisdom-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.wisdom-card-cat {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: .4rem;
}
.wisdom-card-title {
  font-family: var(--font-headline);
  font-size: .95rem;
  color: var(--cream);
  line-height: 1.35;
  letter-spacing: -.01em;
}
.wisdom-card-title a:hover { color: var(--rose-light); }
.wisdom-card-time {
  font-size: .7rem;
  color: rgba(250,248,243,.5);
  margin-top: .5rem;
}

/* ============================================================
   SINGLE POST LAYOUT
   ============================================================ */
.single-post-hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem var(--gap) 0;
}

.post-header {
  max-width: var(--content-w);
  margin: 0 auto 2rem;
  text-align: center;
}

.post-category-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cream);
  background: var(--rose);
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.post-title {
  font-family: var(--font-headline);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--mocha);
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}

.post-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .8rem;
  color: var(--text-muted);
}
.post-meta-bar span { display: flex; align-items: center; gap: .3rem; }

.post-featured-img {
  aspect-ratio: 16/7;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
  background: var(--blush);
}
.post-featured-img img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   PAGE LAYOUT & CONTAINER
   ============================================================ */
.page-masthead {
  padding: clamp(5rem, 8vw, 8rem) var(--gap) clamp(5rem, 8vw, 8rem);
  text-align: center;
  background-color: var(--mocha);
  border-radius: 0 0 40px 40px;
  position: relative;
  overflow: hidden;
}

.page-masthead::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(var(--rose) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.15;
  pointer-events: none;
}

.page-masthead .masthead-eyebrow {
  color: var(--rose-light);
  font-size: .8rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.page-masthead .masthead-title {
  color: var(--cream);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.page-masthead .masthead-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}
.page-masthead .masthead-divider::before,
.page-masthead .masthead-divider::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.1);
}
.page-masthead .masthead-divider span {
  color: var(--rose-light);
  font-size: .6rem;
  letter-spacing: .2em;
}

.page-intro {
  max-width: 56ch;
  margin: 1.5rem auto 0;
  color: rgba(243, 246, 242, 0.82);
  font-size: 1rem;
  line-height: 1.7;
}

.page-highlight-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.page-highlight-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--cream);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-content-wrapper {
  max-width: 1000px;
  margin: -4rem auto 4rem;
  padding: 0 var(--gap);
  position: relative;
  z-index: 2;
}

.page-content-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 4rem) clamp(2rem, 5vw, 5rem);
  box-shadow: 0 20px 50px rgba(92, 61, 46, 0.06);
}

.page-story-band {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 var(--gap);
  position: relative;
  z-index: 2;
}

.page-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.page-story-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.page-story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(107, 143, 113, 0.32);
}

.page-story-kicker {
  margin-bottom: 0.75rem;
  color: var(--rose);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.page-story-title {
  font-family: var(--font-headline);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--mocha-dark);
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.page-story-copy {
  color: var(--text-body);
  line-height: 1.65;
}

.page-featured-img {
  max-width: 1000px;
  margin: -4rem auto 2rem;
  padding: 0 var(--gap);
  position: relative;
  z-index: 2;
}

.page-featured-img img {
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(92, 61, 46, 0.08);
  width: 100%;
}

.page-shell-about-us .page-masthead,
.page-shell-write-for-us .page-masthead,
.page-shell-advertise .page-masthead,
.page-shell-contact .page-masthead {
  padding-bottom: clamp(4rem, 7vw, 5.5rem);
  border-radius: 0 0 44px 44px;
}

.page-shell-about-us .page-content-wrapper,
.page-shell-write-for-us .page-content-wrapper,
.page-shell-advertise .page-content-wrapper,
.page-shell-contact .page-content-wrapper {
  margin-top: 2rem;
}

/* Post Content Layout with Sidebar */
.post-content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gap) 4rem;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
  align-items: start;
}

.post-content-main {}

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.toc-sidebar {
  position: sticky;
  top: 88px;
}

.toc-widget {
  background: var(--blush);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.toc-title {
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mocha);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.toc-list { display: flex; flex-direction: column; gap: .5rem; }
.toc-list li {}
.toc-list a {
  font-size: .82rem;
  color: var(--text-muted);
  display: block;
  padding: .2rem 0;
  border-left: 2px solid transparent;
  padding-left: .75rem;
  transition: all var(--transition);
  line-height: 1.4;
}
.toc-list a:hover,
.toc-list a.active {
  color: var(--mocha);
  border-color: var(--rose);
}
.toc-list .toc-h3 { padding-left: 1.5rem; font-size: .78rem; }

/* ============================================================
   ARTICLE BODY TYPOGRAPHY
   ============================================================ */
.entry-content {
  font-family: var(--font-ui);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-body);
}
.entry-content h2 {
  font-family: var(--font-headline);
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--rose);
  letter-spacing: -.02em;
  margin: 2.5rem 0 1rem;
  line-height: 1.2;
}
.entry-content h3 {
  font-family: var(--font-headline);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: var(--rose);
  margin: 2rem 0 .75rem;
  line-height: 1.3;
}
.entry-content p { margin-bottom: 1.5rem; }
.entry-content a {
  color: var(--rose);
  border-bottom: 1px solid var(--rose-light);
  transition: color var(--transition), border-color var(--transition);
}
.entry-content a:hover { color: var(--mocha); border-color: var(--mocha); }
.entry-content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--rose);
  background: var(--blush);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-family: var(--font-expression);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--mocha);
  line-height: 1.6;
}
.entry-content ul, .entry-content ol {
  margin: 1.5rem 0 2rem 1.25rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content ul li::marker,
.entry-content ol li::marker {
  color: var(--rose);
  font-weight: 700;
}
.entry-content li {
  margin-bottom: .75rem;
  padding-left: .5rem;
}

/* Premium Tables */
.entry-content table {
  width: 100%;
  margin: 2.5rem 0;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(92,61,46,.03);
}
.entry-content th {
  background: var(--mocha);
  color: #fff;
  padding: 1.2rem 1rem;
  text-align: left;
  font-family: var(--font-ui);
  font-size: .85rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 700;
}
.entry-content td {
  padding: 1.1rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  color: var(--text-body);
  background: #fff;
}
.entry-content tr:last-child td { border-bottom: none; }
.entry-content tr:nth-child(even) td { background: var(--cream); }
.entry-content tr:hover td { background: var(--blush); }

/* FAQ Accordion */
.article-faq {
  margin: 3rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-trigger {
  width: 100%;
  padding: 1.5rem 2rem;
  background: #fff;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mocha);
  text-align: left;
  transition: all var(--transition);
}
.faq-trigger:hover { background: var(--cream); color: var(--rose); }
.faq-trigger::after {
  content: '+';
  font-family: var(--font-ui);
  font-size: 1.5rem;
  color: var(--rose);
  transition: transform var(--transition);
}
.faq-item.active .faq-trigger::after { content: '−'; }
.faq-content {
  max-height: 0;
  overflow: hidden;
  background: var(--cream);
  transition: max-height .4s ease, padding .4s ease;
  padding: 0 2rem;
}
.faq-item.active .faq-content {
  max-height: 500px;
  padding: 1rem 2rem 2rem;
}
.faq-content p { font-size: .95rem; margin: 0; }

/* RankMath & Native Gutenberg Support */
.rank-math-faq-item,
.wp-block-details {
  border-bottom: 1px solid var(--border);
  background: #fff;
  transition: all var(--transition);
}
.rank-math-question,
summary {
  list-style: none;
  padding: 1.5rem 2rem;
  font-family: var(--font-headline);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--mocha);
  cursor: pointer;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}
.rank-math-question:hover,
summary:hover { color: var(--rose); background: var(--cream); }

.rank-math-question::after,
summary::after {
  content: '+';
  font-family: var(--font-ui);
  font-size: 1.5rem;
  color: var(--rose);
}
.rank-math-faq-item.active .rank-math-question::after,
details[open] summary::after { content: '−'; }

.rank-math-answer,
.wp-block-details[open] > *:not(summary) {
  padding: 0 2rem 2rem;
  background: var(--cream);
  font-size: .95rem;
  color: var(--text-body);
}
.rank-math-answer { display: none; }
.rank-math-faq-item.active .rank-math-answer { display: block; }
.entry-content img {
  border-radius: var(--radius-md);
  margin: 2rem 0;
}
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption {
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: .5rem;
  font-style: italic;
}
.entry-content strong { color: var(--mocha); font-weight: 700; }

/* ============================================================
   SHARING (Mama Share)
   ============================================================ */
.mama-share {
  margin: 3rem 0;
  padding: 1.75rem;
  background: var(--blush);
  border-radius: var(--radius-md);
  text-align: center;
}
.share-label {
  font-family: var(--font-ui);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.share-buttons {
  display: flex;
  gap: .75rem;
  justify-content: center;
  flex-wrap: wrap;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-ui);
  font-size: .78rem;
  font-weight: 600;
  padding: .65rem 1.25rem;
  border: 1.5px solid var(--mocha);
  border-radius: 100px;
  color: var(--mocha);
  transition: all var(--transition);
}
.share-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
  transform: translateY(-2px);
}
.share-btn.whatsapp:hover { border-color: #25D366; color: #25D366; }
.share-btn.twitter:hover  { border-color: #1DA1F2; color: #1DA1F2; }
.share-btn.facebook:hover { border-color: #1877F2; color: #1877F2; }

/* ============================================================
   NEWSLETTER SLIDE-IN
   ============================================================ */
#newsletter-popup {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 340px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(92,61,46,.2);
  z-index: 5000;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all .4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#newsletter-popup.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}
.popup-close {
  position: absolute;
  top: .75rem; right: .75rem;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--transition);
}
.popup-close:hover { background: var(--blush); color: var(--mocha); }

.popup-icon { font-size: 2rem; margin-bottom: .75rem; }
.popup-title {
  font-family: var(--font-headline);
  font-size: 1.25rem;
  color: var(--mocha);
  font-weight: 700;
  margin-bottom: .5rem;
}
.popup-subtitle {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.popup-form { display: flex; flex-direction: column; gap: .75rem; }
.popup-form input[type="email"] {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: .9rem;
  color: var(--text-primary);
  background: #fff;
  transition: border-color var(--transition);
}
.popup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--rose);
}
.popup-form button {
  width: 100%;
  padding: .8rem;
  background: var(--mocha);
  color: var(--cream);
  font-family: var(--font-ui);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.popup-form button:hover { background: var(--mocha-dark); }
.popup-privacy { font-size: .68rem; color: var(--text-muted); text-align: center; }

/* ============================================================
   RETURN TO TOP
   ============================================================ */
#return-to-top {
  position: fixed;
  bottom: 2rem; left: 2rem;
  width: 44px; height: 44px;
  background: var(--mocha);
  color: var(--cream);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(92,61,46,.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 4000;
}
#return-to-top.visible { opacity: 1; pointer-events: all; transform: translateY(0); }
#return-to-top:hover { background: var(--rose); transform: translateY(-3px); }

/* ============================================================
   LINK HOVER PREVIEW
   ============================================================ */
.link-preview-card {
  position: fixed;
  width: 280px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: var(--shadow-hover);
  pointer-events: none;
  z-index: 8000;
  opacity: 0;
  transform: translateY(8px);
  transition: all .2s ease;
  display: flex;
  gap: .75rem;
}
.link-preview-card.visible { opacity: 1; transform: translateY(0); }
.preview-thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--blush);
}
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.preview-title {
  font-family: var(--font-headline);
  font-size: .82rem;
  color: var(--mocha);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .3rem;
}
.preview-snippet {
  font-size: .72rem;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.search-page-header {
  max-width: var(--content-w);
  margin: 4rem auto 2rem;
  padding: 0 var(--gap);
}
.search-query-label {
  font-family: var(--font-expression);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: .5rem;
}
.search-query-term {
  font-family: var(--font-headline);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  color: var(--mocha);
  font-weight: 700;
}
.search-results-count {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .5rem;
}
.search-results-grid {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gap);
}
.error-inner { max-width: 560px; }
.error-number {
  font-family: var(--font-headline);
  font-size: clamp(6rem, 14vw, 12rem);
  font-weight: 800;
  color: var(--blush-dark);
  line-height: 1;
  letter-spacing: -.05em;
  margin-bottom: .5rem;
}
.error-title {
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--mocha);
  margin-bottom: 1rem;
}
.error-desc {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.error-topics { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.error-topic-chip {
  font-size: .78rem;
  font-weight: 600;
  padding: .5rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  color: var(--mocha);
  transition: all var(--transition);
}
.error-topic-chip:hover { border-color: var(--rose); color: var(--rose); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--mocha-dark);
  color: rgba(250,248,243,.75);
  padding: clamp(3rem, 6vw, 5rem) var(--gap) 1.5rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand-logo {
  margin-bottom: 1.25rem;
}
.footer-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
}
.footer-brand-tagline {
  font-family: var(--font-expression);
  font-style: italic;
  color: var(--rose-light);
  margin-bottom: 1rem;
  font-size: .95rem;
}
.footer-brand-desc {
  font-size: .82rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col-title {
  font-family: var(--font-ui);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
  font-size: .82rem;
  color: rgba(250,248,243,.65);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--rose-light); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .75rem;
}

/* ============================================================
   COMMENTS
   ============================================================ */
#comments {
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.comments-title,
.comment-reply-title {
  font-family: var(--font-headline);
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  color: var(--mocha);
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.comment-list {
  list-style: none;
  margin: 0 0 3rem 0;
  padding: 0;
}

.comment-list .comment {
  margin-bottom: 2rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.comment-list .children {
  margin-top: 1.5rem;
  margin-left: 2rem;
  padding-left: 2rem;
  border-left: 2px solid var(--blush);
}

.comment-body {
  position: relative;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.comment-author img {
  border-radius: 50%;
  width: 48px;
  height: 48px;
}

.comment-author .fn {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--mocha);
  font-size: 1.05rem;
  font-style: normal;
}

.comment-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.comment-meta a {
  color: inherit;
}

.comment-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-body);
}

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

.reply {
  margin-top: 1rem;
}

.comment-reply-link {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rose);
  border: 1.5px solid var(--border);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  transition: all var(--transition);
  display: inline-block;
}

.comment-reply-link:hover {
  background: var(--mocha);
  color: var(--cream);
  border-color: var(--mocha);
}

/* Form Styles */
.comment-respond {
  background: var(--blush);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  margin-top: 3rem;
}

.comment-notes,
.logged-in-as {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comment-form p {
  margin: 0;
}

.comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mocha);
  margin-bottom: 0.5rem;
  font-family: var(--font-ui);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color var(--transition);
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--rose);
}

.comment-form textarea {
  min-height: 150px;
  resize: vertical;
}

.comment-form-cookies-consent {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

.comment-form-cookies-consent input {
  margin: 0;
  width: auto !important;
}

.comment-form-cookies-consent label {
  margin: 0;
  font-weight: 400;
}

.form-submit {
  margin-top: 1rem;
}

.form-submit .submit {
  background: var(--mocha);
  color: var(--cream);
  border: 1.5px solid var(--mocha);
  padding: 0.8rem 2rem;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-submit .submit:hover {
  background: var(--rose);
  border-color: var(--rose);
  transform: translateY(-2px);
}

/* ============================================================
   CUSTOM FORMS (Contact, Advertise, Write For Us)
   ============================================================ */
.ccb-custom-form {
  background: var(--cream);
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-top: 3rem;
  box-shadow: 0 10px 30px rgba(92, 61, 46, 0.04);
}

.ccb-custom-form label {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--mocha);
  margin-bottom: 2rem;
  position: relative;
}

.ccb-custom-form label input,
.ccb-custom-form label textarea {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-primary);
  transition: all var(--transition);
}

.ccb-custom-form label input:focus,
.ccb-custom-form label textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(224, 158, 142, 0.15);
}

.ccb-custom-form label input[type="file"] {
  border: 2px dashed var(--border);
  background: var(--cream-alt);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
}

.ccb-custom-form label input[type="file"]:hover {
  border-color: var(--rose-light);
  background: #ffffff;
}

.page-shell-about-us .page-content-card,
.page-shell-write-for-us .page-content-card,
.page-shell-advertise .page-content-card,
.page-shell-contact .page-content-card {
  max-width: 980px;
}

.page-shell-about-us .entry-content > p:first-child,
.page-shell-write-for-us .entry-content > p:first-child,
.page-shell-advertise .entry-content > p:first-child,
.page-shell-contact .entry-content > p:first-child {
  font-size: 1.05rem;
  color: var(--mocha-dark);
}

.ccb-form-submit {
  background: var(--mocha);
  color: var(--cream);
  border: 1.5px solid var(--mocha);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  font-family: var(--font-ui);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  width: 100%;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}

.ccb-form-submit:hover:not(:disabled) {
  background: var(--rose);
  border-color: var(--rose);
  transform: translateY(-2px);
}

.ccb-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ccb-form-response {
  margin-top: 1.5rem;
  font-weight: 600;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  text-align: center;
  padding: 1rem;
  border-radius: var(--radius-sm);
  display: none;
}
.ccb-form-response:not(:empty) {
  display: block;
}
.ccb-form-response.success {
  background: rgba(142, 224, 158, 0.15);
  color: #2e7d32;
  border: 1px solid rgba(142, 224, 158, 0.3);
}
.ccb-form-response.error {
  background: rgba(224, 142, 142, 0.15);
  color: #c62828;
  border: 1px solid rgba(224, 142, 142, 0.3);
}

/* ============================================================
   REVEAL ANIMATIONS (.reveal class via GSAP)
   ============================================================ */
.js .reveal { opacity: 0; transform: translateY(30px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-display { grid-template-columns: 1fr; }
  .post-content-wrap { grid-template-columns: 1fr; }
  .toc-sidebar { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .post-strip-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--cream);
    justify-content: center;
    align-items: center;
    z-index: 999;
    gap: 1.5rem;
  }
  .main-nav.open a { font-size: 1.2rem; opacity: 1; }
  .mobile-menu-toggle { display: flex; margin-left: auto; }
  .footer-inner { grid-template-columns: 1fr; }
  #newsletter-popup { width: calc(100vw - 2rem); right: 1rem; bottom: 1rem; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .wisdom-card { flex-direction: column; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .mama-share, #newsletter-popup,
  #return-to-top, .toc-sidebar, #reading-progress { display: none !important; }
  .post-content-wrap { display: block; }
  .entry-content { font-size: 12pt; }
}
/* ============================================================
   NEWSLETTER BALLOON (BOTTOM-RIGHT)
   ============================================================ */
.newsletter-balloon {
  position: fixed;
  bottom: 60px;
  right: 30px;
  width: 320px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 25px;
  box-shadow: 0 15px 45px rgba(92,61,46,0.15);
  z-index: 10000;
  display: none;
  transform: translateX(120%);
  transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

.newsletter-balloon.active {
  display: block;
  transform: translateX(0);
}

.nb-inner { position: relative; text-align: center; }
.nb-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 30px;
  height: 30px;
  background: var(--mocha);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nb-icon { font-size: 2rem; margin-bottom: 10px; }
.nb-title { font-size: 1.1rem; font-family: var(--serif); color: var(--mocha); margin-bottom: 8px; }
.nb-text { font-size: 0.85rem; color: var(--mocha); opacity: 0.8; margin-bottom: 15px; line-height: 1.4; }

.nb-form input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.nb-form button {
  width: 100%;
  background: var(--rose);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nb-form button:hover { background: var(--mocha); }

/* PRIVACY BAR MINIMALIST */
.privacy-footer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(250,248,243,0.95);
  border-top: 1px solid rgba(0,0,0,0.05);
  padding: 6px 0;
  z-index: 9998;
  display: none;
}

.privacy-bar-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 0.7rem;
  color: var(--mocha);
  opacity: 0.6;
}

.privacy-close-btn {
  background: var(--mocha);
  color: #fff;
  border: none;
  padding: 2px 10px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.65rem;
}

@media (max-width: 768px) {
  .newsletter-balloon {
    left: 20px;
    right: 20px;
    bottom: 80px;
    width: auto;
  }
}

/* ============================================================
   HOMEPAGE + UTILITY PAGE REFINEMENTS
   ============================================================ */
.page-content-wrapper {
  margin: 2rem auto 4rem;
  position: relative;
  z-index: 1;
}

.page-content-card {
  margin: 0 auto;
}

.page-featured-img {
  margin: 2rem auto 0;
  z-index: 1;
}

.page-story-band {
  margin: 2rem auto 0;
  z-index: 1;
}

.page-shell-about-us .page-masthead,
.page-shell-write-for-us .page-masthead,
.page-shell-advertise .page-masthead,
.page-shell-contact .page-masthead {
  padding-bottom: clamp(3rem, 5vw, 4rem);
}

.page-shell-about-us .page-story-band,
.page-shell-write-for-us .page-story-band,
.page-shell-advertise .page-story-band,
.page-shell-contact .page-story-band {
  max-width: 1180px;
}

.page-shell-about-us .page-story-grid,
.page-shell-write-for-us .page-story-grid,
.page-shell-advertise .page-story-grid,
.page-shell-contact .page-story-grid {
  gap: 1.25rem;
}

.page-shell-about-us .page-story-card,
.page-shell-write-for-us .page-story-card,
.page-shell-advertise .page-story-card,
.page-shell-contact .page-story-card {
  min-height: 100%;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(247,249,246,0.96) 100%);
}

.page-shell-about-us .page-content-card,
.page-shell-write-for-us .page-content-card,
.page-shell-advertise .page-content-card,
.page-shell-contact .page-content-card {
  max-width: 1080px;
  background: rgba(255,255,255,0.96);
}

.page-shell-about-us .entry-content,
.page-shell-write-for-us .entry-content,
.page-shell-advertise .entry-content,
.page-shell-contact .entry-content {
  display: grid;
  gap: 1.35rem;
}

.page-shell-about-us .entry-content > p:first-child,
.page-shell-write-for-us .entry-content > p:first-child,
.page-shell-advertise .entry-content > p:first-child,
.page-shell-contact .entry-content > p:first-child {
  font-size: clamp(1.08rem, 1.5vw, 1.2rem);
  line-height: 1.8;
}

.home .hero-feature-grid {
  margin-top: 0;
  margin-bottom: 3rem;
}

.home .hero-grid-inner {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.92fr);
  gap: 1.25rem;
  min-height: 0;
}

.hero-feature-card {
  min-width: 0;
}

.hero-feature-link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 32, 0.08);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hero-feature-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(15, 23, 32, 0.12);
  border-color: rgba(107, 143, 113, 0.28);
}

.hero-feature-media {
  aspect-ratio: 4 / 3;
  background: #e8ece5;
  overflow: hidden;
}

.hero-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.hero-feature-link:hover .hero-feature-media img {
  transform: scale(1.04);
}

.hero-feature-copy {
  padding: 1.4rem 1.5rem 1.5rem;
  display: grid;
  gap: 0.85rem;
}

.hero-feature-badge,
.hero-support-cat {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #edf3ed;
  color: #6b8f71;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-feature-title {
  font-family: var(--font-headline);
  font-size: clamp(1.7rem, 2.8vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--mocha-dark);
}

.hero-feature-meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-content: stretch;
}

.hero-support-card {
  min-width: 0;
  min-height: 0;
  display: block;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.hero-support-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(15, 23, 32, 0.1);
  border-color: rgba(107, 143, 113, 0.28);
}

.hero-support-content {
  min-height: 100%;
  padding: 1.35rem;
  display: grid;
  gap: 0.85rem;
  align-content: space-between;
}

.hero-support-title {
  font-family: var(--font-headline);
  font-size: clamp(1.02rem, 1.3vw, 1.22rem);
  line-height: 1.28;
  color: var(--mocha-dark);
}

.hero-support-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-body);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .home .hero-grid-inner {
    grid-template-columns: 1fr;
  }

  .hero-support-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-support-grid,
  .page-story-grid {
    grid-template-columns: 1fr;
  }

  .hero-feature-copy,
  .hero-support-content {
    padding: 1.1rem;
  }

  .page-content-wrapper {
    margin-top: 1.5rem;
  }
}

/* ============================================================
   CATEGORY SHOWCASE
   ============================================================ */
.category-showcase {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
  padding: 0 var(--gap);
}
.showcase-inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.cat-spotlight-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.spotlight-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.spotlight-icon {
  width: 32px;
  height: 32px;
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
}
.spotlight-icon svg,
.spotlight-icon .lucide {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.5px;
}
.spotlight-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}
.spotlight-grid-reverse {
  grid-template-columns: 1fr 1.5fr;
}
.spotlight-grid-reverse .spotlight-featured-card {
  order: 2;
}
.spotlight-grid-reverse .spotlight-side-list {
  order: 1;
}
.spotlight-featured-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #fff;
  border: 1px solid var(--border);
  transition: transform var(--transition);
}
.spotlight-featured-card:hover {
  transform: translateY(-5px);
  border-color: var(--rose-light);
  box-shadow: var(--shadow-hover);
}
.featured-card-link {
  display: block;
}
.featured-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--blush);
}
.featured-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.spotlight-featured-card:hover .featured-card-image img {
  transform: scale(1.05);
}
.featured-card-content {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.featured-card-title {
  font-family: var(--font-headline);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  color: var(--mocha);
  margin-bottom: 1rem;
  line-height: 1.25;
  font-weight: 700;
}
.featured-card-excerpt {
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}
.featured-card-meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--rose);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Side List Items */
.spotlight-side-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.spotlight-side-item {
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.spotlight-side-item:hover {
  background: #fff;
  border-color: var(--rose-light);
  transform: translateX(6px);
  box-shadow: 0 4px 15px rgba(92, 61, 46, 0.04);
}
.side-item-link {
  display: flex;
  gap: 1.25rem;
  padding: 1rem;
  align-items: center;
}
.side-item-thumb {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--blush);
}
.side-item-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.side-item-content {
  flex: 1;
}
.side-item-title {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  color: var(--mocha);
  margin-bottom: 0.35rem;
  line-height: 1.4;
  font-weight: 700;
}
.side-item-time {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .spotlight-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .side-item-link { gap: 1rem; padding: 0.75rem; }
  .side-item-thumb { width: 60px; height: 60px; }
  .side-item-title { font-size: 0.95rem; }
  .showcase-inner { gap: 3rem; }
}

/* ============================================================
   WISDOM WEAVER & HEADING LINKS
   ============================================================ */
/* Internal links in Headings inherit the heading color + underline (Restricted to single post content) */
.entry-content h1 a, .entry-content h2 a, .entry-content h3 a, 
.entry-content h4 a, .entry-content h5 a, .entry-content h6 a {
  color: inherit !important;
  text-decoration: underline !important;
}

/* Base style for Wisdom Weaver links in body copy */
.wisdom-weaver-link {
  color: var(--rose);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: all 0.3s ease;
}

.wisdom-weaver-link:hover {
  color: var(--mocha);
  text-decoration-style: solid;
}

/* ============================================================
   AMAZON AFFILIATE CARDS & TABLES
   ============================================================ */

/* Base Card */
.amz-product-card {
  display: flex;
  background: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2rem 0;
  gap: 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  align-items: center;
}
.amz-product-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
  border-color: #D4AF37;
}

/* Grid Layout overrides */
.amz-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin: 2rem 0; }
.amz-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin: 2rem 0; }

.amz-product-card.layout-grid {
  flex-direction: column;
  text-align: center;
  margin: 0;
  padding: 1.5rem;
  gap: 1rem;
}
.amz-product-card.layout-grid .amz-image-col {
  width: 100%;
  height: 200px;
}
.amz-product-card.layout-grid .amz-stars { justify-content: center; }
.amz-product-card.layout-grid .amz-btn-container { margin-top: auto; width: 100%; }
.amz-product-card.layout-grid .amz-button { width: 100%; justify-content: center; }

/* Image Column */
.amz-image-col {
  flex-shrink: 0;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAFAFA;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}
.amz-image-col img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.4s ease;
}
.amz-product-card:hover .amz-image-col img { transform: scale(1.05); }

/* Content Column */
.amz-content-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.amz-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1A1A1A;
  line-height: 1.3;
  margin: 0 0 0.25rem 0;
}

/* Stars & Price */
.amz-stars { display: flex; align-items: center; gap: 0.15rem; }
.amz-rating-number { font-family: 'Inter', system-ui, sans-serif; font-size: 0.85rem; color: #555555; margin-left: 0.5rem; font-weight: 600; }
.amz-price { font-family: 'Inter', system-ui, sans-serif; font-size: 1.4rem; font-weight: 800; color: #1A1A1A; margin: 0.5rem 0; }

/* Button */
.amz-btn-container { margin-top: 0.5rem; }
.amz-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #D4AF37;
  color: #FFFFFF !important;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}
.amz-button.amz-btn-small { padding: 0.6rem 1.2rem; font-size: 0.8rem; }
.amz-button:hover { background: #1A1A1A; box-shadow: 0 4px 15px rgba(26,26,26,0.3); transform: translateY(-2px); }
.amz-button svg { transition: transform 0.3s ease; }
.amz-button:hover svg { transform: translateX(4px); }

/* Badge */
.amz-badge {
  position: absolute;
  top: 0; left: 0;
  background: #D4AF37;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-bottom-right-radius: 6px;
}

/* Comparison Table */
.amz-compare-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
  background: #FFFFFF;
  border: 1px solid #EAEAEA;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}
.amz-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* Force horizontal scroll on mobile */
}
.amz-compare-th, .amz-compare-td {
  padding: 1.5rem;
  border-bottom: 1px solid #EAEAEA;
  border-right: 1px solid #EAEAEA;
  text-align: center;
  vertical-align: middle;
}
.amz-compare-th:last-child, .amz-compare-td:last-child { border-right: none; }
.amz-compare-table tbody tr:last-child .amz-compare-td { border-bottom: none; }
.amz-compare-td-feature, .amz-compare-feature {
  text-align: left;
  font-weight: 700;
  font-family: 'Inter', system-ui, sans-serif;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  background: #FAFAFA;
  width: 120px;
}
.amz-compare-img-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.amz-compare-img-wrap img { max-height: 100%; max-width: 100%; mix-blend-mode: multiply; }
.amz-compare-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  margin: 0;
  color: #1A1A1A;
}
.amz-compare-price {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1A1A1A;
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .amz-grid-2, .amz-grid-3 { grid-template-columns: 1fr; }
  .amz-product-card.layout-horizontal {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 1.2rem;
  }
  .amz-product-card.layout-horizontal .amz-image-col { width: 100%; height: 180px; }
  .amz-product-card.layout-horizontal .amz-stars { justify-content: center; }
}

/* ============================================================
   MINIMAL LIGHT REFRESH
   Shared visual system for home, category, article, search, pages.
   ============================================================ */
:root {
  --mocha: #18222c;
  --mocha-dark: #0f1720;
  --mocha-light: #415264;
  --rose: #6b8f71;
  --rose-light: #dbe9de;
  --cream: #f3f6f2;
  --blush: #ffffff;
  --blush-dark: #e3ebe4;
  --text-primary: #13202b;
  --text-body: #465565;
  --text-muted: #708090;
  --border: #d8e2da;
  --shadow-card: 0 18px 48px rgba(15, 23, 32, 0.06);
  --shadow-hover: 0 26px 60px rgba(15, 23, 32, 0.12);
  --radius-md: 18px;
  --radius-lg: 30px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(107, 143, 113, 0.08), transparent 28%),
    linear-gradient(180deg, #f9fbf8 0%, var(--cream) 24%, #eef3ee 100%);
  color: var(--text-body);
}

.site-header {
  background: rgba(249, 251, 248, 0.88);
  border-bottom-color: rgba(19, 32, 43, 0.08);
  box-shadow: 0 12px 30px rgba(15, 23, 32, 0.04);
}

.main-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 999px;
  transition: color var(--transition), background var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--mocha-dark);
  background: rgba(255, 255, 255, 0.75);
}

.main-nav a::after {
  bottom: 0.3rem;
  height: 1px;
  background: currentColor;
}

.header-search-btn,
.mobile-menu-toggle {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(19, 32, 43, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 32, 0.05);
}

.header-search-btn:hover {
  background: var(--mocha-dark);
}

.site-masthead,
.page-masthead,
.archive-hero,
.search-page-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 5.5rem) var(--gap) 2rem;
}

.masthead-eyebrow,
.archive-kicker,
.search-query-label,
.error-topics-label,
.author-kicker {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
}

.masthead-title,
.archive-title,
.search-query-term,
.search-empty-title {
  color: var(--mocha-dark);
  letter-spacing: -0.04em;
}

.masthead-intro,
.archive-description,
.search-results-count,
.search-empty-copy,
.error-copy {
  max-width: 62ch;
  color: var(--text-body);
}

.masthead-divider,
.page-masthead-divider {
  margin-bottom: 0;
  opacity: 1 !important;
}

.section-header {
  align-items: end;
  gap: 1rem;
}

.view-all,
.card-action-link,
.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mocha-dark);
  transition: gap var(--transition), color var(--transition), transform var(--transition);
}

.view-all-soft {
  color: var(--rose);
}

.view-all:hover,
.card-action-link:hover,
.btn-read:hover {
  color: var(--rose);
  gap: 0.7rem;
}

.btn-read-reverse svg {
  transform: rotate(180deg);
}

.hero-slider-container,
.sticky-card,
.article-card,
.spotlight-featured-card,
.spotlight-side-item,
.wisdom-card,
.page-content-card,
.single-post-hero,
.post-content-main,
.mama-share,
.toc-widget,
.author-bio,
.site-footer,
.search-empty-state,
.search-form,
.page-featured-img img {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(19, 32, 43, 0.08);
  box-shadow: var(--shadow-card);
}

.hero-slider-container,
.article-card,
.spotlight-featured-card,
.spotlight-side-item,
.page-content-card,
.post-content-main,
.mama-share,
.toc-widget,
.author-bio,
.search-empty-state {
  border-radius: var(--radius-lg);
}

.sticky-card,
.wisdom-card,
.search-form {
  border-radius: var(--radius-md);
}

.sticky-card:hover,
.article-card:hover,
.spotlight-featured-card:hover,
.spotlight-side-item:hover,
.wisdom-card:hover,
.page-content-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(107, 143, 113, 0.3);
}

.hero-slider-container,
.single-post-hero,
.page-content-card,
.post-content-main,
.search-empty-state {
  overflow: hidden;
}

.slide-content,
.card-body,
.featured-card-content,
.page-content-card,
.search-empty-state,
.author-bio,
.mama-share {
  padding: clamp(1.35rem, 3vw, 2.2rem);
}

.card-body {
  gap: 0.85rem;
}

.card-title a,
.featured-card-title,
.side-item-title,
.sticky-card-title,
.post-title,
.toc-title,
.footer-col-title,
.author-name {
  color: var(--mocha-dark);
}

.card-category,
.post-category-tag {
  background: var(--rose-light);
  color: var(--rose);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
}

.card-action-link {
  margin-top: auto;
  padding-top: 0.5rem;
}

.archive-description,
.archive-empty-copy,
.pagination-shell,
.search-empty-state,
.page-content-wrapper,
.search-results-grid {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

.pagination-shell {
  text-align: center;
  padding: 0 var(--gap) 4rem;
}

.archive-empty-copy {
  text-align: center;
  padding: 4rem var(--gap);
}

.page-shell,
.page-content-wrapper-center {
  padding-bottom: 4rem;
}

.page-content-wrapper {
  padding: 0 var(--gap);
}

.page-content-card {
  max-width: min(920px, calc(100% - 2rem));
  margin: -4rem auto 0;
}

.page-content-wrapper-center {
  text-align: center;
}

.error-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 6vw, 5rem);
}

.error-code {
  font-family: var(--font-expression);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--blush-dark);
  line-height: 1;
  margin-bottom: 2rem;
}

.error-copy,
.error-search,
.error-topics {
  margin-bottom: 2.5rem;
}

.error-search {
  width: 100%;
  max-width: 420px;
}

.error-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  max-width: 720px;
}

.topic-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(19, 32, 43, 0.08);
  color: var(--mocha-dark);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.topic-pill:hover {
  color: var(--rose);
  border-color: rgba(107, 143, 113, 0.35);
  transform: translateY(-2px);
}

.topic-pill-icon {
  color: var(--rose);
  display: inline-flex;
  align-items: center;
}

.search-empty-state {
  max-width: 560px;
  margin: 4rem auto;
  text-align: center;
}

.search-empty-state > p:first-child {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.search-empty-title {
  margin-bottom: 1rem;
}

.search-empty-copy {
  margin: 0 auto 2rem;
}

.search-form {
  padding: 0.35rem;
}

.search-form,
.search-overlay .search-form {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
}

.post-content-wrap {
  max-width: var(--max-w);
  gap: 2rem;
  padding: 0 var(--gap) 4rem;
}

.post-content-main {
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.post-tags {
  margin: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.post-tag-pill {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.42rem 0.9rem;
  border: 1px solid rgba(19, 32, 43, 0.12);
  border-radius: 999px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.85);
  transition: all var(--transition);
}

.post-tag-pill:hover {
  color: var(--rose);
  border-color: rgba(107, 143, 113, 0.35);
}

.share-btn,
.popup-form button,
.nb-form button,
.ccb-form-submit,
.privacy-close-btn {
  border-radius: 999px;
  transition: transform var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.share-btn:hover,
.popup-form button:hover,
.nb-form button:hover,
.ccb-form-submit:hover,
.privacy-close-btn:hover {
  transform: translateY(-2px);
}

.author-bio {
  margin: 3rem 0;
  gap: 1.25rem;
  align-items: flex-start;
}

.author-avatar {
  flex-shrink: 0;
}

.author-name {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.author-description {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.toc-widget {
  padding: 1.4rem;
}

.site-footer {
  margin: 4rem var(--gap) 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-color: rgba(19, 32, 43, 0.08);
}

.footer-bottom-link {
  color: var(--rose);
}

.footer-bottom-note {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.7rem;
}

.link-preview-card {
  border: 1px solid rgba(19, 32, 43, 0.08);
  box-shadow: 0 18px 48px rgba(15, 23, 32, 0.12);
}

@media (max-width: 900px) {
  .site-footer {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .page-content-card {
    margin-top: -2rem;
  }

  .section-header {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .header-logo,
  .custom-logo-link img,
  .site-logo img {
    height: clamp(22px, calc(var(--header-logo-size, 34px) * 0.72), calc(var(--header-logo-size, 34px) - 6px)) !important;
  }
}

/* ============================================================
   CONTRAST + HOMEPAGE SECOND PASS
   ============================================================ */
.site-footer {
  background: var(--mocha-dark);
  color: rgba(243, 246, 242, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(15, 23, 32, 0.24);
}

.site-footer .footer-brand-tagline,
.site-footer .footer-bottom-link {
  color: var(--rose-light);
}

.site-footer .footer-col-title {
  color: #ffffff;
}

.site-footer .footer-brand-desc,
.site-footer .footer-links a,
.site-footer .footer-bottom,
.site-footer .footer-bottom-note {
  color: rgba(243, 246, 242, 0.74);
}

.site-footer .footer-links a:hover {
  color: #ffffff;
}

.home .site-masthead {
  position: relative;
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gap) 0;
  text-align: left;
}

.home .site-masthead::before {
  content: '';
  position: absolute;
  inset: 1rem var(--gap) auto;
  height: clamp(280px, 42vw, 420px);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(230, 239, 231, 0.96)),
    radial-gradient(circle at top right, rgba(107, 143, 113, 0.2), transparent 36%);
  border: 1px solid rgba(19, 32, 43, 0.08);
  box-shadow: 0 28px 80px rgba(15, 23, 32, 0.08);
  z-index: -1;
}

.home .masthead-eyebrow {
  margin-bottom: 1.25rem;
}

.home .masthead-title {
  max-width: 11ch;
  font-size: clamp(3.2rem, 7vw, 6.2rem);
  margin-bottom: 1rem;
}

.home .masthead-intro {
  max-width: 52ch;
  margin: 0 0 1.5rem;
  font-size: 1.02rem;
}

.home .masthead-divider {
  justify-content: flex-start;
  margin-bottom: 0;
}

.home .masthead-divider::before,
.home .masthead-divider::after {
  max-width: 56px;
}

.home .hero-feature-grid {
  margin-top: -2.5rem;
}

.home .hero-grid-inner {
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 1.25rem;
  align-items: stretch;
}

.home .hero-slider-container {
  min-height: 620px;
  border-radius: 34px;
  border: 1px solid rgba(19, 32, 43, 0.08);
  background: #0f1720;
  box-shadow: 0 30px 80px rgba(15, 23, 32, 0.16);
}

.home .slide-link::after {
  background: linear-gradient(to top, rgba(9, 14, 20, 0.84) 0%, rgba(9, 14, 20, 0.26) 45%, rgba(9, 14, 20, 0.06) 100%);
}

.home .slide-content {
  padding: clamp(2rem, 4vw, 3rem);
}

.home .slide-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.home .slide-title {
  max-width: 12ch;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.home .hero-sticky-column {
  gap: 1rem;
}

.home .sticky-card {
  padding: 1.8rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
}

.home .sticky-card:hover {
  transform: translateY(-4px);
}

.home .sticky-card-cat {
  color: var(--rose);
}

.home .sticky-card-title,
.home .sticky-card-action {
  color: var(--mocha-dark);
}

.home .post-strip-section,
.home .category-browser,
.home .category-showcase,
.home .tailored-wisdom {
  background: transparent;
}

.home .post-strip-inner,
.home .tailored-wisdom-inner,
.home .showcase-inner {
  position: relative;
}

.home .section-header {
  margin-bottom: 1.6rem;
}

.home .section-title,
.home .section-title em,
.home .wisdom-subtitle,
.home .tailored-wisdom .section-title,
.home .tailored-wisdom .section-title em,
.home .tailored-wisdom .view-all {
  color: var(--mocha-dark);
}

.home .post-strip-grid,
.home .tag-cloud,
.home .spotlight-grid,
.home .wisdom-grid {
  gap: 1.25rem;
}

.home .article-card,
.home .spotlight-featured-card,
.home .spotlight-side-item,
.home .wisdom-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(19, 32, 43, 0.08);
}

.home .article-card,
.home .spotlight-featured-card {
  border-radius: 28px;
}

.home .article-card .card-title a,
.home .featured-card-title,
.home .side-item-title,
.home .wisdom-card-title {
  color: var(--mocha-dark);
}

.home .card-reading-time,
.home .featured-card-excerpt,
.home .side-item-time,
.home .wisdom-card-time {
  color: var(--text-body);
}

.home .tag-cloud-item {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 999px;
}

.home .tailored-wisdom {
  padding-top: 1rem;
}

.home .wisdom-grid {
  margin-top: 0;
}

.home .wisdom-card {
  align-items: center;
  padding: 1.25rem;
}

.home .wisdom-card-thumb {
  background: #edf3ed;
}

.home .wisdom-card-cat {
  color: var(--rose);
}

.home .wisdom-card-title {
  font-size: 1rem;
  line-height: 1.35;
}

.home .wisdom-card-time {
  color: var(--text-muted);
}

.home .view-all,
.home .card-action-link,
.home .btn-read {
  color: var(--mocha-dark);
}

.home .view-all:hover,
.home .card-action-link:hover,
.home .btn-read:hover {
  color: var(--rose);
}

@media (max-width: 1024px) {
  .home .site-masthead::before {
    inset: 1rem 1rem auto;
    height: 360px;
  }

  .home .hero-feature-grid {
    margin-top: 0;
  }

  .home .hero-grid-inner {
    grid-template-columns: 1fr;
  }

  .home .hero-slider-container {
    min-height: 460px;
  }
}

@media (max-width: 768px) {
  .home .site-masthead {
    padding-top: 2rem;
  }

  .home .site-masthead::before {
    height: 320px;
  }

  .home .masthead-title {
    max-width: none;
    font-size: clamp(2.6rem, 12vw, 4.4rem);
  }

  .home .sticky-card,
  .home .wisdom-card {
    padding: 1.1rem;
  }
}

/* ============================================================
   HOMEPAGE OVERHAUL
   ============================================================ */
.home-intro {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) var(--gap) 1.5rem;
}

.home-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 1.5rem;
  align-items: stretch;
}

.home-intro-copy,
.home-intro-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(19, 32, 43, 0.08);
  box-shadow: var(--shadow-card);
}

.home-intro-copy,
.home-intro-panel {
  border-radius: 34px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.home-intro-copy {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at top right, rgba(107, 143, 113, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 246, 242, 0.96));
}

.home-intro-copy .masthead-title {
  max-width: 11ch;
  margin-bottom: 1rem;
}

.home-intro-copy .masthead-intro {
  max-width: 54ch;
  margin: 0 0 1.5rem;
}

.home-intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.home-intro-link {
  color: var(--mocha-dark);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(107, 143, 113, 0.35);
  text-underline-offset: 5px;
}

.home-intro-link:hover {
  color: var(--rose);
}

.home-intro-panel {
  display: grid;
  gap: 1.25rem;
}

.home-intro-stat {
  display: grid;
  gap: 0.45rem;
}

.home-intro-stat-value {
  font-family: var(--font-headline);
  font-size: clamp(2.4rem, 4vw, 4rem);
  color: var(--mocha-dark);
  line-height: 1;
}

.home-intro-stat-label,
.home-intro-note p {
  color: var(--text-body);
  line-height: 1.6;
}

.home-intro-panel-label,
.section-kicker,
.home-proof-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
}

.home-intro-divider {
  height: 1px;
  background: rgba(19, 32, 43, 0.08);
}

.home-intro-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.home-intro-topic-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: #edf3ed;
  color: var(--mocha-dark);
  font-size: 0.82rem;
  font-weight: 600;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.home-intro-topic-pill:hover {
  transform: translateY(-2px);
  background: var(--rose-light);
  color: var(--rose);
}

.hero-feature-grid {
  margin-top: 1rem;
}

.hero-slider-container {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 0;
}

.placeholder-img {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-header-centered {
  justify-content: center;
  text-align: center;
}

.section-kicker {
  margin-bottom: 0.45rem;
}

.tailored-wisdom .section-header .view-all {
  color: var(--mocha-dark);
}

.wisdom-card-copy {
  flex: 1;
}

.footer-bottom-link {
  font-weight: 700;
}

.site-header {
  top: 14px;
  max-width: calc(var(--max-w) + (var(--gap) * 2));
  margin: 0 auto;
  padding: 0 var(--gap);
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
}

.header-inner {
  background: var(--mocha-dark);
  color: rgba(243, 246, 242, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(15, 23, 32, 0.24);
  padding: 0 clamp(1rem, 2vw, 1.5rem);
}

.site-header .site-branding,
.site-header .header-actions,
.site-header .mobile-menu-toggle,
.site-header .header-search-btn {
  color: rgba(243, 246, 242, 0.82);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
}

.site-branding {
  justify-self: start;
}

.main-nav {
  justify-self: center;
  margin-left: 0;
}

.main-menu {
  justify-content: center;
}

.site-header .main-nav a {
  color: rgba(243, 246, 242, 0.82);
}

.header-actions {
  justify-self: end;
}

.site-header .main-nav a:hover,
.site-header .main-nav a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.site-header .main-nav a::after {
  background: rgba(243, 246, 242, 0.85);
}

.site-header .header-search-btn,
.site-header .mobile-menu-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.site-header .header-search-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.site-header .mobile-menu-toggle span {
  background: currentColor;
}

.footer-bottom-copy {
  color: rgba(243, 246, 242, 0.82);
}

.footer-bottom-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.footer-powered-by {
  color: rgba(243, 246, 242, 0.68);
  font-size: 0.75rem;
}

.footer-powered-by-link {
  color: var(--rose-light);
  font-weight: 700;
}

.footer-powered-by-link:hover {
  color: #ffffff;
}

@media (max-width: 1024px) {
  .home-intro-grid {
    grid-template-columns: 1fr;
  }

  .page-story-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    top: 10px;
    padding: 0 1rem;
  }

  .header-inner {
    border-radius: 22px;
  }

  .footer-bottom-meta {
    align-items: flex-start;
  }

  .header-inner {
    grid-template-columns: auto auto;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .home-intro-copy .masthead-title {
    max-width: none;
  }

  .home-intro-copy,
  .home-intro-panel {
    border-radius: 26px;
  }

  .hero-slider-container {
    aspect-ratio: auto;
    min-height: 420px;
  }
}

/* Final layout overrides */
.page-content-wrapper {
  margin: 2rem auto 4rem;
}

.page-content-card {
  margin: 0 auto;
}

.page-featured-img {
  margin: 2rem auto 0;
}

.page-shell-about-us .page-content-card,
.page-shell-write-for-us .page-content-card,
.page-shell-advertise .page-content-card,
.page-shell-contact .page-content-card {
  max-width: 1080px;
}

.home .hero-feature-grid {
  margin-top: 0;
  margin-bottom: 3rem;
}

.hero-feature-grid {
  overflow: hidden;
}

.home .hero-grid-inner {
  display: grid;
  grid-template-columns: minmax(0, calc(100% - 360px)) 340px;
  gap: 1.25rem;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}

.home .hero-grid-inner > * {
  min-width: 0;
}

.home .hero-slider-container {
  display: block;
  position: relative;
  min-height: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  width: 100%;
  max-width: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #e8ece5;
  border: 1px solid rgba(19, 32, 43, 0.08);
  box-shadow: 0 20px 60px rgba(15, 23, 32, 0.08);
}

.home .hero-slider {
  display: grid;
  grid-template-areas: "hero";
  height: 100%;
}

.home .hero-slide {
  grid-area: hero;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  height: 100%;
}

.home .hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-feature-link {
  display: block;
  position: relative;
  height: 100%;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: none;
}

.hero-feature-media {
  height: 100%;
  overflow: hidden;
  background: #e8ece5;
}

.hero-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-feature-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1.35rem 1.35rem 1.4rem;
  display: grid;
  gap: 0.65rem;
  background: linear-gradient(to top, rgba(15, 23, 32, 0.86) 0%, rgba(15, 23, 32, 0.38) 62%, rgba(15, 23, 32, 0) 100%);
}

.hero-feature-title {
  font-family: var(--font-headline);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.hero-feature-badge,
.hero-support-cat {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #edf3ed;
  color: #6b8f71;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-feature-meta {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-support-grid {
  display: contents;
}

.hero-support-column {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  min-height: 0;
  height: 100%;
  width: 340px;
  max-width: 340px;
  justify-self: end;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero-support-card {
  display: block;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(19, 32, 43, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.hero-support-card:hover {
  transform: translateY(-2px);
  border-color: rgba(107, 143, 113, 0.28);
  box-shadow: 0 18px 36px rgba(15, 23, 32, 0.08);
}

.hero-support-content {
  height: 100%;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.55rem;
  align-content: start;
  overflow: hidden;
}

.hero-support-title {
  font-family: var(--font-headline);
  font-size: clamp(0.92rem, 1.05vw, 1.08rem);
  line-height: 1.18;
  color: var(--mocha-dark);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: calc(1.18em * 2);
}

.home-intro-panel {
  gap: 1rem;
  align-content: space-between;
}

.home-intro-curated {
  display: grid;
  gap: 0.85rem;
}

.home .masthead-title .masthead-line {
  display: block;
  white-space: nowrap;
}

.home-intro-topic-list {
  gap: 0.75rem;
  align-items: flex-start;
}

.home .slider-dots {
  display: none !important;
}

@media (max-width: 1024px) {
  .home .hero-grid-inner {
    grid-template-columns: 1fr;
  }

  .home .hero-slider-container,
  .hero-support-column {
    min-height: auto;
    height: auto;
    grid-template-rows: none;
  }

  .hero-support-card {
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-story-grid {
    grid-template-columns: 1fr;
  }
}
