/* First-party accessibility overlay. Opt-in via a distinct stylesheet include.
   Omitting this file (and a11y.js) leaves the core site unchanged. */

#sw-a11y-trigger {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 80;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--sw-navy, #1c3868);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

#sw-a11y-panel {
  position: fixed;
  left: 12px;
  bottom: 68px;
  z-index: 80;
  width: min(280px, calc(100vw - 24px));
  background: #fff;
  color: #111;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  display: none;
}

#sw-a11y-panel.is-open { display: block; }

#sw-a11y-panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

#sw-a11y-panel button {
  display: block;
  width: 100%;
  margin: 0.35rem 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid #ddd;
  background: #f7f7f7;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

#sw-a11y-panel button[aria-pressed="true"] {
  background: var(--sw-navy, #1c3868);
  color: #fff;
  border-color: var(--sw-navy, #1c3868);
}

html.sw-a11y-contrast {
  filter: contrast(1.35) saturate(0.85);
  background: #000;
}

html.sw-a11y-contrast body {
  background: #000;
  color: #fff;
}

html.sw-a11y-text { font-size: 125%; }

html.sw-a11y-links a {
  text-decoration: underline !important;
  outline: 2px solid #ffc60b;
  outline-offset: 2px;
}

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