.accessibility-toggle {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.accessibility-toggle[hidden] { display: none; }
.accessibility-toggle img { flex: none; }
.accessibility-toggle:is(:hover, [aria-pressed="true"]) span {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.accessibility-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.site-footer .accessibility-toggle { min-height: 44px; }

@media (max-width: 1000px) {
  .site-header .accessibility-toggle { min-height: 36px; }
}

@media print {
  .accessibility-toggle { display: none; }
}

@media screen {
  html[data-low-vision] {
    --ink: #111;
    --muted: #242424;
    --paper: #fff;
    --soft: #f4f4f4;
    --accent: #182c40;
    --accent-hover: #000;
    --accent-surface: #f4f4f4;
    --line: #777;
    --accent-border: #777;
  }

  html[data-low-vision] :is(body, main, .site-footer, .appointment-dialog) {
    background: #fff !important;
    color: #111 !important;
  }

  html[data-low-vision] :is(main, .site-footer, .appointment-dialog) :where(*:not(svg, svg *, .site-header, .site-header *)) {
    background: transparent !important;
    color: #111 !important;
    text-shadow: none !important;
  }

  html[data-low-vision] :is(.journal-feature, .journal-small-photo, .journal-news-photo)::before,
  html[data-low-vision] .journal-cover {
    display: none;
  }

  html[data-low-vision] :is(main, .site-footer, .appointment-dialog)
    :where(p, li, dt, dd, summary, label, legend, figcaption, small, a, button, input, textarea, select):not(.site-header *, .accessibility-toggle) {
    font-size: max(1em, 16px) !important;
    line-height: 1.5;
  }

  html[data-low-vision] :is(main, .site-footer, .appointment-dialog) a:not(.site-header *) {
    text-decoration: underline;
    text-underline-offset: .18em;
    overflow-wrap: anywhere;
  }

  html[data-low-vision] :is(main, .site-footer, .appointment-dialog)
    :is(button, .main-cta, .site-footer-booking, .contact-directions, input, textarea, select):not(.site-header *, .accessibility-toggle) {
    border: 1px solid #555 !important;
  }

  html[data-low-vision] :is(.site-footer-phone, .contact-phone, .booking-phone, .booking-block__phone) {
    font-size: clamp(22px, 3vw, 30px) !important;
  }

  html[data-low-vision] :is(a, button, summary, input, textarea, select):focus-visible {
    outline: 3px solid #164786;
    outline-offset: 3px;
  }

  html[data-low-vision] .accessibility-toggle {
    color: #111;
    font-size: 14px;
    font-weight: 700;
  }

  html[data-low-vision] .accessibility-toggle[aria-pressed="true"] span {
    text-decoration-thickness: 2px;
  }
}
