/* SUZANA by Miri · accessibility: the adjustments menu (from the B5 sketch) and the classes it sets on <html>. */

/* The decorative 404 is drawn by CSS so it is not text that has to meet contrast. */
.nf-code::before { content: attr(data-code); }

/* Fixed buttons never hide a field that has keyboard focus (WCAG 2.4.11). */
html { scroll-padding-bottom: 96px; }

/* "Stop the motion" next to the moving strip and gallery (WCAG 2.2.2) */
.motion-ctl { display: flex; justify-content: flex-end; margin-top: 8px; }
.motion-btn { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 14px; min-height: 32px; font: inherit; font-size: 14px; cursor: pointer; }
.motion-btn[aria-pressed="true"] { background: var(--ink); color: var(--card); }

/* ---- the button and the panel ---- */
.a11y-btn { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); left: calc(18px + env(safe-area-inset-left, 0px)); z-index: 67; width: 54px; height: 54px; border-radius: 50%; border: 0; background: #1F4E8C; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, .45); }
.a11y-btn svg { width: 30px; height: 30px; }
.a11y-hb { display: flex; align-items: center; gap: 8px; }
.a11y-rst { border: 0; background: #fff; color: #1F4E8C; border-radius: 999px; padding: 7px 12px; min-height: 36px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.a11y-rst[hidden] { display: none; }
.a11y-rst:focus-visible { outline: 3px solid #F2B33D; outline-offset: 2px; }
.a11y-btn.on::after { content: ""; position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #E0C38C; border: 2px solid #fff; }
.a11y-btn:focus-visible { outline: 3px solid #F2B33D; outline-offset: 3px; }

.a11y-panel { position: fixed; inset: auto auto calc(84px + env(safe-area-inset-bottom, 0px)) calc(18px + env(safe-area-inset-left, 0px)); margin: 0; padding: 0; border: 0; width: min(420px, calc(100vw - 36px)); max-height: calc(100vh - 110px); overflow: auto; background: #fff; color: #1d1d1d; border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .5); font-family: Arial, 'Assistant', sans-serif; font-size: 15px; line-height: 1.5; direction: rtl; text-align: start; }
.a11y-panel::backdrop { background: rgba(0, 0, 0, .15); }
.a11y-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #1F4E8C; color: #fff; position: sticky; top: 0; z-index: 1; }
.a11y-h h2 { font: 700 18px Arial, sans-serif; margin: 0; color: #fff; }
.a11y-h h2:focus { outline: none; }
.a11y-h h2:focus-visible { outline: 2px solid #F2B33D; outline-offset: 2px; }
.a11y-x { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 22px; cursor: pointer; }
.a11y-sub { padding: 8px 16px 0; color: #4a4a4a; font-size: 13px; margin: 0; }
.a11y-sec { padding: 10px 16px; }
.a11y-st { display: block; font: 700 14px Arial, sans-serif; margin: 0 0 8px; color: #1d1d1d; }
.a11y-prof { display: flex; flex-wrap: wrap; gap: 6px; }
.a11y-prof button { border: 1px solid #9fb2d0; background: #F3F6FB; border-radius: 999px; padding: 6px 12px; min-height: 32px; font: inherit; font-size: 13px; cursor: pointer; color: #1d1d1d; }
.a11y-prof button[aria-pressed="true"] { background: #1F4E8C; color: #fff; border-color: #1F4E8C; }
.a11y-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.a11y-opt { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; border: 2px solid #c9cfda; background: #fff; border-radius: 14px; padding: 10px 6px; font: inherit; font-size: 13px; cursor: pointer; color: #1d1d1d; min-height: 86px; }
.a11y-opt svg { width: 26px; height: 26px; color: #1F4E8C; }
.a11y-opt[aria-pressed="true"] { border-color: #1F4E8C; background: #EEF3FB; }
.a11y-lab { font-size: 11px; color: #4a4a4a; }
.a11y-opt[aria-pressed="true"] .a11y-lab { color: #1F4E8C; font-weight: 700; }
.a11y-panel :is(button, a):focus-visible { outline: 3px solid #F2B33D; outline-offset: 2px; }
.a11y-nav { display: flex; flex-direction: column; gap: 2px; max-height: 180px; overflow: auto; border: 1px solid #c9cfda; border-radius: 12px; padding: 6px; }
.a11y-nav a { color: #1F4E8C; text-decoration: none; padding: 4px 8px; border-radius: 8px; font-size: 14px; }
.a11y-nav a:hover { background: #EEF3FB; }
.a11y-nav .lv-2 { padding-inline-start: 18px; }
.a11y-nav .lv-3 { padding-inline-start: 30px; font-size: 13px; }
.a11y-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid #e5e5e5; }
.a11y-foot button { border: 0; background: #1F4E8C; color: #fff; border-radius: 999px; padding: 8px 14px; min-height: 36px; font: inherit; cursor: pointer; }
.a11y-foot a { color: #1F4E8C; display: inline-flex; align-items: center; min-height: 36px; padding: 0 4px; }
.a11y-keys { padding: 0 16px 14px; color: #4a4a4a; font-size: 12px; margin: 0; }

/* Phones: a bottom sheet with large targets. */
@media (max-width: 600px) {
  .a11y-btn { width: 48px; height: 48px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); left: calc(14px + env(safe-area-inset-left, 0px)); }
  .a11y-panel { inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: 85vh; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .a11y-prof button, .a11y-foot :is(button, a), .a11y-nav a, .a11y-x { min-height: 44px; }
  .a11y-x { min-width: 44px; }
  .a11y-nav a { display: flex; align-items: center; }
}

/* By id, not class: the options "a11y-guide" and "a11y-mask" are also class names on <html>, and these rules would turn the whole page unclickable. */
#a11yGuide { position: fixed; left: 0; right: 0; height: 28px; z-index: 110; pointer-events: none; border-block: 3px solid #F2B33D; background: rgba(242, 179, 61, .12); }
#a11yMask { position: fixed; inset: 0; z-index: 109; pointer-events: none; }
#a11yMask i { position: fixed; left: 0; right: 0; background: rgba(0, 0, 0, .55); }
#a11yMask i:first-child { top: 0; }
#a11yMask i:last-child { bottom: 0; }
#a11yGuide[hidden], #a11yMask[hidden] { display: none; }

/* ---- the adjustments ----
   Text size zooms the page content: the site's type is set in px, so zoom (which reflows the layout)
   grows text and layout together. shortcut: zoom, not rem; move font sizes to rem if the CSS is rewritten. */
html[class*="a11y-fs-"] body { overflow-x: clip; }
html.a11y-fs-1 :is(#app, footer) { zoom: 1.1; }
html.a11y-fs-2 :is(#app, footer) { zoom: 1.2; }
html.a11y-fs-3 :is(#app, footer) { zoom: 1.32; }
html.a11y-fs-4 :is(#app, footer) { zoom: 1.45; }
html.a11y-fs-1 .navbar { zoom: 1.05; }
html.a11y-fs-2 .navbar { zoom: 1.08; }
html:is(.a11y-fs-3, .a11y-fs-4) .navbar { zoom: 1.12; }
html[class*="a11y-fs-"] .navbar nav { flex-wrap: wrap; }
html:is([class*="a11y-ls-"], [class*="a11y-fs-"]) :is(#app, footer) :is(p, h1, h2, h3, h4, small, span, b, a, li, label, blockquote, figcaption) { overflow-wrap: anywhere; }
html:is([class*="a11y-ls-"], [class*="a11y-fs-"]) #app :is(.btn, button, .more) { white-space: normal !important; max-width: 100%; height: auto; }

html.a11y-lh-1 :is(#app, footer) * { line-height: 1.9 !important; }
html.a11y-lh-2 :is(#app, footer) * { line-height: 2.2 !important; }
html.a11y-lh-3 :is(#app, footer) * { line-height: 2.5 !important; }
html[class*="a11y-lh-"] :is(.btn, button, .chips span) { line-height: 1.3 !important; }
html.a11y-ls-1 :is(#app, footer, .navbar) * { letter-spacing: .06em !important; word-spacing: .12em !important; }
html.a11y-ls-2 :is(#app, footer, .navbar) * { letter-spacing: .12em !important; word-spacing: .2em !important; }
html.a11y-ls-3 :is(#app, footer, .navbar) * { letter-spacing: .18em !important; word-spacing: .3em !important; }
html.a11y-font :is(#app, footer, .navbar) *:not(svg):not(path) { font-family: Arial, 'Assistant', Helvetica, sans-serif !important; }

html:is(.a11y-contrast-dark, .a11y-contrast-light, .a11y-contrast-high) :is(.h5bg, .b5bg, .amb, #thread) { display: none !important; }
html:is(.a11y-contrast-dark, .a11y-contrast-light, .a11y-contrast-high) :is(#app, footer, .navbar) :is(*, *::before, *::after) { background-image: none !important; text-shadow: none !important; backdrop-filter: none !important; }
html.a11y-contrast-dark, html.a11y-contrast-dark body { background: #111 !important; }
html.a11y-contrast-dark :is(#app, footer, .navbar, .navbar *) :not(img):not(svg):not(path) { background-color: #151515 !important; color: #f5f5f5 !important; border-color: #666 !important; }
html.a11y-contrast-dark :is(#app, footer, .navbar) a { color: #7FC4FF !important; }
html.a11y-contrast-light, html.a11y-contrast-light body { background: #fff !important; }
html.a11y-contrast-light :is(#app, footer, .navbar, .navbar *) :not(img):not(svg):not(path) { background-color: #fff !important; color: #000 !important; border-color: #333 !important; }
html.a11y-contrast-light :is(#app, footer, .navbar) a { color: #0645AD !important; }
html.a11y-contrast-high, html.a11y-contrast-high body { background: #000 !important; }
html.a11y-contrast-high :is(#app, footer, .navbar, .navbar *) :not(img):not(svg):not(path) { background-color: #000 !important; color: #fff !important; border-color: #fff !important; }
html.a11y-contrast-high :is(#app, footer, .navbar) :is(a, button) { color: #FFEB3B !important; }

html.a11y-mono { filter: grayscale(1); }
html.a11y-sat { filter: saturate(.45); }
html.a11y-mono.a11y-sat { filter: grayscale(1); }
html.a11y-links :is(#app, footer, .navbar) a { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; outline: 2px solid #F2B33D; outline-offset: 2px; }
html.a11y-heads #app :is(h1, h2, h3) { outline: 2px dashed #1F4E8C; outline-offset: 4px; background: rgba(31, 78, 140, .06); }
html.a11y-cursor, html.a11y-cursor * { 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='M5 3l14 10-6 1 3 7-3 1-3-7-5 4z' fill='%23000' stroke='%23fff' stroke-width='1.2'/%3E%3C/svg%3E") 4 2, auto !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a11y-imgs :is(#app, footer) img { visibility: hidden !important; }
html.a11y-imgs :is(.h5bg, .b5bg) { display: none !important; }
html.a11y-focus :focus-visible, html.a11y-focus :focus { outline: 4px solid #F2B33D !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px rgba(31, 78, 140, .45) !important; }

.a11y-contact { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 10px 0 0; }
.a11y-contact dt { font-weight: 700; }
.a11y-contact dd { margin: 0; }

