/* ── Chiron Calculator – The Wounded Healer ────────────────────────────── */

.chr-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  max-width: 880px;
  margin: 2rem auto;
  background: #fafff8;
  border: 1.5px solid #6ee7b7;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(5,150,105,0.15);
  color: #064e3b;
  box-sizing: border-box;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

.chr__header {
  background: linear-gradient(135deg, #1a0728 0%, #0d3b28 50%, #0a1628 100%);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  position: relative;
  overflow: hidden;
}

.chr__header::before {
  content: '✦  ⚷  ✦  ⚷  ✦';
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  font-size: 0.8rem;
  color: rgba(110,231,183,0.25);
  letter-spacing: 0.5em;
}

.chr__header::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(5,150,105,0.2) 0%, transparent 65%);
}

.chr__logo {
  font-size: 2.8rem;
  line-height: 1;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.chr__title {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 0.2rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.chr__subtitle-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #6ee7b7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(110,231,183,0.12);
  border: 1px solid rgba(110,231,183,0.3);
  border-radius: 4px;
  padding: 0.15rem 0.55rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.chr__subtitle {
  font-size: 0.9rem;
  color: #a7f3d0;
  margin: 0;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* ── Body ────────────────────────────────────────────────────────────────── */

.chr__body { padding: clamp(1.25rem, 4vw, 2rem); }

/* ── Error ───────────────────────────────────────────────────────────────── */

#chr-error {
  display: none;
  padding: 0.85rem 1rem;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: 10px;
  color: #dc2626;
  font-size: 0.93rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

/* ── Form ────────────────────────────────────────────────────────────────── */

.chr__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 580px) { .chr__form-grid { grid-template-columns: 1fr; } }

.chr__field { display: flex; flex-direction: column; gap: 0.35rem; }
.chr__field--full { grid-column: 1 / -1; }

.chr__field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chr__input, .chr__select {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #6ee7b7;
  border-radius: 9px;
  font-size: 0.97rem;
  color: #064e3b;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chr__input:focus, .chr__select:focus {
  outline: none;
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5,150,105,0.15);
}

.chr__field-hint { font-size: 0.75rem; color: #059669; opacity: 0.8; }

.chr__loc-hint {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: #065f46;
  padding: 0.65rem 0.9rem;
  background: #d1fae5;
  border-radius: 8px;
  border-left: 3px solid #059669;
  line-height: 1.5;
}

/* ── Button ──────────────────────────────────────────────────────────────── */

.chr__btn-calc {
  width: 100%;
  padding: 0.9rem;
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: filter 0.15s, transform 0.1s;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.chr__btn-calc:hover  { filter: brightness(1.1); }
.chr__btn-calc:active { transform: scale(0.99); }

/* ── Results ─────────────────────────────────────────────────────────────── */

.chr__results { display: none; }

.chr__section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #065f46;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 1.5rem 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Hero result ─────────────────────────────────────────────────────────── */

.chr__hero {
  background: linear-gradient(135deg, #1a0728 0%, #0d3b28 50%, #0a1628 100%);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

.chr__hero::before {
  content: '⚷';
  position: absolute;
  font-size: 9rem;
  opacity: 0.05;
  top: -1rem;
  right: -1rem;
  line-height: 1;
}

.chr__hero-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6ee7b7;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.5rem;
}

.chr__hero-chiron {
  font-size: clamp(1.2rem, 4vw, 1.7rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

.chr__hero-glyph {
  font-size: clamp(2.5rem, 8vw, 4rem);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.chr__hero-sign-name {
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.chr__hero-meta {
  font-size: 0.9rem;
  color: #a7f3d0;
  margin-bottom: 0.6rem;
  line-height: 1.6;
}

.chr__retro-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  background: rgba(251,191,36,0.2);
  border: 1px solid rgba(251,191,36,0.5);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fbbf24;
  margin-top: 0.4rem;
}

/* ── Wheel + wound/gift layout ───────────────────────────────────────────── */

.chr__layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  align-items: start;
}

@media (max-width: 620px) { .chr__layout { grid-template-columns: 1fr; } }

.chr__wheel-wrap {
  background: #0f0e2a;
  border: 1.5px solid #059669;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

#chr-svg { width: 100%; height: auto; display: block; }

/* ── Wound / Gift cards ──────────────────────────────────────────────────── */

.chr__wound-gift {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.chr__wound-card,
.chr__gift-card,
.chr__path-card {
  border-radius: 12px;
  padding: 1.1rem 1.15rem;
}

.chr__wound-card {
  background: #fff7ed;
  border: 1.5px solid #fdba74;
}

.chr__gift-card {
  background: #f0fff4;
  border: 1.5px solid #6ee7b7;
}

.chr__path-card {
  background: #f5f3ff;
  border: 1.5px solid #c4b5fd;
}

.chr__card-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.chr__wound-card .chr__card-title { color: #c2410c; }
.chr__gift-card  .chr__card-title { color: #059669; }
.chr__path-card  .chr__card-title { color: #7c3aed; }

.chr__card-text {
  font-size: 0.91rem;
  line-height: 1.7;
}

.chr__wound-card .chr__card-text { color: #7c2d12; }
.chr__gift-card  .chr__card-text { color: #064e3b; }
.chr__path-card  .chr__card-text { color: #4c1d95; }

/* ── Keywords ────────────────────────────────────────────────────────────── */

.chr__keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.chr__keyword {
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1.5px solid;
}

/* ── House card ──────────────────────────────────────────────────────────── */

.chr__house-card {
  background: #eff6ff;
  border: 1.5px solid #93c5fd;
  border-radius: 12px;
  padding: 1.2rem 1.25rem;
  margin-bottom: 1.25rem;
}

.chr__house-number {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1d4ed8;
  margin-bottom: 0.4rem;
}

.chr__house-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: #1e40af;
  margin-bottom: 0.6rem;
}

.chr__house-text { font-size: 0.9rem; color: #1e3a8a; line-height: 1.7; }

/* ── Chiron Return ───────────────────────────────────────────────────────── */

.chr__return-card {
  background: linear-gradient(135deg, #1a0728 0%, #0d3b28 100%);
  border-radius: 12px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 500px) { .chr__return-card { grid-template-columns: 1fr; } }

.chr__return-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6ee7b7;
  margin-bottom: 0.35rem;
}

.chr__return-year {
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.chr__return-age {
  font-size: 0.88rem;
  color: #a7f3d0;
}

.chr__return-text {
  font-size: 0.88rem;
  color: #a7f3d0;
  line-height: 1.65;
}

/* ── Stats row ───────────────────────────────────────────────────────────── */

.chr__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 480px) { .chr__stats { grid-template-columns: 1fr 1fr; } }

.chr__stat {
  background: #d1fae5;
  border: 1.5px solid #6ee7b7;
  border-radius: 12px;
  padding: 1rem 0.85rem;
  text-align: center;
}

.chr__stat-icon { font-size: 1.5rem; margin-bottom: 0.3rem; }

.chr__stat-value {
  font-size: 1.1rem;
  font-weight: 900;
  color: #065f46;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.chr__stat-label {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 700;
}

/* ── Info box ────────────────────────────────────────────────────────────── */

.chr__info {
  margin-top: 0.5rem;
  padding: 1.1rem 1.2rem;
  background: #d1fae5;
  border-radius: 10px;
  border-left: 4px solid #059669;
  font-size: 0.91rem;
  color: #064e3b;
  line-height: 1.75;
}

.chr__info strong { color: #022c22; }

/* ── No house hint ───────────────────────────────────────────────────────── */

.chr__house-hint {
  padding: 1rem 1.1rem;
  background: #ecfdf5;
  border: 1.5px dashed #6ee7b7;
  border-radius: 12px;
  font-size: 0.88rem;
  color: #047857;
  text-align: center;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}
