/* Shared accessibility widget styles — included on every page. */

:focus-visible {
  outline: 3px solid var(--accent, #a3312b);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink, #1c1a17);
  color: var(--wall, #f7f5f1);
  padding: 0.8rem 1.2rem;
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 0 0 3px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- accessibility states ---------- */
html.a11y-text-lg { font-size: 112.5%; }
html.a11y-text-xl { font-size: 125%; }
html.a11y-contrast {
  --wall: #ffffff;
  --wall-raised: #ffffff;
  --ink: #000000;
  --ink-soft: #000000;
  --line: #000000;
  --accent: #0000ee;
}
html.a11y-stop-motion,
html.a11y-stop-motion * {
  scroll-behavior: auto !important;
  transition: none !important;
  animation: none !important;
}

/* ---------- accessibility widget ---------- */
.a11y-toggle {
  position: fixed;
  bottom: 1.2rem;
  inset-inline-end: 1.2rem;
  z-index: 200;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--ink, #1c1a17);
  color: var(--wall, #f7f5f1);
  border: none;
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(28, 26, 23, 0.5);
}
.a11y-toggle:hover { background: var(--accent, #a3312b); }
.a11y-panel {
  position: fixed;
  bottom: 4.8rem;
  inset-inline-end: 1.2rem;
  z-index: 200;
  width: min(280px, calc(100vw - 2.4rem));
  background: var(--wall, #f7f5f1);
  border: 1px solid var(--line, #ddd6c9);
  border-radius: 6px;
  box-shadow: 0 12px 30px -10px rgba(28, 26, 23, 0.4);
  padding: 1.1rem;
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 {
  font-size: 0.95rem;
  margin: 0 0 0.9rem;
  font-family: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.a11y-panel button {
  display: block;
  width: 100%;
  text-align: start;
  margin-bottom: 0.5rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.85rem;
  background: var(--wall-raised, #efebe3);
  color: var(--ink, #1c1a17);
  border: 1px solid var(--line, #ddd6c9);
  border-radius: 3px;
  cursor: pointer;
}
.a11y-panel button[aria-pressed="true"] {
  background: var(--ink, #1c1a17);
  color: var(--wall, #f7f5f1);
  border-color: var(--ink, #1c1a17);
}
.a11y-panel button:last-child { margin-bottom: 0; }
