/* Версия для слабовидящих (js/a11y.js) — the panel and the colour schemes of the Shifa template, adapted to Speak-Today. */

/* ---------- panel: a line under the utility line of the header, on the gradient of the site (as the course block) ---------- */
.a11y-panel { background: transparent; color: #fff; border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); position: relative; z-index: 25; }
.a11y-panel[hidden] { display: none; }
.a11y-panel .st-wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding-block: 12px; }
.a11y-group { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.a11y-group > span { font-size: 14px; color: #c9d3ea; margin-right: 4px; }
.a11y-panel button { border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .08); color: #fff; border-radius: 6px; padding: 6px 12px; font: 600 14px/1.2 "Manrope", Arial, sans-serif; cursor: pointer; min-height: 34px; }
.a11y-panel button:hover { border-color: #fff; background: rgba(255, 255, 255, .16); }
.a11y-panel button[aria-pressed="true"] { background: #fff; border-color: #fff; color: #16213e; }
.a11y-panel .a11y-off { margin-left: auto; background: #e8262f; border-color: #e8262f; color: #fff; }
.a11y-panel .a11y-off:hover { background: #c41d26; border-color: #c41d26; }
.a11y-panel button:focus-visible, .st-eye:focus-visible { outline: 3px solid #60a5fa; outline-offset: 2px; }
.st-eye[aria-expanded="true"] span { text-decoration-thickness: 2px; }

/* ---------- version on ---------- */
html.a11y body * { letter-spacing: .01em; }
html.a11y body a:not(.st-btn):not(.st-logo) { text-decoration: underline; text-underline-offset: 3px; }
html.a11y * { transition: none !important; animation: none !important; }

/* ---------- colour: black on white ---------- */
html.a11y-bw body, html.a11y-bw body *:not(svg):not(path):not(circle):not(rect) {
  background-color: #fff !important; background-image: none !important; color: #000 !important; border-color: #000 !important;
  box-shadow: none !important; text-shadow: none !important;
}
html.a11y-bw .st-hero-title mark, html.a11y-bw .st-card-btn a, html.a11y-bw mark { -webkit-text-fill-color: currentColor !important; }
html.a11y-bw .st-btn, html.a11y-bw button[type="submit"], html.a11y-bw a.button, html.a11y-bw a[href="#openModal"],
html.a11y-bw .a11y-panel button[aria-pressed="true"], html.a11y-bw .st-tabs button[aria-selected="true"], html.a11y-bw .st-lv-tabs button[aria-selected="true"] {
  background-color: #000 !important; color: #fff !important;
}
html.a11y-bw .st-btn *, html.a11y-bw button[type="submit"] * { background-color: transparent !important; color: #fff !important; }
html.a11y-bw .st-card, html.a11y-bw .st-levels, html.a11y-bw .st-level, html.a11y-bw .st-price, html.a11y-bw .st-fact,
html.a11y-bw .st-club-prices div, html.a11y-bw .moduletable-bonus { border: 1px solid #000 !important; }

/* ---------- colour: white on black, yellow buttons ---------- */
html.a11y-wb { color-scheme: dark; }
html.a11y-wb body, html.a11y-wb body *:not(svg):not(path):not(circle):not(rect) {
  background-color: #000 !important; background-image: none !important; color: #fff !important; border-color: #fff !important;
  box-shadow: none !important; text-shadow: none !important;
}
html.a11y-wb .st-hero-title mark, html.a11y-wb mark { -webkit-text-fill-color: #ffeb3b !important; color: #ffeb3b !important; }
html.a11y-wb .st-btn, html.a11y-wb button[type="submit"], html.a11y-wb a.button, html.a11y-wb a[href="#openModal"],
html.a11y-wb .a11y-panel button[aria-pressed="true"], html.a11y-wb .st-tabs button[aria-selected="true"], html.a11y-wb .st-lv-tabs button[aria-selected="true"] {
  background-color: #ffeb3b !important; color: #000 !important; border-color: #ffeb3b !important;
}
html.a11y-wb .st-btn *, html.a11y-wb button[type="submit"] * { background-color: transparent !important; color: #000 !important; }
html.a11y-wb .st-card, html.a11y-wb .st-levels, html.a11y-wb .st-level, html.a11y-wb .st-price, html.a11y-wb .st-fact,
html.a11y-wb .st-club-prices div, html.a11y-wb .moduletable-bonus, html.a11y-wb .st-advantages { border: 1px solid #fff !important; }
html.a11y-wb .st-burger i { background-color: #fff !important; }

/* icons stay readable on both schemes */
html.a11y-bw .st-fact::before, html.a11y-bw .st-card-facts li::before, html.a11y-bw .st-level li::before { background-color: #fff !important; border: 1px solid #000; }
html.a11y-wb .st-fact::before, html.a11y-wb .st-card-facts li::before, html.a11y-wb .st-level li::before { background-color: #fff !important; }
/* the decorative language label of a course picture (data-label) is not shown in the contrast schemes */
html.a11y-bw .st-cimg::after, html.a11y-wb .st-cimg::after { content: none !important; display: none !important; }
html.a11y-bw .st-course-facts li::before, html.a11y-bw .st-cfeat::before { filter: none; background-color: #fff !important; border: 1px solid #000; }
html.a11y-wb .st-course-facts li::before, html.a11y-wb .st-cfeat::before { filter: none; background-color: #fff !important; }
html.a11y-bw .st-course-facts li, html.a11y-bw .st-cfeat, html.a11y-bw .st-chips span { border: 1px solid #000 !important; }
html.a11y-wb .st-course-facts li, html.a11y-wb .st-cfeat, html.a11y-wb .st-chips span { border: 1px solid #fff !important; }
html.a11y-bw .st-course-features, html.a11y-wb .st-course-features { border-image: none; }
html.a11y-bw .st-course-glyph b, html.a11y-wb .st-course-glyph b { -webkit-text-fill-color: currentColor !important; }
html.a11y-bw .st-btn.st-btn-pay { background-color: #fff !important; color: #000 !important; border: 2px solid #000 !important; }
html.a11y-wb .st-btn.st-btn-pay { background-color: #000 !important; color: #ffeb3b !important; border: 2px solid #ffeb3b !important; }

/* pictures: black and white in the contrast schemes */
html.a11y-bw img, html.a11y-wb img { filter: grayscale(1); }

/* ---------- images: hide ---------- */
html.a11y-noimg main img, html.a11y-noimg .st-hero-photo, html.a11y-noimg .st-club-photo, html.a11y-noimg .st-cimg,
html.a11y-noimg .moduletable-nsw img, html.a11y-noimg .moduletable img { display: none !important; }
html.a11y-noimg .st-course-photo { display: none !important; }
html.a11y-noimg .st-hero-in, html.a11y-noimg .st-club-in, html.a11y-noimg .st-course { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 760px) {
  .a11y-panel .st-wrap { gap: 10px 16px; }
  .a11y-panel .a11y-off { margin-left: 0; }
}
