/* Ring wrapper: natal overlay survives #ring-one replaceChildren */

.ring-hub-wrap {
  position: relative;
  width: min(72vmin, 22rem);
  max-width: 100%;
}

/* Center natal card: below hub-deck (z-index 5) */
.natal-hub {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-sizing: border-box;
  padding: clamp(0.5rem, 2vmin, 1rem);
}

.ring-hub-wrap:has(#ring-one.numeric-ring--hubDeckOpen) .natal-hub {
  opacity: 0;
  visibility: hidden;
}

.natal-hub--empty {
  visibility: hidden;
}

/* User toggled off: hide overlay while keeping card in DOM */
.natal-hub--snapshot-hidden {
  visibility: hidden;
}

.natal-hub__card {
  pointer-events: auto;
  max-width: min(94%, 13.5rem);
  max-height: min(42vmin, 14rem);
  overflow: auto;
  margin: 0;
  padding: clamp(0.45rem, 1.5vmin, 0.65rem) clamp(0.5rem, 1.8vmin, 0.75rem);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.94);
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgb(15 23 42 / 0.1);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, sans-serif;
  font-size: clamp(0.65rem, 2.05vmin, 0.76rem);
  line-height: 1.38;
  color: #334155;
  text-align: center;
}

.natal-hub__title {
  margin: 0 0 0.35em;
  font-size: 0.92em;
  font-weight: 650;
  color: #0f172a;
}

.natal-hub__line {
  margin: 0.12em 0;
  font-variant-numeric: tabular-nums;
}

.natal-hub__line--bold {
  font-weight: 600;
  color: #0f172a;
}

/* Corner "Set Me" */
.datetime-ct__setme-row {
  margin-top: 0.45rem;
}

.datetime-ct__setme {
  font: inherit;
  font-size: 0.9em;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}

.datetime-ct__setme:hover {
  border-color: #94a3b8;
}

.natal-snapshot-toggle-row {
  flex-shrink: 0;
}

.natal-snapshot-toggle {
  font: inherit;
  font-size: 0.9em;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
}

.natal-snapshot-toggle:hover {
  border-color: #94a3b8;
}

/* Birth profile modal */
.birth-modal {
  max-width: min(520px, 94vw);
  width: min(520px, 94vw);
  margin: auto;
  border: none;
  border-radius: 12px;
  padding: 0;
  background: transparent;
  box-shadow: 0 20px 50px rgb(15 23 42 / 0.25);
}

.birth-modal::backdrop {
  background: rgb(15 23 42 / 0.45);
}

.birth-modal__surface {
  position: relative;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  padding: clamp(1rem, 4vw, 1.35rem);
}

.birth-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.birth-modal__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 650;
  color: #0f172a;
}

.birth-modal__close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  color: #64748b;
}

.birth-modal__close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.birth-modal__form {
  display: grid;
  gap: 0.65rem;
}

.birth-modal__row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* Time zone row: hidden until place search fills IANA zone (birth-profile.js toggles `hidden`). */
.birth-modal__tz-panel[hidden] {
  display: none !important;
}

.birth-modal__row--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

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

.birth-modal__label {
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
}

.birth-modal__hint {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.birth-modal__input,
.birth-modal__select {
  box-sizing: border-box;
  width: 100%;
  padding: 0.4rem 0.5rem;
  font-size: 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-family: inherit;
}

.birth-modal__select {
  max-height: 12rem;
}

.birth-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
  align-items: center;
}

.birth-modal__submit {
  font: inherit;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  color: #fff;
  background: #0f172a;
  border: none;
  border-radius: 6px;
}

.birth-modal__submit:hover {
  background: #1e293b;
}

.birth-modal__secondary {
  font: inherit;
  font-weight: 600;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.birth-modal__secondary:hover {
  background: #e2e8f0;
}

.birth-modal__error {
  margin: 0;
  font-size: 0.82rem;
  color: #b91c1c;
}

.birth-modal__search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-end;
}

.birth-modal__search-row .birth-modal__input {
  flex: 1 1 12rem;
}
