/* ============================================================
   horoscopes-v2-e.css — "The Celestial Codex"
   Design comp E for the brand v2 horoscopes page.
   Sister to /numerology/ (Codex of Numbers) and the Witching
   Hour Apothecary (yes-no-tarot). Strictly inside the brand v2
   palette + type system; the maximalism comes from atmospheric
   layering, illuminated manuscript references, and a star-atlas
   ephemeris ribbon — not from leaving the palette.
   ============================================================ */

/* Brand v2 palette — pulled into local scope for legibility */
.cc-main,
.celestial-codex-body {
  --cc-bg-deep:        #E9D5BA;        /* the room behind the parchment */
  --cc-parchment:      #F0DFC8;        /* page page tone */
  --cc-vellum:         #FAF1E1;        /* card / folio surfaces */
  --cc-vellum-warm:    #E8D2B5;        /* hover / emphasis */
  --cc-ink:            #2D1F38;        /* body text */
  --cc-ink-soft:       #4A3858;
  --cc-burgundy:       #6B1F2C;        /* drop caps, em accents */
  --cc-burgundy-2:     #8C2F3F;        /* hover */
  --cc-aubergine:      #3A1F38;        /* night-sky panels */
  --cc-aubergine-2:    #2A1428;        /* gradient end */
  --cc-plum-mid:       #5A2D52;
  --cc-gold:           #B89150;        /* primary accent */
  --cc-gold-bright:    #D4AC68;        /* lifted gold */
  --cc-gold-deep:      #8E6E3A;        /* hover / strong */
  --cc-gold-pale:      #E5C68A;        /* faded gold on dark */
  --cc-gold-shimmer:   #F0D89A;
  --cc-rose:           #B96B7A;
  --cc-sage:           #9DAB8C;

  --cc-shadow-folio:   0 22px 50px -28px rgba(45, 31, 56, 0.42),
                       0 4px 14px -8px rgba(45, 31, 56, 0.18);
  --cc-shadow-card:    0 30px 70px -32px rgba(58, 31, 56, 0.55),
                       0 6px 18px -10px rgba(58, 31, 56, 0.25);

  /* Symbols-first font stack for zodiac + planet glyphs.
     EB Garamond does NOT include these — without this stack
     Windows falls back to its "Last Resort" tofu box.
     2026-05-15: Added "Apple Symbols" at FRONT for iOS. Without it, after
     we appended U+FE0E to glyphs (forcing text presentation, skipping
     Apple Color Emoji), iOS Safari fell through to serif (Times) which
     renders zodiac thin + small. Apple Symbols is built into iOS/macOS
     and draws zodiac at proper weight/metrics. Also added STIX Two Math
     as a robust cross-platform serif-style fallback. */
  /* 2026-05-15 v2: "Noto Sans Symbols 2" is now loaded as a Google Fonts
     webfont in top-nav.php. Putting it FIRST guarantees identical bold
     zodiac rendering across iOS / Windows / Android. The rest of the
     stack is just fallback in case the webfont fails to load. */
  --cc-font-glyph: "Noto Sans Symbols 2", "Apple Symbols", "Segoe UI Symbol",
                   "Symbola", "STIX Two Math", "DejaVu Sans",
                   "EB Garamond", serif;
}

/* ============================================================
   1. CANVAS — body color + grain overlay + ghost zodiac glyphs
   ============================================================ */
body.celestial-codex-body {
  background:
    radial-gradient(circle at 10% 8%,  rgba(184, 145, 80, 0.10), transparent 38%),
    radial-gradient(circle at 92% 90%, rgba(107, 31, 44, 0.08),  transparent 42%),
    radial-gradient(circle at 50% 110%, rgba(58, 31, 56, 0.06),  transparent 50%),
    var(--cc-parchment);
  color: var(--cc-ink);
}

.cc-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.42;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='6'/><feColorMatrix values='0 0 0 0 0.18  0 0 0 0 0.12  0 0 0 0 0.22  0 0 0 0.32 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}

.cc-ghost-glyphs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.cc-ghost {
  position: absolute;
  font-family: var(--cc-font-glyph);
  color: var(--cc-gold-deep);
  opacity: 0.045;
  user-select: none;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 0 3px rgba(184,145,80,0.2);
}
.cc-ghost-1  { top:  3%; left:  4%; font-size: 9rem;  transform: rotate(-12deg); }
.cc-ghost-2  { top: 12%; right: 6%; font-size: 11rem; transform: rotate( 8deg); }
.cc-ghost-3  { top: 26%; left: 60%; font-size: 8rem;  transform: rotate(-4deg); opacity: 0.035; }
.cc-ghost-4  { top: 38%; left:  3%; font-size: 13rem; transform: rotate( 6deg); }
.cc-ghost-5  { top: 52%; right: 3%; font-size: 10rem; transform: rotate(-9deg); }
.cc-ghost-6  { top: 64%; left: 28%; font-size: 14rem; transform: rotate( 4deg); opacity: 0.035; color: var(--cc-burgundy); }
.cc-ghost-7  { top: 68%; right: 30%; font-size: 9rem; transform: rotate(-6deg); }
.cc-ghost-8  { top: 80%; left:  6%; font-size: 11rem; transform: rotate( 7deg); }
.cc-ghost-9  { top: 86%; right: 8%; font-size: 10rem; transform: rotate(-3deg); }
.cc-ghost-10 { top: 94%; left: 40%; font-size: 9rem;  transform: rotate( 9deg); }
.cc-ghost-11 { top: 18%; left: 32%; font-size: 7rem;  transform: rotate(-15deg); opacity: 0.03; }
.cc-ghost-12 { top: 46%; left: 78%; font-size: 8rem;  transform: rotate( 11deg); opacity: 0.04; }

/* Lift main above the grain + ghosts */
.cc-main { position: relative; z-index: 2; }

/* ============================================================
   2. HERO — extensions on top of .page-hero (from yes-no-tarot.css)
   ============================================================ */
.cc-hero {
  /* compress hero — wayfinder needs to land near the top */
  padding-bottom: 0.5rem !important;
  margin-bottom: 0;
}
.cc-hero h1 {
  /* keep the brand-v2 italic-with-em treatment; just tighten leading */
  letter-spacing: -0.005em;
}
.cc-hero .page-hero-fleuron {
  margin-bottom: 0 !important;
}

/* Attribution strip — single line, sits directly below the wayfinder.
   Element · Ruler · Period in a tight band, flanked by hairlines. */
.cc-attribution-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.85rem;
  max-width: 720px;
  margin: 1.2rem auto 0;
  padding: 0.5rem 1.6rem;
  border-top: 0.5px solid rgba(142, 110, 58, 0.32);
  border-bottom: 0.5px solid rgba(142, 110, 58, 0.32);
  font-family: 'EB Garamond', serif;
  font-size: 0.92rem;
  color: var(--cc-ink);
  background: linear-gradient(180deg, rgba(250, 241, 225, 0) 0%, rgba(250, 241, 225, 0.45) 50%, rgba(250, 241, 225, 0) 100%);
}
/* Legacy alias — keep so existing rules referring to the old class don't break */
.cc-hero-attribution { display: none; }
.cc-attr-glyph {
  font-family: var(--cc-font-glyph);
  font-size: 1.4rem;
  color: var(--cc-burgundy);
  margin-right: 0.4rem;
  position: relative;
  top: -0.05em;
}
.cc-attr-line { display: inline-flex; align-items: baseline; gap: 0.45rem; }
.cc-attr-key {
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  color: var(--cc-gold-deep);
}
.cc-attr-val {
  font-style: italic;
  color: var(--cc-ink);
  font-weight: 500;
}
.cc-attr-sep { color: var(--cc-gold); opacity: 0.55; }

/* Wheel medallion — gentle hover spin + Virgo glyph pulses */
@keyframes ccWheelSpin {
  from { transform: rotate(0deg); } to { transform: rotate(360deg); }
}
@keyframes ccGlyphPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(212, 172, 104, 0)); }
  50%      { transform: scale(1.06); filter: drop-shadow(0 0 4px rgba(212, 172, 104, 0.55)); }
}
.cc-medallion-wheel .cc-wheel-spokes {
  transform-origin: 32px 32px;
  animation: ccWheelSpin 90s linear infinite;
}
.cc-medallion-wheel .cc-wheel-glyph {
  transform-origin: 32px 36px;
  animation: ccGlyphPulse 4.5s ease-in-out infinite;
}

/* Moon medallion — moonlit twinkles use the brand .hero-twinkle class
   (already animated in yes-no-tarot.css). Just add a subtle nightsky
   shimmer on the inner disc. */
@keyframes ccNightShimmer {
  0%, 100% { opacity: 0.92; }
  50%      { opacity: 0.96; filter: brightness(1.04); }
}
.cc-medallion-moon svg > circle:nth-of-type(3) {
  animation: ccNightShimmer 6s ease-in-out infinite;
}
.cc-medallion-moon .cc-stars circle {
  animation: ccStarTwinkle 3.4s ease-in-out infinite;
}
.cc-medallion-moon .cc-stars circle:nth-child(2) { animation-delay: 0.6s; }
.cc-medallion-moon .cc-stars circle:nth-child(3) { animation-delay: 1.2s; }
.cc-medallion-moon .cc-stars circle:nth-child(4) { animation-delay: 1.9s; }
.cc-medallion-moon .cc-stars circle:nth-child(5) { animation-delay: 2.5s; }
.cc-medallion-moon .cc-stars circle:nth-child(6) { animation-delay: 0.3s; }
.cc-medallion-moon .cc-stars circle:nth-child(7) { animation-delay: 1.5s; }
@keyframes ccStarTwinkle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.4); }
}

/* ============================================================
   3. EPHEMERIS RIBBON — vintage astronomical-chart strip
   ============================================================ */
.cc-ephemeris {
  max-width: 980px;
  margin: 1.8rem auto 0;
  padding: 1.6rem 2rem 1.4rem;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(184, 145, 80, 0.06) 0 1px,
      transparent 1px 28px
    ),
    linear-gradient(180deg, var(--cc-vellum) 0%, var(--cc-vellum-warm) 100%);
  border: 0.5px solid rgba(142, 110, 58, 0.45);
  box-shadow:
    inset 0 0 0 4px rgba(250, 241, 225, 0.6),
    inset 0 0 0 5px rgba(142, 110, 58, 0.32),
    var(--cc-shadow-folio);
  border-radius: 2px;
  position: relative;
}
.cc-ephemeris::before,
.cc-ephemeris::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--cc-gold-deep);
  opacity: 0.7;
}
.cc-ephemeris::before { top: 8px; left: 8px;  border-right: 0; border-bottom: 0; }
.cc-ephemeris::after  { bottom: 8px; right: 8px; border-left: 0;  border-top: 0; }

.cc-eph-mark {
  text-align: center;
  margin-bottom: 1.1rem;
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  letter-spacing: 0.28em;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--cc-gold-deep);
}
.cc-eph-mark em {
  font-variant: normal;
  letter-spacing: 0;
  font-style: italic;
  color: var(--cc-burgundy);
  font-weight: 600;
}
.cc-eph-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem 1.6rem;
}
.cc-eph-row {
  display: grid;
  grid-template-columns: 28px 78px 1fr auto;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 0.5px dashed rgba(142, 110, 58, 0.28);
  font-family: 'EB Garamond', serif;
}
.cc-eph-row:nth-last-child(-n+3) { border-bottom: 0; }
.cc-eph-glyph {
  font-family: var(--cc-font-glyph);
  font-size: 1.25rem;
  color: var(--cc-burgundy);
  text-align: center;
}
.cc-eph-label {
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--cc-ink);
}
.cc-eph-place {
  font-style: italic;
  font-weight: 500;
  color: var(--cc-ink);
}
.cc-eph-note {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--cc-gold-deep);
  font-family: 'Italianno', cursive;
  font-size: 1.15rem;
  white-space: nowrap;
}
.cc-eph-caption {
  margin-top: 1rem;
  text-align: right;
  font-family: 'Italianno', cursive;
  color: var(--cc-gold-deep);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

/* ============================================================
   4. WAYFINDER — unified parchment plate. 12 signs on top,
   3-cell range segmented control below (wide-not-tall).
   Replaces the previous two-section signswitch + rangeswitch.
   ============================================================ */
.cc-wayfinder {
  position: relative;
  max-width: 980px;
  margin: 0.4rem auto 0;
  padding: 1.6rem 1.8rem 1.4rem;
  background: var(--cc-vellum);
  border: 0.5px solid rgba(142, 110, 58, 0.42);
  box-shadow:
    inset 0 0 0 5px rgba(250, 241, 225, 0.65),
    inset 0 0 0 6px rgba(142, 110, 58, 0.28),
    var(--cc-shadow-folio);
  border-radius: 2px;
}
.cc-wayfinder-corners { position: absolute; inset: 0; pointer-events: none; }
.cc-wayfinder-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 1.1px solid var(--cc-gold-deep);
  opacity: 0.85;
}
.cc-wayfinder-corner-tl { top: 12px; left: 12px;  border-right: 0; border-bottom: 0; }
.cc-wayfinder-corner-tr { top: 12px; right: 12px; border-left: 0;  border-bottom: 0; }
.cc-wayfinder-corner-bl { bottom: 12px; left: 12px;  border-right: 0; border-top: 0; }
.cc-wayfinder-corner-br { bottom: 12px; right: 12px; border-left: 0;  border-top: 0; }

/* Sign row — 12 cards, compact and short */
.cc-wayfinder-signs {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}
.cc-signbtn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32rem;
  padding: 0.7rem 0.25rem 0.65rem;
  text-decoration: none;
  background: transparent;
  border: 0.5px solid transparent;
  border-radius: 2px;
  font-family: 'EB Garamond', serif;
  color: var(--cc-ink);
  transition: transform 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}
.cc-signbtn-glyph {
  font-size: 2rem;
  font-family: var(--cc-font-glyph);
  color: var(--cc-burgundy);
  line-height: 1;
  transition: color 0.3s ease, transform 0.3s ease;
}
.cc-signbtn-name {
  font-variant: small-caps;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cc-burgundy);
}
.cc-signbtn:hover {
  transform: translateY(-2px);
  background: rgba(184, 145, 80, 0.07);
  border-color: rgba(184, 145, 80, 0.35);
}
.cc-signbtn:hover .cc-signbtn-glyph {
  color: var(--cc-gold-deep);
  transform: scale(1.08);
}
.cc-signbtn.is-active {
  background: linear-gradient(180deg, var(--cc-burgundy) 0%, #4F1820 100%);
  border-color: var(--cc-gold-deep);
  box-shadow:
    0 0 0 1px rgba(212, 172, 104, 0.5) inset,
    0 6px 16px -8px rgba(107, 31, 44, 0.55);
}
.cc-signbtn.is-active .cc-signbtn-glyph { color: var(--cc-gold-bright); }
.cc-signbtn.is-active .cc-signbtn-name  { color: var(--cc-gold-pale); }

/* Element tints on hover */
.cc-signbtn[data-element="fire"]:hover  .cc-signbtn-glyph { color: #B53815; }
.cc-signbtn[data-element="earth"]:hover .cc-signbtn-glyph { color: #5E823C; }
.cc-signbtn[data-element="air"]:hover   .cc-signbtn-glyph { color: #1F3A6E; }
.cc-signbtn[data-element="water"]:hover .cc-signbtn-glyph { color: #2D5560; }

/* Hairline divider between sign + range rows */
.cc-wayfinder-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 0.85rem 1rem 0.85rem;
  position: relative;
  z-index: 1;
}
.cc-wayfinder-rule-line {
  flex: 1;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, rgba(142, 110, 58, 0.4), transparent);
}
.cc-wayfinder-rule-mark {
  color: var(--cc-gold);
  font-size: 0.95rem;
  opacity: 0.7;
}

/* Range segmented control — 3 wide cells, full-width, NOT tall */
.cc-wayfinder-range {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
.cc-rangecell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  padding: 0.95rem 1rem;
  font-family: 'EB Garamond', serif;
  text-decoration: none;
  color: var(--cc-ink);
  background: transparent;
  border-right: 0.5px solid rgba(142, 110, 58, 0.28);
  transition: background 0.3s ease, color 0.3s ease;
  text-align: center;
}
.cc-rangecell:last-child { border-right: 0; }
.cc-rangecell-label {
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 1.18rem;
  color: var(--cc-burgundy);
  line-height: 1.1;
}
.cc-rangecell-note {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--cc-ink-soft);
  margin-top: 0.1rem;
}
.cc-rangecell:hover {
  background: rgba(184, 145, 80, 0.08);
}
.cc-rangecell:hover .cc-rangecell-label { color: var(--cc-burgundy); }

.cc-rangecell.is-active {
  background: linear-gradient(180deg, var(--cc-aubergine) 0%, var(--cc-aubergine-2) 100%);
}
.cc-rangecell.is-active .cc-rangecell-label { color: var(--cc-gold-bright); }
.cc-rangecell.is-active .cc-rangecell-note  { color: var(--cc-gold-pale); }

/* ============================================================
   6. FOLIOS — manuscript panels with corner brackets, illuminated
   drop-cap initial, per-section glyph
   ============================================================ */
.cc-folios {
  max-width: 980px;
  margin: 4.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.cc-folio {
  position: relative;
  padding: 3rem 3.4rem 3rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(184, 145, 80, 0.06), transparent 60%),
    var(--cc-vellum);
  border: 0.5px solid rgba(142, 110, 58, 0.42);
  box-shadow:
    inset 0 0 0 5px rgba(250, 241, 225, 0.65),
    inset 0 0 0 6px rgba(142, 110, 58, 0.32),
    var(--cc-shadow-folio);
  border-radius: 2px;
  max-width: 820px;
  margin: 0 auto;
  width: 100%;
}
.cc-folio-intro {
  margin-top: 4.5rem;
  background:
    radial-gradient(circle at 50% 110%, rgba(107, 31, 44, 0.06), transparent 60%),
    var(--cc-vellum);
}

/* Corner brackets — illuminated-manuscript marginalia.
   Made more visible per brand reference (numerology archetype cards). */
.cc-folio-corners { position: absolute; inset: 0; pointer-events: none; }
.cc-folio-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1.2px solid var(--cc-gold-deep);
  opacity: 0.92;
}
.cc-folio-corner-tl { top: 16px; left: 16px;  border-right: 0; border-bottom: 0; }
.cc-folio-corner-tr { top: 16px; right: 16px; border-left: 0;  border-bottom: 0; }
.cc-folio-corner-bl { bottom: 16px; left: 16px;  border-right: 0; border-top: 0; }
.cc-folio-corner-br { bottom: 16px; right: 16px; border-left: 0;  border-top: 0; }

/* Eyebrow + rule + script + h2 (folio I/II/III headers).
   Roman-numeral PINNED pattern — matches numerology archetype cards
   ("I    ARCHETYPE № 01    I"). Set via data-roman attr on the eyebrow. */
.cc-folio-eyebrow {
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.32em;
  font-size: 0.85rem;
  color: var(--cc-gold-deep);
  text-align: center;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  width: 100%;
}
.cc-folio-eyebrow::before,
.cc-folio-eyebrow::after {
  font-family: 'Cinzel', serif;
  font-variant: normal;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--cc-gold-deep);
  opacity: 0.85;
  flex-shrink: 0;
}
.cc-folio-eyebrow[data-roman]::before { content: attr(data-roman); }
.cc-folio-eyebrow[data-roman]::after  { content: attr(data-roman); }
.cc-folio-eyebrow-text {
  display: inline-block;
  position: relative;
  padding-bottom: 0.55rem;
}
/* The thematic ink-color underline — per-folio category signal.
   Mirrors numerology doorway cards (Life Path emerald, Expression copper,
   Soul Urge rose, Personality lapis, etc). */
.cc-folio-eyebrow-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--folio-ink, var(--cc-gold-deep));
  border-radius: 1px;
  opacity: 0.9;
}

/* Per-folio ink colors (echo the numerology palette per CLAUDE.md) */
.cc-folio-love     { --folio-ink: #8B2840; }  /* madder rose — heart */
.cc-folio-career   { --folio-ink: #7A4520; }  /* copper bronze — material */
.cc-folio-wellness { --folio-ink: #5E823C; }  /* earth-sage — body */

/* Per-folio eyebrow text color too — matches the underline ink */
.cc-folio-love     .cc-folio-eyebrow-text { color: #8B2840; }
.cc-folio-career   .cc-folio-eyebrow-text { color: #7A4520; }
.cc-folio-wellness .cc-folio-eyebrow-text { color: #5E823C; }
.cc-folio-love     .cc-folio-eyebrow::before,
.cc-folio-love     .cc-folio-eyebrow::after,
.cc-folio-career   .cc-folio-eyebrow::before,
.cc-folio-career   .cc-folio-eyebrow::after,
.cc-folio-wellness .cc-folio-eyebrow::before,
.cc-folio-wellness .cc-folio-eyebrow::after {
  color: var(--folio-ink);
  opacity: 0.85;
}
.cc-folio-rule {
  position: relative;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--cc-gold), transparent);
  margin: 1rem auto 0.8rem;
  max-width: 220px;
}
.cc-folio-rule-star {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--cc-vellum);
  padding: 0 0.6rem;
  color: var(--cc-gold);
  font-size: 0.95rem;
}
.cc-folio-title {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.95rem, 3.6vw, 2.7rem);
  color: var(--cc-ink);
  text-align: center;
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.005em;
}
.cc-folio-title em {
  color: var(--cc-burgundy);
  font-style: italic;
}
.cc-folio-script {
  font-family: 'Italianno', cursive;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--cc-gold-deep);
  text-align: center;
  margin-top: 0.4rem;
  -webkit-text-stroke: 0.3px var(--cc-gold-deep);
  text-shadow: 0 1px 0 rgba(250, 241, 225, 0.4);
}

/* Body text inside folios */
.cc-folio-body {
  margin-top: 1.8rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.cc-folio-body p {
  font-family: 'EB Garamond', serif;
  font-size: 1.12rem;
  line-height: 1.78;
  color: var(--cc-ink);
  margin: 0 0 1.1rem;
  font-weight: 500;
}
.cc-folio-body p em { color: var(--cc-burgundy-2); font-style: italic; }
.cc-folio-body p strong { color: var(--cc-ink); font-weight: 700; }
.cc-folio-body p:last-child { margin-bottom: 0; }

/* Drop cap on the intro folio — floats / bleeds like illuminated manuscript,
   no hard-bordered box. Matches numerology Soul-Urge "Y" / hub "N" treatment. */
.cc-dropcap-paragraph { position: relative; }
.cc-dropcap {
  float: left;
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: 5.2rem;
  line-height: 0.86;
  color: var(--cc-burgundy);
  margin: 0.08em 0.55rem -0.1em -0.05em;
  padding: 0;
  text-shadow: 0 2px 0 rgba(250, 241, 225, 0.55), 0 0 22px rgba(184, 145, 80, 0.18);
  letter-spacing: -0.02em;
}

/* Per-section folio glyph (love/career/wellness) — small illustrative
   square in the top-right corner */
.cc-folio-glyph {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cc-vellum-warm);
  border: 0.5px solid var(--cc-gold-deep);
  border-radius: 2px;
  box-shadow: inset 0 0 0 2px rgba(250, 241, 225, 0.7);
}
.cc-folio-glyph svg { width: 28px; height: 28px; }

/* Folio H3 with illuminated initial */
.cc-folio-title-h3 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}
/* Illuminated initial — softer, more integrated. Letter floats next to text
   like soul-urge "Y" / hub "N", not a hard-bordered box. */
.cc-illuminated {
  display: inline-block;
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-style: normal;
  font-size: 1.4em;
  letter-spacing: -0.02em;
  margin-right: 0.04em;
  position: relative;
  top: 0.08em;
  background: linear-gradient(135deg,
    var(--cc-burgundy)  0%,
    var(--cc-burgundy-2) 50%,
    var(--cc-burgundy)  100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(250, 241, 225, 0.5))
          drop-shadow(0 0 12px rgba(107, 31, 44, 0.18));
}

/* (Per-folio thematic ink color now lives in the eyebrow underline above —
   stronger brand signal than a top-edge fade. Top-edge intentionally clean.) */

/* ============================================================
   6.5 SECTION DIVIDERS — floating ornaments between major beats
   Mirrors the Codex midnight-cosmos "between rows" pattern.
   ============================================================ */
.cc-divider-orn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  max-width: 720px;
  margin: 4rem auto 0;
  padding: 0 2rem;
  font-family: 'Cormorant Garamond', serif;
  color: var(--cc-gold-deep);
  opacity: 0.6;
}
.cc-divider-orn-line {
  flex: 1;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, rgba(142, 110, 58, 0.4), transparent);
  max-width: 180px;
}
.cc-divider-orn-mark {
  font-size: 1.15rem;
  letter-spacing: 0.4em;
  padding-left: 0.4em; /* compensate for letter-spacing on last char */
}

/* Section parent header — decorative-caps + script subtitle.
   Used above sections that need a higher-level beat (e.g. Lucky Days
   group, the Tarot card, etc). */
.cc-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.2rem;
  padding: 0 1.5rem;
}
.cc-section-head .cc-decohead { margin-bottom: 0.4rem; }
.cc-section-head-rule {
  position: relative;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--cc-gold), transparent);
  max-width: 240px;
  margin: 1rem auto 0;
}
.cc-section-head-rule::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--cc-parchment);
  padding: 0 0.7rem;
  color: var(--cc-gold);
  font-size: 0.95rem;
}

/* ============================================================
   7. LUCKY DAYS / WATCH OUT — illuminated date-line, two columns
   ============================================================ */
.cc-luckyfolio {
  max-width: 980px;
  margin: 2.4rem auto 0;
  padding: 3rem 3.4rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 172, 104, 0.08), transparent 60%),
    var(--cc-vellum);
  border: 0.5px solid rgba(142, 110, 58, 0.42);
  box-shadow:
    inset 0 0 0 5px rgba(250, 241, 225, 0.65),
    inset 0 0 0 6px rgba(142, 110, 58, 0.32),
    var(--cc-shadow-folio);
  border-radius: 2px;
}
.cc-luckyfolio-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: start;
}
.cc-luckyfolio-col { padding: 0.5rem 0; }
.cc-luckyfolio-eyebrow {
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.32em;
  font-size: 0.85rem;
  color: var(--cc-gold-deep);
  text-align: center;
}
.cc-lucky-col-watch .cc-luckyfolio-eyebrow { color: var(--cc-burgundy); }
.cc-luckyfolio-title {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  color: var(--cc-ink);
  text-align: center;
  margin: 0.85rem 0 1.6rem;
  line-height: 1.22;
}
.cc-luckyfolio-title em { color: var(--cc-burgundy); }
.cc-lucky-col-watch .cc-luckyfolio-title em { color: var(--cc-burgundy-2); }

.cc-luckydates {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cc-luckydates li {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(232, 210, 181, 0.4));
  border-bottom: 0.5px solid rgba(142, 110, 58, 0.28);
  font-family: 'EB Garamond', serif;
}
.cc-luckydate {
  font-style: italic;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--cc-ink);
  white-space: nowrap;
}
.cc-luckydate-fleuron {
  color: var(--cc-gold);
  font-size: 0.85rem;
  flex-shrink: 0;
}
.cc-luckydate-note {
  font-size: 0.95rem;
  color: var(--cc-ink-soft);
  font-weight: 500;
}
.cc-lucky-col-good .cc-luckydate { color: var(--cc-gold-deep); }
.cc-lucky-col-good .cc-luckydate-fleuron { color: var(--cc-gold-bright); }

.cc-lucky-col-watch .cc-luckydate { color: var(--cc-burgundy); }
.cc-lucky-col-watch .cc-luckydate-fleuron { color: var(--cc-burgundy-2); }

.cc-luckyfolio-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  width: 36px;
  padding-top: 1.5rem;
}
.cc-luckyfolio-divider-line {
  flex: 1;
  width: 0.5px;
  background: linear-gradient(180deg, transparent, var(--cc-gold-deep), transparent);
  min-height: 80px;
}
.cc-luckyfolio-divider-mark {
  color: var(--cc-gold);
  font-size: 1.2rem;
  margin: 0.6rem 0;
}

/* ============================================================
   8. TAROT CARD OF THE WEEK — tipped-in plate
   ============================================================ */
.cc-tarotweek {
  max-width: 980px;
  margin: 4.5rem auto 0;
  padding: 3rem 3rem 3.4rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(58, 31, 56, 0.06), transparent 70%),
    var(--cc-parchment);
  border-top: 0.5px solid rgba(142, 110, 58, 0.32);
  border-bottom: 0.5px solid rgba(142, 110, 58, 0.32);
}
.cc-tarotweek-eyebrow {
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.32em;
  font-size: 0.88rem;
  color: var(--cc-gold-deep);
}
.cc-tarotweek-title {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--cc-ink);
  margin: 0.6rem 0 0.2rem;
  letter-spacing: -0.005em;
}
.cc-tarotweek-title em {
  font-family: 'Cinzel Decorative', serif;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  /* gold-foil shimmer treatment — the page's biggest dramatic moment,
     equivalent of yes-no-tarot's "Maybe," */
  background: linear-gradient(135deg,
    var(--cc-gold-shimmer) 0%,
    var(--cc-gold-bright)  35%,
    var(--cc-gold-deep)    62%,
    var(--cc-gold-bright)  100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(184, 145, 80, 0.3));
  animation: ccFoilShimmer 7s ease-in-out infinite;
}
.cc-tarotweek-script {
  font-family: 'Italianno', cursive;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--cc-gold-deep);
  -webkit-text-stroke: 0.3px var(--cc-gold-deep);
  margin-bottom: 0.4rem;
}
.cc-tarotweek-rule {
  position: relative;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--cc-gold), transparent);
  max-width: 240px;
  margin: 0.8rem auto 2.4rem;
}
.cc-tarotweek-rule span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--cc-parchment);
  padding: 0 0.7rem;
  color: var(--cc-gold);
}

.cc-tarotweek-plate {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  text-align: left;
}

/* The tipped-in card — corner mounting brackets simulate paper photo corners */
.cc-tarotweek-card {
  display: block;
  position: relative;
  width: 220px;
  aspect-ratio: 100/160;
  text-decoration: none;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.cc-tarotweek-card:hover {
  transform: translateY(-6px) rotate(-1.5deg);
}
.cc-tarotweek-mount span {
  position: absolute;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, rgba(142, 110, 58, 0.5) 0%, rgba(142, 110, 58, 0.15) 100%);
  border: 0.5px solid rgba(45, 31, 56, 0.18);
  z-index: 2;
}
.cc-tarotweek-mount-tl { top: -8px; left: -8px;  clip-path: polygon(0 0, 100% 0, 0 100%); }
.cc-tarotweek-mount-tr { top: -8px; right: -8px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.cc-tarotweek-mount-bl { bottom: -8px; left: -8px;  clip-path: polygon(0 0, 100% 100%, 0 100%); }
.cc-tarotweek-mount-br { bottom: -8px; right: -8px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }

.cc-tarotweek-cardinner {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--cc-aubergine);
  box-shadow:
    0 24px 50px -22px rgba(58, 31, 56, 0.65),
    0 6px 16px -6px rgba(58, 31, 56, 0.35);
  transform: rotate(-2deg);
}
.cc-tarotweek-cardinner::before {
  /* paper texture */
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.85  0 0 0 0 0.7  0 0 0 0 0.4  0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 80px 80px;
  mix-blend-mode: overlay;
  opacity: 0.4;
}
.cc-tarotweek-cardroman {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  letter-spacing: 0.3em;
  font-size: 0.78rem;
  color: var(--cc-gold-bright);
  text-align: center;
  z-index: 2;
}
.cc-tarotweek-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cc-tarotweek-meaning { padding: 0; }
.cc-tarotweek-tagline {
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.82rem;
  color: var(--cc-gold-deep);
  margin: 0 0 1rem;
}
.cc-tarotweek-body {
  font-family: 'EB Garamond', serif;
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--cc-ink);
  margin: 0 0 1.4rem;
  font-weight: 500;
}
.cc-tarotweek-body em { color: var(--cc-burgundy-2); }
.cc-tarotweek-body strong { color: var(--cc-ink); font-weight: 700; }

.cc-tarotweek-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  text-decoration: none;
  background: linear-gradient(180deg, var(--cc-burgundy) 0%, #4F1820 100%);
  color: var(--cc-gold-bright);
  border: 0.5px solid var(--cc-gold-deep);
  border-radius: 2px;
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 0.9rem;
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease, letter-spacing 0.4s ease;
  box-shadow: 0 0 0 3px rgba(250, 241, 225, 0.4) inset, 0 6px 16px -8px rgba(107, 31, 44, 0.45);
}
.cc-tarotweek-cta:hover {
  background: linear-gradient(180deg, var(--cc-burgundy-2) 0%, #5C1822 100%);
  letter-spacing: 0.22em;
  transform: translateY(-2px);
  box-shadow: 0 0 0 3px rgba(250, 241, 225, 0.5) inset, 0 12px 24px -10px rgba(107, 31, 44, 0.55);
}
.cc-tarotweek-cta-arrow { transition: transform 0.4s ease; }
.cc-tarotweek-cta:hover .cc-tarotweek-cta-arrow { transform: translateX(5px); }

/* ============================================================
   9. AFFIRMATION — vellum cartouche with Italianno
   ============================================================ */
.cc-affirmation {
  max-width: 720px;
  margin: 5rem auto 0;
  padding: 0 2rem;
  text-align: center;
}
.cc-affirmation-cartouche {
  position: relative;
  padding: 3.2rem 2rem 3rem;
  background:
    radial-gradient(circle at 50% 50%, var(--cc-vellum) 0%, var(--cc-vellum-warm) 100%);
  border: 0.5px solid var(--cc-gold-deep);
  border-radius: 50% / 18%;
  box-shadow:
    inset 0 0 0 6px rgba(250, 241, 225, 0.7),
    inset 0 0 0 7px rgba(142, 110, 58, 0.32),
    0 30px 60px -30px rgba(58, 31, 56, 0.45);
}
.cc-affirmation-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  max-width: 360px;
  margin: 0 auto;
}
.cc-affirmation-rule-line {
  flex: 1;
  height: 0.5px;
  background: linear-gradient(90deg, transparent, var(--cc-gold), transparent);
}
.cc-affirmation-rule-mark {
  color: var(--cc-gold);
  font-size: 1rem;
}
.cc-affirmation-eyebrow {
  font-family: 'Italianno', cursive;
  font-size: 1.55rem;
  color: var(--cc-gold-deep);
  -webkit-text-stroke: 0.3px var(--cc-gold-deep);
  margin: 1rem 0 1.1rem;
  letter-spacing: 0.04em;
}
.cc-affirmation-body {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  line-height: 1.3;
  margin: 0 0 1.2rem;
  letter-spacing: -0.005em;
  /* gold-foil shimmer — the affirmation IS the climax of the page */
  background: linear-gradient(135deg,
    var(--cc-burgundy)   0%,
    var(--cc-gold-deep)  30%,
    var(--cc-gold-bright) 50%,
    var(--cc-gold-deep)  70%,
    var(--cc-burgundy)   100%);
  background-size: 250% 250%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(250, 241, 225, 0.7));
  animation: ccFoilShimmer 9s ease-in-out infinite;
}

/* ============================================================
   10. LAYER YOUR CHART — vellum cartouche nested in dark ritual frame
   Mirrors brand reference exactly: yes-no-tarot.com astro-prompt card.
   2-col interior: text + 2-button stack on LEFT, celestial illustration
   on RIGHT. Cream cartouche sits inside an aubergine "ritual frame."
   ============================================================ */
.cc-layer {
  margin: 5rem auto 0;
  padding: 4rem 2rem 4rem;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212, 172, 104, 0.10), transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(107, 31, 44, 0.08), transparent 60%),
    linear-gradient(180deg, var(--cc-aubergine) 0%, var(--cc-aubergine-2) 100%);
  position: relative;
  overflow: hidden;
}
.cc-layer::before {
  /* 3-layer starfield matching numerology Codex midnight panel */
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.1px 1.1px at 8% 18%,  var(--cc-gold-bright), transparent),
    radial-gradient(0.9px 0.9px at 24% 70%, var(--cc-gold-pale),   transparent),
    radial-gradient(0.7px 0.7px at 38% 22%, var(--cc-gold-pale),   transparent),
    radial-gradient(1px 1px at 54% 86%,     var(--cc-gold-bright), transparent),
    radial-gradient(0.7px 0.7px at 68% 30%, var(--cc-gold-pale),   transparent),
    radial-gradient(1.2px 1.2px at 82% 64%, var(--cc-gold-bright), transparent),
    radial-gradient(0.7px 0.7px at 92% 14%, var(--cc-gold-pale),   transparent),
    radial-gradient(0.9px 0.9px at 12% 88%, var(--cc-gold-bright), transparent),
    radial-gradient(0.8px 0.8px at 88% 90%, var(--cc-gold-pale),   transparent);
  opacity: 0.55;
}

.cc-layer-card {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  padding: 3rem 3.2rem;
  background:
    radial-gradient(circle at 50% 0%, rgba(184, 145, 80, 0.06), transparent 55%),
    var(--cc-vellum);
  border: 0.5px solid var(--cc-gold-deep);
  box-shadow:
    inset 0 0 0 5px rgba(250, 241, 225, 0.65),
    inset 0 0 0 6px rgba(142, 110, 58, 0.32),
    0 30px 60px -28px rgba(0, 0, 0, 0.55);
  border-radius: 2px;
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2.4rem;
  align-items: center;
}

.cc-layer-corners { position: absolute; inset: 0; pointer-events: none; }
.cc-layer-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1.2px solid var(--cc-gold-deep);
  opacity: 0.92;
}
.cc-layer-corner-tl { top: 16px; left: 16px;  border-right: 0; border-bottom: 0; }
.cc-layer-corner-tr { top: 16px; right: 16px; border-left: 0;  border-bottom: 0; }
.cc-layer-corner-bl { bottom: 16px; left: 16px;  border-right: 0; border-top: 0; }
.cc-layer-corner-br { bottom: 16px; right: 16px; border-left: 0;  border-top: 0; }

.cc-layer-text { text-align: left; }
.cc-layer-eyebrow {
  font-family: 'Italianno', cursive;
  font-size: 1.55rem;
  color: var(--cc-burgundy);
  -webkit-text-stroke: 0.3px var(--cc-burgundy);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.cc-layer-title {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  color: var(--cc-ink);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.005em;
}
.cc-layer-title em { color: var(--cc-burgundy); }
.cc-layer-script {
  font-family: 'Italianno', cursive;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  color: var(--cc-burgundy);
  -webkit-text-stroke: 0.3px var(--cc-burgundy);
  letter-spacing: 0.04em;
  margin-top: 0.3rem;
}
.cc-layer-body {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.74;
  color: var(--cc-ink);
  margin: 1.2rem 0 1.6rem;
}
.cc-layer-body em { color: var(--cc-burgundy-2); font-style: italic; }
.cc-layer-body strong { color: var(--cc-ink); font-weight: 700; }

/* Two-button stack — primary (dark aubergine) + secondary (cream-bordered) */
.cc-layer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}
.cc-layer-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.7rem;
  text-decoration: none;
  background: linear-gradient(180deg, var(--cc-aubergine) 0%, var(--cc-aubergine-2) 100%);
  color: var(--cc-gold-pale);
  border: 0.5px solid var(--cc-gold-deep);
  border-radius: 2px;
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
  transition: background 0.4s ease, transform 0.4s ease, letter-spacing 0.4s ease, box-shadow 0.4s ease, color 0.4s ease;
  box-shadow:
    inset 0 0 0 2px rgba(212, 172, 104, 0.12),
    0 8px 18px -10px rgba(58, 31, 56, 0.45);
}
.cc-layer-cta:hover {
  background: linear-gradient(180deg, var(--cc-plum-mid) 0%, var(--cc-aubergine) 100%);
  color: var(--cc-gold-shimmer);
  transform: translateY(-2px);
  letter-spacing: 0.26em;
  box-shadow:
    inset 0 0 0 2px rgba(212, 172, 104, 0.22),
    0 14px 28px -10px rgba(58, 31, 56, 0.55);
}
.cc-layer-cta-arrow { transition: transform 0.4s ease; }
.cc-layer-cta:hover .cc-layer-cta-arrow { transform: translateX(5px); }

.cc-layer-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  text-decoration: none;
  background: transparent;
  color: var(--cc-burgundy);
  border: 0.5px solid var(--cc-burgundy);
  border-radius: 2px;
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.cc-layer-secondary:hover {
  background: var(--cc-burgundy);
  color: var(--cc-vellum);
  border-color: var(--cc-burgundy);
}
.cc-layer-secondary-mark { color: var(--cc-gold-deep); transition: color 0.3s ease; }
.cc-layer-secondary:hover .cc-layer-secondary-mark { color: var(--cc-gold-bright); }

.cc-layer-fineprint {
  margin: 1.4rem 0 0;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--cc-ink-soft);
}
.cc-layer-fineprint a { color: var(--cc-burgundy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 0.5px; }
.cc-layer-fineprint a:hover { color: var(--cc-burgundy-2); }

/* Celestial illustration on the right — sun + moon + stars in gold ring */
.cc-layer-celestial {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-layer-celestial svg {
  width: 200px;
  height: 200px;
  filter: drop-shadow(0 8px 18px rgba(184, 145, 80, 0.25));
}
@keyframes ccCelestialPulse {
  0%, 100% { transform: scale(1);    opacity: 1;   }
  50%      { transform: scale(1.04); opacity: 0.92;}
}
.cc-layer-celestial .cc-celestial-glow { transform-origin: center; animation: ccCelestialPulse 5s ease-in-out infinite; }
.cc-layer-celestial .cc-celestial-star { animation: ccStarTwinkle 3s ease-in-out infinite; }
.cc-layer-celestial .cc-celestial-star-2 { animation-delay: 0.7s; }
.cc-layer-celestial .cc-celestial-star-3 { animation-delay: 1.4s; }
.cc-layer-celestial .cc-celestial-star-4 { animation-delay: 2.1s; }

/* ============================================================
   11. FAQ — extends .faq-section pattern with a head block
   ============================================================ */
.cc-faq {
  max-width: 760px;
  margin: 5rem auto 0;
  padding: 0 1rem;
}
.cc-faq-head {
  text-align: center;
  margin-bottom: 2.2rem;
}
.cc-faq-head h2 {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  color: var(--cc-burgundy);
  margin: 0.8rem 0 0.2rem;
  line-height: 1.18;
}
.cc-faq-head h2 em { color: var(--cc-ink); }
.cc-faq-script {
  font-family: 'Italianno', cursive;
  font-size: clamp(1.5rem, 2.8vw, 1.9rem);
  color: var(--cc-gold-deep);
  -webkit-text-stroke: 0.3px var(--cc-gold-deep);
}

/* ============================================================
   12. COMP COMPARISON FOOTER — dev-only nav between v2 comps
   ============================================================ */
.cc-comp-footer {
  max-width: 880px;
  margin: 5rem auto 2rem;
  padding: 1.4rem 1.6rem;
  text-align: center;
  background: var(--cc-vellum);
  border: 0.5px dashed var(--cc-gold-deep);
  border-radius: 2px;
  opacity: 0.85;
}
.cc-comp-eyebrow {
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  font-weight: 700;
  letter-spacing: 0.24em;
  font-size: 0.82rem;
  color: var(--cc-gold-deep);
  margin-bottom: 0.55rem;
}
.cc-comp-footer p {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--cc-ink);
  margin: 0;
}
.cc-comp-footer a { color: var(--cc-burgundy); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 0.5px; }
.cc-comp-footer a:hover { color: var(--cc-burgundy-2); }

/* ============================================================
   12.5 BRAND-DNA UTILITIES — gold-foil shimmer, pull-quote,
   decorative-caps two-tone heading, hero glyph seal
   (Added to mirror brand reference: numerology hub "AN introduction",
    Pythagoras pull-quote, soul-urge giant "6", yes-no "Maybe,".)
   ============================================================ */

/* Gold-foil shimmer text — the page's one dramatic moment.
   Used by the affirmation body, the Hermit title, and the hero glyph seal.
   Pattern: bg gradient → bg-clip text → transparent fill. */
.cc-foil {
  background: linear-gradient(135deg,
    var(--cc-gold-shimmer) 0%,
    var(--cc-gold-bright)  35%,
    var(--cc-gold-deep)    62%,
    var(--cc-gold-bright)  100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 1px 0 rgba(250, 241, 225, 0.45);
  filter: drop-shadow(0 2px 6px rgba(184, 145, 80, 0.18));
  animation: ccFoilShimmer 7s ease-in-out infinite;
}
@keyframes ccFoilShimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Pull-quote — vertical gold rule + " mark + italic burgundy.
   Mirrors the Pythagoras quote on /numerology/. */
.cc-pullquote {
  position: relative;
  margin: 2rem 0 2rem 0.5rem;
  padding: 1.2rem 1.4rem 1.2rem 2.2rem;
  background: linear-gradient(90deg, rgba(184, 145, 80, 0.08), transparent 80%);
  border-left: 2px solid var(--cc-gold);
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--cc-burgundy);
}
.cc-pullquote::before {
  content: '\201C';
  position: absolute;
  top: -0.3rem;
  left: 0.5rem;
  font-family: 'Cormorant Garamond', 'EB Garamond', serif;
  font-size: 3.4rem;
  font-weight: 600;
  color: var(--cc-gold);
  line-height: 1;
  font-style: normal;
}

/* Decorative-caps two-tone heading — Cinzel-Decorative small caps + EB-Garamond italic.
   Mirrors numerology hub "AN introduction" pattern.
   Usage: <h2 class="cc-decohead"><span class="cc-decohead-caps">AN</span> <em>introduction</em></h2> */
.cc-decohead {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  color: var(--cc-gold-deep);
  letter-spacing: -0.005em;
  margin: 0;
  text-align: center;
}
.cc-decohead .cc-decohead-caps {
  font-family: 'Cinzel Decorative', serif;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cc-burgundy);
  margin-right: 0.18em;
}
.cc-decohead em {
  color: var(--cc-gold-deep);
  font-style: italic;
}
.cc-decohead-script {
  font-family: 'Italianno', cursive;
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  color: var(--cc-gold-deep);
  -webkit-text-stroke: 0.3px var(--cc-gold-deep);
  text-align: center;
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
}

/* Hero glyph seal — giant illuminated zodiac glyph in faint gold ring.
   Mirrors numerology archetype giant "6" / "1" cards.
   Used in the hero attribution row, replacing the small inline ♍. */
.cc-glyphseal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 0.5px solid rgba(142, 110, 58, 0.5);
  background:
    radial-gradient(circle at 50% 40%, rgba(212, 172, 104, 0.15), transparent 65%),
    var(--cc-vellum);
  box-shadow:
    inset 0 0 0 4px rgba(250, 241, 225, 0.6),
    inset 0 0 0 5px rgba(142, 110, 58, 0.32),
    0 14px 30px -16px rgba(58, 31, 56, 0.4);
  font-family: var(--cc-font-glyph);
  font-size: 3.6rem;
  line-height: 1;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  position: relative;
}
.cc-glyphseal-glyph {
  background: linear-gradient(135deg,
    var(--cc-gold-shimmer) 0%,
    var(--cc-gold-bright)  40%,
    var(--cc-gold-deep)    100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(250, 241, 225, 0.5))
          drop-shadow(0 0 8px rgba(212, 172, 104, 0.35));
  font-family: var(--cc-font-glyph);
  font-size: inherit;
  line-height: 1;
}

/* ============================================================
   13. RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .cc-eph-grid { grid-template-columns: repeat(2, 1fr); gap: 0.4rem 1rem; }
  .cc-eph-row { grid-template-columns: 24px 70px 1fr auto; gap: 0.4rem; }
  .cc-eph-place { font-size: 0.95rem; }

  .cc-wayfinder { padding: 1.1rem 1rem; margin: 1rem 1rem 0; }
  .cc-wayfinder-signs { grid-template-columns: repeat(6, 1fr); gap: 0.35rem; }
  .cc-signbtn { padding: 0.5rem 0.2rem; }
  .cc-signbtn-glyph { font-size: 1.4rem; }
  .cc-signbtn-name { font-size: 0.6rem; }
  .cc-rangecell { padding: 0.55rem 0.6rem; }
  .cc-rangecell-label { font-size: 0.82rem; letter-spacing: 0.22em; }
  .cc-rangecell-note { font-size: 0.95rem; }

  .cc-folio { padding: 2.4rem 1.8rem; }
  .cc-folio-glyph { width: 36px; height: 36px; top: 18px; right: 18px; }
  .cc-folio-glyph svg { width: 22px; height: 22px; }
  .cc-dropcap { font-size: 4rem; }

  .cc-luckyfolio { padding: 2.4rem 1.8rem; }
  .cc-luckyfolio-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .cc-luckyfolio-divider { width: 100%; height: auto; flex-direction: row; padding: 0; }
  .cc-luckyfolio-divider-line { width: auto; height: 0.5px; min-height: 0; min-width: 80px; background: linear-gradient(90deg, transparent, var(--cc-gold-deep), transparent); }

  .cc-tarotweek { padding: 2.4rem 1.6rem 3rem; }
  .cc-tarotweek-plate { grid-template-columns: 1fr; gap: 2.4rem; max-width: 380px; text-align: center; }
  .cc-tarotweek-card { margin: 0 auto; }
  .cc-tarotweek-cta { display: inline-flex; }

  .cc-layer { padding: 3rem 1.4rem; }
  .cc-layer-card { padding: 2.4rem 1.8rem; grid-template-columns: 1fr; gap: 1.6rem; text-align: center; }
  .cc-layer-text { text-align: center; }
  .cc-layer-actions { justify-content: center; }
  .cc-layer-celestial svg { width: 160px; height: 160px; }
}

@media (max-width: 520px) {
  .cc-attribution-strip { font-size: 0.85rem; padding: 0.55rem 1rem; gap: 0.4rem 0.7rem; }
  .cc-eph-grid { grid-template-columns: 1fr; }
  .cc-wayfinder-signs { grid-template-columns: repeat(4, 1fr); }
  .cc-signbtn-glyph { font-size: 1.35rem; }
  .cc-rangecell { padding: 0.5rem 0.4rem; }
  .cc-rangecell-label { font-size: 0.74rem; letter-spacing: 0.18em; }
  .cc-rangecell-note { font-size: 0.85rem; }
  .cc-tarotweek-card { width: 180px; }
}

/* ============================================================
   14. PRINT — keeps the page legible if someone prints it
   ============================================================ */
@media print {
  .cc-grain, .cc-ghost-glyphs, .cc-comp-footer { display: none; }
  body.celestial-codex-body { background: white; }
}
