/* Home landing — full-page slide scroll + side dot navigation */

html:has(body.page-home) {
    height: 100%;
}

body.page-home {
    height: 100%;
    min-height: 100%;
    overflow: hidden;
}

body.page-home main.home-scrollport {
    height: 100%;
    overflow-x: clip;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-y: contain;
}

body.page-home main.home-scrollport::-webkit-scrollbar {
    display: none;
}

html.site-chrome-adjusting body.page-home main.home-scrollport,
html.is-resizing body.page-home main.home-scrollport {
    scroll-behavior: auto;
}

body.page-home main.home-scrollport > section,
body.page-home main.home-scrollport > footer#page-footer {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    align-items: stretch;
    flex-shrink: 0;
    padding-top: var(--site-header-offset) !important;
    padding-bottom: 2.5rem !important;
    position: relative;
}

/* Hero: center main block; keep tickers anchored to slide bottom */
body.page-home main.home-scrollport > #home {
    justify-content: flex-start;
}

body.page-home main.home-scrollport > #home > .container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 0;
}

body.page-home main.home-scrollport > #home > .marquee-wrapper {
    flex-shrink: 0;
}

body.page-home main.home-scrollport > #faq {
    scroll-snap-stop: normal;
}

@media (min-width: 768px) {
    body.page-home main.home-scrollport > section,
    body.page-home main.home-scrollport > footer#page-footer {
        padding-bottom: 3rem;
    }
}

.section-scroll-dots {
    position: fixed;
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    pointer-events: none;
}

.section-scroll-dot {
    pointer-events: auto;
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
    border: 2px solid #111111;
    background: #ffffff;
    box-shadow: 2px 2px 0 #111111;
    cursor: pointer;
    padding: 0;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.section-scroll-dot.is-active {
    background: #fde047;
    transform: scale(1.25);
    border-width: 3px;
}

.section-scroll-dot:focus-visible {
    outline: 3px solid #67e8f9;
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .section-scroll-dots {
        display: flex;
        left: max(1rem, env(safe-area-inset-left, 0px));
        gap: 0.75rem;
    }

    .section-scroll-dot {
        width: 0.875rem;
        height: 0.875rem;
        border-width: 3px;
    }
}
