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

:root {
  /* Baby-soft pastel palette for this article */
  --bg-warm: #fff9f5;
  --bg-soft: #ffeae3;
  --text-deep: #4a3b35;
  --text-soft: #6b5a52;
  --primary-blush: #f9c9c1;
  --primary-muted: #fad5cd;
  --accent-sand: #ecd6c4;
  --accent-dusty-rose: #dbb6a8;
  --border-soft: #f0dbd1;
  --card-bg: #ffffffed;
  --quote-bg: #fff1ea;

  /* Typography */
  --font-serif: "Literata", Georgia, serif;
  --font-sans:
    "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --container-width: 1200px;
  --content-width: 760px;
  --sidebar-width: 280px;
  --border-radius-xl: 36px;
  --border-radius-lg: 28px;
  --border-radius-md: 20px;
  --border-radius-sm: 14px;

  /* Animation */
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

body {
  background-color: var(--bg-warm);
  font-family: var(--font-sans);
  color: var(--text-deep);
  line-height: 1.7;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

h1,
h2,
h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
  color: #3d312b;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 48px;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 32px;
  margin: 3rem 0 1.2rem;
  border-bottom: 2px dotted var(--primary-blush);
  padding-bottom: 0.8rem;
  position: relative;
}

h2:before {
  content: "𓍢ִ໋";
  color: var(--accent-dusty-rose);
  font-size: 2rem;
  position: absolute;
  left: -2.2rem;
  top: -0.4rem;
  opacity: 0.5;
}

h3 {
  font-size: 24px;
  margin: 2rem 0 1rem;
  color: #5e4a40;
}

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

a {
  color: #a47e6f;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  font-weight: 500;
}

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

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

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

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

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

.logo span {
  color: #c17b5e;
}

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

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

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

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

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

.article-grid {
  display: flex;
  gap: 3.5rem;
}

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

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

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

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

.meta-category i {
  color: var(--accent-dusty-rose);
  font-size: 14px;
}

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

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 15px;
  margin: 1.5rem 0 1.2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  color: #9c8276;
}

.byline i {
  color: var(--accent-dusty-rose);
  margin-right: 0.4rem;
}

/* Hero container - needs explicit height */
.hero-container {
  position: relative;
  width: 100%;
  height: 420px; /* Fixed height */
  border-radius: var(--border-radius-xl, 36px);
  overflow: hidden;
  margin: 1.5rem 0 2.5rem;
  box-shadow: 0 20px 30px -10px rgba(190, 150, 130, 0.2);
  background: linear-gradient(135deg, #ffeae3 0%, #f9c9c1 100%);
}

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

.photo-credit {
  color: #8a7a70;
  font-size: 11px;
  margin-top: 0.5rem;
  text-align: right;
  padding-right: 0.5rem;
}

/* Responsive heights */
@media (max-width: 768px) {
  .hero-container {
    height: 320px;
  }
}

@media (max-width: 480px) {
  .hero-container {
    height: 240px;
    border-radius: 24px;
  }
}

@media (max-width: 320px) {
  .hero-container {
    height: 200px;
  }
}

/* ===== READING MODE SELECTOR ===== */
.reading-mode-selector {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1rem 1rem 0.5rem;
  max-width: var(--content-width, 760px);
  margin: 0 auto;
  flex-wrap: wrap;
  border-bottom: 1px solid #f0ddd3;
}
.mode-label {
  font-size: 0.85rem;
  color: #9e8275;
}
.mode-btn {
  background: #fef4ef;
  border: 1px solid #e7cfc3;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}
.mode-btn.active {
  background: var(--primary-blush, #f9c9c1);
  border-color: var(--primary-blush);
}

/* ===== MOOD TRACKER ===== */
.mood-tracker {
  background: #fff1ea;
  border-radius: 28px;
  padding: 1.8rem;
  margin: 2rem 0;
  text-align: center;
}
.mood-tracker-header {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #5e4a40;
}
.mood-slider-container {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.mood-slider {
  flex: 1;
  min-width: 150px;
}
.mood-label {
  font-size: 0.8rem;
  color: #9e8275;
}
.mood-value {
  margin: 0.5rem 0;
  font-weight: 600;
}
.mood-save-btn {
  background: var(--primary-blush);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  cursor: pointer;
  margin-top: 0.5rem;
}
.mood-shift-result {
  margin-top: 1rem;
  padding: 0.8rem;
  background: white;
  border-radius: 20px;
}

/* ============================================================
    LIVE POLL STYLES
   ============================================================ */

.live-poll {
  /* Palette */
  --poll-ink: #3a2e28;
  --poll-ink-soft: #6b574a;
  --poll-ink-faint: #9a887b;
  --poll-terra: #d97a3f;
  --poll-terra-deep: #b85f28;
  --poll-terra-glow: rgba(217, 122, 63, 0.18);
  --poll-paper: #fdf8f2;
  --poll-paper-warm: #f7ede0;
  --poll-cream: #fffdf9;
  --poll-line: #e8dbcc;
  --poll-line-strong: #d9c6b2;
  --poll-sage: #8aa88a;
  --poll-sage-soft: rgba(138, 168, 138, 0.15);

  /* Shape */
  --poll-radius-xl: 32px;
  --poll-radius-lg: 22px;
  --poll-radius-md: 16px;
  --poll-radius-sm: 10px;
  --poll-radius-pill: 999px;

  /* Shadows */
  --poll-shadow-soft: 0 4px 20px rgba(184, 95, 40, 0.06);
  --poll-shadow-lift: 0 10px 32px rgba(184, 95, 40, 0.12);
  --poll-shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.7);

  /* Typography */
  --poll-font-sans:
    "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --poll-font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --poll-font-mono: "SF Mono", "Fira Code", "Cascadia Code", monospace;

  /* Layout */
  position: relative;
  background:
    /* subtle paper grain via layered radial gradients */
    radial-gradient(
      circle at 15% 20%,
      rgba(217, 122, 63, 0.05) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(138, 168, 138, 0.06) 0%,
      transparent 40%
    ),
    linear-gradient(160deg, var(--poll-paper) 0%, var(--poll-paper-warm) 100%);
  border-radius: var(--poll-radius-xl);
  padding: 2rem 1.75rem 1.75rem;
  margin: 2rem 0;
  border: 1px solid var(--poll-line);
  box-shadow: var(--poll-shadow-soft), var(--poll-shadow-inset);
  font-family: var(--poll-font-sans);
  overflow: hidden;
  isolation: isolate;
}

/* Decorative corner accent — a soft "tape" or "paper fold" */
.live-poll::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: linear-gradient(
    225deg,
    transparent 0%,
    transparent 48%,
    rgba(217, 122, 63, 0.1) 49%,
    rgba(217, 122, 63, 0.1) 51%,
    transparent 52%
  );
  pointer-events: none;
  z-index: 0;
}

/* Decorative left rule — a thin colored bar */
.live-poll::after {
  content: "";
  position: absolute;
  top: 1.75rem;
  bottom: 1.75rem;
  left: 0;
  width: 4px;
  background: linear-gradient(
    180deg,
    var(--poll-terra) 0%,
    var(--poll-terra-deep) 100%
  );
  border-radius: 0 4px 4px 0;
  opacity: 0.7;
  pointer-events: none;
}

/* ---- Heading ---- */
.live-poll h4 {
  position: relative;
  z-index: 1;
  margin: 0 0 1.25rem;
  font-family: var(--poll-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--poll-ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  line-height: 1.35;
}

.live-poll h4 i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(
    145deg,
    var(--poll-terra) 0%,
    var(--poll-terra-deep) 100%
  );
  color: white;
  border-radius: var(--poll-radius-sm);
  font-size: 0.85rem;
  box-shadow: 0 4px 10px var(--poll-terra-glow);
  flex-shrink: 0;
}

/* ---- Options Grid ---- */
.poll-options {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

/* ---- Option Buttons ---- */
.poll-option-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--poll-cream);
  border: 1px solid var(--poll-line);
  border-radius: var(--poll-radius-pill);
  padding: 0.7rem 1.1rem 0.7rem 0.85rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--poll-font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--poll-ink-soft);
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 2px 6px rgba(184, 95, 40, 0.04);
}

/* Custom "bullet" — a small ring that fills on hover/vote */
.poll-option-btn::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--poll-line-strong);
  background: transparent;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

/* Hover state */
.poll-option-btn:hover {
  border-color: var(--poll-terra);
  color: var(--poll-ink);
  transform: translateY(-2px);
  box-shadow: var(--poll-shadow-lift);
  background: white;
}

.poll-option-btn:hover::before {
  border-color: var(--poll-terra);
  background: var(--poll-terra-glow);
}

/* Active/press */
.poll-option-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Voted state */
.poll-option-btn.voted {
  background: linear-gradient(
    135deg,
    var(--poll-terra) 0%,
    var(--poll-terra-deep) 100%
  );
  border-color: var(--poll-terra-deep);
  color: white;
  font-weight: 600;
  box-shadow: 0 6px 16px var(--poll-terra-glow);
  transform: translateY(-1px);
}

.poll-option-btn.voted::before {
  border-color: white;
  background: white;
  box-shadow: inset 0 0 0 3px var(--poll-terra);
}

/* Remove the old checkmark pseudo-element if it conflicts */
.poll-option-btn.voted::after {
  content: "✓";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--poll-sage);
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--poll-paper);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  animation: poll-pop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes poll-pop {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

/* Override the original .voted::before content rule */
.poll-option-btn.voted::before {
  content: "";
}

/* ---- Results Area ---- */
.poll-results {
  position: relative;
  z-index: 1;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--poll-line-strong);
  font-size: 0.88rem;
  color: var(--poll-ink-soft);
}

/* Empty state */
.poll-results > p {
  text-align: center;
  color: var(--poll-ink-faint);
  font-size: 0.85rem;
  font-style: italic;
  padding: 0.75rem 0;
}

/* Result row */
.poll-results .poll-result-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--poll-radius-md);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  animation: poll-fade-in 0.4s ease both;
}

.poll-results .poll-result-row:hover {
  background: white;
  border-color: var(--poll-line);
  transform: translateX(3px);
}

@keyframes poll-fade-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.poll-results .poll-result-label {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--poll-ink);
  font-weight: 500;
}

.poll-results .poll-result-count {
  font-family: var(--poll-font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--poll-terra-deep);
  background: var(--poll-terra-glow);
  padding: 0.2rem 0.6rem;
  border-radius: var(--poll-radius-pill);
  white-space: nowrap;
  letter-spacing: -0.02em;
}

/* Progress bar — full width under each row */
.poll-results .poll-result-bar {
  grid-column: 1 / -1;
  height: 6px;
  background: var(--poll-line);
  border-radius: var(--poll-radius-pill);
  margin-top: 0.35rem;
  overflow: hidden;
  position: relative;
}

.poll-results .poll-result-bar-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--poll-terra) 0%,
    var(--poll-terra-deep) 60%,
    var(--poll-sage) 100%
  );
  border-radius: var(--poll-radius-pill);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

/* Shimmer on the bar */
.poll-results .poll-result-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: poll-shimmer 2.5s ease-in-out infinite;
}

@keyframes poll-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Total row */
.poll-results .poll-total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--poll-ink-faint);
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--poll-line);
}

.poll-results .poll-total i {
  color: var(--poll-sage);
}

/* ---- Privacy note ---- */
.live-poll > p {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem !important;
  color: var(--poll-ink-faint) !important;
  margin-top: 0.75rem !important;
  letter-spacing: 0.01em;
}

.live-poll > p i {
  color: var(--poll-sage);
  font-size: 0.7rem;
}

/* ---- Reset button ---- */
.poll-reset-btn {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
  background: transparent;
  border: 1px dashed var(--poll-line-strong);
  border-radius: var(--poll-radius-pill);
  padding: 0.4rem 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--poll-font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--poll-ink-faint);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.02em;
}

.poll-reset-btn:hover {
  background: var(--poll-ink-soft);
  border-color: var(--poll-ink-soft);
  border-style: solid;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(58, 46, 40, 0.15);
}

.poll-reset-btn:active {
  transform: translateY(0);
}

.poll-reset-btn i {
  font-size: 0.72rem;
  transition: transform 0.4s ease;
}

.poll-reset-btn:hover i {
  transform: rotate(-180deg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 640px) {
  .live-poll {
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: var(--poll-radius-lg);
    margin: 1.5rem 0;
  }

  .live-poll::after {
    top: 1.25rem;
    bottom: 1.25rem;
    width: 3px;
  }

  .live-poll h4 {
    font-size: 1.08rem;
    gap: 0.5rem;
  }

  .live-poll h4 i {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }

  .poll-options {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .poll-option-btn {
    padding: 0.65rem 0.95rem 0.65rem 0.8rem;
    font-size: 0.84rem;
  }

  .poll-results .poll-result-row {
    padding: 0.5rem 0.7rem;
  }
}

@media (max-width: 380px) {
  .live-poll {
    padding: 1.25rem 1rem 1rem;
  }

  .live-poll h4 {
    font-size: 0.98rem;
  }

  .poll-option-btn {
    font-size: 0.8rem;
    padding: 0.6rem 0.85rem 0.6rem 0.7rem;
  }

  .poll-option-btn::before {
    width: 12px;
    height: 12px;
  }

  .poll-results .poll-result-label {
    font-size: 0.78rem;
  }

  .poll-results .poll-result-count {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
  }
}

/* ---- Print — hide poll ---- */
@media print {
  .live-poll {
    display: none !important;
  }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .poll-option-btn,
  .poll-option-btn::before,
  .poll-results .poll-result-bar-fill,
  .poll-results .poll-result-bar-fill::after,
  .poll-reset-btn,
  .poll-reset-btn i {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== FUTURE SELF LETTER ===== */
.future-self-letter {
  background: linear-gradient(135deg, #fff1ea, #ffeae3);
  border-radius: 28px;
  padding: 2rem;
  margin: 3rem 0;
  display: flex;
  gap: 1.5rem;
  border: 2px solid var(--primary-blush);
}
.letter-icon {
  font-size: 2.5rem;
  color: var(--accent-dusty-rose);
}
.letter-content h4 {
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  color: #5e4a40;
}
.letter-body p {
  margin-bottom: 1rem;
}

/* ===== REACTION BUTTONS ===== */
.reaction-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  padding: 1rem;
  background: #fef4ef;
  border-radius: 60px;
}
.reaction-label {
  font-weight: 600;
  color: #5e4a40;
}
.reaction-btn {
  background: white;
  border: 1px solid var(--primary-blush);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s;
}
.reaction-btn:hover {
  background: var(--primary-blush);
  transform: translateY(-2px);
}
.reaction-count {
  margin-left: 0.3rem;
  background: #e7cfc3;
  padding: 0.1rem 0.5rem;
  border-radius: 40px;
  font-size: 0.75rem;
}

/* ===== SKIP TO SOLUTIONS BUTTON ===== */
.skip-to-solutions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--primary-blush);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
}
.skip-to-solutions:hover {
  transform: scale(1.05);
  background: #f2bcb0;
}

/* ===== BREAK INTERSTITIAL ===== */
.break-interstitial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.break-interstitial.show {
  opacity: 1;
  visibility: visible;
}
.break-content {
  background: white;
  border-radius: 40px;
  padding: 2.5rem;
  text-align: center;
  max-width: 400px;
  margin: 1rem;
}
.break-content i {
  font-size: 3rem;
  color: var(--primary-blush);
  margin-bottom: 1rem;
}
.break-content h4 {
  font-family: var(--font-serif);
  margin-bottom: 1rem;
}
#closeBreakBtn {
  background: var(--primary-blush);
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  margin-top: 1.5rem;
  cursor: pointer;
  font-weight: 600;
}

/* ===== PRINTABLE SUMMARY ===== */
.printable-summary {
  background: #fef4ef;
  border-radius: 28px;
  padding: 2rem;
  margin: 3rem 0;
  border: 2px dashed var(--primary-blush);
}
.summary-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.summary-header h4 {
  font-family: var(--font-serif);
  margin: 0;
}
.summary-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.summary-col {
  background: white;
  padding: 1rem;
  border-radius: 20px;
}
.summary-print-btn button {
  background: var(--primary-blush);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 40px;
  cursor: pointer;
  width: 100%;
  margin-bottom: 1rem;
}
.summary-reminder {
  text-align: center;
  font-size: 0.9rem;
  color: #9e8275;
}

/* ===== RELATED ARTICLES SECTION ===== */
.related-articles-section {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: #fef4ef;
  border-radius: 28px;
}
.related-articles-section h3 {
  font-family: var(--font-serif);
  margin-bottom: 1.2rem;
}
.related-grid {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 16px;
  text-decoration: none;
  color: var(--text-deep);
  transition: all 0.2s;
  border: 1px solid #e7cfc3;
}
.related-card:hover {
  transform: translateX(8px);
  border-color: var(--primary-blush);
}
.related-card i {
  font-size: 1.2rem;
  color: var(--accent-dusty-rose);
}

/* ===== ESSENTIALS MODE (hides detailed sections) ===== */
.essentials-mode .emotional-hook + p,
.essentials-mode .expert-quote,
.essentials-mode .reflection-box,
.essentials-mode .observation-guide,
.essentials-mode .micro-story,
.essentials-mode .anonymous-response,
.essentials-mode .references-section,
.essentials-mode .future-self-letter,
.essentials-mode .mood-tracker-before,
.essentials-mode .live-poll {
  display: none;
}

/* Print styles for summary card */
@media print {
  .site-header,
  .sidebar,
  .skip-to-solutions,
  .break-interstitial,
  .reading-mode-selector,
  .reaction-buttons,
  .live-poll,
  .mood-tracker,
  .comment-section,
  .footer-container {
    display: none !important;
  }
  .printable-summary {
    display: block;
    page-break-inside: avoid;
  }
  body {
    background: white;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .future-self-letter {
    flex-direction: column;
    text-align: center;
  }
  .summary-content {
    grid-template-columns: 1fr;
  }
  .mood-slider-container {
    flex-direction: column;
  }
}
@media (max-width: 480px) {
  .reading-mode-selector {
    justify-content: center;
  }
  .poll-option {
    flex-wrap: wrap;
  }
}

/* ===== LIVE POLL ===== */
.live-poll {
  background: #fff1ea;
  border-radius: var(--border-radius-lg);
  padding: 1.8rem;
  margin: 2rem 0;
  text-align: center;
}

.poll-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin: 1.5rem 0;
}

.poll-option {
  background: white;
  padding: 0.6rem 1.2rem;
  border-radius: 40px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border-soft);
}

.poll-option:hover {
  background: var(--primary-blush);
  transform: scale(1.02);
}

.poll-count {
  font-size: 0.8rem;
  color: #a47e6f;
  margin-left: 0.5rem;
}

/* ===== LETTER FROM FUTURE SELF ===== */
.future-letter {
  background: linear-gradient(135deg, #fff1ea 0%, #ffeae3 100%);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
  border-left: 8px solid var(--accent-dusty-rose);
  font-style: italic;
}

.future-letter h4 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #5b463d;
}

/* ===== BREAK INTERSTITIAL ===== */
.break-interstitial {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: rgba(90, 75, 70, 0.95);
  backdrop-filter: blur(8px);
  color: white;
  text-align: center;
  padding: 2rem;
  z-index: 1001;
  transition: bottom 0.5s ease;
  border-radius: 30px 30px 0 0;
}

.break-interstitial.show {
  bottom: 0;
}

.break-interstitial button {
  background: var(--primary-blush);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 40px;
  margin-top: 1rem;
  font-weight: 600;
  cursor: pointer;
}

/* ===== REACTION BUTTONS ===== */
.reaction-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.reaction-btn {
  background: white;
  border: 2px solid var(--primary-blush);
  padding: 0.8rem 1.5rem;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.reaction-btn:hover {
  background: var(--primary-blush);
  transform: translateY(-3px);
}

.reaction-count {
  margin-left: 0.5rem;
  color: #a47e6f;
}

/* ===== SKIP TO SOLUTIONS BUTTON ===== */
.skip-solutions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent-dusty-rose);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s;
}

.skip-solutions.show {
  opacity: 1;
  transform: translateY(0);
}

.skip-solutions:hover {
  background: #c99b8a;
  transform: translateY(-2px);
}

/* ===== PRINTABLE SUMMARY CARD ===== */
.printable-summary {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 3rem 0;
  border: 3px solid var(--primary-blush);
  position: relative;
}

.printable-summary h3 {
  margin-top: 0;
}

@media print {
  .printable-summary {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .skip-solutions,
  .break-interstitial,
  .reaction-buttons,
  .live-poll,
  .mood-tracker,
  .reading-mode-selector {
    display: none;
  }
}

/* ===== HERO ===== */
.hero-container {
  position: relative;
  width: 100%;
  height: 280px;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  margin: 1.5rem 0 2.5rem;
  box-shadow: 0 20px 30px -10px rgba(190, 150, 130, 0.2);
  transition: transform 0.4s ease;
}

.hero-container:hover {
  transform: scale(1.01);
}

.hero-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 241, 234, 0.7);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1.5rem;
  border-radius: 60px;
  font-size: 0.9rem;
  color: #4f3f38;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ===== EMOTIONAL HOOK ===== */
.emotional-hook {
  font-size: 1.25rem;
  background: rgba(250, 213, 205, 0.15);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  border-left: 8px solid var(--primary-blush);
  margin: 2rem 0;
  line-height: 1.7;
}

/* ===== TEMPERAMENT CARDS ===== */
.temperament-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.8rem;
  margin: 2.5rem 0;
}

.temperament-card {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 2rem 1.5rem;
  box-shadow: 0 10px 20px rgba(180, 140, 120, 0.08);
  transition: all 0.3s var(--transition-bounce);
  border: 2px solid transparent;
  text-align: center;
  cursor: pointer;
}

.temperament-card:hover {
  transform: translateY(-12px);
  border-color: var(--primary-blush);
  box-shadow: 0 25px 30px -10px rgba(219, 182, 168, 0.3);
}

.card-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.05));
}

.temperament-card h3 {
  margin: 0.5rem 0 1rem;
  font-size: 1.8rem;
}

.card-badge {
  background: var(--primary-blush);
  color: #4d3c34;
  padding: 0.3rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin: 1rem 0 0.5rem;
}

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

/* ===== REFLECTION BOX ===== */
.reflection-box {
  background: #ffefea;
  border-radius: var(--border-radius-lg);
  padding: 2.2rem;
  margin: 2.8rem 0;
  border-left: 6px solid var(--accent-dusty-rose);
}

.reflection-box h4 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
  color: #5b463d;
}

.reflection-box ul {
  list-style: none;
}

.reflection-box li {
  margin-bottom: 1.2rem;
  padding-left: 2.5rem;
  position: relative;
}

.reflection-box li:before {
  content: "🐣";
  position: absolute;
  left: 0;
  opacity: 0.8;
}

/* ===== EXPERT QUOTES ===== */
.expert-quote {
  margin: 2.8rem 0 2rem;
  padding: 0 1.5rem 0 2.2rem;
  border-left: 5px solid var(--accent-dusty-rose);
}

.expert-quote p {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  line-height: 1.6;
  font-style: italic;
  color: #624e44;
  margin-bottom: 0.5rem;
}

.quote-source {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
  font-weight: 500;
  color: #9e8275;
}

.quote-context {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: #947d72;
  border-left: 2px solid var(--primary-blush);
  padding-left: 1.2rem;
}

/* ===== OBSERVATION GUIDE ===== */
.observation-guide {
  background: white;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 2.5rem 0;
  border: 2px dashed var(--primary-blush);
}

.observation-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid #f0ddd3;
}

.observation-item:last-child {
  border-bottom: none;
}

.observation-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--accent-dusty-rose);
  cursor: pointer;
}

.observation-item label {
  font-size: 1.1rem;
  cursor: pointer;
  flex: 1;
}

/* ===== ANONYMOUS RESPONSE BOX ===== */
.anonymous-response {
  background: #fef6f2;
  border-radius: var(--border-radius-xl);
  padding: 2.8rem;
  margin: 3rem 0;
  border: 2px solid var(--primary-blush);
  text-align: center;
}

.anonymous-response h4 {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: #624e44;
  margin-bottom: 1rem;
}

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

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

.anonymous-response button:hover {
  background: #f2bcb0;
  transform: scale(1.02);
}

.response-note {
  font-size: 0.9rem;
  color: #aa8e82;
  margin-top: 1.2rem;
}

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

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--primary-blush);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.author-info h4 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.author-credentials {
  font-size: 0.95rem;
  color: #8b7469;
  border-top: 1px solid #e7cfc3;
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: #fef4ef;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 3rem 0;
}

.faq-item {
  margin: 2rem 0;
  border-bottom: 1px dashed #edd9cf;
  padding-bottom: 1.8rem;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  font-weight: 600;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #5a453c;
}

.faq-question i {
  color: var(--accent-dusty-rose);
}

/* Essentials-only hidden by default */
.essentials-only {
  display: none;
}

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

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

/* Essentials mode summary styles */
.essentials-summary {
  background: #fff9f5;
  border-radius: 28px;
  padding: 2rem;
  margin: 2rem 0;
  border: 2px solid #f9c9c1;
}

.essentials-summary h2 {
  border-bottom: 2px solid #f9c9c1;
  padding-bottom: 0.8rem;
  margin-top: 1.5rem;
}

.essentials-summary h2:first-child {
  margin-top: 0;
}

.essentials-summary ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.essentials-summary li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

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

/* Newsletter module in sidebar */
.newsletter-module {
  background: linear-gradient(135deg, #fff1ea 0%, #ffeae3 100%);
  border: 2px solid #f9c9c1;
  border-radius: 20px;
  padding: 1.5rem;
}

.newsletter-module input {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 40px;
  border: 1px solid #e7cfc3;
  margin-bottom: 0.8rem;
  font-family: inherit;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.newsletter-module button {
  width: 100%;
  background: #f9c9c1;
  color: #4a3b35;
  border: none;
  padding: 0.8rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}

.newsletter-module button:hover {
  background: #f2bcb0;
}

/* Responsive fixes */
@media (max-width: 768px) {
  .site-footer {
    width: 100vw !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
  }
}

@media (max-width: 1024px) {
  .site-footer {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
}

/* Internal link styling */
.internal-link {
  color: #a47e6f;
  text-decoration: none;
  border-bottom: 2px solid #f9c9c1;
  font-weight: 500;
  transition: all 0.2s ease;
}

.internal-link:hover {
  border-bottom-color: #dbb6a8;
  color: #8b6b5c;
}

/* Image container for section 7 */
.section-image-container {
  width: 100%;
  height: 300px;
  border-radius: 28px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 0 20px 30px -10px rgba(190, 150, 130, 0.2);
}

.section-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  .section-image-container {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .section-image-container {
    height: 180px;
  }
}

/* Break interstitial fixes */
.break-interstitial {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.break-content {
  background: white;
  border-radius: 40px;
  padding: 2.5rem;
  text-align: center;
  max-width: 420px;
  margin: 1rem;
}

.break-content i {
  font-size: 3rem;
  color: #f9c9c1;
  margin-bottom: 1rem;
}

.break-content h4 {
  font-family: "Literata", Georgia, serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #3d312b;
}

.break-content p {
  color: #6b5a52;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

#closeBreakBtn {
  background: #f9c9c1;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
}

#closeBreakBtn:hover {
  background: #f2bcb0;
  transform: scale(1.02);
}

/* Skip to solutions button */
.skip-to-solutions {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #f9c9c1;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 60px;
  font-weight: 600;
  cursor: pointer;
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  font-family: "Atkinson Hyperlegible", sans-serif;
  font-size: 0.95rem;
  color: #3d312b;
}

.skip-to-solutions:hover {
  transform: scale(1.05);
  background: #f2bcb0;
}

/* Mood shift result */
.mood-shift-result {
  margin-top: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 20px;
  font-weight: 500;
  line-height: 1.6;
}

/* Poll note icon */
.poll-note i {
  margin-right: 0.3rem;
}

/* Reading mode selector responsive */
@media (max-width: 480px) {
  .reading-mode-selector {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
  }
  .mode-btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }
  .mode-label {
    font-size: 0.75rem;
    width: 100%;
    text-align: center;
  }
}

/* Ensure print styles work */
@media print {
  .site-header,
  .sidebar,
  .skip-to-solutions,
  .break-interstitial,
  .reading-mode-selector,
  .reaction-buttons,
  .live-poll,
  .mood-tracker,
  .comment-section,
  .footer-container,
  .footer-trust,
  .footer-disclaimer,
  .footer-copyright,
  .footer-social,
  .footer-newsletter-form,
  .footer-links,
  .footer-col,
  .footer-grid {
    display: none !important;
  }
  .printable-summary {
    display: block;
    page-break-inside: avoid;
  }
  body {
    background: white;
  }
  .main-wrapper {
    padding: 0;
  }
  .article-content {
    max-width: 100%;
  }
  .mood-tracker-before,
  .mood-tracker-after {
    display: none !important;
  }
  .live-poll {
    display: none !important;
  }
  .reaction-buttons {
    display: none !important;
  }
  .future-self-letter {
    display: none !important;
  }
  .break-interstitial {
    display: none !important;
  }
  .skip-to-solutions {
    display: none !important;
  }
  .reading-mode-selector {
    display: none !important;
  }
  .sidebar {
    display: none !important;
  }
}

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

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

.rec-header h4 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: #624e44;
}

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

.rec-tab {
  padding: 0.5rem 1.5rem;
  background: white;
  border-radius: 40px;
  border: 1px solid #e7cfc3;
  cursor: pointer;
  transition: 0.2s;
}

.rec-tab.active {
  background: var(--primary-blush);
  border-color: var(--primary-blush);
  color: #3d312b;
}

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

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

.rec-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-dusty-rose);
  box-shadow: 0 12px 20px -8px rgba(219, 182, 168, 0.2);
}

<!—Recommendations 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: #fef4ef;
  border-radius: var(--border-radius-md);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}

.sidebar-module h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #5b463d;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem;
  color: inherit;
  font-size: 0.9rem;
  border-radius: 6px;
}

.nav-link:hover {
  background: rgba(249, 201, 193, 0.2);
}

.sidebar-newsletter {
  background: linear-gradient(135deg, #fff1ea 0%, #ffeae3 100%);
  border: 2px solid var(--primary-blush);
}

.sidebar-newsletter input {
  width: 100%;
  padding: 0.8rem;
  border-radius: 40px;
  border: 1px solid #eacfc3;
  margin: 0.8rem 0;
  font-family: var(--font-sans);
}

.sidebar-newsletter button {
  width: 100%;
  background: var(--primary-blush);
  border: none;
  padding: 0.8rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

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

/* ===== REFERENCES SECTION ===== */
.references-section {
  background: #fef4ef;
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  margin: 2rem 0;
}

/* ============================================================
   UNIVERSAL FOOTER — full-bleed, responsive, article-safe
   Works whether footer is inside .main-wrapper or not
   ============================================================ */

/* 1) Force full viewport width, ignore any parent max-width */
.site-footer {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  background: #2c2826;
  color: #dacbc0;
  padding: 3rem 1.5rem 0;
  margin-top: 4rem;
  position: relative;
  overflow-x: hidden;
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.footer-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0;
}

/* 2) Fluid 4-column grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
  width: 100%;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

/* Brand */
.footer-logo {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.footer-logo span {
  color: #c87a5a;
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #dacbc0;
  margin: 0;
}

/* Column headings */
.footer-col h4 {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem 0;
  letter-spacing: 0.02em;
}

/* Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: #dacbc0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #c87a5a;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
  flex-wrap: wrap;
}

.footer-social .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #dacbc0;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.footer-social .social-link:hover {
  background: #c87a5a;
  color: #fff;
}

/* Newsletter form */
.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.footer-newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.footer-newsletter-form input[type="email"]::placeholder {
  color: rgba(218, 203, 192, 0.6);
}

.footer-newsletter-form input[type="email"]:focus {
  border-color: #c87a5a;
}

/* Newsletter submit button */
.footer-newsletter-form button,
.footer-col form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 40px;
  background: #6f8e7e;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  transition:
    background 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.footer-newsletter-form button:hover,
.footer-col form button:hover {
  background: #6f8e7e;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.footer-newsletter-form button:active,
.footer-col form button:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.footer-newsletter-form button:focus-visible,
.footer-col form button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Trust badges */
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #dacbc0;
  white-space: nowrap;
}

.trust-badge i {
  color: #c87a5a;
  flex-shrink: 0;
}

/* Disclaimer */
.footer-disclaimer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.6rem;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: #dacbc0;
  text-align: left;
}

.footer-disclaimer i {
  color: #c87a5a;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Copyright */
.footer-copyright {
  text-align: center;
  padding: 0.5rem 0 1rem;
  width: 100%;
}

.footer-copyright p {
  margin: 0;
  font-size: 0.82rem;
  color: #dacbc0;
  opacity: 0.85;
}

/* Email contact bar */
.footer-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  width: 100%;
  flex-wrap: wrap;
}

.footer-contact i {
  color: #c87a5a;
  flex-shrink: 0;
}

.footer-contact a {
  color: #dacbc0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  word-break: break-word;
}

.footer-contact a:hover {
  color: #c87a5a;
}

/* ============================================================
   RESPONSIVE — footer
   ============================================================ */

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 column, centered */
@media (max-width: 560px) {
  .site-footer {
    padding: 2.5rem 1rem 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .footer-col {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-newsletter-form {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .footer-trust {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-disclaimer {
    text-align: left;
  }
}

/* ===== RESPONSIVE FOOTER ===== */
@media (max-width: 800px) {
  .footer-container {
    padding: 1.5rem 1.5rem 1rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .footer-trust {
    gap: 1rem;
  }

  .trust-badge {
    font-size: 0.65rem;
  }

  .footer-disclaimer {
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
  }
}

@media (max-width: 550px) {
  .footer-container {
    padding: 1.2rem 1rem 0.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-newsletter-form {
    max-width: 280px;
    margin: 0 auto;
  }

  .footer-trust {
    gap: 0.8rem;
  }

  .trust-badge {
    font-size: 0.6rem;
  }

  .footer-copyright p {
    font-size: 0.65rem;
  }
}

/* Ensure full width on all screen sizes */
@media (max-width: 1024px) {
  .site-footer {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

.temperament-card:hover .card-emoji {
  animation: float 1.5s infinite ease-in-out;
}

.hero-container {
  animation: softAppear 1s ease-out;
}

@keyframes softAppear {
  0% {
    opacity: 0.8;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .article-content {
    max-width: 700px;
  }
  h2:before {
    display: none;
  }
  .main-wrapper {
    padding: 1.5rem;
  }
}

/* Small Tablet (900px and below) */
@media (max-width: 900px) {
  .rec-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-grid {
    gap: 2rem;
  }
}

/* Mobile Landscape / Tablet (768px and below) */
@media (max-width: 768px) {
  body {
    font-size: 17px;
  }
  h1 {
    font-size: 38px;
  }
  h2 {
    font-size: 28px;
  }
  .author-bio {
    flex-direction: column;
    text-align: center;
  }
  .temperament-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .article-content {
    max-width: 100%;
  }
  .hero-container {
    height: 220px;
  }
  .future-letter {
    padding: 1.5rem;
  }
  .printable-summary div {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile Portrait (640px and below) */
@media (max-width: 640px) {
  .reading-mode-selector {
    width: 100%;
    justify-content: center;
  }
  .mode-btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
  .poll-options {
    flex-direction: column;
    align-items: center;
  }
  .poll-option {
    width: 100%;
    text-align: center;
  }
  .reaction-buttons {
    gap: 0.5rem;
  }
  .reaction-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
  .main-wrapper {
    padding: 1rem;
  }
  h1 {
    font-size: 32px;
  }
  h2 {
    font-size: 24px;
  }
  .subhead {
    font-size: 18px;
  }
  .hero-container {
    height: 180px;
    margin: 1rem 0;
  }
  .hero-caption {
    font-size: 0.7rem;
    padding: 0.3rem 1rem;
  }
  .anonymous-response {
    padding: 1.5rem;
  }
  .anonymous-response h4 {
    font-size: 1.3rem;
  }
  .author-avatar {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
  .author-info h4 {
    font-size: 1.3rem;
  }
  .skip-solutions {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    bottom: 10px;
    right: 10px;
  }
  .break-interstitial {
    padding: 1rem;
  }
  .break-interstitial h3 {
    font-size: 1.2rem;
  }
  .mood-tracker {
    padding: 1rem;
  }
  .live-poll {
    padding: 1rem;
  }
  .future-letter {
    padding: 1rem;
  }
  .future-letter h4 {
    font-size: 1.3rem;
  }
  .expert-quote p {
    font-size: 1.1rem;
  }
  .reflection-box h4 {
    font-size: 1.3rem;
  }
  .rec-header h4 {
    font-size: 1.3rem;
  }
}

/* Small Phones (375px and below) */
@media (max-width: 375px) {
  body {
    font-size: 16px;
  }
  h1 {
    font-size: 28px;
  }
  .byline {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Extra Small Phones (320px and below) */
@media (max-width: 320px) {
  h1 {
    font-size: 24px;
  }
  .temperament-card {
    padding: 1rem;
  }
  .card-emoji {
    font-size: 3rem;
  }
  .mode-btn {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }
}
