/* ═══════════════════════════════════════════════════════════════════
   css/chinese-astrology-elements.css — "The Five Elements" (Wu Xing)
   (/chinese-astrology/elements/). Brand-v2 manuscript chrome.
   Self-contained; relies on chinese-astrology.css for body.cn-page vars.
   Per-section accent colour comes from --cel-c (set inline from registry).
   Buster lives in the template (?v=…).
═══════════════════════════════════════════════════════════════════ */

body.cn-elements-body {
  /* One continuous peach ground (round 2) — matches the hero, no lighter-cream step. */
  background: linear-gradient(180deg, #F0DFC8 0%, #EBD6BD 100%);
  background-attachment: fixed;
  color: #2D1F38;
}

.cel-wrap { max-width: 980px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Shared section tokens ── */
.cel-section { padding: 3rem 0; }
.cel-eyebrow {
  /* Round 2: promoted to the large wine section heading (was small italic kicker). */
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-style: normal;
  font-size: clamp(1.8rem, 4vw, 2.3rem);   /* round 9: suite parity with .cna-eyebrow */
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #6B1F2C;
  text-align: center;
  margin: 0 0 0.55rem;
}
.cel-h2 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.05rem);
  letter-spacing: 0.02em;
  color: #2D1F38;
  text-align: center;
  margin: 0 0 1.4rem;
}
.cel-h2 em { color: #8E6E3A; font-style: italic; }
.cel-rule {
  width: 82px; height: 1px; margin: 0.9rem auto 1.6rem;
  background: linear-gradient(90deg, transparent, #B89150, transparent);
  position: relative;
}
.cel-rule::after {
  content: '\2726';
  position: absolute; top: -0.72em; left: 50%; transform: translateX(-50%);
  color: #B89150; font-size: 0.78rem;
  background: transparent; padding: 0 0.45rem;   /* round 4: no cream chip on peach ground */
}

/* ═══════════════ HERO ═══════════════ */
.cel-hero {
  position: relative;
  text-align: center;
  padding: 2.2rem 1.25rem 2.6rem;
  /* Peach hero band — matches /tarot/yes-no-tarot-reading/ (#F0DFC8 peach →
     #FBF3DC parchment) with the same rose + gold glows, transitioning into the
     cream body below. */
  background:
    radial-gradient(680px 340px at 50% 12%, rgba(212,172,104,0.14), rgba(212,172,104,0) 70%),
    radial-gradient(70% 50% at 14% 8%, rgba(217,150,143,0.10), rgba(217,150,143,0) 65%),
    radial-gradient(55% 40% at 88% 22%, rgba(184,145,80,0.10), rgba(184,145,80,0) 55%),
    linear-gradient(180deg, #F0DFC8 0%, #F0DFC8 100%);
  overflow: hidden;
}
/* Back link — exact clone of /tarot/ .page-hero-back: small-caps burgundy with a
   persistent burgundy underline, arrow via ::before, hanging off the left of the
   centered hero column and collapsing to centered on mobile. */
.cel-back {
  position: absolute;
  top: 2rem;
  left: clamp(1.25rem, calc(50% - 470px), 40%);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  color: #6B1F2C;
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid #6B1F2C;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  z-index: 3;
}
.cel-back::before { content: "\2190"; font-style: italic; }
.cel-back:hover { color: #92505E; border-color: #B96B7A; text-decoration: none; }
@media (max-width: 640px) {
  .cel-back { position: static; left: auto; margin: 0 auto 1.2rem; }
}
.cel-dept {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8E6E3A;
}
.cel-hero-rule {
  width: 64px; height: 1px; margin: 0.9rem auto;
  background: linear-gradient(90deg, transparent, #B89150, transparent);
  position: relative;
}
.cel-hero-rule .m {
  position: absolute; top: -0.62em; left: 50%; transform: translateX(-50%);
  color: #B89150; font-size: 0.7rem; padding: 0 0.4rem;
}
.cel-hero h1 {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.3rem);
  line-height: 1.08;
  color: #2D1F38;
  margin: 0.2rem 0 0.5rem;
}
.cel-hero h1 em { color: #6B1F2C; font-style: italic; }
.cel-hero-script {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.5;
  color: #4A1620;
  max-width: 48ch;
  margin: 0 auto 1.5rem;
}

/* Glyph chips (jump nav) */
.cel-glyph-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;                           /* round 9: breathe with larger cards */
  margin: 0 auto 1.7rem;
}
.cel-glyph-chip {
  --cel-c: #8E6E3A;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;                          /* round 9 */
  text-decoration: none;
  padding: 1.05rem 1.6rem;               /* round 9: much larger card (was .55/.9) */
  border-radius: 14px;
  border: 1px solid rgba(184,145,80,0.5);
  border-bottom: 3px solid var(--cel-c);
  background: linear-gradient(180deg, #FFFBEF 0%, #FBF3DC 100%);
  box-shadow: 0 2px 8px rgba(45,31,56,0.07);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cel-glyph-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(45,31,56,0.14); }
.cel-glyph-char {
  font-size: 2.7rem;                     /* round 9: larger symbol (was 1.6rem) */
  line-height: 1;
  color: var(--cel-c);
}
.cel-glyph-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;                      /* round 9 */
  font-size: 1.06rem;                    /* round 9: larger word (was 0.78rem) */
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6B1F2C;
}

/* CTA (shared) */
.cel-cta-wrap { text-align: center; margin: 0.4rem 0 0.2rem; }
.cel-cta {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.03em;
  color: #FBF3DC;
  text-decoration: none;
  padding: 0.92rem 1.9rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #7A2531 0%, #6B1F2C 100%);
  border: 1px solid rgba(212,172,104,0.7);
  box-shadow: 0 6px 18px rgba(107,31,44,0.32), inset 0 0 0 1px rgba(255,251,239,0.15);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cel-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(107,31,44,0.4); }

/* ═══════════════ CYCLE DIAGRAM ═══════════════ */
.cel-cycle-section { background: transparent; }  /* round 2: continuous peach, no band step */
.cel-cycle-lead {
  text-align: center;
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;             /* round 7: suite-wide body parity (1.2/1.75) */
  line-height: 1.75;
  color: #2D1F38;
  max-width: 62ch;
  margin: 0 auto 1.8rem;
}
.cel-cycle-lead strong { color: #6B1F2C; }
.cel-cycle-figure { max-width: 640px; margin: 0 auto; }   /* round 9: larger diagram (was 480px) */
.cel-cycle-svg { display: block; width: 100%; height: auto; }
.cel-node-glyph {
  font-size: 30px;
  font-family: 'Noto Sans SC', 'Songti SC', 'SimSun', serif;
  dominant-baseline: middle;
}
.cel-node-label {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.cel-cycle-svg a { cursor: pointer; }
.cel-cycle-caption {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.8rem;
  /* round 9: negative pull — the SVG viewBox has ~45px of empty space below the
     lowest nodes, so plain margin can't close the gap. */
  margin-top: -2.6rem;
}
.cel-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1.35rem;                    /* round 9: much larger (was 1rem) */
  color: #4A1620;
}
.cel-legend-swatch { width: 34px; height: 0; border-radius: 2px; }
.cel-legend-gen { border-top: 4px solid #8E6E3A; }
.cel-legend-ctl { border-top: 3px dashed rgba(107,31,44,0.75); }   /* round 9: wine */

/* ═══════════════ ELEMENT SECTIONS ═══════════════ */
.cel-element { --cel-c: #8E6E3A; position: relative; }
.cel-element:nth-child(even) { background: rgba(255,251,239,0.55); }
.cel-element::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--cel-c), transparent);
  opacity: 0.7;
}
.cel-el-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}
.cel-el-glyph {
  font-size: 3.2rem;
  line-height: 1;
  color: var(--cel-c);
  width: 5rem; height: 5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255,251,239,0.9), rgba(255,251,239,0.2));
  border: 2px solid var(--cel-c);
  box-shadow: 0 4px 14px rgba(45,31,56,0.12);
  flex: 0 0 auto;
}
.cel-el-eyebrow {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;                      /* round 9b: bold */
  font-size: 1.65rem;                    /* round 9: way larger (was 1.02rem) */
  letter-spacing: 0.02em;
  color: #6B1F2C;
  text-transform: capitalize;
}
.cel-el-name {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  color: var(--cel-c);
  margin: 0.1rem 0 0;
  letter-spacing: 0.02em;
}

/* Archetype paintings, side by side */
.cel-archetypes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  max-width: 720px;
  margin: 0 auto 2rem;
}
.cel-arch { margin: 0; text-align: center; }
.cel-arch-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  overflow: hidden;
  padding: 8px;
  background: linear-gradient(180deg, #FFFBEF 0%, #FBF3DC 100%);
  border: 1px solid rgba(184,145,80,0.5);
  box-shadow: 0 8px 24px rgba(45,31,56,0.16), inset 0 0 0 1px rgba(255,251,239,0.6);
}
.cel-arch-frame::after {
  content: '';
  position: absolute; inset: 8px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 2px var(--cel-c);
  opacity: 0.5;
  pointer-events: none;
}
.cel-arch-frame img {
  display: block;
  width: 100%; height: 100%;
  border-radius: 9px;
  object-fit: cover;
}
.cel-arch figcaption { margin-top: 0.7rem; }
.cel-arch-pol {
  display: block;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.05rem;                    /* round 9: way larger (was 0.78rem) */
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cel-c);
}
.cel-arch-name {
  display: block;
  font-family: 'EB Garamond', serif;
  font-style: normal;                    /* round 9: italics removed */
  font-weight: 600;
  font-size: 1.55rem;                    /* round 9: way larger (was 1.14rem) */
  color: #4A1620;
  margin-top: 0.15rem;
}

/* ═══════════════ FAQ ACCORDION ═══════════════
   Mirrors .csa-faq / .cna-faq; this page does not load animal.css. */
.cel-faq { max-width: 760px; margin: 0 auto; }
.cel-faq .faq-item {
  border: 1px solid rgba(184,145,80,0.5);
  border-radius: 10px;
  margin-bottom: 0.85rem;
  background: linear-gradient(180deg, #FFFBEF 0%, #FBF3DC 100%);
  overflow: hidden;
}
.cel-faq .faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.3rem;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #6B1F2C;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.cel-faq .faq-item summary::-webkit-details-marker { display: none; }
.cel-faq .faq-icon svg { width: 20px; height: 20px; fill: #B89150; transition: transform 0.2s ease; }
.cel-faq .faq-item[open] .faq-icon svg { transform: rotate(180deg); }
.cel-faq .faq-body {
  padding: 0 1.3rem 1.15rem;
  font-family: 'EB Garamond', serif;
  font-size: 1.18rem;
  line-height: 1.7;
  color: #2D1F38;
}

/* Prose */
.cel-prose { max-width: 720px; margin: 0 auto 1.8rem; }
.cel-prose p {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;             /* round 7: suite-wide body parity */
  line-height: 1.75;
  color: #2D1F38;
  margin: 0 0 1.1rem;
}
.cel-prose p:last-child { margin-bottom: 0; }

/* Excess / absence guidance */
.cel-guidance {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto 2rem;
}
.cel-guidance-item {
  padding: 1.1rem 1.3rem;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFFBEF 0%, #FBF3DC 100%);
  border: 1px solid rgba(184,145,80,0.5);
  border-left: 4px solid var(--cel-c);
}
.cel-guidance-k {
  display: block;
  font-family: 'Cinzel', serif;
  font-weight: 800;                      /* round 9b: bolder */
  font-size: 1.18rem;                    /* round 9b: larger (was .82rem) */
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cel-c);
  margin-bottom: 0.45rem;
}
.cel-guidance-v {
  font-family: 'EB Garamond', serif;
  font-size: 1.2rem;             /* round 7: suite-wide body parity */
  line-height: 1.7;
  color: #2D1F38;
}

/* Animals carrying this element */
.cel-animals { max-width: 720px; margin: 0 auto; text-align: center; }
.cel-animals-lead {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;              /* round 9b: bold */
  font-size: 1.7rem;             /* round 9b: much larger (was 1.2rem) */
  line-height: 1.5;
  color: #6B1F2C;
  margin-bottom: 1.2rem;
}
.cel-animals-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.3rem;
}
.cel-animal-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  width: 124px;                  /* round 9b: wider to fit larger art + name */
}
.cel-animal-link img {
  width: 108px; height: 108px;   /* round 9b: much bigger (was 64px) */
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cel-c);
  background: #FBF3DC;
  box-shadow: 0 3px 10px rgba(45,31,56,0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cel-animal-link:hover img { transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 18px rgba(45,31,56,0.26); }
.cel-animal-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.12rem;            /* round 9b: much larger (was .82rem) */
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6B1F2C;
  margin-top: 0.5rem;
}

/* ═══════════════ CLOSING CTA ═══════════════ */
.cel-close-cta {
  text-align: center;
  padding: 3rem 1.25rem 3.2rem;
  background:
    radial-gradient(620px 300px at 50% 100%, rgba(212,172,104,0.16), rgba(212,172,104,0) 70%);
}
.cel-close-cta .cel-h2 { margin-bottom: 0.6rem; }
.cel-close-deck {
  font-family: 'EB Garamond', serif;
  font-size: 1.16rem;
  line-height: 1.65;
  color: #2D1F38;
  max-width: 56ch;
  margin: 0 auto 1.6rem;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 620px) {
  .cel-el-head { flex-direction: column; gap: 0.5rem; }
  .cel-guidance { grid-template-columns: 1fr; }
  .cel-archetypes { gap: 1rem; }
}
@media (max-width: 400px) {
  .cel-glyph-chip { padding: 0.45rem 0.6rem; }
  .cel-animals-row { gap: 0.9rem; }
}
