/* Shared birth-form inputs (app/api/birth_inputs.py, birth-inputs.js):
   the 12-hour time box with its AM/PM toggle inside the same field, and the
   "city not in the list?" coordinates. Built on the sw field (forms.css). */
.bi-time__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.bi-time__row .bi-time__input { flex: 1 1 auto; width: auto; min-width: 0; }
.bi-time__input:disabled { opacity: .5; }
.bi-meridiem {
  display: flex; flex: none; padding: 3px; border-radius: 10px; background: var(--sw-bg, #0b0b1a);
}
.bi-meridiem__option {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; min-height: 32px; padding: 4px 12px; border-radius: 8px;
  color: var(--sw-ink-muted, #b4aecb); font-size: 13px; font-weight: 600; line-height: 1.1;
  white-space: nowrap; cursor: pointer; user-select: none;
}
.bi-meridiem__option input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit;
}
.bi-meridiem__option:has(:checked) {
  background: var(--sw-gold, #f6b73c); color: var(--sw-on-gold, #1a1206); font-weight: 700;
}
.bi-meridiem__option:has(:focus-visible) { outline: 2px solid var(--sw-gold-light, #ffd98a); outline-offset: 2px; }
.bi-meridiem__option:has(:disabled) { opacity: .5; cursor: not-allowed; }
.bi-time .bi-time__unknown { min-height: 32px; margin-top: 2px; font-size: 13px; }
.bi-time .bi-time__unknown input { width: 18px; height: 18px; }
.bi-coords { margin-top: -4px; }
.bi-coords__toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--sw-gold-light, #ffd98a); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none;
}
.bi-coords__toggle::-webkit-details-marker { display: none; }
.bi-coords__toggle::after {
  width: 6px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0;
  transform: rotate(45deg); transition: transform .15s; content: '';
}
.bi-coords[open] > .bi-coords__toggle::after { margin-top: 3px; transform: rotate(-135deg); }
.bi-coords__toggle:focus-visible { outline: 2px solid var(--sw-gold-light, #ffd98a); outline-offset: 2px; border-radius: 4px; }
.bi-coords__body { display: grid; gap: 8px; }
.bi-coords__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bi-coords .sw-field__hint { margin: 0; }
.bi-coords input[type='number'] { appearance: textfield; -moz-appearance: textfield; }
.bi-coords input[type='number']::-webkit-inner-spin-button,
.bi-coords input[type='number']::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
@media (max-width: 560px), (pointer: coarse) {
  .bi-meridiem__option { min-width: 44px; min-height: 44px; padding: 0 14px; }
  .bi-time .bi-time__unknown { min-height: 44px; }
}
