/* YeeStudio shared compatibility, accessibility and resilience layer. */
:root {
    --yee-focus-ring: #6750a4;
    --yee-focus-offset: 3px;
    --yee-touch-target: 44px;
    --yee-font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", Roboto, Arial, sans-serif;
    --yee-font-display: ui-rounded, "SF Pro Rounded", "Segoe UI", "Apple SD Gothic Neo", system-ui, sans-serif;
    --yee-safe-area-top: env(safe-area-inset-top, 0px);
    --yee-safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --yee-safe-area-left: env(safe-area-inset-left, 0px);
    --yee-safe-area-right: env(safe-area-inset-right, 0px);
}

html {
    min-width: 320px;
    scroll-padding-top: clamp(72px, 10vw, 104px);
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
}

body.yee-menu-open,
body.yee-dialog-open {
    overflow: hidden;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

img,
video {
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
[role="button"],
a {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

p,
li,
dd {
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

[id] {
    scroll-margin-top: clamp(72px, 10vw, 104px);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--yee-focus-ring);
    outline-offset: var(--yee-focus-offset);
}

.yee-skip-link {
    position: fixed;
    top: max(8px, var(--yee-safe-area-top));
    left: max(8px, var(--yee-safe-area-left));
    z-index: 2147483647;
    max-width: calc(100vw - 16px);
    padding: 10px 16px;
    border-radius: 999px;
    background: #17141f;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: 0 8px 24px rgb(0 0 0 / 24%);
    transform: translateY(calc(-100% - 24px));
    transition: transform 160ms ease;
}

.yee-skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

.yee-loading-dismissed {
    pointer-events: none !important;
}

.yee-image-fallback {
    display: block;
    object-fit: contain !important;
    background: linear-gradient(145deg, #f1edf8, #fff);
}

.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands,
.bi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    line-height: 1;
}

.yee-icon-svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: currentColor;
    overflow: visible;
}

.yee-reveal-enabled .wow {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition-property: opacity, transform;
    transition-duration: 620ms;
    transition-timing-function: cubic-bezier(.2, .8, .2, 1);
    will-change: opacity, transform;
}

.yee-reveal-enabled .wow.yee-reveal-delay-1 { transition-delay: 100ms; }
.yee-reveal-enabled .wow.yee-reveal-delay-2 { transition-delay: 200ms; }
.yee-reveal-enabled .wow.yee-reveal-delay-3 { transition-delay: 300ms; }
.yee-reveal-enabled .wow.yee-reveal-delay-4 { transition-delay: 400ms; }
.yee-reveal-enabled .wow.yee-reveal-delay-5 { transition-delay: 500ms; }
.yee-reveal-enabled .wow.yee-reveal-delay-6 { transition-delay: 600ms; }
.yee-reveal-enabled .wow.yee-reveal-delay-7 { transition-delay: 700ms; }
.yee-reveal-enabled .wow.yee-reveal-delay-8 { transition-delay: 800ms; }

.yee-reveal-enabled .wow.fadeInLeft {
    transform: translate3d(-28px, 0, 0);
}

.yee-reveal-enabled .wow.fadeInRight {
    transform: translate3d(28px, 0, 0);
}

.yee-reveal-enabled .wow.fadeIn {
    transform: none;
}

.yee-reveal-enabled .wow.is-visible {
    visibility: visible;
    opacity: 1;
    transform: none;
    will-change: auto;
}

@media (any-pointer: coarse) {
    :where(a, button, input[type="button"], input[type="submit"], summary) {
        min-height: var(--yee-touch-target);
    }

    :where(button, [role="button"], a) {
        -webkit-user-select: none;
        user-select: none;
    }
}

@media (max-width: 991.98px) {
    body.yee-menu-open {
        overscroll-behavior: contain;
    }
}

@media (max-height: 520px) and (orientation: landscape) {
    html {
        scroll-padding-top: 64px;
    }

    [id] {
        scroll-margin-top: 64px;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .yee-reveal-enabled .wow {
        opacity: 1;
        transform: none;
    }
}

@media (forced-colors: active) {
    :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
        outline: 3px solid Highlight;
    }

    .yee-image-fallback {
        border: 1px solid CanvasText;
    }
}

@media print {
    .yee-skip-link,
    [data-back-to-top],
    .mobile-tabbar,
    .bottom-nav,
    .navbar-toggler,
    [data-menu-button] {
        display: none !important;
    }
}
