/* Final public-site quality and accessibility layer. */

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

:focus-visible {
    outline: 3px solid #27a66c;
    outline-offset: 3px;
}

.nav-toggle-input:focus-visible + .nav-toggle {
    outline: 3px solid #27a66c;
    outline-offset: 3px;
}

main {
    min-height: 52vh;
}

img {
    max-width: 100%;
}

.news-public-fallback {
    max-width: 760px;
    text-align: left;
    border-color: rgba(28, 125, 60, .18);
    background:
        radial-gradient(circle at 90% 0%, rgba(46, 168, 79, .12), transparent 18rem),
        #f7fbf5;
}

.news-public-fallback .eyebrow {
    margin-bottom: 14px;
}

.news-public-fallback p {
    max-width: 62ch;
    color: var(--soft-ink);
}

@media (max-width: 900px) {
    .menu {
        max-height: min(70vh, 520px);
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

@media (max-width: 660px) {
    body {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }

    .mobile-actions {
        bottom: calc(10px + env(safe-area-inset-bottom));
    }

    footer {
        padding-bottom: 8px;
    }

    .news-public-fallback {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .news-public-fallback .news-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .news-public-fallback .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

@media print {
    .topbar,
    .mobile-actions,
    .footer-links {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }
}
