.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 200;
  background: #fff;
  color: #042e6b;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.skip-link:focus {
  top: 12px;
}

.a11y-widget {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}
.a11y-toggle {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-800);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(4, 46, 107, .35);
  display: grid;
  place-items: center;
}
.a11y-toggle:hover,
.a11y-toggle:focus-visible {
  background: var(--blue-900);
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
.a11y-panel {
  display: none;
  position: absolute;
  left: 0;
  bottom: 70px;
  width: min(320px, calc(100vw - 36px));
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
  border: 1px solid var(--line);
}
.a11y-panel.is-open { display: block; }
.a11y-panel h2 {
  margin: 0 0 12px;
  font-size: 16px;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--blue-900);
}
.a11y-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.a11y-actions button {
  border: 1px solid var(--line);
  background: #f5f9fd;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}
.a11y-actions button:hover,
.a11y-actions button.is-on {
  background: var(--blue-800);
  color: #fff;
  border-color: var(--blue-800);
}
.a11y-fs {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.a11y-fs button {
  flex: 1;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  font-weight: 800;
  cursor: pointer;
  color: var(--blue-900);
}
.a11y-reset {
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: var(--blue-900);
  color: #fff;
  border-radius: 10px;
  padding: 10px;
  font-weight: 800;
  cursor: pointer;
}
.a11y-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
}

html.a11y-underline a { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-gray { filter: grayscale(1); }
html.a11y-readable,
html.a11y-readable body,
html.a11y-readable button,
html.a11y-readable input,
html.a11y-readable select,
html.a11y-readable textarea {
  font-family: Arial, Verdana, "Segoe UI", sans-serif !important;
}
html.a11y-spacing body {
  line-height: 1.9;
  letter-spacing: .03em;
  word-spacing: .12em;
}
html.a11y-pause *,
html.a11y-pause *::before,
html.a11y-pause *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-cursor,
html.a11y-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath fill='%230429A1' stroke='%23fff' stroke-width='2' d='M6 4l16 36 4-12 12-4z'/%3E%3C/svg%3E") 4 4, auto !important;
}

html.a11y-contrast,
html.a11y-contrast body {
  background: #000 !important;
  color: #fff !important;
}
html.a11y-contrast .site-header,
html.a11y-contrast .nav,
html.a11y-contrast .topbar,
html.a11y-contrast .site-footer,
html.a11y-contrast .panel,
html.a11y-contrast .prose,
html.a11y-contrast .card,
html.a11y-contrast .news-card,
html.a11y-contrast .a11y-panel,
html.a11y-contrast input,
html.a11y-contrast select,
html.a11y-contrast textarea,
html.a11y-contrast .org-card,
html.a11y-contrast .link-tile {
  background: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
}
html.a11y-contrast a,
html.a11y-contrast .site-footer a { color: #ffff00 !important; }
html.a11y-contrast .btn,
html.a11y-contrast .a11y-toggle,
html.a11y-contrast .a11y-reset {
  background: #ffff00 !important;
  color: #000 !important;
}
html.a11y-contrast img,
html.a11y-contrast .news-thumb,
html.a11y-contrast .slide,
html.a11y-contrast .page-banner,
html.a11y-contrast .gallery figure {
  filter: grayscale(1) contrast(1.4);
}

html.a11y-dark {
  color-scheme: dark;
}
html.a11y-dark body {
  background: #07111f;
  color: #e8f1fb;
}
html.a11y-dark .site-header,
html.a11y-dark .panel,
html.a11y-dark .prose,
html.a11y-dark .card,
html.a11y-dark .news-card,
html.a11y-dark .a11y-panel,
html.a11y-dark .link-tile,
html.a11y-dark .org-card.light {
  background: #0d1b2e;
  color: #e8f1fb;
}
html.a11y-dark .nav,
html.a11y-dark .topbar,
html.a11y-dark .site-footer,
html.a11y-dark .info-strip { background: #050b14; }
html.a11y-dark a { color: #7fd4ff; }

@media (max-width: 980px) {
  .a11y-widget { left: 12px; bottom: 12px; }
  .a11y-toggle { width: 52px; height: 52px; }
}
