/* Import hmd-tokens.css first. No global button/a selectors or font downloads. */
.hmd-btn:not(.hmd-btn--legacy-layout) {
  box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; min-width: 44px; padding: 12px 24px;
  font: 700 14px/1.5 var(--hmd-button-font); text-align: center;
  border: 1px solid transparent; border-radius: var(--hmd-button-radius);
  text-decoration: none; cursor: pointer; max-width: 100%;
}
.hmd-btn.hmd-btn--primary { background: var(--hmd-primary-background); color: var(--hmd-primary-text); border-color: var(--hmd-brand-orange); }
.hmd-btn.hmd-btn--secondary { background: var(--hmd-secondary-background); color: var(--hmd-secondary-text); border-color: var(--hmd-secondary-border); }
.hmd-btn > :where(span,svg) { color: inherit; }
.hmd-btn:not(.hmd-btn--legacy-layout):hover:not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]) { filter: brightness(.96); text-decoration: none; }
.hmd-btn:not(.hmd-btn--legacy-layout):focus-visible { outline: 3px solid var(--hmd-button-focus); outline-offset: 4px; }
.hmd-btn:not(.hmd-btn--legacy-layout):is(:disabled,[aria-disabled="true"],[aria-busy="true"]) { opacity: .5; cursor: default; }
.hmd-btn.hmd-btn--compact:not(.hmd-btn--legacy-layout) { min-height: 44px; padding: 10px 20px; }
.hmd-btn.hmd-btn--block:not(.hmd-btn--legacy-layout) { width: 100%; }
/* Footer inverse is an existing secondary context, not a new action hierarchy. */
.hmd-btn.hmd-btn--secondary.hmd-btn--inverse { background: transparent; color: var(--hmd-color-ffffff,#fff); border-color: var(--hmd-color-aaaaaa,#aaa); }
