/* ═══════════════════════════════════════════════════════════════════
   css/human-design-profile.css — the 12 Human Design profile pages
   (/human-design/profile-{X}-{Y}/). Brand-v2 manuscript chrome, cloned
   from the chinese-astrology-animal.css layout language. Self-contained:
   this page does NOT load chinese-astrology*.css or human-design.css.
   Buster lives in human-design-profile.php (?v=…).

   Brand palette: parchment #FBF3DC, ink #2D1F38, wine #6B1F2C,
   aubergine #3A1F38, gold #B89150 / #D4AC68 / #8E6E3A.
═══════════════════════════════════════════════════════════════════ */

body.hdp-body {
  /* One continuous peach ground — same tone family as the CN animal pages. */
  background: linear-gradient(180deg, #F0DFC8 0%, #EBD6BD 100%);
  background-attachment: fixed;
  color: #2D1F38;
}

.hdp-wrap { max-width: 940px; margin: 0 auto; padding: 0 1.25rem; }
.hdp-wrap--narrow { max-width: 760px; }

/* ── Section rhythm ── */
.hdp-section { padding: 3rem 0; }
.hdp-eyebrow {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-style: normal;
  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;
}
.hdp-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;
}
.hdp-h2 em { color: #8E6E3A; font-style: italic; }
.hdp-rule {
  width: 82px; height: 1px; margin: 0.9rem auto 1.6rem;
  background: linear-gradient(90deg, transparent, #B89150, transparent);
  position: relative;
}
.hdp-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;
}

/* ═══════════════ HERO ═══════════════ */
.hdp-hero {
  position: relative;
  text-align: center;
  padding: 2.2rem 1.25rem 2.4rem;
  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 — small-caps burgundy, hanging off the left of the hero column. */
.hdp-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;
}
.hdp-back::before { content: "\2190"; font-style: italic; }
.hdp-back:hover { color: #92505E; border-color: #B96B7A; text-decoration: none; }
@media (max-width: 640px) {
  .hdp-back { position: static; left: auto; margin: 0 auto 1.2rem; }
}
.hdp-dept {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #8E6E3A;
}
.hdp-hero-rule {
  width: 64px; height: 1px; margin: 0.9rem auto;
  background: linear-gradient(90deg, transparent, #B89150, transparent);
  position: relative;
}
.hdp-hero-rule .m {
  position: absolute; top: -0.62em; left: 50%; transform: translateX(-50%);
  color: #B89150; font-size: 0.7rem; background: transparent; padding: 0 0.4rem;
}
.hdp-hero h1 {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: #2D1F38;
  margin: 0.2rem 0 0.4rem;
}
.hdp-hero h1 em { color: #6B1F2C; font-style: italic; }
.hdp-hero-title2 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  letter-spacing: 0.03em;
  color: #6B1F2C;
  margin: 0 0 0.7rem;
}
.hdp-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 0.9rem;
}
.hdp-hero-fleuron { color: #B89150; font-size: 1.35rem; margin: 0.2rem 0 1rem; }
.hdp-hero-deck {
  font-family: 'EB Garamond', serif;
  font-size: 1.16rem;
  line-height: 1.65;
  color: #2D1F38;
  max-width: 58ch;
  margin: 0 auto 1.5rem;
}

/* CTA button (hero + closing) */
.hdp-cta-wrap { text-align: center; margin: 0.4rem 0 0.2rem; }
.hdp-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;
}
.hdp-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(107,31,44,0.4); }
.hdp-cta-sub {
  display: block;
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 0.98rem;
  color: #6B1F2C;
  margin-top: 0.7rem;
}

/* ═══════════════ THE TWO LINES ═══════════════ */
.hdp-lines-intro {
  font-family: 'EB Garamond', serif;
  font-size: 1.16rem;
  line-height: 1.65;
  color: #2D1F38;
  text-align: center;
  max-width: 62ch;
  margin: 0 auto 1.8rem;
}
.hdp-lines-intro strong { color: #6B1F2C; }
.hdp-lines-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  align-items: stretch;
}
.hdp-line-card {
  background: linear-gradient(180deg, #FFFBEF 0%, #FBF3DC 100%);
  border: 1px solid rgba(184,145,80,0.5);
  border-top: 4px solid #B89150;
  border-radius: 14px;
  padding: 1.6rem 1.6rem 1.7rem;
  text-align: center;
  box-shadow: 0 3px 14px rgba(45,31,56,0.07);
}
.hdp-line-label {
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  color: #77592B;
  margin-bottom: 0.9rem;
}
.hdp-line-medal {
  width: 64px; height: 64px;
  margin: 0 auto 0.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 32%, #FFF8E0 0%, #F0D89A 60%, #D4AC68 100%);
  border: 2px solid rgba(184,145,80,0.9);
  box-shadow: 0 3px 10px rgba(45,31,56,0.18), inset 0 0 0 1px rgba(255,251,239,0.6);
}
.hdp-line-medal span {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.9rem;
  line-height: 1;
  color: #6B1F2C;
}
.hdp-line-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.28rem;
  color: #6B1F2C;
  margin: 0 0 0.3rem;
  letter-spacing: 0.02em;
}
.hdp-line-keynote {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 1.08rem;
  color: #4A1620;
  margin: 0 0 0.9rem;
}
.hdp-line-blurb {
  font-family: 'EB Garamond', serif;
  font-size: 1.16rem;
  line-height: 1.7;
  color: #2D1F38;
  text-align: left;
  margin: 0 0 1rem;
}
.hdp-line-note {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(45,31,56,0.72);
  border-top: 1px solid rgba(184,145,80,0.35);
  padding-top: 0.8rem;
  margin: 0;
}

/* ═══════════════ PROSE SECTIONS ═══════════════ */
.hdp-prose { text-align: left; }
.hdp-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;
}

/* ═══════════════ FAQ ═══════════════ */
.hdp-faq { max-width: 760px; margin: 0 auto; }
.hdp-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;
}
.hdp-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;
}
.hdp-faq .faq-item summary::-webkit-details-marker { display: none; }
.hdp-faq .faq-icon svg { width: 20px; height: 20px; fill: #B89150; transition: transform 0.2s ease; }
.hdp-faq .faq-item[open] .faq-icon svg { transform: rotate(180deg); }
.hdp-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;
}

/* ═══════════════ ALL TWELVE PROFILES GRID ═══════════════ */
.hdp-all-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  max-width: 940px;
  margin: 0 auto;
}
.hdp-all-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 1.15rem 1rem 1.25rem;
  background: linear-gradient(180deg, #FFFBEF 0%, #FBF3DC 100%);
  border: 1px solid rgba(184,145,80,0.5);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(45,31,56,0.07), inset 0 0 0 1px rgba(255,251,239,0.6);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
a.hdp-all-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(45,31,56,0.14);
  border-color: #B89150;
}
.hdp-all-num {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.1;
  color: #6B1F2C;
  margin-bottom: 0.3rem;
}
.hdp-all-title {
  font-family: 'EB Garamond', serif;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #2D1F38;
}
.hdp-all-card.is-current {
  background: linear-gradient(180deg, #F3E7C4 0%, #EFE0B8 100%);
  border-color: #B89150;
  cursor: default;
}
.hdp-all-card.is-current .hdp-all-here {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 0.95rem;
  color: #6B1F2C;
  margin-top: 0.4rem;
}

/* ═══════════════ CLOSING CTA ═══════════════ */
.hdp-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%);
}
.hdp-close-cta .hdp-h2 { margin-bottom: 0.6rem; }
.hdp-close-deck {
  font-family: 'EB Garamond', serif;
  font-size: 1.16rem;
  line-height: 1.65;
  color: #2D1F38;
  max-width: 54ch;
  margin: 0 auto 1.6rem;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 680px) {
  .hdp-lines-grid { grid-template-columns: 1fr; }
  .hdp-all-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ Commissioned line art in the line cards (replaces the number medal) ═══ */
.hdp-line-art {
  position: relative;
  width: clamp(150px, 30vw, 190px);
  aspect-ratio: 1 / 1;
  margin: 0.4rem auto 1rem;
  border-radius: 50%;
  padding: 8px;
  background: radial-gradient(circle at 50% 30%, #FFF8E0 0%, #F0D89A 55%, #D4AC68 100%);
  box-shadow: 0 12px 32px rgba(45, 31, 56, 0.24), 0 0 0 1px rgba(184,145,80,0.55),
    inset 0 0 0 1px rgba(255,251,239,0.6);
}
.hdp-line-art img {
  display: block; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,251,239,0.85);
}
