/* ═══════════════════════════════════════════════════════════════════
   css/human-design-centers.css — shared chrome for the two Human Design
   reference pages: /human-design/centers/ and /human-design/authorities/.
   Brand-v2 manuscript styling, mirroring css/chinese-astrology-elements.css
   (the CN "Five Elements" page) with hdc-* class names. Self-contained —
   relies only on styles.css/horoscopes.css for nav + footer chrome.
   Palette: parchment #FBF3DC, ink #2D1F38, wine #6B1F2C, aubergine #3A1F38,
   gold #B89150 / #D4AC68 / #8E6E3A. Buster lives in the templates (?v=…).
═══════════════════════════════════════════════════════════════════ */

body.hdc-body {
  /* One continuous peach ground — suite parity with the CN elements page. */
  background: linear-gradient(180deg, #F0DFC8 0%, #EBD6BD 100%);
  background-attachment: fixed;
  color: #2D1F38;
}

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

/* ── Shared section tokens ── */
.hdc-section { padding: 3rem 0; }
.hdc-eyebrow {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #6B1F2C;
  text-align: center;
  margin: 0 0 0.55rem;
}
.hdc-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;
}
.hdc-h2 em { color: #8E6E3A; font-style: italic; }
.hdc-rule {
  width: 82px; height: 1px; margin: 0.9rem auto 1.6rem;
  background: linear-gradient(90deg, transparent, #B89150, transparent);
  position: relative;
}
.hdc-rule::after {
  content: '\2726';
  position: absolute; top: -0.72em; left: 50%; transform: translateX(-50%);
  color: #B89150; font-size: 0.78rem;
  padding: 0 0.45rem;
}

/* ═══════════════ HERO ═══════════════ */
.hdc-hero {
  position: relative;
  text-align: center;
  padding: 2.2rem 1.25rem 2.6rem;
  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;
}
.hdc-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;
}
.hdc-back::before { content: "\2190"; font-style: italic; }
.hdc-back:hover { color: #92505E; border-color: #B96B7A; text-decoration: none; }
@media (max-width: 640px) {
  .hdc-back { position: static; left: auto; margin: 0 auto 1.2rem; }
}
.hdc-dept {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #8E6E3A;
}
.hdc-hero-rule {
  width: 64px; height: 1px; margin: 0.9rem auto;
  background: linear-gradient(90deg, transparent, #B89150, transparent);
  position: relative;
}
.hdc-hero-rule .m {
  position: absolute; top: -0.62em; left: 50%; transform: translateX(-50%);
  color: #B89150; font-size: 0.7rem; padding: 0 0.4rem;
}
.hdc-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;
}
.hdc-hero h1 em { color: #6B1F2C; font-style: italic; }
.hdc-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: 52ch;
  margin: 0 auto 1.5rem;
}

/* Jump chips (anchor nav) */
.hdc-jump-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  max-width: 820px;
  margin: 0 auto 1.7rem;
}
.hdc-jump-chip {
  display: inline-block;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6B1F2C;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(184,145,80,0.5);
  border-bottom: 3px solid #B89150;
  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;
}
.hdc-jump-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(45,31,56,0.14); }

/* CTA (shared) */
.hdc-cta-wrap { text-align: center; margin: 0.4rem 0 0.2rem; }
.hdc-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;
}
.hdc-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(107,31,44,0.4); }

/* ═══════════════ ENTRY SECTIONS (one per center / authority) ═══════════════ */
.hdc-entry { position: relative; }
.hdc-entry.hdc-alt { background: rgba(255,251,239,0.55); }
.hdc-entry::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, transparent, #B89150, transparent);
  opacity: 0.7;
}
.hdc-entry-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.7rem;
  text-align: center;
}
.hdc-entry-name {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 4.6vw, 2.4rem);
  color: #6B1F2C;
  letter-spacing: 0.02em;
  margin: 0;
}
.hdc-kind {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #77592B;
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(184,145,80,0.65);
  background: linear-gradient(180deg, #FFFBEF 0%, #FBF3DC 100%);
  box-shadow: inset 0 0 0 1px rgba(255,251,239,0.6);
  white-space: nowrap;
}
.hdc-keynote {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1.45;
  color: #4A1620;
  text-align: center;
  max-width: 58ch;
  margin: 0 auto 1.8rem;
}
.hdc-who {
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.05em;
  color: #77592B;
  text-align: center;
  margin: 0 0 0.6rem;
}

/* Center layout: mini highlighted bodygraph beside the prose */
.hdc-center-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.hdc-mini-graph {
  width: 100%;
  max-width: 210px;
  margin: 0 auto;
  padding: 0.75rem;
  background: linear-gradient(180deg, #FFFBEF 0%, #FBF3DC 100%);
  border: 1px solid rgba(184,145,80,0.55);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(45,31,56,0.12), inset 0 0 0 1px rgba(255,251,239,0.6);
}
.hdc-mini-graph svg { display: block; width: 100%; height: auto; }
.hdc-mini-caption {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.45;
  color: #6B1F2C;
  text-align: center;
  margin: 0.6rem 0 0;
}

/* Defined vs Open two-column blurbs */
.hdc-do {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hdc-do-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);
}
.hdc-do-defined { border-left: 4px solid #B89150; }
.hdc-do-open    { border-left: 4px solid #6B1F2C; }
.hdc-do-k {
  display: block;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}
.hdc-do-defined .hdc-do-k { color: #8E6E3A; }
.hdc-do-open    .hdc-do-k { color: #6B1F2C; }
.hdc-do-v {
  /* Matches the site's standard reading paragraph (.hdt-prose p) exactly */
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.16rem, 2.2vw, 1.28rem);
  line-height: 1.72;
  color: #2D1F38;
}

/* Gates note line */
.hdc-gates-note {
  font-family: 'EB Garamond', serif;
  font-style: normal;
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.6;
  color: #6B1F2C;
  margin: 1.1rem 0 0;
}
.hdc-gates-note::before { content: '\2726\00a0\00a0'; color: #B89150; font-style: normal; }

/* Prose (authorities how-to-decide) */
.hdc-prose { max-width: 720px; margin: 0 auto 1.6rem; }
.hdc-prose p {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.16rem, 2.2vw, 1.28rem); /* site-standard reading size */
  line-height: 1.72;
  color: #2D1F38;
  margin: 0 0 1.1rem;
}
.hdc-prose p:last-child { margin-bottom: 0; }

/* Pitfall callout — gold-border aside */
.hdc-pitfall {
  max-width: 720px;
  margin: 0 auto;
  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 #B89150;
  box-shadow: 0 2px 10px rgba(45,31,56,0.07), inset 0 0 0 1px rgba(255,251,239,0.6);
}
.hdc-pitfall-k {
  display: block;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8E6E3A;
  margin-bottom: 0.45rem;
}
.hdc-pitfall-v {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.16rem, 2.2vw, 1.28rem); /* site-standard reading size */
  line-height: 1.72;
  color: #2D1F38;
}

/* ═══════════════ FAQ ACCORDION ═══════════════ */
.hdc-faq { max-width: 760px; margin: 0 auto; }
.hdc-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;
}
.hdc-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;
}
.hdc-faq .faq-item summary::-webkit-details-marker { display: none; }
.hdc-faq .faq-icon svg { width: 20px; height: 20px; fill: #B89150; transition: transform 0.2s ease; }
.hdc-faq .faq-item[open] .faq-icon svg { transform: rotate(180deg); }
.hdc-faq .faq-body {
  padding: 0 1.3rem 1.15rem;
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.16rem, 2.2vw, 1.28rem);
  line-height: 1.72;
  color: #2D1F38;
}

/* ═══════════════ CLOSING CTA ═══════════════ */
.hdc-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%);
}
.hdc-close-cta .hdc-h2 { margin-bottom: 0.6rem; }
.hdc-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: 720px) {
  .hdc-center-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .hdc-mini-graph { max-width: 200px; }
  .hdc-do { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .hdc-jump-chip { padding: 0.45rem 0.7rem; font-size: 0.85rem; }
}

/* ═══ Commissioned hero art (gold-ringed portrait) ═══ */
.hdc-hero-art {
  position: relative;
  width: clamp(190px, 40vw, 260px);
  aspect-ratio: 1 / 1;
  margin: 1.2rem auto 1.4rem;
  border-radius: 50%;
  padding: 9px;
  background: radial-gradient(circle at 50% 30%, #FFF8E0 0%, #F0D89A 55%, #D4AC68 100%);
  box-shadow: 0 16px 40px rgba(45, 31, 56, 0.26), 0 0 0 1px rgba(184,145,80,0.55),
    inset 0 0 0 1px rgba(255,251,239,0.6);
}
.hdc-hero-art img {
  display: block; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,251,239,0.85);
}
