/* ============================================================
   COMPONENT · CONFIRM  (c-confirm)  — chunk 10 (the Account hub)
   The in-app, no-JS-safe destructive confirmation that replaces the
   browser confirm() dialog. A native <details> two-step disclosure:
   the <summary> is a calm trigger; opening it reveals a
   c-callout--caution carrying the real stakes plus the actual form
   submit. Because it is native <details> + a real <form>, it still
   gates the action with JS off — removing data:{confirm:} never loses
   the safety. The most consequential actions get the system's own
   calm, branded confirmation, never an unstyled OS dialog.
   Semantic tokens only, both themes, no hardcoded rgba.
   ============================================================ */

.c-confirm { display: block; }

/* The trigger reads as a quiet, engraved control (chrome). Fire-red and
   severity live on the SUBMIT inside the panel, not on the trigger. */
.c-confirm__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;              /* ≥44px touch target (C5) */
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-plaque);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-surface-raised);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xs);
  box-shadow: var(--seam-embossed);
  cursor: pointer;
  list-style: none;                 /* drop the default disclosure marker */
}
.c-confirm__trigger::-webkit-details-marker { display: none; }
.c-confirm__trigger::marker { content: ""; }

.c-confirm__trigger:hover,
.c-confirm[open] .c-confirm__trigger {
  color: var(--color-text);
  border-color: var(--color-accent);
}

/* The opened panel — a caution callout carrying the stakes + the real submit.
   The submit is a consequential control → ≥44px touch target (C5). */
.c-confirm__panel { margin-top: var(--space-3); }
.c-confirm__panel .c-button { min-height: 2.75rem; }
