/* ═══════════════════════════════════════════════════════════════════
   css/human-design-type.css — the 5 Human Design type profile pages
   (/human-design/{generator|manifesting-generator|projector|manifestor|reflector}/).
   Brand-v2 manuscript chrome, cloned from the chinese-astrology-animal.css
   layout language. Self-contained: this page does NOT load human-design.css
   (that file belongs to the calculator page), so the palette vars are set
   here on the page body. Buster lives in human-design-type.php (?v=…).

   Brand palette (never hardcode elsewhere): parchment #FBF3DC, ink #2D1F38,
   burgundy/wine #6B1F2C, gold #B89150 / #D4AC68 / #8E6E3A.
═══════════════════════════════════════════════════════════════════ */

body.hd-type-body {
  --hdt-parchment: #FBF3DC;
  --hdt-ink:       #2D1F38;
  --hdt-wine:      #6B1F2C;
  --hdt-gold:      #B89150;
  --hdt-gold-lt:   #D4AC68;
  --hdt-gold-dk:   #8E6E3A;
  /* One continuous peach manuscript ground, matching the CN animal pages. */
  background: linear-gradient(180deg, #F0DFC8 0%, #EBD6BD 100%);
  background-attachment: fixed;
  color: var(--hdt-ink);
}

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

/* ── Section rhythm ── */
.hdt-section { padding: 3rem 0; }
.hdt-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: var(--hdt-wine);
  text-align: center;
  margin: 0 0 0.55rem;
}
.hdt-h2 {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.05rem);
  letter-spacing: 0.02em;
  color: var(--hdt-ink);
  text-align: center;
  margin: 0 0 1.4rem;
}
.hdt-h2 em { color: var(--hdt-gold-dk); font-style: italic; }
.hdt-rule {
  width: 82px; height: 1px; margin: 0.9rem auto 1.6rem;
  background: linear-gradient(90deg, transparent, var(--hdt-gold), transparent);
  position: relative;
}
.hdt-rule::after {
  content: '\2726';
  position: absolute; top: -0.72em; left: 50%; transform: translateX(-50%);
  color: var(--hdt-gold); font-size: 0.78rem;
  background: transparent; padding: 0 0.45rem;
}

/* ═══════════════ HERO ═══════════════ */
.hdt-hero {
  position: relative;
  text-align: center;
  padding: 2.2rem 1.25rem 2.2rem;
  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 centered hero column. */
.hdt-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: var(--hdt-wine);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--hdt-wine);
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  z-index: 3;
}
.hdt-back::before { content: "\2190"; font-style: italic; }
.hdt-back:hover { color: #92505E; border-color: #B96B7A; text-decoration: none; }
@media (max-width: 640px) {
  .hdt-back { position: static; left: auto; margin: 0 auto 1.2rem; }
}
.hdt-dept {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--hdt-gold-dk);
}
.hdt-hero-rule {
  width: 64px; height: 1px; margin: 0.9rem auto;
  background: linear-gradient(90deg, transparent, var(--hdt-gold), transparent);
  position: relative;
}
.hdt-hero-rule .m {
  position: absolute; top: -0.62em; left: 50%; transform: translateX(-50%);
  color: var(--hdt-gold); font-size: 0.7rem; background: transparent; padding: 0 0.4rem;
}
.hdt-hero h1 {
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 5.4vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--hdt-ink);
  margin: 0.2rem 0 0.5rem;
}
.hdt-hero h1 em { color: var(--hdt-wine); font-style: italic; }
.hdt-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.1rem;
}
.hdt-hero-fleuron { color: var(--hdt-gold); font-size: 1.35rem; margin: 0.2rem 0 1.3rem; }

/* The gold-ringed type emblem — the page's presence, in place of a portrait. */
.hdt-emblem {
  width: clamp(130px, 30vw, 170px);
  margin: 0 auto 0.9rem;
  position: relative;
}
.hdt-emblem::before {
  content: '';
  position: absolute; inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,172,104,0.34) 0%, rgba(212,172,104,0) 68%);
  z-index: 0;
}
.hdt-emblem svg {
  position: relative;
  display: block;
  width: 100%; height: auto;
  filter: drop-shadow(0 10px 26px rgba(45, 31, 56, 0.22));
  z-index: 1;
}

/* Population plate line */
.hdt-pop {
  display: inline-block;
  font-family: 'EB Garamond', serif;
  font-variant: small-caps;
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.14em;
  color: var(--hdt-wine);
  padding: 0.4rem 1.1rem;
  border: 1px solid rgba(184,145,80,0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, #FFFBEF 0%, #FBF3DC 100%);
  box-shadow: 0 3px 12px rgba(45,31,56,0.08);
  margin: 0 auto 1.2rem;
}

.hdt-hero-deck {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.12rem, 2.3vw, 1.3rem);
  line-height: 1.6;
  color: var(--hdt-ink);
  max-width: 62ch;
  margin: 0 auto 1.5rem;
}

/* ── CTA (shared by hero + closing band) ── */
.hdt-cta-wrap { text-align: center; }
.hdt-cta {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  color: #FBF3DC;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #7C2635 0%, #6B1F2C 55%, #571722 100%);
  border: 1px solid rgba(184,145,80,0.65);
  box-shadow: 0 6px 18px rgba(107, 31, 44, 0.32), inset 0 1px 0 rgba(255,251,239,0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.hdt-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 9px 24px rgba(107, 31, 44, 0.4), inset 0 1px 0 rgba(255,251,239,0.18);
  color: #FFFBEF;
  text-decoration: none;
}

/* ═══════════════ STRATEGY STRIP — 3 pill-cards ═══════════════ */
.hdt-strip-section { padding: 2.4rem 0 0.4rem; }
.hdt-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.hdt-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 1.25rem 0.9rem 1.15rem;
  background: linear-gradient(180deg, #FFFBEF 0%, #FBF3DC 100%);
  border: 1px solid rgba(184, 145, 80, 0.5);
  border-top: 4px solid var(--hdt-gold);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(45, 31, 56, 0.08), inset 0 0 0 1px rgba(255, 251, 239, 0.6);
}
/* Corner flourishes echo the form-frame filigree */
.hdt-pill::before,
.hdt-pill::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(184, 145, 80, 0.55);
  pointer-events: none;
}
.hdt-pill::before { top: 7px; left: 7px; border-right: none; border-bottom: none; }
.hdt-pill::after  { bottom: 7px; right: 7px; border-left: none; border-top: none; }
.hdt-pill-label {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #77592B;
  margin-bottom: 0.45rem;
}
.hdt-pill-value {
  font-family: 'EB Garamond', serif;
  font-weight: 700;
  font-size: 1.42rem;
  line-height: 1.2;
  color: var(--hdt-wine);
}
.hdt-pill-sub {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.22rem;
  color: var(--hdt-wine);
  margin-top: 0.35rem;
}
/* The Strategy pill wears the crown treatment */
.hdt-pill--strategy {
  border-color: var(--hdt-gold);
  box-shadow: 0 4px 18px rgba(139, 110, 58, 0.24), inset 0 0 0 1px rgba(212, 172, 104, 0.35);
}
@media (max-width: 680px) {
  .hdt-strip { grid-template-columns: 1fr; gap: 0.85rem; }
}

/* ═══════════════ PROSE ═══════════════ */
.hdt-prose p {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.16rem, 2.2vw, 1.28rem);
  line-height: 1.72;
  color: var(--hdt-ink);
  margin: 0 0 1.2rem;
}
.hdt-prose p:last-child { margin-bottom: 0; }
.hdt-prose p::first-letter {
  font-family: 'Cinzel Decorative', 'Cinzel', serif;
  font-weight: 700;
  font-size: 2.6em;
  line-height: 0.85;
  float: left;
  color: var(--hdt-wine);
  padding: 0.06em 0.12em 0 0;
}

/* ═══════════════ THE OTHER FOUR TYPES — medallion row ═══════════════ */
.hdt-others { padding-top: 1.6rem; }
.hdt-medallions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  max-width: 860px;
  margin: 0 auto;
}
.hdt-med-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  padding: 1.15rem 0.9rem 1.2rem;
  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;
}
.hdt-med-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(45, 31, 56, 0.14);
  border-color: var(--hdt-gold);
  text-decoration: none;
}
.hdt-med-mark { display: block; width: 76px; height: 76px; margin-bottom: 0.65rem; }
.hdt-med-mark svg { display: block; width: 100%; height: 100%; }
.hdt-med-name {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--hdt-wine);
  margin-bottom: 0.3rem;
  /* One-line names center vertically within a reserved two-line block so
     every population line below starts at the same height. */
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hdt-med-pop {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--hdt-wine);
}
@media (max-width: 520px) {
  .hdt-medallions { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
}

/* ═══════════════ FAQ ═══════════════ */
/* Full accordion component — this page is self-contained (the shared
   .faq-item styles live in stylesheets this page deliberately does not
   load), so the whole component is carried here like the sibling pages. */
.hdt-faq { max-width: 760px; margin: 0 auto; }
.hdt-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;
}
.hdt-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;
}
.hdt-faq .faq-item summary::-webkit-details-marker { display: none; }
.hdt-faq .faq-icon svg { width: 20px; height: 20px; fill: #B89150; transition: transform 0.2s ease; }
.hdt-faq .faq-item[open] .faq-icon svg { transform: rotate(180deg); }
.hdt-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 ═══════════════ */
.hdt-close-cta {
  text-align: center;
  padding: 3.2rem 1.25rem 3.6rem;
  background:
    radial-gradient(620px 300px at 50% 20%, rgba(212,172,104,0.16), rgba(212,172,104,0) 70%),
    linear-gradient(180deg, rgba(240,223,200,0) 0%, rgba(235,214,189,0.6) 100%);
}
.hdt-close-deck {
  font-family: 'EB Garamond', serif;
  font-size: clamp(1.12rem, 2.2vw, 1.26rem);
  line-height: 1.65;
  color: var(--hdt-ink);
  max-width: 62ch;
  margin: 0 auto 1.7rem;
}

@media (max-width: 520px) {
  .hdt-section { padding: 2.3rem 0; }
  .hdt-hero { padding-top: 1.6rem; }
}

/* ═══ Commissioned illuminated type art (gold-ringed portrait, cna-portrait twin) ═══ */
.hdt-art {
  position: relative;
  width: clamp(220px, 54vw, 320px);
  aspect-ratio: 1 / 1;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  padding: 10px;
  background:
    radial-gradient(circle at 50% 30%, #FFF8E0 0%, #F0D89A 55%, #D4AC68 100%);
  box-shadow:
    0 18px 46px rgba(45, 31, 56, 0.28),
    0 0 0 1px rgba(184,145,80,0.55),
    inset 0 0 0 1px rgba(255,251,239,0.6);
}
.hdt-art::before {
  content: '';
  position: absolute; inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,172,104,0.34) 0%, rgba(212,172,104,0) 68%);
  z-index: -1;
}
.hdt-art img {
  display: block;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,251,239,0.85);
}
