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

:root {
  --deep-teal: #2c5f5f;
  --warm-terracotta: #c47a5a;
  --dusty-rose: #b88b7a;
  --soft-ochre: #d9b48b;
  --paper-cream: #fef8f0;
  --border-warm: #e8dccc;
  --shadow-soft: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}

body {
  background: var(--paper-cream);
  font-family: var(--font-sans);
  color: #2d3e3e;
  line-height: 1.68;
  font-size: 18px;
}

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

/* ===== UNIVERSAL HEADER STYLES ===== */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e0d6cc;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.8rem;
  font-weight: 500;
  color: #3a2e28;
  text-decoration: none;
  border-bottom: none;
}

.logo span {
  color: #c17b5e;
}

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

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

.nav-links a:hover {
  color: #c17b5e;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .nav-bar {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }
  .nav-links {
    gap: 1.5rem;
  }
  .logo {
    font-size: 1.5rem;
  }
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  background: white;
  border-bottom: 2px solid var(--border-warm);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.96);
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  flex-wrap: wrap;
}

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

.logo span {
  color: var(--warm-terracotta);
}

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

.nav-links a {
  text-decoration: none;
  color: #4a5b5b;
  font-weight: 500;
  transition: 0.2s;
}

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

/* Article Grid */
.article-grid {
  display: flex;
  gap: 3rem;
  margin: 2rem 0 3rem;
  flex-wrap: wrap;
}

.main-content {
  flex: 2;
  min-width: 0;
}

.sidebar {
  flex: 1;
  min-width: 280px;
}

/* Typography */
h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep-teal);
  letter-spacing: -0.02em;
  margin: 1rem 0 1rem;
}

.subhead {
  font-size: 1.4rem;
  color: var(--warm-terracotta);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--warm-terracotta);
  padding-left: 1.2rem;
  font-weight: 400;
}

.meta {
  display: flex;
  gap: 1.8rem;
  font-size: 0.9rem;
  color: #8f9b9b;
  border-top: 1px solid var(--border-warm);
  border-bottom: 1px solid var(--border-warm);
  padding: 0.8rem 0;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap;
}

h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 2.5rem 0 1rem;
  color: var(--deep-teal);
  font-weight: 600;
}

h3 {
  font-weight: 600;
  font-size: 1.4rem;
  margin: 1.8rem 0 0.8rem;
  color: var(--dusty-rose);
}

p {
  margin-bottom: 1.3rem;
  color: #2d3e3e;
}

/* Interactive Elements */
.interactive-pause {
  background: #f7f0e8;
  border-radius: 28px;
  padding: 1.8rem 2rem;
  margin: 2rem 0;
  border-left: 8px solid var(--warm-terracotta);
  transition: all 0.3s ease;
}

.pause-question {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--deep-teal);
}

.btn-subtle {
  background: transparent;
  border: 2px solid var(--warm-terracotta);
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.btn-subtle:hover {
  background: var(--warm-terracotta);
  color: white;
  transform: translateY(-2px);
}

.reflection-box {
  background: #ffffffdb;
  border-radius: 28px;
  padding: 1.8rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-warm);
}

.check-in-box {
  background: linear-gradient(135deg, #f9f3ea 0%, #fff5ed 100%);
  border-radius: 28px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.check-in-box ul {
  list-style: none;
  text-align: left;
  max-width: 400px;
  margin: 1rem auto;
}

.check-in-box li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.check-in-box li i {
  color: var(--warm-terracotta);
  margin-top: 0.2rem;
}

.expert-quote {
  background: #f3ede5;
  border-radius: 32px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 6px solid var(--soft-ochre);
}

.expert-quote p {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.5;
  font-style: italic;
  color: #4a5b5b;
}

.expert-quote .quote-source {
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--warm-terracotta);
}

/* Internal Links */
.internal-link {
  background: #f0e8df;
  border-radius: 40px;
  padding: 0.3rem 1.2rem;
  text-decoration: none;
  color: var(--deep-teal);
  font-weight: 500;
  transition: 0.2s;
  display: inline-block;
  margin: 0.2rem 0;
}

.internal-link i {
  margin-right: 0.4rem;
}

.internal-link:hover {
  background: var(--warm-terracotta);
  color: white;
}

/* Author Card */
.soulspace-author-card {
  display: flex;
  gap: 1.8rem;
  background: white;
  border-radius: 28px;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-warm);
  flex-wrap: wrap;
}

.author-initials {
  width: 85px;
  height: 85px;
  background: linear-gradient(145deg, var(--deep-teal), #4a7a7a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: white;
  font-family: var(--font-serif);
}

.author-details {
  flex: 1;
}

.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--warm-terracotta);
}

.author-name {
  font-size: 1.5rem;
  margin: 0.2rem 0;
  color: var(--deep-teal);
}

.author-subtitle {
  color: #7a8f8f;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

/* Related Articles & Recommendations */
.related-articles-section {
  margin: 3rem 0 2rem;
  background: #fff8ef;
  border-radius: 28px;
  padding: 2rem;
}

.recommendations-section {
  margin: 2rem 0 2rem;
  background: #f7efe5;
  border-radius: 28px;
  padding: 2rem;
}

.section-title-sm {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--deep-teal);
}

.related-grid,
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}

.related-card,
.rec-card {
  background: white;
  border-radius: 20px;
  padding: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-warm);
  cursor: pointer;
}

.related-card a,
.rec-card a {
  text-decoration: none;
  font-weight: 600;
  color: var(--deep-teal);
  display: block;
  font-size: 1rem;
}

.related-card p,
.rec-card p {
  font-size: 0.85rem;
  color: #8f9b9b;
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.related-card:hover,
.rec-card:hover {
  transform: translateY(-4px);
  border-color: var(--warm-terracotta);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

/* ===== RECOMMENDATION ENGINE ===== */
.recommendations-section {
  margin: 3rem 0;
  padding: 2rem 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  background: #fafafa;
  border-radius: 24px;
  padding: 2rem;
}

.recommendations-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  text-align: center;
  position: relative;
}

.recommendations-section h3:after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #6c5ce7;
  margin: 12px auto 0;
  border-radius: 2px;
}

#development-recommendations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .recommendations-section {
    padding: 1.5rem;
    margin: 2rem 0;
  }

  #development-recommendations {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .recommendations-section h3 {
    font-size: 1.25rem;
  }
}

/* Sidebar Modules */
.sidebar-newsletter {
  background: var(--deep-teal);
  color: white;
  border-radius: 24px;
  padding: 1.8rem;
  margin-bottom: 2rem;
}

.sidebar-newsletter h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.sidebar-newsletter input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 60px;
  border: none;
  margin: 0.8rem 0;
  font-size: 0.9rem;
}

.sidebar-newsletter button {
  background: var(--warm-terracotta);
  border: none;
  padding: 0.8rem;
  width: 100%;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  color: white;
  transition: 0.3s;
}

.sidebar-newsletter button:hover {
  background: #b05f3e;
  transform: translateY(-2px);
}

.sidebar-module {
  background: white;
  border-radius: 28px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-warm);
}

.sidebar-module h4 {
  margin-bottom: 1rem;
  color: var(--deep-teal);
}

.table-of-contents ul {
  list-style: none;
}

.table-of-contents li {
  margin-bottom: 0.7rem;
}

.table-of-contents a {
  text-decoration: none;
  color: #4a5b5b;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  cursor: pointer;
  transition: 0.2s;
}

.table-of-contents a:hover {
  color: var(--warm-terracotta);
  transform: translateX(5px);
}

.progress-tracker label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.small-save {
  margin-top: 1rem;
  background: #e8ddd0;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  transition: 0.2s;
}

.small-save:hover {
  background: var(--soft-ochre);
}

.audio-player {
  background: #e8ddd0;
  border-radius: 60px;
  padding: 0.8rem 1.8rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  cursor: pointer;
  border: none;
  font-weight: 500;
  transition: 0.3s;
}

.audio-player:hover {
  background: #ddcebc;
  transform: translateY(-2px);
}

.hero-img {
  width: 100%;
  border-radius: 28px;
  object-fit: cover;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-soft);
}

.faq-item {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-warm);
}

.faq-item strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--deep-teal);
}

.anonymous-response {
  background: #fff5ed;
  border-radius: 28px;
  padding: 1.5rem;
  margin: 2rem 0;
  text-align: center;
}

.anonymous-response textarea {
  width: 100%;
  border-radius: 20px;
  border: 1px solid var(--border-warm);
  padding: 1rem;
  font-family: var(--font-sans);
  margin-top: 1rem;
  resize: vertical;
}

/* ===== READING MODE SELECTOR ===== */
.reading-mode-selector {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  background: #f7f0e8;
  border-radius: 60px;
  padding: 0.6rem 1.2rem;
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--border-warm);
}
.mode-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--deep-teal);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mode-btn {
  background: transparent;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #5f4e44;
  font-family: var(--font-sans);
}
.mode-btn:hover {
  background: rgba(196, 122, 90, 0.12);
}
.mode-btn.active {
  background: var(--warm-terracotta);
  color: white;
}
@media (max-width: 640px) {
  .reading-mode-selector {
    border-radius: 28px;
    padding: 0.6rem 1rem;
    justify-content: center;
  }
  .mode-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }
  .mode-label {
    font-size: 0.75rem;
    width: 100%;
    justify-content: center;
  }
}

/* ===== MOOD TRACKER ===== */
.mood-tracker {
  background: #f9f7f4;
  border-radius: 28px;
  padding: 1.8rem 2rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-soft);
}
.mood-tracker-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--deep-teal);
  margin-bottom: 1rem;
}
.mood-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mood-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: var(--border-warm);
  outline: none;
}
.mood-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--warm-terracotta);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.mood-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--warm-terracotta);
  cursor: pointer;
  border: 2px solid white;
}
.mood-label {
  font-size: 0.75rem;
  color: #8f9b9b;
  white-space: nowrap;
}
.mood-value-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mood-value-display span {
  font-size: 0.9rem;
  color: #4a5b5b;
}
.mood-save-btn {
  background: var(--deep-teal);
  border: none;
  padding: 0.4rem 1.2rem;
  border-radius: 40px;
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.85rem;
}
.mood-save-btn:hover {
  background: #3a7a7a;
}
.mood-status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--warm-terracotta);
  min-height: 1.4rem;
}
.mood-comparison {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-warm);
}
.comparison-result {
  font-size: 1rem;
  font-weight: 500;
  color: var(--deep-teal);
  text-align: center;
  padding: 0.5rem;
  background: #f0f0ea;
  border-radius: 12px;
}
@media (max-width: 640px) {
  .mood-tracker {
    padding: 1.2rem;
  }
  .mood-slider-container {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .mood-slider {
    order: 2;
    flex-basis: 100%;
  }
  .mood-label {
    font-size: 0.7rem;
  }
  .mood-value-display {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

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

/* ===== FUTURE LETTER ===== */
.future-letter {
  background: #f3ede5;
  border-radius: 28px;
  padding: 2rem 2.5rem;
  margin: 2.5rem 0;
  border-left: 8px solid var(--warm-terracotta);
  position: relative;
  overflow: hidden;
}
.future-letter::before {
  content: "✧";
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 8rem;
  color: rgba(196, 122, 90, 0.06);
  pointer-events: none;
  font-family: Georgia, serif;
}
.future-letter-icon {
  font-size: 2rem;
  color: var(--warm-terracotta);
  margin-bottom: 0.5rem;
}
.future-letter h3 {
  font-family: var(--font-serif);
  color: var(--deep-teal);
  margin-top: 0;
  font-size: 1.6rem;
}
.future-letter-body {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3a3a3a;
}
.future-letter-body p {
  margin-bottom: 0.8rem;
}
.future-letter-body em {
  color: #5f4e44;
}
@media (max-width: 640px) {
  .future-letter {
    padding: 1.5rem;
  }
  .future-letter h3 {
    font-size: 1.3rem;
  }
  .future-letter-body {
    font-size: 0.95rem;
  }
}

/* ===== REACTION BUTTONS ===== */
.reaction-buttons {
  background: white;
  border-radius: 28px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-soft);
}
.reaction-label {
  display: block;
  font-weight: 600;
  color: var(--deep-teal);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.reaction-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.reaction-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f9f7f4;
  border: 2px solid var(--border-warm);
  border-radius: 40px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #3a2e28;
}
.reaction-btn:hover {
  border-color: var(--warm-terracotta);
  background: #fdf8f3;
  transform: translateY(-2px);
}
.reaction-btn.reacted {
  border-color: var(--warm-terracotta);
  background: #f0e8df;
}
.reaction-btn i {
  font-size: 1.1rem;
  color: var(--warm-terracotta);
}
.reaction-count {
  background: var(--border-warm);
  border-radius: 30px;
  padding: 0.05rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5f4e44;
}
.reaction-btn.reacted .reaction-count {
  background: var(--warm-terracotta);
  color: white;
}
@media (max-width: 640px) {
  .reaction-buttons {
    padding: 1.2rem;
  }
  .reaction-group {
    gap: 0.6rem;
  }
  .reaction-btn {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }
}

/* ===== PRINTABLE SUMMARY CARD ===== */
.printable-summary {
  background: white;
  border-radius: 28px;
  padding: 2rem;
  margin: 2.5rem 0;
  border: 2px solid var(--deep-teal);
  box-shadow: var(--shadow-soft);
}
.summary-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-warm);
}
.summary-header h3 {
  margin: 0;
  color: var(--deep-teal);
  font-family: var(--font-serif);
  font-size: 1.5rem;
}
.summary-header i {
  font-size: 1.6rem;
  color: var(--deep-teal);
}
.print-hint {
  font-size: 0.75rem;
  color: #8f9b9b;
  background: var(--border-warm);
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  margin-left: auto;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.summary-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  background: #f9f7f4;
  border-radius: 16px;
  padding: 1rem;
  transition: 0.2s;
}
.summary-item:hover {
  background: #f3ede5;
}
.summary-icon {
  font-size: 1.5rem;
  line-height: 1.2;
  flex-shrink: 0;
}
.summary-item strong {
  display: block;
  color: var(--deep-teal);
  font-size: 0.95rem;
}
.summary-item p {
  font-size: 0.85rem;
  color: #5f4e44;
  margin: 0.2rem 0 0;
  line-height: 1.4;
}
.summary-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid var(--border-warm);
}
.btn-print {
  background: var(--deep-teal);
  border: none;
  padding: 0.7rem 2rem;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-print:hover {
  background: #3a7a7a;
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .printable-summary {
    padding: 1.2rem;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .summary-header h3 {
    font-size: 1.2rem;
  }
  .print-hint {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
  .btn-print {
    width: 100%;
    justify-content: center;
  }
}

/* ===== SKIP TO SOLUTIONS BUTTON ===== */
.skip-to-solutions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--deep-teal);
  color: white;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(44, 95, 95, 0.35);
  transition: all 0.4s ease;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  font-family: var(--font-sans);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.skip-to-solutions.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}
.skip-to-solutions:hover {
  background: #3a7a7a;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(44, 95, 95, 0.45);
}
@media (max-width: 640px) {
  .skip-to-solutions {
    bottom: 1rem;
    right: 1rem;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
}

/* ===== BREAK INTERSTITIAL ===== */
.break-interstitial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 95, 95, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s ease;
  pointer-events: none;
}
.break-interstitial.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.break-content {
  background: white;
  border-radius: 32px;
  padding: 3rem 4rem;
  max-width: 520px;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  transform: scale(0.95);
  transition: transform 0.5s ease;
}
.break-interstitial.active .break-content {
  transform: scale(1);
}
.break-content h3 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--deep-teal);
  margin: 1rem 0 0.5rem;
}
.break-content p {
  font-size: 1.1rem;
  color: #5f4e44;
  margin-bottom: 1.5rem;
}
.btn-close-break {
  background: var(--warm-terracotta);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-size: 1rem;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.btn-close-break:hover {
  background: #b05f3e;
  transform: translateY(-2px);
}
@media (max-width: 640px) {
  .break-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  .break-content h3 {
    font-size: 1.6rem;
  }
  .break-content p {
    font-size: 1rem;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .skip-to-solutions,
  .break-interstitial,
  .reading-mode-selector,
  .live-poll,
  .reaction-buttons,
  .mood-tracker-before,
  .mood-tracker-after,
  .sidebar-newsletter,
  .sidebar-module,
  .site-header,
  .site-footer,
  #universal-comments {
    display: none !important;
  }
  .printable-summary {
    border: 2px solid #333 !important;
    page-break-inside: avoid;
  }
  .printable-summary .summary-actions {
    display: none !important;
  }
  .future-letter {
    border-left: 4px solid #333 !important;
  }
  .references-section {
    background: #f5f5f5 !important;
    border-left: 4px solid #333 !important;
  }
  body {
    font-size: 12pt !important;
  }
  h1 {
    font-size: 24pt !important;
  }
  .container {
    max-width: 100% !important;
    padding: 0 20px !important;
  }
  .article-grid {
    display: block !important;
  }
  .sidebar {
    display: none !important;
  }
  .main-content {
    max-width: 100% !important;
  }
  .hero-img {
    max-width: 80% !important;
    margin: 1rem auto !important;
  }
  .section-image {
    max-width: 80% !important;
    margin: 1rem auto !important;
  }
}

/* ===== RESPONSIVE FIXES ===== */
@media (max-width: 768px) {
  .mood-slider-container {
    flex-wrap: wrap;
  }
  .mood-slider {
    flex-basis: 100%;
    order: 2;
  }
  .mood-label {
    font-size: 0.7rem;
  }
  .poll-options {
    gap: 0.4rem;
  }
  .poll-option {
    font-size: 0.82rem;
    padding: 0.4rem 0.8rem;
  }
  .reaction-group {
    gap: 0.4rem;
  }
  .reaction-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .future-letter {
    padding: 1.2rem;
  }
  .future-letter h3 {
    font-size: 1.3rem;
  }
}
@media (max-width: 480px) {
  .reading-mode-selector {
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
  }
  .mode-btn {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }
  .mood-tracker {
    padding: 1rem;
  }
  .live-poll {
    padding: 1rem;
  }
  .reaction-buttons {
    padding: 1rem;
  }
  .printable-summary {
    padding: 1rem;
  }
  .break-content {
    padding: 1.5rem 1rem;
  }
  .poll-option {
    font-size: 0.78rem;
    padding: 0.35rem 0.7rem;
  }
  .poll-count {
    font-size: 0.7rem;
    padding: 0.05rem 0.6rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .mood-tracker {
    padding: 1.5rem;
  }
  .mood-slider-container {
    gap: 0.6rem;
  }
  .mood-label-left,
  .mood-label-right {
    font-size: 0.7rem;
  }
  .mood-value {
    font-size: 1.2rem;
    min-width: 30px;
  }
  .mood-comparison .comparison-text {
    font-size: 0.95rem;
  }
  .mood-comparison .comparison-detail {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .mood-tracker {
    padding: 1rem;
  }
  .mood-slider-container input[type="range"] {
    min-width: 100px;
    height: 6px;
  }
  .mood-slider-container input[type="range"]::-webkit-slider-thumb {
    width: 20px;
    height: 20px;
  }
  .mood-tracker .mood-save-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }
  .mood-value {
    font-size: 1rem;
  }
}

/* Printable Summary Card */
.summary-card {
  background: white;
  border-radius: 28px;
  padding: 2.5rem 2.5rem;
  margin: 2rem 0;
  border: 2px solid var(--border-warm);
  box-shadow: var(--shadow-soft);
  page-break-inside: avoid;
}
.summary-card .summary-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--deep-teal);
  text-align: center;
  margin-bottom: 0.3rem;
}
.summary-card .summary-subtitle {
  text-align: center;
  color: #8a9a9a;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.summary-card .summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.summary-card .summary-item {
  padding: 0.8rem 1rem;
  background: #f9f6f0;
  border-radius: 16px;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.summary-card .summary-item .summary-icon {
  color: var(--warm-terracotta);
  font-size: 1.2rem;
  margin-top: 0.1rem;
}
.summary-card .summary-item .summary-text {
  font-size: 0.9rem;
  color: #2d3e3e;
  line-height: 1.4;
}
.summary-card .summary-item .summary-text strong {
  color: var(--deep-teal);
}
.summary-card .print-btn {
  display: block;
  margin: 1.5rem auto 0;
  padding: 0.8rem 2.5rem;
  background: var(--deep-teal);
  color: white;
  border: none;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}
.summary-card .print-btn:hover {
  background: #1a4a4a;
  transform: translateY(-2px);
}

/* Internal Links styling */
.internal-link {
  background: #f0e8df;
  border-radius: 40px;
  padding: 0.3rem 1.2rem;
  text-decoration: none;
  color: var(--deep-teal);
  font-weight: 500;
  transition: 0.2s;
  display: inline-block;
  margin: 0.2rem 0;
}
.internal-link i {
  margin-right: 0.4rem;
}
.internal-link:hover {
  background: var(--warm-terracotta);
  color: white;
}

/* Responsive for unique elements */
@media (max-width: 768px) {
  .poll-options {
    grid-template-columns: 1fr;
  }
  .summary-card .summary-grid {
    grid-template-columns: 1fr;
  }
  .future-self-letter {
    padding: 1.8rem 1.5rem;
  }
  .future-self-letter .letter-body {
    font-size: 0.95rem;
  }
  .reading-mode-selector {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 28px;
    padding: 0.8rem 1rem;
  }
  .mood-slider-container {
    flex-wrap: wrap;
  }
  .skip-solutions-btn {
    bottom: 16px;
    right: 16px;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
  .break-interstitial h2 {
    font-size: 1.6rem;
  }
  .break-interstitial p {
    font-size: 1rem;
  }
  .reaction-buttons {
    gap: 0.6rem;
  }
  .reaction-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .live-poll {
    padding: 1.2rem;
  }
  .summary-card {
    padding: 1.5rem;
  }
  .future-self-letter {
    padding: 1.2rem;
  }
  .future-self-letter .letter-body {
    font-size: 0.9rem;
  }
  .mood-tracker {
    padding: 1.2rem;
  }
  .break-interstitial {
    padding: 1.5rem;
  }
  .break-interstitial .break-icon {
    font-size: 3rem;
  }
  .break-interstitial h2 {
    font-size: 1.3rem;
  }
  .break-interstitial p {
    font-size: 0.9rem;
  }
  .reading-mode-selector {
    border-radius: 20px;
    padding: 0.6rem;
  }
  .mode-btn {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
  }
  .poll-option {
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
  .reaction-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
  .skip-solutions-btn {
    bottom: 12px;
    right: 12px;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  .skip-solutions-btn i {
    font-size: 0.9rem;
  }
}

@media print {
  .skip-solutions-btn,
  .break-interstitial,
  .reading-mode-selector,
  .live-poll,
  .reaction-buttons,
  .mood-tracker {
    display: none !important;
  }
  .summary-card {
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
  }
  .summary-card .print-btn {
    display: none;
  }
  .future-self-letter {
    border: 1px solid #ccc;
    box-shadow: none;
  }
  .future-self-letter::before {
    display: none;
  }
  body {
    background: white;
  }
  .site-header,
  .sidebar,
  .site-footer {
    display: none !important;
  }
  .main-content {
    max-width: 100%;
  }
  .container {
    padding: 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;
  }
}

@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-once {
  animation: fadeSlide 0.6s ease forwards;
}

@media (max-width: 900px) {
  .article-grid {
    flex-direction: column;
    gap: 2rem;
  }
  h1 {
    font-size: 2.4rem;
  }
  .sidebar {
    width: 100%;
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.6rem;
  }
  body {
    font-size: 16px;
  }
  .nav-links {
    gap: 1rem;
  }
  .soulspace-author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .related-grid,
  .rec-grid {
    grid-template-columns: 1fr;
  }
  .nav-bar {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  h1 {
    font-size: 1.8rem;
  }
  .subhead {
    font-size: 1rem;
  }
  .interactive-pause {
    padding: 1.2rem;
  }
  .reflection-box {
    padding: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Reading Mode - Hide non-essential content */
.essential-only .non-essential {
  display: none !important;
}

/* Ensure essential content stays visible */
.essential-content {
  display: block !important;
}

/* Keep these elements visible in essentials mode */
.essential-only h1,
.essential-only .subhead,
.essential-only .meta,
.essential-only .hero-img,
.essential-only .live-poll,
.essential-only .mood-tracker,
.essential-only .reading-mode-selector,
.essential-only .reaction-buttons,
.essential-only .future-self-letter,
.essential-only .check-in-box,
.essential-only .expert-quote,
.essential-only .reflection-box,
.essential-only .anonymous-response,
.essential-only .faq-section,
.essential-only .references-section,
.essential-only .author-bio,
.essential-only .disclaimer-box,
.essential-only .summary-card,
.essential-only .interactive-pause,
.essential-only .essential-content,
.essential-only .essential-content *,
.essential-only .internal-link {
  display: block !important;
}

/* Make sure paragraphs inside essential-content stay visible */
.essential-only .essential-content p,
.essential-only .essential-content h2,
.essential-only .essential-content h3,
.essential-only .essential-content div {
  display: block !important;
}

/* Keep internal links visible */
.essential-only .internal-link {
  display: inline-block !important;
}
