/* Font-size row: title + stepper pill, same cell rhythm as the Language and
 * Enter-behavior rows (gap 8, pad 16/0, hairline separator; the section
 * column strips the separator on its last child). */

.row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--dsw-alias-border-l2);
}

.rowText {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 48px;
}

.title {
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  color: var(--dsw-alias-label-primary);
}

.desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
  color: var(--dsw-alias-label-tertiary);
}

/* Stepper pill + unit label. The pill reuses the selector-pill geometry
   (h36 r18, module fill) holding the px value and an always-visible arrow
   column; the unit sits outside the pill. */
.control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.stepper {
  position: relative; /* the arrow column anchors to the pill's right edge */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 36px;
  border-radius: 18px;
  background: var(--dsw-alias-bg-module-platform);
}

.value {
  min-width: 18px;
  text-align: center;
  font-size: 14px;
  line-height: 22px;
  font-variant-numeric: tabular-nums;
  color: var(--dsw-alias-label-primary);
}

.unit {
  font-size: 14px;
  line-height: 22px;
  color: var(--dsw-alias-label-secondary);
}

/* Arrow column: anchored right so the value stays pill-centered whether or
   not the arrows are showing; revealed on hover/focus-within. Hidden with
   opacity, not visibility: the buttons stay in tab order and in the
   accessibility tree, so keyboard focus itself triggers the reveal. */
.arrows {
  position: absolute;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
}

.stepper:hover .arrows,
.stepper:focus-within .arrows {
  opacity: 1;
}

/* Arrow buttons: small chips carrying a translucent wash of the layer-1
   surface (white in light, the elevated layer in dark) over the module fill;
   hover raises the full layer-1 chip. */
.arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 3px;
  background: color-mix(in srgb, var(--dsw-alias-bg-layer-1) 75%, transparent);
  color: var(--dsw-alias-label-primary);
  cursor: pointer;
}

.arrow:hover:not(:disabled) {
  background: var(--dsw-alias-bg-layer-1);
}

.arrow:disabled {
  color: var(--dsw-alias-label-caption);
  cursor: default;
}
