/*
 * „Baltic Tours“ prieinamumo valdiklis – stiliai (pritaikyta iš Sienna Accessibility Widget 2.1.0, © 2025 Benny Luk, MIT – /prieinamumas/LICENSE.txt).
 * Visi stiliai – šiame faile (CSP „style-src 'self'“): valdiklis pats <style> ir style="" nekuria, įrankius įjungia klasėmis <html class="asw-…">.
 * Spalvos: veiksmo (mygtukai, meniu galva) – svetainės violetinė #33306f, kaip „Ieškoti“ ir slapukų mygtukai; tekstas – #032c3e; fokusas – #fed702.
 */

@font-face { font-family: OpenDyslexic; src: url("/prieinamumas/sriftai/OpenDyslexic-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: OpenDyslexic; src: url("/prieinamumas/sriftai/OpenDyslexic-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Valdiklio mygtukas ---------- */
.asw-ui[hidden], .asw-container.asw-paslepta { display: none !important; }
.asw-container, .asw-menu, .asw-structure-modal { font-family: Azo, "Segoe UI", system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
.asw-container *, .asw-menu *, .asw-structure-modal * { box-sizing: border-box; }
.asw-menu-btn {
  position: fixed; z-index: 850; left: 20px; bottom: 20px; display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; margin: 0; padding: 0; border: 3px solid #fff; border-radius: 50%; background: #33306f; color: #fff; cursor: pointer;
  box-shadow: 0 4px 14px rgba(3, 44, 62, .35);
}
.asw-menu-btn.asw-desine { left: auto; right: 20px; }
.asw-menu-btn svg { width: 34px; height: 34px; fill: #fff; pointer-events: none; }
.asw-menu-btn:hover { background: #2a2860; }
.asw-menu-btn:focus-visible { outline: 3px solid #fed702; outline-offset: 2px; box-shadow: 0 0 0 7px #33306f; }
@media (prefers-reduced-motion: no-preference) { .asw-menu-btn { transition: transform .2s ease, background-color .2s ease; } .asw-menu-btn:hover { transform: scale(1.05); } }
@media (max-width: 768px) {
  .asw-menu-btn { width: 48px; height: 48px; left: 12px; bottom: 12px; }
  .asw-menu-btn svg { width: 28px; height: 28px; }
}
@media print { .asw-ui { display: none !important; } }

/* Ekrano skaitytuvui skirti pranešimai (nematomi) */
.asw-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ---------- Meniu (dialogas) ---------- */
.asw-overlay { position: fixed; inset: 0; z-index: 2147483100; background: rgba(3, 44, 62, .35); }
.asw-menu {
  position: fixed; z-index: 2147483101; top: 0; bottom: 0; left: 0; display: flex; flex-direction: column; width: 480px; max-width: 100%;
  background: #f3f7fb; color: #032c3e; box-shadow: 0 0 40px rgba(3, 44, 62, .3);
  font-size: 16px; line-height: 1.4; letter-spacing: normal; word-spacing: normal; font-weight: 400; text-align: left; text-transform: none;
}
.asw-menu.asw-desine { left: auto; right: 0; }
.asw-menu * { font-family: inherit; letter-spacing: normal; word-spacing: normal; text-transform: none; }
.asw-menu h2, .asw-menu h3, .asw-menu p { margin: 0; padding: 0; }
.asw-menu-header {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 10px 16px 10px 24px;
  background: #33306f; color: #fff;
}
.asw-menu-title { font-size: 20px; line-height: 1.2; font-weight: 700; color: #fff; }
.asw-menu-actions { display: flex; gap: 10px; }
.asw-menu-reset, .asw-menu-close, .asw-structure-close {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0;
  border: 0; border-radius: 50%; background: #fff; color: #032c3e; cursor: pointer;
}
.asw-menu-reset svg, .asw-menu-close svg, .asw-structure-close svg { width: 24px; height: 24px; fill: #032c3e; }
.asw-menu-reset:hover, .asw-menu-close:hover, .asw-structure-close:hover { background: #fed702; }
.asw-menu-content { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 20px 0 8px; }
.asw-card { margin: 0 16px 16px; padding: 16px; border: 1px solid #d6e2ec; border-radius: 14px; background: #fff; }
.asw-card-title { margin: 0 0 12px; font-size: 14px; line-height: 1.3; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #032c3e; }
.asw-card-kalba { display: flex; align-items: center; gap: 12px; }
.asw-label-kalba { flex: 0 0 auto; font-weight: 500; }
.asw-menu .asw-select {
  flex: 1 1 auto; min-width: 0; height: 44px; padding: 0 12px; border: 2px solid #8aa1b1; border-radius: 10px;
  background: #fff; color: #032c3e; font-size: 16px; font-weight: 500;
}
.asw-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.asw-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 104px; margin: 0; padding: 12px 8px; border: 2px solid #c9d7e2; border-radius: 12px; background: #fff; color: #032c3e;
  font-size: 14px; line-height: 1.25; font-weight: 500; text-align: center; overflow-wrap: anywhere; hyphens: auto; cursor: pointer;
}
.asw-btn svg { flex: 0 0 auto; width: 30px; height: 30px; fill: #032c3e; }
.asw-btn:hover { border-color: #009ee3; }
.asw-btn.asw-selected { border-color: #33306f; background: #eeedf8; }
.asw-btn.asw-selected::after {
  content: "\2713"; position: absolute; top: -9px; right: -9px; display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%; background: #33306f; color: #fff; font-size: 13px; line-height: 1;
}
.asw-btn:disabled { opacity: .55; cursor: not-allowed; }
.asw-adjust-font { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.asw-adjust-font .asw-label { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.asw-adjust-font .asw-label svg { width: 24px; height: 24px; fill: #032c3e; }
.asw-font-controls { display: flex; align-items: center; gap: 12px; }
.asw-minus, .asw-plus {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0;
  border: 2px solid #c9d7e2; border-radius: 50%; background: #f3f7fb; cursor: pointer;
}
.asw-minus svg, .asw-plus svg { width: 22px; height: 22px; fill: #032c3e; }
.asw-minus:hover, .asw-plus:hover { border-color: #009ee3; }
.asw-minus:disabled, .asw-plus:disabled { opacity: .45; cursor: not-allowed; }
.asw-amount { min-width: 64px; font-size: 18px; font-weight: 700; text-align: center; }
.asw-items.profiles { grid-template-columns: 1fr; gap: 10px; }
.asw-profile-btn {
  display: flex; align-items: center; gap: 14px; width: 100%; margin: 0; padding: 12px 14px; border: 2px solid #c9d7e2; border-radius: 12px;
  background: #fff; color: #032c3e; text-align: left; cursor: pointer;
}
.asw-profile-btn:hover { border-color: #009ee3; }
.asw-profile-btn.asw-selected { border-color: #33306f; background: #eeedf8; }
.asw-profile-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: #e6f5fc; }
.asw-profile-icon svg { width: 28px; height: 28px; }
.asw-linija { fill: none; stroke: #032c3e; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.asw-profile-content { display: flex; flex: 1 1 auto; flex-direction: column; gap: 3px; min-width: 0; }
.asw-profile-title { font-size: 16px; line-height: 1.25; font-weight: 700; }
.asw-profile-desc { font-size: 14px; line-height: 1.35; color: #34505e; }
.asw-profile-toggle { position: relative; flex: 0 0 44px; width: 44px; height: 24px; border: 2px solid #8aa1b1; border-radius: 12px; background: #fff; }
.asw-profile-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #8aa1b1; }
.asw-profile-btn.asw-selected .asw-profile-toggle { border-color: #33306f; background: #33306f; }
.asw-profile-btn.asw-selected .asw-profile-toggle::after { left: 22px; background: #fff; }
.asw-card-apacia { display: flex; flex-direction: column; gap: 10px; }
.asw-menu-reset-footer-btn {
  width: 100%; min-height: 48px; margin: 0; padding: 12px; border: 0; border-radius: 10px; background: #33306f; color: #fff;
  font-size: 16px; font-weight: 500; cursor: pointer;
}
.asw-menu-reset-footer-btn:hover { background: #2a2860; }
.asw-pastaba { font-size: 14px; color: #34505e; text-align: center; }
.asw-footer { flex: 0 0 auto; padding: 14px 16px; border-top: 1px solid #d6e2ec; background: #fff; text-align: center; }
.asw-footer a { display: inline-block; padding: 8px 4px; color: #032c3e; font-weight: 500; text-decoration: underline; }
.asw-footer a:hover { color: #006c9c; }
.asw-menu :focus-visible, .asw-structure-modal :focus-visible { outline: 3px solid #032c3e; outline-offset: 2px; box-shadow: 0 0 0 5px #fed702; }
.asw-menu-header :focus-visible, .asw-structure-header :focus-visible { outline-color: #fed702; box-shadow: none; }
@media (max-width: 560px) { .asw-menu { width: 100%; } }
@media (max-width: 420px) {
  .asw-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .asw-card { margin: 0 10px 12px; padding: 14px 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .asw-btn, .asw-profile-btn, .asw-minus, .asw-plus { transition: border-color .15s ease, background-color .15s ease; }
}
html.asw-menu-open { overflow: hidden; }

/* ---------- Puslapio struktūra ---------- */
.asw-structure-overlay { position: fixed; inset: 0; z-index: 2147483200; background: rgba(3, 44, 62, .45); }
.asw-structure-modal {
  position: fixed; z-index: 2147483201; top: 50%; left: 50%; display: flex; flex-direction: column; width: min(700px, calc(100vw - 24px)); height: min(85vh, 760px);
  transform: translate(-50%, -50%); overflow: hidden; border-radius: 16px; background: #fff; color: #032c3e; box-shadow: 0 20px 50px rgba(3, 44, 62, .35);
  font-size: 16px; line-height: 1.4; text-align: left;
}
.asw-structure-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 20px; background: #33306f; color: #fff; }
.asw-structure-title { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 700; color: #fff; }
.asw-structure-content { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
.asw-tabs-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 12px 0; border-bottom: 2px solid #d6e2ec; background: #f3f7fb; }
.asw-tab-btn {
  min-height: 44px; margin: 0 0 -2px; padding: 10px 14px; border: 2px solid transparent; border-radius: 10px 10px 0 0;
  background: transparent; color: #032c3e; font-size: 15px; font-weight: 500; cursor: pointer;
}
.asw-tab-btn.asw-active { border-color: #d6e2ec; border-bottom-color: #fff; background: #fff; font-weight: 700; }
.asw-tab-panels { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 24px; }
.asw-structure-list { margin: 0; padding: 0; list-style: none; }
.asw-structure-li { margin: 6px 0; }
.asw-lygis-2 { margin-left: 16px; } .asw-lygis-3 { margin-left: 32px; } .asw-lygis-4 { margin-left: 48px; } .asw-lygis-5, .asw-lygis-6 { margin-left: 64px; }
.asw-structure-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; margin: 0; padding: 8px 12px; border: 1px solid #d6e2ec; border-radius: 10px;
  background: #fff; color: #032c3e; font-size: 15px; text-align: left; cursor: pointer;
}
.asw-structure-item:hover { border-color: #009ee3; background: #e6f5fc; }
.asw-structure-tag { flex: 0 0 auto; min-width: 30px; padding: 2px 6px; border-radius: 6px; background: #032c3e; color: #fff; font-size: 12px; font-weight: 700; text-align: center; }
.asw-structure-text { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asw-structure-empty { margin: 16px 0; color: #34505e; }
.asw-paryskinta { outline: 4px solid #fed702 !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px #032c3e !important; }

/* ---------- Skaitymo juosta ---------- */
.asw-rg { position: fixed; left: 0; right: 0; width: 100%; height: 0; pointer-events: none; background-color: rgba(0, 0, 0, .7); z-index: 2147483000; }
.asw-rg-top { top: 0; }
.asw-rg-bottom { bottom: 0; }

/* ---------- Įrankiai (klasės ant <html>) ---------- */
/* Tekstas: valdiklio langai (.asw-ui) nekeičiami – kad jų mygtukai neišsibarstytų */
html.asw-font-weight body *:not(.asw-ui, .asw-ui *) { font-weight: 700 !important; }
html.asw-line-height body *:not(.asw-ui, .asw-ui *) { line-height: 2 !important; }
html.asw-letter-spacing body *:not(.asw-ui, .asw-ui *) { letter-spacing: .12em !important; word-spacing: .16em !important; }
html.asw-readable-font body *:not(svg, svg *) { font-family: OpenDyslexic, "Comic Sans MS", Arial, sans-serif !important; }
html.asw-highlight-links a[href]:not(.asw-ui a) { outline: 3px solid #032c3e !important; outline-offset: 2px !important; box-shadow: 0 0 0 5px #fed702 !important; text-decoration: underline !important; }
html.asw-highlight-title :is(h1, h2, h3, h4, h5, h6):not(.asw-ui *) { outline: 3px solid #032c3e !important; outline-offset: 3px !important; box-shadow: 0 0 0 6px #fed702 !important; }

/* Naršymas */
html.asw-super-focus :focus { outline: 4px solid #ff9800 !important; outline-offset: 3px !important; box-shadow: 0 0 0 8px rgba(3, 44, 62, .9) !important; }
html.asw-big-cursor body, html.asw-big-cursor body * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='98px' height='98px' viewBox='0 0 48 48'%3E%3Cpath fill='%23E0E0E0' d='M27.8 39.7c-.1 0-.2 0-.4-.1s-.4-.3-.6-.5l-3.7-8.6-4.5 4.2c-.1.2-.3.3-.6.3-.1 0-.3 0-.4-.1-.3-.1-.6-.5-.6-.9V12c0-.4.2-.8.6-.9.1-.1.3-.1.4-.1.2 0 .5.1.7.3l16 15c.3.3.4.7.3 1.1-.1.4-.5.6-.9.7l-6.3.6 3.9 8.5c.1.2.1.5 0 .8-.1.2-.3.5-.5.6l-2.9 1.3c-.2-.2-.4-.2-.5-.2z'/%3E%3Cpath fill='%23212121' d='m18 12 16 15-7.7.7 4.5 9.8-2.9 1.3-4.3-9.9L18 34V12m0-2c-.3 0-.5.1-.8.2-.7.3-1.2 1-1.2 1.8v22c0 .8.5 1.5 1.2 1.8.3.2.6.2.8.2.5 0 1-.2 1.4-.5l3.4-3.2 3.1 7.3c.2.5.6.9 1.1 1.1.2.1.5.1.7.1.3 0 .5-.1.8-.2l2.9-1.3c.5-.2.9-.6 1.1-1.1.2-.5.2-1.1 0-1.5l-3.3-7.2 4.9-.4c.8-.1 1.5-.6 1.7-1.3.3-.7.1-1.6-.5-2.1l-16-15c-.3-.5-.8-.7-1.3-.7z'/%3E%3C/svg%3E") 40 15, auto !important;
}

/* Spalvos (filtras ant <html> neperkelia fiksuotų elementų) */
html.asw-filter-monochrome { filter: grayscale(100%) !important; }
html.asw-filter-low-saturation { filter: saturate(50%) !important; }
html.asw-filter-high-saturation { filter: saturate(200%) !important; }
html.asw-filter-high-contrast { filter: contrast(135%) !important; }
html.asw-filter-dark-contrast body, html.asw-filter-dark-contrast body *:not(.asw-ui, .asw-ui *, svg *, img, picture, video) {
  background-color: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important; text-shadow: none !important;
}
html.asw-filter-dark-contrast body a[href]:not(.asw-ui a) { color: #fed702 !important; }
html.asw-filter-dark-contrast body svg:not(.asw-ui svg) { fill: currentColor; }
html.asw-filter-light-contrast body, html.asw-filter-light-contrast body *:not(.asw-ui, .asw-ui *, svg *, img, picture, video) {
  background-color: #fff !important; background-image: none !important; color: #000 !important; border-color: #000 !important; text-shadow: none !important;
}
html.asw-filter-light-contrast body a[href]:not(.asw-ui a) { color: #00419e !important; }

/* Kita */
html.asw-stop-animations *, html.asw-stop-animations *::before, html.asw-stop-animations *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
html.asw-hide-images img:not(.asw-ui img), html.asw-hide-images picture:not(.asw-ui *), html.asw-hide-images video:not(.asw-ui *) { visibility: hidden !important; }
html.asw-hide-images *:not(.asw-ui, .asw-ui *) { background-image: none !important; }
