/* Mono uppercase label stacked over the control. The shell every field shares
   — Input, Select and Textarea all render it. */

.input {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
}

.input__label {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: var(--tracking-label);
  color: var(--text-secondary);
}

.input__control {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-primary);
  padding: 11px 14px;
  border: var(--border-width) solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-card);
  box-shadow: var(--shadow-xs);
  width: 100%;
  transition: var(--transition-control);
}

textarea.input__control {
  line-height: var(--leading-body);
  resize: vertical;
}

/* Focus is the only place mint touches a control. */
.input__control:focus {
  outline: none;
  border-color: var(--mint-500);
  box-shadow: var(--ring-focus);
}

.input__control:disabled {
  opacity: var(--opacity-disabled);
  background: var(--surface-sunk);
  cursor: not-allowed;
}

.input__hint {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}
