/* Button primitives, reused by every screen that follows this one. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--btn-ink);
}

.btn--primary:hover {
  filter: brightness(0.92);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink-2);
  font-weight: 400;
}

.btn--ghost:hover {
  border-color: var(--line-2);
  color: var(--ink);
}

.btn--block {
  display: flex;
  width: 100%;
}

/*
 * The blocked control (CLAUDE.md §7, "The blocked control"): aria-disabled,
 * never the disabled attribute, so the control stays in the tab order and can
 * explain itself via aria-describedby. aria-disabled does not block
 * activation by itself — the click/submit handler and the server must also
 * refuse it. This rule is presentation only; which control is disabled and
 * why is a per-screen decision.
 */
.btn[aria-disabled="true"] {
  background: var(--surface-2);
  color: var(--ink-3);
  border-color: var(--line);
  cursor: not-allowed;
}
