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

:root {
  /* Warm, earthy theme for rebuilding trust */
  --bg-warm: #fff9f2;
  --bg-cream: #fef7ed;
  --bg-soft: #faf1e7;
  --text-rich: #4a3b2f;
  --text-soft: #6b5c4f;
  --primary-terra: #c17b5e; /* Terra cotta - warm, grounding */
  --primary-gold: #e8b48a; /* Soft gold - hope */
  --accent-clay: #b68b7a; /* Muted clay - stability */
  --accent-moss: #9a8c6f; /* Warm moss - growth */
  --border-warm: #e8d9cc;
  --card-bg: #ffffffed;
  --quote-bg: #fcf3ea;
  --shadow-warm: 0 20px 40px -10px rgba(106, 78, 55, 0.1);

  /* Typography */
  --font-sans: "Quicksand", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;

  /* Spacing */
  --container-width: 1200px;
  --content-width: 760px;
  --sidebar-width: 280px;
  --radius-lg: 36px;
  --radius-md: 24px;
  --radius-sm: 16px;
}

/* ===== BASE STYLES ===== */
body {
  background-color: var(--bg-warm);
  font-family: var(--font-sans);
  color: var(--text-rich);
  line-height: 1.7;
  font-size: 18px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* Accessibility focus states */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary-terra);
  outline-offset: 4px;
  border-radius: 4px;
}

/* Smooth transitions */
a,
button,
.card,
.step-card,
.audio-btn,
.nav-link {
  transition: all 0.25s ease;
}

/* Typography */
h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
  color: #3e2e23;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 52px;
  margin-bottom: 0.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, #4a3b2f 0%, #7b5f4b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 36px;
  margin: 3.5rem 0 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 3px;
  background: var(--primary-terra);
  border-radius: 3px;
}

h3 {
  font-size: 26px;
  margin: 2.2rem 0 1rem;
  color: #5d4a3b;
}

p {
  margin-bottom: 1.6rem;
  color: var(--text-rich);
}

a {
  color: var(--primary-terra);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
}

a:hover {
  border-bottom-color: var(--primary-gold);
}

/* ===== LAYOUT ===== */
.main-wrapper {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 2rem 2rem 0;
}

.article-grid {
  display: flex;
  gap: 3.5rem;
  position: relative;
}

.article-content {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  background: transparent;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: none;
}

/* Site Header with Home Link */
.site-header {
  width: 100%;
  background: rgba(255, 249, 242, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--border-warm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-rich);
  text-decoration: none;
}

.logo span {
  color: var(--primary-terra);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #5a524c;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: none;
}

.nav-links a:hover {
  color: var(--primary-terra);
}

/* Reading Mode Selector */
.reading-mode-selector {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap;
}

.mode-btn {
  background: transparent;
  border: 1.5px solid var(--primary-terra);
  border-radius: 60px;
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #5a5a5a;
  font-family: var(--font-sans);
  font-weight: 500;
}

.mode-btn.active {
  background: var(--primary-terra);
  color: white;
  border-color: var(--primary-terra);
}

.essentials-mode
  p:not(.keep-this):not(.expert-quote p):not(.quote-context):not(
    .reflection-box p
  ):not(.micro-story p) {
  display: none;
}

/* Skip to Solutions Button */
.skip-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #2c3a2c;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 60px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.skip-btn:hover {
  background: #1e2a1e;
  transform: scale(1.02);
}

/* Break Interstitial */
.break-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.break-card {
  background: white;
  max-width: 450px;
  width: 90%;
  padding: 2.5rem;
  border-radius: 32px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.break-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.break-card h3 {
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}

.break-card p {
  margin-bottom: 1.5rem;
  color: #5a5a5a;
}

.break-card button {
  margin: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-sans);
}

.break-card button:first-of-type {
  background: var(--primary-terra);
  color: white;
}

.break-card button:last-of-type {
  background: #f0ede8;
  color: #5a5a5a;
}

/* ============================================================
    LIVE POLL STYLES
   ============================================================ */

.live-poll {
  /* Palette */
  --poll-ink: #3a2e28;
  --poll-ink-soft: #6b574a;
  --poll-ink-faint: #9a887b;
  --poll-terra: #d97a3f;
  --poll-terra-deep: #b85f28;
  --poll-terra-glow: rgba(217, 122, 63, 0.18);
  --poll-paper: #fdf8f2;
  --poll-paper-warm: #f7ede0;
  --poll-cream: #fffdf9;
  --poll-line: #e8dbcc;
  --poll-line-strong: #d9c6b2;
  --poll-sage: #8aa88a;
  --poll-sage-soft: rgba(138, 168, 138, 0.15);

  /* Shape */
  --poll-radius-xl: 32px;
  --poll-radius-lg: 22px;
  --poll-radius-md: 16px;
  --poll-radius-sm: 10px;
  --poll-radius-pill: 999px;

  /* Shadows */
  --poll-shadow-soft: 0 4px 20px rgba(184, 95, 40, 0.06);
  --poll-shadow-lift: 0 10px 32px rgba(184, 95, 40, 0.12);
  --poll-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  /* Typography */
  --poll-font-sans:
    "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --poll-font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --poll-font-mono: "SF Mono", "Fira Code", "Cascadia Code", monospace;

  /* Layout */
  position: relative;
  background:
    /* subtle paper grain via layered radial gradients */
    radial-gradient(
      circle at 15% 20%,
      rgba(217, 122, 63, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(138, 168, 138, 0.06) 0%,
      transparent 40%
    ),
    linear-gradient(160deg, var(--poll-paper) 0%, var(--poll-paper-warm) 100%);
  border-radius: var(--poll-radius-xl);
  padding: 2rem 1.75rem 1.75rem;
  margin: 2rem 0;
  border: 1px solid var(--poll-line);
  box-shadow: var(--poll-shadow-soft), var(--poll-shadow-inset);
  font-family: var(--poll-font-sans);
  overflow: hidden;
  isolation: isolate;
}

/* Decorative corner accent — a soft "tape" or "paper fold" */
.live-poll::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: linear-gradient(
    225deg,
    transparent 0%,
    transparent 48%,
    rgba(217, 122, 63, 0.1) 49%,
    rgba(217, 122, 63, 0.1) 51%,
    transparent 52%
  );
  pointer-events: none;
  z-index: 0;
}

/* Decorative left rule — a thin colored bar */
.live-poll::after {
  content: "";
  position: absolute;
  top: 1.75rem;
  bottom: 1.75rem;
  left: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--poll-terra) 0%,
    var(--poll-terra-deep) 100%
  );
  border-radius: 0 4px 4px 0;
  opacity: 0.7;
  pointer-events: none;
}

/* ---- Heading ---- */
.live-poll h4 {
  position: relative;
  z-index: 1;
  margin: 0 0 1.25rem;
  font-family: var(--poll-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--poll-ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.35;
}

.live-poll h4 i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(
    145deg,
    var(--poll-terra) 0%,
    var(--poll-terra-deep) 100%
  );
  color: white;
  border-radius: var(--poll-radius-sm);
  font-size: 0.85rem;
  box-shadow: 0 4px 10px var(--poll-terra-glow);
  flex-shrink: 0;
}

/* ---- Options Grid ---- */
.poll-options {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

/* ---- Option Buttons ---- */
.poll-option-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--poll-cream);
  border: 1px solid var(--poll-line);
  border-radius: var(--poll-radius-pill);
  padding: 0.7rem 1.1rem 0.7rem 0.85rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--poll-font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--poll-ink-soft);
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 2px 6px rgba(184, 95, 40, 0.04);
}

/* Custom "bullet" — a small ring that fills on hover/vote */
.poll-option-btn::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--poll-line-strong);
  background: transparent;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

/* Hover state */
.poll-option-btn:hover {
  border-color: var(--poll-terra);
  color: var(--poll-ink);
  transform: translateY(-2px);
  box-shadow: var(--poll-shadow-lift);
  background: white;
}

.poll-option-btn:hover::before {
  border-color: var(--poll-terra);
  background: var(--poll-terra-glow);
}

/* Active/press */
.poll-option-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Voted state */
.poll-option-btn.voted {
  background: linear-gradient(
    135deg,
    var(--poll-terra) 0%,
    var(--poll-terra-deep) 100%
  );
  border-color: var(--poll-terra-deep);
  color: white;
  font-weight: 600;
  box-shadow: 0 6px 16px var(--poll-terra-glow);
  transform: translateY(-1px);
}

.poll-option-btn.voted::before {
  border-color: white;
  background: white;
  box-shadow: inset 0 0 0 3px var(--poll-terra);
}

/* Remove the old checkmark pseudo-element if it conflicts */
.poll-option-btn.voted::after {
  content: "✓";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--poll-sage);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--poll-paper);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  animation: poll-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes poll-pop {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

/* Override the original .voted::before content rule */
.poll-option-btn.voted::before {
  content: "";
}

/* ---- Results Area ---- */
.poll-results {
  position: relative;
  z-index: 1;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--poll-line-strong);
  font-size: 0.88rem;
  color: var(--poll-ink-soft);
}

/* Empty state */
.poll-results > p {
  text-align: center;
  color: var(--poll-ink-faint);
  font-size: 0.85rem;
  font-style: italic;
  padding: 0.75rem 0;
}

/* Result row */
.poll-results .poll-result-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--poll-radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  animation: poll-fade-in 0.4s ease both;
}

.poll-results .poll-result-row:hover {
  background: white;
  border-color: var(--poll-line);
  transform: translateX(3px);
}

@keyframes poll-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.poll-results .poll-result-label {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--poll-ink);
  font-weight: 500;
}

.poll-results .poll-result-count {
  font-family: var(--poll-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--poll-terra-deep);
  background: var(--poll-terra-glow);
  padding: 0.2rem 0.6rem;
  border-radius: var(--poll-radius-pill);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

/* Progress bar — full width under each row */
.poll-results .poll-result-bar {
  grid-column: 1 / -1;
  height: 6px;
  background: var(--poll-line);
  border-radius: var(--poll-radius-pill);
  margin-top: 0.35rem;
  overflow: hidden;
  position: relative;
}

.poll-results .poll-result-bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--poll-terra) 0%,
    var(--poll-terra-deep) 60%,
    var(--poll-sage) 100%
  );
  border-radius: var(--poll-radius-pill);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Shimmer on the bar */
.poll-results .poll-result-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: poll-shimmer 2.5s ease-in-out infinite;
}

@keyframes poll-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Total row */
.poll-results .poll-total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--poll-ink-faint);
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--poll-line);
}

.poll-results .poll-total i {
  color: var(--poll-sage);
}

/* ---- Privacy note ---- */
.live-poll > p {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem !important;
  color: var(--poll-ink-faint) !important;
  margin-top: 0.75rem !important;
  letter-spacing: 0.01em;
}

.live-poll > p i {
  color: var(--poll-sage);
  font-size: 0.7rem;
}

/* ---- Reset button ---- */
.poll-reset-btn {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
  background: transparent;
  border: 1px dashed var(--poll-line-strong);
  border-radius: var(--poll-radius-pill);
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--poll-font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--poll-ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.02em;
}

.poll-reset-btn:hover {
  background: var(--poll-ink-soft);
  border-color: var(--poll-ink-soft);
  border-style: solid;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(58, 46, 40, 0.15);
}

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

.poll-reset-btn i {
  font-size: 0.72rem;
  transition: transform 0.4s ease;
}

.poll-reset-btn:hover i {
  transform: rotate(-180deg);
}

/* Letter from Future Self */
.future-letter {
  background: #e8f0ea;
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  border-left: 6px solid var(--primary-terra);
}

.future-letter h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #2c4a2c;
  margin-bottom: 1rem;
}

.future-letter .letter-content {
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #3a4a3a;
}

.future-letter .letter-content p {
  margin-bottom: 0.8rem;
}

.future-letter .signature {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #5a6b5a;
}

/* Reaction Bar */
.reaction-bar {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
}

.reaction {
  background: transparent;
  border: 1px solid #ddd2c6;
  border-radius: 60px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
  font-family: var(--font-sans);
}

.reaction:hover {
  background: var(--primary-terra);
  color: white;
  border-color: var(--primary-terra);
}

/* Mood Tracker */
.mood-tracker {
  background: #f9f7f4;
  border-radius: 20px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid #e2ddd5;
}

.mood-tracker p {
  margin-bottom: 0.5rem;
}

.mood-tracker input {
  width: 100%;
  margin: 0.8rem 0;
  accent-color: var(--primary-terra);
}

.mood-tracker button {
  background: var(--primary-terra);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 60px;
  cursor: pointer;
  margin-top: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  transition: all 0.2s;
}

.mood-tracker button:hover {
  background: #8aab7a;
}

/* Printable Summary */
.printable-summary {
  background: #f5efe7;
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem 0;
  border: 2px dashed var(--primary-terra);
  width: 100%;
  overflow-x: auto;
}

.printable-summary h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-serif);
}

.printable-summary ul {
  margin: 1rem 0 1.5rem 1.5rem;
  padding-left: 0;
}

.printable-summary li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.printable-summary button {
  background: var(--primary-terra);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 60px;
  color: #1e2a1e;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.2s;
}

@media print {
  body * {
    visibility: hidden;
  }
  .printable-summary,
  .printable-summary * {
    visibility: visible;
  }
  .printable-summary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    border: none;
  }
}

/* ===== HEADER & META ===== */
.meta-category {
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9b8778;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-category i {
  color: var(--primary-terra);
  font-size: 16px;
}

.title-block {
  margin: 0.5rem 0 0.8rem;
}

.subhead {
  font-size: 24px;
  font-family: var(--font-serif);
  color: #8e7563;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.8rem;
}

.byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  font-size: 15px;
  margin: 1.8rem 0 1.5rem;
  padding: 1.2rem 0;
  border-top: 2px solid var(--border-warm);
  border-bottom: 2px solid var(--border-warm);
  color: #7d6a5b;
}

.byline i {
  color: var(--primary-terra);
  margin-right: 0.5rem;
}

.reading-time {
  display: flex;
  align-items: center;
}

/* ===== AUDIO PLAYER (PROPER BUTTON) ===== */
.audio-btn {
  background: #fff3e9;
  border: 2px solid var(--border-warm);
  border-radius: 60px;
  padding: 1rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  margin: 1.2rem 0 2rem;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-rich);
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(193, 123, 94, 0.1);
  transition: all 0.3s;
}

.audio-btn:hover,
.audio-btn:focus {
  background: #ffeade;
  transform: scale(1.02) translateY(-2px);
  border-color: var(--primary-terra);
  box-shadow: 0 12px 24px rgba(193, 123, 94, 0.15);
}

.audio-btn i {
  font-size: 1.8rem;
  color: var(--primary-terra);
}

/* ===== HERO IMAGE WITH CAPTION ===== */
.hero-container {
  position: relative;
  width: 100%;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.8rem 0 2.8rem;
  box-shadow: var(--shadow-warm);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 6s ease;
}

.hero-container:hover .hero-image {
  transform: scale(1.05);
}

.hero-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  background: rgba(74, 59, 47, 0.3);
  backdrop-filter: blur(6px);
  padding: 0.5rem 1.8rem;
  border-radius: 40px;
  font-size: 0.9rem;
  font-weight: 400;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== EMOTIONAL HOOK ===== */
.hook {
  background: rgba(232, 180, 138, 0.08);
  padding: 2.2rem;
  border-radius: var(--radius-md);
  border-left: 6px solid var(--primary-terra);
  margin: 2.5rem 0;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #5d4a3b;
}

.hook i {
  color: var(--primary-terra);
  margin-right: 0.8rem;
  opacity: 0.7;
}

/* ===== WHAT SELF-TRUST FEELS LIKE (GRID CARDS) ===== */
.feel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.feel-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-warm);
  border: 1px solid var(--border-warm);
  transition: all 0.3s;
}

.feel-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-gold);
}

.feel-card i {
  font-size: 2rem;
  color: var(--primary-terra);
  margin-bottom: 1rem;
  display: inline-block;
}

.feel-card p {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-style: italic;
}

/* ===== SYMPTOM CHECKLIST (INTERACTIVE) ===== */
.symptom-checker {
  background: #fcf3ea;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
}

.symptom-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.symptom-header i {
  font-size: 2.2rem;
  color: var(--primary-terra);
}

.symptom-header h3 {
  margin: 0;
  color: #4a3b2f;
}

.symptom-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem;
  background: white;
  border-radius: 60px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-warm);
  cursor: pointer;
  transition: all 0.2s;
}

.symptom-item:hover {
  border-color: var(--primary-terra);
  background: #fffbf7;
}

.symptom-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid var(--primary-terra);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  transition: all 0.2s;
}

.symptom-item.checked .symptom-checkbox {
  background: var(--primary-terra);
  color: white;
}

.symptom-item.checked {
  background: #f0e4d9;
  border-color: var(--primary-terra);
}

.symptom-text {
  flex: 1;
  font-size: 1.1rem;
}

.symptom-counter {
  text-align: right;
  margin-top: 1.2rem;
  color: #7d6a5b;
  font-size: 1rem;
}

.symptom-counter i {
  color: var(--primary-terra);
}

/* ===== INTERACTIVE STEP CARDS ===== */
.step-container {
  margin: 3rem 0;
}

.step-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-warm);
  border: 1px solid var(--border-warm);
  position: relative;
  transition: all 0.3s;
}

.step-card:hover {
  transform: translateX(8px);
  border-color: var(--primary-terra);
}

.step-number {
  position: absolute;
  top: -12px;
  left: 30px;
  background: var(--primary-terra);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(193, 123, 94, 0.3);
}

.step-card h3 {
  margin-top: 0;
  margin-left: 30px;
  color: #4a3b2f;
}

.step-card i {
  color: var(--primary-terra);
  margin-right: 0.8rem;
}

.example-box {
  background: #faf1e7;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  border-left: 4px solid var(--primary-gold);
}

.example-box p {
  margin-bottom: 0.5rem;
  font-style: italic;
}

.example-box strong {
  color: var(--primary-terra);
}

/* ===== REFLECTION PROMPTS (INTERACTIVE) ===== */
.reflection-prompt {
  background: #e8d9cc30;
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 2rem 0;
  border: 2px dashed var(--primary-terra);
  transition: all 0.3s;
}

.reflection-prompt:hover {
  background: #e8d9cc50;
}

.reflection-icon {
  font-size: 2rem;
  color: var(--primary-terra);
  margin-bottom: 1rem;
}

.reflection-question {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
}

.reflection-input {
  width: 100%;
  padding: 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-warm);
  background: white;
  font-family: var(--font-sans);
  font-size: 1rem;
  margin: 1rem 0;
  resize: vertical;
}

.reflection-input:focus {
  border-color: var(--primary-terra);
  outline: none;
}

.save-reflection {
  background: transparent;
  border: 2px solid var(--primary-terra);
  color: var(--primary-terra);
  padding: 0.8rem 2rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.save-reflection:hover {
  background: var(--primary-terra);
  color: white;
}

/* ===== EXPERT QUOTES ===== */
.expert-quote {
  margin: 3.5rem 0;
  padding: 2rem 2rem 2rem 3rem;
  background: var(--quote-bg);
  border-radius: var(--radius-lg);
  position: relative;
}

.expert-quote:before {
  content: "“";
  font-size: 6rem;
  font-family: var(--font-serif);
  color: var(--primary-terra);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: 10px;
}

.expert-quote p {
  font-size: 1.4rem;
  font-family: var(--font-serif);
  font-style: italic;
  line-height: 1.6;
  color: #5d4a3b;
  margin-bottom: 1rem;
}

.quote-source {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: #7d6a5b;
}

.quote-context {
  margin-top: 1rem;
  padding-left: 1.5rem;
  border-left: 3px solid var(--primary-gold);
  font-size: 0.95rem;
  color: #8e7563;
}

/* ===== ANONYMOUS RESPONSE BOX ===== */
.anonymous-box {
  background: linear-gradient(135deg, #fff9f2, #fcf3ea);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin: 4rem 0;
  border: 2px solid var(--primary-gold);
  text-align: center;
}

.anonymous-box h4 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #4a3b2f;
  margin-bottom: 1rem;
}

.anonymous-box textarea {
  width: 100%;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-warm);
  background: white;
  font-family: var(--font-sans);
  font-size: 1rem;
  margin: 2rem 0;
  resize: vertical;
}

.anonymous-box button {
  background: var(--primary-terra);
  border: none;
  color: white;
  padding: 1rem 3rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 8px 16px rgba(193, 123, 94, 0.2);
}

.anonymous-box button:hover {
  background: #a5664b;
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(193, 123, 94, 0.3);
}

.response-note {
  margin-top: 1.5rem;
  color: #8e7563;
  font-size: 0.9rem;
}

/* ===== RELIABILITY REPORT (INTERACTIVE) ===== */
.reliability-report {
  background: #4a3b2f;
  color: #faf1e7;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
}

.reliability-report h3 {
  color: #faf1e7;
  margin-top: 0;
}

.evidence-list {
  background: #5d4a3b;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  min-height: 100px;
}

.evidence-item {
  background: #faf1e7;
  color: #4a3b2f;
  padding: 0.8rem 1.2rem;
  border-radius: 40px;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.add-evidence {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.add-evidence input {
  flex: 1;
  padding: 1rem;
  border-radius: 40px;
  border: none;
  font-family: var(--font-sans);
  font-size: 1rem;
}

.add-evidence button {
  background: var(--primary-gold);
  border: none;
  color: #4a3b2f;
  padding: 0 2rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.add-evidence button:hover {
  background: #dba47c;
  transform: scale(1.05);
}

/* ===== VALUES CLARITY EXERCISE ===== */
.values-exercise {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  box-shadow: var(--shadow-warm);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.value-chip {
  background: #faf1e7;
  padding: 1rem;
  border-radius: 40px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.value-chip:hover {
  background: #e8d9cc;
  transform: translateY(-2px);
}

.value-chip.selected {
  background: var(--primary-terra);
  color: white;
  border-color: var(--primary-gold);
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: #fcf3ea;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
}

.faq-item {
  margin: 1.8rem 0;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid #e8d9cc;
}

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

.faq-question {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #4a3b2f;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.faq-question i {
  color: var(--primary-terra);
  transition: transform 0.3s;
}

.faq-question.open i {
  transform: rotate(90deg);
}

.faq-answer {
  display: none;
  padding-left: 2.5rem;
  color: #6b5c4f;
}

.faq-answer.show {
  display: block;
}

/* ===== AUTHOR BIO ===== */
.author-bio {
  background: #e8d9cc;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary-terra);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.author-info {
  flex: 1;
}

.author-info h4 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #3e2e23;
}

.author-credentials {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #6b5c4f;
}

/* ===== RECOMMENDATION ENGINE ===== */
.recommendations {
  background: #fcf3ea;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
}

.rec-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.rec-header h4 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #4a3b2f;
  margin: 0;
}

.rec-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 0;
}

.rec-tab {
  padding: 0.6rem 1.5rem;
  background: white;
  border-radius: 40px;
  border: 1px solid var(--border-warm);
  cursor: pointer;
  transition: all 0.2s;
}

.rec-tab.active {
  background: var(--primary-terra);
  color: white;
  border-color: var(--primary-terra);
}

.rec-tab:hover {
  background: #e8d9cc;
}

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

.rec-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-warm);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.rec-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-terra);
  box-shadow: 0 12px 24px rgba(193, 123, 94, 0.1);
}

.rec-badge {
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--primary-gold);
  padding: 0.2rem 1rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #4a3b2f;
}

.rec-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #9b8778;
  margin-bottom: 0.5rem;
}

.rec-title {
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.rec-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #8e7563;
}

/* ===== SIDEBAR ===== */
.sidebar-module {
  background: #faf1e7;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-module h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #4a3b2f;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  color: var(--text-rich);
  text-decoration: none;
  width: 100%;
  font-size: 0.95rem;
}

.nav-link:hover {
  background: rgba(193, 123, 94, 0.1);
}

.progress-tracker {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1.2rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e8d9cc;
  border-radius: 4px;
  margin: 1rem 0;
}

.progress-fill {
  height: 100%;
  background: var(--primary-terra);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s;
}

.newsletter-form input {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border-radius: 40px;
  border: 1px solid var(--border-warm);
  margin-bottom: 0.8rem;
  font-family: var(--font-sans);
}

.newsletter-form button {
  width: 100%;
  padding: 0.8rem;
  background: var(--primary-terra);
  color: white;
  border: none;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
}

/* ===== REFERENCES===== */

.references-section {
  background: #fcf3ea;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  border: 1px solid var(--border-warm);
}

.references-section h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #4a3b2f;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.references-section h3 i {
  color: var(--primary-terra);
  font-size: 1.6rem;
}

.references-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.references-section li {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #6b5c4f;
}

.references-section li a {
  color: var(--primary-terra);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary-gold);
}

.references-section li a:hover {
  border-bottom-color: var(--primary-terra);
}

.fair-use {
  font-size: 0.8rem;
  color: #8e7563;
  border-top: 1px solid #e8d9cc;
  padding-top: 1rem;
  margin-top: 1rem;
  text-align: center;
}

.fair-use i {
  color: var(--primary-terra);
  margin-right: 0.5rem;
}

.citation-badge {
  display: inline-block;
  background: #e8d9cc;
  color: #4a3b2f;
  font-size: 0.7rem;
  font-weight: 600;
  width: 1.4rem;
  height: 1.4rem;
  line-height: 1.4rem;
  text-align: center;
  border-radius: 50%;
  margin-left: 0.3rem;
  margin-right: 0.1rem;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  vertical-align: super;
  font-family: var(--font-sans);
}

.citation-badge:hover {
  background: var(--primary-terra);
  color: white;
}

/* Related Articles Section */
.related-articles-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3rem 0;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-warm);
}

.related-articles-section h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #4a3b2f;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.related-article-card {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.3s;
  border: 1px solid var(--border-warm);
  text-decoration: none;
  display: block;
}

.related-article-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-terra);
  box-shadow: 0 8px 20px rgba(193, 123, 94, 0.1);
}

.related-article-card i {
  font-size: 1.8rem;
  color: var(--primary-terra);
  margin-bottom: 0.8rem;
  display: inline-block;
}

.related-article-card h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #4a3b2f;
}

.related-article-card p {
  font-size: 0.9rem;
  color: #8e7563;
  margin-bottom: 0;
}

/* ============================================================
   UNIVERSAL FOOTER — full-bleed, responsive, article-safe
   Works whether footer is inside .main-wrapper or not
   ============================================================ */

/* 1) Force full viewport width, ignore any parent max-width */
.site-footer {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  background: #2c2826;
  color: #dacbc0;
  padding: 3rem 1.5rem 0;
  margin-top: 4rem;
  position: relative;
  overflow-x: hidden;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.footer-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
}

/* 2) Fluid 4-column grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
  width: 100%;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Brand */
.footer-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.footer-logo span {
  color: #c87a5a;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #dacbc0;
  margin: 0;
}

/* Column headings */
.footer-col h4 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.02em;
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #dacbc0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: inline-block;
}

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

/* Social icons */
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #dacbc0;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.footer-social .social-link:hover {
  background: #c87a5a;
  color: #fff;
}

/* Newsletter form */
.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.footer-newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.footer-newsletter-form input[type="email"]::placeholder {
  color: rgba(218, 203, 192, 0.6);
}

.footer-newsletter-form input[type="email"]:focus {
  border-color: #c87a5a;
}

/* Newsletter submit button */
.footer-newsletter-form button,
.footer-col form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 40px;
  background: #6f8e7e;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.footer-newsletter-form button:hover,
.footer-col form button:hover {
  background: #6f8e7e;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.footer-newsletter-form button:active,
.footer-col form button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.footer-newsletter-form button:focus-visible,
.footer-col form button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Trust badges */
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #dacbc0;
  white-space: nowrap;
}

.trust-badge i {
  color: #c87a5a;
  flex-shrink: 0;
}

/* Disclaimer */
.footer-disclaimer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #dacbc0;
  text-align: left;
}

.footer-disclaimer i {
  color: #c87a5a;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Copyright */
.footer-copyright {
  text-align: center;
  padding: 0.5rem 0 1rem;
  width: 100%;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.82rem;
  color: #dacbc0;
  opacity: 0.85;
}

/* Email contact bar */
.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  width: 100%;
  flex-wrap: wrap;
}

.footer-contact i {
  color: #c87a5a;
  flex-shrink: 0;
}

.footer-contact a {
  color: #dacbc0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  word-break: break-word;
}

.footer-contact a:hover {
  color: #c87a5a;
}

/* ============================================================
   RESPONSIVE — footer
   ============================================================ */

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 column, centered */
@media (max-width: 560px) {
  .site-footer {
    padding: 2.5rem 1rem 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-newsletter-form {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .footer-trust {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-disclaimer {
    text-align: left;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 800px) {
  .footer-container {
    padding: 1.5rem 1.5rem 1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-trust {
    gap: 1rem;
  }

  .trust-badge {
    font-size: 0.65rem;
  }

  .footer-disclaimer {
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
  }
}

@media (max-width: 550px) {
  .footer-container {
    padding: 1.2rem 1rem 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-newsletter-form {
    max-width: 280px;
    margin: 0 auto;
  }

  .footer-trust {
    gap: 0.8rem;
  }

  .trust-badge {
    font-size: 0.6rem;
  }

  .footer-copyright p {
    font-size: 0.65rem;
  }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */
@media (min-width: 1025px) {
  .sidebar {
    display: block;
  }
  .article-content {
    margin: 0;
  }
}

@media (max-width: 1024px) {
  h1 {
    font-size: 44px;
  }
  .feel-grid {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 768px) {
  body {
    font-size: 17px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 30px;
  }
  .rec-grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .author-bio {
    flex-direction: column;
    text-align: center;
  }

  .nav-bar {
    flex-direction: column;
    gap: 0.8rem;
  }
  .nav-links {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .main-wrapper {
    padding: 1rem;
  }
  h1 {
    font-size: 32px;
  }
  .hero-container {
    height: 200px;
  }
  .anonymous-box {
    padding: 1.5rem;
  }
  .poll-options {
    flex-direction: column;
  }
  .poll-options button {
    width: 100%;
  }
  .reading-mode-selector {
    flex-direction: column;
  }
  .mode-btn {
    text-align: center;
  }
}

@media (max-width: 320px) {
  h1 {
    font-size: 28px;
  }
  .step-number {
    width: 32px;
    height: 32px;
    font-size: 1rem;
    top: -10px;
  }
  .step-card h3 {
    margin-left: 20px;
    font-size: 1.2rem;
  }
}

/* ===== CITATION STYLES  ===== */
.citation-badge {
  display: inline-block;
  background: #e8d9cc;
  color: #4a3b2f;
  font-size: 0.7rem;
  font-weight: 600;
  width: 1.4rem;
  height: 1.4rem;
  line-height: 1.4rem;
  text-align: center;
  border-radius: 50%;
  margin-left: 0.3rem;
  margin-right: 0.1rem;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
  vertical-align: super;
  font-family: var(--font-sans);
}

.citation-badge:hover {
  background: var(--primary-terra);
  color: white;
}

.references-section {
  background: #fcf3ea;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  border: 1px solid var(--border-warm);
}

.references-section h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #4a3b2f;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.references-section h3 i {
  color: var(--primary-terra);
  font-size: 1.6rem;
}

.references-section ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.references-section li {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #6b5c4f;
}

.references-section li a {
  color: var(--primary-terra);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary-gold);
}

.references-section li a:hover {
  border-bottom-color: var(--primary-terra);
}

.fair-use {
  font-size: 0.8rem;
  color: #8e7563;
  border-top: 1px solid #e8d9cc;
  padding-top: 1rem;
  margin-top: 1rem;
  text-align: center;
}

.fair-use i {
  color: var(--primary-terra);
  margin-right: 0.5rem;
}
