/* DX10B-R3: homepage-only experience refinements */

.dx-public-toolbar {
    display: none !important;
}

.dx-public {
    padding-top: 16px !important;
}

.dx-settings-toggle {
    width: 54px !important;
    height: 54px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center;
    background: #08765e !important;
    color: #fff !important;
    border: 2px solid #ffffffb0 !important;
    box-shadow: 0 7px 25px #003c3530 !important;
    right: 18px !important;
    bottom: var(--dx-widget-bottom, 24px) !important;
}

.dx-settings-toggle svg {
    width: 26px;
    height: 26px;
    pointer-events: none;
}

.dx-settings-panel {
    right: 16px !important;
    bottom: calc(var(--dx-widget-bottom, 24px) + 66px)
        !important;
    max-height: min(480px, 55vh);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.dx-public-art {
    isolation: isolate;
    touch-action: pan-y;
}

.dx-public-art picture {
    z-index: 0;
}

.dx-public-art::after {
    z-index: 1;
}

.dx-public-greeting {
    z-index: 2 !important;
    padding-bottom: 72px !important;
    pointer-events: none;
}

.dx-r3-carousel-controls {
    position: absolute;
    z-index: 4;
    left: 12px;
    right: 12px;
    bottom: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.dx-r3-carousel-controls button {
    border: 1px solid #ffffff70;
    background: #00372eaa;
    color: white;
    cursor: pointer;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    font-size: 20px;
    padding: 0;
}

.dx-r3-carousel-controls button:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
}

.dx-r3-dots {
    display: flex;
    align-items: center;
    gap: 3px;
}

.dx-r3-dots button {
    width: 16px;
    height: 28px;
    border: 0;
    background: transparent;
}

.dx-r3-dots button::after {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff70;
}

.dx-r3-dots button[aria-current="true"]::after {
    background: white;
    width: 9px;
    height: 9px;
}

.dx-r3-image-enter {
    animation: dx-r3-image-enter .65s ease both;
}

@keyframes dx-r3-image-enter {
    from { opacity: .4; }
    to { opacity: 1; }
}

@media(max-width: 1023px) {
    .dx-settings-toggle {
        right: 12px !important;
        bottom: var(
            --dx-widget-bottom,
            calc(90px + env(safe-area-inset-bottom, 0px))
        ) !important;
        width: 50px !important;
        height: 50px !important;
    }

    .dx-settings-panel {
        right: 12px !important;
        bottom: calc(
            var(--dx-widget-bottom, 90px) + 62px
        ) !important;
        width: min(320px, calc(100vw - 24px)) !important;
    }

    .dx-public {
        padding-top: 12px !important;
    }

    .dx-public-art img {
        object-position: 65% center;
    }
}

@media(max-width: 760px) {
    .dx-public-art {
        min-height: 320px !important;
    }

    .dx-public-greeting {
        padding: 22px 22px 66px !important;
    }

    .dx-public-greeting h2 {
        font-size: clamp(28px, 8vw, 42px) !important;
    }

    .dx-r3-carousel-controls {
        gap: 5px;
    }
}

@media(prefers-reduced-motion: reduce) {
    .dx-r3-image-enter {
        animation: none !important;
    }
}

/* ==========================================
   DX10B-R9 HEADER CLEARANCE
   Reuse existing dynamic header measurement.
   ========================================== */

body:not(.is-mobile) #dx-welcome {
    padding-top: calc(
        var(--fixed-top-height, 120px) + 16px
    ) !important;
}

body.is-mobile #dx-welcome {
    padding-top: 12px !important;
}

html {
    scroll-padding-top: calc(
        var(--fixed-top-height, 120px) + 16px
    );
}


/* ==========================================
   DX10B-R10 HUMAN CENTERING
   Prioritize people and facial visibility.
   ========================================== */

.dx-public-art picture img {
    object-fit: cover !important;
    object-position: 50% 25% !important;
    transform-origin: 50% 25% !important;
    scale: 1 !important;
}

@media (max-width: 1023px) {
    .dx-public-art picture img {
        object-position: 50% 20% !important;
        transform-origin: 50% 20% !important;
    }
}

@media (max-width: 760px) {
    .dx-public-art picture img {
        object-position: 50% 15% !important;
        transform-origin: 50% 15% !important;
    }
}

