/* ── Scrum Boards WIP limits ("wip" stream, 2026-08-09) ──────────────────────
   Styles for WipBadge.razor — the per-section "3/5" chip. Colours come from
   oc-theme.css tokens ONLY (check-oc-tokens.ps1 fails the build otherwise); the
   -bg/-text pairs flip for dark mode in the theme file, so no [data-oc-theme]
   overrides are needed here.

   States:
     (bare)      no limit — quiet count, matching .ocsb-col-count / .ocsb-zone-count
     .has-limit  "n/limit", room left
     .is-full    n == limit — amber: the next entrant will be refused
     .is-over    n > limit — red: an admin lowered the limit below the live count */

.ocsb-wip {
    font-size: var(--oc-fs-xs);
    color: var(--oc-text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ocsb-wip.has-limit,
.ocsb-wip.is-full,
.ocsb-wip.is-over {
    padding: .05rem .4rem;
    border-radius: 999px;
    font-weight: 600;
}

.ocsb-wip.has-limit {
    background: var(--oc-gray-100);
    color: var(--oc-gray-600);
}

.ocsb-wip.is-full {
    background: var(--oc-amber-bg);
    color: var(--oc-amber-700);
}

.ocsb-wip.is-over {
    background: var(--oc-danger-bg);
    color: var(--oc-danger-text);
}

/* The Wall zone label is HANDWRITTEN chrome drawn at 44 logical px and scaled by
   the wall's zoom transform, so the bare count's look belongs to the board file:
   .ocsb-zone-count / .ocsb-zone-label .ocsb-wip in oc-scrum-board.css gives it
   Caveat at the label's own size, which is what the restored Feature Board look
   requires. Only the LIMIT states restyle here, and they stay proportional to the
   label (em, not a page-sized rem) so they scale with it instead of shrinking to
   an unreadable dot when the board is zoomed out. */
.ocsb-zone-label .ocsb-wip.has-limit,
.ocsb-zone-label .ocsb-wip.is-full,
.ocsb-zone-label .ocsb-wip.is-over {
    font-family: 'Kalam', 'Caveat', cursive;
    font-size: .62em;
    padding: .08em .4em;
    opacity: 1;
}
