/* =============================================================================
   PROPRIETARY & CONFIDENTIAL
   Rahimli Tech Solutions (https://rahimli.pro)
   =============================================================================
   Accessibility toolbar styles. Loaded on every page together with /js/a11y.js.
   User options are classes on <html>: a11y-dark, a11y-contrast, a11y-links,
   a11y-font, a11y-spacing, a11y-nomotion, a11y-focus, plus a11y-size-1..3.
   With no class set the site looks exactly as designed.
   ============================================================================= */

/* ── Skip link ── */
.a11y-skip{position:absolute;left:8px;top:-60px;z-index:2147483000;background:#FF7701;color:#fff;padding:.6rem 1rem;border-radius:0 0 10px 10px;font:600 .9rem/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;text-decoration:none;transition:top .15s;}
.a11y-skip:focus{top:0;outline:3px solid #1d1d1f;outline-offset:2px;}

/* ── Keyboard focus (visible only for keyboard users) ── */
:focus-visible{outline:3px solid #FF7701;outline-offset:3px;}
html.a11y-focus :focus{outline:4px solid #0a66ff!important;outline-offset:3px!important;}

/* ── Text size (scales everything set in rem) ── */
html.a11y-size-1{font-size:112.5%;}
html.a11y-size-2{font-size:125%;}
html.a11y-size-3{font-size:150%;}

/* ── Night mode: smart invert, photos keep their colours ── */
html.a11y-dark{filter:invert(1) hue-rotate(180deg);background:#fff;}
html.a11y-dark img:not([src*="logo"]):not([src*="favicon"]),
html.a11y-dark video,html.a11y-dark picture,html.a11y-dark canvas,html.a11y-dark iframe,
html.a11y-dark [data-a11y-keep]{filter:invert(1) hue-rotate(180deg);}
html.a11y-dark #a11y-root{filter:invert(1) hue-rotate(180deg);}

/* ── High contrast ── */
html.a11y-contrast{filter:contrast(1.4);}
html.a11y-dark.a11y-contrast{filter:invert(1) hue-rotate(180deg) contrast(1.4);}

/* ── Underline links ── */
html.a11y-links a{text-decoration:underline!important;text-underline-offset:.18em;text-decoration-thickness:.09em;}

/* ── Readable font ── */
html.a11y-font body,html.a11y-font body *:not(svg):not(svg *):not(code):not(pre):not(kbd){font-family:Verdana,Tahoma,"Segoe UI",Arial,sans-serif!important;letter-spacing:.01em;}

/* ── Spacing ── */
html.a11y-spacing body *:not(svg):not(svg *){line-height:1.8!important;word-spacing:.12em;}
html.a11y-spacing p{margin-bottom:1em;}

/* ── Stop animations ── */
html.a11y-nomotion *,html.a11y-nomotion *::before,html.a11y-nomotion *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important;}
html.a11y-nomotion .sr,html.a11y-nomotion .js .sr{opacity:1!important;transform:none!important;}

/* ── Toolbar ── */
#a11y-root{position:fixed;left:16px;bottom:16px;z-index:2147482000;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;font-size:16px;line-height:1.4;}
#a11y-btn{width:48px;height:48px;border-radius:50%;border:2px solid #fff;background:#1d1d1f;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 6px 24px rgba(0,0,0,.35);padding:0;}
#a11y-btn:hover{background:#FF7701;}
#a11y-btn svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
#a11y-panel{position:absolute;left:0;bottom:60px;width:min(340px,calc(100vw - 32px));max-height:min(80vh,620px);overflow:auto;background:#fff;color:#1d1d1f;border:1px solid rgba(0,0,0,.15);border-radius:16px;box-shadow:0 20px 60px rgba(0,0,0,.35);padding:16px;}
#a11y-panel[hidden]{display:none;}
#a11y-panel h2{font-size:1rem;margin:0 0 12px;display:flex;justify-content:space-between;align-items:center;font-weight:700;color:#1d1d1f;}
#a11y-close{border:0;background:transparent;font-size:1.4rem;line-height:1;cursor:pointer;color:#1d1d1f;padding:4px 8px;border-radius:8px;}
.a11y-row{margin-bottom:12px;}
.a11y-label{font-size:.78rem;font-weight:600;color:#515154;margin-bottom:6px;display:block;}
.a11y-size{display:flex;gap:8px;}
.a11y-size button,.a11y-opt{border:1px solid #c7c7cc;background:#f5f5f7;color:#1d1d1f;border-radius:10px;cursor:pointer;font:600 .88rem/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;padding:10px;}
.a11y-size button{flex:1;}
.a11y-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.a11y-opt{text-align:left;display:flex;align-items:center;gap:8px;}
.a11y-opt[aria-pressed="true"],.a11y-size button[aria-pressed="true"]{background:#1d1d1f;color:#fff;border-color:#1d1d1f;}
.a11y-opt:hover,.a11y-size button:hover{border-color:#FF7701;}
#a11y-reset{width:100%;margin-top:12px;border:1px solid #c7c7cc;background:#fff;color:#1d1d1f;border-radius:10px;cursor:pointer;padding:10px;font:600 .88rem/1.2 system-ui,-apple-system,"Segoe UI",sans-serif;}
#a11y-reset:hover{border-color:#FF7701;}
.a11y-note{font-size:.72rem;color:#6e6e73;margin-top:10px;}
.a11y-note a{color:#b35400;}
@media (max-width:640px){#a11y-root{left:10px;bottom:10px;}}
@media print{#a11y-root,.a11y-skip{display:none!important;}}
