/**
 * Accessibility helpers for Rank One.
 */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.rank-one-skip-link.screen-reader-text:focus {
    background-color: #ffffff;
    box-shadow: 0 0 0 2px #1b2632;
    clip: auto !important;
    clip-path: none;
    color: #1b2632;
    display: block;
    font-size: 1rem;
    font-weight: 600;
    height: auto;
    left: 0.5rem;
    line-height: normal;
    padding: 0.75rem 1rem;
    text-decoration: none;
    top: 0.5rem;
    width: auto;
    z-index: 100000;
}

/*
 * Keep focused controls clear of sticky Elementor / Rank One headers (WCAG 2.4.11).
 */
html {
    scroll-padding-top: var(--rank-one-sticky-offset, 0px);
}

:where(a, button, input, select, textarea, summary, [tabindex]:not([tabindex="-1"])):focus {
    scroll-margin-top: var(--rank-one-sticky-offset, 0px);
}

.rank-one-site-main:focus {
    outline: none;
}

.rank-one-site-main:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}
