.natal-summary-card,
.natal-form-card {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.natal-summary-card h2,
.natal-form-card h2 {
  margin: 14px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.12;
}

.natal-summary-card p,
.form-intro p {
  margin: 14px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.summary-grid,
.form-grid,
.birth-meta {
  display: grid;
  gap: 16px;
}

.summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.summary-item,
.resolved-place {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.summary-label,
.birth-meta span,
.field span {
  display: block;
  margin-bottom: 10px;
  color: var(--ink-mute);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-item strong {
  font-size: 24px;
  font-weight: 500;
}

.birth-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.birth-meta strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-wide {
  margin-top: 16px;
}

.field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.autocomplete-field {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 251, 243, 0.98);
  box-shadow: var(--shadow-deep);
}

.autocomplete-option {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  text-align: left;
}

.autocomplete-option strong,
.autocomplete-option span {
  display: block;
}

.autocomplete-option span {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}

.resolved-place {
  margin-top: 16px;
}

.resolved-place strong {
  display: block;
  font-size: 18px;
}

.resolved-place small {
  display: block;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

[hidden] {
  display: none !important;
}

/* ===== INTERPRETATION CARD ===== */

.natal-interpretation-card {
  margin-top: 28px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.interpretation-header h2 {
  margin: 8px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(28px, 3.5vw, 38px);
  font-weight: 400;
  line-height: 1.15;
}

.interpretation-header .lead {
  margin-top: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.interpretation-cta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.interpretation-cta .hint {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.interpretation-progress {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--ink-soft);
}

.progress-spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.12);
  border-top-color: var(--ink, #222);
  animation: nat-spin 0.9s linear infinite;
  flex-shrink: 0;
}

@keyframes nat-spin {
  to { transform: rotate(360deg); }
}

.interpretation-error,
.interpretation-stale {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
}

.interpretation-error p,
.interpretation-stale p {
  margin: 0 0 12px;
  color: var(--ink-soft);
}

.interpretation-chapters {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chapter {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
  overflow: hidden;
}

.chapter[open] {
  background: rgba(255, 255, 255, 0.86);
}

.chapter-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  user-select: none;
}

.chapter-summary::-webkit-details-marker {
  display: none;
}

.chapter-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.chapter-title {
  flex: 1;
  font-family: "Fraunces", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

.chapter-chevron {
  color: var(--ink-soft);
  font-size: 16px;
  transition: transform 0.2s ease;
}

.chapter[open] .chapter-chevron {
  transform: rotate(180deg);
}

.chapter-body {
  padding: 0 18px 18px 60px;
  color: var(--ink, #222);
  line-height: 1.75;
}

.chapter-body p {
  margin: 0 0 14px;
}

.chapter-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .natal-summary-card,
  .natal-form-card {
    padding: 24px 18px;
  }

  .summary-grid,
  .form-grid,
  .birth-meta,
  .actions {
    grid-template-columns: 1fr;
  }

  .actions {
    display: flex;
    flex-direction: column;
  }

  .natal-interpretation-card {
    padding: 22px 18px;
  }

  .chapter-summary {
    padding: 14px;
    gap: 10px;
  }

  .chapter-body {
    padding: 0 14px 16px 14px;
  }

  .chapter-title {
    font-size: 18px;
  }
}
