/* ============================================================
 * Utilities Bunker — Annuity Payout Calculator (v2.1)
 * File: /assets/css/modules/calculators/financialcalculators/annuity-payout-calculator.v2.1.css
 * Purpose:
 *  - Tool-only layout + minor UI enhancements for annuity payout
 *  - Mobile-first, responsive, 44x44 touch targets
 * Notes:
 *  - DO NOT modify /assets/css/ub-toolkit.v2.1.css
 * ============================================================ */

/* ============================== Tool-scoped helpers ============================== */
:root{
  --ap-radius: 16px;
  --ap-gap: 14px;
}

/* Header row (title + theme button) */
.ub-headrow{
  display:flex;
  gap: 10px;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
}
.ub-h-title{ margin:0; font-size: var(--ub-fs-5); }
.ub-subtitle{ margin:6px 0 0; }

/* Simple lists */
.ub-ol{ margin:0; padding-left: 18px; }
.ub-ul{ margin:0; padding-left: 18px; }

/* Tool grid: inputs + outputs (stack on smaller screens) */
.ub-toolgrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ap-gap);
  align-items:start;
}
@media (max-width: 980px){
  .ub-toolgrid{ grid-template-columns: 1fr; }
}

/* Tight panels inside tool card */
.ub-toolpanel,
.ub-outpanel{
  margin-bottom: 0;
}

/* Actions row */
.ub-actions-row{
  margin-top: 12px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
}

/* Work box */
.ub-work{
  font-family: var(--ub-mono);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap:anywhere;
}

/* FAQ typography helpers */
.ub-faq-q{
  margin: 12px 0 6px;
  font-size: var(--ub-fs-2);
}
.ub-faq-a{
  margin: 0 0 10px;
  color: var(--ub-text);
}

/* Table wrapper for schedule preview */
.ub-tablewrap{
  overflow:auto;
  border-radius: var(--ap-radius);
  border: 1px solid var(--ub-border);
  background: var(--ub-card-bg);
}

/* Table base */
.ub-table{
  width:100%;
  border-collapse: collapse;
  min-width: 560px; /* allows horizontal scroll on phones */
}
.ub-table th,
.ub-table td{
  padding: 10px 12px;
  border-bottom: 1px solid var(--ub-border);
  text-align:left;
  font-size: var(--ub-fs-1);
}
.ub-table thead th{
  position: sticky;
  top: 0;
  background: var(--ub-surface-2);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 11px;
  z-index: 1;
}
.ub-table tbody tr:hover{
  background: var(--ub-surface-2);
}

/* Make right-rail buttons full width without touching toolkit */
.ub-btn--block{ width: 100%; }

/* Small screens polish */
@media (max-width: 520px){
  .ub-table{ min-width: 520px; }
}