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

:root {
  --deep-sage: #2c5f4b;
  --warm-terracotta: #c97e5a;
  --golden-ochre: #c9a87b;
  --soft-cream: #fef8ed;
  --dusty-rose: #b87c6f;
  --charcoal-soft: #3a3b3c;
  --border-warm: #e8dfd3;
  --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(--soft-cream);
  font-family: var(--font-sans);
  color: #2b2b2b;
  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 - fully responsive */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(4px);
  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 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--deep-sage);
  text-decoration: none;
  white-space: nowrap;
}
.logo span {
  color: var(--warm-terracotta);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  text-decoration: none;
  color: #3a3a44;
  font-weight: 500;
  transition: 0.2s;
}
.nav-links a:hover {
  color: var(--warm-terracotta);
}

/* main grid: responsive flex/column */
.article-grid {
  display: flex;
  gap: 3rem;
  margin: 2rem 0 3rem;
  flex-wrap: wrap;
}
.main-content {
  flex: 2;
  min-width: 0; /* avoid overflow */
}
.sidebar {
  flex: 1;
  min-width: 260px;
}

/* typography */
.breadcrumb {
  margin: 1rem 0 0.5rem;
  font-size: 0.8rem;
  color: #9b8b96;
}
h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep-sage);
  letter-spacing: -0.02em;
  margin: 1rem 0 1rem;
}
.subhead {
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  color: #5b4c5c;
  font-style: italic;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--warm-terracotta);
  padding-left: 1.2rem;
}
.meta {
  display: flex;
  gap: 1.8rem;
  font-size: 0.9rem;
  color: #7f6e7c;
  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: clamp(1.5rem, 4vw, 2rem);
  margin: 2rem 0 1rem;
  color: var(--deep-sage);
  font-weight: 600;
}
p {
  margin-bottom: 1.3rem;
  color: #2c2c2e;
}
.hero-image {
  width: 100%;
  height: auto;
  border-radius: 32px;
  object-fit: cover;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-soft);
  display: block;
}

/* cards & interactive blocks */
.reflection-box {
  background: #ffffffdb;
  border-radius: 28px;
  padding: 1.8rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-warm);
  transition: all 0.3s ease;
}
.interactive-pause {
  background: linear-gradient(135deg, #f9f3e8 0%, #fff8f0 100%);
  border-radius: 32px;
  padding: 1.8rem 2rem;
  margin: 2rem 0;
  border-left: 8px solid var(--warm-terracotta);
}
.pause-question {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--deep-sage);
}
.btn-subtle {
  background: transparent;
  border: 1px solid var(--warm-terracotta);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
  margin-top: 0.8rem;
  font-size: 0.9rem;
}
.btn-subtle:hover {
  background: var(--warm-terracotta);
  color: white;
}
.expert-quote {
  background: linear-gradient(135deg, #f0ede8 0%, #faf5ed 100%);
  border-radius: 32px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 6px solid var(--golden-ochre);
}
.expert-quote p {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3vw, 1.3rem);
  line-height: 1.5;
  color: var(--deep-sage);
  font-style: italic;
}

/* author card responsive */
.soulspace-author-card {
  display: flex;
  gap: 1.8rem;
  background: white;
  border-radius: 32px;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-warm);
  flex-wrap: wrap;
}
.author-initials {
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, var(--deep-sage), #4a7b65);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: white;
  font-family: var(--font-serif);
  flex-shrink: 0;
}
.author-details {
  flex: 1;
}
.eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--warm-terracotta);
}
.author-name {
  font-size: 1.5rem;
  margin: 0.2rem 0;
}

/* related articles & grid */
.related-articles-section {
  margin: 3rem 0 2rem;
  background: #fff9f2;
  border-radius: 28px;
  padding: 2rem;
}
.section-title-sm {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--deep-sage);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.related-card {
  background: white;
  border-radius: 20px;
  padding: 1rem;
  transition: all 0.3s ease;
  border: 1px solid var(--border-warm);
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.related-card a {
  text-decoration: none;
  font-weight: 600;
  color: var(--deep-sage);
  display: block;
}
.related-card p {
  font-size: 0.8rem;
  color: #6c6370;
  margin-top: 0.4rem;
}
.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--warm-terracotta);
}

/* ===== 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 */
.sidebar-newsletter {
  background: linear-gradient(135deg, var(--deep-sage) 0%, #4a7b65 100%);
  color: white;
  border-radius: 24px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.sidebar-newsletter input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 60px;
  border: none;
  margin: 0.8rem 0;
  font-size: 1rem;
}
.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.2s;
}
.sidebar-module {
  background: white;
  border-radius: 28px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-warm);
}

.sidebar-module li {
  list-style-type: none;
}

.progress-tracker label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.small-save {
  margin-top: 1rem;
  background: #e3dbd0;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
}
.faq-section {
  background: #fff4ec;
  border-radius: 28px;
  padding: 1.8rem;
  margin: 2rem 0;
}
.faq-item {
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--border-warm);
}

/* 1. Reading Mode Selector */
.reading-mode-selector {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  flex-wrap: wrap;
  background: #f5f0ea;
  padding: 0.75rem 1.25rem;
  border-radius: 60px;
  border: 1px solid var(--border-warm);
  align-items: center;
}
.reading-mode-selector .mode-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #5f4e44;
  margin-right: 0.5rem;
}
.mode-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 40px;
  border: 1px solid #d5cbc0;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  color: #5f4e44;
  font-family: var(--font-sans);
}
.mode-btn.active {
  background: var(--deep-sage);
  color: white;
  border-color: var(--deep-sage);
}
.mode-btn:hover:not(.active) {
  background: #e8e0d8;
}
.mode-btn .badge {
  font-size: 0.6rem;
  background: var(--warm-terracotta);
  color: white;
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  margin-left: 0.3rem;
  vertical-align: middle;
}
.essentials-only .full-content,
.essentials-only .h2-full,
.essentials-only .p-full {
  display: none !important;
}
.full-depth .essentials-only {
  display: none !important;
}

/* 2. Skip to Solutions Button - Floating */
.skip-solutions-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--warm-terracotta);
  color: white;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(201, 126, 90, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.skip-solutions-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.skip-solutions-btn:hover {
  background: #b86a4a;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(201, 126, 90, 0.5);
}
.skip-solutions-btn i {
  margin-right: 0.5rem;
}

/* 3. Live Poll */
.live-poll {
  background: white;
  border-radius: 28px;
  padding: 1.8rem 2rem;
  margin: 1.5rem 0 2rem;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-soft);
}
.live-poll .poll-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.live-poll .poll-header .live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #e74c3c;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}
.live-poll .poll-question {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--deep-sage);
  margin: 0;
}
.poll-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin: 0.8rem 0;
}
.poll-option {
  background: #f9f5f0;
  border: 1px solid #e8e0d8;
  border-radius: 16px;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
.poll-option:hover {
  background: var(--soft-cream);
  border-color: var(--warm-terracotta);
}
.poll-option.selected {
  background: var(--deep-sage);
  color: white;
  border-color: var(--deep-sage);
}
.poll-option .vote-count {
  background: #e8e0d8;
  padding: 0.1rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5f4e44;
}
.poll-option.selected .vote-count {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}
.poll-total {
  text-align: right;
  font-size: 0.75rem;
  color: #9b8b96;
  margin-top: 0.5rem;
}
@media (max-width: 550px) {
  .poll-options {
    grid-template-columns: 1fr;
  }
  .live-poll {
    padding: 1.2rem;
  }
}

/* 4. Letter From Your Future Self */
.future-self-letter {
  background: linear-gradient(145deg, #f7f0e8 0%, #fef8f0 100%);
  border-radius: 32px;
  padding: 2.5rem 2.5rem;
  margin: 2.5rem 0;
  border-left: 6px solid var(--golden-ochre);
  font-family: var(--font-serif);
  position: relative;
}
.future-self-letter::before {
  content: "✉️";
  position: absolute;
  top: -18px;
  left: 30px;
  font-size: 2rem;
  background: var(--soft-cream);
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
}
.future-self-letter .letter-greeting {
  font-size: 1.1rem;
  color: var(--deep-sage);
  margin-bottom: 0.5rem;
}
.future-self-letter .letter-body {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #3a3a44;
  font-style: italic;
}
.future-self-letter .letter-body p {
  margin-bottom: 0.8rem;
}
.future-self-letter .letter-signoff {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--deep-sage);
  text-align: right;
}

/* 5. Break Interstitial */
.break-interstitial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(44, 95, 75, 0.92);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.break-interstitial.active {
  display: flex;
  opacity: 1;
}
.break-interstitial .break-content {
  background: white;
  border-radius: 40px;
  padding: 3rem 3.5rem;
  max-width: 520px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.break-interstitial .break-content .break-icon {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}
.break-interstitial .break-content h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--deep-sage);
  margin-bottom: 0.8rem;
}
.break-interstitial .break-content p {
  color: #5f4e44;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.break-interstitial .break-content .btn-continue {
  background: var(--deep-sage);
  color: white;
  border: none;
  padding: 0.8rem 2.5rem;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}
.break-interstitial .break-content .btn-continue:hover {
  background: #1f4a3a;
  transform: scale(1.02);
}
@media (max-width: 550px) {
  .break-interstitial .break-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  .break-interstitial .break-content h3 {
    font-size: 1.3rem;
  }
}

/* 6. Reaction Buttons */
.reaction-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0 2.5rem;
  justify-content: center;
}
.reaction-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: 60px;
  border: 1px solid var(--border-warm);
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #3a3a44;
}
.reaction-btn:hover {
  border-color: var(--warm-terracotta);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}
.reaction-btn.clicked {
  background: var(--deep-sage);
  color: white;
  border-color: var(--deep-sage);
}
.reaction-btn .reaction-count {
  background: #f0ebe5;
  padding: 0.1rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5f4e44;
}
.reaction-btn.clicked .reaction-count {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}
.reaction-label {
  text-align: center;
  font-size: 0.9rem;
  color: #9b8b96;
  margin-bottom: 0.5rem;
}

/* 7. Mood Tracker */
.mood-tracker {
  background: white;
  border-radius: 28px;
  padding: 1.8rem 2rem;
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-soft);
  margin: 1.5rem 0;
}
.mood-tracker .mood-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}
.mood-tracker .mood-header h4 {
  font-family: var(--font-serif);
  color: var(--deep-sage);
  margin: 0;
  font-size: 1.1rem;
}
.mood-tracker .mood-header .mood-badge {
  font-size: 0.7rem;
  background: #f0ebe5;
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  color: #5f4e44;
}
.mood-tracker .mood-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0;
}
.mood-tracker .mood-slider-container .mood-label {
  font-size: 0.8rem;
  color: #9b8b96;
  min-width: 30px;
}
.mood-tracker input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #e8e0d8;
  outline: none;
  transition: background 0.2s;
}
.mood-tracker input[type="range"]::-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-tracker input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--warm-terracotta);
  cursor: pointer;
  border: 2px solid white;
}
.mood-tracker .mood-value {
  font-weight: 600;
  color: var(--deep-sage);
  min-width: 35px;
  text-align: center;
  font-size: 1.1rem;
}
.mood-tracker .mood-save-btn {
  background: var(--deep-sage);
  color: white;
  border: none;
  padding: 0.4rem 1.5rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  margin-top: 0.5rem;
}
.mood-tracker .mood-save-btn:hover {
  background: #1f4a3a;
}
.mood-tracker .mood-result {
  margin-top: 0.8rem;
  padding: 0.8rem 1.2rem;
  border-radius: 16px;
  background: #f5f0ea;
  display: none;
  font-size: 0.9rem;
}
.mood-tracker .mood-result.show {
  display: block;
}
.mood-tracker .mood-result .shift-positive {
  color: var(--deep-sage);
  font-weight: 600;
}
.mood-tracker .mood-result .shift-negative {
  color: var(--warm-terracotta);
  font-weight: 600;
}
@media (max-width: 550px) {
  .mood-tracker {
    padding: 1.2rem;
  }
  .mood-tracker .mood-slider-container {
    flex-wrap: wrap;
  }
}

/* ===== ADDITIONAL CSS FOR CITATIONS & REFERENCES ===== */

/* Citation badges in text */
sup.citation {
  font-size: 0.7rem;
  color: var(--warm-terracotta);
  font-weight: 600;
  margin-left: 0.1rem;
  cursor: default;
  transition: color 0.2s ease;
}

sup.citation:hover {
  color: var(--deep-sage);
}

/* References section enhancements */
.references-section ol li {
  margin-bottom: 0.6rem;
  padding-left: 0.3rem;
}

.references-section ol li a {
  color: var(--warm-terracotta);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.references-section ol li a:hover {
  color: var(--deep-sage);
  text-decoration: underline;
}

.references-section .fair-use {
  font-size: 0.75rem;
  color: #9b8b96;
  border-top: 1px solid var(--border-warm);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

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

.internal-link:hover {
  background: var(--deep-sage);
  color: white;
  transform: translateY(-1px);
}

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

/* Responsive adjustments for references */
@media (max-width: 768px) {
  .references-section {
    padding: 1.5rem !important;
  }

  .references-section ol {
    padding-left: 0.8rem !important;
    font-size: 0.8rem !important;
  }

  .references-section ol li {
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .references-section {
    padding: 1rem !important;
  }

  .references-section ol {
    font-size: 0.75rem !important;
  }

  .references-section ol li a {
    font-size: 0.7rem !important;
  }
}

/* Print styles for references */
@media print {
  .references-section {
    background: #f5f0ea !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }

  .references-section ol li a {
    color: #2c5f4b !important;
    text-decoration: underline !important;
  }

  .internal-link {
    background: #eae3da !important;
    color: #2c5f4b !important;
  }

  .internal-link:hover {
    background: #eae3da !important;
    color: #2c5f4b !important;
  }
}

/* Printable Summary Card - BONUS */
.printable-summary {
  background: white;
  border-radius: 28px;
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  border: 2px solid var(--golden-ochre);
  box-shadow: var(--shadow-soft);
}
.printable-summary .summary-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px dashed var(--border-warm);
  padding-bottom: 1rem;
}
.printable-summary .summary-header h3 {
  font-family: var(--font-serif);
  color: var(--deep-sage);
  margin: 0;
  font-size: 1.4rem;
}
.printable-summary .summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.printable-summary .summary-item {
  background: #f9f5f0;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--golden-ochre);
}
.printable-summary .summary-item strong {
  display: block;
  color: var(--deep-sage);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.printable-summary .summary-item p {
  font-size: 0.85rem;
  color: #5f4e44;
  margin: 0;
}
.printable-summary .print-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.printable-summary .print-actions button {
  padding: 0.6rem 1.8rem;
  border-radius: 60px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}
.printable-summary .print-actions .btn-print {
  background: var(--deep-sage);
  color: white;
}
.printable-summary .print-actions .btn-print:hover {
  background: #1f4a3a;
}
.printable-summary .print-actions .btn-pdf {
  background: var(--warm-terracotta);
  color: white;
}
.printable-summary .print-actions .btn-pdf:hover {
  background: #b86a4a;
}
@media (max-width: 600px) {
  .printable-summary .summary-grid {
    grid-template-columns: 1fr;
  }
  .printable-summary {
    padding: 1.5rem;
  }
}
@media print {
  .printable-summary {
    border: 2px solid #2c5f4b;
    box-shadow: none;
    page-break-inside: avoid;
  }
  .printable-summary .print-actions {
    display: none;
  }
  .skip-solutions-btn,
  .break-interstitial {
    display: none !important;
  }
}

/* Responsive fixes for new elements */
@media (max-width: 768px) {
  .reading-mode-selector {
    padding: 0.6rem 1rem;
    border-radius: 40px;
    justify-content: center;
  }
  .mode-btn {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
  }
  .reading-mode-selector .mode-label {
    font-size: 0.75rem;
    width: 100%;
    text-align: center;
    margin-bottom: 0.2rem;
  }
  .future-self-letter {
    padding: 1.8rem 1.5rem;
  }
  .future-self-letter .letter-body {
    font-size: 1rem;
  }
  .skip-solutions-btn {
    bottom: 1rem;
    right: 1rem;
    padding: 0.7rem 1.2rem;
    font-size: 0.8rem;
  }
  .reaction-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  .reaction-buttons {
    gap: 0.6rem;
  }
}
@media (max-width: 480px) {
  .poll-options {
    grid-template-columns: 1fr;
  }
  .future-self-letter::before {
    font-size: 1.5rem;
    top: -14px;
    left: 20px;
  }
}

/* Print support */
@media print {
  .skip-solutions-btn,
  .break-interstitial,
  .live-poll .poll-option,
  .reaction-btn {
    display: none !important;
  }
  .reading-mode-selector {
    display: none !important;
  }
  .mood-tracker .mood-save-btn {
    display: none !important;
  }
}

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

.internal-link {
  background: #eae3da;
  border-radius: 40px;
  padding: 0.2rem 1rem;
  text-decoration: none;
  color: var(--deep-sage);
  font-weight: 500;
  transition: 0.2s;
  display: inline-block;
  margin: 0.2rem 0;
}
.audio-player {
  background: var(--deep-sage);
  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;
  color: white;
  transition: 0.2s;
}
@keyframes fadeSlide {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeSlide 0.5s ease forwards;
}

/* FULLY RESPONSIVE TWEAKS */
@media (max-width: 900px) {
  .article-grid {
    flex-direction: column;
    gap: 2rem;
  }
  .container {
    padding: 0 20px;
  }
}
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  .nav-bar {
    flex-direction: column;
    text-align: center;
  }
  .nav-links {
    justify-content: center;
  }
  .soulspace-author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .author-initials {
    margin-bottom: 0.5rem;
  }
  .reflection-box,
  .interactive-pause {
    padding: 1.2rem;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .meta {
    gap: 1rem;
  }
  .sidebar-module,
  .faq-section {
    padding: 1rem;
  }
  .btn-subtle,
  .small-save {
    width: 100%;
    text-align: center;
  }
}
img {
  max-width: 100%;
  height: auto;
}
textarea {
  max-width: 100%;
}
