/**
 * Shared result components of all calculators (1.8.27-uop-rc2).
 * Moved from assets/calculators/zus-skladki.css, which only the ZUS tab loaded, so UoP, koszt pracodawcy,
 * procent składany and leasing rendered label and amount glued together ("Zdrowotna 9%621,29 zł").
 * Loaded on every calculator page before the per-calculator stylesheets.
 */
.zus-hero-card {
  background: #ecfdf5;
  border: 2px solid #059669;
  border-radius: 16px;
  padding: 22px 18px;
  text-align: center;
  margin-bottom: 14px;
}
.zus-hero-card__label {
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #047857;
}
.zus-hero-card__value {
  margin: 6px 0 4px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #0f172a;
  overflow-wrap: anywhere;
}
.zus-hero-card__sub {
  margin: 0;
  font-size: .85rem;
  color: #64748b;
  font-weight: 600;
}
.zus-breakdown {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
}
/* Label / value columns: label wraps, the amount never breaks; on narrow screens the amount
   moves under the label (right-aligned) instead of overflowing or being clipped. */
.zus-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 12px;
  row-gap: 2px;
  padding: 9px 0;
  font-size: .95rem;
  line-height: 1.4;
  border-bottom: 1px solid #e2e8f0;
}
.zus-row:last-child { border-bottom: 0; }
.zus-row > span:first-child {
  flex: 1 1 14ch;
  min-width: 0;
  overflow-wrap: anywhere;
}
.zus-row > span:last-child {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.zus-row--muted { color: #64748b; font-size: .85rem; }
/* Muted rows may hold a long explanation instead of a bare amount (e.g. the ZUS base description):
   let that value wrap instead of forcing overflow (restores zus-skladki.css ≤1.8.27 behaviour). */
.zus-row--muted > span:last-child {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 0;
  max-width: 100%;
}
.zus-row--sub { font-size: .88rem; color: #334155; padding: 6px 0 6px 10px; }
.zus-row--strong { font-weight: 700; }
.zus-row--total {
  font-weight: 800;
  font-size: 1.02rem;
  border-top: 2px solid #cbd5e1;
}
.zus-notes {
  margin: 14px 0 0;
  padding-left: 1.1rem;
  color: #64748b;
  font-size: .85rem;
  line-height: 1.55;
}
.zus-notes li { margin-bottom: 6px; }

/* JDG result cards only (main.css keeps .row/.total labels on one line with an ellipsis): let long
   PL/EN/UK labels wrap on phones instead of being clipped; amounts stay on one line. Scoped to the
   JDG comparison markup (template-parts/calculator-jdg-porownanie.php: .jdg-calc .card .row/.total). */
@media (max-width: 600px) {
  .jdg-calc .card .row > span:first-child,
  .jdg-calc .card .total > span:first-child {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    flex: 1 1 auto;
  }
  .jdg-calc .card .row,
  .jdg-calc .card .total { align-items: baseline; column-gap: 12px; }
}
