/* ============================================================
 * Utilities Bunker — LED Matrix Power Calculator (v2.1)
 * File: /assets/css/modules/electronics/led-matrix-power.v2.1.css
 * Purpose:
 * - Tool-only layout polish + presets row + work formatting
 * - Mobile-first, 44x44 touch targets, clamp typography
 * - NO changes to ub-toolkit.v2.1.css
 * ============================================================ */

/* ============================== Local tokens (tool-scoped) ============================== */
:root{
  --lmp-radius: 16px;
  --lmp-gap: 14px;
}

/* ============================== Presets row ============================== */
.ub-preset-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.ub-preset-row .ub-chip{
  min-height: 44px;
  padding: 10px 12px;
}

/* ============================== Work box ============================== */
.ub-work{
  font-family: var(--ub-mono);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap:anywhere;
}

/* ============================== Collapsible summary touch target ============================== */
.ub-collapsible summary{
  cursor:pointer;
  font-weight: 950;
  min-height: 44px;
  display:flex;
  align-items:center;
}
.ub-collapsible summary:focus{
  outline:none;
  box-shadow: 0 0 0 4px var(--ub-focus);
  border-radius: 12px;
}

/* ============================== Output emphasis tweaks ============================== */
.ub-out .ub-v{
  letter-spacing: -0.01em;
}

/* ============================== Small screens polish ============================== */
@media (max-width: 520px){
  .ub-preset-row .ub-chip{
    width: 100%;
    justify-content:center;
  }
}
