/* ==================================================
   Base
================================================== */

html {
    scroll-behavior: smooth;
}

body {
    --qm-mobile-section-title-size: clamp(26px, 7.2vw, 28px);
    --qm-mobile-section-title-leading: 1.4;
    color: var(--qm-color-navy);
    font-family: var(--qm-font-base);
}

@media (max-width: 640px) {
    /* Short terms stay intact; the surrounding heading can wrap freely. */
    .qm-heading-phrase { display: inline-block; }
}

img {
    max-width: 100%;
    height: auto;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
@media (max-width: 1024px) {
    :where(main, .qm-page) [id] { scroll-margin-top: 84px; }

    #ast-scroll-top {
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        width: 44px;
        height: 44px;
        line-height: 44px;
    }
}
