/* ==========================================================================
   Daily Paths — Version B: Fresh Editorial
   Open, book-like design with generous typography
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --deep-teal: #2C5F5D;
  --ocean: #4E8C89;
  --seafoam: #7FBAB7;
  --mist: #AFCFCD;
  --cloud: #E6EFEE;
  --pearl: #FAF9F7;
  --ink: #2D3B3D;
  --white: #FFFFFF;
  --warm-gray: #F0EDE8;
  --deep-navy: #1B2A4A;
  --cta-dark: #2C3E50;
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --card-shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --max-width: 42rem;
  --max-width-wide: 56rem;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-reading: 'Lora', Georgia, serif;
}

/* --- Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Base --- */
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--pearl);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--deep-teal);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--ocean);
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--deep-navy);
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

/* --- Header --- */
.site-header {
  background: transparent;
  border-bottom: none;
  position: relative;
}

/* Homepage: overlay header on hero banner */
.page-home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.page-home .site-name {
  color: var(--white);
}

.page-home .nav-link {
  color: var(--white);
  opacity: 0.75;
}

.page-home .nav-link:hover {
  opacity: 1;
  color: var(--white);
}

.page-home .menu-bar {
  background: var(--white);
}

.header-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.site-logo img {
  width: 28px;
  height: 28px;
  border-radius: 4px;
}

.site-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--deep-teal);
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink);
  opacity: 0.5;
  transition: opacity 0.2s;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.nav-link:hover {
  opacity: 1;
  color: var(--deep-teal);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

@media (max-width: 640px) {
  .menu-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--cloud);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 0.75rem;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  /* Mobile dropdown on homepage: restore dark text on white background */
  .page-home .site-nav .nav-link {
    color: var(--ink);
    opacity: 0.5;
  }
  .page-home .site-nav .nav-link:hover {
    color: var(--deep-teal);
    opacity: 1;
  }
}

/* --- Footer --- */
.site-footer {
  background: transparent;
  border-top: 1px solid var(--cloud);
  margin-top: 5rem;
}

.footer-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.footer-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--deep-teal);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--ink);
  opacity: 0.4;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: var(--ink);
  opacity: 0.4;
  transition: opacity 0.2s;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--deep-teal);
}

.footer-copyright {
  width: 100%;
  font-size: 0.75rem;
  color: var(--ink);
  opacity: 0.3;
  margin-top: 0.5rem;
}

.footer-crisis {
  width: 100%;
  font-size: 0.7rem;
  color: var(--ink);
  opacity: 0.4;
  margin-top: 0.35rem;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-brand {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }
}

/* --- Hero (Homepage) --- */
.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--deep-teal);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: var(--font-reading);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ocean);
  margin-bottom: 1.5rem;
}

.hero-description {
  max-width: 32rem;
  margin: 0 auto 2.5rem;
  color: var(--ink);
  opacity: 0.65;
  font-size: 1.05rem;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  background: var(--deep-teal);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.875rem 2.25rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: var(--ocean);
  transform: translateY(-1px);
  color: var(--white);
}

@media (max-width: 640px) {
  .hero {
    padding: 4rem 1.5rem 3rem;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

/* --- Home Sections --- */
.home-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: -0.01em;
}


/* --- Reading Page — Premium Magazine Layout --- */
.reading-editorial {
  padding: 0;
}

/* Header — centered, generous whitespace */
.rd-header {
  text-align: center;
  padding: 3rem 2rem 2.5rem;
  max-width: 700px;
  margin: 0 auto;
}

/* Breadcrumbs — whisper-quiet navigation */
.rd-breadcrumb {
  margin-bottom: 1.75rem;
  font-size: 0.72rem;
  color: var(--mist);
  letter-spacing: 0.04em;
}

.rd-breadcrumb a {
  color: var(--ocean);
  opacity: 0.6;
  text-decoration: none;
  transition: opacity 0.15s;
}

.rd-breadcrumb a:hover {
  opacity: 1;
}

.rd-breadcrumb .breadcrumb-sep {
  opacity: 0.4;
  margin: 0 0.35rem;
}

.rd-date {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ocean);
  margin-bottom: 0.75rem;
}

/* Oversized serif H1 */
.rd-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--deep-navy);
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.rd-pills {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rd-pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.rd-pill--theme,
a.rd-pill--theme {
  color: var(--deep-teal);
  background: var(--cloud);
}

a.rd-pill--theme:hover {
  background: var(--deep-teal);
  color: var(--white);
}

.rd-pill--step,
a.rd-pill--step {
  color: var(--ocean);
  background: var(--cloud);
}

a.rd-pill--step:hover {
  background: var(--ocean);
  color: var(--white);
}

/* =============================================
   Homepage — Premium Magazine Cover
   ============================================= */

/* Hero — Full-Bleed Immersive Banner */
.hm-hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hm-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(27, 38, 59, 0.48) 0%,
    rgba(27, 38, 59, 0.2) 50%,
    transparent 75%
  );
}

.hm-hero-content {
  position: relative;
  z-index: 1;
  padding: 8rem 2rem 6rem;
  max-width: 44rem;
  text-align: left;
  margin-right: auto;
}

.hm-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hm-hero-tagline {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* Today's Reflection — White Editorial Teaser */
.hm-today {
  background: var(--white);
  padding: 5rem 2rem;
}

.hm-today-inner {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
}

.hm-today-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ocean);
  margin-bottom: 1rem;
}

.hm-today-date {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--ocean);
  opacity: 0.7;
  margin-bottom: 0.5rem;
}

.hm-today-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--deep-navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hm-today-preview {
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 2rem;
}

.hm-today-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep-teal);
  text-decoration: none;
  border: 2px solid var(--deep-teal);
  padding: 0.7rem 2rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}

.hm-today-btn:hover {
  background: var(--deep-teal);
  color: var(--white);
}

/* Content Pillars — Full-Bleed Bands */
.hm-pillar {
  text-align: center;
}

.hm-pillar-inner {
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.hm-pillar-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.hm-pillar-text {
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
}

.hm-pillar-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.6);
  padding: 0.7rem 2rem;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s;
}

.hm-pillar-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  color: var(--white);
}

/* Engine CTA — Navy Band */
.hm-engine {
  text-align: center;
}

.hm-engine-inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.hm-engine-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.hm-engine-text {
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.hm-engine-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.hm-engine-badge-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.15s;
}

.hm-engine-badge-link:hover {
  opacity: 0.8;
}

.hm-engine-badge {
  height: 42px;
}

.hm-engine-badge-play {
  height: 60px;
}

/* Homepage Responsive — Mobile */
@media (max-width: 640px) {
  .hm-hero {
    min-height: 360px;
  }
  .hm-hero-content {
    padding: 6rem 1.5rem 4rem;
  }
  .hm-hero-title {
    font-size: 2.4rem;
  }
  .hm-today {
    padding: 3.5rem 1.5rem;
  }
  .hm-pillar-inner {
    padding: 0 1.5rem;
  }
  .hm-engine-inner {
    padding: 0 1.5rem;
  }
}

/* Centered Content Column (max 700px) */
.rd-content {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

/* High-End Pull Quote */
.rd-quote {
  border: none;
  border-top: 2px solid var(--deep-teal);
  padding: 2rem 0 2.5rem 0;
  margin: 0 0 2.5rem 0;
  text-align: center;
}

.quote-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  line-height: 1.6;
  color: var(--deep-navy);
  margin-bottom: 0.6rem;
}

.quote-text:last-child {
  margin-bottom: 0;
}

.quote-ref {
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ocean);
  opacity: 0.7;
  display: block;
  margin-top: 0.5rem;
}

/* Reading Body */
.rd-body p {
  font-family: var(--font-reading);
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--ink);
  margin-bottom: 1.35rem;
}

.rd-body p:last-child {
  margin-bottom: 0;
}

/* Divider */
.rd-divider {
  width: 3rem;
  height: 1px;
  background: var(--mist);
  margin: 2rem 0;
}

/* Today's Reminder — full-bleed terracotta */
.rd-reminder {
  text-align: center;
}

.rd-reminder-inner {
  max-width: 38rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.rd-reminder-heading {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.25rem;
}

.rd-reminder-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  line-height: 1.5;
  color: var(--white);
  letter-spacing: -0.01em;
}

.rd-reminder-text strong {
  font-weight: 700;
  font-style: normal;
}

/* Prev / Next Navigation — elegant text links */
.rd-nav {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.5rem 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--cloud);
}

.rd-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  max-width: 45%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.rd-nav-link:hover {
  background: var(--cloud);
}

.rd-nav-next {
  text-align: right;
  flex-direction: row;
}

.rd-nav-next .rd-nav-meta {
  align-items: flex-end;
}

.rd-nav-arrow {
  font-size: 1.2rem;
  color: var(--ocean);
  flex-shrink: 0;
  line-height: 1;
}

.rd-nav-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.rd-nav-dir {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ocean);
}

.rd-nav-link-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-teal);
  line-height: 1.3;
}

/* Related Readings Section */
.rd-related-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 2rem 3.5rem;
}

.rd-related-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--cloud);
}

.rd-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.rd-related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: none;
  border-top: 3px solid var(--deep-teal);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.rd-related-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.rd-related-date {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ocean);
  margin-bottom: 0.3rem;
}

.rd-related-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-teal);
  line-height: 1.3;
}

/* Engine CTA — reading page */
.rd-engine-cta {
  text-align: center;
  margin-bottom: 2rem;
}

.rd-engine-cta-inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.rd-engine-cta-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.rd-engine-cta-text {
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.rd-engine-cta-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.rd-engine-cta-badge-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.15s;
}

.rd-engine-cta-badge-link:hover {
  opacity: 0.8;
}

.rd-engine-cta-badge {
  height: 38px;
}

.rd-engine-cta-badge-play {
  height: 54px;
}

/* Reading Page Responsive — Mobile */
@media (max-width: 640px) {
  .rd-header {
    padding: 2rem 1.5rem 1.5rem;
  }
  .rd-title {
    font-size: 2rem;
  }
  .rd-content {
    padding: 0 1.5rem 2rem;
  }
  .rd-quote {
    padding: 1.5rem 0 1.75rem;
  }
  .rd-reminder-inner {
    padding: 0 1.5rem;
  }
  .rd-nav {
    padding: 2rem 1.5rem 2.5rem;
  }
  .rd-nav-link {
    max-width: 48%;
    padding: 0.5rem 0.6rem;
    gap: 0.5rem;
  }
  .rd-nav-link-title {
    font-size: 0.88rem;
  }
  .rd-related-section {
    padding: 0 1.5rem 2.5rem;
  }
  .rd-related-grid {
    grid-template-columns: 1fr;
  }
  .rd-engine-cta-inner {
    padding: 0 1.5rem;
  }
}

/* --- Browse Page --- */
.browse-page,
.themes-page,
.theme-detail-page {
  padding: 3rem 0;
}

.browse-container,
.themes-container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 2rem;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.page-description {
  color: var(--ink);
  opacity: 0.6;
  margin-bottom: 2.5rem;
  max-width: 32rem;
}

.page-meta {
  font-size: 0.8rem;
  color: var(--ink);
  opacity: 0.4;
  margin-bottom: 2.5rem;
}

/* Month quick-jump nav */
.month-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.month-jump {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ocean);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
  background: none;
  padding: 0;
}

.month-jump:hover {
  color: var(--deep-teal);
}

/* Month section */
.browse-month {
  margin-bottom: 3rem;
}

.month-heading {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--cloud);
}

.browse-list {
  list-style: none;
}

.browse-list li {
  border-bottom: 1px solid var(--cloud);
}

.browse-list li:last-child {
  border-bottom: none;
}

.browse-list a {
  display: flex;
  padding: 0.6rem 0;
  text-decoration: none;
  gap: 1rem;
  align-items: baseline;
  transition: color 0.15s;
}

.browse-list a:hover {
  color: var(--deep-teal);
}

.browse-date {
  font-size: 0.8rem;
  color: var(--ocean);
  min-width: 6rem;
  flex-shrink: 0;
  opacity: 0.7;
}

.browse-title {
  color: var(--ink);
  font-size: 0.95rem;
}

.browse-list a:hover .browse-title {
  color: var(--deep-teal);
}

/* --- Theme Grid --- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.theme-card {
  border: 1px solid var(--cloud);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: border-color 0.2s;
  background: transparent;
}

.theme-card:hover {
  border-color: var(--mist);
}

.theme-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--deep-teal);
  margin-bottom: 0.15rem;
}

.theme-count {
  font-size: 0.75rem;
  color: var(--ink);
  opacity: 0.4;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--ink);
  opacity: 0.5;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--ocean);
}

.breadcrumb-sep {
  margin: 0 0.35rem;
}

/* --- Content Pages (Privacy, Support, Terms) --- */
.content-page {
  padding: 3rem 0;
}

.content-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.content-section {
  margin-bottom: 2.5rem;
}

.content-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.content-section p {
  margin-bottom: 0.75rem;
  line-height: 1.85;
}

.content-section ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.content-section li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.contact-link {
  font-weight: 500;
  color: var(--deep-teal);
}

.text-muted {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.4;
}

.external-link {
  font-weight: 500;
  color: var(--deep-teal);
}

.resources-section {
  border: 1px solid var(--cloud);
  border-radius: var(--radius);
  padding: 2rem;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--cloud);
}

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

.faq-item summary {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--ocean);
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item p {
  color: var(--ink);
  opacity: 0.65;
  padding-bottom: 1rem;
  line-height: 1.75;
  font-size: 0.95rem;
}

.faq-item a {
  color: var(--deep-teal);
  text-decoration: underline;
}

/* --- 404 Page --- */
.error-page {
  text-align: center;
  padding: 5rem 2rem;
}

.error-page h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.error-page p {
  color: var(--ink);
  opacity: 0.5;
  margin-bottom: 2rem;
}

/* --- Prayers Page — Editorial Layout --- */

/* ===== Prayers & Meditations — Premium Minimalist Layout ===== */

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

/* Hero with Cairn image */
.pr-hero {
  position: relative;
  text-align: center;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pr-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.pr-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
}

.pr-hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem 4.5rem;
}

.pr-hero-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin: 0;
}

@media (min-width: 768px) {
  .pr-hero {
    min-height: 380px;
  }
  .pr-hero-content {
    padding: 5rem 2rem 5.5rem;
  }
  .pr-hero-title {
    font-size: 3.25rem;
  }
}

/* Anchor Navigation — Table of Contents */
.pr-anchor-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  max-width: 800px;
  margin: 0 auto;
  padding: 1.75rem 2rem 0;
}

.pr-anchor-link {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.15s;
}

.pr-anchor-link:hover {
  color: var(--deep-teal);
}

/* Prayer Stack — single-column vertical layout */
.pr-stack {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

/* Prayer Cards — minimalist white cards */
.prayer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 2.5rem;
  scroll-margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.prayer-card:last-child {
  margin-bottom: 0;
}

.prayer-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.prayer-card-body {
  /* Container for prayer content */
}

/* Prayer text — Lora for meditative feel */
.prayer-text {
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 1rem;
}

.prayer-text:last-of-type {
  margin-bottom: 0;
}

/* Verse-style prayers (Serenity Prayer, St. Francis) */
.prayer-verse {
  margin-bottom: 1.25rem;
}

.prayer-verse:last-of-type {
  margin-bottom: 0;
}

.prayer-line {
  font-family: var(--font-reading);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 0;
}

/* Source attribution */
.prayer-source {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--slate-blue);
  font-style: italic;
  margin-top: 1.25rem;
  margin-bottom: 0;
  opacity: 0.7;
}

/* Back to Top link */
.prayer-back-top {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  text-decoration: none;
  text-align: right;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  transition: color 0.15s;
}

.prayer-back-top:hover {
  color: var(--deep-teal);
}

/* Mobile */
@media (max-width: 640px) {
  .pr-hero {
    min-height: 260px;
  }
  .pr-hero-title {
    font-size: 2.2rem;
  }
  .pr-hero-content {
    padding: 3rem 1.5rem 3.5rem;
  }
  .pr-anchor-nav {
    padding: 1.25rem 1.5rem 0;
    gap: 0.4rem 1rem;
  }
  .pr-anchor-link {
    font-size: 0.65rem;
  }
  .pr-stack {
    padding: 2rem 1.5rem 3rem;
  }
  .prayer-card {
    padding: 2rem 1.75rem;
    margin-bottom: 1.5rem;
  }
  .prayer-card-title {
    font-size: 1.3rem;
  }
  .prayer-text,
  .prayer-line {
    font-size: 1rem;
  }
}

/* ==========================================================================
   About Daily Paths — Editorial Drop-Cap Layout (about-project)
   ========================================================================== */

/* Hero with Meadow/Nature path image */
/* Hero */
.ap-hero {
  position: relative;
  text-align: center;
  overflow: hidden;
  min-height: 280px;
  max-height: 400px;
  aspect-ratio: 3 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.ap-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.ap-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(74, 93, 78, 0.65) 0%,
    rgba(74, 93, 78, 0.20) 55%,
    transparent 75%
  );
}

.ap-hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 2rem 4.5rem;
  max-width: 38rem;
}

.ap-hero-title {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.ap-hero-desc {
  font-family: var(--font-reading);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin: 0;
}

@media (min-width: 768px) {
  .ap-hero-content {
    padding: 5rem 2rem 5.5rem;
  }
  .ap-hero-title {
    font-size: 3.25rem;
  }
  .ap-hero-desc {
    font-size: 1.15rem;
  }
}

/* Editorial Body — narrow magazine column */
.ap-body {
  max-width: 650px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.ap-body-inner {
  /* container for sections */
}

/* Section */
.ap-section {
  margin-bottom: 3rem;
}

.ap-section-heading {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--deep-navy);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

/* Editorial prose with drop cap */
.ap-editorial p {
  font-family: var(--font-reading);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 1rem;
}

.ap-editorial p:last-child {
  margin-bottom: 0;
}

/* Drop cap on first paragraph of first editorial section */
.ap-section:first-child .ap-editorial p:first-child::first-letter {
  font-family: var(--font-serif);
  font-size: 3.75rem;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin-right: 0.12em;
  margin-top: 0.07em;
  color: var(--deep-navy);
}

/* ── The Path and the Practice — two-column comparison ────────── */

.ap-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: stretch;
  /* Break out of 650px body to give cards breathing room */
  margin-left: -2rem;
  margin-right: -2rem;
  padding: 0 0.5rem;
}

@media (min-width: 640px) {
  .ap-compare {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-left: -3rem;
    margin-right: -3rem;
    padding: 0;
  }
}

.ap-compare-col {
  background: #FCFBF7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  /* Stretch to match sibling height */
  display: flex;
  flex-direction: column;
}

.ap-compare-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin: 0 0 0.15rem;
}

.ap-compare-subtitle {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage);
  margin: 0 0 1.25rem;
}

.ap-compare-col:last-child .ap-compare-subtitle {
  color: var(--deep-teal);
}

.ap-compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.ap-compare-list li {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ap-compare-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.ap-compare-feature {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 0.3rem;
}

.ap-compare-detail {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink);
}

/* ── Closing Note ─────────────────────────────────────────────── */

.ap-closing {
  text-align: center;
  padding-top: 0.5rem;
}

.ap-closing-rule {
  width: 3rem;
  height: 2px;
  background: var(--sage);
  margin: 0 auto 2rem;
  border-radius: 1px;
}

.ap-closing .ap-editorial p {
  font-style: italic;
  font-size: 1.15rem;
  color: var(--deep-navy);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

/* Disclaimer — italicized, visually separated */
.ap-disclaimer {
  border-top: 1px solid var(--cloud);
  padding-top: 2rem;
  margin-top: 1rem;
}

.ap-disclaimer p {
  font-family: var(--font-sans);
  font-style: italic;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.55;
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

/* Support & Resources */
.ap-support {
  border-top: 1px solid var(--cloud);
  padding-top: 2rem;
  margin-top: 1rem;
}

.ap-resource-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  max-width: 36rem;
}

.ap-resource-list li {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--cloud);
}

.ap-resource-list li:last-child {
  border-bottom: none;
}

.ap-resource-list a {
  color: var(--deep-teal);
  text-decoration: none;
}

.ap-resource-list a:hover {
  text-decoration: underline;
}

/* App badges — centered below comparison grid */
.ap-app-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2.5rem 0 1rem;
}

.ap-badge-link {
  display: inline-block;
  transition: opacity 0.2s;
}

.ap-badge-link:hover {
  opacity: 0.8;
}

.ap-badge--ios {
  height: 36px;
}

.ap-badge--play {
  height: 52px;
}

/* ── Full-Bleed Site Navigation CTA — Sage ───────────────────── */

.ap-nav-cta {
  text-align: center;
  background: #4A5D4E;
  padding: 5rem 2rem;
}

.ap-nav-cta-inner {
  max-width: 650px;
  margin: 0 auto;
}

.ap-nav-cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.75rem;
}

.ap-nav-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.ap-nav-cta-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--white);
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ap-nav-cta-btn:hover {
  background: var(--white);
  color: #4A5D4E;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
  .ap-nav-cta {
    padding: 6rem 2rem;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .ap-hero-title {
    font-size: 2.2rem;
  }
  .ap-hero-desc {
    font-size: 1rem;
  }
  .ap-hero-content {
    padding: 3rem 1.5rem 3.5rem;
  }
  .ap-body {
    padding: 2rem 1.5rem 3rem;
  }
  .ap-section-heading {
    font-size: 1.4rem;
  }
  .ap-editorial p {
    font-size: 1.05rem;
  }
  .ap-section:first-child .ap-editorial p:first-child::first-letter {
    font-size: 3rem;
  }
  .ap-compare {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding: 0;
  }
  .ap-compare-col {
    padding: 1.5rem 1.25rem 1.25rem;
  }
}

/* ==========================================================================
   About Al-Anon — Structured Resource-Block Layout (about-alanon)
   ========================================================================== */

/* Hero with Ocean path image */
.aa-hero {
  position: relative;
  text-align: center;
  overflow: hidden;
  min-height: 280px;
  max-height: 400px;
  aspect-ratio: 3 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.aa-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.aa-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(27, 38, 59, 0.65) 0%,
    rgba(27, 38, 59, 0.20) 55%,
    transparent 75%
  );
}

.aa-hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem 5rem;
  max-width: 40rem;
}

.aa-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  white-space: nowrap;
  margin: 0 0 0.75rem;
}

.aa-hero-desc {
  font-family: var(--font-reading);
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin: 0;
}

/* Body */
.aa-body {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.aa-body-inner {
  /* container */
}

/* ── Resource Blocks ─────────────────────────────────────────── */

.aa-block {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--cloud);
}

.aa-block:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.aa-block-heading {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--deep-navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.aa-block-body p {
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.aa-block-body p:last-child {
  margin-bottom: 0;
}

.aa-block-link {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--deep-teal);
  text-decoration: none;
  margin-top: 1.25rem;
  transition: color 0.15s;
}

.aa-block-link:hover {
  color: var(--ocean);
}

/* ── Highlight block (Find a Meeting) ────────────────────────── */

.aa-block--highlight {
  background: var(--pearl);
  margin-left: -2rem;
  margin-right: -2rem;
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  border-bottom: none;
}

.aa-meeting-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  background: var(--deep-teal);
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 1.25rem;
  transition: background 0.2s, transform 0.2s;
}

.aa-meeting-btn:hover {
  background: var(--ocean);
  color: var(--white);
  transform: translateY(-1px);
}

/* ── Self-Reflection Questions ───────────────────────────────── */

.aa-questions {
  margin: 1.25rem 0;
}

.aa-question {
  font-family: var(--font-reading);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  padding: 0.7rem 0 0.7rem 1.5rem;
  border-bottom: 1px solid var(--cloud);
  position: relative;
}

.aa-question::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--deep-teal);
  font-size: 1.1rem;
}

.aa-question:last-child {
  border-bottom: none;
}

.aa-questions-note {
  font-family: var(--font-reading);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--deep-teal);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* ── The 3 C's ───────────────────────────────────────────────── */

/* ── Cairn Separator ─────────────────────────────────────────── */

.aa-cairn-separator {
  text-align: center;
  padding: 1.5rem 0 2rem;
  color: var(--sage);
  line-height: 0;
}

.aa-cairn-icon {
  opacity: 0.6;
}

/* ── How the Program Works — Four Pillars (2×2) ─────────────── */

.aa-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .aa-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

.aa-pillar {
  background: var(--white);
  border-top: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.aa-pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.aa-pillar-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage);
  margin-bottom: 0.4rem;
}

.aa-pillar-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 0.5rem;
}

.aa-pillar-text {
  font-family: var(--font-reading);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.aa-pillar-link {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--deep-teal);
  text-decoration: none;
  transition: color 0.15s;
}

.aa-pillar-link:hover {
  color: var(--ocean);
}

/* ── FAQ ─────────────────────────────────────────────────────── */

.aa-faq {
  margin-bottom: 1rem;
}

.aa-faq-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--cloud);
}

.aa-faq-item:first-child {
  padding-top: 0;
}

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

.aa-faq-q {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep-teal);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.aa-faq-a {
  font-family: var(--font-reading);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}

/* ── Related Fellowships ─────────────────────────────────────── */

.aa-fellows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .aa-fellows {
    grid-template-columns: repeat(3, 1fr);
  }
}

.aa-fellow {
  display: block;
  background: var(--white);
  border-top: 4px solid var(--warm-gold);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.aa-fellow:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}

.aa-fellow-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 0.35rem;
}

.aa-fellow-desc {
  display: block;
  font-family: var(--font-reading);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.75;
}

/* ── Full-Bleed App CTA — Navy edge-to-edge ──────────────────── */

.aa-app-cta {
  text-align: center;
  background: #1B263B;
  padding: 5rem 2rem;
}

.aa-app-cta-inner {
  max-width: 650px;
  margin: 0 auto;
}

.aa-app-cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.aa-app-cta-text {
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto 2rem;
}

.aa-app-cta-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.aa-app-cta-badge-link {
  display: inline-block;
  transition: opacity 0.2s;
}

.aa-app-cta-badge-link:hover {
  opacity: 0.8;
}

.aa-app-cta-badge--ios {
  height: 36px;
}

.aa-app-cta-badge--play {
  height: 52px;
}

@media (min-width: 768px) {
  .aa-app-cta {
    padding: 6rem 2rem;
  }
}

/* ── Disclaimer ──────────────────────────────────────────────── */

.aa-disclaimer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--cloud);
}

.aa-disclaimer p {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.55;
  margin: 0;
}

.aa-disclaimer a {
  color: var(--ocean);
  text-decoration: underline;
}

/* ── About Al-Anon — Mobile ─────────────────────────────────── */

@media (max-width: 640px) {
  .aa-hero-title {
    font-size: 2.5rem;
  }
  .aa-hero-desc {
    font-size: 1rem;
  }
  .aa-hero-content {
    padding: 3rem 1.5rem 2.5rem;
  }
  .aa-body {
    padding: 2rem 1.5rem 3rem;
  }
  .aa-block-heading {
    font-size: 1.4rem;
  }
  .aa-block-body p {
    font-size: 1rem;
  }
  .aa-block--highlight {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 2rem 1.5rem;
  }
  .aa-pillar {
    padding: 1.5rem 1.25rem;
  }
  .aa-fellow {
    padding: 1.25rem;
  }
}

/* --- Quiz Page --- */
.quiz-page .quiz-list {
  counter-reset: quiz;
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.quiz-page .quiz-list li {
  counter-increment: quiz;
  font-family: var(--font-reading);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  padding: 0.6rem 0 0.6rem 2.5rem;
  position: relative;
  border-bottom: 1px solid var(--cloud);
}

.quiz-page .quiz-list li:last-child {
  border-bottom: none;
}

.quiz-page .quiz-list li::before {
  content: counter(quiz) ".";
  position: absolute;
  left: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ocean);
  font-size: 1rem;
}

.quiz-result {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--cloud);
  border-radius: var(--radius);
}

.quiz-note {
  font-family: var(--font-reading);
  font-style: italic;
  color: var(--deep-teal);
  margin: 0 0 0.75rem;
}

.quiz-attribution {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.5;
  margin-top: 0.75rem;
}

.quiz-next-steps,
.traditions-next-steps,
.concepts-next-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

/* --- Traditions Page --- */
.traditions-page .traditions-list,
.concepts-page .concepts-list {
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.traditions-page .traditions-list li,
.concepts-page .concepts-list li {
  font-family: var(--font-reading);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}

.traditions-page .traditions-list li::marker,
.concepts-page .concepts-list li::marker {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ocean);
}

.traditions-attribution,
.concepts-attribution {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.5;
  margin-top: 0.75rem;
}

/* --- Steps Index Page — Typographic Magazine Layout --- */

/* Hero */
.si-hero {
  position: relative;
  text-align: left;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.si-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.si-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(27, 38, 59, 0.50) 0%,
    rgba(27, 38, 59, 0.15) 45%,
    transparent 70%
  );
}

.si-hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem 5rem;
  max-width: 40rem;
}

.si-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.si-hero-tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.85);
}

/* Steps Grid */
.si-grid-wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 4rem 2rem 0;
}

.si-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.si-grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: none;
  border-top: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.si-grid-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

.si-grid-card-number {
  display: block;
  font-family: var(--font-reading);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--deep-navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.si-grid-card-principle {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--sage);
  margin-bottom: 1rem;
}

.si-grid-card-hook {
  font-family: var(--font-reading);
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--slate-blue);
  margin-top: auto;
}

/* Engine CTA — Full-Width App CTA Block */
.si-engine-cta {
  text-align: center;
  margin-top: 4rem;
}

.si-engine-cta-inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.si-engine-cta-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.si-engine-cta-text {
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.si-engine-cta-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.si-engine-cta-badge-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.15s;
}

.si-engine-cta-badge-link:hover {
  opacity: 0.8;
}

.si-engine-cta-badge {
  height: 38px;
}

.si-engine-cta-badge-play {
  height: 54px;
}

/* Attribution */
.si-attribution-wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  text-align: center;
}

.si-attribution {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--ink);
  opacity: 0.4;
  line-height: 1.6;
}

.si-attribution a {
  color: var(--deep-teal);
}

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

/* Responsive — Mobile */
@media (max-width: 640px) {
  .si-hero {
    min-height: 340px;
  }
  .si-hero-title {
    font-size: 2.5rem;
  }
  .si-hero-content {
    padding: 3rem 1.5rem 2.5rem;
  }
  .si-grid-wrap {
    padding: 3rem 1.5rem 0;
  }
  .si-grid {
    grid-template-columns: 1fr;
  }
  .si-grid-card-number {
    font-size: 3rem;
  }
  .si-engine-cta-inner {
    padding: 0 1.5rem;
  }
  .si-attribution-wrap {
    padding: 4rem 1.5rem 2rem;
  }
}

/* --- Step Detail Page — Premium Magazine Layout --- */

/* Sage/slate palette extensions */
:root {
  --sage: #8BA888;
  --sage-light: #E8F0E6;
  --sage-mist: #F2F7F1;
  --slate-blue: #64748B;
  --slate-light: #E8ECF1;
  --off-white: #FAFBF9;
  --warm-gold: #A3956A;
  --warm-gold-light: #F5F3ED;
}

/* Step Navigation Header */
.step-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 2rem 0;
}

.step-nav-header a {
  text-decoration: none;
  color: var(--deep-teal);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
}

.step-nav-header a:hover {
  text-decoration: underline;
}

.step-nav-header .nav-prev,
.step-nav-header .nav-next {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.step-nav-header .nav-arrow {
  font-size: 1rem;
}

/* Image Hero — 3:1 Aspect Ratio Banner */
.step-hero--image {
  position: relative;
  text-align: center;
  overflow: hidden;
  min-height: 280px;
  max-height: 400px;
  aspect-ratio: 3 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.step-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.step-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(10px);
  transform: scale(1.05);
}

.step-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 38, 59, 0.40);
}

.step-hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem;
  max-width: 40rem;
}

.step-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}

.step-hero-tagline {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.85);
}

/* Step Definition — Editorial Pull Quote */
.step-definition {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem 2rem 0;
}

.step-definition-quote {
  margin: 0;
  padding: 2.5rem 0;
  border-top: 2px solid var(--deep-teal);
  border-bottom: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.step-definition-quote p {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
  text-align: center;
}

.step-definition-quote p em {
  font-style: italic;
}

/* Body Content */
.step-body {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
}

.step-body p {
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.step-body p:last-child {
  margin-bottom: 0;
}

.step-body p a {
  color: var(--deep-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Questions for Reflection — inside .bg-terracotta wrapper */
.bg-terracotta .step-questions {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.bg-terracotta .step-questions-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.bg-terracotta .step-questions-intro {
  font-family: var(--font-reading);
  font-size: 0.9rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  opacity: 1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.bg-terracotta .step-questions-list {
  list-style: none;
  padding: 1.5rem 2rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.1);
  border-top: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  box-shadow: none;
}

.bg-terracotta .step-questions-list li {
  font-family: var(--font-reading);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--white);
  padding: 0.65rem 0 0.65rem 1.5rem;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.bg-terracotta .step-questions-list li:last-child {
  border-bottom: none;
}

.bg-terracotta .step-questions-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

/* Step Tools — inside .bg-sage wrapper */
.bg-sage .step-tools {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.bg-sage .step-tools-heading {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.bg-sage .step-tools-list {
  list-style: none;
  padding: 1.5rem 2rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.1);
  border-top: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  box-shadow: none;
}

.bg-sage .step-tools-list li {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--white);
  padding: 0.5rem 0 0.5rem 1.5rem;
  position: relative;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.bg-sage .step-tools-list li:last-child {
  border-bottom: none;
}

.bg-sage .step-tools-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
}

.bg-sage .step-tools-resource {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  opacity: 1;
  margin-top: 1.25rem;
  line-height: 1.6;
}

.bg-sage .step-tools-resource a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bg-sage .step-tools-anchor {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Associated Readings — Hub & Spoke Grid */
.step-assoc-section {
  max-width: 54rem;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.step-assoc-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 0.5rem;
}

.step-assoc-intro {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.6;
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.step-assoc-theme-link {
  color: var(--deep-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.step-assoc-micro-cta {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--ink);
  opacity: 0.5;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.step-assoc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.step-assoc-card {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: none;
  border-top: 4px solid var(--deep-teal);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.step-assoc-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.step-assoc-date {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.step-assoc-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.step-assoc-card:hover .step-assoc-title {
  color: var(--deep-teal);
}

/* Engine CTA — Full-Width App CTA Block */
.step-engine-cta {
  text-align: center;
}

.step-engine-cta-inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.step-engine-cta-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.step-engine-cta-text {
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.step-engine-cta-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.step-engine-cta-badge-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.15s;
}

.step-engine-cta-badge-link:hover {
  opacity: 0.8;
}

.step-engine-cta-badge {
  height: 38px;
}

.step-engine-cta-badge-play {
  height: 54px;
}

/* Mobile adjustments for step detail pages */
@media (max-width: 640px) {
  .step-nav-header {
    padding: 0.75rem 1.5rem 0;
  }
  .step-hero--image {
    min-height: 200px;
    aspect-ratio: 2.5 / 1;
  }
  .step-hero-title {
    font-size: 2.2rem;
  }
  .step-hero-content {
    padding: 2rem 1.5rem;
  }
  .step-definition {
    padding: 3rem 1.5rem 0;
  }
  .step-definition-quote p {
    font-size: 1.25rem;
  }
  .step-body {
    padding: 1.5rem 1.5rem 2.5rem;
  }
  .bg-terracotta .step-questions {
    padding: 0 1.5rem;
  }
  .bg-terracotta .step-questions-list {
    padding: 1.25rem 1.25rem;
  }
  .bg-sage .step-tools {
    padding: 0 1.5rem;
  }
  .bg-sage .step-tools-list {
    padding: 1.25rem 1.25rem;
  }
  .step-assoc-section {
    padding: 3rem 1.5rem;
  }
  .step-assoc-grid {
    grid-template-columns: 1fr;
  }
  .step-engine-cta-inner {
    padding: 0 1.5rem;
  }
  .step-nav-header .nav-label {
    display: none;
  }
  .step-nav-header .nav-prev::after {
    content: 'Previous';
  }
  .step-nav-header .nav-next::before {
    content: 'Next';
  }
}

/* --- Themes (Topic) Index Page — Premium Magazine Gallery --- */

/* Hero Banner — full-bleed with left-to-right Navy scrim */
.ti-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.ti-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.ti-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(27, 38, 59, 0.50) 0%,
    rgba(27, 38, 59, 0.15) 45%,
    transparent 70%
  );
}

.ti-hero-content {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem 5rem;
  max-width: 36rem;
}

.ti-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.ti-hero-desc {
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  max-width: 28rem;
}

/* Editorial Intro */
.ti-editorial-intro {
  max-width: 42rem;
  margin: 0 auto;
  padding: 5rem 2rem 0;
}

.ti-editorial-intro p {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--ink);
  text-align: center;
  opacity: 0.7;
  letter-spacing: 0.01em;
}

/* =============================================
   Theme Gallery — 3-column flat card grid
   ============================================= */
.ti-gallery-wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 3rem 2rem 0;
}

.ti-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.ti-gallery-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-top: 4px solid #4A5D4E;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ti-gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
}

.ti-gallery-card-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--deep-navy);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.ti-gallery-card-hook {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink);
  opacity: 0.65;
  line-height: 1.65;
  flex: 1;
  margin: 0;
}

.ti-gallery-card-cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--deep-teal);
  margin-top: 1.25rem;
  transition: color 0.2s;
}

.ti-gallery-card:hover .ti-gallery-card-cta {
  color: var(--sage);
}

/* =============================================
   Engine CTA — full-bleed navy band
   ============================================= */
.ti-engine-cta {
  margin-top: 4rem;
}

.ti-engine-cta-inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  text-align: center;
}

.ti-engine-cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.ti-engine-cta-text {
  font-family: var(--font-reading);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 1.5rem;
  max-width: 32rem;
}

.ti-engine-cta-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ti-engine-cta-badge-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.2s;
}

.ti-engine-cta-badge-link:hover {
  opacity: 0.85;
}

.ti-engine-cta-badge {
  height: 40px;
}

.ti-engine-cta-badge-play {
  height: 60px;
}

/* =============================================
   Community & Support — Resource Spotlight
   ============================================= */
.ti-community-wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 4rem 2rem 4.5rem;
  text-align: center;
}

.ti-community-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--deep-teal);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.ti-community-intro {
  font-family: var(--font-reading);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 auto 2rem;
  max-width: 36rem;
}

.ti-community-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: var(--radius);
  padding: 2.25rem 2rem 2rem;
  text-align: left;
}

.ti-community-badge {
  position: absolute;
  top: -0.65rem;
  right: 1.25rem;
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--deep-teal);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

.ti-community-card-text {
  font-family: var(--font-reading);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0 0 1.5rem;
}

.ti-community-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
  background: var(--deep-teal);
  text-decoration: none;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ti-community-btn:hover {
  background: var(--sage);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* Responsive — Tablet */
@media (max-width: 900px) {
  .ti-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive — Mobile */
@media (max-width: 640px) {
  .ti-hero {
    min-height: 340px;
  }
  .ti-hero-content {
    padding: 4rem 1.5rem 3rem;
  }
  .ti-hero-title {
    font-size: 2.2rem;
  }
  .ti-hero-desc {
    font-size: 0.95rem;
  }
  .ti-editorial-intro p {
    font-size: 1.1rem;
  }
  .ti-gallery-grid {
    grid-template-columns: 1fr;
  }
  .ti-engine-cta-inner {
    padding: 2.5rem 1.5rem;
  }
  .ti-community-card {
    padding: 2rem 1.5rem 1.75rem;
  }
  .ti-community-btn {
    display: block;
    text-align: center;
  }
}

/* --- Theme (Topic) Detail Page — Editorial Layout --- */

/* Principle navigation header */
.topic-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--cloud);
}

.topic-nav-header .nav-browse {
  background: var(--cloud);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
}

.topic-nav-header a {
  text-decoration: none;
  color: var(--deep-teal);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
}

.topic-nav-header a:hover {
  text-decoration: underline;
}

.topic-nav-header .nav-prev,
.topic-nav-header .nav-next {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topic-nav-header .nav-arrow {
  font-size: 1rem;
}

/* Hero with background image */
.topic-hero {
  position: relative;
  text-align: center;
  padding: 0;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topic-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.topic-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: blur(10px);
  transform: scale(1.05);
}

.topic-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74, 93, 78, 0.40);
}

.topic-hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 3.5rem;
  max-width: 40rem;
}

.topic-hero-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sage-light);
  background: rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.topic-hero-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.topic-hero-desc {
  font-family: var(--font-reading);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

@media (min-width: 768px) {
  .topic-hero {
    min-height: 340px;
  }
  .topic-hero-content {
    padding: 4rem 2rem 4.5rem;
  }
  .topic-hero-title {
    font-size: 2.75rem;
  }
}

/* --- The Definition --- */

/* --- Pull Quote Bridge --- */

.topic-pull-quote {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 2rem 0;
  text-align: center;
}

.topic-pull-quote-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.6;
  color: var(--deep-navy);
  border: none;
  margin: 0;
  padding: 0;
}

/* --- Editorial Intro with Drop Cap --- */

.topic-editorial-intro {
  padding: 2.5rem 2rem 0;
  margin-bottom: 3rem;
}

.topic-editorial-intro-inner {
  max-width: 42rem;
  margin: 0 auto;
}

.topic-editorial-intro-inner p {
  font-family: var(--font-reading);
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink);
  margin-bottom: 1rem;
}

.topic-editorial-intro-inner p:last-child {
  margin-bottom: 0;
}

.topic-editorial-intro-inner p:first-child::first-letter {
  font-family: var(--font-serif);
  font-size: 3.75rem;
  font-weight: 700;
  float: left;
  line-height: 0.8;
  margin-right: 0.12em;
  margin-top: 0.07em;
  color: var(--deep-navy);
}

/* --- Theme Logic — contextual bridge above member insights --- */

.topic-logic {
  padding: 0 2rem 1rem;
  margin-bottom: 1rem;
}

.topic-logic-inner {
  max-width: 42rem;
  margin: 0 auto;
  border-top: 1px solid var(--cloud);
  padding-top: 1.5rem;
}

.topic-logic-inner p {
  font-family: var(--font-reading);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.topic-logic-inner p:last-child {
  margin-bottom: 0;
}

/* --- Member Insight Cards — Voices of the Fellowship --- */

.topic-insight-cards {
  padding: 2.5rem 2rem;
  margin-top: 3rem;
}

.topic-insight-cards-inner {
  max-width: 54rem;
  margin: 0 auto;
}

.topic-insight-cards-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ocean);
  text-align: center;
  margin-bottom: 0.5rem;
}

.topic-insight-cards-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 1.5rem;
  text-align: center;
}

.topic-insight-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.insight-card {
  background: #FDF2F0;
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.insight-card-text {
  position: relative;
  overflow: hidden;
  transition: max-height 0.35s ease-in-out;
}

/* Expanded state: large enough to never clip real content */
.insight-card-text:not(.truncated) {
  max-height: 300rem;
}

/* Truncated state */
.insight-card-text.truncated {
  max-height: 7rem;
}

/* Gradient fade on truncated text — blends into #FDF2F0 */
.insight-card-text.truncated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3rem;
  background: linear-gradient(to bottom, rgba(253, 242, 240, 0), rgba(253, 242, 240, 1) 90%);
  pointer-events: none;
}

.insight-card-text p {
  font-family: var(--font-reading);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.insight-card-text p:last-child {
  margin-bottom: 0;
}

.insight-card-read-more {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: #B5836D;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
  align-self: flex-start;
}

.insight-card-read-more:hover {
  color: #8a5e52;
}

.insight-card-attribution {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.55;
  margin: 0;
}

/* Pagination: hidden overflow cards */
.insight-card--hidden {
  display: none;
}

/* "Show more community insights" button */
.topic-insight-show-more {
  display: block;
  margin: 1.5rem auto 0;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep-navy);
  background: none;
  border: 2px solid var(--deep-navy);
  border-radius: var(--radius);
  padding: 0.55rem 1.4rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.topic-insight-show-more:hover {
  background: var(--deep-navy);
  color: var(--white);
}

/* --- Insight Form — Terracotta Block --- */

.topic-insight-form-wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.topic-insight-form-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.35rem;
}

.topic-insight-form-subhead {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
}

.topic-insight-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
}

.topic-insight-form .topic-share-label {
  font-weight: 700;
  color: var(--white);
}

.topic-insight-form .topic-share-input,
.topic-insight-form .topic-share-textarea {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(255, 255, 255, 0.3);
}

.topic-insight-form .topic-share-input:focus,
.topic-insight-form .topic-share-textarea:focus {
  border-color: var(--white);
}

.topic-insight-form .topic-share-counter,
.topic-insight-form .topic-share-disclaimer {
  color: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.topic-insight-form .topic-share-status--success {
  color: rgba(255, 255, 255, 0.9);
}

.topic-insight-form .topic-share-status--error {
  color: #FFCCC5;
}

.topic-insight-submit {
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  background: #1B263B;
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.topic-insight-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.topic-insight-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* --- Share Form (base styles kept for reuse) --- */

.topic-share-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.topic-share-label {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.topic-share-input,
.topic-share-textarea {
  font-family: var(--font-reading);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--cloud);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s;
}

.topic-share-input:focus,
.topic-share-textarea:focus {
  outline: none;
  border-color: var(--ocean);
}

.topic-share-textarea {
  resize: vertical;
  min-height: 5rem;
}

.topic-share-status {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  margin: 0;
}

.topic-share-status--success {
  color: var(--deep-teal);
}

.topic-share-status--error {
  color: #b44;
}

/* Character counter */
.topic-share-counter {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--ink);
  opacity: 0.5;
  margin: -0.25rem 0 0;
  line-height: 1.4;
}

.topic-share-disclaimer {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--ink);
  opacity: 0.45;
  line-height: 1.6;
  margin: 0.5rem 0 0;
}

/* --- Insight Cards Responsive --- */

@media (max-width: 900px) {
  .topic-insight-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .topic-insight-cards {
    padding: 2rem 1.5rem;
  }
  .topic-insight-cards-grid {
    grid-template-columns: 1fr;
  }
  .topic-insight-form-wrap {
    padding: 0 1.5rem;
  }
}

/* --- Al-Anon Toolbox --- */

.topic-toolbox {
  padding: 0 2rem 2.5rem;
}

.topic-toolbox-inner {
  max-width: 42rem;
  margin: 0 auto;
  background: var(--white);
  border-top: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--card-shadow);
}

.topic-toolbox-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 1.25rem;
}

.topic-toolbox-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topic-toolbox-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-reading);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(175, 207, 205, 0.4);
}

.topic-toolbox-list li:last-child {
  border-bottom: none;
}

.topic-toolbox-icon {
  flex-shrink: 0;
  color: var(--sage);
  margin-top: 0.2rem;
}

/* --- Featured Reflections Grid --- */

.topic-featured-section {
  max-width: 54rem;
  margin: 0 auto;
  padding: 2.5rem 2rem 0;
}

.topic-featured-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 0.5rem;
}

.topic-featured-intro {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink);
  opacity: 0.6;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.topic-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.topic-featured-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--white);
  border: none;
  border-top: 4px solid #4A5D4E;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.topic-featured-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

.topic-featured-badge {
  position: absolute;
  top: -2px;
  right: 0.75rem;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  background: #4A5D4E;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  line-height: 1.4;
}

.topic-featured-card-date {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
  margin-top: 0.5rem;
}

.topic-featured-card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.topic-featured-card:hover .topic-featured-card-title {
  color: var(--deep-teal);
}

/* --- Principle CTA --- */

.topic-cta {
  text-align: center;
}

.topic-cta-inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.topic-cta-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.topic-cta-text {
  font-family: var(--font-reading);
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.topic-cta-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.topic-cta-badge-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.15s;
}

.topic-cta-badge-link:hover {
  opacity: 0.8;
}

.topic-cta-badge {
  height: 34px;
}

.topic-cta-badge-play {
  height: 50px;
}

/* Old two-column body — kept for any legacy reference, hidden */
.topic-body-wrap {
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
}

.topic-body-inner {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

@media (min-width: 768px) {
  .topic-body-inner {
    flex-direction: row;
    gap: 3rem;
  }
}

/* Main Column */
.topic-main-col {
  flex: 7;
  min-width: 0;
}

.topic-essay p {
  margin-bottom: 1.25rem;
  line-height: 1.85;
  font-size: 1.05rem;
}

.topic-essay p:last-child {
  margin-bottom: 0;
}

/* Tags Callout */
.topic-callout {
  background: var(--white);
  border: none;
  border-top: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0 0;
  box-shadow: var(--card-shadow);
}

.topic-callout-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.topic-callout-intro {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.6;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.topic-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--cloud);
}

.topic-tag-count {
  font-size: 0.7rem;
  color: var(--sage);
  font-weight: 500;
}

/* Sidebar */
.topic-sidebar {
  flex: 3;
  min-width: 0;
}

.topic-sidebar-heading {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--slate-blue);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--cloud);
}

.topic-sidebar-tools {
  margin-bottom: 2rem;
}

.topic-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.topic-sidebar-list li {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink);
  padding: 0.4rem 0 0.4rem 1.25rem;
  position: relative;
  line-height: 1.5;
}

.topic-sidebar-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--sage);
  font-size: 0.8rem;
}

.topic-sidebar-quote {
  background: var(--slate-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.topic-sidebar-quote p {
  font-family: var(--font-reading);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}

.topic-sidebar-resource {
  margin-bottom: 2rem;
}

.topic-sidebar-resource p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.6;
  opacity: 0.7;
}

.topic-sidebar-resource a {
  color: var(--deep-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Readings Grid */
/* --- Daily Reflections Cards --- */

.topic-readings-section {
  max-width: 54rem;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.topic-readings-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 0.5rem;
}

.topic-readings-intro {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--ink);
  opacity: 0.6;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.topic-readings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.topic-reading-card {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: none;
  border-top: 4px solid var(--deep-teal);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

.topic-reading-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.topic-reading-card-date {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.topic-reading-card-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.topic-reading-card:hover .topic-reading-card-title {
  color: var(--deep-teal);
}

.topic-reading-group {
  margin-bottom: 2rem;
}

.topic-reading-group:last-child {
  margin-bottom: 0;
}

.topic-reading-group-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ocean);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--cloud);
}

.topic-reading-group:first-child .topic-reading-group-label {
  margin-top: 0;
}

@media (min-width: 640px) {
  .topic-readings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .topic-featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .topic-pull-quote-text {
    font-size: 1.75rem;
  }
  .step-assoc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile adjustments for principle detail pages */
@media (max-width: 640px) {
  .topic-nav-header {
    padding: 0.75rem 1.5rem 0;
  }
  .topic-hero {
    min-height: 220px;
  }
  .topic-hero-content {
    padding: 2.5rem 1.5rem 3rem;
  }
  .topic-hero-title {
    font-size: 1.75rem;
  }
  .topic-pull-quote {
    padding: 1.5rem 1.5rem 0;
  }
  .topic-pull-quote-text {
    font-size: 1.25rem;
  }
  .topic-editorial-intro {
    padding: 2rem 1.5rem 0;
  }
  .topic-editorial-intro-inner p {
    font-size: 1.05rem;
  }
  .topic-editorial-intro-inner p:first-child::first-letter {
    font-size: 3rem;
  }
  .topic-member-insight {
    padding: 2rem 1.5rem;
  }
  .topic-member-insight-inner {
    padding: 1.75rem 1.5rem 1.5rem;
  }
  .topic-member-insight-inner::before {
    font-size: 3.5rem;
    top: 0.25rem;
    left: 0.75rem;
  }
  .topic-member-insight-heading {
    padding-left: 1.5rem;
  }
  .topic-toolbox {
    padding: 0 1.5rem 2rem;
  }
  .topic-featured-section {
    padding: 2rem 1.5rem 0;
  }
  .topic-featured-grid {
    grid-template-columns: 1fr;
  }
  .topic-readings-section {
    padding: 2rem 1.5rem;
  }
  .topic-readings-grid {
    grid-template-columns: 1fr;
  }
  .topic-nav-header .nav-label {
    display: none;
  }
  .topic-nav-header .nav-prev::after {
    content: 'Previous';
  }
  .topic-nav-header .nav-next::before {
    content: 'Next';
  }
}

/* --- Literature Pages --- */

/* Index page grid */
.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.book-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.book-card:hover {
  background-color: var(--cloud);
}

.book-card-cover {
  margin-bottom: 1.25rem;
}

.book-card-cover img {
  width: 160px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.book-card-category {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--seafoam);
  margin-bottom: 0.35rem;
}

.book-card-title {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  color: var(--deep-teal);
  margin-bottom: 0.5rem;
}

.book-card-desc {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.6;
  line-height: 1.5;
}

/* Detail page */
.book-detail {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 2rem;
  text-align: center;
}

.book-detail .breadcrumb {
  text-align: left;
  margin-bottom: 2.5rem;
}

.book-category {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--seafoam);
  margin-bottom: 0.5rem;
}

.book-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--deep-teal);
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.book-subtitle {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ocean);
  margin-bottom: 0.5rem;
}

.book-meta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ocean);
  margin-bottom: 2rem;
}

.book-cover {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.book-cover img {
  display: block;
  width: 260px;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.book-cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.15), transparent);
  border-radius: 3px 0 0 3px;
  z-index: 2;
  pointer-events: none;
}

.book-description {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--ink);
  text-align: left;
  margin-bottom: 2rem;
}

.book-purchase-btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  background-color: var(--deep-teal);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background-color 0.2s ease;
  margin-bottom: 1rem;
}

.book-purchase-btn:hover {
  background-color: var(--ocean);
  color: var(--white);
}

.book-also-available {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--ocean);
  margin-bottom: 2.5rem;
}

.book-also-available a {
  color: var(--deep-teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.book-divider {
  width: 40px;
  height: 1px;
  background-color: var(--mist);
  margin: 0 auto 2.5rem;
}

.book-app-card {
  background-color: var(--white);
  border: 1px solid var(--cloud);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.book-app-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
  color: var(--deep-teal);
  margin-bottom: 0.75rem;
}

.book-app-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--ink);
  opacity: 0.8;
  margin-bottom: 1.25rem;
}

.book-app-badge {
  height: 44px;
  width: auto;
}

.literature-disclaimer {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: var(--ink);
  opacity: 0.35;
  line-height: 1.6;
  text-align: center;
  margin-top: 2rem;
}

/* Literature responsive */
@media (max-width: 640px) {
  .book-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .book-card {
    padding: 1.5rem 1rem;
  }

  .book-card-cover img {
    width: 140px;
  }

  .book-detail {
    padding: 2rem 1.5rem;
  }

  .book-title {
    font-size: 2rem;
  }

  .book-cover img {
    width: 200px;
  }

  .book-app-card {
    padding: 1.5rem;
  }
}

/* --- Month Archive Page --- */

.ma-back-nav {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1rem 2rem 0;
}

.ma-back-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--deep-teal);
  text-decoration: none;
}

.ma-back-link:hover {
  text-decoration: underline;
}

.ma-header {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3.5rem 2rem 0;
  text-align: center;
}

.ma-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.ma-subtitle {
  font-family: var(--font-reading);
  font-size: 1rem;
  color: var(--slate-blue);
  line-height: 1.6;
}

/* Weekly Chapters */
.ma-chapters {
  max-width: 42rem;
  margin: 0 auto;
  padding: 3rem 2rem 0;
}

.ma-week {
  margin-bottom: 3rem;
}

.ma-week:last-child {
  margin-bottom: 0;
}

.ma-week-heading {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--deep-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--cloud);
}

.ma-week-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ma-reading-item {
  border-bottom: 1px solid var(--cloud);
}

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

.ma-reading-link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0.5rem;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.ma-reading-link:hover {
  background: var(--pearl);
}

.ma-reading-day {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--sage);
  white-space: nowrap;
  min-width: 5.5rem;
}

.ma-reading-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.ma-reading-link:hover .ma-reading-title {
  color: var(--deep-teal);
}

/* Engine CTA */
.ma-engine-cta {
  text-align: center;
  margin-top: 4rem;
}

.ma-engine-cta-inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.ma-engine-cta-heading {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.ma-engine-cta-text {
  font-family: var(--font-reading);
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

.ma-engine-cta-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.ma-engine-cta-badge-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.15s;
}

.ma-engine-cta-badge-link:hover {
  opacity: 0.8;
}

.ma-engine-cta-badge {
  height: 38px;
}

.ma-engine-cta-badge-play {
  height: 54px;
}

/* Mobile adjustments for month archive */
@media (max-width: 640px) {
  .ma-back-nav {
    padding: 0.75rem 1.5rem 0;
  }
  .ma-header {
    padding: 2.5rem 1.5rem 0;
  }
  .ma-title {
    font-size: 2rem;
  }
  .ma-chapters {
    padding: 2.5rem 1.5rem 0;
  }
  .ma-reading-link {
    padding: 0.65rem 0.25rem;
  }
  .ma-engine-cta-inner {
    padding: 0 1.5rem;
  }
}

/* --- Global Color Signal Blocks --- */
.bg-white {
  background-color: #FFFFFF;
}

.bg-terracotta {
  background-color: #B5836D;
  color: #FFFFFF;
}

.bg-sage {
  background-color: #3D4F41;
  color: #FFFFFF;
}

.bg-navy {
  background-color: #1B263B;
  color: #FFFFFF;
}

.bg-terracotta,
.bg-sage,
.bg-navy {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 5rem 0;
}

/* --- Utility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
