/* ===========================
   WCAG 2.2 AA fixes (loaded after theme and plugin styles)
=========================== */

/* Visually hidden, still read by screen readers */
.zips-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Skip link: visible above the fixed header when focused (WCAG 2.4.1, 2.4.7) */
a.skip-link:focus,
a.skip-link:focus-visible {
    position: fixed !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 100001 !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 12px 20px !important;
    clip: auto !important;
    clip-path: none !important;
    background: #000 !important;
    color: #fff !important;
    font-size: 16px !important;
    outline: 3px solid #fec708;
}

/* Skip link target: focus lands here without drawing a box around the whole page */
#main-content:focus {
    outline: none;
}

/* ===========================
   Mobile menu toggle (now a <button>, was a <label>)
=========================== */
button.show-menu {
    border: 0;
    font-family: inherit;
    line-height: 1 !important;
    color: inherit;
}

button.show-menu:focus-visible {
    outline: 3px solid #000;
    outline-offset: 2px;
}

/* ===========================
   Search overlay: hidden content must not take keyboard focus (WCAG 2.4.3, 2.4.7)
=========================== */
#curtain:not(.open) {
    visibility: hidden;
}

/* ===========================
   Text contrast (WCAG 1.4.3)
=========================== */
/* "Zadnje novice" widget dates: the theme fades them with opacity .5 (2.66:1), now 6.1:1 */
.tab-post .meta {
    opacity: 1 !important;
}

.tab-post .post-date {
    color: #595959 !important;
}

/* Download Manager card details: was #94a3b8 on white (2.56:1), now 6.0:1 */
.w3eden .text-muted {
    color: #5b6472 !important;
}

/* Block buttons: .entry a forced black text on the dark button (1.74:1) */
.entry a.wp-block-button__link,
.entry .wp-block-button__link:visited {
    color: #fff !important;
    text-decoration: none !important;
}

.entry a.wp-block-button__link:hover,
.entry a.wp-block-button__link:focus-visible {
    color: #fff !important;
    text-decoration: underline !important;
}
