/* Accessibility: skip link, accessibility menu and its display modes. Shared by every page. */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  padding: 10px 16px; border-radius: 8px;
  background: var(--ink, #1d1b1f); color: #fff; font-weight: 600; font-size: 15px;
  transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* Floating button */
.a11y-btn {
  position: fixed; left: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 900;
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff;
  background: var(--ink, #1d1b1f); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px rgb(29 27 31 / .28);
}
.a11y-btn svg { width: 30px; height: 30px; }
.a11y-btn:hover { background: var(--pink, #d4135f); }
.a11y-btn:focus-visible { outline: 3px solid var(--pink, #d4135f); outline-offset: 3px; }

/* Panel */
.a11y-panel {
  position: fixed; left: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 80px); z-index: 901;
  width: min(320px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow-y: auto;
  background: #fff; color: var(--ink, #1d1b1f);
  border: 1px solid #e4e0e2; border-radius: 16px; padding: 18px;
  box-shadow: 0 18px 50px rgb(29 27 31 / .22);
  font-family: var(--font, system-ui, sans-serif); font-size: 15px; line-height: 1.4;
}
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.a11y-panel .a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.a11y-panel .a11y-size { display: flex; gap: 6px; }
.a11y-panel button {
  font: inherit; cursor: pointer; border-radius: 10px;
  border: 1.5px solid #d6d1d4; background: #fff; color: var(--ink, #1d1b1f);
}
.a11y-panel .a11y-size button { width: 44px; height: 40px; font-size: 18px; font-weight: 700; }
.a11y-panel .a11y-toggle {
  display: flex; width: 100%; align-items: center; justify-content: space-between;
  padding: 10px 12px; margin-bottom: 8px; text-align: start; font-weight: 500;
}
.a11y-panel .a11y-toggle::after {
  content: attr(data-off); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #5c5760;
}
.a11y-panel .a11y-toggle[aria-pressed="true"] { border-color: var(--pink, #d4135f); background: #fde7f0; }
.a11y-panel .a11y-toggle[aria-pressed="true"]::after { content: attr(data-on); color: var(--pink, #d4135f); }
.a11y-panel button:hover { border-color: var(--pink, #d4135f); }
.a11y-panel button:focus-visible { outline: 3px solid var(--pink, #d4135f); outline-offset: 2px; }
.a11y-panel .a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.a11y-panel .a11y-reset { padding: 8px 12px; font-weight: 600; }
.a11y-panel .a11y-foot a { font-size: 14px; font-weight: 600; text-decoration: underline; color: var(--ink, #1d1b1f); }

/* Modes, set as classes on <html> */
html.a11y-text-1 body { zoom: 1.15; }
html.a11y-text-2 body { zoom: 1.3; }

html.a11y-contrast { --muted: #2e2b31; --pink: #a50d48; --tile: #ffffff; --tile-line: #2e2b31; }
html.a11y-contrast body { background: #fff; color: #1d1b1f; }
html.a11y-contrast p, html.a11y-contrast li, html.a11y-contrast span { color: inherit; }
html.a11y-contrast .tile .cap { opacity: 1 !important; transform: none !important; background: #1d1b1f !important; color: #fff !important; }
html.a11y-contrast .btn, html.a11y-contrast button { border: 2px solid #1d1b1f; }

html.a11y-links a:not(.a11y-btn):not(.skip-link) { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-links a:not(.a11y-btn):not(.skip-link):not(.tile):not(.logo) { background: #fff3a8; color: #1d1b1f !important; }
html.a11y-links a.tile, html.a11y-links a.logo { outline: 3px solid #1d1b1f; outline-offset: 2px; }

html.a11y-font body, html.a11y-font button, html.a11y-font input, html.a11y-font textarea {
  font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .03em !important; word-spacing: .12em;
}
html.a11y-font p, html.a11y-font li { line-height: 1.8 !important; }

html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}
.site-footer nav { flex-wrap: wrap; row-gap: 8px; }
