/*
 * Hubka Theme
 *
 * Phase: 11B.6 — Responsive Refinement & Page Composition
 * Purpose: Button micro-interaction and accessibility states that
 * theme.json cannot express — focus-visible outline, disabled state,
 * and a guaranteed comfortable touch target size. theme.json already
 * sets background/text color, hover color, and border-radius for
 * `styles.elements.button`; none of that is duplicated here.
 *
 * This is a previously empty, planned slot in the CSS architecture
 * (present in inc/enqueue.php's file list since Phase 11B.1) — filled
 * now because this phase explicitly reviews button hierarchy and
 * micro-interactions sitewide.
 *
 * Rules:
 * - Reuse theme.json tokens.
 * - Use logical properties.
 * - Keep selectors shallow.
 * - Do not duplicate component styling.
 */

/* Comfortable touch target (WCAG 2.5.5 recommends 44px) — guaranteed
 * explicitly rather than assumed from core's default padding. */
.wp-element-button {
	min-block-size: 2.75rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Focus visibility: consistent with every other interactive element
 * sitewide (nav links, form fields, pagination). */
.wp-element-button:focus-visible {
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 2px;
}

/* Disabled state: theme.json has no pseudo-class support for this. */
.wp-element-button:disabled,
.wp-element-button[aria-disabled="true"] {
	opacity: 0.5;
	cursor: not-allowed;
}
