/* Use the header's Find my tutor action as the shared button size. */
:root {
    --mmd-action-height: 48px;
    --mmd-action-font-size: 16px;
    --mmd-action-padding-x: 17px;
}

body .btn:not(.btn-link),
body.site-theme .h2-button,
body.site-theme .h2-button.h2-button-small,
body.site-theme .h2-search .h2-button,
body.site-theme .h2-final-cta .h2-button {
    box-sizing: border-box;
    display: inline-flex;
    min-height: var(--mmd-action-height);
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px var(--mmd-action-padding-x);
    font-size: var(--mmd-action-font-size);
    line-height: 1.5;
    text-align: center;
    vertical-align: middle;
}

/* Keep the search action readable without squeezing the field on narrow screens. */
@media (max-width: 575px) {
    body.site-theme .h2-search .h2-button {
        padding-inline: 12px;
    }
}

/* Image zoom controls and text links are tools, not full-size actions. */
body .btn:is([data-zoom-out], [data-zoom-in], [data-student-zoom-out], [data-student-zoom-in]) {
    min-height: 36px;
    padding: 8px 13px;
    font-size: 14px;
}

body .btn[hidden] {
    display: none !important;
}
