/* cogitator/army-editor-units.css v10 */
/* Army Units column styles (.ab-units__*) — renders in position one */

/* DevAgent47 - 2026-09-15
   What: v10 — the four live rules are renamed off the position lie:
         .ab-col-3__body/__empty/__empty-text/__footer -> .ab-units__*. The
         emitter (army-editor-units.js v30) is renamed to match; the subtitle
         above is updated to the new prefix.
   Why:  This file styles the Army Units column, which renders in position ONE;
         "col3" named a position it has not held since the v9.5 rebuild.
   Note: the v5-v9 changelog entries below name the old .ab-col-3__* classes and
         the retired .al-card-* family — dated history, kept as written. */

/* MaintenanceAgent1 - 2026-09-08
   What: v9 — removed 19 dead rules: the empty .ab-col-3__header, the whole
         .al-card-strip / .al-card-menu family (card menu strip + floating
         menu), and the .ab-col-3__points-display / __totals-pts (+ --over) /
         __totals-warn / __save-btn (+ states, __inner) block. 23 rules -> 4
         (__body, __empty, __empty-text, __footer). No emitter references any
         removed class (recursive grep, all .js/.html). The v6/v5 changelog
         entries below still describe the .al-card-* classes — history, kept.
   Why:  Debris from the Editor rebuild and rename; none of it is emitted. */

/* DevAgent39 - 2026-09-08
   What: v8 — the v5 changelog entry below had lost its opening delimiter, so
         its text ran as CSS and a parser swallowed .ab-col-3__header into an
         invalid selector (SPECS §14). The delimiter is restored; the entry's
         lost first line(s) are not reconstructed. No rule changed.
   Why:  Harmless only while .ab-col-3__header stayed empty — a declaration
         added there would silently have done nothing. */

/* DevAgent39 - 2026-09-08
   What: v7 — RENAMED from army-builder-col3.css v6. No rule changed. Linked
         from index.html v10 in the same position.
   Why:  Its live rules (.ab-col-3__body, __empty, __empty-text, __footer)
         style the Army Units column, army-editor-units.js, which renders in
         position one. Class names are unchanged. */

/* DevAgent6 - 2026-05-28
   What: v6 — Four tweaks:
         1. .al-card-strip width 15px → 20px.
         2. .al-card-menu: top:0; bottom:0 so it matches card height exactly.
         3. .al-card-menu__item separator: border-bottom on Duplicate item.
         4. .al-card-menu__item padding-top nudged up 1px.
   Why: Visual polish per Jérôme review. */

/* DevAgent6 - 2026-05-28 — v5 entry. ⚠ Its opening delimiter and first line(s)
   were already missing at v6; DevAgent39 restored the delimiter on 2026-09-08
   and did not reconstruct the lost text. What follows is verbatim.
         .al-card-strip: 15px right-edge strip with ⋮ trigger.
         .al-card-strip__dots: vertical ellipsis, centred in strip.
         .al-card-menu: floating popup anchored to strip, above card.
         .al-card-menu__item: Duplicate / Remove buttons.
         .al-card-menu__item--remove: red text variant.
         Also removed .al-remove-btn (no longer in markup).
   Why: Card menu strip replaces remove button per Jérôme review. */

/* DevAgent6 - 2026-05-28
   What: v4 — al-card rule family removed. Cards use ub-card classes from col1.css.
   Why: Phase 2 fixes. */

/* ── Scrollable body ── */

.ab-units__body {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

/* ── Empty state ── */

.ab-units__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 80px;
  padding: var(--space-6) var(--space-4);
}

.ab-units__empty-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-dim);
  font-style: italic;
  text-align: center;
}

/* ── Pinned footer ── */

.ab-units__footer {
  border-top: 1px solid var(--border);
  padding: var(--space-3) var(--space-4);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  background: var(--surface);
}
