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

/* ===== TODDLER-THEMED COLOR PALETTE ===== */
:root {
  --bg-warm: #fdf8f2;
  --bg-soft: #faf0e6;
  --text-deep: #4a3729;
  --text-soft: #6b5a4c;
  --primary-coral: #ffb5a0;
  --primary-peach: #ffd8be;
  --accent-mint: #c1e1d6;
  --accent-lavender: #e2d1e8;
  --accent-sunshine: #ffe8a3;
  --border-soft: #f0d9cc;
  --card-bg: #ffffffed;
  --quote-bg: #fff6ef;
  --shadow-soft: 0 20px 40px -15px rgba(74, 55, 41, 0.08);
  --font-sans: "Quicksand", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Source Serif Pro", Georgia, serif;
  --container-width: 1200px;
  --content-width: 760px;
  --sidebar-width: 280px;
  --border-radius-xl: 48px;
  --border-radius-lg: 32px;
  --border-radius-md: 24px;
  --border-radius-sm: 16px;
}

/* ===== BASE STYLES ===== */
body {
  background-color: var(--bg-warm);
  font-family: var(--font-sans);
  color: var(--text-deep);
  line-height: 1.7;
  font-size: 18px;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

/* ===== ACCESSIBILITY FOCUS STATES ===== */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible,
input:focus-visible,
textarea:focus-visible,
.rec-card:focus-visible {
  outline: 4px solid var(--primary-coral);
  outline-offset: 4px;
  border-radius: 8px;
}

/* ===== SMOOTH TRANSITIONS ===== */
a,
button,
.rec-card,
.audio-player-btn,
.nav-link,
.emotion-card,
.interactive-bubble,
.floating-badge {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
  color: #3d2e22;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 52px;
  margin-bottom: 0.75rem;
  font-weight: 600;
  background: linear-gradient(135deg, #4a3729 0%, #7b5a48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

h2:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-coral), var(--accent-mint));
  border-radius: 4px;
}

h3 {
  font-size: 26px;
  margin: 2.5rem 0 1.2rem;
  font-weight: 600;
  color: #5d4433;
}

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

a {
  color: #e07d6c;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

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

@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: "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;
}

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

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

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

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

/* ===== FLOATING DECORATIVE ELEMENTS ===== */
.floating-badge {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--accent-sunshine);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
  animation: float 6s ease-in-out infinite;
}

.floating-badge-1 {
  top: 100px;
  left: 20px;
  animation-delay: 0s;
}
.floating-badge-2 {
  bottom: 200px;
  right: 20px;
  background: var(--accent-mint);
  animation-delay: 2s;
}
.floating-badge-3 {
  top: 300px;
  right: 50px;
  background: var(--primary-peach);
  animation-delay: 4s;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

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

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

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

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

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

.byline i {
  color: var(--primary-coral);
  margin-right: 0.5rem;
}
.reading-time {
  display: flex;
  align-items: center;
}

/* ===== AUDIO PLAYER ===== */
.audio-player-container {
  background: white;
  border-radius: 100px;
  padding: 0.5rem 0.5rem 0.5rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  margin: 1rem 0 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  width: 100%;
  max-width: 450px;
}

.audio-player-btn {
  background: var(--primary-coral);
  border: none;
  border-radius: 60px;
  padding: 0.9rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: #3d2e22;
  cursor: pointer;
  transition: all 0.3s;
  flex-shrink: 0;
}

.audio-player-btn:hover {
  background: #ffa38a;
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(255, 181, 160, 0.4);
}

.audio-time {
  color: var(--text-soft);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== HERO SECTION ===== */
.hero-wrapper {
  position: relative;
  margin: 2rem 0 3rem;
}

.hero-container {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 216, 190, 0.3) 0%,
    rgba(193, 225, 214, 0.3) 100%
  );
  mix-blend-mode: soft-light;
}

.hero-caption {
  position: absolute;
  bottom: 20px;
  left: 30px;
  color: #3d2e22;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  padding: 0.8rem 2rem;
  border-radius: 60px;
  font-size: 1rem;
  font-weight: 500;
}

.emotion-badge {
  position: absolute;
  top: 20px;
  right: 30px;
  display: flex;
  gap: 0.8rem;
}

.emotion-badge span {
  background: white;
  padding: 0.8rem 1.5rem;
  border-radius: 60px;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  animation: wiggle 3s ease-in-out infinite;
}

.emotion-badge span:first-child {
  background: var(--primary-coral);
  animation-delay: 0s;
}
.emotion-badge span:last-child {
  background: var(--accent-mint);
  animation-delay: 1.5s;
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(3deg);
  }
  75% {
    transform: rotate(-3deg);
  }
}

/* ===== EMOTIONAL HOOK ===== */
.emotional-hook {
  font-size: 1.3rem;
  line-height: 1.7;
  color: #5d4433;
  background: rgba(255, 216, 190, 0.2);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  border-left: 8px solid var(--primary-coral);
  margin: 2rem 0;
  font-family: var(--font-serif);
  font-style: italic;
  position: relative;
}

.emotional-hook:before {
  content: "“";
  font-size: 6rem;
  position: absolute;
  left: 0.5rem;
  top: -1rem;
  color: var(--primary-coral);
  opacity: 0.2;
  font-family: serif;
}

/* ===== AUTHOR'S NOTE ===== */
.authors-note {
  background: var(--primary-peach);
  padding: 1.5rem 2rem;
  border-radius: 80px 80px 80px 20px;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.author-emoji {
  font-size: 3rem;
  background: white;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.emotion-card {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.emotion-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-coral);
}

.emotion-card.good-card:before,
.emotion-card.bad-card:before {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 4rem;
  opacity: 0.1;
  transition: all 0.3s;
}

.emotion-card.good-card:before {
  content: "😊";
}
.emotion-card.bad-card:before {
  content: "😔";
}
.emotion-card:hover:before {
  opacity: 0.2;
  transform: scale(1.1);
}

.emotion-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.emotion-card h4 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.emotion-translation {
  background: rgba(255, 216, 190, 0.3);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  margin-top: 1rem;
  border-left: 4px solid var(--primary-coral);
}

.flip-hint {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ===== INTERACTIVE BUBBLES ===== */
.interactive-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
  justify-content: center;
}

.interactive-bubble {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
}

.interactive-bubble:hover {
  transform: scale(1.1);
  border-color: var(--primary-coral);
}
.interactive-bubble.active {
  background: var(--primary-coral);
  border-color: white;
}

.bubble-emoji {
  font-size: 2rem;
  margin-bottom: 0.3rem;
}
.bubble-label {
  font-size: 0.8rem;
}

.bubble-feedback {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 2px dashed var(--primary-coral);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

/* ===== EXPERT QUOTES ===== */
.expert-quote {
  margin: 3rem 0;
  padding: 2rem 2rem 2rem 3rem;
  background: var(--quote-bg);
  border-radius: var(--border-radius-lg);
  position: relative;
  border: 1px solid var(--border-soft);
}

.expert-quote:before {
  content: '"';
  font-size: 8rem;
  position: absolute;
  left: 1rem;
  top: -1rem;
  color: var(--primary-coral);
  opacity: 0.2;
  font-family: serif;
}

.expert-quote p {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.6;
  font-style: italic;
  color: #4a3729;
  margin-bottom: 1rem;
}

.quote-source {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  color: #b48d7a;
}

.quote-context {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.95rem;
  color: #7e6859;
}

/* ===== REFLECTION BOX ===== */
.reflection-box {
  background: var(--accent-mint);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
}

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

.reflection-questions {
  list-style: none;
}
.reflection-questions li {
  margin-bottom: 1.2rem;
  padding-left: 2.5rem;
  position: relative;
  font-size: 1.1rem;
}
.reflection-questions li:before {
  content: "🧸";
  position: absolute;
  left: 0;
  opacity: 0.7;
}

/* ===== COLOR SORTING ANALOGY ===== */
.color-sorting-game {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  border: 3px solid var(--accent-sunshine);
}

.lego-row {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
  justify-content: center;
}

.lego-block {
  width: 60px;
  height: 60px;
  background: #ffb5a0;
  border-radius: 12px 12px 4px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #4a3729;
  box-shadow: 0 8px 0 #d49480;
}

.lego-block:nth-child(2) {
  background: #ffd8be;
  box-shadow: 0 8px 0 #d4b39e;
}
.lego-block:nth-child(3) {
  background: #c1e1d6;
  box-shadow: 0 8px 0 #9bb8ae;
}
.lego-block:nth-child(4) {
  background: #e2d1e8;
  box-shadow: 0 8px 0 #baaac2;
}
.lego-block:nth-child(5) {
  background: #ffe8a3;
  box-shadow: 0 8px 0 #cfbf82;
}

/* ===== ADD-A-WORD TOOL ===== */
.add-word-tool {
  background: linear-gradient(135deg, #fff6ef 0%, #ffe8de 100%);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
}

.word-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.word-example-card {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  text-align: center;
}

.word-example-card.toddler {
  border: 2px solid var(--primary-coral);
}
.word-example-card.parent {
  border: 2px solid var(--accent-mint);
}
.word-arrow {
  font-size: 2rem;
  color: var(--primary-coral);
  text-align: center;
}

/* ===== TANTRUM REFRAME ===== */
.tantrum-reframe {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.wave-animation {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0;
}

.wave {
  width: 20px;
  height: 20px;
  background: var(--primary-coral);
  border-radius: 50%;
  animation: wave 1.5s ease-in-out infinite;
}

.wave:nth-child(2) {
  animation-delay: 0.2s;
  background: var(--primary-peach);
}
.wave:nth-child(3) {
  animation-delay: 0.4s;
  background: var(--accent-mint);
}
.wave:nth-child(4) {
  animation-delay: 0.6s;
  background: var(--accent-lavender);
}
.wave:nth-child(5) {
  animation-delay: 0.8s;
  background: var(--accent-sunshine);
}

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

/* ===== ANONYMOUS RESPONSE ===== */
.anonymous-response {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  border: 3px solid var(--primary-peach);
  text-align: center;
}

.anonymous-response h4 {
  font-size: 28px;
  margin-bottom: 1rem;
}

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

.anonymous-response textarea:focus {
  border-color: var(--primary-coral);
  outline: none;
}

.anonymous-response button {
  background: var(--primary-coral);
  border: none;
  color: #3d2e22;
  padding: 1rem 2.5rem;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.anonymous-response button:hover {
  background: #ffa38a;
  transform: scale(1.02);
}
.response-note {
  font-size: 0.9rem;
  color: #b48d7a;
  margin-top: 1.2rem;
}

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

.faq-item {
  margin: 2rem 0;
  border-bottom: 2px dashed var(--border-soft);
  padding-bottom: 2rem;
}
.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #4a3729;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.faq-question i {
  color: var(--primary-coral);
  font-size: 1.5rem;
}

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

.author-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
}

.author-info {
  flex: 1;
}
.author-info h4 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.author-credentials {
  font-size: 0.95rem;
  color: #7e6859;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding-top: 1rem;
}

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

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

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

.rec-tab {
  padding: 0.6rem 1.8rem;
  background: white;
  border-radius: 40px;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}
.rec-tab.active {
  background: var(--primary-coral);
  border-color: var(--primary-coral);
  color: #3d2e22;
}
.rec-tab:hover {
  background: var(--primary-peach);
}

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

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

.rec-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-coral);
  box-shadow: 0 12px 30px rgba(255, 181, 160, 0.2);
}

.rec-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #b48d7a;
  margin-bottom: 0.5rem;
}
.rec-title {
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.4;
  color: #4a3729;
}
.rec-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: #b48d7a;
}

.pillar-filter {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.pillar-chip {
  padding: 0.6rem 1.5rem;
  background: white;
  border-radius: 40px;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  font-size: 0.9rem;
  font-weight: 600;
}
.pillar-chip:hover {
  background: var(--primary-peach);
}

/* ===== 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 STYLES ===== */
.sidebar-module {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-soft);
}

.sidebar-module h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #4a3729;
}
.sidebar-module ul {
  list-style: none;
}
.sidebar-module li {
  margin-bottom: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.5rem;
  border-radius: 8px;
  color: #7e6859;
  font-size: 0.95rem;
}
.nav-link:hover {
  background: var(--primary-peach);
}

.progress-tracker {
  text-align: center;
}
.progress-number {
  font-size: 2.5rem;
  font-family: var(--font-serif);
  color: var(--primary-coral);
  margin-bottom: 0.3rem;
}

.progress-checkbox {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.8rem 0;
  font-size: 0.95rem;
}
.progress-checkbox input {
  accent-color: var(--primary-coral);
}

.quick-reference-item {
  background: var(--bg-soft);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 0.8rem;
}
.quick-reference-item strong {
  color: var(--primary-coral);
  display: block;
  margin-bottom: 0.3rem;
}

.newsletter-form input {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border-radius: 60px;
  border: 1px solid var(--border-soft);
  margin-bottom: 0.8rem;
  font-family: var(--font-sans);
}
.newsletter-form button {
  width: 100%;
  padding: 0.8rem;
  background: var(--primary-coral);
  border: none;
  border-radius: 60px;
  font-weight: 700;
  color: #3d2e22;
  cursor: pointer;
}
.newsletter-form button:hover {
  background: #ffa38a;
}

/* ===== UNIQUE ELEMENTS STYLES ===== */
.reading-mode-selector {
  background: white;
  border-radius: 60px;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  flex-wrap: wrap;
}
.mode-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}
.mode-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-soft);
}
.mode-btn.active {
  background: var(--primary-coral);
  color: #3d2e22;
}
.mode-btn:hover:not(.active) {
  background: var(--primary-peach);
}

.mood-tracker-container {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  border: 2px solid var(--accent-mint);
}
.mood-tracker-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.mood-tracker-header h4 {
  margin: 0;
  font-size: 1.2rem;
}
.mood-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.mood-slider {
  flex: 1;
  min-width: 150px;
  height: 6px;
  -webkit-appearance: none;
  background: linear-gradient(90deg, #e8a090, #c1e1d6);
  border-radius: 10px;
}
.mood-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  background: var(--primary-coral);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid white;
}
.mood-label-left,
.mood-label-right {
  font-size: 0.85rem;
  color: var(--text-soft);
}
.mood-value {
  text-align: center;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--primary-coral);
}
.mood-save-btn {
  background: var(--accent-mint);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
.mood-save-btn:hover {
  background: #b0d5c8;
  transform: translateY(-2px);
}

.live-poll {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  border: 2px solid var(--primary-peach);
}
.poll-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}
.poll-header h4 {
  margin: 0;
  font-size: 1.2rem;
}
.poll-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.poll-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1.2rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 60px;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.poll-option:hover {
  background: var(--primary-peach);
  transform: translateX(4px);
}
.poll-count {
  margin-left: auto;
  background: var(--primary-coral);
  padding: 0.2rem 0.6rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
}
.poll-footer {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-soft);
  text-align: center;
}

.future-self-letter {
  background: linear-gradient(135deg, #e8d5c4 0%, #f5e6d8 100%);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 3rem 0;
  border: 1px solid #d4bfae;
}
.letter-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.letter-header h4 {
  margin: 0;
  font-size: 1.5rem;
  color: #4a3729;
}
.letter-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}
.letter-seal {
  text-align: center;
  margin-top: 1.5rem;
  font-style: italic;
  color: #8b735f;
}

.reaction-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.reaction-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: white;
  border: 2px solid var(--border-soft);
  border-radius: 60px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.reaction-btn:hover {
  background: var(--primary-peach);
  transform: translateY(-2px);
  border-color: var(--primary-coral);
}
.reaction-count {
  margin-left: 0.3rem;
  color: var(--primary-coral);
}

.skip-solutions-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-coral);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 60px;
  font-size: 1rem;
  font-weight: 600;
  color: #3d2e22;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
}
.skip-solutions-btn.visible {
  opacity: 1;
  visibility: visible;
}
.skip-solutions-btn:hover {
  transform: scale(1.05);
  background: #ffa38a;
}

.break-interstitial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 55, 41, 0.95);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}
.break-interstitial.active {
  opacity: 1;
  visibility: visible;
}
.break-content {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  max-width: 450px;
  text-align: center;
}
.break-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}
.break-continue-btn,
.break-pause-btn {
  margin: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.break-continue-btn {
  background: var(--primary-coral);
  color: #3d2e22;
}
.break-pause-btn {
  background: transparent;
  border: 2px solid var(--border-soft);
  color: var(--text-soft);
}

.printable-summary {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  border: 2px solid var(--accent-sunshine);
}
.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.print-hint {
  font-size: 0.75rem;
  color: var(--text-soft);
  cursor: pointer;
}
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.summary-item {
  background: var(--bg-soft);
  padding: 0.8rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
}
.summary-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  border-top: 1px solid var(--border-soft);
}

/* ============================================================
   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-summary {
  background: linear-gradient(135deg, #fef3e9, #fff9f2);
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem 0;
  border: 2px solid var(--primary-coral);
  text-align: center;
}

.essentials-only .essentials-summary h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: #4a3729;
}

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

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

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

/* Internal links styling */
.internal-link {
  color: #e07d6c;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--primary-coral);
  transition: all 0.2s ease;
}

.internal-link:hover {
  border-bottom-color: var(--accent-mint);
  color: #4a3729;
}

/* Image above section 7 styling */
.teachable-moments-image {
  margin: 2rem 0 1.5rem 0;
  text-align: center;
}

.teachable-moments-image img {
  width: 100%;
  max-width: 650px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.teachable-moments-image .image-caption {
  font-size: 0.85rem;
  color: #b48d7a;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Reading mode selector enhanced */
.reading-mode-selector {
  background: white;
  border-radius: 60px;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  flex-wrap: wrap;
}

.mode-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}

.mode-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-soft);
  transition: all 0.3s ease;
}

.mode-btn.active {
  background: var(--primary-coral);
  color: #3d2e22;
}

.mode-btn:hover:not(.active) {
  background: var(--primary-peach);
}

/* Skip to Solutions Button */
.skip-solutions-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--primary-coral);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 60px;
  font-size: 1rem;
  font-weight: 600;
  color: #3d2e22;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
  font-family: var(--font-sans);
}

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

.skip-solutions-btn:hover {
  transform: scale(1.05) translateY(-3px);
  background: #ffa38a;
  box-shadow: 0 12px 30px rgba(255, 181, 160, 0.4);
}

/* Live Poll */
.live-poll {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  border: 2px solid var(--primary-peach);
}

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

.poll-header h4 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--font-serif);
}

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

.poll-option {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.2rem;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  border-radius: 60px;
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
}

.poll-option:hover {
  background: var(--primary-peach);
  transform: translateX(4px);
  border-color: var(--primary-coral);
}

.poll-option .poll-emoji {
  font-size: 1.2rem;
}

.poll-count {
  margin-left: auto;
  background: var(--primary-coral);
  padding: 0.15rem 0.6rem;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #3d2e22;
}

.poll-footer {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-soft);
  text-align: center;
}

/* Letter from Future Self */
.future-self-letter {
  background: linear-gradient(135deg, #e8d5c4 0%, #f5e6d8 100%);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 3rem 0;
  border: 1px solid #d4bfae;
  position: relative;
}

.future-self-letter:before {
  content: "✧";
  font-size: 3.5rem;
  position: absolute;
  top: -20px;
  left: 30px;
  background: var(--bg-warm);
  padding: 0 15px;
  color: var(--primary-coral);
  line-height: 1;
}

.letter-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.letter-header h4 {
  margin: 0;
  font-size: 1.5rem;
  color: #4a3729;
  font-family: var(--font-serif);
}

.letter-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
  font-size: 1.05rem;
  color: #4a3729;
}

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

.letter-seal {
  text-align: center;
  margin-top: 1.5rem;
  font-style: italic;
  color: #8b735f;
  font-size: 0.95rem;
}

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

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

.reaction-btn:hover {
  background: var(--primary-peach);
  transform: translateY(-3px);
  border-color: var(--primary-coral);
  box-shadow: 0 6px 16px rgba(255, 181, 160, 0.2);
}

.reaction-count {
  margin-left: 0.3rem;
  background: var(--accent-mint);
  padding: 0.05rem 0.5rem;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #2d5a4b;
}

/* Mood Tracker Enhanced */
.mood-tracker-container {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  border: 2px solid var(--accent-mint);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.mood-tracker-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.mood-tracker-header h4 {
  margin: 0;
  font-size: 1.2rem;
  font-family: var(--font-serif);
}

.mood-slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.mood-slider {
  flex: 1;
  min-width: 150px;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, #e8a090, #c1e1d6);
  border-radius: 10px;
  outline: none;
}

.mood-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  background: var(--primary-coral);
  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: 22px;
  height: 22px;
  background: var(--primary-coral);
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mood-label-left,
.mood-label-right {
  font-size: 0.85rem;
  color: var(--text-soft);
  font-weight: 500;
}

.mood-value {
  text-align: center;
  font-weight: 600;
  margin: 0.5rem 0;
  color: var(--primary-coral);
  font-size: 1.05rem;
}

.mood-save-btn {
  background: var(--accent-mint);
  border: none;
  padding: 0.7rem 1.2rem;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  color: #2d5a4b;
}

.mood-save-btn:hover {
  background: #b0d5c8;
  transform: translateY(-2px);
}

.mood-feedback {
  margin-top: 0.8rem;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
  min-height: 1.5rem;
  color: #4a3729;
}

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

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

.break-content {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: 2.5rem;
  max-width: 450px;
  text-align: center;
  margin: 1rem;
}

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

.break-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  font-family: var(--font-serif);
  color: #4a3729;
}

.break-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0.8rem;
  color: #5d4433;
}

.break-continue-btn,
.break-pause-btn {
  margin: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.break-continue-btn {
  background: var(--primary-coral);
  color: #3d2e22;
}

.break-continue-btn:hover {
  background: #ffa38a;
  transform: scale(1.03);
}

.break-pause-btn {
  background: transparent;
  border: 2px solid var(--border-soft);
  color: var(--text-soft);
}

.break-pause-btn:hover {
  background: var(--bg-soft);
}

/* Printable Summary Card */
.printable-summary {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 1.8rem;
  margin: 2rem 0;
  border: 2px solid var(--accent-sunshine);
}

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

.summary-header h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.3rem;
}

.print-hint {
  font-size: 0.75rem;
  color: var(--text-soft);
  cursor: pointer;
  background: var(--bg-soft);
  padding: 0.3rem 0.8rem;
  border-radius: 40px;
  transition: all 0.3s ease;
}

.print-hint:hover {
  background: var(--primary-peach);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.summary-item {
  background: var(--bg-soft);
  padding: 0.8rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
  border-left: 3px solid var(--primary-coral);
}

.summary-item strong {
  display: block;
  color: #4a3729;
  margin-bottom: 0.2rem;
  font-size: 0.85rem;
}

.summary-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8rem;
  border-top: 1px solid var(--border-soft);
  color: var(--text-soft);
}

/* Newsletter in sidebar */
.sidebar-module .newsletter-form {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 1rem;
  margin-top: 1rem;
  border: 1px solid var(--border-soft);
}

.sidebar-module .newsletter-form input {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 60px;
  border: 2px solid var(--border-soft);
  background: #fffcf8;
  margin-bottom: 0.8rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.sidebar-module .newsletter-form input:focus {
  border-color: var(--primary-coral);
  outline: none;
}

.sidebar-module .newsletter-form button {
  width: 100%;
  padding: 0.7rem;
  background: var(--primary-coral);
  border: none;
  border-radius: 60px;
  font-weight: 700;
  color: #3d2e22;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

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

/* Responsive adjustments for unique elements */
@media (max-width: 768px) {
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .future-self-letter:before {
    font-size: 2.5rem;
    top: -15px;
    left: 20px;
    padding: 0 10px;
  }

  .letter-header h4 {
    font-size: 1.2rem;
  }

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

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

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

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

  .break-content {
    padding: 2rem;
    margin: 1rem;
  }

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

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

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

@media (max-width: 480px) {
  .reading-mode-selector {
    width: 100%;
    justify-content: center;
    border-radius: 30px;
    padding: 0.5rem 0.8rem;
    gap: 0.5rem;
  }

  .mode-label {
    font-size: 0.75rem;
    width: 100%;
    text-align: center;
  }

  .mode-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

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

  .poll-options {
    gap: 0.4rem;
  }

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

  .future-self-letter {
    padding: 1.5rem;
  }

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

  .letter-header h4 {
    font-size: 1rem;
  }

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

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

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

  .skip-solutions-btn {
    bottom: 15px;
    right: 15px;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: 50px;
  }

  .mood-tracker-container {
    padding: 1.2rem;
  }

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

  .mood-slider-container {
    gap: 0.5rem;
  }

  .mood-label-left,
  .mood-label-right {
    font-size: 0.75rem;
  }

  .break-content {
    padding: 1.5rem;
  }

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

  .break-continue-btn,
  .break-pause-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    width: 100%;
  }
}

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

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

  .mood-tracker-container {
    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;
  }
}

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

@media (max-width: 1024px) {
  .article-content {
    max-width: 700px;
  }
  h1 {
    font-size: 46px;
  }
  .emotion-showcase {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 17px;
  }
  h1 {
    font-size: 38px;
  }
  h2 {
    font-size: 30px;
  }
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
  .rec-grid {
    grid-template-columns: 1fr;
  }
  .rec-tabs {
    flex-direction: column;
  }
  .hero-container {
    height: 250px;
  }
  .emotion-badge {
    flex-direction: column;
    top: 10px;
    right: 10px;
  }
  .reaction-buttons {
    gap: 0.8rem;
  }
  .reaction-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  .skip-solutions-btn {
    bottom: 20px;
    right: 20px;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

@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;
    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 1rem 0;
  }
  h1 {
    font-size: 32px;
  }
  .hero-container {
    height: 200px;
  }
  .hero-caption {
    left: 10px;
    right: 10px;
    bottom: 10px;
    text-align: center;
    font-size: 0.8rem;
  }
  .anonymous-response {
    padding: 1.5rem;
  }
  .faq-section {
    padding: 1.5rem;
  }
  .audio-player-container {
    flex-direction: column;
    border-radius: 40px;
    padding: 1rem;
    width: 100%;
  }
  .reading-mode-selector {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 320px) {
  h1 {
    font-size: 28px;
  }
  .interactive-bubble {
    width: 70px;
    height: 70px;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .site-header,
  .sidebar,
  .audio-player-container,
  .floating-badge,
  .reading-mode-selector,
  .live-poll,
  .reaction-buttons,
  .skip-solutions-btn,
  .break-interstitial,
  .anonymous-response button,
  #universal-comments,
  .recommendation-engine,
  .footer-trust,
  .footer-disclaimer,
  .footer-newsletter-form,
  .newsletter-form,
  .progress-tracker button,
  .mood-save-btn {
    display: none !important;
  }
  .printable-summary {
    border: 2px solid #ccc;
    margin: 1rem 0;
  }
  body {
    font-size: 12pt;
  }
  .article-content {
    max-width: 100%;
  }
  h1 {
    font-size: 24pt;
  }
}
