/* ===========================
   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;
}

/* ===========================
   Form field outlines (WCAG 1.4.11): theme and plugin borders were 1.1–1.6:1,
   now #5c6b6d = 5.5:1 on white and 4.8:1 on the #f0f0f0 widgets
=========================== */
.wpcf7 input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=hidden]),
.wpcf7 textarea,
.wpcf7 select,
.mc4wp-form input:not([type=submit]):not([type=checkbox]):not([type=radio]):not([type=hidden]),
.mc4wp-form select,
.searchform input[type=text],
.searchform input[type=search],
#curtain input[type=text],
#curtain input[type=search],
.wp-block-search__input,
.w3eden .form-control,
.w3eden select,
.wpdm-shortcode-toolbar input,
.wpdm-shortcode-toolbar select,
#ustanovitelj-filter input,
#ustanovitelj-filter select,
.entry input[type=text],
.entry input[type=search],
.entry select {
    border: 1px solid #5c6b6d !important;
}

/* Focus stays clearly different from the resting outline (WCAG 2.4.7) */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus,
.mc4wp-form input:focus,
.mc4wp-form select:focus,
.searchform input:focus,
#curtain input:focus,
.wp-block-search__input:focus,
.w3eden .form-control:focus,
.w3eden select:focus,
.wpdm-shortcode-toolbar input:focus,
.wpdm-shortcode-toolbar select:focus,
#ustanovitelj-filter input:focus,
#ustanovitelj-filter select:focus,
.entry input:focus,
.entry select:focus {
    border-color: #000 !important;
    outline: 2px solid #000 !important;
    outline-offset: 1px;
    box-shadow: none !important;
}

/* ===========================
   "Preberi več" links in post lists were the same colour as the text with no underline (WCAG 1.4.1)
=========================== */
a.read_more {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* 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;
}
