:root {
  --terracotta: #c96e4b;
  --terracotta-light: #e6a084;
  --terracotta-soft: #fae1d7;
  --cream: #fdf8f2;
  --warm-white: #fffaf5;
  --sage: #8ba888;
  --sage-light: #d4e2d0;
  --charcoal: #4a4a4a;
  --warm-gray: #7c6e65;
  --soft-gold: #edc9a0;
  --border-warm: #ecdac9;
  --shadow-warm: 0 20px 40px -15px rgba(201, 110, 75, 0.15);

  /* Typography */
  --font-display: "DM Serif Display", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-kid: "Quicksand", sans-serif;

  /* Spacing */
  --container-width: 1280px;
  --content-width: 760px;
  --sidebar-width: 300px;
  --border-radius-xl: 40px;
  --border-radius-lg: 32px;
  --border-radius-md: 24px;
  --border-radius-sm: 16px;
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--cream);
  font-family: var(--font-sans);
  color: var(--charcoal);
  line-height: 1.7;
  font-size: 18px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

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

/* Smooth transitions */
a,
button,
.card,
.nav-link,
.rec-card {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: #3a2c25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 56px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #b55a3a 0%, #8ba888 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  font-size: 38px;
  margin: 3.5rem 0 1.2rem;
  position: relative;
  padding-bottom: 0.75rem;
}

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

h3 {
  font-size: 28px;
  margin: 2.2rem 0 1rem;
  color: #b55a3a;
  font-family: var(--font-kid);
  font-weight: 600;
}

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

a {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

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

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

/* ===== HEADER ===== */
.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: var(--font-display);
  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;
}

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

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

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

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

/* ===== META & HEADER ===== */
.meta-category {
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

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

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

.subhead {
  font-size: 24px;
  font-family: var(--font-kid);
  color: var(--warm-gray);
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  background: var(--terracotta-soft);
  padding: 0.8rem 1.5rem;
  border-radius: 60px;
  display: inline-block;
}

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

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

/* ===== HERO SECTION ===== */
.hero-wrapper {
  position: relative;
  margin: 2rem 0 3rem;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-warm);
  animation: gentleFloat 6s ease-in-out infinite;
  background: linear-gradient(135deg, #fae1d7 0%, #d4e2d0 100%);
}

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

.hero-svg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(58, 44, 37, 0.6), transparent);
  padding: 2rem;
  color: white;
}

/* ===== READING MODE SELECTOR ===== */
.reading-mode-selector {
  background: var(--warm-white);
  border-radius: 60px;
  padding: 0.5rem;
  display: inline-flex;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
  border: 2px solid var(--border-warm);
}

.mode-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  border: none;
  background: transparent;
  font-family: var(--font-kid);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

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

.mode-btn:not(.active):hover {
  background: var(--terracotta-soft);
}

.essentials-only {
  display: none;
}

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

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

/* ===== FLOATING SKIP BUTTON ===== */
.skip-solutions-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--terracotta);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1rem 1.8rem;
  font-family: var(--font-kid);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(201, 110, 75, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
  pointer-events: none;
}

.skip-solutions-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.skip-solutions-btn:hover {
  background: #b55a3a;
  transform: translateY(-3px);
}

/* ===== MOOD TRACKER ===== */
.mood-tracker {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1.8rem;
  margin: 2rem 0;
  border: 2px solid var(--border-warm);
  text-align: center;
}

.mood-tracker h4 {
  font-family: var(--font-kid);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.mood-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  background: var(--border-warm);
  border-radius: 10px;
  outline: none;
}

.mood-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--terracotta);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
}

.mood-value {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--terracotta);
  margin-top: 0.5rem;
}

.mood-compare {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--sage-light);
  border-radius: var(--border-radius-sm);
  display: none;
}

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

/* ===== LIVE POLL ===== */
.live-poll {
  background: var(--sage-light);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  border: 3px dashed var(--sage);
}

.poll-question {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #2d4a2d;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.poll-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.poll-opt {
  background: white;
  border-radius: 60px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.poll-opt:hover {
  background: var(--terracotta-soft);
  border-color: var(--terracotta);
  transform: translateX(8px);
}

.poll-opt.selected {
  background: var(--terracotta);
  color: white;
}

.poll-results-live {
  margin-top: 1.5rem;
  display: none;
}

.poll-results-live.show {
  display: block;
}

.poll-bar {
  height: 28px;
  background: white;
  border-radius: 28px;
  margin: 0.6rem 0;
  overflow: hidden;
}

.poll-fill {
  height: 100%;
  background: var(--terracotta);
  width: 0%;
  transition: width 0.5s;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  color: white;
  font-size: 0.85rem;
  font-weight: bold;
}

/* ===== LETTER FROM FUTURE SELF ===== */
.future-letter {
  background: linear-gradient(135deg, #fff5eb, #fae1d7);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  border-left: 8px solid var(--terracotta);
  font-style: italic;
  position: relative;
}

.future-letter:before {
  content: "✧";
  position: absolute;
  top: -15px;
  left: 30px;
  font-size: 2.5rem;
  color: var(--terracotta);
  background: var(--cream);
  padding: 0 1rem;
}

.future-letter h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #3a2c25;
}

/* ===== BREAK INTERSTITIAL ===== */
.break-interstitial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(58, 44, 37, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}

.break-interstitial.show {
  opacity: 1;
  visibility: visible;
}

.break-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 3rem;
  max-width: 450px;
  text-align: center;
  animation: fadeInUp 0.5s ease;
}

.break-card i {
  font-size: 4rem;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.break-card button {
  background: var(--terracotta);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 1.5rem;
}

/* ===== REACTION BUTTONS ===== */
.reaction-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--warm-white);
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--border-warm);
}

.reaction-btn {
  background: white;
  border: 2px solid var(--border-warm);
  border-radius: 60px;
  padding: 0.8rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.reaction-btn:hover {
  transform: translateY(-3px);
  border-color: var(--terracotta);
}

.reaction-count {
  background: var(--terracotta-soft);
  border-radius: 30px;
  padding: 0.2rem 0.6rem;
  font-size: 0.8rem;
}

/* ===== PRINTABLE SUMMARY CARD ===== */
.summary-card {
  background: linear-gradient(
    135deg,
    var(--terracotta-soft),
    var(--sage-light)
  );
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 3rem 0;
  border: 2px solid var(--terracotta);
}

.summary-card h3 {
  color: #3a2c25;
  margin-top: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.summary-item {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  text-align: center;
}

/* ===== EMOTIONAL HOOK ===== */
.hook-container {
  background: var(--warm-white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 2rem 0 3rem;
  border-left: 8px solid var(--terracotta);
  box-shadow: var(--shadow-warm);
  position: relative;
}

.hook-container:before {
  content: "❤️";
  position: absolute;
  top: -15px;
  left: 30px;
  font-size: 2rem;
  background: var(--cream);
  padding: 0 1rem;
}

.hook-text {
  font-size: 1.3rem;
  font-family: var(--font-kid);
  color: #3a2c25;
  font-weight: 500;
}

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

.expert-quote:before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 30px;
  font-size: 5rem;
  color: var(--terracotta-light);
  font-family: serif;
  opacity: 0.3;
}

.expert-avatar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avatar-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--sage));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
}

.expert-quote p {
  font-size: 1.3rem;
  font-style: italic;
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 4px solid var(--sage);
}

.quote-context {
  font-size: 0.95rem;
  color: var(--warm-gray);
  background: var(--cream);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
}

/* ===== TECHNIQUE CARDS ===== */
.technique-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.technique-card {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 1.8rem;
  border: 2px solid var(--border-warm);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.technique-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--terracotta), var(--sage));
  transform: scaleX(0);
  transition: transform 0.3s;
}

.technique-card:hover {
  transform: translateY(-8px);
  border-color: var(--terracotta);
  box-shadow: var(--shadow-warm);
}

.technique-card:hover:before {
  transform: scaleX(1);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--terracotta);
}

.technique-card h4 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  font-family: var(--font-kid);
  font-weight: 700;
}

/* ===== REFLECTION CORNER ===== */
.reflection-corner {
  background: linear-gradient(
    135deg,
    var(--terracotta-soft),
    var(--sage-light)
  );
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  position: relative;
}

.reflection-corner h3 {
  color: #3a2c25;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reflection-questions {
  list-style: none;
}

.reflection-questions li {
  margin: 1.2rem 0;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 60px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reflection-questions li:hover {
  background: white;
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.reflection-answers {
  display: none;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius-sm);
  margin-top: 0.5rem;
}

.reflection-answers.show {
  display: block;
}

/* ===== ANONYMOUS SHARE ===== */
.anonymous-share {
  background: white;
  border: 4px solid var(--sage);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
  position: relative;
}

.anonymous-share:after {
  content: "💭";
  position: absolute;
  bottom: -20px;
  right: 30px;
  font-size: 3rem;
  background: var(--cream);
  padding: 0.5rem;
  border-radius: 50%;
}

.share-prompt {
  font-size: 1.5rem;
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
  color: #2d4a2d;
}

.share-input {
  width: 100%;
  padding: 1.5rem;
  border: 2px solid var(--border-warm);
  border-radius: var(--border-radius-md);
  font-family: var(--font-kid);
  font-size: 1.1rem;
  margin: 1rem 0;
  resize: vertical;
}

.share-input:focus {
  border-color: var(--terracotta);
}

.share-btn {
  background: var(--terracotta);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 60px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.share-btn:hover {
  background: #b55a3a;
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(201, 110, 75, 0.3);
}

.share-responses {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: var(--border-radius-sm);
  font-style: italic;
  color: var(--warm-gray);
}

/* ===== CHECKLIST ===== */
.checklist {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  border: 2px solid var(--border-warm);
}

.checklist h4 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  margin: 0.5rem 0;
  background: var(--cream);
  border-radius: 60px;
  cursor: pointer;
}

.checklist-item input[type="checkbox"] {
  width: 24px;
  height: 24px;
  accent-color: var(--terracotta);
  cursor: pointer;
}

.checklist-item span {
  font-size: 1.1rem;
}

.checklist-item.checked {
  background: var(--terracotta-soft);
  text-decoration: line-through;
  opacity: 0.8;
}

/* ===== FAQ ===== */
.faq-section {
  background: var(--warm-white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  border: 2px solid var(--border-warm);
}

.faq-item {
  margin: 1.5rem 0;
  border-bottom: 2px dashed var(--border-warm);
  padding-bottom: 1.5rem;
}

.faq-question {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--terracotta);
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.faq-question i {
  transition: transform 0.3s;
}

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

.faq-answer {
  display: none;
  padding: 1rem 0 0 2.5rem;
}

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

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

.author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--terracotta), var(--sage));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3.5rem;
  border: 4px solid var(--cream);
}

.author-info {
  flex: 1;
}

.author-info h4 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #3a2c25;
}

.author-credentials {
  background: var(--cream);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  margin-top: 1rem;
  font-size: 0.95rem;
}

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

/* ===== REFERENCES ===== */
.references-section {
  background: var(--warm-white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  border: 2px solid var(--border-warm);
}

.references-section h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #3a2c25;
}

.references-section ol {
  margin-left: 1.5rem;
  line-height: 1.8;
}

.references-section a {
  color: var(--terracotta);
  word-break: break-all;
}

/* ===== RECOMMENDATION ENGINE ===== */
.recommendation-engine {
  background: var(--cream);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  border: 2px solid var(--border-warm);
}

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

.rec-header h4 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #3a2c25;
}

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

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

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

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

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

.rec-card:hover {
  transform: translateY(-8px) rotate(1deg);
  border-color: var(--terracotta);
  box-shadow: var(--shadow-warm);
}

/* ===== 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-module {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 2px solid var(--border-warm);
}

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

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem 1rem;
  border-radius: 40px;
  color: var(--charcoal);
  margin: 0.3rem 0;
}

.nav-link:hover {
  background: var(--terracotta-soft);
  transform: translateX(5px);
}

.progress-item {
  margin: 1rem 0;
}

.progress-bar {
  height: 10px;
  background: var(--border-warm);
  border-radius: 10px;
  overflow: hidden;
  margin: 0.5rem 0;
}

.progress-fill {
  height: 100%;
  background: var(--terracotta);
  width: 0%;
  transition: width 0.3s;
}

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

/* Essentials-only content wrapper */
.essentials-only {
  display: none;
}

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

body.essentials-mode .essentials-only {
  display: block !important;
}

/* Essentials mode content styling */
.essentials-only .essentials-hero {
  background: linear-gradient(135deg, #fae1d7, #d4e2d0);
  border-radius: 24px;
  padding: 2rem;
  margin: 1.5rem 0 2rem;
  text-align: center;
  border: 2px solid var(--terracotta);
}

.essentials-only .essentials-hero h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #3a2c25;
  margin-bottom: 0.5rem;
}

.essentials-only .essentials-hero p {
  font-size: 1.1rem;
  margin-bottom: 0;
  color: var(--charcoal);
}

.essentials-only .essentials-list {
  background: white;
  border-radius: 20px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  border: 2px solid var(--border-warm);
}

.essentials-only .essentials-list li {
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  padding-left: 1.8rem;
  position: relative;
  list-style: none;
  line-height: 1.6;
}

.essentials-only .essentials-list li:before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: 700;
}

.essentials-only .essentials-quote {
  background: var(--terracotta-soft);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--terracotta);
  font-style: italic;
  font-size: 1.1rem;
}

.essentials-only .essentials-summary {
  background: linear-gradient(135deg, #fae1d7, #d4e2d0);
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem 0;
  border: 2px solid var(--terracotta);
  text-align: center;
}

.essentials-only .essentials-summary h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: #3a2c25;
}

.essentials-only .essentials-summary .big-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  display: block;
}

/* Reading mode selector enhanced */
.reading-mode-selector {
  background: var(--warm-white);
  border-radius: 60px;
  padding: 0.5rem;
  display: inline-flex;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
  border: 2px solid var(--border-warm);
  flex-wrap: wrap;
}

.mode-btn {
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  border: none;
  background: transparent;
  font-family: var(--font-kid);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mode-btn.active {
  background: var(--terracotta);
  color: white;
  box-shadow: 0 4px 12px rgba(201, 110, 75, 0.3);
}

.mode-btn:not(.active):hover {
  background: var(--terracotta-soft);
  transform: translateY(-2px);
}

/* Skip to Solutions Button */
.skip-solutions-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--terracotta);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1rem 1.8rem;
  font-family: var(--font-kid);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(201, 110, 75, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
  font-size: 0.95rem;
}

.skip-solutions-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.skip-solutions-btn:hover {
  background: #b55a3a;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(201, 110, 75, 0.5);
}

/* Live Poll */
.live-poll {
  background: var(--sage-light);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  border: 3px dashed var(--sage);
}

.poll-question {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #2d4a2d;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-kid);
}

.poll-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.poll-opt {
  background: white;
  border-radius: 60px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
}

.poll-opt:hover {
  background: var(--terracotta-soft);
  border-color: var(--terracotta);
  transform: translateX(8px);
}

.poll-opt.selected {
  background: var(--terracotta);
  color: white;
}

.poll-results-live {
  margin-top: 1.5rem;
  display: none;
}

.poll-results-live.show {
  display: block;
}

.poll-bar {
  height: 28px;
  background: white;
  border-radius: 28px;
  margin: 0.6rem 0;
  overflow: hidden;
  position: relative;
}

.poll-fill {
  height: 100%;
  background: var(--terracotta);
  width: 0%;
  transition: width 0.6s ease;
  display: flex;
  align-items: center;
  padding-left: 1rem;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  min-width: 40px;
}

/* Letter from Future Self */
.future-letter {
  background: linear-gradient(135deg, #fff5eb, #fae1d7);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  border-left: 8px solid var(--terracotta);
  font-style: italic;
  position: relative;
}

.future-letter:before {
  content: "✧";
  position: absolute;
  top: -20px;
  left: 30px;
  font-size: 3rem;
  color: var(--terracotta);
  background: var(--cream);
  padding: 0 1rem;
  line-height: 1;
}

.future-letter h4 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #3a2c25;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.future-letter p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--charcoal);
}

.future-letter p:last-child {
  margin-bottom: 0;
}

/* Reaction Buttons */
.reaction-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--warm-white);
  border-radius: var(--border-radius-lg);
  border: 2px solid var(--border-warm);
}

.reaction-btn {
  background: white;
  border: 2px solid var(--border-warm);
  border-radius: 60px;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  color: var(--charcoal);
}

.reaction-btn:hover {
  transform: translateY(-3px);
  border-color: var(--terracotta);
  box-shadow: 0 6px 16px rgba(201, 110, 75, 0.15);
}

.reaction-btn i {
  color: var(--terracotta);
}

.reaction-count {
  background: var(--terracotta-soft);
  border-radius: 30px;
  padding: 0.15rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--terracotta);
}

/* Mood Tracker Enhanced */
.mood-tracker {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1.8rem;
  margin: 2rem 0;
  border: 2px solid var(--border-warm);
  text-align: center;
}

.mood-tracker h4 {
  font-family: var(--font-kid);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: #3a2c25;
}

.mood-tracker p {
  margin-bottom: 1rem;
  color: var(--warm-gray);
  font-size: 0.95rem;
}

.mood-slider-container {
  margin: 0.5rem 0 0.8rem;
}

.mood-slider {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border-warm);
  border-radius: 10px;
  outline: none;
  transition: background 0.3s;
}

.mood-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--terracotta);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mood-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--terracotta);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mood-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-top: 0.3rem;
}

.mood-compare {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--sage-light);
  border-radius: var(--border-radius-sm);
  display: none;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

.mood-compare i {
  color: var(--terracotta);
  margin-right: 0.5rem;
}

/* Break Interstitial */
.break-interstitial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(58, 44, 37, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
  padding: 1.5rem;
}

.break-interstitial.show {
  opacity: 1;
  visibility: visible;
}

.break-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 3rem 2.5rem;
  max-width: 450px;
  width: 100%;
  text-align: center;
  animation: fadeInUp 0.5s ease;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.break-card i {
  font-size: 4rem;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

.break-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #3a2c25;
  margin-bottom: 0.8rem;
}

.break-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--charcoal);
  margin-bottom: 0.6rem;
}

.break-card button {
  background: var(--terracotta);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1.5rem;
  font-family: var(--font-sans);
  transition: all 0.3s ease;
}

.break-card button:hover {
  background: #b55a3a;
  transform: scale(1.02);
}

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

/* Printable Summary Card */
.printable-summary {
  background: linear-gradient(
    135deg,
    var(--terracotta-soft),
    var(--sage-light)
  );
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 3rem 0;
  border: 2px solid var(--terracotta);
}

.printable-summary .summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.printable-summary .summary-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #3a2c25;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.printable-summary .print-hint {
  font-size: 0.8rem;
  color: var(--warm-gray);
  background: white;
  padding: 0.3rem 1rem;
  border-radius: 40px;
  border: 1px solid var(--border-warm);
}

.printable-summary .summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.printable-summary .summary-item {
  background: white;
  padding: 1rem 1.2rem;
  border-radius: var(--border-radius-sm);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid var(--border-warm);
}

.printable-summary .summary-item strong {
  display: block;
  color: var(--terracotta);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.printable-summary .summary-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  color: var(--warm-gray);
}

.printable-summary .print-btn {
  background: var(--terracotta);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.printable-summary .print-btn:hover {
  background: #b55a3a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(201, 110, 75, 0.3);
}

/* Additional image styling */
.additional-image-container {
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
}

.additional-image-container img {
  width: 100%;
  max-width: 700px;
  border-radius: 24px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.5s ease;
  display: block;
  margin: 0 auto;
}

.additional-image-container img:hover {
  transform: scale(1.01);
}

.additional-image-container .image-caption {
  font-size: 0.85rem;
  color: var(--warm-gray);
  margin-top: 0.6rem;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.additional-image-container .image-caption i {
  color: var(--terracotta);
}

/* Internal links styling */
.internal-link {
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--terracotta-soft);
  transition: all 0.3s ease;
  padding: 0.1rem 0.2rem;
}

.internal-link:hover {
  border-bottom-color: var(--terracotta);
  color: #b55a3a;
}

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

/* Newsletter in sidebar */
.sidebar-module input[type="email"] {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 40px;
  border: 2px solid var(--border-warm);
  background: var(--cream);
  margin: 0.5rem 0;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.sidebar-module input[type="email"]:focus {
  border-color: var(--terracotta);
  outline: none;
}

.sidebar-module button {
  width: 100%;
  padding: 0.8rem;
  background: var(--terracotta);
  color: white;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.sidebar-module button:hover {
  background: #b55a3a;
  transform: scale(1.02);
}

/* Responsive adjustments for unique elements */
@media (max-width: 768px) {
  .reading-mode-selector {
    width: 100%;
    justify-content: center;
  }

  .mode-btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
  }

  .future-letter {
    padding: 1.8rem;
  }

  .future-letter:before {
    font-size: 2.5rem;
    top: -18px;
    left: 20px;
    padding: 0 0.8rem;
  }

  .future-letter h4 {
    font-size: 1.3rem;
  }

  .future-letter p {
    font-size: 0.95rem;
  }

  .poll-opt {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }

  .reaction-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }

  .printable-summary .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .skip-solutions-btn {
    bottom: 20px;
    right: 20px;
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }

  .break-card {
    padding: 2rem 1.5rem;
  }

  .break-card h3 {
    font-size: 1.5rem;
  }

  .break-card p {
    font-size: 0.95rem;
  }

  .essentials-only .essentials-hero h2 {
    font-size: 1.5rem;
  }

  .essentials-only .essentials-list li {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .reading-mode-selector {
    flex-direction: column;
    align-items: stretch;
    border-radius: 30px;
    padding: 0.8rem;
  }

  .mode-btn {
    justify-content: center;
    padding: 0.6rem;
  }

  .reaction-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .reaction-btn {
    justify-content: center;
  }

  .printable-summary .summary-grid {
    grid-template-columns: 1fr;
  }

  .poll-options-grid {
    gap: 0.5rem;
  }

  .poll-opt {
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
  }

  .mood-tracker {
    padding: 1.2rem;
  }

  .mood-tracker h4 {
    font-size: 1.1rem;
  }

  .future-letter {
    padding: 1.2rem;
  }

  .future-letter:before {
    font-size: 2rem;
    top: -15px;
    left: 15px;
    padding: 0 0.5rem;
  }

  .future-letter h4 {
    font-size: 1.1rem;
  }

  .future-letter p {
    font-size: 0.9rem;
  }

  .skip-solutions-btn {
    bottom: 15px;
    right: 15px;
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    border-radius: 40px;
  }

  .break-card {
    padding: 1.5rem;
  }

  .break-card i {
    font-size: 3rem;
  }

  .break-card h3 {
    font-size: 1.3rem;
  }

  .essentials-only .essentials-hero {
    padding: 1.5rem;
  }

  .essentials-only .essentials-hero h2 {
    font-size: 1.3rem;
  }

  .essentials-only .essentials-list {
    padding: 1rem 1.2rem;
  }

  .essentials-only .essentials-list li {
    font-size: 0.85rem;
    padding-left: 1.5rem;
  }
}

@media (max-width: 380px) {
  .reaction-buttons {
    gap: 0.6rem;
    padding: 1rem;
  }

  .reaction-btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }

  .poll-opt {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
}

@media print {
  .reading-mode-selector,
  .skip-solutions-btn,
  .break-interstitial,
  .live-poll,
  .reaction-buttons,
  .site-header,
  .sidebar,
  .site-footer,
  .mood-tracker button {
    display: none !important;
  }

  .printable-summary {
    break-inside: avoid;
    border: 2px solid #ccc !important;
  }

  .mood-tracker {
    break-inside: avoid;
  }

  .full-depth-content {
    display: block !important;
  }

  .essentials-only {
    display: none !important;
  }

  body.essentials-mode .full-depth-content {
    display: block !important;
  }

  body.essentials-mode .essentials-only {
    display: none !important;
  }

  .printable-summary .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  body * {
    visibility: hidden;
  }
  .summary-card,
  .summary-card * {
    visibility: visible;
  }
  .summary-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 1rem;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .no-print,
  .skip-solutions-btn,
  .reaction-buttons,
  .live-poll,
  .mood-tracker,
  .break-interstitial,
  .reading-mode-selector {
    display: none !important;
  }
}

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

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

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

@media (max-width: 768px) {
  h1 {
    font-size: 40px;
  }
  .subhead {
    font-size: 20px;
  }
  .rec-grid {
    grid-template-columns: 1fr;
  }
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .hero-svg text:first-of-type {
    font-size: 22px !important;
  }
  .hero-svg text:last-of-type {
    font-size: 14px !important;
  }
}

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

@media (max-width: 550px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
  }
  .footer-newsletter-form {
    max-width: 280px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .main-wrapper {
    padding: 1rem;
  }
  h1 {
    font-size: 32px;
  }
  .hero-image {
    height: 250px;
  }
  .poll-opt {
    padding: 0.8rem;
  }
  .reaction-buttons {
    gap: 0.8rem;
  }
  .reaction-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .hook-text {
    font-size: 1.1rem;
  }
}

@media (max-width: 320px) {
  h1 {
    font-size: 28px;
  }
  .hook-text {
    font-size: 1rem;
  }
  .subhead {
    font-size: 16px;
  }
}

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