/* Buttons (FE-D3, FE-D4): 44 px high, one primary per view, danger for destructive actions. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control-height); padding: 0 var(--space-5);
  font-size: var(--text-sm); font-weight: var(--weight-semibold); line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-control);
  background: var(--color-surface); color: var(--color-text);
  transition: background-color var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
}
.button:hover { background: var(--color-surface-muted); color: var(--color-text); }
.button svg { width: 1rem; height: 1rem; flex: none; }
.button--primary { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-primary-contrast); }
.button--primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: var(--color-primary-contrast); }
.button--ghost { background: transparent; border-color: transparent; color: var(--color-text-muted); }
.button--ghost:hover { background: var(--color-surface-muted); color: var(--color-text); }
.button--danger { background: var(--color-danger); border-color: var(--color-danger); color: var(--color-primary-contrast); }
.button--danger:hover { background: var(--color-danger-hover); border-color: var(--color-danger-hover); color: var(--color-primary-contrast); }
.button--compact { min-height: var(--control-height-compact); padding: 0 var(--space-4); }
.button--icon { padding: 0; width: var(--control-height); }
.button--icon.button--compact { width: var(--control-height-compact); }
.button--block { width: 100%; }
.button:disabled, .button[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
/* A long label on a phone: the button stays inside its column and wraps instead of pushing the page wide. */
.button { max-width: 100%; white-space: normal; line-height: 1.25; padding-block: var(--space-2); text-align: center; }
@media (min-width: 576px) {
  .button { white-space: nowrap; line-height: 1; padding-block: 0; }
}

/* "New …" (U-0132, components/_disclosure.html): the one primary action of an administration
   list is the summary of a <details> that holds the form. It looks, focuses and is pressed like
   a button (Enter or Space opens it — a summary is a control of its own); the marker is gone. */
.disclosure > summary { list-style: none; }
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.disclosure[open] > summary { margin-block-end: var(--space-4); }
/* Open, the form's own button is the primary action of the view (FE-D4): the summary steps back. */
.disclosure[open] > summary.button--primary { background: var(--color-surface); border-color: var(--color-border-strong); color: var(--color-text); }
.disclosure__panel { max-width: 48rem; }
