* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --sage-sky: #d6e2e9;
  --driftwood: #b68b6b;
  --warm-stone: #9e7b5e;
  --deep-teal: #2e5e6b;
  --paper-warm: #fef9f0;
  --border-soft: #e5d9cf;
  --shadow-soft: 0 20px 35px -12px rgba(0, 0, 0, 0.08);
  --font-sans: "Inter", system-ui, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
}
body {
  background: var(--paper-warm);
  font-family: var(--font-sans);
  color: #2c2c2c;
  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: rgba(255, 253, 248, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--deep-teal);
  text-decoration: none;
}
.logo span {
  color: var(--driftwood);
}
.nav-links {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: #3a3a44;
  font-weight: 500;
  transition: 0.2s;
}
.nav-links a:hover {
  color: var(--driftwood);
}
/* layout */
.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;
}
h1 {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--deep-teal);
  letter-spacing: -0.01em;
  margin: 1rem 0 0.5rem;
}
.subhead {
  font-size: 1.4rem;
  color: #6b5b4e;
  font-style: italic;
  margin-bottom: 1.2rem;
  border-left: 4px solid var(--driftwood);
  padding-left: 1.2rem;
}
.meta {
  display: flex;
  gap: 1.8rem;
  font-size: 0.9rem;
  color: #8b7a6b;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 0.8rem 0;
  margin: 1rem 0 1.5rem;
  flex-wrap: wrap;
}
h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 2rem 0 0.8rem;
  color: var(--deep-teal);
  font-weight: 600;
}
h3 {
  font-weight: 600;
  font-size: 1.4rem;
  margin: 1.5rem 0 0.5rem;
  color: var(--warm-stone);
}
p {
  margin-bottom: 1.3rem;
  color: #2e2e2e;
}
.interactive-pause {
  background: #f5efe7;
  border-radius: 28px;
  padding: 1.8rem 2rem;
  margin: 2rem 0;
  border-left: 8px solid var(--driftwood);
  transition: 0.2s;
}
.pause-question {
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.reflection-box {
  background: #ffffffdb;
  border-radius: 28px;
  padding: 1.8rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}
.btn-subtle {
  background: transparent;
  border: 1px solid var(--driftwood);
  padding: 0.6rem 1.4rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
  margin-top: 0.8rem;
}
.btn-subtle:hover {
  background: var(--driftwood);
  color: white;
}
.expert-quote {
  background: #f3ede6;
  border-radius: 32px;
  padding: 2rem;
  margin: 2rem 0;
  font-style: normal;
}
.expert-quote p {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.hero-img {
  width: 100%;
  border-radius: 32px;
  object-fit: cover;
  margin: 1.5rem 0;
  box-shadow: var(--shadow-soft);
}
/* author card */
.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-soft);
  flex-wrap: wrap;
}
.author-initials {
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, var(--deep-teal), #48727f);
  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: 1px;
  color: var(--driftwood);
}
.author-name {
  font-size: 1.5rem;
  margin: 0.2rem 0;
}
.internal-link {
  background: #e9dfd4;
  border-radius: 40px;
  padding: 0.2rem 1rem;
  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.3rem;
}
.internal-link:hover {
  background: var(--driftwood);
  color: white;
}
.related-articles-section {
  margin: 3rem 0 2rem;
  background: #faf4ea;
  border-radius: 28px;
  padding: 2rem;
}
.section-title-sm {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.2rem;
  margin-top: 1rem;
}
.related-card {
  background: white;
  border-radius: 20px;
  padding: 1rem;
  transition: all 0.2s;
  border: 1px solid var(--border-soft);
  cursor: pointer;
}
.related-card a {
  text-decoration: none;
  font-weight: 600;
  color: var(--deep-teal);
  display: block;
}
.related-card p {
  font-size: 0.85rem;
  color: #6c6370;
  margin-top: 0.4rem;
  margin-bottom: 0;
}
.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--driftwood);
}
.sidebar-newsletter {
  background: var(--deep-teal);
  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;
}
.sidebar-newsletter button {
  background: var(--driftwood);
  border: none;
  padding: 0.8rem;
  width: 100%;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  color: white;
}
.sidebar-module {
  background: white;
  border-radius: 28px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-soft);
}

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

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

/* Reading Mode Selector */
.reading-mode-selector {
  display: flex;
  gap: 0.8rem;
  background: #f5efe7;
  border-radius: 60px;
  padding: 0.5rem;
  margin: 0.5rem 0 1.5rem;
  border: 1px solid var(--border-soft);
  flex-wrap: wrap;
}
.reading-mode-selector button {
  flex: 1;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: transparent;
  color: #6b5b4e;
  min-width: 120px;
}
.reading-mode-selector button.active {
  background: var(--deep-teal);
  color: white;
  box-shadow: 0 4px 12px rgba(46, 94, 107, 0.25);
}
.reading-mode-selector button:hover:not(.active) {
  background: #e5d9cf;
}
.reading-mode-selector button i {
  margin-right: 0.5rem;
}

/* === FIX: Hide elements in essentials mode === */
.essentials-mode .optional-content,
.essentials-mode .interactive-pause,
.essentials-mode .reflection-box,
.essentials-mode .expert-quote,
.essentials-mode .faq-section,
.essentials-mode .future-self-letter,
.essentials-mode .reaction-buttons,
.essentials-mode .mood-tracker,
.essentials-mode .references-section,
.essentials-mode .printable-summary,
.essentials-mode .recommendation-engine,
.essentials-mode .soulspace-author-card,
.essentials-mode .disclaimer-box,
.essentials-mode .related-articles-section,
.essentials-mode #universal-comments,
.essentials-mode .hero-img:not(:first-of-type) {
  display: none !important;
}

/* Skip to Solutions Button */
.skip-solutions-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--deep-teal);
  color: white;
  border: none;
  border-radius: 60px;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(46, 94, 107, 0.35);
  transition: all 0.3s ease;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.skip-solutions-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.skip-solutions-btn:hover {
  background: #3a7a8a;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(46, 94, 107, 0.45);
}
.skip-solutions-btn i {
  font-size: 1rem;
}

/* Live Poll */
.live-poll {
  background: white;
  border-radius: 28px;
  padding: 1.8rem 2rem;
  margin: 1.5rem 0 2rem;
  border: 2px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}
.live-poll-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}
.live-poll-header i {
  color: var(--driftwood);
  font-size: 1.4rem;
}
.live-poll-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--deep-teal);
}
.live-poll .poll-subtitle {
  color: #8b7a6b;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}
.poll-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.poll-option {
  background: #f9f5ef;
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: #3a2e28;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.poll-option:hover {
  background: #f0e8de;
  border-color: var(--driftwood);
}
.poll-option.selected {
  border-color: var(--deep-teal);
  background: #e8f0ee;
}
.poll-option .poll-votes {
  margin-left: auto;
  background: #e5d9cf;
  border-radius: 40px;
  padding: 0.1rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5f4e44;
}
.poll-option.selected .poll-votes {
  background: var(--deep-teal);
  color: white;
}
.poll-total {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: #8b7a6b;
  text-align: center;
}

/* Letter From Your Future Self */
.future-self-letter {
  background: linear-gradient(145deg, #f7f0e8, #efe6dd);
  border-radius: 32px;
  padding: 2.5rem 3rem;
  margin: 2rem 0;
  border-left: 8px solid var(--driftwood);
  position: relative;
  font-style: italic;
}
.future-self-letter::before {
  content: "✉";
  position: absolute;
  top: -18px;
  left: 30px;
  font-size: 2.2rem;
  background: var(--paper-warm);
  padding: 0 0.8rem;
  border-radius: 12px;
}
.future-self-letter .letter-greeting {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--deep-teal);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.future-self-letter p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #3a2e28;
  margin-bottom: 1rem;
}
.future-self-letter .letter-signoff {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--driftwood);
  margin-top: 0.5rem;
  font-weight: 500;
}

/* Break Interstitial */
.break-interstitial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
  animation: fadeIn 0.5s ease;
}
.break-interstitial.show {
  display: flex;
}
.break-interstitial-content {
  background: var(--paper-warm);
  border-radius: 40px;
  padding: 3rem 4rem;
  max-width: 600px;
  text-align: center;
  animation: scaleIn 0.5s ease;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}
.break-interstitial-content i {
  font-size: 3rem;
  color: var(--driftwood);
  margin-bottom: 1rem;
}
.break-interstitial-content h2 {
  font-family: var(--font-serif);
  color: var(--deep-teal);
  margin-bottom: 0.5rem;
  font-size: 2rem;
}
.break-interstitial-content p {
  font-size: 1.1rem;
  color: #5f4e44;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.break-interstitial-content button {
  background: var(--deep-teal);
  color: white;
  border: none;
  border-radius: 60px;
  padding: 0.8rem 2.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.break-interstitial-content button:hover {
  background: #3a7a8a;
  transform: scale(1.02);
}

/* Reaction Buttons */
.reaction-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
  justify-content: center;
}
.reaction-btn {
  background: white;
  border: 2px solid var(--border-soft);
  border-radius: 60px;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #3a2e28;
}
.reaction-btn:hover {
  border-color: var(--driftwood);
  background: #f9f5ef;
  transform: translateY(-2px);
}
.reaction-btn.clicked {
  border-color: var(--deep-teal);
  background: #e8f0ee;
  transform: scale(0.96);
}
.reaction-btn .reaction-count {
  background: #e5d9cf;
  border-radius: 40px;
  padding: 0.1rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #5f4e44;
  min-width: 20px;
  text-align: center;
}
.reaction-btn.clicked .reaction-count {
  background: var(--deep-teal);
  color: white;
}

/* Mood Tracker */
.mood-tracker {
  background: white;
  border-radius: 28px;
  padding: 1.8rem 2rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}
.mood-tracker label {
  display: block;
  font-weight: 600;
  color: var(--deep-teal);
  margin-bottom: 0.3rem;
  font-size: 1rem;
}
.mood-tracker .mood-description {
  color: #8b7a6b;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}
.mood-tracker .slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.mood-tracker input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: #e5d9cf;
  outline: none;
  transition: background 0.3s ease;
}
.mood-tracker input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--deep-teal);
  cursor: pointer;
  transition: all 0.3s ease;
}
.mood-tracker input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--deep-teal);
  cursor: pointer;
  border: none;
}
.mood-tracker .mood-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--deep-teal);
  min-width: 40px;
  text-align: center;
}
.mood-tracker .mood-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #8b7a6b;
  margin-top: 0.2rem;
  padding: 0 2px;
}
.mood-tracker .save-mood-btn {
  background: var(--driftwood);
  color: white;
  border: none;
  border-radius: 40px;
  padding: 0.5rem 1.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.8rem;
}
.mood-tracker .save-mood-btn:hover {
  background: #a67b5a;
}
.mood-tracker .mood-shift {
  margin-top: 1rem;
  padding: 1rem;
  background: #f5efe7;
  border-radius: 16px;
  display: none;
  text-align: center;
}
.mood-tracker .mood-shift.show {
  display: block;
}
.mood-tracker .mood-shift .shift-positive {
  color: #4a8a6a;
  font-weight: 600;
}
.mood-tracker .mood-shift .shift-negative {
  color: #b05a4a;
  font-weight: 600;
}
.mood-tracker .mood-shift .shift-neutral {
  color: #8b7a6b;
  font-weight: 600;
}

/* Printable Summary Card */
.printable-summary {
  background: white;
  border-radius: 28px;
  padding: 2.5rem;
  margin: 2rem 0;
  border: 2px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}
.printable-summary .summary-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-soft);
  padding-bottom: 1rem;
}
.printable-summary .summary-header i {
  font-size: 2rem;
  color: var(--driftwood);
}
.printable-summary .summary-header h3 {
  margin: 0;
  font-family: var(--font-serif);
  color: var(--deep-teal);
  font-size: 1.6rem;
}
.printable-summary .summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
.printable-summary .summary-item {
  background: #f9f5ef;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--driftwood);
}
.printable-summary .summary-item strong {
  color: var(--deep-teal);
  display: block;
  margin-bottom: 0.2rem;
}
.printable-summary .summary-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #5f4e44;
}
.printable-summary .print-btn {
  margin-top: 1.5rem;
  background: var(--deep-teal);
  color: white;
  border: none;
  border-radius: 60px;
  padding: 0.8rem 2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.printable-summary .print-btn:hover {
  background: #3a7a8a;
}

/* Internal Links */
.internal-link {
  background: #e9dfd4;
  border-radius: 40px;
  padding: 0.2rem 1rem;
  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.3rem;
}
.internal-link:hover {
  background: var(--driftwood);
  color: white;
}

/* Recommendation Engine */
.recommendation-engine {
  background: #faf4ea;
  border-radius: 28px;
  padding: 2rem;
  margin: 2rem 0;
}
.recommendation-engine h3 {
  font-family: var(--font-serif);
  color: var(--deep-teal);
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.recommendation-engine .rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.recommendation-engine .rec-card {
  background: white;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  border: 1px solid var(--border-soft);
  transition: all 0.3s ease;
  text-decoration: none;
  color: #3a2e28;
  display: block;
}
.recommendation-engine .rec-card:hover {
  border-color: var(--driftwood);
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.recommendation-engine .rec-card i {
  color: var(--driftwood);
  margin-right: 0.5rem;
}
.recommendation-engine .rec-card strong {
  color: var(--deep-teal);
  display: block;
  margin-bottom: 0.2rem;
}
.recommendation-engine .rec-card p {
  font-size: 0.85rem;
  margin: 0;
  color: #6b5b4e;
}

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

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .poll-options {
    grid-template-columns: 1fr;
  }
  .reading-mode-selector {
    flex-direction: column;
    border-radius: 28px;
  }
  .reading-mode-selector button {
    width: 100%;
  }
  .future-self-letter {
    padding: 1.8rem 1.5rem;
  }
  .future-self-letter::before {
    font-size: 1.6rem;
    top: -14px;
    left: 20px;
    padding: 0 0.5rem;
  }
  .break-interstitial-content {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }
  .break-interstitial-content h2 {
    font-size: 1.5rem;
  }
  .printable-summary .summary-grid {
    grid-template-columns: 1fr;
  }
  .printable-summary {
    padding: 1.5rem;
  }
  .reaction-buttons {
    flex-direction: column;
    align-items: center;
  }
  .reaction-btn {
    width: 100%;
    justify-content: center;
  }
  .skip-solutions-btn {
    bottom: 20px;
    right: 20px;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
  }
  .skip-solutions-btn span {
    display: none;
  }
  .mood-tracker .slider-container {
    flex-direction: row;
  }
  .recommendation-engine .rec-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 641px) and (max-width: 900px) {
  .poll-options {
    grid-template-columns: 1fr 1fr;
  }
  .printable-summary .summary-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media print {
  .skip-solutions-btn,
  .break-interstitial,
  .reading-mode-selector,
  .live-poll,
  .reaction-buttons,
  .mood-tracker,
  .sidebar,
  .site-header,
  .site-footer,
  .recommendation-engine,
  .related-articles-section,
  .disclaimer-box {
    display: none !important;
  }
  .printable-summary {
    border: 1px solid #ccc;
    box-shadow: none;
    page-break-inside: avoid;
  }
  .printable-summary .print-btn {
    display: none;
  }
  body {
    font-size: 12pt;
    background: white;
    color: black;
  }
  .main-content {
    max-width: 100%;
  }
  .container {
    max-width: 100%;
    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;
  }
}

@media (max-width: 900px) {
  .article-grid {
    flex-direction: column;
  }
  h1 {
    font-size: 2.4rem;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  h1 {
    font-size: 2rem;
  }
  .subhead {
    font-size: 1.1rem;
  }
  .soulspace-author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .nav-bar {
    flex-direction: column;
  }
  .nav-links {
    justify-content: center;
    gap: 1.2rem;
  }
}
@keyframes gentleRise {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-img,
.interactive-pause,
.reflection-box {
  animation: gentleRise 0.55s ease forwards;
}
.audio-player {
  background: #ece2d8;
  border-radius: 60px;
  padding: 0.7rem 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0;
  cursor: pointer;
  border: none;
  font-weight: 500;
  transition: 0.2s;
}
