/* ============================================================
   SOULSPACE — "Marriage After Long-Term" Article Styles
   ============================================================ */

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

:root {
  --bg-light: #fbf9f7;
  --bg-soft: #f5f1ed;
  --text-deep: #2c3a2c;
  --text-soft: #5a6b5a;
  --primary-sage: #9bb88b;
  --primary-moon: #b8b9c0;
  --accent-dusty-blue: #7b9cb0;
  --accent-lavender: #c4b5d0;
  --accent-terra: #c87a5a;
  --border-soft: #e2dbd1;
  --card-bg: #ffffffd4;
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.03);
  --font-serif: "Literata", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --container-width: 1200px;
  --content-width: 760px;
  --sidebar-width: 280px;
  --border-radius-lg: 32px;
  --border-radius-md: 24px;
  --border-radius-sm: 16px;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
  color: #1e2a1e;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 48px;
  margin-bottom: 0.75rem;
}
h2 {
  font-size: 32px;
  margin: 3rem 0 1.2rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.75rem;
  position: relative;
}
h2::before {
  content: "✦";
  color: var(--primary-sage);
  font-size: 1.4rem;
  position: absolute;
  left: -1.8rem;
  top: -0.2rem;
  opacity: 0.5;
}
h3 {
  font-size: 22px;
  margin: 2rem 0 1rem;
  font-weight: 600;
  color: #2f462f;
}
p {
  margin-bottom: 1.4rem;
  color: var(--text-deep);
}
a {
  color: var(--accent-dusty-blue);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
a:hover {
  border-bottom-color: var(--primary-sage);
}
em {
  color: #4a5a4a;
}
strong {
  color: #1e2a1e;
}

/* ============================================================
   3. HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 8px rgba(44, 62, 80, 0.03);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 2vw, 2rem);
  padding: clamp(0.65rem, 1.4vw, 1rem) clamp(1rem, 2.5vw, 2rem);
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  flex-wrap: nowrap;
}
.soulspace-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: "Segoe UI", Tahoma, sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #344963;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  border-bottom: none;
}
.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.logo-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow:
    0 4px 10px rgba(60, 150, 144, 0.28),
    0 2px 4px rgba(52, 73, 99, 0.18);
}
.logo-text {
  background: linear-gradient(135deg, #344963 0%, #3c9690 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-text-accent {
  background: linear-gradient(135deg, #76a92d 0%, #9acd32 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.75rem);
  flex-wrap: nowrap;
  min-width: 0;
}
.nav-links a {
  position: relative;
  color: var(--text-soft);
  font-weight: 500;
  font-size: clamp(0.82rem, 0.35vw + 0.75rem, 0.95rem);
  border-bottom: none;
  padding: 0.35rem 0;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s;
}
.nav-links a:hover {
  color: var(--steel-deep);
}
.nav-links a:hover::after {
  width: 100%;
}
/* ===== READING MODE SELECTOR ===== */
.reading-mode-selector {
  display: flex;
  gap: 1rem;
  margin: 1rem auto 1.5rem;
  flex-wrap: wrap;
  max-width: var(--container-width);
  padding: 0 1.5rem;
  justify-content: center;
}
.mode-btn {
  background: transparent;
  border: 1.5px solid var(--primary-sage);
  border-radius: 60px;
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #5a5a5a;
  font-family: var(--font-sans);
  font-weight: 500;
}
.mode-btn.active,
.mode-btn:hover {
  background: var(--primary-sage);
  color: white;
}

/* ===== LAYOUT ===== */
.main-wrapper {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.article-grid {
  display: flex;
  gap: 3.5rem;
  position: relative;
}
.article-content {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
}
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  display: none;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  font-size: 0.8rem;
  color: #8a7a70;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.breadcrumb a {
  color: #8a7a70;
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--accent-terra);
}

/* ===== META / TITLE / BYLINE ===== */
.meta-category {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #a28f84;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.meta-category i {
  color: var(--accent-terra);
}
.article-title {
  font-size: 44px;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.subhead {
  font-size: 22px;
  font-family: var(--font-serif);
  color: #6b7d6b;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 14px;
  margin: 1.5rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  color: #5b685b;
}
.byline a {
  color: var(--primary-sage);
  font-weight: 600;
}
.byline i {
  color: var(--primary-sage);
  margin-right: 0.4rem;
}

/* ===== EDITORIAL NOTE ===== */
.editorial-note {
  font-size: 0.83rem;
  color: #5d5d5d;
  margin-bottom: 1.5rem;
  padding: 0.9rem 1.1rem;
  background: #faf6f0;
  border-radius: 8px;
  border-left: 3px solid var(--primary-sage);
  line-height: 1.6;
}
.editorial-note i {
  color: var(--primary-sage);
  margin-right: 0.4rem;
}

/* ===== AUDIO ===== */
.audio-embed {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #f5f1eb;
  border-radius: 60px;
  padding: 0.6rem 1.2rem 0.6rem 0.6rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-soft);
}
.audio-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-sage);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.audio-play:hover {
  transform: scale(1.05);
}
.audio-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.audio-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2f462f;
}
.audio-meta {
  font-size: 0.78rem;
  color: #7a8879;
}

/* ===== MOOD TRACKER ===== */
.mood-tracker {
  background: #f9f7f4;
  border-radius: 20px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border-soft);
}
.mood-hint {
  font-size: 0.85rem !important;
  color: #8a7a70 !important;
  margin-bottom: 0.8rem !important;
}
.mood-tracker input[type="range"] {
  width: 100%;
  margin: 0.8rem 0;
  accent-color: var(--primary-sage);
}
.mood-value {
  font-family: var(--font-serif);
  font-weight: 600;
  color: #2f462f;
}
.mood-tracker button {
  background: var(--primary-sage);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 60px;
  cursor: pointer;
  margin-top: 0.5rem;
  margin-left: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 500;
  color: white;
}
.mood-tracker button:hover {
  background: #8aab7a;
}
.mood-saved-msg {
  font-size: 0.8rem;
  color: #7c8a7c;
  margin-top: 0.5rem;
}
.mood-shift-result {
  margin-top: 1rem;
  font-weight: 500;
  display: none;
  padding: 0.9rem 1rem;
  background: #fff;
  border-radius: 12px;
  border-left: 3px solid var(--primary-sage);
}

/* ===== HERO ===== */
.hero-container {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  margin: 1.5rem 0 0.5rem;
  box-shadow: var(--shadow-soft);
}
.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
  background: rgba(44, 58, 44, 0.4);
  backdrop-filter: blur(6px);
  padding: 0.5rem 1.5rem;
  border-radius: 40px;
  font-size: 0.9rem;
}
.photo-credit {
  color: #8a7a70;
  font-size: 12px;
  margin: 0 0 1.5rem;
  padding-left: 0.5rem;
}
.photo-credit a {
  color: var(--accent-terra);
}

/* ===== LIVE POLL ===== */
.live-poll {
  background: linear-gradient(160deg, #fdf8f2 0%, #f7ede0 100%);
  border-radius: var(--border-radius-md);
  padding: 2rem 1.75rem 1.75rem;
  margin: 2rem 0;
  border: 1px solid #e8dbcc;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(184, 95, 40, 0.06);
}
.live-poll::after {
  content: "";
  position: absolute;
  top: 1.75rem;
  bottom: 1.75rem;
  left: 0;
  width: 4px;
  background: linear-gradient(180deg, #d97a3f, #b85f28);
  border-radius: 0 4px 4px 0;
  opacity: 0.7;
}
.live-poll h4 {
  margin: 0 0 1.25rem;
  font-size: 1.2rem;
  color: #3a2e28;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.live-poll h4 i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(145deg, #d97a3f, #b85f28);
  color: white;
  border-radius: 10px;
  font-size: 0.85rem;
}
.poll-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.poll-option-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fffdf9;
  border: 1px solid #e8dbcc;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: #6b574a;
  text-align: left;
}
.poll-option-btn::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #d9c6b2;
  flex-shrink: 0;
  transition: all 0.25s;
}
.poll-option-btn:hover {
  border-color: #d97a3f;
  color: #3a2e28;
  transform: translateY(-2px);
  background: white;
}
.poll-option-btn.voted {
  background: linear-gradient(135deg, #d97a3f, #b85f28);
  border-color: #b85f28;
  color: white;
  font-weight: 600;
}
.poll-option-btn.voted::before {
  border-color: white;
  background: white;
  box-shadow: inset 0 0 0 3px #d97a3f;
}
.poll-results {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #d9c6b2;
  font-size: 0.88rem;
  color: #6b574a;
}
.poll-results > p {
  text-align: center;
  color: #9a887b;
  font-style: italic;
}
.poll-result-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  padding: 0.55rem 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.55);
}
.poll-result-label {
  font-size: 0.85rem;
  color: #3a2e28;
  font-weight: 500;
}
.poll-result-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: #b85f28;
  background: rgba(217, 122, 63, 0.15);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.poll-result-bar {
  grid-column: 1 / -1;
  height: 6px;
  background: #e8dbcc;
  border-radius: 999px;
  margin-top: 0.35rem;
  overflow: hidden;
}
.poll-result-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #d97a3f, #b85f28, #8aa88a);
  border-radius: 999px;
  transition: width 0.8s ease;
}
.poll-total {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9a887b;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed #e8dbcc;
}
.poll-total i {
  color: #8aa88a;
}
.poll-privacy {
  font-size: 0.72rem !important;
  color: #9a887b !important;
  margin-top: 0.75rem !important;
}
.poll-privacy i {
  color: #8aa88a;
  margin-right: 0.25rem;
}
.poll-reset-btn {
  margin-top: 0.85rem;
  background: transparent;
  border: 1px dashed #d9c6b2;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: #9a887b;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.poll-reset-btn:hover {
  background: #6b574a;
  color: white;
  border-style: solid;
}

/* ===== OPENING HOOK ===== */
.opening-hook {
  position: relative;
  margin: 2.5rem 0;
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-lg);
  background: linear-gradient(160deg, #1a2332 0%, #232f42 50%, #3a4d68 100%);
  color: #e8ecf2;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(26, 35, 50, 0.5);
  isolation: isolate;
}
.hook-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 240, 220, 0.25) 0%,
    transparent 70%
  );
  pointer-events: none;
  animation: hook-pulse 8s ease-in-out infinite;
}
@keyframes hook-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
}
.hook-line {
  color: #e8ecf2;
  margin-bottom: 1.1rem;
  line-height: 1.75;
}
.hook-em {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: #f3f6fa;
  display: block;
  margin-bottom: 0.25rem;
}
.hook-emph {
  color: #d4dbe6;
  font-style: italic;
}
.hook-truth {
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border-left: 3px solid #9bb88b;
}
.hook-truth strong {
  color: #ffffff;
}

/* ===== AUTHOR NOTE ===== */
.author-note {
  position: relative;
  margin: 2rem 0;
  padding: 1.8rem 1.8rem 1.8rem 5rem;
  border-radius: 60px;
  background: linear-gradient(135deg, #f3f0ea, #eef4ee);
  border: 1px solid #e0dbd1;
  display: flex;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 6px 24px -12px rgba(155, 184, 139, 0.35);
}
.author-note-icon {
  position: absolute;
  left: 1.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(145deg, #9bb88b, #7a9a6b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 6px 16px -6px rgba(155, 184, 139, 0.7);
}
.author-note-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #3a4a3a;
}
.author-note-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(155, 184, 139, 0.15) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  animation: note-sweep 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes note-sweep {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}

/* ===== SECTION FADE ===== */
.section-fade[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-fade[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== PULL QUOTE ===== */
.pull-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.5;
  font-style: italic;
  color: #2c4a2c;
  padding: 1.5rem 1.8rem;
  margin: 1.8rem 0;
  background: #f0ece5;
  border-left: 4px solid var(--primary-sage);
  border-radius: 0 16px 16px 0;
}

/* ===== CYCLE DIAGRAM ===== */
.cycle-diagram {
  background: #f9f7f4;
  border-radius: 24px;
  padding: 1.8rem;
  margin: 2rem 0;
  border: 1px dashed #d9cfc1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}
.cycle-node {
  background: white;
  padding: 0.85rem 1.4rem;
  border-radius: 40px;
  border: 1px solid #e2ddd5;
  font-size: 0.95rem;
  text-align: center;
  box-shadow: 0 4px 12px -8px rgba(44, 58, 44, 0.15);
  width: 100%;
  max-width: 420px;
  color: #2f462f;
}
.cycle-node.cycle-loop {
  background: linear-gradient(135deg, #eef4ee, #dfeadd);
  border-color: var(--primary-sage);
  font-weight: 600;
}
.cycle-arrow {
  color: var(--primary-sage);
  font-size: 1.1rem;
}
.cycle-diagram-alt .cycle-node {
  border-left: 3px solid #c87a5a;
}

/* ===== BRAIN SPLIT ===== */
.brain-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
  margin: 2rem 0;
}
.brain-half {
  background: #fff;
  border-radius: 24px;
  padding: 1.5rem;
  border: 1px solid #e2ddd5;
  box-shadow: 0 6px 20px -12px rgba(44, 58, 44, 0.15);
}
.brain-half-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  display: block;
}
.brain-quiet {
  border-left: 4px solid #7b9cb0;
}
.brain-tired {
  border-left: 4px solid var(--accent-lavender);
}
.brain-half p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #3a4a3a;
}
.brain-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  color: #9b8f82;
  font-size: 1rem;
  padding: 0 0.5rem;
}

/* ===== TECHNIQUE CARD ===== */
.technique-card {
  background: var(--card-bg);
  border-radius: var(--border-radius-md);
  padding: 1.8rem;
  margin: 2rem 0;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.25s,
    border-color 0.25s;
}
.technique-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-sage);
}
.technique-card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.practice-list {
  margin: 0.5rem 0 1rem 1.4rem;
}
.practice-list li {
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #3a4a3a;
}
.practice-question {
  background: #f5f1eb;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border-left: 3px solid var(--primary-sage);
  font-style: italic;
  margin: 0.8rem 0;
}
.practice-note {
  font-size: 0.92rem !important;
  color: #5a6b5a !important;
  margin-top: 0.8rem !important;
}
.checkin-list {
  margin: 0.5rem 0 1rem 1.4rem;
}
.checkin-list li {
  margin-bottom: 0.5rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #3a4a3a;
}

/* ===== CONTRACT CARD ===== */
.contract-card {
  background: #f9f7f4;
  border-radius: 24px;
  padding: 1.8rem;
  margin: 2rem 0;
  border: 1px solid #e2ddd5;
  border-left: 4px solid var(--accent-terra);
}
.contract-card h4 {
  font-size: 1.15rem;
  margin: 0 0 1.2rem;
  color: #2f462f;
}
.contract-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}
.contract-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1rem;
  background: white;
  border-radius: 12px;
  border: 1px solid #ece5db;
  font-size: 0.92rem;
  color: #3a4a3a;
}
.contract-item i {
  color: var(--primary-sage);
}

/* ===== WORKLOAD CARD ===== */
.workload-card {
  background: linear-gradient(135deg, #f7f2f6, #efe6f0);
  border-radius: 24px;
  padding: 1.8rem;
  margin: 2rem 0;
  border: 1px solid #e2d6e4;
  border-left: 4px solid var(--accent-lavender);
}
.workload-card h4 {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  color: #2f462f;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.workload-card h4 i {
  color: var(--accent-lavender);
}
.workload-list {
  margin: 0.8rem 0 1rem 1.4rem;
}
.workload-list li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #3a4a3a;
}
.workload-note {
  font-size: 0.92rem !important;
  color: #4a5a4a !important;
}

/* ---------- SHELL ---------- */
.contract-section {
  position: relative;
  margin: 3rem 0;
  padding: 2.5rem 2rem 2rem;
  background: #fffdfb;
  border: 1px solid #e7dfd6;
  border-radius: 36px;
  box-shadow: 0 20px 40px -28px rgba(44, 58, 44, 0.25);
  overflow: hidden;
  font-family: "Inter", system-ui, sans-serif;
  color: #2c3a2c;
}

.contract-section::before {
  content: "📜 🤫 💰 🏠 👶 💗";
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: space-around;
  font-size: 4.5rem;
  opacity: 0.03;
  transform: rotate(-5deg) scale(1.15);
  pointer-events: none;
}

.contract-section > * {
  position: relative;
  z-index: 2;
}

/* ---------- HEADER ---------- */
.ct-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.ct-header-emoji {
  font-size: 2.2rem;
  line-height: 1;
  animation: ct-wiggle 3.4s ease-in-out infinite;
  display: inline-block;
}

@keyframes ct-wiggle {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  50% {
    transform: rotate(-6deg) translateY(-3px);
  }
}

.ct-header h2 {
  font-family: "Quicksand", "Literata", serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #1e2a1e;
  margin-bottom: 0.3rem;
  border: none;
  padding: 0;
  line-height: 1.25;
}

.ct-subhead {
  font-size: 1rem;
  color: #5a6b5a;
  line-height: 1.6;
  max-width: 65ch;
}

/* ---------- TIMELINE ---------- */
.ct-timeline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.75rem;
}

.ct-timeline-card {
  border-radius: 20px;
  padding: 1.3rem 1.4rem;
  border: 1px solid;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.ct-timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -18px rgba(44, 58, 44, 0.3);
}

.ct-timeline-card--before {
  background: #f4f9f1;
  border-color: #cfe0c5;
}

.ct-timeline-card--after {
  background: #fdf6ef;
  border-color: #f0dcc5;
}

.ct-timeline-tag {
  display: inline-block;
  font-family: "Quicksand", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.65rem;
}

.ct-timeline-card--before .ct-timeline-tag {
  background: #dcecd2;
  color: #5a7a4a;
}

.ct-timeline-card--after .ct-timeline-tag {
  background: #fce5d0;
  color: #b8714a;
}

.ct-timeline-text {
  font-size: 0.94rem;
  line-height: 1.65;
  color: #3a4a3a;
  margin: 0 0 0.65rem;
}

.ct-timeline-vibe {
  font-size: 0.82rem;
  color: #7a8a7a;
  font-style: italic;
}

.ct-timeline-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #9bb88b;
  font-weight: 700;
  animation: ct-slide-right 2s ease-in-out infinite;
}

@keyframes ct-slide-right {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

/* ---------- PUNCH ---------- */
.ct-punch {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #1a2332, #232f42);
  border-radius: 24px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 2rem;
  color: #e8ecf2;
  position: relative;
  overflow: hidden;
}

.ct-punch::after {
  content: "🍽️";
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 6rem;
  opacity: 0.08;
  transform: rotate(-12deg);
  pointer-events: none;
}

.ct-punch-emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  animation: ct-bounce 2.6s ease-in-out infinite;
}

@keyframes ct-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(-6deg);
  }
}

.ct-punch-line {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d4dbe6;
  margin: 0 0 0.6rem;
}

.ct-punch-line:last-child {
  margin-bottom: 0;
}

.ct-punch-line--bold {
  color: #fff;
  font-weight: 600;
}

.ct-punch-line--final {
  background: rgba(155, 184, 139, 0.14);
  border-left: 3px solid #9bb88b;
  border-radius: 0 10px 10px 0;
  padding: 0.65rem 0.9rem;
  color: #e8ecf2;
}

.ct-punch-line--final em {
  color: #b8e0a0;
  font-style: italic;
}

/* ---------- CONTRACT ---------- */
.ct-contract {
  background: linear-gradient(180deg, #fdf6ef, #fbf7f1);
  border: 2px dashed #d9c6b2;
  border-radius: 24px;
  padding: 1.5rem 1.5rem 1rem;
  margin-bottom: 2rem;
  position: relative;
}

.ct-contract-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.ct-contract-seal {
  display: inline-block;
  font-size: 1.6rem;
  margin-bottom: 0.35rem;
  animation: ct-seal 3s ease-in-out infinite;
}

@keyframes ct-seal {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(-8deg);
  }
}

.ct-contract-header h4 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: #7a4a2a;
  margin: 0 0 0.35rem;
}

.ct-contract-sub {
  font-size: 0.85rem;
  color: #9a8a7a;
  font-style: italic;
  margin: 0;
}

.ct-assumptions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.ct-assume {
  position: relative;
  background: #fff;
  border: 1.5px solid #e7dfd6;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  overflow: hidden;
}

.ct-assume:hover {
  transform: translateY(-3px);
  border-color: #c9d6c0;
  box-shadow: 0 10px 22px -16px rgba(44, 58, 44, 0.35);
}

.ct-assume:focus-visible {
  box-shadow: 0 0 0 3px #9bb88b66;
}

.ct-assume.is-open {
  background: linear-gradient(160deg, #fdf6ef, #fffdfb);
  border-color: #d97a3f;
  box-shadow: 0 14px 26px -18px rgba(217, 122, 63, 0.4);
  animation: ct-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.ct-assume::after {
  content: "👀";
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  font-size: 0.95rem;
  opacity: 0;
  transform: scale(0.5) rotate(-15deg);
  transition:
    opacity 0.3s ease,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ct-assume:hover::after {
  opacity: 0.5;
  transform: scale(1) rotate(0deg);
}

.ct-assume.is-open::after {
  opacity: 1;
  transform: scale(1.1) rotate(0deg);
}

.ct-assume-icon {
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ct-assume:hover .ct-assume-icon,
.ct-assume.is-open .ct-assume-icon {
  transform: scale(1.15) rotate(-6deg);
}

.ct-assume-front {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2f462f;
  line-height: 1.4;
  padding-right: 1.2rem;
}

.ct-assume.is-open .ct-assume-front {
  color: #7a4a2a;
}

.ct-assume-back {
  display: none;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #5a4a3a;
  font-style: italic;
  padding-top: 0.55rem;
  margin-top: 0.25rem;
  border-top: 1px dashed #e7dfd6;
}

.ct-assume.is-open .ct-assume-back {
  display: block;
  animation: ct-slide-in 0.35s ease;
}

@keyframes ct-slide-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ct-contract-footer {
  text-align: center;
  padding-top: 0.75rem;
  border-top: 1px dashed #d9c6b2;
}

.ct-contract-signature {
  font-family: "Literata", serif;
  font-size: 0.92rem;
  color: #b8714a;
  font-style: italic;
}

.ct-contract-signature em {
  font-family: "Quicksand", sans-serif;
  font-style: normal;
  font-weight: 700;
  color: #7a4a2a;
  letter-spacing: 0.04em;
}

/* ---------- ORIGINS ---------- */
.ct-origins {
  margin-bottom: 2rem;
}

.ct-origins-title {
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2f462f;
  margin: 0 0 0.85rem;
}

.ct-origins-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ct-origin-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #4a5a4a;
  background: #fbf7f1;
  border: 1px solid #e7dfd6;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.ct-origin-chip:hover {
  transform: translateY(-2px) scale(1.03);
  background: #fff;
  border-color: #c9d6c0;
}

.ct-origin-chip span {
  font-size: 1rem;
}

/* ---------- COLLISION ---------- */
.ct-collision {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.ct-collision-side {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: #fbf7f1;
  border: 1px solid #e7dfd6;
  border-radius: 16px;
  padding: 0.95rem 1rem;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.ct-collision-side:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -14px rgba(44, 58, 44, 0.3);
}

.ct-collision-emoji {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.ct-collision-side p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #4a3a30;
  margin: 0;
}

.ct-collision-side strong {
  color: #2f462f;
}

.ct-collision-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #d97a3f;
  animation: ct-flip 2.4s ease-in-out infinite;
}

@keyframes ct-flip {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
}

.ct-collision-verdict {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #5a4a3a;
  text-align: center;
  margin: 0 0 2rem;
  padding: 0.85rem 1.1rem;
  background: #fdf1e7;
  border-radius: 14px;
  border-left: 3px solid #d97a3f;
}

.ct-collision-verdict strong {
  color: #7a4a2a;
}

/* ---------- FIX ---------- */
.ct-fix {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #f4f9f1, #fbf6ec);
  border: 1.5px solid #cfe0c5;
  border-radius: 24px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.ct-fix::after {
  content: "🛠️";
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 5.5rem;
  opacity: 0.06;
  transform: rotate(-15deg);
  pointer-events: none;
}

.ct-fix-badge {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  animation: ct-wrench 3s ease-in-out infinite;
}

@keyframes ct-wrench {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-12deg);
  }
  75% {
    transform: rotate(12deg);
  }
}

.ct-fix-body h4 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #2f462f;
  margin: 0 0 0.75rem;
}

.ct-fix-not,
.ct-fix-yes,
.ct-fix-why {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #3a4a3a;
  margin: 0 0 0.65rem;
}

.ct-fix-not span,
.ct-fix-yes span {
  margin-right: 0.35rem;
}

.ct-fix-yes {
  background: #fff;
  border-left: 3px solid #9bb88b;
  border-radius: 0 12px 12px 0;
  padding: 0.75rem 1rem;
}

.ct-fix-yes em {
  display: block;
  margin-top: 0.35rem;
  color: #5a7a4a;
  font-style: italic;
  font-weight: 500;
}

.ct-fix-why {
  font-style: italic;
  color: #5a6b5a;
}

.ct-fix-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.ct-fix-topics span {
  font-size: 0.78rem;
  font-weight: 500;
  color: #5a7a4a;
  background: #fff;
  border: 1px solid #cfe0c5;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.ct-fix-topics span:hover {
  transform: translateY(-1px);
  background: #eef6ea;
}

/* ---------- REACTIONS ---------- */
.ct-reactions {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px dashed #e7dfd6;
}

.ct-reactions-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #5a6b5a;
  margin-bottom: 0.85rem;
}

.ct-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.ct-pill {
  background: #fff;
  border: 1.5px solid #e0d9ce;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: #3a4a3a;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.ct-pill:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #9bb88b;
  background: #f4f9f1;
}

.ct-pill.is-chosen {
  background: #9bb88b;
  border-color: #8aab7a;
  color: #fff;
  animation: ct-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ct-thanks {
  margin-top: 0.9rem;
  min-height: 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #7a9a6b;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 780px) {
  .contract-section {
    padding: 1.75rem 1.25rem;
    border-radius: 28px;
  }
  .ct-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .ct-header h2 {
    font-size: 1.5rem;
  }
  .ct-header-emoji {
    font-size: 1.9rem;
  }
  .ct-timeline {
    grid-template-columns: 1fr;
  }
  .ct-timeline-arrow {
    transform: rotate(90deg);
    padding: 0.25rem 0;
  }
  .ct-collision {
    grid-template-columns: 1fr;
  }
  .ct-collision-vs {
    padding: 0.25rem 0;
  }
  .ct-assumptions {
    grid-template-columns: 1fr;
  }
  .ct-fix {
    flex-direction: column;
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ct-header-emoji,
  .ct-timeline-arrow,
  .ct-punch-emoji,
  .ct-contract-seal,
  .ct-collision-vs,
  .ct-fix-badge,
  .ct-assume.is-open,
  .ct-pill.is-chosen {
    animation: none;
  }
}

/* ---------- SHELL ---------- */
.outdated-section {
  position: relative;
  margin: 3rem 0;
  padding: 2.5rem 2rem 2rem;
  background: #fffdfb;
  border: 1px solid #e7dfd6;
  border-radius: 36px;
  box-shadow: 0 20px 40px -28px rgba(44, 58, 44, 0.25);
  overflow: hidden;
  font-family: "Inter", system-ui, sans-serif;
  color: #2c3a2c;
}

.outdated-section::before {
  content: "📸 🔄 🌱 📈 🌾";
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: space-around;
  font-size: 5rem;
  opacity: 0.03;
  transform: rotate(5deg) scale(1.15);
  pointer-events: none;
}

.outdated-section > * {
  position: relative;
  z-index: 2;
}

/* ---------- HEADER ---------- */
.od-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.od-header-emoji {
  font-size: 2.2rem;
  line-height: 1;
  animation: od-sway 3.4s ease-in-out infinite;
  display: inline-block;
}

@keyframes od-sway {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  50% {
    transform: rotate(-5deg) translateY(-3px);
  }
}

.od-header h2 {
  font-family: "Quicksand", "Literata", serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #1e2a1e;
  margin-bottom: 0.35rem;
  border: none;
  padding: 0;
  line-height: 1.3;
}

.od-subhead {
  font-size: 1rem;
  color: #5a6b5a;
  line-height: 1.65;
  max-width: 65ch;
}

.od-subhead em {
  color: #5a7a4a;
  font-weight: 500;
}

/* ---------- FLIP ALBUM ---------- */
.od-album {
  margin-bottom: 2rem;
  text-align: center;
}

.od-album-label {
  font-family: "Quicksand", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #7a9a6b;
  margin: 0 0 1rem;
}

.od-flip-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.od-flip-card {
  width: 100%;
  max-width: 420px;
  height: 240px;
  background: transparent;
  border: none;
  perspective: 1200px;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.od-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}

.od-flip-card.is-flipped .od-flip-inner {
  transform: rotateY(180deg);
}

.od-flip-face {
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1.5px solid;
  box-shadow: 0 16px 34px -22px rgba(44, 58, 44, 0.4);
}

.od-flip-front {
  background: linear-gradient(160deg, #f4f9f1, #fbf6ec);
  border-color: #cfe0c5;
}

.od-flip-back {
  background: linear-gradient(160deg, #fdf6ef, #f0e8e0);
  border-color: #f0dcc5;
  transform: rotateY(180deg);
}

.od-flip-age {
  font-family: "Quicksand", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a9a6b;
  background: #fff;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.od-flip-back .od-flip-age {
  color: #b8714a;
}

.od-flip-emoji {
  font-size: 3rem;
  line-height: 1;
  animation: od-bob 3s ease-in-out infinite;
}

@keyframes od-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(-4deg);
  }
}

.od-flip-caption {
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #2f462f;
  text-align: center;
  line-height: 1.4;
}

.od-flip-back .od-flip-caption {
  color: #7a4a2a;
}

.od-flip-tagline {
  font-size: 0.82rem;
  color: #7a8a7a;
  font-style: italic;
  text-align: center;
}

.od-flip-back .od-flip-tagline {
  color: #9a7a5a;
}

.od-flip-hint {
  font-size: 0.82rem;
  color: #7a9a6b;
  font-weight: 600;
  margin: 0;
  animation: od-pulse-hint 2.4s ease-in-out infinite;
}

@keyframes od-pulse-hint {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.8;
  }
  50% {
    transform: translateY(2px);
    opacity: 1;
  }
}

/* ---------- WHAT CHANGES GRID ---------- */
.od-changes {
  margin-bottom: 2rem;
}

.od-changes-title {
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2f462f;
  margin: 0 0 0.85rem;
  text-align: center;
}

.od-changes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
}

.od-change {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: #fbf7f1;
  border: 1px solid #e7dfd6;
  border-radius: 14px;
  padding: 0.75rem 0.95rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4a5a4a;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.od-change:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: #c9d6c0;
  box-shadow: 0 10px 20px -16px rgba(44, 58, 44, 0.3);
}

.od-change-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.od-change:hover .od-change-icon {
  transform: scale(1.2) rotate(-8deg);
}

/* ---------- TWO PATHS ---------- */
.od-paths {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  align-items: stretch;
  margin-bottom: 0.85rem;
}

.od-path {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  border: 1px solid;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.od-path:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -18px rgba(44, 58, 44, 0.3);
}

.od-path--ambition {
  background: #eef6ea;
  border-color: #cfe0c5;
}

.od-path--quiet {
  background: #f4eef7;
  border-color: #dfd1e4;
}

.od-path-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.od-path p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #3a4a3a;
  margin: 0;
}

.od-path strong {
  color: #2f462f;
}

.od-path-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Quicksand", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #9bb88b;
  font-style: italic;
  padding: 0 0.25rem;
}

.od-paths-verdict {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #5a4a3a;
  text-align: center;
  margin: 0 0 2rem;
  padding: 0.85rem 1.1rem;
  background: #fdf1e7;
  border-radius: 14px;
  border-left: 3px solid #d97a3f;
}

.od-paths-verdict strong {
  color: #7a4a2a;
}

/* ---------- OLD VERSION ARGUMENT ---------- */
.od-argument {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #1a2332, #232f42);
  border-radius: 24px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.75rem;
  color: #e8ecf2;
  position: relative;
  overflow: hidden;
}

.od-argument::after {
  content: "💬";
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 6rem;
  opacity: 0.08;
  transform: rotate(-15deg);
  pointer-events: none;
}

.od-argument-quote {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.7;
  animation: od-bob 3.2s ease-in-out infinite;
}

.od-argument-body {
  position: relative;
  z-index: 1;
}

.od-argument-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #b8c4d4;
  margin: 0 0 0.5rem;
}

.od-argument-text {
  font-family: "Literata", serif;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #fff;
  margin: 0 0 0.85rem;
  font-style: italic;
}

.od-argument-note {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #d4dbe6;
  margin: 0;
  padding: 0.65rem 0.9rem;
  background: rgba(155, 184, 139, 0.14);
  border-left: 3px solid #9bb88b;
  border-radius: 0 10px 10px 0;
}

.od-argument-note strong {
  color: #b8e0a0;
}

/* ---------- PULL QUOTE ---------- */
.od-pull {
  position: relative;
  margin: 0 0 2rem;
  padding: 1.6rem 1.6rem 1.5rem 3.5rem;
  background: #f0ece5;
  border-radius: 20px;
  border-left: 4px solid #9bb88b;
}

.od-pull-mark {
  position: absolute;
  left: 1.2rem;
  top: 1.2rem;
  font-size: 1.4rem;
  color: #9bb88b;
  font-weight: 700;
  animation: od-twirl 4s ease-in-out infinite;
}

@keyframes od-twirl {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.2);
  }
}

.od-pull p {
  font-family: "Literata", serif;
  font-size: 1.2rem;
  line-height: 1.55;
  font-style: italic;
  color: #2c4a2c;
  margin: 0;
}

.od-pull em {
  color: #5a7a4a;
  font-weight: 500;
}

/* ---------- PRACTICE ---------- */
.od-practice {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #f4f9f1, #fbf6ec);
  border: 1.5px solid #cfe0c5;
  border-radius: 24px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.od-practice::after {
  content: "🌱";
  position: absolute;
  right: -12px;
  bottom: -22px;
  font-size: 6rem;
  opacity: 0.06;
  transform: rotate(-15deg);
  pointer-events: none;
}

.od-practice-badge {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  animation: od-grow 3s ease-in-out infinite;
}

@keyframes od-grow {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.15) rotate(-6deg);
  }
}

.od-practice-body {
  position: relative;
  z-index: 1;
  flex: 1;
}

.od-practice-body h4 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #2f462f;
  margin: 0 0 0.6rem;
}

.od-practice-lead {
  font-size: 0.9rem;
  color: #5a6b5a;
  margin: 0 0 0.7rem;
  font-weight: 500;
}

.od-practice-question {
  position: relative;
  background: #fff;
  border: 1.5px dashed #9bb88b;
  border-radius: 16px;
  padding: 1.1rem 2.6rem 1.1rem 1.4rem;
  font-family: "Literata", serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  color: #2f462f;
  margin-bottom: 1rem;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.od-practice-question:hover {
  background: #fdfcf8;
  border-color: #7a9a6b;
}

.od-practice-quote {
  font-family: "Literata", serif;
  font-size: 1.4rem;
  color: #9bb88b;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  margin: 0 0.1rem;
}

.od-copy-btn {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4f9f1;
  border: 1px solid #cfe0c5;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.od-copy-btn:hover {
  transform: scale(1.1);
  background: #e8f0e4;
  border-color: #9bb88b;
}

.od-copy-btn.is-copied {
  background: #9bb88b;
  border-color: #7a9a6b;
  animation: od-copied 1.5s ease;
}

@keyframes od-copied {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.25);
  }
  100% {
    transform: scale(1);
  }
}

.od-practice-rules {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.od-practice-rules li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3a4a3a;
}

.od-practice-rules li span {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.od-practice-rules strong {
  color: #2f462f;
}

/* ---------- REACTIONS ---------- */
.od-reactions {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px dashed #e7dfd6;
}

.od-reactions-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #5a6b5a;
  margin-bottom: 0.85rem;
}

.od-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.od-pill {
  background: #fff;
  border: 1.5px solid #e0d9ce;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: #3a4a3a;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.od-pill:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #9bb88b;
  background: #f4f9f1;
}

.od-pill.is-chosen {
  background: #9bb88b;
  border-color: #8aab7a;
  color: #fff;
  animation: od-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes od-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.13) rotate(-2deg);
  }
  100% {
    transform: scale(1);
  }
}

.od-thanks {
  margin-top: 0.9rem;
  min-height: 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #7a9a6b;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 780px) {
  .outdated-section {
    padding: 1.75rem 1.25rem;
    border-radius: 28px;
  }
  .od-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .od-header h2 {
    font-size: 1.5rem;
  }
  .od-header-emoji {
    font-size: 1.9rem;
  }
  .od-flip-card {
    height: 220px;
    max-width: 340px;
  }
  .od-paths {
    grid-template-columns: 1fr;
  }
  .od-path-vs {
    padding: 0.25rem 0;
  }
  .od-changes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .od-practice {
    flex-direction: column;
    gap: 0.65rem;
  }
  .od-argument {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .od-changes-grid {
    grid-template-columns: 1fr;
  }
  .od-flip-card {
    height: 200px;
    max-width: 290px;
  }
  .od-flip-emoji {
    font-size: 2.4rem;
  }
  .od-flip-caption {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .od-header-emoji,
  .od-flip-emoji,
  .od-flip-hint,
  .od-pull-mark,
  .od-practice-badge,
  .od-argument-quote,
  .od-pill.is-chosen,
  .od-flip-inner {
    animation: none;
    transition: none;
  }
  .od-flip-card.is-flipped .od-flip-inner {
    transform: rotateY(180deg);
  }
}

/* ---------- SHELL ---------- */
.restart-section {
  position: relative;
  margin: 3rem 0;
  padding: 2.5rem 2rem 2rem;
  background: #fffdfb;
  border: 1px solid #e7dfd6;
  border-radius: 36px;
  box-shadow: 0 20px 40px -28px rgba(44, 58, 44, 0.25);
  overflow: hidden;
  font-family: "Inter", system-ui, sans-serif;
  color: #2c3a2c;
}

.restart-section::before {
  content: "🎢 💭 ⏳ 🌅 📒";
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: space-around;
  font-size: 5rem;
  opacity: 0.03;
  transform: rotate(-6deg) scale(1.15);
  pointer-events: none;
}

.restart-section > * {
  position: relative;
  z-index: 2;
}

/* ---------- HEADER ---------- */
.rs-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.rs-header-emoji {
  font-size: 2.2rem;
  line-height: 1;
  animation: rs-sway 3.6s ease-in-out infinite;
  display: inline-block;
}

@keyframes rs-sway {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  50% {
    transform: rotate(-6deg) translateY(-3px);
  }
}

.rs-header h2 {
  font-family: "Quicksand", "Literata", serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #1e2a1e;
  margin-bottom: 0.35rem;
  border: none;
  padding: 0;
  line-height: 1.3;
}

.rs-subhead {
  font-size: 1rem;
  color: #5a6b5a;
  line-height: 1.6;
  max-width: 65ch;
}

/* ---------- THE HURTING QUESTION ---------- */
.rs-question {
  position: relative;
  background: linear-gradient(160deg, #1a2332, #232f42);
  border-radius: 28px;
  padding: 2rem 2rem 1.75rem;
  margin-bottom: 2rem;
  text-align: center;
  overflow: hidden;
}

.rs-question::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 15% 20%,
      rgba(196, 181, 208, 0.18),
      transparent 50%
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(155, 184, 139, 0.15),
      transparent 50%
    );
  pointer-events: none;
}

.rs-question > * {
  position: relative;
}

.rs-question-mark {
  display: block;
  font-family: "Literata", serif;
  font-size: 3rem;
  line-height: 1;
  color: #9bb88b;
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.rs-question-mark--end {
  margin: 0.5rem 0 0.75rem;
}

.rs-question-text {
  font-family: "Literata", serif;
  font-size: 1.35rem;
  line-height: 1.55;
  font-style: italic;
  color: #fff;
  margin: 0 auto;
  max-width: 52ch;
}

.rs-question-note {
  font-size: 0.85rem;
  color: #b8c4d4;
  margin: 1rem 0 0;
  letter-spacing: 0.02em;
}

/* ---------- TWO REASONS TOGGLE ---------- */
.rs-reasons {
  margin-bottom: 2rem;
}

.rs-reasons-label {
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #2f462f;
  margin: 0 0 0.9rem;
  text-align: center;
}

.rs-toggle {
  display: flex;
  gap: 0.5rem;
  background: #fbf7f1;
  border: 1px solid #e7dfd6;
  border-radius: 999px;
  padding: 0.35rem;
  margin-bottom: 1.1rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.rs-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: #7a8a7a;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.2s ease;
}

.rs-tab:hover {
  color: #2f462f;
}

.rs-tab.is-active {
  background: #fff;
  color: #2f462f;
  box-shadow: 0 4px 12px -6px rgba(44, 58, 44, 0.25);
  transform: scale(1.02);
}

.rs-panel {
  display: none;
  background: #f4f9f1;
  border: 1.5px solid #cfe0c5;
  border-radius: 22px;
  padding: 1.5rem 1.6rem;
  gap: 1.1rem;
  align-items: flex-start;
}

.rs-panel.is-active {
  display: flex;
  animation: rs-slide-in 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.rs-panel[data-panel="trapped"] {
  background: #fdf6ef;
  border-color: #f0dcc5;
}

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

.rs-panel-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
  animation: rs-bob 3s ease-in-out infinite;
}

@keyframes rs-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(-6deg);
  }
}

.rs-panel h4 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #2f462f;
  margin: 0 0 0.55rem;
}

.rs-panel[data-panel="trapped"] h4 {
  color: #7a4a2a;
}

.rs-panel p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #3a4a3a;
  margin: 0 0 0.6rem;
}

.rs-panel-note {
  font-size: 0.88rem !important;
  font-style: italic;
  color: #5a6b5a !important;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  border-left: 3px solid #9bb88b;
  margin-top: 0.5rem !important;
}

.rs-panel[data-panel="trapped"] .rs-panel-note {
  border-left-color: #d97a3f;
}

.rs-panel-note strong {
  color: #7a4a2a;
}

/* ---------- THE MIX-UP ---------- */
.rs-mixup {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #f4eef7, #fbf6ec);
  border: 1.5px dashed #c4b5d0;
  border-radius: 22px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 2rem;
}

.rs-mixup-emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  animation: rs-swirl 4s ease-in-out infinite;
}

@keyframes rs-swirl {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(15deg) scale(1.1);
  }
}

.rs-mixup-line {
  font-size: 0.96rem;
  line-height: 1.65;
  color: #3a4a3a;
  margin: 0 0 0.5rem;
}

.rs-mixup-line:last-child {
  margin-bottom: 0;
}

.rs-mixup-line strong {
  color: #4a3a5a;
}

.rs-mixup-line--soft {
  font-style: italic;
  color: #6a5a7a;
  font-size: 0.9rem;
}

/* ---------- SUNK COST ---------- */
.rs-sunk {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: #fbf7f1;
  border: 1px solid #e7dfd6;
  border-radius: 24px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.rs-sunk::after {
  content: "🎓";
  position: absolute;
  right: -10px;
  bottom: -22px;
  font-size: 6rem;
  opacity: 0.06;
  transform: rotate(-12deg);
  pointer-events: none;
}

.rs-sunk-badge {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  animation: rs-cap 3.2s ease-in-out infinite;
}

@keyframes rs-cap {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  50% {
    transform: rotate(-8deg) translateY(-3px);
  }
}

.rs-sunk-body {
  position: relative;
  z-index: 1;
  flex: 1;
}

.rs-sunk-body h4 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #2f462f;
  margin: 0 0 0.65rem;
}

.rs-sunk-body h4 em {
  color: #7a9a6b;
  font-style: italic;
  font-weight: 600;
}

.rs-sunk-body > p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: #3a4a3a;
  margin: 0 0 0.75rem;
}

.rs-sunk-rule {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  background: #fff;
  border: 1px dashed #cfe0c5;
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
}

.rs-sunk-rule-icon {
  font-size: 1.2rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.rs-sunk-rule p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3a4a3a;
  margin: 0;
}

.rs-sunk-rule strong {
  color: #7a4a2a;
}

/* ---------- LEDGER ---------- */
.rs-ledger {
  background: #fdf6ef;
  border: 2px solid #e7dfd6;
  border-radius: 28px;
  padding: 1.75rem 1.6rem 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.rs-ledger::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 28px,
    rgba(217, 198, 178, 0.15) 28px,
    rgba(217, 198, 178, 0.15) 29px
  );
  pointer-events: none;
  opacity: 0.6;
}

.rs-ledger > * {
  position: relative;
  z-index: 1;
}

.rs-ledger-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
}

.rs-ledger-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  animation: rs-flip 4s ease-in-out infinite;
}

@keyframes rs-flip {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-8deg);
  }
  75% {
    transform: rotate(8deg);
  }
}

.rs-ledger-header h4 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #7a4a2a;
  margin: 0 0 0.25rem;
}

.rs-ledger-header p {
  font-size: 0.88rem;
  color: #9a7a5a;
  font-style: italic;
  margin: 0;
}

.rs-ledger-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.rs-ledger-col-header {
  font-family: "Quicksand", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b8714a;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.rs-ledger-col--future .rs-ledger-col-header {
  color: #5a7a4a;
}

.rs-ledger-items {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rs-ledger-item {
  background: #fff;
  border: 1.5px solid #e7dfd6;
  border-radius: 12px;
  padding: 0.6rem 0.85rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  color: #4a3a30;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
  position: relative;
}

.rs-ledger-item::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.65rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #d9c6b2;
  transform: translateY(-50%);
  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.rs-ledger-item:hover {
  transform: translateX(3px);
  border-color: #c9d6c0;
  background: #fffdfb;
}

.rs-ledger-item.is-selected {
  background: linear-gradient(135deg, #fdf6ef, #fffdfb);
  border-color: #d97a3f;
  color: #7a4a2a;
  font-weight: 600;
}

.rs-ledger-item.is-selected::after {
  background: #d97a3f;
  border-color: #d97a3f;
  box-shadow: inset 0 0 0 3px #fdf6ef;
}

.rs-ledger-col--future .rs-ledger-item.is-selected {
  background: linear-gradient(135deg, #f4f9f1, #fffdfb);
  border-color: #9bb88b;
  color: #2f462f;
}

.rs-ledger-col--future .rs-ledger-item.is-selected::after {
  background: #9bb88b;
  border-color: #9bb88b;
  box-shadow: inset 0 0 0 3px #f4f9f1;
}

/* score bar */
.rs-ledger-score {
  margin-top: 1rem;
  padding-top: 1.25rem;
  border-top: 1px dashed #d9c6b2;
}

.rs-ledger-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #e8dccf;
  margin-bottom: 0.85rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}

.rs-ledger-bar-past,
.rs-ledger-bar-future {
  height: 100%;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.rs-ledger-bar-past {
  background: linear-gradient(90deg, #d97a3f, #b85f28);
}

.rs-ledger-bar-future {
  background: linear-gradient(90deg, #7a9a6b, #9bb88b);
}

.rs-ledger-verdict {
  font-size: 0.92rem;
  font-weight: 600;
  color: #7a4a2a;
  margin: 0 0 0.65rem;
  text-align: center;
  min-height: 1.4rem;
  transition: color 0.3s ease;
}

.rs-ledger-reset {
  display: block;
  margin: 0 auto;
  background: transparent;
  border: 1px dashed #d9c6b2;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-family: inherit;
  font-size: 0.78rem;
  color: #b8714a;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-style 0.2s ease;
}

.rs-ledger-reset:hover {
  background: #d97a3f;
  color: #fff;
  border-style: solid;
  border-color: #d97a3f;
}

/* ---------- BETTER QUESTION ---------- */
.rs-better {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #f4f9f1, #fbf6ec);
  border: 1.5px solid #cfe0c5;
  border-radius: 24px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.rs-better::after {
  content: "💎";
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 6rem;
  opacity: 0.06;
  transform: rotate(-15deg);
  pointer-events: none;
}

.rs-better-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  animation: rs-sparkle 2.8s ease-in-out infinite;
}

@keyframes rs-sparkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 0 rgba(155, 184, 139, 0));
  }
  50% {
    transform: scale(1.15) rotate(-6deg);
    filter: drop-shadow(0 4px 8px rgba(155, 184, 139, 0.4));
  }
}

.rs-better > div {
  position: relative;
  z-index: 1;
}

.rs-better-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #7a9a6b;
  margin: 0 0 0.5rem;
}

.rs-better-question {
  font-family: "Literata", serif;
  font-size: 1.18rem;
  line-height: 1.55;
  font-style: italic;
  color: #2f462f;
  margin: 0;
}

.rs-better-question strong {
  color: #7a4a2a;
  font-style: normal;
  font-weight: 700;
}

/* ---------- REACTIONS ---------- */
.rs-reactions {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px dashed #e7dfd6;
}

.rs-reactions-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #5a6b5a;
  margin-bottom: 0.85rem;
}

.rs-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.rs-pill {
  background: #fff;
  border: 1.5px solid #e0d9ce;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: #3a4a3a;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.rs-pill:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #9bb88b;
  background: #f4f9f1;
}

.rs-pill.is-chosen {
  background: #9bb88b;
  border-color: #8aab7a;
  color: #fff;
  animation: rs-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rs-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.13) rotate(-2deg);
  }
  100% {
    transform: scale(1);
  }
}

.rs-thanks {
  margin-top: 0.9rem;
  min-height: 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #7a9a6b;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 780px) {
  .restart-section {
    padding: 1.75rem 1.25rem;
    border-radius: 28px;
  }
  .rs-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .rs-header h2 {
    font-size: 1.5rem;
  }
  .rs-header-emoji {
    font-size: 1.9rem;
  }
  .rs-question {
    padding: 1.6rem 1.3rem 1.4rem;
  }
  .rs-question-text {
    font-size: 1.12rem;
  }
  .rs-toggle {
    flex-direction: column;
    border-radius: 20px;
  }
  .rs-tab {
    border-radius: 14px;
  }
  .rs-panel {
    flex-direction: column;
    gap: 0.65rem;
  }
  .rs-ledger-cols {
    grid-template-columns: 1fr;
  }
  .rs-ledger-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rs-header-emoji,
  .rs-panel-icon,
  .rs-mixup-emoji,
  .rs-sunk-badge,
  .rs-ledger-icon,
  .rs-better-icon,
  .rs-pill.is-chosen {
    animation: none;
  }
  .rs-ledger-bar-past,
  .rs-ledger-bar-future,
  .rs-panel {
    transition: none;
  }
}

/* ---------- SHELL ---------- */
.bestfriend-section {
  position: relative;
  margin: 3rem 0;
  padding: 2.5rem 2rem 2rem;
  background: #fffdfb;
  border: 1px solid #e7dfd6;
  border-radius: 36px;
  box-shadow: 0 20px 40px -28px rgba(44, 58, 44, 0.25);
  overflow: hidden;
  font-family: "Inter", system-ui, sans-serif;
  color: #2c3a2c;
}

.bestfriend-section::before {
  content: "📖 🔍 🎴 ✨ 🛋️";
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-content: space-around;
  font-size: 5rem;
  opacity: 0.03;
  transform: rotate(4deg) scale(1.15);
  pointer-events: none;
}

.bestfriend-section > * {
  position: relative;
  z-index: 2;
}

/* ---------- HEADER ---------- */
.bf-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.bf-header-emoji {
  font-size: 2.2rem;
  line-height: 1;
  animation: bf-sway 3.6s ease-in-out infinite;
  display: inline-block;
}

@keyframes bf-sway {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  50% {
    transform: rotate(-5deg) translateY(-3px);
  }
}

.bf-header h2 {
  font-family: "Quicksand", "Literata", serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: #1e2a1e;
  margin-bottom: 0.35rem;
  border: none;
  padding: 0;
  line-height: 1.3;
}

.bf-subhead {
  font-size: 1rem;
  color: #5a6b5a;
  line-height: 1.6;
  max-width: 65ch;
}

.bf-subhead em {
  color: #7a9a6b;
  font-weight: 500;
}

/* ---------- UNFINISHED BOOK ---------- */
.bf-book {
  margin-bottom: 2rem;
  text-align: center;
}

.bf-book-label {
  font-family: "Quicksand", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #7a9a6b;
  margin: 0 0 0.5rem;
}

.bf-book-intro {
  font-size: 0.92rem;
  color: #5a6b5a;
  margin: 0 0 1.1rem;
}

.bf-book-card {
  position: relative;
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 200px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  perspective: 1400px;
  text-align: left;
}

.bf-book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 14px;
  background: linear-gradient(90deg, #7a4a2a, #a06a40);
  border-radius: 20px 0 0 20px;
  box-shadow: inset -3px 0 6px rgba(0, 0, 0, 0.2);
  z-index: 2;
}

.bf-book-content {
  position: relative;
  min-height: 200px;
  transform-style: preserve-3d;
  transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.bf-book-card.is-open .bf-book-content {
  transform: rotateY(-6deg);
}

.bf-book-front,
.bf-book-back {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: 0 20px 20px 0;
  border: 1.5px solid #e7dfd6;
  border-left: none;
  padding: 1.6rem 1.6rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.bf-book-front {
  background: linear-gradient(135deg, #f4f9f1, #fbf6ec);
  border-color: #cfe0c5;
  opacity: 1;
  transform: translateY(0);
}

.bf-book-back {
  background: linear-gradient(135deg, #fdf6ef, #fbf7f1);
  border-color: #f0dcc5;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

.bf-book-card.is-open .bf-book-front {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.bf-book-card.is-open .bf-book-back {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.bf-book-emoji {
  font-size: 2.4rem;
  line-height: 1;
  animation: bf-page 3s ease-in-out infinite;
}

@keyframes bf-page {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-8deg);
  }
}

.bf-book-title {
  font-family: "Quicksand", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #2f462f;
  line-height: 1.35;
}

.bf-book-card.is-open .bf-book-title {
  color: #7a4a2a;
}

.bf-book-sub,
.bf-book-back-sub {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #5a6b5a;
  font-style: italic;
}

.bf-book-back-sub strong {
  color: #7a4a2a;
  font-style: normal;
}

.bf-book-tap {
  font-size: 0.78rem;
  font-weight: 600;
  color: #9bb88b;
  letter-spacing: 0.02em;
  margin-top: 0.35rem;
}

/* ---------- STOP ---------- */
.bf-stop {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #1a2332, #232f42);
  border-radius: 24px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 2rem;
  color: #e8ecf2;
  position: relative;
  overflow: hidden;
}

.bf-stop::after {
  content: "🤫";
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 6rem;
  opacity: 0.08;
  transform: rotate(-15deg);
  pointer-events: none;
}

.bf-stop-emoji {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  animation: bf-shush 3.4s ease-in-out infinite;
}

@keyframes bf-shush {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(-4deg);
  }
}

.bf-stop > div {
  position: relative;
  z-index: 1;
}

.bf-stop-line {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #d4dbe6;
  margin: 0 0 0.6rem;
}

.bf-stop-line:last-child {
  margin-bottom: 0;
}

.bf-stop-line--bold {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.bf-stop-line--soft {
  font-style: italic;
  color: #b8c4d4;
  font-size: 0.9rem;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

/* ---------- BALANCE ---------- */
.bf-balance {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.8rem;
  align-items: stretch;
  margin-bottom: 2rem;
}

.bf-balance-side {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  border-radius: 18px;
  padding: 1.1rem 1.2rem;
  border: 1px solid;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.bf-balance-side:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -18px rgba(44, 58, 44, 0.3);
}

.bf-balance-side--good {
  background: #eef6ea;
  border-color: #cfe0c5;
}

.bf-balance-side--warn {
  background: #fdf6ef;
  border-color: #f0dcc5;
}

.bf-balance-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.bf-balance-side p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #3a4a3a;
  margin: 0;
}

.bf-balance-side strong {
  color: #2f462f;
}

.bf-balance-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Quicksand", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  font-style: italic;
  color: #9bb88b;
  padding: 0 0.25rem;
}

/* ---------- CURIOSITY DECK ---------- */
.bf-deck {
  background: linear-gradient(160deg, #fdf6ef, #fbf7f1);
  border: 2px dashed #d9c6b2;
  border-radius: 28px;
  padding: 1.75rem 1.5rem 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.bf-deck::after {
  content: "🎴";
  position: absolute;
  right: -12px;
  bottom: -22px;
  font-size: 6.5rem;
  opacity: 0.06;
  transform: rotate(-18deg);
  pointer-events: none;
}

.bf-deck-header {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.bf-deck-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
  animation: bf-fan 3s ease-in-out infinite;
}

@keyframes bf-fan {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-10deg);
  }
  75% {
    transform: rotate(10deg);
  }
}

.bf-deck-header h4 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: #7a4a2a;
  margin: 0 0 0.25rem;
}

.bf-deck-header p {
  font-size: 0.85rem;
  color: #9a7a5a;
  margin: 0;
  font-style: italic;
}

/* deck stage */
.bf-deck-stage {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  perspective: 1200px;
}

.bf-card-stack {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* the card */
.bf-qcard {
  position: relative;
  width: 100%;
  min-height: 170px;
  background: #ffffff;
  border: 1.5px solid #e7dfd6;
  border-radius: 20px;
  padding: 1.5rem 1.4rem;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  box-shadow: 0 12px 26px -18px rgba(44, 58, 44, 0.35);
  transition:
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bf-qcard:hover {
  transform: translateY(-4px) rotate(-1deg);
  box-shadow: 0 20px 34px -20px rgba(44, 58, 44, 0.4);
}

.bf-qcard:focus-visible {
  box-shadow: 0 0 0 3px #9bb88b66;
}

/* stacked deck effect */
.bf-qcard::before,
.bf-qcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fbf7f1;
  border: 1.5px solid #e7dfd6;
  border-radius: 20px;
  z-index: -1;
  transition: transform 0.4s ease;
}

.bf-qcard::before {
  transform: translate(-4px, 4px) rotate(-2deg);
}

.bf-qcard::after {
  transform: translate(-8px, 8px) rotate(-4deg);
  opacity: 0.6;
}

.bf-qcard.is-empty {
  cursor: not-allowed;
  opacity: 0.5;
  filter: grayscale(0.3);
}

.bf-qcard.is-empty:hover {
  transform: none;
}

.bf-qcard-back-text {
  font-family: "Quicksand", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #b8714a;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bf-qcard-corner {
  position: absolute;
  top: 0.7rem;
  left: 0.8rem;
  font-size: 0.95rem;
  opacity: 0.6;
}

.bf-qcard-corner--bottom {
  top: auto;
  left: auto;
  bottom: 0.7rem;
  right: 0.8rem;
  transform: rotate(180deg);
}

/* drawn (revealed) card */
.bf-qcard-drawn {
  animation: bf-deal 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bf-deal {
  0% {
    transform: translateY(-20px) scale(0.9) rotate(-6deg);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
  }
}

.bf-qcard-content {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  text-align: left;
}

.bf-qcard-number {
  font-family: "Quicksand", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9bb88b;
}

.bf-qcard-question {
  font-family: "Literata", serif;
  font-size: 1.08rem;
  line-height: 1.55;
  color: #2f462f;
  font-style: italic;
}

.bf-qcard-tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  color: #b8714a;
  background: #fdf1e7;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  margin-top: 0.2rem;
}

/* controls */
.bf-deck-controls {
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin-bottom: 0.85rem;
  position: relative;
  z-index: 1;
}

.bf-draw-btn {
  background: linear-gradient(145deg, #9bb88b, #7a9a6b);
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(122, 154, 107, 0.6);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.bf-draw-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(122, 154, 107, 0.7);
}

.bf-draw-btn:active {
  transform: translateY(0);
}

.bf-draw-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bf-shuffle-btn {
  background: #fff;
  border: 1.5px solid #d9c6b2;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.bf-shuffle-btn:hover {
  transform: rotate(180deg);
  background: #fdf1e7;
  border-color: #d97a3f;
}

.bf-deck-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: #b8714a;
  text-align: center;
  margin: 0 0 0.65rem;
  position: relative;
  z-index: 1;
}

.bf-deck-note {
  font-size: 0.88rem;
  font-style: italic;
  color: #7a9a6b;
  text-align: center;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* ---------- REACTIONS ---------- */
.bf-reactions {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px dashed #e7dfd6;
}

.bf-reactions-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #5a6b5a;
  margin-bottom: 0.85rem;
}

.bf-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.bf-pill {
  background: #fff;
  border: 1.5px solid #e0d9ce;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: #3a4a3a;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.bf-pill:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #9bb88b;
  background: #f4f9f1;
}

.bf-pill.is-chosen {
  background: #9bb88b;
  border-color: #8aab7a;
  color: #fff;
  animation: bf-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bf-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.13) rotate(-2deg);
  }
  100% {
    transform: scale(1);
  }
}

.bf-thanks {
  margin-top: 0.9rem;
  min-height: 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #7a9a6b;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 780px) {
  .bestfriend-section {
    padding: 1.75rem 1.25rem;
    border-radius: 28px;
  }
  .bf-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .bf-header h2 {
    font-size: 1.5rem;
  }
  .bf-header-emoji {
    font-size: 1.9rem;
  }
  .bf-balance {
    grid-template-columns: 1fr;
  }
  .bf-balance-vs {
    padding: 0.25rem 0;
  }
  .bf-stop {
    flex-direction: column;
    gap: 0.5rem;
  }
  .bf-deck-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .bf-book-content,
  .bf-book-front,
  .bf-book-back {
    min-height: 230px;
  }
  .bf-qcard-question {
    font-size: 1rem;
  }
  .bf-deck-controls {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bf-header-emoji,
  .bf-book-emoji,
  .bf-stop-emoji,
  .bf-deck-icon,
  .bf-pill.is-chosen,
  .bf-qcard-drawn {
    animation: none;
  }
  .bf-book-content,
  .bf-book-front,
  .bf-book-back,
  .bf-qcard {
    transition: none;
  }
  .bf-book-card.is-open .bf-book-content {
    transform: none;
  }
}

/* ============================================================
   SECTION ⑧ DEMAND-WITHDRAW — INTERACTIVE DESIGN
   ============================================================ */

/* Outer wrapper & border */
.section-fade:has(#demand-withdraw) {
  background: #ffffff;
  border: 1px solid #e2dbd1;
  border-left: 6px solid #7a9a6b; /* Deep Sage accent */
  border-radius: 24px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 12px 30px -22px rgba(44, 58, 44, 0.25);
  position: relative;
}

.section-fade:has(#demand-withdraw) > h2,
.dw-section h2 {
  margin-top: 0 !important;
  border-bottom: none !important;
  padding-bottom: 1rem !important;
  padding-left: 0 !important;
}

.section-fade:has(#demand-withdraw) > h2::before,
.dw-section h2::before {
  display: none !important;
}

/* Container */
.dw-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Header */
.dw-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.dw-header-emoji {
  font-size: 2.2rem;
  line-height: 1;
  animation: dw-sway 4s ease-in-out infinite;
}

@keyframes dw-sway {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-8deg) scale(1.1);
  }
}

.dw-subhead {
  font-size: 1rem;
  color: #5a6b5a;
  line-height: 1.6;
  max-width: 65ch;
}

/* The Two Sides */
.dw-sides {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: stretch;
}

.dw-side {
  border-radius: 18px;
  padding: 1.25rem 1.4rem;
  border: 1px solid;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.dw-side:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -12px rgba(44, 58, 44, 0.2);
}

.dw-side--demand {
  background: #fdf6ef;
  border-color: #f0dcc5;
}

.dw-side--withdraw {
  background: #eef6ea;
  border-color: #cfe0c5;
}

.dw-side-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.dw-side h3 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: #2f462f;
}

.dw-side p {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4a5a4a;
  margin: 0;
}

.dw-side-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-style: italic;
  color: #9bb88b;
  font-size: 1rem;
}

/* The Cycle Box */
.dw-cycle-box {
  background: #fbf7f1;
  border: 2px dashed #d9c6b2;
  border-radius: 24px;
  padding: 1.75rem;
  position: relative;
}

.dw-cycle-title {
  font-family: "Quicksand", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #7a4a2a;
  margin: 0 0 1.25rem;
  text-align: center;
}

.dw-cycle-track {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.dw-cycle-node {
  background: #fff;
  border: 1px solid #e7dfd6;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #3a4a3a;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  box-shadow: 0 4px 10px -6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.dw-cycle-node:hover {
  transform: scale(1.02);
  border-color: #9bb88b;
}

.dw-node-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef4e9;
  color: #5a7a4a;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.dw-node--alert {
  background: #fdf6ef;
  border-color: #f0dcc5;
}

.dw-node--alert .dw-node-num {
  background: #fce5d0;
  color: #b8714a;
}

.dw-cycle-arrow {
  font-size: 0.9rem;
  color: #b8ab9a;
  animation: dw-bounce 2s infinite;
}

@keyframes dw-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

.dw-cycle-verdict {
  background: #1a2332;
  color: #e8ecf2;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1.5rem;
}

/* The Fix Card */
.dw-fix-card {
  background: linear-gradient(135deg, #f4f9f1, #fbf6ec);
  border: 1.5px solid #cfe0c5;
  border-radius: 24px;
  padding: 1.5rem;
}

.dw-fix-card h3 {
  font-family: "Quicksand", sans-serif;
  font-size: 1.1rem;
  margin: 0 0 1.25rem;
  color: #2f462f;
}

.dw-fix-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dw-fix-row {
  background: #fff;
  padding: 1rem;
  border-radius: 14px;
  border-left: 3px solid #9bb88b;
}

.dw-fix-who {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: #2f462f;
}

.dw-fix-say {
  font-family: "Literata", serif;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #5a4a3a;
}

.dw-fix-note {
  font-size: 0.88rem;
  color: #5a6b5a;
  line-height: 1.6;
  margin: 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
}

/* Reactions */
.dw-reactions {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px dashed #e7dfd6;
}

.dw-reactions-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: #5a6b5a;
  margin-bottom: 0.85rem;
}

.dw-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.dw-pill {
  background: #fff;
  border: 1.5px solid #e0d9ce;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: #3a4a3a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dw-pill:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: #9bb88b;
  background: #f4f9f1;
}

.dw-pill.is-chosen {
  background: #9bb88b;
  border-color: #8aab7a;
  color: #fff;
  animation: dw-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dw-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.13) rotate(-2deg);
  }
  100% {
    transform: scale(1);
  }
}

.dw-thanks {
  margin-top: 0.9rem;
  min-height: 1.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #7a9a6b;
}

/* Mobile */
@media (max-width: 780px) {
  .section-fade:has(#demand-withdraw) {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
    border-left-width: 5px;
  }
  .dw-header {
    flex-direction: column;
    gap: 0.75rem;
  }
  .dw-sides {
    grid-template-columns: 1fr;
  }
  .dw-side-vs {
    padding: 0.25rem 0;
    transform: rotate(90deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dw-header-emoji,
  .dw-cycle-arrow,
  .dw-pill.is-chosen {
    animation: none;
  }
}

/* ===== FUTURE LETTER ===== */
.future-letter {
  background: linear-gradient(135deg, #e8f0ea, #dfeada);
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  border-left: 6px solid var(--primary-sage);
}
.future-letter h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #2c4a2c;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.future-letter .letter-content {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #3a4a3a;
}
.future-letter .letter-content p {
  color: #3a4a3a;
}
.future-letter .signature {
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: #5a6b5a;
}

/* ===== REFLECTION BOX ===== */
.reflection-box {
  background: #f0ebe4;
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin: 2rem 0;
  border-left: 6px solid var(--accent-dusty-blue);
}
.reflection-box h4 {
  font-size: 1.15rem;
  margin: 0 0 0.8rem;
  color: #2f462f;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.reflection-box h4 i {
  color: var(--accent-dusty-blue);
}
.reflection-box p {
  font-size: 1rem;
  line-height: 1.65;
  color: #3a4a3a;
  margin-bottom: 0.6rem;
}
.reflection-box p:last-child {
  margin-bottom: 0;
}

/* ===== EXPERT QUOTE ===== */
.expert-quote {
  margin: 2.8rem 0 2rem;
  padding: 0 1.5rem 0 2.2rem;
  border-left: 5px solid var(--primary-sage);
  position: relative;
}
.expert-quote p {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.6;
  font-style: italic;
  color: #3d4d3d;
  margin-bottom: 0.6rem;
}
.quote-source {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.92rem;
  color: #5f705f;
}
.quote-source i {
  color: var(--accent-terra);
}

/* ===== FIX GRID ===== */
.fix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}
.fix-card {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.5rem 3.5rem;
  border: 1px solid #e2ddd5;
  box-shadow: 0 6px 20px -12px rgba(44, 58, 44, 0.15);
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.fix-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-sage);
}
.fix-num {
  position: absolute;
  left: 1rem;
  top: 1.4rem;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(145deg, #9bb88b, #7a9a6b);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
}
.fix-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.fix-card p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #3a4a3a;
  margin: 0;
}

/* ===== PRINTABLE SUMMARY ===== */
.printable-summary {
  background: #f5efe7;
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem 0;
  border: 2px dashed var(--primary-sage);
}
.printable-summary h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.printable-summary ul {
  margin: 1rem 0 1.5rem 1.5rem;
}
.printable-summary li {
  margin-bottom: 0.7rem;
  line-height: 1.6;
  color: #3a4a3a;
}
.printable-summary button {
  background: var(--primary-sage);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 60px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
}
.printable-summary button:hover {
  background: #8aab7a;
}
@media print {
  body * {
    visibility: hidden;
  }
  .printable-summary,
  .printable-summary * {
    visibility: visible;
  }
  .printable-summary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    margin: 0;
  }
}

/* ===== REALITY CHECK ===== */
.reality-check {
  background: #f0ece5;
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--accent-dusty-blue);
}
.reality-check ol {
  margin: 0 0 0 1.4rem;
}
.reality-check li {
  margin-bottom: 0.7rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #3a4a3a;
}
.reality-note {
  font-size: 0.92rem !important;
  color: #5a6b5a !important;
  margin-top: 1rem !important;
  font-style: italic;
}

/* ===== ANONYMOUS BOX ===== */
.anonymous-box {
  background: linear-gradient(135deg, #f5f1eb, #eef4ee);
  border-radius: 24px;
  padding: 2rem;
  margin: 2.5rem 0;
  border: 1px solid #e0dbd1;
}
.anonymous-box h3 {
  font-size: 1.15rem;
  margin: 0 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.anonymous-box h3 i {
  color: var(--accent-terra);
}
.anon-sub {
  font-size: 0.85rem !important;
  color: #7a8879 !important;
  margin-bottom: 1rem !important;
}
.anonymous-box textarea {
  width: 100%;
  padding: 0.9rem;
  border-radius: 14px;
  border: 1px solid #d9cfc1;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  resize: vertical;
  margin-bottom: 0.8rem;
  box-sizing: border-box;
}
.anonymous-box button {
  background: var(--primary-sage);
  border: none;
  padding: 0.7rem 1.6rem;
  border-radius: 60px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
}
.anonymous-box button:hover {
  background: #8aab7a;
}
.anon-thanks {
  font-size: 0.9rem !important;
  color: #5a6b5a !important;
  margin-top: 0.8rem !important;
}

/* ===== REACTIONS ===== */
.article-reactions {
  margin: 3rem 0;
}
.reaction-card {
  background: linear-gradient(135deg, #fffaf5, #f7fbf6);
  border: 1px solid #e8e2d9;
  border-radius: 22px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
}
.reaction-emoji {
  font-size: 1.9rem;
  margin-bottom: 0.5rem;
}
.reaction-head h3 {
  font-size: 1.6rem;
  margin: 0 0 0.6rem;
  color: #3f5145;
}
.reaction-head p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  color: #6b716c;
  line-height: 1.7;
  font-size: 0.95rem;
}
.reaction-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.reaction-btn {
  border: 1px solid #e7e3dc;
  background: #fff;
  border-radius: 18px;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.reaction-btn:hover {
  transform: translateY(-2px);
  border-color: var(--primary-sage);
}
.reaction-icon {
  font-size: 1.5rem;
}
.reaction-label {
  font-size: 0.85rem;
  color: #4d584f;
}
.reaction-count {
  font-size: 0.75rem;
  color: #999;
}
.reaction-row-secondary .reaction-btn {
  flex-direction: row;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  font-size: 0.9rem;
  color: #5a584f;
}
.reaction-row-secondary .save-btn {
  background: #f4efe7;
  border: none;
}
.reaction-row-secondary .share-btn {
  background: #eaf2ec;
  border: none;
  color: #49614e;
}
.reaction-message {
  min-height: 22px;
  margin-top: 1rem;
  color: #71806f;
  font-size: 0.9rem;
}

/* ===== FAQ ===== */
.faq-section {
  background: #f5f1eb;
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  margin: 2rem 0;
}
.faq-item {
  margin: 1.8rem 0;
  border-bottom: 1px dashed #d4cbbc;
  padding-bottom: 1.6rem;
}
.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.faq-question {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.7rem;
  color: #2f462f;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}
.faq-question i {
  color: var(--primary-sage);
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.faq-item p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: #3a4a3a;
}

/* ===== CLOSING ===== */
.closing-line {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.6;
  color: #2c4a2c;
  padding: 1.5rem 1.8rem;
  margin: 1.8rem 0;
  background: #e8f0ea;
  border-left: 4px solid var(--primary-sage);
  border-radius: 0 16px 16px 0;
  font-style: italic;
}
.closing-hope {
  font-size: 1.05rem;
  color: #3a4a3a;
  padding: 1.2rem 1.4rem;
  background: #f9f7f4;
  border-radius: 16px;
  border: 1px dashed #d9cfc1;
  margin-top: 1.5rem;
}

/* ===== AUTHOR BIO ===== */
.author-bio {
  display: flex;
  gap: 1.8rem;
  background: transparent;
  border-radius: 32px;
  padding: 2rem;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--accent-terra);
  flex-wrap: wrap;
}
.author-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(145deg, #130730, #8b5a44);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  color: white;
  font-family: var(--font-serif);
  flex-shrink: 0;
}
.author-info {
  flex: 1;
  min-width: 260px;
}
.author-info h4 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}
.author-info h4 a {
  color: inherit;
  text-decoration: underline;
}
.author-info p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 0.9rem;
  color: #3a4a3a;
}
.author-credentials {
  font-size: 0.83rem !important;
  margin: 0 !important;
  color: #5f6e5f !important;
}
.author-credentials i {
  color: var(--primary-sage);
  margin-right: 0.3rem;
}

/* ===== DISCLAIMER ===== */
.disclaimer-box {
  margin: 2.5rem 0 2rem;
  padding: 1.5rem;
  background: #f9f7f4;
  border-radius: 12px;
  border: 1px solid #e2ddd5;
  font-size: 0.85rem;
  color: #5d5d5d;
  line-height: 1.6;
}
.disclaimer-box p {
  margin: 0 0 0.7rem;
  font-size: 0.85rem;
  color: #5d5d5d;
}
.disclaimer-box p:last-child {
  margin-bottom: 0;
}
.disclaimer-box a {
  color: var(--accent-terra);
}

/* ===== REFERENCES ===== */
.reference-list {
  margin: 2.5rem 0;
  padding: 1.8rem;
  background: #f5f1eb;
  border-radius: 24px;
  border-left: 4px solid var(--primary-sage);
}
.reference-list h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin: 0 0 1.2rem;
  color: #2c3a2c;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.reference-list > p {
  margin-bottom: 0.8rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #3a4a3a;
}
.reference-list a {
  color: var(--accent-dusty-blue);
  word-break: break-word;
}
.fair-use {
  margin-top: 1rem !important;
  padding-top: 1rem;
  border-top: 1px solid #d9cfc1;
  color: #6f7c6f !important;
  font-style: italic;
}
.fair-use i {
  color: var(--primary-sage);
  margin-right: 0.3rem;
}

/* ===== RELATED LINK ROW ===== */
.related-link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 1.2rem;
  background: #f9f7f4;
  border-radius: 60px;
  border: 1px dashed #d9cfc1;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.related-arrow {
  animation: arrow-slide 1.8s ease-in-out infinite;
}
@keyframes arrow-slide {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}
.internal-link {
  background: #eef2ea;
  padding: 0.2rem 1rem;
  border-radius: 40px;
  display: inline-block;
  font-weight: 500;
  margin: 0.2rem 0;
  border: 1px solid #cbd6c0;
  text-decoration: none;
  color: #2c4a2c;
  transition: all 0.2s;
}
.internal-link:hover {
  background: #e2e9da;
  transform: translateY(-2px);
}

/* ===== RECOMMENDATIONS ===== */
.recommendations-section {
  margin: 3rem 0;
  padding: 2rem;
  background: #fafafa;
  border-radius: 24px;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
}
.recommendations-section h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: #2c3e50;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.recommendations-section h3 i {
  color: var(--primary-sage);
}
.rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.rec-card {
  background: white;
  border-radius: 18px;
  padding: 1.4rem;
  border: 1px solid #e2ddd5;
  text-decoration: none;
  color: var(--text-deep);
  display: block;
  transition:
    transform 0.25s,
    border-color 0.25s,
    box-shadow 0.25s;
}
.rec-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-sage);
  box-shadow: 0 12px 24px -8px rgba(155, 184, 139, 0.25);
}
.rec-card i {
  color: var(--primary-sage);
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  display: block;
}
.rec-card strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: #1e2a1e;
  line-height: 1.4;
}
.rec-card p {
  font-size: 0.82rem;
  color: #6f7c6f;
  margin: 0;
  line-height: 1.5;
}

/* ===== ESSENTIALS ===== */
.essentials-intro {
  font-size: 1.05rem;
  color: #5a6b5a;
}
.essentials-card {
  background: #f5f1eb;
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin: 1.2rem 0;
  border-left: 4px solid var(--primary-sage);
}
.essentials-card h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.essentials-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.essentials-closing {
  background: var(--primary-sage);
  color: white;
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ===== SIDEBAR ===== */
.sidebar-module {
  background: #f4f0ea;
  border-radius: var(--border-radius-md);
  padding: 1.2rem;
  margin-bottom: 1.2rem;
}
.sidebar-module h4 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin: 0 0 0.8rem;
  color: #1e3a1e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-module h4 i {
  color: var(--primary-sage);
}
.toc-list {
  list-style: none;
}
.toc-list li {
  margin-bottom: 0.3rem;
}
.nav-link {
  display: block;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  color: #3a4a3a;
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.4;
  border: none;
}
.nav-link:hover {
  background: rgba(155, 184, 139, 0.18);
  color: #1e2a1e;
  border: none;
}
.progress-block {
  text-align: center;
}
.progress-number {
  font-size: 2.5rem;
  font-family: var(--font-serif);
  color: var(--primary-sage);
  line-height: 1;
}
.progress-block p {
  font-size: 0.85rem;
  color: #5a6b5a;
  margin: 0.4rem 0 1rem;
}
.progress-block button {
  background: transparent;
  border: 1px solid var(--primary-sage);
  border-radius: 40px;
  padding: 0.5rem 1rem;
  width: 100%;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #3a4a3a;
}
.progress-block button:hover {
  background: var(--primary-sage);
  color: white;
}
.quick-ref {
  background: white;
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.8rem;
}
.quick-ref-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: #2f462f;
  margin: 0 0 0.3rem;
}
.quick-ref-title i {
  color: var(--primary-sage);
  margin-right: 0.3rem;
}
.quick-ref-body {
  font-size: 0.82rem;
  color: #5a6b5a;
  margin: 0;
  line-height: 1.5;
  font-style: italic;
}
.newsletter-pitch {
  font-size: 0.85rem;
  color: #5a6b5a;
  margin-bottom: 0.7rem;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.newsletter-form input {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 40px;
  border: 1px solid #d3cbbc;
  background: #fcfaf8;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  box-sizing: border-box;
}
.newsletter-form button {
  background: var(--primary-sage);
  border: none;
  color: white;
  padding: 0.7rem 1.4rem;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.85rem;
}
.newsletter-form button:hover {
  background: #8aab7a;
}

/* ===== SKIP BTN ===== */
.skip-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #2c3a2c;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 60px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  z-index: 999;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.skip-btn:hover {
  background: #1e2a1e;
  transform: scale(1.03);
}

/* ===== BREAK ===== */
.break-screen {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.break-card {
  background: white;
  max-width: 460px;
  width: 100%;
  padding: 2.5rem 2rem;
  border-radius: 32px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.break-emoji {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}
.break-card h3 {
  margin-bottom: 0.8rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}
.break-card p {
  color: #5a6b5a;
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}
.break-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}
.break-card button {
  padding: 0.8rem 1.5rem;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.break-card button:first-child {
  background: var(--primary-sage);
  color: white;
}
.break-card button:last-child {
  background: #f0ede8;
  color: #5a5a5a;
}

/* ===== FOOTER ===== */
.site-footer {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #2c2826;
  color: #dacbc0;
  padding: 3rem 1.5rem 0;
  margin-top: 4rem;
  overflow-x: hidden;
}
.footer-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}
.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
}
.footer-logo span {
  color: #c87a5a;
}
.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #dacbc0;
}
.footer-col h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.25rem 0;
}
.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;
}
.footer-links a:hover {
  color: #c87a5a;
}
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #dacbc0;
  text-decoration: none;
}
.social-link:hover {
  background: #c87a5a;
  color: #fff;
}
.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-newsletter-form input {
  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;
}
.footer-newsletter-form input::placeholder {
  color: rgba(218, 203, 192, 0.6);
}
.footer-newsletter-form button {
  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;
}
.footer-newsletter-form button:hover {
  background: #5d7a6a;
}
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #dacbc0;
}
.trust-badge i {
  color: #c87a5a;
}
.footer-disclaimer {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  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;
}
.footer-disclaimer i {
  color: #c87a5a;
  margin-top: 0.15rem;
  flex-shrink: 0;
}
.footer-copyright {
  text-align: center;
  padding: 0.5rem 0 1rem;
}
.footer-copyright p {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.85;
}
.footer-contact {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}
.footer-contact i {
  color: #c87a5a;
}
.footer-contact a {
  color: #dacbc0;
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-contact a:hover {
  color: #c87a5a;
}
/* ===== RESPONSIVE ===== */
@media (min-width: 1025px) {
  .sidebar {
    display: block;
  }
  .article-content {
    margin: 0;
  }
}

@media (max-width: 1024px) {
  h1,
  .article-title {
    font-size: 38px;
  }
  h2 {
    font-size: 28px;
  }
  h2::before {
    display: none;
  }
  .main-wrapper {
    padding: 0 1.5rem;
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brain-split {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .brain-divider {
    padding: 0.3rem 0;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 17px;
  }
  h1,
  .article-title {
    font-size: 32px;
  }
  h2 {
    font-size: 26px;
  }
  h3 {
    font-size: 20px;
  }
  .subhead {
    font-size: 19px;
  }
  .main-wrapper {
    padding: 0 1rem;
  }
  .reading-mode-selector {
    flex-direction: column;
    padding: 0 1rem;
  }
  .mode-btn {
    text-align: center;
  }
  .hero-container {
    height: 220px;
  }
  .opening-hook {
    padding: 2rem 1.5rem;
    border-radius: 24px;
  }
  .hook-em {
    font-size: 1.2rem;
  }
  .author-note {
    padding: 1.5rem 1.5rem 1.5rem 4rem;
    border-radius: 40px;
  }
  .author-note-icon {
    left: 1rem;
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }
  .fix-grid {
    grid-template-columns: 1fr;
  }
  .contract-grid {
    grid-template-columns: 1fr;
  }
  .poll-options {
    grid-template-columns: 1fr;
  }
  .expert-quote p {
    font-size: 1.1rem;
  }
  .pull-quote {
    font-size: 1.1rem;
    padding: 1.2rem 1.3rem;
  }
  .faq-section {
    padding: 1.5rem;
  }
  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }
  .skip-btn {
    bottom: 16px;
    right: 16px;
    padding: 10px 18px;
    font-size: 0.8rem;
  }
  .author-bio {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .author-avatar {
    margin-bottom: 0.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-col {
    align-items: center;
  }
  .footer-newsletter-form {
    max-width: 320px;
    margin: 0 auto;
  }
  .footer-trust {
    flex-direction: column;
    gap: 0.5rem;
  }
  .reaction-row {
    flex-direction: column;
    align-items: stretch;
  }
  .reaction-btn {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  h1,
  .article-title {
    font-size: 28px;
  }
  h2 {
    font-size: 22px;
  }
  .hero-container {
    height: 180px;
  }
  .opening-hook {
    padding: 1.6rem 1.2rem;
  }
  .hook-em {
    font-size: 1.1rem;
  }
  .byline {
    font-size: 13px;
    gap: 0.8rem;
  }
  .mood-tracker button {
    margin-left: 0;
    margin-top: 0.6rem;
    display: block;
    width: 100%;
  }
  .live-poll {
    padding: 1.5rem 1.2rem;
  }
  .audio-embed {
    padding: 0.5rem 1rem 0.5rem 0.5rem;
  }
  .audio-play {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
  .audio-title {
    font-size: 0.85rem;
  }
  .audio-meta {
    font-size: 0.7rem;
  }
  .related-link-row {
    padding: 0.8rem 1rem;
    font-size: 0.88rem;
  }
  .printable-summary {
    padding: 1.3rem;
  }
  .closing-line {
    font-size: 1.05rem;
    padding: 1.2rem 1.3rem;
  }
}

@media (max-width: 320px) {
  body {
    font-size: 16px;
  }
  h1,
  .article-title {
    font-size: 24px;
  }
  h2 {
    font-size: 20px;
  }
  .main-wrapper {
    padding: 0 0.75rem;
  }
  .hero-container {
    height: 150px;
  }
  .reading-mode-selector {
    padding: 0 0.75rem;
  }
  .mode-btn {
    font-size: 0.78rem;
    padding: 0.5rem 1rem;
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .logo-icon,
  .hook-glow,
  .author-note-glow,
  .related-arrow,
  .section-fade[data-reveal] {
    animation: none !important;
  }
  .section-fade[data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   BORDER FOR SECTION ① THE MIRAGE
   ============================================================ */

/* Target the section wrapper that contains the #mirage heading */
.section-fade:has(#mirage) {
  background: #ffffff;
  border: 1px solid #e2dbd1;
  border-left: 6px solid #9bb88b; /* Sage green accent */
  border-radius: 24px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 12px 30px -22px rgba(44, 58, 44, 0.25);
  position: relative;
}

/* Adjust the H2 inside so it aligns nicely with the new border */
.section-fade:has(#mirage) > h2 {
  margin-top: 0 !important;
  border-bottom: none !important;
  padding-bottom: 1rem !important;
}

/* Hide the sparkle to keep the card look clean */
.section-fade:has(#mirage) > h2::before {
  display: none !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .section-fade:has(#mirage) {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
    border-left-width: 5px;
  }
}

/* ============================================================
   BORDER FOR SECTION ② THE FRIENDSHIP TRAP
   ============================================================ */

/* Target the section wrapper that contains the #friendship-trap heading */
.section-fade:has(#friendship-trap) {
  background: #ffffff;
  border: 1px solid #e2dbd1;
  border-left: 6px solid #7b9cb0; /* Dusty blue accent */
  border-radius: 24px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 12px 30px -22px rgba(44, 58, 44, 0.25);
  position: relative;
}

/* Adjust the H2 inside so it aligns nicely with the new border */
.section-fade:has(#friendship-trap) > h2 {
  margin-top: 0 !important;
  border-bottom: none !important;
  padding-bottom: 1rem !important;
}

/* Hide the sparkle to keep the card look clean */
.section-fade:has(#friendship-trap) > h2::before {
  display: none !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .section-fade:has(#friendship-trap) {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
    border-left-width: 5px;
  }
}

/* ============================================================
   BORDER FOR SECTION ④ THE DOMESTIC TRAP
   ============================================================ */

/* Target the section wrapper that contains the #domestic-trap heading */
.section-fade:has(#domestic-trap) {
  background: #ffffff;
  border: 1px solid #e2dbd1;
  border-left: 6px solid #c4b5d0; /* Lavender accent */
  border-radius: 24px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 12px 30px -22px rgba(44, 58, 44, 0.25);
  position: relative;
}

/* Adjust the H2 inside so it aligns nicely with the new border */
.section-fade:has(#domestic-trap) > h2 {
  margin-top: 0 !important;
  border-bottom: none !important;
  padding-bottom: 1rem !important;
}

/* Hide the sparkle to keep the card look clean */
.section-fade:has(#domestic-trap) > h2::before {
  display: none !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .section-fade:has(#domestic-trap) {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
    border-left-width: 5px;
  }
}

/* ============================================================
   BORDER FOR SECTION ⑤ THE COMMITMENT PARADOX
   ============================================================ */

/* Target the section wrapper that contains the #commitment-paradox heading */
.section-fade:has(#commitment-paradox) {
  background: #ffffff;
  border: 1px solid #e2dbd1;
  border-left: 6px solid #c87a5a; /* Terra warm orange accent */
  border-radius: 24px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 12px 30px -22px rgba(44, 58, 44, 0.25);
  position: relative;
}

/* Adjust the H2 inside so it aligns nicely with the new border */
.section-fade:has(#commitment-paradox) > h2 {
  margin-top: 0 !important;
  border-bottom: none !important;
  padding-bottom: 1rem !important;
}

/* Hide the sparkle to keep the card look clean */
.section-fade:has(#commitment-paradox) > h2::before {
  display: none !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .section-fade:has(#commitment-paradox) {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
    border-left-width: 5px;
  }
}

/* ============================================================
   BORDER FOR SECTION ⑦ THE EMOTIONAL DEBT ACCOUNT
   ============================================================ */

/* Target the section wrapper that contains the #emotional-debt heading */
.section-fade:has(#emotional-debt) {
  background: #ffffff;
  border: 1px solid #e2dbd1;
  border-left: 6px solid #d97a3f; /* Warm orange accent */
  border-radius: 24px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 12px 30px -22px rgba(44, 58, 44, 0.25);
  position: relative;
}

/* Adjust the H2 inside so it aligns nicely with the new border */
.section-fade:has(#emotional-debt) > h2 {
  margin-top: 0 !important;
  border-bottom: none !important;
  padding-bottom: 1rem !important;
}

/* Hide the sparkle to keep the card look clean */
.section-fade:has(#emotional-debt) > h2::before {
  display: none !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .section-fade:has(#emotional-debt) {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
    border-left-width: 5px;
  }
}

/* ============================================================
   BORDER FOR SECTION ⑪ EXPOSED, NOT CAUSED
   ============================================================ */

/* Target the section wrapper that contains the #exposed-not-caused heading */
.section-fade:has(#exposed-not-caused) {
  background: #ffffff;
  border: 1px solid #e2dbd1;
  border-left: 6px solid #b8b9c0; /* Soft Moon-grey accent */
  border-radius: 24px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 12px 30px -22px rgba(44, 58, 44, 0.25);
  position: relative;
}

/* Adjust the H2 inside so it aligns nicely with the new border */
.section-fade:has(#exposed-not-caused) > h2 {
  margin-top: 0 !important;
  border-bottom: none !important;
  padding-bottom: 1rem !important;
}

/* Hide the sparkle to keep the card look clean */
.section-fade:has(#exposed-not-caused) > h2::before {
  display: none !important;
}

/* Give the expert quote a bit more breathing room inside the card */
.section-fade:has(#exposed-not-caused) .expert-quote {
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .section-fade:has(#exposed-not-caused) {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
    border-left-width: 5px;
  }
}

/* ============================================================
   BORDER FOR THE "HOW TO FIX" SECTION
   ============================================================ */

/* Target the section wrapper that contains the #how-to-fix heading */
.section-fade:has(#how-to-fix) {
  background: #ffffff;
  border: 1px solid #e2dbd1;
  border-left: 6px solid #9bb88b; /* Sage green accent */
  border-radius: 24px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  box-shadow: 0 12px 30px -22px rgba(44, 58, 44, 0.25);
  position: relative;
}

/* Adjust the H2 inside so it aligns nicely with the new border */
.section-fade:has(#how-to-fix) > h2 {
  margin-top: 0 !important;
  border-bottom: none !important;
  padding-bottom: 1rem !important;
}

/* Hide the sparkle to keep the card look clean */
.section-fade:has(#how-to-fix) > h2::before {
  display: none !important;
}

/* Ensure the printable summary (if present) flows nicely inside the card */
.section-fade:has(#how-to-fix) .printable-summary {
  margin-bottom: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .section-fade:has(#how-to-fix) {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
    border-left-width: 5px;
  }
}

/* ============================================================
   BORDER FOR THE CONCLUSION (THE FINAL TRUTH)
   ============================================================ */

/* Target the section wrapper that contains the #final-truth heading */
.section-fade:has(#final-truth) {
  background: #ffffff;
  border: 1px solid #e2dbd1;
  border-left: 6px solid #c87a5a; /* Terra warm orange accent */
  border-radius: 24px;
  padding: 2.5rem 2rem;
  margin: 3.5rem 0 2.5rem 0;
  box-shadow: 0 16px 40px -20px rgba(44, 58, 44, 0.3); /* Slightly deeper shadow for conclusion */
  position: relative;
}

/* Adjust the H2 inside so it aligns nicely with the new border */
.section-fade:has(#final-truth) > h2 {
  margin-top: 0 !important;
  border-bottom: none !important;
  padding-bottom: 1rem !important;
}

/* Hide the sparkle to keep the card look clean */
.section-fade:has(#final-truth) > h2::before {
  display: none !important;
}

/* Ensure the closing lines and hopes sit nicely inside */
.section-fade:has(#final-truth) .closing-line,
.section-fade:has(#final-truth) .closing-hope {
  margin-bottom: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .section-fade:has(#final-truth) {
    padding: 1.75rem 1.25rem;
    border-radius: 20px;
    border-left-width: 5px;
    margin: 2.5rem 0 2rem 0;
  }
}
