/* ==========================================================================
   Prieinamumo valdiklis (custom, be trečiųjų šalių)
   Pastaba: tai papildomi naudotojo nustatymai. Pati svetainė turi atitikti
   WCAG 2.1 AA ir be šio valdiklio.
   ========================================================================== */

/* ---------- Valdiklio sąsaja ---------- */
.a11yw, .a11yw *{box-sizing:border-box}
.a11yw{--w-navy:#1d214f;--w-bordo:#b11d43;--w-green:#96b51b;--w-soft:#f4f5f9;--w-line:#dfe1ea;--w-muted:#545770;
  font:400 16px/1.45 "Plus Jakarta Sans","Segoe UI",Arial,sans-serif;color:#1b1d33;letter-spacing:normal;word-spacing:normal;text-align:left}
.a11yw [hidden]{display:none!important}
.a11yw :focus-visible{outline:3px solid #ffbf00!important;outline-offset:2px;box-shadow:0 0 0 6px var(--w-navy)!important}

.a11yw-fab{position:fixed;right:20px;bottom:20px;z-index:2147483000;width:62px;height:62px;border-radius:50%;border:3px solid #fff;
  background:var(--w-navy);color:#fff;display:grid;place-items:center;cursor:pointer;box-shadow:0 12px 30px -8px rgba(29,33,79,.6);transition:transform .2s}
.a11yw-fab:hover{transform:scale(1.06)}
/* Indikatorius prie atidarymo nuorodų, kai įjungtas bent vienas nustatymas */
[data-a11yw-open].a11yw-on::after{content:"";display:inline-block;width:9px;height:9px;margin-left:6px;border-radius:50%;background:#96b51b;box-shadow:0 0 0 2px #fff;vertical-align:middle}
.a11yw-fab svg{width:34px;height:34px}
.a11yw-fab .dot{position:absolute;top:-2px;right:-2px;width:18px;height:18px;border-radius:50%;background:var(--w-green);border:3px solid #fff}

.a11yw-backdrop{position:fixed;inset:0;z-index:2147483001;background:rgba(15,17,40,.45)}
.a11yw-panel{position:fixed;top:0;right:0;bottom:0;z-index:2147483002;width:min(460px,100%);background:#fff;display:flex;flex-direction:column;
  box-shadow:-30px 0 60px -20px rgba(15,17,40,.45);animation:a11yw-in .22s ease-out}
@keyframes a11yw-in{from{transform:translateX(30px);opacity:0}to{transform:none;opacity:1}}
.a11yw-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;background:var(--w-navy);color:#fff}
.a11yw-head h2{margin:0;font-size:1.2rem;font-weight:800;color:#fff;letter-spacing:-.01em}
.a11yw-head p{margin:2px 0 0;font-size:.85rem;color:#d9dbea}
.a11yw-x{width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.4);background:transparent;color:#fff;display:grid;place-items:center;cursor:pointer;flex:none}
.a11yw-x:hover{background:rgba(255,255,255,.12)}
.a11yw-x svg{width:20px;height:20px}
.a11yw-body{flex:1;overflow:auto;padding:18px 20px 24px;background:var(--w-soft)}
.a11yw-sec{margin:0 0 22px}
.a11yw-sec h3{margin:0 0 10px;font-size:.95rem;font-weight:700;color:var(--w-navy)}

.a11yw-profiles{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.a11yw-profile{width:100%;display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;border:2px solid var(--w-line);background:#fff;cursor:pointer;text-align:left;color:#1b1d33}
.a11yw-profile:hover{border-color:var(--w-navy)}
.a11yw-profile[aria-pressed="true"]{border-color:var(--w-navy);background:#eceef7}
.a11yw-profile .ic{width:38px;height:38px;border-radius:10px;background:var(--w-soft);display:grid;place-items:center;color:var(--w-navy);flex:none}
.a11yw-profile[aria-pressed="true"] .ic{background:var(--w-navy);color:#fff}
.a11yw-profile .ic svg{width:22px;height:22px}
.a11yw-profile b{display:block;font-size:.95rem}
.a11yw-profile small{display:block;color:var(--w-muted);font-size:.82rem}
.a11yw-profile .sw{margin-left:auto;width:42px;height:24px;border-radius:999px;background:#c9ccda;position:relative;flex:none;transition:background .2s}
.a11yw-profile .sw::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .2s}
.a11yw-profile[aria-pressed="true"] .sw{background:var(--w-navy)}
.a11yw-profile[aria-pressed="true"] .sw::after{transform:translateX(18px)}

.a11yw-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
.a11yw-tile{position:relative;width:100%;min-height:118px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:10px;
  padding:14px;border-radius:14px;border:2px solid var(--w-line);background:#fff;cursor:pointer;text-align:left;color:#1b1d33}
.a11yw-tile:hover{border-color:var(--w-navy)}
.a11yw-tile.is-on{border-color:var(--w-navy);background:#eceef7}
.a11yw-tile svg{width:28px;height:28px;color:var(--w-navy)}
.a11yw-tile .lbl{font-size:.9rem;font-weight:700;line-height:1.25}
.a11yw-tile .chk{position:absolute;top:10px;right:10px;width:22px;height:22px;border-radius:50%;background:var(--w-navy);color:#fff;display:none;place-items:center}
.a11yw-tile.is-on .chk{display:grid}
.a11yw-tile .chk svg{width:14px;height:14px;color:#fff}
.a11yw-steps{display:flex;gap:4px;width:100%}
.a11yw-steps i{flex:1;height:5px;border-radius:3px;background:#d5d8e4}
.a11yw-steps i.on{background:var(--w-navy)}

.a11yw-foot{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between;padding:14px 20px;border-top:1px solid var(--w-line);background:#fff}
.a11yw-btn{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px;border-radius:999px;border:2px solid var(--w-navy);background:#fff;color:var(--w-navy);font-weight:700;font-size:.9rem;cursor:pointer;text-decoration:none}
.a11yw-btn:hover{background:var(--w-navy);color:#fff}
.a11yw-btn--solid{background:var(--w-bordo);border-color:var(--w-bordo);color:#fff}
.a11yw-btn--solid:hover{background:#8e1636;border-color:#8e1636}
.a11yw-btn svg{width:18px;height:18px}
.a11yw-links{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:.85rem}
.a11yw-links a{color:var(--w-navy);font-weight:600}

/* Puslapio struktūros langas */
.a11yw-struct{position:fixed;inset:0;z-index:2147483003;display:grid;place-items:center;padding:16px;background:rgba(15,17,40,.55)}
.a11yw-struct .box{width:min(560px,100%);max-height:min(640px,90vh);display:flex;flex-direction:column;background:#fff;border-radius:18px;overflow:hidden}
.a11yw-tabs{display:flex;gap:6px;padding:12px 16px;border-bottom:1px solid var(--w-line)}
.a11yw-tabs button{height:38px;padding:0 14px;border-radius:999px;border:1px solid #8a8ca0;background:#fff;font-weight:600;cursor:pointer;color:#1b1d33}
.a11yw-tabs button[aria-selected="true"]{background:var(--w-navy);border-color:var(--w-navy);color:#fff}
.a11yw-struct [role="tabpanel"]{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.a11yw-list{list-style:none;margin:0;padding:8px 16px 16px;overflow:auto;min-height:0}
.a11yw-list button{width:100%;display:flex;gap:10px;align-items:baseline;padding:10px 8px;border:0;border-bottom:1px solid var(--w-line);background:none;text-align:left;cursor:pointer;color:#1b1d33;font-size:.95rem}
.a11yw-list button:hover{background:var(--w-soft)}
.a11yw-list .lv{flex:none;min-width:34px;font-size:.75rem;font-weight:700;color:#fff;background:var(--w-navy);border-radius:6px;padding:3px 6px;text-align:center}

/* Skaitymo gairė ir kaukė */
.a11yw-guide{position:fixed;left:0;right:0;height:14px;z-index:2147482990;pointer-events:none;background:#1d214f;border-top:3px solid #ffbf00;border-bottom:3px solid #ffbf00;transform:translateY(-50%)}
.a11yw-mask{position:fixed;left:0;right:0;z-index:2147482990;pointer-events:none;background:rgba(10,12,30,.72)}
.a11yw-toast{position:fixed;left:50%;bottom:96px;transform:translateX(-50%);z-index:2147483004;background:var(--w-navy);color:#fff;padding:10px 16px;border-radius:999px;font-size:.9rem;box-shadow:0 12px 30px -10px rgba(0,0,0,.5)}
.a11yw-reading{outline:3px dashed #ffbf00!important;outline-offset:4px}

@media (max-width:640px){
  .a11yw-fab{width:54px;height:54px;right:14px;bottom:14px}
  .a11yw-panel{width:100%}
}

/* ==========================================================================
   Efektai (klasės ant <html>). Valdiklis (.a11yw) iš efektų išskiriamas.
   ========================================================================== */

/* Filtrai: kontrastas (invertavimas) + sodrumas – per kintamąjį */
html[data-a11y-filter] body > :not(.a11yw):not(script){filter:var(--a11y-filter)}
html.a11y-invert body > :not(.a11yw) img,
html.a11y-invert body > :not(.a11yw) video{filter:invert(1) hue-rotate(180deg)}

/* Tamsus kontrastas */
html.a11y-dark body{background:#000!important}
html.a11y-dark body > :not(.a11yw),
html.a11y-dark body > :not(.a11yw) :where(*:not(svg,path,rect,circle,img)){background-color:#000!important;color:#fff!important;border-color:#fff!important;box-shadow:none!important}
/* Visa aprėptis per :where() (0,2,2), kad nuorodų taisyklė (0,2,3) laimėtų */
html.a11y-dark body > a:not(.a11yw),
html.a11y-dark body > :not(.a11yw) a,
html.a11y-dark body > :not(.a11yw) a *{color:#ffe600!important}
html.a11y-dark body > :not(.a11yw) button,
html.a11y-dark body > :not(.a11yw) .btn{border:2px solid #fff!important}
/* Tamsiai mėlynas logotipas juodame fone – baltas */
html.a11y-dark .brand img{filter:brightness(0) invert(1)}

/* Šviesus kontrastas */
html.a11y-light body{background:#fff!important}
html.a11y-light body > :not(.a11yw),
html.a11y-light body > :not(.a11yw) :where(*:not(svg,path,rect,circle,img)){background-color:#fff!important;color:#000!important;border-color:#000!important;box-shadow:none!important}
/* Visa aprėptis per :where() (0,2,2), kad nuorodų taisyklė (0,2,3) laimėtų */
html.a11y-light body > a:not(.a11yw),
html.a11y-light body > :not(.a11yw) a,
html.a11y-light body > :not(.a11yw) a *{color:#0000c8!important}
html.a11y-light body > :not(.a11yw) button,
html.a11y-light body > :not(.a11yw) .btn{border:2px solid #000!important}

/* Paryškintos nuorodos */
html.a11y-links body > :not(.a11yw) a{text-decoration:underline!important;text-decoration-thickness:2px!important;text-underline-offset:.2em!important;outline:2px solid #ffbf00!important;outline-offset:2px}

/* Didesnis tekstas */
html.a11y-text-1{font-size:115%!important}
html.a11y-text-2{font-size:130%!important}
html.a11y-text-3{font-size:150%!important}

/* Teksto tarpai (WCAG 1.4.12 reikšmės ir didesnės) */
html.a11y-spacing-1 body > :not(.a11yw) *{letter-spacing:.06em!important;word-spacing:.12em!important}
html.a11y-spacing-2 body > :not(.a11yw) *{letter-spacing:.12em!important;word-spacing:.16em!important}
html.a11y-spacing-3 body > :not(.a11yw) *{letter-spacing:.18em!important;word-spacing:.24em!important}
/* Padidinus tekstą ar tarpus ilgi žodžiai (antraštės, el. paštai, URL) lūžta, o ne plečia puslapį (1.4.10) */
html:is(.a11y-text-2,.a11y-text-3,.a11y-spacing-2,.a11y-spacing-3) body > :not(.a11yw) :where(h1,h2,h3,h4,p,li,dd,dt,td,th,a,span,label,small,b,strong){overflow-wrap:anywhere}
html:is(.a11y-text-2,.a11y-text-3,.a11y-spacing-2,.a11y-spacing-3) .lines a{flex-wrap:wrap}
html:is(.a11y-text-2,.a11y-text-3,.a11y-spacing-2,.a11y-spacing-3) .lines{grid-template-columns:minmax(0,1fr)}
html:is(.a11y-text-2,.a11y-text-3,.a11y-spacing-2,.a11y-spacing-3) .lines a > *{min-width:0}

/* Eilučių aukštis */
html.a11y-lh-1 body > :not(.a11yw) :is(p,li,a,span,dd,dt,td,th,label,small,h1,h2,h3,h4,blockquote){line-height:1.8!important}
html.a11y-lh-2 body > :not(.a11yw) :is(p,li,a,span,dd,dt,td,th,label,small,h1,h2,h3,h4,blockquote){line-height:2!important}
html.a11y-lh-3 body > :not(.a11yw) :is(p,li,a,span,dd,dt,td,th,label,small,h1,h2,h3,h4,blockquote){line-height:2.4!important}

/* Teksto lygiavimas */
html.a11y-align-1 body > :not(.a11yw) *{text-align:left!important}
html.a11y-align-2 body > :not(.a11yw) *{text-align:center!important}
html.a11y-align-3 body > :not(.a11yw) *{text-align:right!important}

/* Sustabdytos animacijos */
html.a11y-noanim body > :not(.a11yw) *,
html.a11y-noanim body > :not(.a11yw) *::before,
html.a11y-noanim body > :not(.a11yw) *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.a11y-noanim{scroll-behavior:auto!important}

/* Paslėpti paveikslėliai */
html.a11y-noimg body > :not(.a11yw) :is(img,video,picture,figure img){opacity:0!important}
html.a11y-noimg body > :not(.a11yw) *{background-image:none!important}

/* Disleksijai tinkamas šriftas */
html.a11y-font body > :not(.a11yw),
html.a11y-font body > :not(.a11yw) *{font-family:"Lexend","Atkinson Hyperlegible",Verdana,sans-serif!important}

/* Ryškus fokusas */
html.a11y-focus body > :not(.a11yw) :focus{outline:5px solid #ffbf00!important;outline-offset:4px!important;box-shadow:0 0 0 10px #1d214f!important}

/* Didelis žymeklis */
html.a11y-cursor,
html.a11y-cursor *{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3l30 24-13 2 8 15-6 3-8-15-11 9z' fill='%23000' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto!important}
