/* Paladius: přístupnost (a11y). Nízká specificita přes :where(), child téma to snadno přepíše. */

/* Text jen pro čtečky obrazovky (WordPress ho na webu nedodává, téma musí). */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    border: 0;
    white-space: nowrap;
    word-wrap: normal;
}

.screen-reader-text:focus {
    position: static !important;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    clip: auto;
    clip-path: none;
    white-space: normal;
}

/* Odkaz "Přeskočit na obsah": vidět jen při zaostření klávesnicí. */
.skip-link {
    position: absolute;
    left: 12px;
    top: -100px;
    z-index: 100000;
    padding: 12px 18px;
    background: #fff;
    color: #111;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.skip-link:focus {
    top: 12px;
}

/* Viditelné zaostření pro ovládání klávesnicí (ne pro myš). */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

/* Omezit animace, když si to uživatel nastavil v systému. */
@media (prefers-reduced-motion: reduce) {
    :where(*, *::before, *::after) {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
