/* ==========================================
   Base
   ========================================== */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--momentum-paper);
    color: var(--momentum-text);

    font-family: var(--momentum-font-sans);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--momentum-navy);
    color: var(--momentum-white);
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--momentum-bronze);
    outline-offset: 4px;
}

/* ==========================================
   Bootstrap container override
   ========================================== */

.container {
    max-width: var(--momentum-container-width);
}

/* ==========================================
   Accessibility
   ========================================== */

.visually-hidden-focusable:focus {
    position: absolute;
    z-index: 1050;
}
/* ==========================================
   Reduced Motion
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* ==========================================
   RTL
   ========================================== */

html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .momentum-link {
    flex-direction: row-reverse;
}

html[dir="rtl"] .momentum-link::after {
    content: "←";
}

html[dir="rtl"] .momentum-label {
    flex-direction: row-reverse;
}