/* ============================================================
 * Utilities Bunker — Cash Back or Low Interest (v2.1)
 * File: /assets/css/modules/calculators/financialcalculators/cashback-or-low-interest.v2.1.css
 * Purpose:
 * - Tool-only layout + small enhancements
 * - No changes to ub-toolkit.v2.1.css
 * - Mobile-first, 44×44 touch targets, clamp() typography
 * ============================================================ */

/* Tool-scoped tokens */
:root{
  --cbl-radius: 16px;
  --cbl-gap: 14px;
}

/* Slightly tighten the inner form card spacing without breaking toolkit */
.ub-card .ub-card-title{
  letter-spacing: -0.01em;
}

/* Make the primary output feel “instrument-panel” */
#liveOut{
  border: 1px solid var(--ub-border);
  background: linear-gradient(180deg, var(--ub-surface-2), var(--ub-card-bg));
}

/* Winner emphasis */
#outWinner{
  letter-spacing: -0.02em;
}

/* Work box formatting */
.ub-work{
  font-family: var(--ub-mono);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* Ensure right-rail buttons are full width (safe helper) */
.ub-btn--block{ width:100%; }

/* Make select controls feel consistent (tool-only polish) */
.ub-field select{
  cursor: pointer;
}

/* A tiny “calm” look for hints */
.hint{
  margin-top: 6px;
  font-size: 12px;
  color: var(--ub-muted);
}

/* Keep errors stable */
.ub-inline-error{
  min-height: 16px;
}

/* Improve the collapsible summary focus (tool-only) */
.ub-collapsible summary{
  cursor: pointer;
  min-height: var(--ub-hit);
  display:flex;
  align-items:center;
}
.ub-collapsible summary:focus{
  outline: none;
  box-shadow: 0 0 0 4px var(--ub-focus);
  border-radius: 12px;
}

/* Slightly bigger numbers on wide screens (without affecting toolkit globally) */
@media (min-width: 1025px){
  .ub-v{
    font-size: clamp(18px, 1.05rem + 0.55vw, 24px);
  }
}

/* Small screens: keep output tiles readable */
@media (max-width: 520px){
  .ub-out-grid{
    grid-template-columns: 1fr;
  }
}