/* Accessibility adjustments panel and the page adjustments it applies (see a11y.js).
   Page-wide rules target `body > :not(.a11y-root)` so they never restyle the panel. */

/* ---------- Panel ---------- */
.a11y-root { font: 400 15px/1.35 var(--font-figtree), "Helvetica Neue", Arial, sans-serif; letter-spacing: 0; color: #1d1d1f; text-align: left; }
.a11y-root *, .a11y-root *::before { box-sizing: border-box; }
.a11y-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 2147483000;
  width: 52px; height: 52px; border-radius: 12px; border: 0;
  background: #41739f; color: #fff; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.a11y-fab:hover { transform: scale(1.06); }
.a11y-panel {
  position: fixed; right: 16px; bottom: 80px; z-index: 2147483001;
  width: min(420px, calc(100vw - 32px)); max-height: min(720px, calc(100vh - 100px));
  display: flex; flex-direction: column;
  background: #f4f6f8; border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.a11y-panel[hidden] { display: none; }
.a11y-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #233947; color: #fff; }
.a11y-panel__head h2 { margin: 0; font: 600 18px/1.2 inherit; font-family: inherit; text-transform: none; letter-spacing: 0; color: #fff; text-align: left; }
.a11y-close { background: none; border: 0; color: #fff; font-size: 28px; line-height: 1; width: 40px; height: 40px; cursor: pointer; border-radius: 8px; }
.a11y-actions { display: flex; gap: 8px; padding: 10px 18px; background: #233947; }
.a11y-actions > * {
  flex: 1; text-align: center; padding: 8px 6px; border-radius: 999px; border: 0;
  background: #fff; color: #233947; font: 500 13px/1.2 inherit; font-family: inherit; text-decoration: none; cursor: pointer;
}
.a11y-body { overflow-y: auto; padding: 12px; display: grid; gap: 12px; }
.a11y-section { background: #fff; border-radius: 12px; padding: 12px; }
.a11y-section h3 { margin: 0 0 10px; font: 600 15px/1.2 inherit; font-family: inherit; text-transform: none; letter-spacing: 0; color: #1d1d1f; text-align: left; }
.a11y-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.a11y-stepper, .a11y-colors, .a11y-wide { grid-column: 1 / -1; }
.a11y-tile {
  min-height: 64px; padding: 8px; border-radius: 10px; border: 2px solid transparent;
  background: #eef2f6; color: #1d1d1f; font: 500 13px/1.2 inherit; font-family: inherit; cursor: pointer;
}
.a11y-tile:hover { background: #e2e8ef; }
.a11y-tile[aria-pressed="true"] { background: #41739f; color: #fff; border-color: #233947; }
.a11y-stepper, .a11y-colors { background: #eef2f6; border-radius: 10px; padding: 8px 10px; }
.a11y-stepper__label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 6px; }
.a11y-stepper__row { display: flex; align-items: center; gap: 8px; }
.a11y-stepper__row output { flex: 1; text-align: center; background: #fff; border-radius: 999px; padding: 6px; font-size: 13px; }
.a11y-stepper__row button {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: #41739f; color: #fff;
  font-size: 20px; line-height: 1; cursor: pointer;
}
.a11y-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.a11y-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #9aa4ae; cursor: pointer; }
.a11y-swatch[aria-pressed="true"] { outline: 3px solid #233947; outline-offset: 2px; }
.a11y-link-btn { background: none; border: 0; padding: 4px 0; color: #234f78; text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
.a11y-wide select { width: 100%; padding: 10px; border-radius: 999px; border: 1px solid #9aa4ae; background: #fff; font: inherit; }
.a11y-profile {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 4px; border-top: 1px solid #e5e9ee; cursor: pointer;
}
.a11y-profile:first-of-type { border-top: 0; }
.a11y-profile span { display: grid; gap: 2px; }
.a11y-profile small { color: #555; font-size: 12.5px; }
.a11y-profile input { width: 44px; height: 24px; accent-color: #41739f; flex-shrink: 0; }
.a11y-root :focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }

/* ---------- Overlays ---------- */
.a11y-guide-bar, .a11y-mask-top, .a11y-mask-bottom { display: none; position: fixed; left: 0; right: 0; pointer-events: none; z-index: 2147482000; }
html.a11y-guide .a11y-guide-bar { display: block; top: 0; height: 10px; background: #233947; border: 2px solid #f6dccf; border-radius: 4px; }
html.a11y-mask .a11y-mask-top { display: block; top: 0; background: rgba(0, 0, 0, 0.55); }
html.a11y-mask .a11y-mask-bottom { display: block; bottom: 0; background: rgba(0, 0, 0, 0.55); }
.a11y-magnifier-box {
  position: fixed; z-index: 2147482500; max-width: 360px; padding: 12px 14px; pointer-events: none;
  background: #111; color: #fff; border-radius: 10px; font-size: 26px; line-height: 1.3;
}
html:not(.a11y-magnifier) .a11y-magnifier-box { display: none; }

/* ---------- Content ---------- */
html.a11y-scaled body > :not(.a11y-root) { zoom: var(--a11y-scale); }
html.a11y-font { font-size: calc(100% * var(--a11y-font)); }
html.a11y-lh body > :not(.a11y-root) :is(p, li, blockquote, address, td) { line-height: var(--a11y-lh) !important; }
html.a11y-ls body > :not(.a11y-root) :is(p, li, blockquote, address, td, h1, h2, h3, a) { letter-spacing: var(--a11y-ls) !important; word-spacing: 0.12em; }
html.a11y-readable body > :not(.a11y-root),
html.a11y-readable body > :not(.a11y-root) * { font-family: Verdana, Arial, Helvetica, sans-serif !important; font-weight: 400 !important; }
html.a11y-titles body > :not(.a11y-root) :is(h1, h2, h3) { outline: 3px solid #b45309; outline-offset: 4px; }
html.a11y-links body > :not(.a11y-root) a { text-decoration: underline !important; outline: 2px solid #1f5fa8; outline-offset: 2px; background: #fff7c2; color: #0b3d91 !important; }
html.a11y-align-left body > :not(.a11y-root) :is(p, li, h1, h2, h3, blockquote, address) { text-align: left !important; }
html.a11y-align-center body > :not(.a11y-root) :is(p, li, h1, h2, h3, blockquote, address) { text-align: center !important; }
html.a11y-align-right body > :not(.a11y-root) :is(p, li, h1, h2, h3, blockquote, address) { text-align: right !important; }

/* ---------- Color ---------- */
html.a11y-contrast-dark body,
html.a11y-contrast-dark body > :not(.a11y-root),
html.a11y-contrast-dark body > :not(.a11y-root) * { background-color: #121212 !important; color: #f1f1f1 !important; border-color: #555 !important; }
html.a11y-contrast-dark body > :not(.a11y-root) a { color: #9ecbff !important; }
html.a11y-contrast-light body,
html.a11y-contrast-light body > :not(.a11y-root),
html.a11y-contrast-light body > :not(.a11y-root) * { background-color: #fff !important; color: #111 !important; }
html.a11y-contrast-light body > :not(.a11y-root) a { color: #0b3d91 !important; }
html.a11y-contrast-high body,
html.a11y-contrast-high body > :not(.a11y-root),
html.a11y-contrast-high body > :not(.a11y-root) * { background-color: #000 !important; color: #fff !important; border-color: #fff !important; }
html.a11y-contrast-high body > :not(.a11y-root) a { color: #ffeb3b !important; text-decoration: underline !important; }
html.a11y-contrast-high body > :not(.a11y-root) :is(h1, h2, h3, h1 *, h2 *) { color: #7fdbff !important; }
html.a11y-saturation-high body > :not(.a11y-root) { filter: saturate(2); }
html.a11y-saturation-low body > :not(.a11y-root) { filter: saturate(0.5); }
html.a11y-saturation-mono body > :not(.a11y-root) { filter: grayscale(1); }
html.a11y-text-color body > :not(.a11y-root) :is(p, li, blockquote, address, td, span, a, label) { color: var(--a11y-textColor) !important; }
html.a11y-title-color body > :not(.a11y-root) :is(h1, h2, h3, h1 *, h2 *, h3 *) { color: var(--a11y-titleColor) !important; }
html.a11y-bg-color body,
html.a11y-bg-color body > :not(.a11y-root),
html.a11y-bg-color body > :not(.a11y-root) :is(section, div, header, footer, main, article, nav) { background-color: var(--a11y-bgColor) !important; }

/* ---------- Navigation & focus ---------- */
html.a11y-motion body > :not(.a11y-root),
html.a11y-motion body > :not(.a11y-root) *,
html.a11y-motion body > :not(.a11y-root) *::before,
html.a11y-motion body > :not(.a11y-root) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-motion [data-reveal], html.a11y-motion [data-reveal] img { opacity: 1 !important; transform: none !important; filter: none !important; }
html.a11y-hide-images body > :not(.a11y-root) :is(img, .img-placeholder, svg, picture) { visibility: hidden !important; }
html.a11y-read-mode body > :not(.a11y-root) :is(img, .img-placeholder, .reveal-frame, figure) { display: none !important; }
html.a11y-read-mode body > :not(.a11y-root) :is(.split, .grid2) { display: block !important; max-width: 70ch; margin-inline: auto !important; }
html.a11y-read-mode body > :not(.a11y-root) .grid2 > * { border: 0 !important; }
html.a11y-hover body > :not(.a11y-root) :is(p, li, a, h1, h2, h3, img, button, blockquote):hover { outline: 3px dashed #b45309; outline-offset: 3px; }
html.a11y-focus body > :not(.a11y-root) :focus { outline: 4px solid #f59e0b !important; outline-offset: 3px !important; box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.35) !important; }
html.a11y-cursor-black, html.a11y-cursor-black * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l7.5 19 2.5-7.5L20.5 11z' fill='%23000' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E") 4 2, auto !important;
}
html.a11y-cursor-white, html.a11y-cursor-white * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M3 2l7.5 19 2.5-7.5L20.5 11z' fill='%23fff' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") 4 2, auto !important;
}

@media (max-width: 480px) {
  .a11y-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
