﻿/* Accessibility/a11y.css - the site's own accessibility button + menu + statement (no outside plugin). Built by
   Accessibility/a11y.js, loaded on every page from Accessibility/head.asp. Everything of the widget lives under #a11y,
   and every page mode below leaves #a11y out, so the menu itself never changes under the user.
   Colors: the site's terracotta, darkened to #a4583e so text on white keeps a readable contrast. Bottom RIGHT corner -
   the bottom left one is the WhatsApp button's */

/* ===== the widget ===== */
#a11y, #a11y * { box-sizing: border-box; font-family: Arial, Helvetica, sans-serif; letter-spacing: normal; word-spacing: normal; text-transform: none; }
#a11y { direction: rtl; color: #1f2937; font-size: 15px; line-height: 1.4; }
#a11y button { font: inherit; color: inherit; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
#a11y [hidden] { display: none !important; }
#a11y svg { display: block; flex-shrink: 0; }

/* the round button, bottom right */
#a11y-btn {
    position: fixed; right: 25px; bottom: 25px; z-index: 2147483000; width: 56px; height: 56px; padding: 0;
    border-radius: 50%; border: 2px solid #a4583e; background: #fff; color: #a4583e;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
#a11y #a11y-btn { color: #a4583e; } /* over "#a11y button { color: inherit }" */
#a11y-btn svg { width: 34px; height: 34px; }
#a11y-btn:hover, #a11y-btn[aria-expanded="true"] { background: #fbeee8; }
#a11y button:focus-visible { outline: 3px solid #a4583e; outline-offset: 2px; }

/* the menu, above the button */
#a11y-panel {
    position: fixed; right: 16px; bottom: 92px; z-index: 2147483000; width: 340px; max-width: calc(100vw - 32px);
    max-height: calc(100vh - 108px); overflow-y: auto; overscroll-behavior: contain;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.a11y-head {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px;
    border-bottom: 2px solid #a4583e; position: sticky; top: 0; background: #fff; z-index: 1;
}
.a11y-title { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 18px; font-weight: bold; color: #a4583e; }
.a11y-title svg { width: 24px; height: 24px; }
#a11y .a11y-x {
    width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 1px solid #e5e7eb; background: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: bold; line-height: 1;
}
#a11y .a11y-x:hover { background: #fbeee8; color: #a4583e; border-color: #a4583e; }
.a11y-body { padding: 4px 14px 8px; }
.a11y-group { padding: 10px 0; border-bottom: 1px solid #f0f1f3; }
.a11y-group:last-child { border-bottom: 0; }
.a11y-gtitle { margin: 0 0 8px; font-size: 14px; font-weight: bold; color: #6b7280; }

/* text size: - 100% + */
.a11y-size { display: flex; align-items: center; gap: 8px; }
#a11y .a11y-size button {
    flex: 1; height: 42px; padding: 0 8px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; font-weight: bold; font-size: 15px;
}
#a11y .a11y-size button:hover { border-color: #a4583e; background: #fbeee8; color: #a4583e; }
#a11y .a11y-size button:disabled { opacity: .4; cursor: default; background: #fff; border-color: #e5e7eb; color: inherit; }
.a11y-size-val { min-width: 56px; text-align: center; font-weight: bold; font-size: 16px; }

/* on / off options, two in a row */
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#a11y .a11y-opt {
    display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; text-align: right;
    border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; font-size: 14px; line-height: 1.25;
}
#a11y .a11y-opt:hover { border-color: #a4583e; background: #fbeee8; }
#a11y .a11y-opt .a11y-check {
    width: 18px; height: 18px; flex-shrink: 0; border: 2px solid #9ca3af; border-radius: 5px; position: relative;
}
#a11y .a11y-opt[aria-pressed="true"] { border-color: #a4583e; background: #fbeee8; color: #a4583e; font-weight: bold; }
#a11y .a11y-opt[aria-pressed="true"] .a11y-check { border-color: #a4583e; background: #a4583e; }
#a11y .a11y-opt[aria-pressed="true"] .a11y-check::after {
    content: ""; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* reset + statement */
.a11y-foot { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid #e5e7eb; }
#a11y .a11y-foot button {
    flex: 1; height: 42px; padding: 0 8px; border-radius: 10px; font-size: 14px; font-weight: bold;
    border: 1px solid #e5e7eb; background: #fff;
}
#a11y .a11y-foot button:hover { border-color: #a4583e; background: #fbeee8; color: #a4583e; }
#a11y .a11y-foot .a11y-stmt-open { border-color: #a4583e; color: #a4583e; }

/* the statement window - closes only from its X / its button (never by a click outside it) */
.a11y-overlay {
    position: fixed; inset: 0; z-index: 2147483001; background: rgba(17,24,39,.55);
    display: flex; align-items: center; justify-content: center; padding: 12px;
}
.a11y-modal {
    position: relative; width: 760px; max-width: 100%; max-height: calc(100vh - 24px); overflow-y: auto;
    background: #fff; border-radius: 16px; border: 1px solid #e5e7eb; box-shadow: 0 10px 30px rgba(0,0,0,.25); padding: 22px 26px 24px;
}
.a11y-modal .a11y-x { position: absolute; top: 14px; left: 14px; }
.a11y-modal h2 { margin: 0 0 14px; padding: 0 40px; text-align: center; font-size: 22px; color: #a4583e; }
.a11y-modal h3 { margin: 16px 0 6px; font-size: 16px; color: #1f2937; }
.a11y-modal p, .a11y-modal li { margin: 0 0 6px; font-size: 15px; line-height: 1.6; color: #1f2937; }
.a11y-modal ul { margin: 0 0 6px; padding: 0 20px 0 0; }
.a11y-modal a { color: #a4583e; }
.a11y-modal .a11y-modal-foot { margin-top: 16px; text-align: center; }
#a11y .a11y-modal .a11y-close-btn {
    height: 42px; padding: 0 28px; border-radius: 10px; border: 1px solid #a4583e; background: #a4583e; color: #fff; font-weight: bold;
}
#a11y .a11y-modal .a11y-close-btn:hover { background: #8a4630; }

@media (max-width: 640px) {
    #a11y-panel { left: 12px; right: 12px; width: auto; max-width: none; bottom: 92px; max-height: calc(100vh - 108px); }
    .a11y-modal { padding: 18px 16px 20px; }
    .a11y-modal h2 { font-size: 20px; }
}

/* ===== what the options do to the page (classes on <html>, set by a11y.js and by the early script in head.asp) ===== */

/* colors - one at a time */
html.a11y-gray body > *:not(#a11y) { filter: grayscale(1); }
html.a11y-invert body { background: #0c0b0a !important; }
html.a11y-invert body > *:not(#a11y) { filter: invert(1) hue-rotate(180deg); }
html.a11y-invert body > *:not(#a11y) :is(img, video, iframe) { filter: invert(1) hue-rotate(180deg); }
html.a11y-contrast body,
html.a11y-contrast body *:not(#a11y):not(#a11y *) {
    background-color: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; text-shadow: none !important;
}
html.a11y-contrast body a:not(#a11y *), html.a11y-contrast body a:not(#a11y *) * { color: #ffeb3b !important; }

/* readable font, text spacing */
html.a11y-font body *:not(#a11y):not(#a11y *) { font-family: Arial, Helvetica, sans-serif !important; }
html.a11y-spacing body :is(p, li, dd, dt, td, th, label, blockquote, figcaption, h1, h2, h3, h4, h5, h6):not(#a11y *) {
    letter-spacing: .06em !important; word-spacing: .16em !important; line-height: 1.9 !important;
}

/* stop movement */
html.a11y-still *:not(#a11y *), html.a11y-still *::before, html.a11y-still *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

/* marks: links, headings, the focused element */
html.a11y-links body a:not(#a11y *) { text-decoration: underline !important; outline: 2px solid #a4583e !important; outline-offset: 2px !important; }
html.a11y-headings body :is(h1, h2, h3, h4, h5, h6):not(#a11y *) { outline: 2px dashed #a4583e !important; outline-offset: 3px !important; }
html.a11y-focus body *:focus { outline: 3px solid #a4583e !important; outline-offset: 2px !important; box-shadow: 0 0 0 6px rgba(164,88,62,.3) !important; }

/* a big mouse pointer */
html.a11y-cursor, html.a11y-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 11-6.5 1 3.8 7.2-2.6 1.4-3.8-7.3L4 19.5z' fill='%23000' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}

/* phone: a smaller button, lower in the corner - with the WhatsApp button it doesn't cover the line under the page's first button */
@media (max-width: 768px) {
    #a11y-btn { width: 46px; height: 46px; right: 16px; bottom: 16px; }
    #a11y-btn svg { width: 28px; height: 28px; }
}
