/* Skip-to-Content Link */
.os-skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 100000;
  padding: 12px 20px;
  border-radius: 6px;
  background: #003B63;
  color: #FFFFFF !important;
  font-family: 'Barlow', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: top .15s ease;
}
.os-skip-link:focus {
  top: 16px;
  outline: 3px solid #D5172F;
  outline-offset: 2px;
}

/* Global Focus-Visible Standard (WCAG 2.4.7) */
:focus-visible {
  outline: 2px solid #003B63;
  outline-offset: 3px;
}

/* Bottom-Left Floating Dock */
.os-bl-dock {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow', Arial, Helvetica, sans-serif;
}

.os-bl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: 'Barlow', Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 59, 99, .24);
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.os-bl-btn:hover { transform: translateY(-2px); }

.os-bl-btn--a11y {
  border: 2px solid #FFFFFF;
  background: #003B63;
  color: #FFFFFF;
}
.os-bl-btn--a11y:hover,
.os-bl-btn--a11y[aria-expanded="true"] {
  background: #009EE0;
  color: #FFFFFF;
}

.os-bl-btn--cookie {
  width: 44px;
  padding: 0;
  border: 2px solid #003B63;
  background: #FFFFFF;
  color: #003B63;
}
.os-bl-btn--cookie:hover {
  background: #003B63;
  color: #FFFFFF;
}

/* Panel (Bottom-Left) */
.os-a11y-panel {
  position: fixed;
  left: 16px;
  bottom: 70px;
  z-index: 9995;
  width: min(350px, calc(100vw - 32px));
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  border: 1px solid #CBD5E1;
  border-radius: 14px;
  background: #FFFFFF;
  color: #141414;
  box-shadow: 0 20px 50px rgba(0, 59, 99, .26);
  font-family: 'Barlow', Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.4;
}
.os-a11y-panel[hidden] { display: none; }

.os-a11y-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: #003B63;
  color: #FFFFFF;
}
.os-a11y-panel__title {
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  line-height: 1.2 !important;
}
.os-a11y-panel__close {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #FFFFFF;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.os-a11y-panel__close:hover { background: #D5172F; }

.os-a11y-panel__body { padding: 16px 18px; }

.os-a11y-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #F8FAFC;
}
.os-a11y-scale__label {
  font-size: 14px;
  font-weight: 700;
  color: #003B63;
}
.os-a11y-scale__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.os-a11y-scale__btn {
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #003B63;
  border-radius: 6px;
  background: #FFFFFF;
  color: #003B63;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.os-a11y-scale__btn:hover { background: #003B63; color: #FFFFFF; }
.os-a11y-scale__val {
  min-width: 44px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #141414;
}

.os-a11y-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.os-a11y-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 76px;
  padding: 10px 8px;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  background: #FFFFFF;
  color: #141414;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.os-a11y-tile:hover {
  border-color: #003B63;
  background: #EEF7FC;
}
.os-a11y-tile[aria-pressed="true"] {
  border-color: #003B63;
  background: #003B63;
  color: #FFFFFF;
}
.os-a11y-tile__icon {
  font-size: 20px;
  line-height: 1;
}

.os-a11y-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px 16px;
  border-top: 1px solid #E2E8F0;
}
.os-a11y-reset {
  padding: 8px 14px;
  border: 1px solid #94A3B8;
  border-radius: 6px;
  background: #FFFFFF;
  color: #141414;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.os-a11y-reset:hover { background: #D5172F; border-color: #D5172F; color: #FFFFFF; }
.os-a11y-decl {
  font-size: 13px;
  font-weight: 600;
  color: #003B63;
  text-decoration: underline;
}

html.os-a11y-contrast body,
html.os-a11y-contrast .e-con,
html.os-a11y-contrast header,
html.os-a11y-contrast footer,
html.os-a11y-contrast main {
  background-color: #000000 !important;
  background-image: none !important;
  color: #FFFFFF !important;
}
html.os-a11y-contrast h1,
html.os-a11y-contrast h2,
html.os-a11y-contrast h3,
html.os-a11y-contrast h4,
html.os-a11y-contrast p,
html.os-a11y-contrast li,
html.os-a11y-contrast span,
html.os-a11y-contrast label {
  color: #FFFFFF !important;
}
html.os-a11y-contrast a,
html.os-a11y-contrast a span {
  color: #FFE600 !important;
  text-decoration: underline !important;
}
html.os-a11y-contrast .os-a11y-panel,
html.os-a11y-contrast .os-cookie-banner,
html.os-a11y-contrast .os-cookie-modal__dialog {
  background: #111111 !important;
  color: #FFFFFF !important;
  border-color: #FFE600 !important;
}

html.os-a11y-grayscale body > *:not(.os-bl-dock):not(.os-a11y-panel):not(.os-cookie-banner):not(.os-cookie-modal) {
  filter: grayscale(100%) !important;
}

html.os-a11y-links a {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
  background-color: rgba(255, 230, 0, .28) !important;
  outline: 1px dashed #003B63 !important;
}

html.os-a11y-readable body,
html.os-a11y-readable p,
html.os-a11y-readable li,
html.os-a11y-readable h1,
html.os-a11y-readable h2,
html.os-a11y-readable h3 {
  font-family: Arial, Helvetica, sans-serif !important;
  letter-spacing: 0.04em !important;
  word-spacing: 0.08em !important;
  line-height: 1.75 !important;
}

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

html.os-a11y-focus :focus,
html.os-a11y-focus :focus-visible {
  outline: 3px solid #D5172F !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(255, 230, 0, .55) !important;
}

@media (max-width: 600px) {
  .os-bl-dock { left: 10px; bottom: 10px; }
  .os-bl-btn--a11y { padding: 0; width: 44px; }
  .os-bl-btn__label { display: none; }
  .os-a11y-panel { left: 10px; bottom: 64px; width: calc(100vw - 20px); }
}
