/*
 Theme Name:   TEP Child
 Theme URI:    https://theentreprenuerspath.com
 Description:  The Entrepreneur's Path – Living Book child theme
 Author:       Verious Smith III / Philoveracity
 Author URI:   https://philoveracity.com
 Template:     generatepress
 Version:      5.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  tep-child
*/

/* ==========================================================================
   TEP v4 — SEW-quality editorial design
   Adapted from Startempire Wire launch page patterns
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Palette */
  --tep-cream: #FAF6F0;
  --tep-parchment: #F2EBE0;
  --tep-warm-white: #FEFCF9;
  --tep-ink: #1E1E1E;
  --tep-ink-mid: #3A3A3A;
  --tep-ink-light: #6B6B6B;
  --tep-ink-wash: #999590;
  --tep-gold: #C4A265;
  --tep-gold-dark: #A6874E;
  --tep-gold-light: #D4BA85;
  --tep-gold-glow: rgba(196, 162, 101, 0.2);
  --tep-dark: #1E1E1E;
  --tep-dark-card: #2A2A2A;
  --tep-dark-border: rgba(255,255,255,0.08);

  /* Type */
  --tep-serif: 'Playfair Display', Georgia, serif;
  --tep-sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --tep-mono: 'SF Mono', 'Fira Code', Consolas, monospace;

  /* Spacing */
  --section-pad: clamp(4rem, 8vw, 8rem);
  --content-max: 1000px;
  --content-wide: 1100px;
  --tep-pad-x: 1.25rem;

  /* Shadows */
  --shadow-card: 0 2px 8px rgba(0,0,0,0.04), 0 8px 32px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.1), 0 16px 48px rgba(0,0,0,0.08);
  --shadow-art: 0 8px 40px rgba(0,0,0,0.15);

  /* Radius */
  --radius: 10px;
  --radius-lg: 14px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

body {
  background: var(--tep-cream);
  color: var(--tep-ink);
  font-family: var(--tep-sans);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--tep-gold-glow);
  color: var(--tep-ink);
}

/* WordPress overrides */
body.page .site-content { display: block !important; }
body.page #right-sidebar, body.page #left-sidebar { display: none !important; }
body.page .content-area { width: 100% !important; max-width: 100% !important; }
body.page-id-4 .entry-header { display: none; }
body.page .inside-article { padding: 0; }
body.page .entry-content { padding: 0; }
body.page .site-main > article { margin-bottom: 0; }
body.page .entry-content > .wp-block-group:not(.tep-hero-full) {
  padding-left: var(--tep-pad-x) !important;
  padding-right: var(--tep-pad-x) !important;
}
body.page .entry-content > .tep-hero-full {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--tep-serif);
  color: var(--tep-ink);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

a {
  color: var(--tep-gold-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--tep-ink); }

/* ==========================================================================
   HEADER
   ========================================================================== */

.site-header {
  background: var(--tep-cream) !important;
  border-bottom: 1px solid rgba(30,30,30,0.06);
}
.main-title a, .site-title a {
  font-family: var(--tep-sans) !important;
  font-weight: 700 !important;
  color: var(--tep-ink) !important;
  font-size: 1.05rem !important;
  letter-spacing: -0.01em !important;
}
.main-navigation a {
  font-family: var(--tep-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--tep-ink-light);
  transition: color 0.2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item a { color: var(--tep-gold-dark); }

/* ==========================================================================
   SHARED: Kicker + Headline + Sub + Accent bar
   ========================================================================== */

.tep-kicker {
  font-family: var(--tep-mono) !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--tep-gold) !important;
  margin-bottom: 1rem !important;
}
.tep-kicker-light { color: var(--tep-gold-light) !important; }

.tep-section-headline {
  font-size: clamp(2rem, 5vw, 3.2rem) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.025em !important;
  margin-bottom: 1rem !important;
}

.tep-section-sub {
  font-size: clamp(0.95rem, 2vw, 1.15rem) !important;
  color: var(--tep-ink-wash) !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  margin-bottom: 0.5rem !important;
}

/* Gold accent bar after sub (SEW coral bar equivalent) */
.tep-accent-bar {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--tep-gold);
  margin: 1.5rem auto 0;
  border-radius: 2px;
}
.tep-accent-bar-left {
  margin-left: 0;
  margin-right: auto;
}

/* ==========================================================================
   HERO — Full-bleed art with gradient overlay
   ========================================================================== */

.tep-hero-full {
  position: relative;
  overflow: hidden;
  min-height: min(80vh, 680px);
  max-height: 750px;
  display: flex;
  align-items: flex-end;
  background: var(--tep-ink);
}

.tep-hero-bg-art {
  position: absolute !important;
  top: 0; left: 0; right: 0; bottom: 0;
  margin: 0 !important;
  z-index: 1;
}
.tep-hero-bg-art img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.35;
  filter: contrast(1.1) brightness(0.9);
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Multi-stop gradient for text readability */
.tep-hero-full::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80%;
  background: linear-gradient(
    to top,
    rgba(30,30,30,0.97) 0%,
    rgba(30,30,30,0.8) 30%,
    rgba(30,30,30,0.4) 60%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

.tep-hero-overlay {
  position: relative;
  z-index: 2;
  padding: 2rem 1.25rem 3rem !important;
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
}

.tep-hero-title {
  font-size: clamp(2.6rem, 8vw, 5rem) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
  color: var(--tep-cream) !important;
  margin-bottom: 1rem !important;
}

.tep-hero-subtitle {
  font-size: clamp(0.92rem, 2.5vw, 1.2rem) !important;
  color: rgba(232,224,212,0.85) !important;
  line-height: 1.7 !important;
  font-weight: 300 !important;
  margin-bottom: 0.75rem !important;
  max-width: 100%;
}

.tep-hero-byline {
  font-family: var(--tep-mono) !important;
  font-size: 0.78rem !important;
  color: var(--tep-gold) !important;
  letter-spacing: 0.1em !important;
  margin-bottom: 0 !important;
}

/* Buttons — warm, organic, not "conversion optimized" */
.tep-btn-primary .wp-block-button__link {
  background: linear-gradient(135deg, var(--tep-gold), var(--tep-gold-dark)) !important;
  color: var(--tep-cream) !important;
  font-family: var(--tep-serif) !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  font-style: italic !important;
  letter-spacing: 0.02em !important;
  padding: 1rem 2.2rem !important;
  border-radius: 30px !important;
  transition: all 0.35s ease !important;
  box-shadow: 0 2px 12px rgba(196,162,101,0.25) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
}
.tep-btn-primary .wp-block-button__link:hover {
  background: linear-gradient(135deg, var(--tep-gold-light), var(--tep-gold)) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(196,162,101,0.35) !important;
}

.tep-btn-ghost .wp-block-button__link {
  background: transparent !important;
  color: var(--tep-gold-light) !important;
  border: 1.5px solid rgba(196,162,101,0.3) !important;
  font-family: var(--tep-serif) !important;
  font-weight: 500 !important;
  font-size: 0.88rem !important;
  font-style: italic !important;
  letter-spacing: 0.02em !important;
  padding: 0.9rem 1.8rem !important;
  border-radius: 30px !important;
  transition: all 0.3s ease !important;
}
.tep-btn-ghost .wp-block-button__link:hover {
  border-color: var(--tep-gold) !important;
  background: rgba(196,162,101,0.08) !important;
}

/* ==========================================================================
   CHAPTERS — 3-col grid with illustrations
   ========================================================================== */

.tep-chapters-section {
  padding-top: var(--section-pad) !important;
  padding-bottom: var(--section-pad) !important;
}

.tep-chapter-grid {
  gap: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

.tep-chapter-card {
  background: var(--tep-warm-white) !important;
  border: 1px solid rgba(30,30,30,0.06);
  border-radius: var(--radius-lg);
  padding: 0 !important;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: var(--shadow-card);
}
.tep-chapter-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
  border-color: var(--tep-gold);
}

/* Kill WP figure margins */
.tep-chapter-card figure,
.tep-chapter-card .wp-block-image {
  margin: 0 !important;
  padding: 0 !important;
}

/* Card illustration — full bleed */
.tep-card-illustration {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
  position: relative;
  overflow: hidden;
  background: #FAFAF8;
}
.tep-card-illustration::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(to top, var(--tep-warm-white), transparent);
  pointer-events: none;
  z-index: 1;
}
.tep-card-illustration img {
  width: 100% !important;
  height: 250px !important;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.tep-chapter-card:hover .tep-card-illustration img {
  transform: scale(1.05);
}

/* Card text */
.tep-chapter-card h3,
.tep-chapter-card .tep-card-subtitle,
.tep-chapter-card > p {
  padding-left: 1.5rem !important;
  padding-right: 1.5rem !important;
}
.tep-chapter-card h3 {
  padding-top: 1.25rem !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.35rem !important;
  line-height: 1.25 !important;
  margin-top: 0 !important;
}
.tep-card-subtitle {
  font-family: var(--tep-serif) !important;
  font-style: italic !important;
  font-size: 0.82rem !important;
  color: var(--tep-gold-dark) !important;
  margin-bottom: 0.6rem !important;
  line-height: 1.4 !important;
}
.tep-chapter-card p {
  font-size: 0.9rem !important;
  color: var(--tep-ink-light) !important;
  line-height: 1.65 !important;
  margin-bottom: 0 !important;
}
.tep-chapter-card > p:last-child {
  padding-bottom: 1.5rem !important;
}

/* Chapter number badge */
.tep-ch-num {
  display: inline-block;
  font-family: var(--tep-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--tep-gold-dark);
  background: var(--tep-gold-glow);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

@media (max-width: 767px) {
  .tep-chapter-grid { flex-direction: column !important; }

  /* Full-bleed card images on mobile — no thumbnail look */
  .tep-chapter-card {
    border-radius: var(--radius-lg) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .tep-card-illustration img {
    height: 200px !important;
    object-fit: cover !important;
    object-position: center 35% !important;
  }
}

/* ==========================================================================
   SECTION ILLUSTRATION — Full-bleed divider
   ========================================================================== */

.tep-section-illustration {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
  overflow: hidden;
}
.tep-section-illustration img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block;
}

/* ==========================================================================
   PERSONAS — "Who this is for" cards (SEW pain-point style)
   ========================================================================== */

.tep-personas-section {
  padding-top: var(--section-pad) !important;
  padding-bottom: var(--section-pad) !important;
}

.tep-persona-grid {
  gap: 1.5rem !important;
}

.tep-persona-card {
  background: var(--tep-warm-white) !important;
  border: 1px solid rgba(30,30,30,0.06);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem !important;
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
}
.tep-persona-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
  border-color: var(--tep-gold);
}

.tep-persona-emoji {
  font-size: 2.2rem !important;
  margin-bottom: 1rem !important;
  line-height: 1 !important;
}

.tep-persona-card h3 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.75rem !important;
}

.tep-persona-card p {
  font-size: 0.92rem !important;
  line-height: 1.7 !important;
  color: var(--tep-ink-light) !important;
}

.tep-persona-highlight {
  margin-top: auto !important;
  padding-top: 1.25rem !important;
  border-top: 1px solid rgba(196,162,101,0.2);
  color: var(--tep-ink-mid) !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
}
.tep-persona-highlight strong {
  color: var(--tep-gold-dark) !important;
  font-weight: 700 !important;
}

@media (max-width: 767px) {
  .tep-persona-grid { flex-direction: column !important; }
}

/* ==========================================================================
   FEATURE COLUMNS — Text + Art side-by-side
   ========================================================================== */

.tep-living-section {
  padding-top: var(--section-pad) !important;
  padding-bottom: var(--section-pad) !important;
}

.tep-feature-cols {
  gap: 3rem !important;
  align-items: center !important;
}

.tep-feature-art {
  margin: 0 !important;
}
.tep-feature-art img {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-art) !important;
}

.tep-feature-list {
  gap: 0 !important;
}
.tep-feature-list p {
  font-family: var(--tep-mono) !important;
  font-size: 0.88rem !important;
  margin-bottom: 0 !important;
  line-height: 1.5 !important;
  padding: 0.6rem 0 !important;
  border-bottom: 1px solid rgba(196,162,101,0.15);
}

@media (max-width: 767px) {
  .tep-feature-cols { flex-direction: column !important; }
  .tep-feature-cols-reverse { flex-direction: column-reverse !important; }
}

/* ==========================================================================
   CALLOUT / PULL-QUOTE
   ========================================================================== */

.tep-callout-section {
  padding-top: var(--section-pad) !important;
  padding-bottom: var(--section-pad) !important;
}

.tep-callout-box {
  border: 2px solid var(--tep-gold);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem !important;
  text-align: center;
  background: var(--tep-warm-white);
  box-shadow: var(--shadow-card), 0 0 0 4px var(--tep-gold-glow);
  position: relative;
}
.tep-callout-box::before {
  content: '\201C';
  font-family: var(--tep-serif);
  font-size: 6rem;
  color: var(--tep-gold);
  opacity: 0.25;
  position: absolute;
  top: -0.15em;
  left: 1.5rem;
  line-height: 1;
}

.tep-callout-box .wp-block-quote {
  border-left: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.tep-callout-box .wp-block-quote p {
  font-family: var(--tep-serif) !important;
  font-size: clamp(1.2rem, 3vw, 1.7rem) !important;
  font-style: italic;
  font-weight: 700 !important;
  color: var(--tep-ink) !important;
  line-height: 1.45 !important;
}
.tep-callout-box .wp-block-quote cite {
  font-family: var(--tep-mono);
  font-size: 0.78rem;
  color: var(--tep-gold-dark);
  font-style: normal;
  letter-spacing: 0.08em;
  display: block;
  margin-top: 1.25rem;
}

/* ==========================================================================
   AUTHOR SECTION
   ========================================================================== */

.tep-author-section {
  padding-top: var(--section-pad) !important;
  padding-bottom: var(--section-pad) !important;
}

.tep-author-art img {
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-art) !important;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.tep-cta-section {
  padding-top: var(--section-pad) !important;
  padding-bottom: var(--section-pad) !important;
}

.tep-cta-section .tep-section-headline {
  font-size: clamp(2rem, 5vw, 3rem) !important;
}

.tep-cta-section .tep-btn-primary .wp-block-button__link {
  font-size: 0.88rem !important;
  padding: 1.1rem 3rem !important;
}

.tep-btn-glow .wp-block-button__link {
  box-shadow: 0 0 30px rgba(196,162,101,0.3) !important;
}

/* ==========================================================================
   STICKY CTA BAR (SEW-style bottom bar)
   ========================================================================== */

.tep-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--tep-ink);
  border-top: 1px solid rgba(196,162,101,0.2);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.tep-sticky-bar.visible {
  transform: translateY(0);
}
.tep-sticky-bar-text {
  font-family: var(--tep-sans);
  font-size: 0.88rem;
  color: rgba(250,246,240,0.7);
  font-weight: 400;
}
.tep-sticky-bar-text strong {
  color: var(--tep-gold);
  font-weight: 700;
}
.tep-sticky-bar .wp-block-button__link,
.tep-sticky-bar a.tep-sticky-btn {
  background: var(--tep-gold) !important;
  color: var(--tep-ink) !important;
  font-family: var(--tep-sans);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--tep-cream) !important;
  border-top: 1px solid rgba(30,30,30,0.06);
  font-size: 0.82rem;
  color: var(--tep-ink-wash);
  padding-bottom: 3.5rem !important; /* space for sticky bar */
}
.tep-footer-note { font-size: 0.82rem !important; }
.tep-footer-note a { border-bottom: 1px solid var(--tep-gold); }

/* Cookie banner */
.cookie-notice-container {
  background: var(--tep-ink) !important;
  font-family: var(--tep-sans) !important;
  font-size: 0.82rem !important;
  bottom: 52px !important; /* above sticky bar */
}
#cn-accept-cookie { background: var(--tep-gold) !important; color: var(--tep-ink) !important; }

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

@media (min-width: 768px) {
  :root { --tep-pad-x: 2.5rem; }
  .tep-hero-overlay { padding: 3rem 2.5rem 4.5rem !important; }
  .tep-callout-box { padding: 3.5rem 4rem !important; }
  .tep-chapter-card h3 { font-size: 1.15rem !important; }
}

@media (min-width: 1024px) {
  .tep-hero-overlay { padding: 4rem 3rem 5rem !important; }
  .tep-hero-full { min-height: min(75vh, 650px); }
}

@media (max-width: 600px) {
  .tep-sticky-bar {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
  }
  .tep-sticky-bar-text { font-size: 0.8rem; }
}

@media (min-width: 1920px) {
  body { font-size: 1.05rem; }
}

/* Chapter number badge positioning inside card */
.tep-chapter-card .tep-ch-num {
  margin-left: 1.5rem;
  margin-top: 1rem;
}

/* ==========================================================================
   v5 ADDITIONS — Living Book Identity
   ========================================================================== */

/* Watercolor wash transition between hero and content */
.tep-hero-full + .tep-chapters-section::before,
.tep-hero-full + .wp-block-group::before {
  content: '';
  display: block;
  height: 80px;
  margin-top: -80px;
  background: linear-gradient(to bottom, var(--tep-ink) 0%, var(--tep-parchment) 100%);
  position: relative;
  z-index: 5;
}

/* Ink-wash divider flourish between sections */
.tep-ink-divider {
  text-align: center;
  padding: 1rem 0;
  opacity: 0.4;
  font-size: 1.5rem;
  color: var(--tep-gold);
  letter-spacing: 0.5em;
}

/* ==========================================================================
   SCROLL JOURNEY — Mobile-first vertical chapter path
   ========================================================================== */

/* On mobile: chapters become a vertical scroll journey with connecting path */
@media (max-width: 767px) {
  .tep-chapter-grid {
    flex-direction: column !important;
    gap: 0 !important;
    position: relative;
    padding-left: 2rem !important;
  }

  /* Vertical connecting line (the path) */
  .tep-chapter-grid::before {
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--tep-gold), var(--tep-gold-dark), var(--tep-gold));
    opacity: 0.3;
  }

  .tep-chapter-card {
    margin-bottom: 1.5rem !important;
    position: relative;
    border-radius: var(--radius-lg);
  }

  /* Path dot at each chapter */
  .tep-chapter-card::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 2rem;
    width: 10px;
    height: 10px;
    background: var(--tep-gold);
    border-radius: 50%;
    border: 2px solid var(--tep-parchment);
    z-index: 2;
    margin-left: 0.1rem;
  }

  /* Connecting arm from dot to card */
  .tep-chapter-card::after {
    content: '';
    position: absolute;
    left: -1.3rem;
    top: 2.35rem;
    width: 1.3rem;
    height: 2px;
    background: var(--tep-gold);
    opacity: 0.3;
  }
}

/* Desktop: 3-col grid stays but with subtle path markers */
@media (min-width: 768px) {
  .tep-chapter-grid .tep-chapter-card {
    position: relative;
  }
}

/* ==========================================================================
   WATERCOLOR SECTION TRANSITIONS
   ========================================================================== */

/* Warm → cool cream variation */
.tep-personas-section {
  background: linear-gradient(180deg, var(--tep-cream) 0%, #F0E8DA 100%) !important;
}

.tep-callout-section {
  background: #F5EEE4 !important;
}

.tep-author-section {
  background: var(--tep-cream) !important;
}

/* Ink wash edge between light and dark sections */
.tep-living-section::before {
  content: '';
  display: block;
  height: 60px;
  margin-top: -60px;
  margin-bottom: 0;
  background: linear-gradient(to bottom, var(--tep-cream) 0%, var(--tep-dark) 100%);
  position: relative;
}

.tep-living-section + .tep-callout-section::before,
.tep-living-section + .wp-block-group::before {
  content: '';
  display: block;
  height: 60px;
  margin-top: -60px;
  background: linear-gradient(to bottom, var(--tep-dark) 0%, var(--tep-cream) 100%);
  position: relative;
}

/* Warm watercolor texture overlay on chapters section */
.tep-chapters-section {
  position: relative;
}
.tep-chapters-section::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 20% 30%, rgba(196,162,101,0.04) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 70%, rgba(196,162,101,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   LIVING BOOK INDICATORS
   ========================================================================== */

.tep-living-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--tep-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--tep-gold-dark);
  background: var(--tep-gold-glow);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
}
.tep-living-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #6DBF5B;
  border-radius: 50%;
  animation: tep-pulse 2s ease-in-out infinite;
}

@keyframes tep-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ==========================================================================
   COOKIE BANNER — Friendly, in-voice
   ========================================================================== */

.cookie-notice-container {
  background: var(--tep-ink) !important;
  font-family: var(--tep-sans) !important;
  font-size: 0.82rem !important;
  border-top: 1px solid rgba(196,162,101,0.15) !important;
  z-index: 10001 !important;
}
/* Push sticky bar up when cookie is visible */
.cookie-notice-visible .tep-sticky-bar.visible {
  bottom: 50px;
}
#cn-notice-text {
  color: rgba(250,246,240,0.7) !important;
}
#cn-accept-cookie {
  background: var(--tep-gold) !important;
  color: var(--tep-ink) !important;
  border-radius: 20px !important;
  font-weight: 600 !important;
  padding: 0.4rem 1.2rem !important;
}
