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

:root {
  --bg-warm: #fcf9f5;
  --bg-soft: #f5efe9;
  --text-deep: #2f3e2e;
  --text-soft: #5c6e5c;
  --primary-terracotta: #c87a5a;
  --primary-sage: #9baf8b;
  --accent-dusty: #c2a27f;
  --accent-sky: #b8cdc9;
  --border-warm: #e2d8ce;
  --card-bg: #ffffff;
  --shadow-soft: 0 20px 35px -12px rgba(70, 50, 40, 0.08);
  --shadow-hover: 0 30px 40px -15px rgba(70, 50, 40, 0.12);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Libre Baskerville", Georgia, serif;
  --container-width: 1260px;
  --content-width: 760px;
  --sidebar-width: 300px;
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 18px;
}

body {
  background-color: var(--bg-warm);
  font-family: var(--font-sans);
  color: var(--text-deep);
  line-height: 1.75;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--primary-terracotta);
  outline-offset: 4px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
  color: #2d3a2a;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 52px;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 34px;
  margin: 3rem 0 1.2rem;
  border-bottom: 2px solid var(--border-warm);
  padding-bottom: 0.75rem;
}

h3 {
  font-size: 26px;
  margin: 2rem 0 1rem;
  color: #4d5e4a;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-deep);
}

a {
  color: var(--primary-terracotta);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: all 0.2s ease;
}

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

ul,
ol {
  margin: 1rem 0 1.5rem 2rem;
}

li {
  margin-bottom: 0.5rem;
}

@keyframes gentleFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

/* Header */
.site-header {
  background: rgba(252, 249, 245, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-warm);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

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

.soulspace-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: #2c3e50;
  transition: all 0.3s ease;
  white-space: nowrap;
  border-bottom: none;
}

.soulspace-logo:hover {
  border-bottom: none;
}

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

.nav-links a {
  font-weight: 600;
  color: #534b42;
  border-bottom: none;
}

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

/* Reading Mode */
.reading-mode-selector {
  display: flex;
  gap: 1rem;
  margin: 1.5rem auto 0.5rem;
  max-width: var(--container-width);
  padding: 0 2rem;
}

.mode-btn {
  background: transparent;
  border: 2px solid var(--primary-sage);
  border-radius: 60px;
  padding: 0.6rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  color: var(--text-deep);
}

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

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

.essentials-only {
  display: none;
}

.essentials-mode .full-depth-content {
  display: none;
}

.essentials-mode .essentials-only {
  display: block;
}

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

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

.article-content {
  max-width: var(--content-width);
  width: 100%;
}

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: none;
  position: sticky;
  top: 100px;
  align-self: start;
}

@media (min-width: 1025px) {
  .sidebar {
    display: block;
  }
}

/* Typography */
.meta-category {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #a48f7c;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.subhead {
  font-size: 24px;
  font-family: var(--font-serif);
  color: #7c6b5a;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  font-size: 14px;
  margin: 1.5rem 0 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
  color: #6a5e52;
}

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

/* Hero */
.hero-container {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow-soft);
}

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

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

.hero-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  padding: 0.4rem 1.4rem;
  border-radius: 40px;
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
}

.photo-credit {
  color: #5d5d5d;
  font-size: 12px;
  margin: 0 1rem;
}

.photo-credit a {
  color: #c87a5a;
  border-bottom: none;
}

.photo-credit a:hover {
  border-bottom: 1px solid #c87a5a;
}

/* Content Components */
.emotional-hook {
  font-size: 1.25rem;
  line-height: 1.7;
  background: rgba(200, 122, 90, 0.06);
  padding: 2rem;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--primary-terracotta);
  margin: 2rem 0;
}

.boundary-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  margin: 2rem 0;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-soft);
  transition: all 0.25s ease;
}

.boundary-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-terracotta);
}

.boundary-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.boundary-card h3 i {
  color: var(--primary-terracotta);
  font-size: 1.8rem;
}

.expert-quote {
  margin: 2.5rem 0;
  padding-left: 2rem;
  border-left: 4px solid var(--primary-terracotta);
}

.expert-quote p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.55;
  font-style: italic;
  color: #4d4a3e;
  margin-bottom: 0.8rem;
}

.quote-source {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #b0866c;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.internal-link {
  background: #ede3da;
  padding: 0.25rem 1.1rem;
  border-radius: 40px;
  display: inline-block;
  margin: 0.2rem 0;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid #d6c8bc;
  border-bottom: none;
}

.internal-link:hover {
  background: var(--primary-terracotta);
  color: white;
  border-color: var(--primary-terracotta);
  border-bottom: none;
}

.reflection-box {
  background: #f4ede6;
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 2.5rem 0;
  border-left: 5px solid var(--primary-sage);
}

.reflection-box h4 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 1.2rem;
  color: #4a5e47;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.script-bubble {
  background: white;
  padding: 0.5rem 1.3rem;
  border-radius: 60px;
  display: inline-block;
  margin: 0.4rem 0.6rem 0.4rem 0;
  border: 1px solid #dccfc2;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.15s;
}

.script-bubble:hover {
  background: var(--primary-sage);
  color: white;
  border-color: var(--primary-sage);
  transform: translateY(-2px);
}

/* Unique Elements */
.mood-tracker {
  background: #f4ede7;
  border-radius: var(--radius-md, 24px);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
  border: 1px solid var(--border-warm);
}

.mood-tracker .poll-question {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.mood-slider {
  width: 100%;
  max-width: 400px;
  margin: 1rem auto;
  display: block;
  accent-color: var(--primary-terracotta, #c87a5a);
  height: 6px;
  border-radius: 4px;
}

.mood-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-terracotta, #c87a5a);
}

.mood-compare {
  margin-top: 1rem;
  padding: 1.2rem;
  background: white;
  border-radius: var(--radius-sm, 16px);
  display: none;
  border: 1px solid #e2ddd5;
}

.mood-compare.show {
  display: block;
}

.health-btn {
  background: var(--primary-terracotta, #c87a5a);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.health-btn:hover {
  background: #b06a4a;
  transform: translateY(-2px);
}

/* ============================================================
    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;
}

/* ============================================================
    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);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .live-poll {
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: var(--poll-radius-lg);
    margin: 1.5rem 0;
  }

  .live-poll::after {
    top: 1.25rem;
    bottom: 1.25rem;
    width: 3px;
  }

  .live-poll h4 {
    font-size: 1.08rem;
    gap: 0.5rem;
  }

  .live-poll h4 i {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .poll-options {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .poll-option-btn {
    padding: 0.65rem 0.95rem 0.65rem 0.8rem;
    font-size: 0.84rem;
  }

  .poll-results .poll-result-row {
    padding: 0.5rem 0.7rem;
  }
}

@media (max-width: 380px) {
  .live-poll {
    padding: 1.25rem 1rem 1rem;
  }

  .live-poll h4 {
    font-size: 0.98rem;
  }

  .poll-option-btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.85rem 0.6rem 0.7rem;
  }

  .poll-option-btn::before {
    width: 12px;
    height: 12px;
  }

  .poll-results .poll-result-label {
    font-size: 0.78rem;
  }

  .poll-results .poll-result-count {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
  }
}

/* ---- Print — hide poll ---- */
@media print {
  .live-poll {
    display: none !important;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .poll-option-btn,
  .poll-option-btn::before,
  .poll-results .poll-result-bar-fill,
  .poll-results .poll-result-bar-fill::after,
  .poll-reset-btn,
  .poll-reset-btn i {
    transition: none !important;
    animation: none !important;
  }
}

/* Letter From Future Self */
.future-self-letter {
  background: linear-gradient(135deg, #e8f0f7 0%, #d9e4ef 100%);
  border-radius: var(--radius-lg, 24px);
  padding: 2.5rem;
  margin: 3rem 0;
  font-family: var(--font-serif, "Libre Baskerville", Georgia, serif);
  font-style: italic;
  border-left: 6px solid var(--primary-terracotta, #c87a5a);
  position: relative;
}

.future-self-letter:before {
  content: "✧";
  font-size: 3rem;
  position: absolute;
  top: -20px;
  left: 20px;
  color: var(--primary-terracotta, #c87a5a);
  opacity: 0.5;
}

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

.letter-signature {
  margin-top: 1.5rem;
  text-align: right;
  font-style: normal;
  font-weight: 500;
}

/* Reaction Buttons */
.reaction-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 2.5rem 0;
  flex-wrap: wrap;
}

.reaction-btn {
  background: #eef3f9;
  border: 2px solid #d9e0e8;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--font-sans, "Inter", sans-serif);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-deep, #2f3e2e);
}

.reaction-btn:hover:not(.counted) {
  background: var(--primary-sage, #9baf8b);
  border-color: var(--primary-sage, #9baf8b);
  color: white;
  transform: translateY(-3px);
}

.reaction-btn.counted {
  background: var(--primary-terracotta, #c87a5a);
  border-color: var(--primary-terracotta, #c87a5a);
  color: white;
}

.reaction-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 0.1rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  min-width: 20px;
  text-align: center;
}

.reaction-btn.counted .reaction-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Anonymous Response */
.anonymous-response {
  background: #ede3da;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
}

.anonymous-response h4 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #4a5e47;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.anonymous-response textarea {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid #d6c8bc;
  font-family: var(--font-sans);
  margin: 1rem 0;
  resize: vertical;
  font-size: 1rem;
}

.anonymous-response button {
  background: var(--primary-terracotta);
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  color: white;
  font-size: 1rem;
  transition: all 0.2s;
}

.anonymous-response button:hover {
  background: #b06a4a;
}

/* FAQ Section */
.faq-section {
  background: #f4ede6;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
}

.faq-item {
  margin: 1.5rem 0;
  border-bottom: 1px dashed #d4c8bc;
  padding-bottom: 1.2rem;
}

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

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

/* Printable Summary */
.printable-summary {
  background: #f1e9e1;
  border-radius: var(--radius-md);
  padding: 1.8rem;
  margin: 2rem 0;
  border: 2px dashed var(--primary-terracotta);
}

.printable-summary h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.printable-summary ul {
  list-style: none;
  margin: 1rem 0;
  padding: 0;
}

.printable-summary ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #ddd1c4;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.printable-summary ul li:last-child {
  border-bottom: none;
}

.printable-summary ul li i {
  color: var(--primary-terracotta);
  width: 20px;
  text-align: center;
}

.printable-summary button {
  background: var(--primary-terracotta);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  color: white;
  width: 100%;
  margin-top: 1rem;
  font-size: 1rem;
  transition: all 0.2s;
}

.printable-summary button:hover {
  background: #b06a4a;
}

/* Citations */
.citations-section {
  margin: 2.5rem 0;
  padding-top: 1rem;
  border-top: 2px solid var(--border-warm);
}

.citations-intro {
  font-size: 0.95rem;
  color: #6a5e52;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.citations-grid {
  display: grid;
  gap: 1rem;
}

.citation-item {
  background: white;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: 0.8rem 0;
  border-left: 4px solid var(--primary-sage);
  font-size: 0.85rem;
}

.citation-text {
  margin-bottom: 0.5rem;
  font-style: italic;
  color: #4a5e47;
}

.citation-source {
  color: #6a5e52;
  font-size: 0.8rem;
}

.citation-source a {
  color: var(--primary-terracotta);
  border-bottom: none;
}

.citation-source a:hover {
  border-bottom: 1px solid var(--primary-terracotta);
}

.citation-note {
  font-size: 0.8rem;
  color: #8a7a70;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #e2ddd5;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Medical Disclaimer */
.medical-disclaimer {
  background: #fff8e7;
  border-left: 4px solid #e6a017;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.85rem;
  color: #6b5a3e;
  border-radius: var(--radius-sm);
}

.medical-disclaimer i {
  margin-right: 0.5rem;
  color: #e6a017;
}

.disclaimer-box {
  max-width: var(--content-width);
  margin: 0 auto 2rem auto;
  background: #f9f7f4;
  border: 1px solid #e2ddd5;
  border-radius: 12px;
  padding: 1.25rem 1.75rem;
  font-size: 0.88rem;
  color: #5d5d5d;
  text-align: center;
}

/* Author Bio */
.author-bio {
  background: #ede3da;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 3rem 0;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid #d6c8bc;
}

.author-avatar {
  width: 90px;
  height: 90px;
  background: var(--primary-terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  font-family: var(--font-serif);
  flex-shrink: 0;
}

.author-info {
  flex: 1;
}

.author-info h4 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #4a5e47;
}

.author-info h4 a {
  color: inherit;
  border-bottom: none;
}

.author-info h4 a:hover {
  border-bottom: 1px solid #4a5e47;
}

.author-credentials {
  font-size: 0.85rem;
  margin: 0;
  opacity: 0.9;
  color: #6a5e52;
}

.author-credentials i {
  color: var(--primary-terracotta);
}

/* Sidebar */
.sidebar-module {
  background: #f4ede7;
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.sidebar-module h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #4a5e47;
}

.sidebar-module ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-module ul li {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
  color: var(--text-deep);
  border-bottom: none;
}

.nav-link:hover {
  color: var(--primary-terracotta);
  border-bottom: none;
}

.nav-link i {
  color: var(--primary-terracotta);
}

.newsletter-form {
  background: #f4ede6;
  padding: 1.5rem;
  border-radius: 24px;
  text-align: center;
  margin: 1.5rem 0;
}

.newsletter-form h4 {
  margin-bottom: 0.8rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #4a5e47;
}

.newsletter-form input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 60px;
  border: 1px solid #ddd1c4;
  margin-bottom: 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.newsletter-form button {
  background: var(--primary-terracotta);
  border: none;
  padding: 0.8rem;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  color: white;
  font-size: 1rem;
  transition: all 0.2s;
}

.newsletter-form button:hover {
  background: #b06a4a;
}

/* Skip Button */
.skip-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #2f3e2e;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 60px;
  cursor: pointer;
  font-weight: 600;
  z-index: 999;
  display: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s;
}

.skip-btn:hover {
  background: var(--primary-terracotta);
  transform: scale(1.02);
}

.skip-btn.visible {
  display: flex !important;
  align-items: center;
  gap: 0.5rem;
}

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

.break-screen.active {
  display: flex;
}

.break-card {
  background: white;
  max-width: 450px;
  width: 90%;
  padding: 2.5rem;
  border-radius: 32px;
  text-align: center;
}

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

.break-card h3 {
  margin: 0 0 0.5rem 0;
  font-family: var(--font-serif);
  color: #2d3a2a;
}

.break-card p {
  margin-bottom: 1.5rem;
  color: #6a5e52;
}

.break-card button {
  margin: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

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

.break-card button:first-of-type:hover {
  background: #b06a4a;
}

.break-card button:last-of-type {
  background: #e2ddd5;
  color: #4a5e47;
}

.break-card button:last-of-type:hover {
  background: #d0c8bc;
}

/* Recommendations */
.recommendations-section {
  background: #f2eae2;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
}

.recommendations-section h3 {
  margin-top: 0;
  font-family: var(--font-serif);
  color: #4a5e47;
}

/* Comments */
#universal-comments {
  max-width: var(--content-width, 760px);
  margin: 0 auto 3rem auto;
  padding: 0 1rem;
}

#universal-comments hr {
  margin-bottom: 2rem;
  border: none;
  border-top: 2px solid var(--border-warm, #e2d8ce);
}

#universal-comments h3 {
  font-family: var(--font-serif, "Libre Baskerville", Georgia, serif);
  margin-bottom: 1rem;
}

#comments-container {
  margin-bottom: 1.5rem;
}

#comments-container .comment-item {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid #e2ddd5;
}

#universal-comments .comment-form {
  background: #f9f7f4;
  border-radius: 20px;
  padding: 1.5rem;
}

#universal-comments .comment-form label {
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

#universal-comments .comment-form input,
#universal-comments .comment-form textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 12px;
  border: 1px solid #e2ddd5;
  margin: 0.5rem 0 1rem;
  font-family: inherit;
  box-sizing: border-box;
  font-size: 1rem;
}

#universal-comments .comment-form textarea {
  resize: vertical;
}

#post-comment-btn {
  background: var(--primary-terracotta, #c87a5a);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

#post-comment-btn:hover {
  background: #b06a4a;
  transform: translateY(-2px);
}

/* ============================================================
   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: 1024px) {
  h1 {
    font-size: 44px;
  }
  h2 {
    font-size: 30px;
  }
}

@media (max-width: 900px) {
  .article-grid {
    gap: 2rem;
  }
}

@media (max-width: 800px) {
  .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: 768px) {
  body {
    font-size: 17px;
  }
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 28px;
  }
  .main-wrapper {
    padding: 1rem;
  }
  .hero-container {
    height: 220px;
  }
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
  .reading-mode-selector {
    flex-direction: column;
    align-items: stretch;
  }
  .mode-btn {
    text-align: center;
  }
  .nav-bar {
    flex-direction: column;
    gap: 0.8rem;
  }
  .nav-links {
    gap: 1.2rem;
  }
  .reaction-buttons {
    gap: 0.8rem;
  }
  .reaction-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  .mood-tracker {
    padding: 1.2rem;
  }
  #universal-comments {
    padding: 0 0.5rem;
  }
  #universal-comments .comment-form {
    padding: 1rem;
  }
  .citations-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
}

@media (max-width: 550px) {
  .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;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 32px;
  }
  .emotional-hook {
    font-size: 1.1rem;
    padding: 1.2rem;
  }
  .boundary-card {
    padding: 1.2rem;
  }
  .expert-quote p {
    font-size: 1.1rem;
  }
  .skip-btn {
    bottom: 16px;
    right: 16px;
    padding: 8px 16px;
    font-size: 0.8rem;
  }
  .reaction-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    flex: 1;
    justify-content: center;
    min-width: 80px;
  }
  .reaction-buttons {
    gap: 0.5rem;
  }
  .mood-slider {
    max-width: 100%;
  }
  .poll-options {
    flex-direction: column;
  }
  .poll-option {
    justify-content: center;
  }
  .future-self-letter {
    padding: 1.5rem;
  }
  .future-self-letter:before {
    font-size: 2rem;
    top: -15px;
    left: 15px;
  }
  .break-card {
    padding: 1.5rem;
  }
}

@media print {
  .skip-btn,
  .break-screen,
  .reading-mode-selector,
  .sidebar,
  .nav-links,
  .reaction-buttons,
  .live-poll,
  .site-header,
  .site-footer {
    display: none !important;
  }
  .printable-summary {
    border: 2px solid #000;
    break-inside: avoid;
  }
  body {
    background: white;
  }
  .full-depth-content {
    display: block !important;
  }
  .essentials-only {
    display: none !important;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-wrapper {
    border-radius: 16px;
    margin: 1.5rem 0 2rem 0;
  }
  .hero-image {
    border-radius: 16px 16px 0 0;
  }
  .hero-caption {
    font-size: 1.1rem;
    padding: 1.2rem 1.5rem;
    border-radius: 0 0 16px 16px;
  }
}

@media (max-width: 480px) {
  .hero-wrapper {
    border-radius: 12px;
    margin: 1rem 0 1.5rem 0;
  }
  .hero-image {
    border-radius: 12px 12px 0 0;
  }
  .hero-caption {
    font-size: 0.95rem;
    padding: 1rem 1.2rem;
    border-radius: 0 0 12px 12px;
  }
}
