/* Date input — day / month / year text fields in a row. Each field is a
   standard .govbb-input and each label a standard .govbb-label (so borders,
   states and typography can never drift from the text input); this file owns
   only the row layout and the field widths. Markup: .govbb-date-input holds
   one .govbb-date-input__part per field — a .govbb-label above an
   <input class="govbb-input govbb-date-input__field">; the year field is
   widened with .govbb-date-input__field--year. */

.govbb-date-input {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--govbb-space-s);
}

.govbb-date-input__part {
  display: flex;
  flex-direction: column;
  gap: var(--govbb-space-xs);
}

/* Descendant selector outranks .govbb-input's width: 100% regardless of
   import order. */
.govbb-date-input .govbb-date-input__field {
  width: 5rem; /* 80px — day / month */
  font-variant-numeric: tabular-nums;
}

.govbb-date-input .govbb-date-input__field--year {
  width: 10rem; /* 160px */
}
