/* ═══════════════════════════════════════════════════════════════════
   IQ HEALTHSPAN — SHARED STYLES
   Extracted from redesigned homepage (Phase 1)
   Include on EVERY page: <link rel="stylesheet" href="/css/shared-styles.css">
   ═══════════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ── */
:root {
  --ink: #1a1a18;
  --warm-dark: #2c2820;
  --earth: #5c4a32;
  --terracotta: #c4673a;
  --terracotta-hover: #b35a30;
  --amber: #d4a043;
  --sage: #6b8c6e;
  --sage-light: #a8c4a2;
  --cream: #f5f0e8;
  --cream-light: #faf7f2;
  --warm-white: #fdfcfa;
  --muted: #8a8278;
  --border: #e2dbd0;
  --border-dark: #c8bfb0;

  /* Functional colors */
  --optimal: #2d6a4f;
  --optimal-bg: #edf7f0;
  --warning: #8a5f00;
  --warning-bg: #fef8e7;
  --alert: #9b2226;
  --alert-bg: #fdf0f0;

  /* Layout */
  --nav-height: 64px;
  --max-width: 1200px;
  --max-width-wide: 1400px;
  --page-pad: clamp(1.25rem, 4vw, 4rem);

  /* Typography scale */
  --text-xs: 0.7rem;
  --text-sm: 0.8rem;
  --text-base: 0.9rem;
  --text-md: 1rem;
  --text-lg: 1.15rem;
  --text-xl: clamp(1.5rem, 3vw, 2rem);
  --text-2xl: clamp(1.8rem, 3.5vw, 2.8rem);
  --text-hero: clamp(2.2rem, 5vw, 4.2rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --section-pad: clamp(3rem, 7vw, 6rem);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: var(--warm-white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

/* ── UTILITY ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--page-pad); }
.container-wide { max-width: var(--max-width-wide); margin: 0 auto; padding: 0 var(--page-pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ═══════════════════════════════════════════════════════════════════
   UNIFIED NAVIGATION — Used on EVERY page
   ═══════════════════════════════════════════════════════════════════ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(253,252,250,0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: 0 2px 20px rgba(26,26,24,0.08); }

.nav-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 var(--page-pad);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-mark { width: 30px; height: 30px; }
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 600;
  color: var(--ink); letter-spacing: -0.01em;
}
.nav-logo-text span { color: var(--terracotta); }

/* Search */
.nav-search {
  position: relative;
  flex: 0 1 280px;
  min-width: 0;
}
.nav-search-input {
  width: 100%;
  background: var(--cream-light);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1rem 0.5rem 2.4rem;
  font-family: 'DM Sans', sans-serif;
  font-size: var(--text-sm);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.nav-search-input::placeholder { color: var(--muted); }
.nav-search-input:focus {
  border-color: var(--terracotta);
  background: white;
  box-shadow: 0 0 0 3px rgba(196,103,58,0.1);
}
.nav-search-icon {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); pointer-events: none;
}
.search-results {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(26,26,24,0.14);
  max-height: 400px; overflow-y: auto;
  z-index: 200;
  animation: dropIn 0.15s ease;
}
.search-results.active { display: block; }
.search-result-item {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--cream-light); }
.search-result-type {
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 2px;
}
.search-result-title {
  font-size: var(--text-sm); font-weight: 600; color: var(--ink);
  line-height: 1.3;
}
.search-result-title mark {
  background: rgba(212,160,67,0.25);
  color: inherit; border-radius: 2px; padding: 0 2px;
}
.search-no-results {
  padding: 1.5rem 1rem; text-align: center;
  font-size: var(--text-sm); color: var(--muted);
}

/* Desktop nav links */
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-links > li > a, .nav-links > li > button {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--text-sm); font-weight: 500;
  color: var(--warm-dark); text-decoration: none;
  padding: 0.5rem 0.7rem; border-radius: 8px;
  background: none; border: none;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-links > li > a:hover, .nav-links > li > button:hover,
.nav-links > li > a.active, .nav-links > li > button.active {
  color: var(--terracotta); background: rgba(196,103,58,0.06);
}

/* Tools mega-dropdown — click-based, not hover */
.nav-dropdown-wrap { position: relative; }
.tools-dropdown {
  display: none;
  position: absolute; top: calc(100% + 10px); right: -60px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.5rem;
  width: 380px;
  box-shadow: 0 20px 60px rgba(26,26,24,0.16);
  z-index: 200;
  animation: dropIn 0.18s ease;
}
.tools-dropdown.active { display: block; }
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tool groups */
.tool-group-label {
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 0.6rem 0.85rem 0.3rem;
}
.td-item {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.12s;
}
.td-item:hover { background: var(--cream-light); }
.td-icon {
  width: 32px; height: 32px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.85rem;
}
.td-info { flex: 1; min-width: 0; }
.td-name { font-size: 0.78rem; font-weight: 600; color: var(--ink); }
.td-desc { font-size: 0.65rem; color: var(--muted); line-height: 1.3; }
.td-badge {
  font-size: 0.52rem; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; background: var(--terracotta); color: white;
  padding: 0.1rem 0.35rem; border-radius: 100px; flex-shrink: 0;
}
.tool-group-divider {
  height: 1px; background: var(--border); margin: 0.3rem 0.85rem;
}

/* Nav CTA */
.nav-cta-btn {
  background: var(--ink); color: var(--cream) !important;
  padding: 0.45rem 1.1rem !important;
  border-radius: 100px !important;
  font-size: 0.75rem !important; font-weight: 600 !important;
  transition: background 0.2s !important;
  text-decoration: none;
}
.nav-cta-btn:hover {
  background: var(--terracotta) !important;
  color: white !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none; border: none; padding: 8px;
  flex-direction: column; gap: 5px; z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: all 0.25s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile search toggle */
.nav-search-toggle {
  display: none;
  background: none; border: none; padding: 8px;
  color: var(--muted);
  -webkit-tap-highlight-color: transparent;
}

/* ── MOBILE NAV ── */
@media (max-width: 900px) {
  .nav-search { display: none; }
  .nav-search-toggle { display: flex; }
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none; position: fixed;
    top: var(--nav-height); left: 0; right: 0; bottom: 0;
    background: var(--warm-white);
    flex-direction: column;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
  }
  .nav-links.open { display: flex; }

  /* Mobile search bar at top of mobile menu */
  .mobile-search-row {
    padding: 1rem var(--page-pad);
    border-bottom: 1px solid var(--border);
    background: var(--cream-light);
  }
  .mobile-search-row .nav-search {
    display: block; flex: none; width: 100%;
  }

  .nav-links > li {
    border-bottom: 1px solid var(--border);
  }
  .nav-links > li > a, .nav-links > li > button {
    width: 100%;
    padding: 0.9rem var(--page-pad);
    font-size: var(--text-md);
    border-radius: 0;
    justify-content: space-between;
  }

  /* Mobile tools accordion */
  .tools-dropdown {
    position: static;
    width: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0.5rem;
    background: var(--cream-light);
    animation: none;
  }
  .td-item {
    padding: 0.6rem var(--page-pad) 0.6rem calc(var(--page-pad) + 0.5rem);
  }
  .tool-group-label {
    padding-left: var(--page-pad);
    padding-right: var(--page-pad);
  }
  .tool-group-divider {
    margin-left: var(--page-pad);
    margin-right: var(--page-pad);
  }

  /* Mobile CTA */
  .nav-cta-li {
    padding: 1rem var(--page-pad) 1.5rem;
    border-bottom: none !important;
  }
  .nav-cta-btn {
    display: block !important; text-align: center;
    padding: 0.75rem 1.5rem !important;
    font-size: var(--text-base) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   SHARED BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--terracotta); color: white;
  padding: 0.8rem 1.75rem; border-radius: 100px;
  text-decoration: none; font-weight: 600;
  font-size: var(--text-base);
  border: none; transition: all 0.2s;
  box-shadow: 0 4px 16px rgba(196,103,58,0.25);
  min-height: 48px;
}
.btn-primary:hover {
  background: var(--terracotta-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(196,103,58,0.35);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: var(--text-base);
  padding: 0.8rem 0.5rem;
  border-bottom: 1.5px solid var(--border-dark);
  transition: color 0.2s, border-color 0.2s;
  min-height: 48px;
}
.btn-ghost:hover { color: var(--terracotta); border-color: var(--terracotta); }
.btn-ghost svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════════════════════════════════ */
.section-pad { padding: var(--section-pad) 0; }
.section-label {
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: var(--space-md);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-2xl); font-weight: 700;
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--ink);
}
.section-sub {
  font-size: var(--text-base); color: var(--muted);
  line-height: 1.7; max-width: 560px;
  margin-top: 0.5rem; font-weight: 300;
}
.section-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; flex-wrap: wrap;
  gap: 1rem; margin-bottom: var(--space-xl);
}

/* View all link */
.view-all {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--text-sm); font-weight: 600;
  color: var(--terracotta); text-decoration: none;
  white-space: nowrap; min-height: 44px;
  padding: 0.5rem 0;
}
.view-all:hover { text-decoration: underline; }
.view-all svg { width: 14px; height: 14px; }

/* ═══════════════════════════════════════════════════════════════════
   SHARED CARD STYLES — Article cards, tool cards, category cards
   ═══════════════════════════════════════════════════════════════════ */

/* Article card — large */
.article-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none; color: var(--ink);
  transition: all 0.2s;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.07);
}
.article-img {
  width: 100%; aspect-ratio: 16/9;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.article-body { padding: 1.5rem; }
.article-tag {
  display: inline-block; background: var(--cream);
  color: var(--earth); font-size: 0.65rem;
  font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 100px;
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
}
.article-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  line-height: 1.25; margin-bottom: 0.6rem;
}
.article-excerpt {
  font-size: 0.82rem; color: var(--muted);
  line-height: 1.6; font-weight: 300;
}
.article-meta {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1rem; font-size: 0.72rem; color: var(--muted);
}
.article-meta-dot {
  width: 3px; height: 3px;
  background: var(--border-dark); border-radius: 50%;
}

/* Article card — small (sidebar) */
.article-card-sm {
  background: white; border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  text-decoration: none; color: var(--ink);
  display: flex; transition: all 0.2s;
  min-height: 0;
}
.article-card-sm:hover {
  transform: translateX(2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.article-card-sm-img {
  width: 80px; flex-shrink: 0;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
}
.article-card-sm-body { padding: 0.85rem 1rem; flex: 1; }
.article-title-sm {
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem; font-weight: 600;
  line-height: 1.3; margin-bottom: 0.35rem;
}

/* Tool card */
.tool-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem 1.25rem;
  text-decoration: none;
  transition: all 0.2s;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.tool-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
}
.tool-card.tc-orange::before { background: linear-gradient(90deg, #c4673a, #d4a043); }
.tool-card.tc-green::before { background: linear-gradient(90deg, #2d6a4f, #6b8c6e); }
.tool-card.tc-blue::before { background: linear-gradient(90deg, #2d5a8e, #6b8c9e); }
.tool-card.tc-amber::before { background: linear-gradient(90deg, #d4a043, #e8c060); }
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  border-color: var(--border-dark);
}
.tool-card-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem; font-size: 1rem;
}
.tool-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 700;
  color: var(--ink); margin-bottom: 0.3rem; line-height: 1.25;
}
.tool-card-desc {
  font-size: 0.75rem; color: var(--muted);
  line-height: 1.55; flex: 1; margin-bottom: 0.75rem;
}
.tool-card-cta {
  font-size: 0.72rem; font-weight: 700;
  color: var(--terracotta);
  display: flex; align-items: center; gap: 4px;
}
.tool-new-badge {
  position: absolute; top: 0.8rem; right: 0.8rem;
  font-size: 0.52rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--terracotta); color: white;
  padding: 0.12rem 0.4rem; border-radius: 100px;
}

/* Category card */
.category-card {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
  text-decoration: none; color: var(--ink);
  transition: all 0.2s;
}
.category-card:hover {
  background: white;
  border-color: var(--terracotta);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.cat-icon-wrap {
  width: 44px; height: 44px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; transition: transform 0.2s;
}
.category-card:hover .cat-icon-wrap { transform: scale(1.06); }
.cat-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-weight: 600;
  margin-bottom: 0.3rem; line-height: 1.25;
}
.cat-desc {
  font-size: 0.78rem; color: var(--muted);
  line-height: 1.5; font-weight: 400;
}
.cat-count {
  font-size: var(--text-xs); color: var(--terracotta);
  font-weight: 600; margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .categories-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .category-card { padding: 1.1rem 1rem; }
  .cat-desc { display: none; }
  .cat-icon-wrap { width: 36px; height: 36px; margin-bottom: 0.6rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   SHARED GRIDS
   ═══════════════════════════════════════════════════════════════════ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: var(--space-xl);
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.featured-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.5rem;
  margin-top: var(--space-xl);
}
.featured-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.essential-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.65rem;
  margin-top: var(--space-lg);
}
.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: var(--space-xl);
}

@media (max-width: 768px) {
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .featured-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .article-card-sm-img { display: none; }
}
@media (max-width: 480px) {
  .featured-sidebar { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════════
   ESSENTIAL READING ITEMS
   ═══════════════════════════════════════════════════════════════════ */
.essential-item {
  display: block; padding: 0.9rem 1.1rem;
  background: white; border: 1px solid var(--border);
  border-radius: 10px; text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 44px;
}
.essential-item:hover {
  border-color: var(--terracotta);
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.essential-cat {
  font-size: 0.58rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 0.25rem;
}
.essential-title {
  font-size: 0.85rem; font-weight: 600;
  color: var(--ink); line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════════════
   EDITORIAL STANDARDS CARDS
   ═══════════════════════════════════════════════════════════════════ */
.standard-card {
  background: var(--cream-light);
  border: 1px solid var(--border);
  border-radius: 14px; padding: 1.35rem;
}
.standard-icon { font-size: 1.2rem; margin-bottom: 0.5rem; }
.standard-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--ink); margin-bottom: 0.35rem;
}
.standard-card p {
  font-size: 0.75rem; color: var(--muted);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════════
   NEWSLETTER SECTION
   ═══════════════════════════════════════════════════════════════════ */
.newsletter-section {
  background: linear-gradient(135deg, var(--warm-dark) 0%, var(--earth) 100%);
  color: white;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
}
.newsletter-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: var(--text-xl); font-weight: 700;
  line-height: 1.15; color: white;
}
.newsletter-section .nl-desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.6);
  margin-top: 0.6rem; line-height: 1.7; font-weight: 300;
}
.newsletter-form {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.newsletter-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: white; padding: 0.8rem 1.1rem;
  border-radius: 10px; font-size: var(--text-base);
  font-family: 'DM Sans', sans-serif; outline: none;
  transition: border-color 0.2s, background 0.2s;
  min-height: 48px;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-input:focus {
  border-color: var(--amber);
  background: rgba(255,255,255,0.15);
}
.newsletter-btn {
  background: var(--amber); color: var(--ink);
  border: none; padding: 0.8rem 1.5rem;
  border-radius: 10px; font-size: var(--text-base);
  font-weight: 700; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s; min-height: 48px;
}
.newsletter-btn:hover { background: #c4902a; transform: translateY(-1px); }
.newsletter-btn:disabled {
  opacity: 0.6; cursor: not-allowed; transform: none;
}
.newsletter-success {
  display: none; padding: 1rem;
  background: rgba(107,140,110,0.2);
  border: 1px solid rgba(107,140,110,0.3);
  border-radius: 10px; text-align: center;
  font-size: var(--text-sm); color: var(--sage-light);
}
.newsletter-success.active { display: block; }
.newsletter-error {
  display: none; padding: 0.6rem 1rem;
  background: rgba(155,34,38,0.2);
  border-radius: 8px; font-size: var(--text-xs);
  color: #fca5a5;
}
.newsletter-error.active { display: block; }
.nl-trust {
  display: flex; gap: 1.25rem; margin-top: 0.75rem; flex-wrap: wrap;
}
.nl-trust-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.72rem; color: rgba(255,255,255,0.45);
}
.nl-trust-item svg { width: 12px; height: 12px; opacity: 0.5; }

@media (max-width: 768px) {
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER — Responsive
   ═══════════════════════════════════════════════════════════════════ */
footer {
  background: var(--ink);
  color: rgba(245,240,232,0.55);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--cream); margin-bottom: 0.75rem;
}
.footer-brand span { color: var(--amber); }
.footer-desc {
  font-size: 0.8rem; line-height: 1.65;
  color: rgba(245,240,232,0.4); max-width: 280px;
}
.footer-col h4 {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(245,240,232,0.35); margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-col a {
  font-size: 0.8rem; color: rgba(245,240,232,0.5);
  text-decoration: none; transition: color 0.15s;
  padding: 0.15rem 0;
}
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.7rem; color: rgba(245,240,232,0.25);
}
.footer-legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-legal a {
  color: rgba(245,240,232,0.25); text-decoration: none;
  padding: 0.2rem 0;
}
.footer-legal a:hover { color: rgba(245,240,232,0.5); }
.footer-disclaimer {
  font-size: 0.65rem; color: var(--muted); margin-bottom: 0.4rem;
}
.footer-disclaimer a { color: var(--terracotta); text-decoration: none; }

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   SHARED ANIMATIONS
   ═══════════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════════════════
   READING PROGRESS BAR (articles only — but included in shared for convenience)
   ═══════════════════════════════════════════════════════════════════ */
.reading-progress {
  position: fixed; top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--amber));
  z-index: 1100;
  transition: width 0.1s linear;
  width: 0%;
}
