/* modules/common/steppedField.css — the skin both of the app's own entry fields wear: the 24-hour
   time field and the ISO date field (steppedField.js builds everything around the `.form-control`,
   timeField.js and dateField.js decide what the value means).

   Two claims this file makes on purpose:
   - The digits are BIG and monospaced. This field is read at arm's length on a gym floor, and a
     proportional font puts "11:10" and "17:30" at different widths, so a value the trainer has
     already checked once moves when it changes.
   - The marks wrap themselves. They sit in a third of the setup form's row on a phone, so the row
     is `auto-fit` rather than four fixed columns: four across where there is room, two by two where
     there is not, and never a mark squeezed past reading. A date mark ("tor 15.") is wider than a
     time one, so the minimum column is set by the longer of the two. */

.stepped-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.stepped-field-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}

/* The input keeps .form-control's colours and border; only its type size and rhythm change here. */
.stepped-field-row .form-control {
  flex: 1;
  min-width: 0;
  height: 56px;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0 4px;
}

/* An ISO date is ten characters where a time is five, and the setup form gives the date field a
   third of a phone's width. Sized down here rather than by shrinking both: the time is the value
   read across a gym, and it keeps the larger type. */
.stepped-field--date .form-control {
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.stepped-field-steps {
  display: flex;
  flex-direction: column;
  width: 44px;
  flex: none;
  gap: 4px;
}

.stepped-field-step {
  flex: 1;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--input-bg);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  font-size: 0.85rem;
  cursor: pointer;
}

.stepped-field-step:active {
  background: var(--primary-light);
  border-color: var(--primary);
}

/* What the field says when it wrote something other than what was typed. Not an error — the value
   is a real one — so the text colour, made heavy enough to be read. */
.stepped-field-note {
  margin: 4px 0 0;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
}

.stepped-field-note[hidden] {
  display: none;
}

.stepped-field-marks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 4px;
  min-width: 0;
}

.stepped-field-mark {
  min-height: 36px;
  padding: 4px 2px;
  background: var(--input-bg);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  border-radius: var(--btn-radius);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
}

.stepped-field-mark:active {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--text-main);
}
