/* Dostopnost (WCAG 2.1 AA) – nadomešča plugins/slabovidni */

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

/* Viden fokus za uporabo s tipkovnico (2.4.7) */
:focus-visible {
    outline: 3px solid #0b0c0c !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 6px #ffd60a !important;
}

a:focus:not(:focus-visible) {
    background-color: transparent;
    color: inherit !important;
}

/* Skok na vsebino: skrit, dokler ne dobi fokusa */
.skok {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    z-index: 20000;
}

.skok a {
    position: absolute;
    left: -9999px;
    top: 8px;
    padding: 12px 18px;
    background-color: #23518C;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.skok a:focus {
    left: 8px;
}

/* Gumbi v glavi in pri obvestilu: brez privzetega videza gumba */
:where(button.headIcon, button.responsive-nav, button.tgl, button.zapri) {
    font: inherit;
    color: inherit;
    background-color: transparent;
    border: 0;
    border-radius: 0;
}

/* Skrite vsebine ne smejo biti dosegljive s tipkovnico */
.iskalnik:not(.iskalnik_show),
.panel:not(.panelVis),
.poper_hide {
    visibility: hidden;
}

.panel {
    transition: right .2s ease, visibility .2s ease;
}

button.zapri {
    padding: 0;
    cursor: pointer;
}

/* Besedilo čez video in slike: temna prekrivna plast (1.4.3) */
.vid-cont .caption,
.izpo .iCont {
    z-index: 2;
}

.vid-cont .caption {
    background-color: rgba(8, 8, 37, .55);
}

.izpo::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(8, 8, 37, .55);
    z-index: 1;
}

.izpo .iCont {
    position: relative;
}

/* Gumb za ustavitev videa v pasici (2.2.2) */
.vid-pause {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background-color: rgba(8, 8, 37, .8);
    border: 2px solid #fff;
    border-radius: 8px;
    cursor: pointer;
}

.vid-pause:hover {
    background-color: #23518C;
}

/* Nastavitve prikaza */
.a11y-dialog {
    width: min(94vw, 640px);
    max-height: 90vh;
    margin: auto;
    padding: 0;
    color: #080825;
    background-color: #fff;
    border: 2px solid #080825;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: normal;
}

.a11y-dialog::backdrop {
    background-color: rgba(0, 0, 0, .7);
}

.a11y-dialog__body {
    padding: 24px;
}

.a11y-dialog__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}

.a11y-dialog h2 {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    margin: 0;
    font-size: 1.4em;
    line-height: 1.2;
    color: #080825;
}

.a11y-dialog fieldset {
    margin: 20px 0 0;
    padding: 0;
    border: 0;
}

.a11y-dialog legend {
    margin-bottom: 8px;
    padding: 0;
    font-weight: 600;
}

.a11y-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.a11y-options label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border: 2px solid #5F7280;
    border-radius: 8px;
    cursor: pointer;
}

.a11y-options input {
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    accent-color: #23518C;
}

.a11y-options label:has(input:checked) {
    border-color: #23518C;
    background-color: #e8eef6;
}

.a11y-options label:has(input:focus-visible) {
    outline: 3px solid #0b0c0c;
    outline-offset: 2px;
}

.a11y-sample--dark {
    padding: 0 6px;
    color: #ffeb3b;
    background-color: #000;
}

.a11y-sample--light {
    padding: 0 6px;
    color: #000;
    background-color: #fff;
    border: 1px solid #000;
}

.a11y-dialog__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #ddd;
}

.a11y-btn {
    min-height: 44px;
    padding: 0 18px;
    font: inherit;
    font-weight: 600;
    color: #fff;
    background-color: #23518C;
    border: 2px solid #23518C;
    border-radius: 8px;
    cursor: pointer;
}

.a11y-btn--line {
    color: #23518C;
    background-color: #fff;
}

.a11y-close {
    flex: none;
    margin: -8px -8px 0 0;
    padding: 0;
    min-width: 44px;
    min-height: 44px;
    font-size: 28px;
    line-height: 1;
    color: #080825;
    background-color: transparent;
    border: 0;
    cursor: pointer;
}

/* Večja pisava: povečava vsebine; za večje povečave (do 200 %) je namenjena povečava brskalnika (1.4.4) */
html.a11y-fs-115 body { zoom: 1.15; }
html.a11y-fs-130 body { zoom: 1.3; }
html.a11y-fs-150 body { zoom: 1.5; }

/* Podčrtane povezave */
html.a11y-links a {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

/* Brez animacij */
html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}

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

/* Visok kontrast: črno ozadje, rumeno besedilo, povezave podčrtane */
html.a11y-hc-dark body,
html.a11y-hc-dark body :where(*:not(img, video, svg, svg *)):not(#a11y-x),
html.a11y-hc-dark body :where(*:not(img, video, svg, svg *))::before,
html.a11y-hc-dark body :where(*:not(img, video, svg, svg *))::after {
    color: #ffeb3b !important;
    background-color: #000 !important;
    background-image: none !important;
    border-color: #ffeb3b !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

html.a11y-hc-dark body a:not(#a11y-x):not(#a11y-x) {
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

html.a11y-hc-dark body :not(#a11y-x)::placeholder {
    color: #fff3a0 !important;
}

html.a11y-hc-dark .logo img {
    padding: 4px;
    background-color: #fff;
}

/* Visok kontrast: belo ozadje, črno besedilo, temno modre povezave */
html.a11y-hc-light body,
html.a11y-hc-light body :where(*:not(img, video, svg, svg *)):not(#a11y-x) {
    color: #000 !important;
    background-color: #fff !important;
    background-image: none !important;
    border-color: #000 !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

html.a11y-hc-light body a:not(#a11y-x):not(#a11y-x),
html.a11y-hc-light body a *:not(#a11y-x):not(#a11y-x),
html.a11y-hc-light body button:not(#a11y-x):not(#a11y-x) {
    color: #00008b !important;
}

html.a11y-hc-dark .izpo::before,
html.a11y-hc-light .izpo::before,
html.a11y-hc-dark .vid-cont video,
html.a11y-hc-light .vid-cont video,
html.a11y-hc-dark .vid-pause,
html.a11y-hc-light .vid-pause {
    display: none !important;
}

html.a11y-hc-dark .vid-cont,
html.a11y-hc-light .vid-cont,
html.a11y-hc-dark #myVideo,
html.a11y-hc-light #myVideo {
    height: auto;
}

html.a11y-hc-dark .caption,
html.a11y-hc-light .caption {
    position: static;
}

html.a11y-hc-dark :focus-visible,
html.a11y-hc-light :focus-visible {
    outline-color: #ffeb3b !important;
    box-shadow: 0 0 0 6px #000 !important;
}

html.a11y-hc-light :focus-visible {
    outline-color: #000 !important;
    box-shadow: 0 0 0 6px #ffd60a !important;
}

/* Iskalno polje je type="search": brez sistemskega videza */
.sField {
    -webkit-appearance: none;
    appearance: none;
}
