/* ابزار دسترس‌پذیری */
.a11y{font-family:Vazirmatn,Tahoma,sans-serif;direction:rtl;font-size:14px;line-height:1.6;color:#14202a;text-shadow:none}
.a11y *{box-sizing:border-box}
.a11y button{all:unset;box-sizing:border-box;cursor:pointer;font-family:inherit;-webkit-tap-highlight-color:transparent}
.a11y .a11y-fab{position:fixed;z-index:99990;left:18px;bottom:18px;width:46px;height:46px;border-radius:50%;border:0;padding:0;display:grid;place-items:center;cursor:pointer;color:#fff;
  background:linear-gradient(135deg,#4aa8ec,#1d74c4);box-shadow:0 10px 24px -10px rgba(12,53,97,.8),0 0 0 2px rgba(255,255,255,.7);transition:transform .25s}
.a11y .a11y .a11y-fab:hover{transform:scale(1.08)}
.a11y .a11y .a11y-fab:focus-visible,.a11y .a11y-o:focus-visible,.a11y .a11y-x:focus-visible,.a11y .a11y-reset:focus-visible{outline:3px solid #ffb703;outline-offset:2px}
.a11y .a11y .a11y-fab svg{width:28px;height:28px}
body.home .a11y-fab{bottom:auto;top:22px;left:124px}
.a11y-p{position:fixed;z-index:99991;left:18px;bottom:76px;width:min(340px,calc(100vw - 36px));max-height:calc(100vh - 100px);overflow:auto;padding:16px;border-radius:20px;background:#fff;
  border:1px solid #dbe8f5;box-shadow:0 30px 60px -20px rgba(12,53,97,.55)}
body.home .a11y-p{bottom:auto;top:76px;left:124px}
.a11y-p[hidden]{display:none}
.a11y-p header{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px;font-size:16px;color:#0c3561}
.a11y .a11y-x{width:32px;height:32px;border-radius:50%;border:1px solid #cfe0f1;background:#fff;font-size:20px;line-height:1;cursor:pointer;color:#0c3561}
.a11y-note{margin:0 0 12px;font-size:12px;color:#5b6b78;line-height:1.9}
.a11y-g{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.a11y .a11y-o{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:11px 12px;border-radius:14px;border:1.5px solid #dbe8f5;background:#f6faff;color:#14202a;font:inherit;font-size:13px;font-weight:600;text-align:right;cursor:pointer;transition:.2s}
.a11y .a11y .a11y-o:hover{border-color:#4aa8ec}
.a11y .a11y .a11y-o[aria-pressed=true]{background:#1d74c4;border-color:#1d74c4;color:#fff}
.a11y .a11y .a11y-o i{display:none}
.a11y .a11y .a11y-o em{font-style:normal;font-size:11px;opacity:.75;font-weight:500;min-height:1em}
.a11y .a11y-reset{width:100%;margin-top:12px;height:42px;border-radius:12px;border:1.5px solid #1d74c4;background:#fff;color:#1d74c4;font:inherit;font-weight:700;cursor:pointer}
.a11y .a11y .a11y-reset:hover{background:#1d74c4;color:#fff}
.a11y-ruler{position:fixed;z-index:99980;left:0;right:0;top:-100px;height:46px;pointer-events:none;background:rgba(255,226,64,.22);border-top:2px solid rgba(20,32,42,.55);border-bottom:2px solid rgba(20,32,42,.55);display:none}
html.a11y-ruler-on .a11y-ruler{display:block}

/* ---------- حالت‌ها ---------- */
html.a11y-gray{filter:grayscale(1)}
html.a11y-font body :not(.a11y):not(.a11y *){font-family:Tahoma,Arial,sans-serif!important}
html.a11y-space body :not(.a11y):not(.a11y *){line-height:2.1!important;letter-spacing:.03em!important;word-spacing:.14em!important}
html.a11y-links a:not(.a11y *){text-decoration:underline!important;text-underline-offset:4px;font-weight:700!important;outline:2px solid currentColor;outline-offset:2px;border-radius:3px}
html.a11y-still *,html.a11y-still *::before,html.a11y-still *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
html.a11y-cursor,html.a11y-cursor *{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l15 9-6.5 1.6L9.4 19z' fill='black' stroke='white' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 4 2,auto!important}
html.a11y-hc :not(.a11y):not(.a11y *):not(img):not(svg):not(svg *):not(video):not(canvas):not(.ph-flag){background-color:#000!important;background-image:none!important;color:#fff!important;border-color:#fff!important;text-shadow:none!important;box-shadow:none!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
html.a11y-hc a:not(.a11y *),html.a11y-hc a:not(.a11y *) *{color:#ffe14d!important}
html.a11y-hc img{filter:contrast(1.15)}
@media print{.a11y{display:none!important}}
@media (max-width:760px){body.home .a11y-fab{top:auto;bottom:10px;left:12px;width:42px;height:42px}body.home .a11y-p{top:auto;bottom:62px;left:12px}.a11y-fab{left:12px;bottom:10px;width:42px;height:42px}.a11y-p{left:12px;bottom:62px}}

/* قالب (Hello) برای hover/focus دکمه‌ها رنگ صورتی می‌گذارد؛ اینجا قطعی می‌شود */
.a11y .a11y-o{background:#f6faff!important;color:#14202a!important;font-weight:600!important}
.a11y .a11y-o:hover,.a11y .a11y-o:focus{background:#eaf3fd!important;color:#14202a!important}
.a11y .a11y-o[aria-pressed=true],.a11y .a11y-o[aria-pressed=true]:hover,.a11y .a11y-o[aria-pressed=true]:focus{background:#1d74c4!important;color:#fff!important}
.a11y .a11y-o em{font-style:normal!important;font-weight:500!important}
.a11y .a11y-x{background:#fff!important;color:#0c3561!important}
.a11y .a11y-reset{background:#fff!important;color:#1d74c4!important}
.a11y .a11y-reset:hover,.a11y .a11y-reset:focus{background:#1d74c4!important;color:#fff!important}
.a11y .a11y-fab,.a11y .a11y-fab:hover,.a11y .a11y-fab:focus{background:linear-gradient(135deg,#4aa8ec,#1d74c4)!important;color:#fff!important}
