/* Buttons are pills. Filled deep teal on light grounds, filled light over the dark hero, outlined as the quiet second action.
   The arrow is the IconMCP arrow-right drawn through a mask, an icon of its own and never a character glued to the label.
   Press is felt (scale 0.97); hover is gated to devices that really hover, so a tap on a phone leaves nothing stuck. */
:is(.brxe-button, a, button).st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-height: 52px; padding: 0 var(--space-lg); white-space: nowrap;
  border: var(--rule-hair) solid var(--color-deep); border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: var(--text-md); font-weight: var(--weight-strong); line-height: 1.2; letter-spacing: 0; text-decoration: none; text-transform: none;
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
:is(.brxe-button, a, button).st-btn--arrow { padding-right: calc(var(--space-lg) - var(--space-xs)); }
:is(.brxe-button, a, button).st-btn--arrow::after {
  content: ""; flex: 0 0 auto; width: 1.25em; height: 1.25em; background: currentColor;
  -webkit-mask: var(--icon-arrow-right) center / contain no-repeat; mask: var(--icon-arrow-right) center / contain no-repeat;
}
:root:root { --icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='2.75' y1='8' x2='13.25' y2='8'/%3E%3Cpath d='M8.5 3.25 L13.25 8 L8.5 12.75'/%3E%3C/svg%3E"); }

:is(.brxe-button, a, button).st-btn--primary { background: var(--color-deep); color: var(--color-on-deep); }
:is(.brxe-button, a, button).st-btn--ghost { background: transparent; color: var(--color-deep); }

/* Over the dark hero: the filled one is light, the outlined one is light on a transparent ground. */
:is(.brxe-button, a, button).st-btn--light { background: var(--color-on-deep); border-color: var(--color-on-deep); color: var(--color-deep); }
:is(.brxe-button, a, button).st-btn--ghost-light { background: transparent; border-color: color-mix(in oklab, var(--color-on-deep) 60%, transparent); color: var(--color-on-deep); }

@media (hover: hover) and (pointer: fine) {
  :is(.brxe-button, a, button).st-btn--primary:hover { background: var(--color-deep-2); border-color: var(--color-deep-2); }
  :is(.brxe-button, a, button).st-btn--ghost:hover { background: var(--color-deep); color: var(--color-on-deep); }
  :is(.brxe-button, a, button).st-btn--light:hover { background: var(--color-mint); border-color: var(--color-mint); }
  :is(.brxe-button, a, button).st-btn--ghost-light:hover { background: var(--color-on-deep); border-color: var(--color-on-deep); color: var(--color-deep); }
}

:is(.brxe-button, a, button).st-btn:active { transform: scale(0.97); }
:is(.brxe-button, a, button).st-btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
:is(.brxe-button, a, button).st-btn--light:focus-visible,
:is(.brxe-button, a, button).st-btn--ghost-light:focus-visible { outline-color: var(--color-on-deep); }
