/* ═══════════════════════════════════════════
   BSC Suite – Barrierefreiheit Toolbar CSS
   v1.2.0 – 6 Contrast Modes, Link Highlighting,
   Reading Guide, Dictionary, Responsive
   ═══════════════════════════════════════════ */

/* ───────────────────────────────────────────
   Design Tokens
   ─────────────────────────────────────────── */
:root {
    --bsc-a11y-bg: #ffffff;
    --bsc-a11y-text: #1a1a1a;
    --bsc-a11y-border: #e0e0e0;
    --bsc-a11y-hover: #f5f5f5;
    --bsc-a11y-accent: #007AFF;
    --bsc-a11y-accent-text: #ffffff;
    --bsc-a11y-radius: 8px;
    --bsc-a11y-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    --bsc-a11y-panel-width: 340px;
    --bsc-a11y-toggle-size: 56px;
    --bsc-a11y-transition: 0.3s ease;
    --bsc-a11y-focus-color: #FF6600;
}

/* ───────────────────────────────────────────
   Skip Links
   ─────────────────────────────────────────── */
.bsc-a11y-skip-links {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100000;
}

.bsc-a11y-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: #000;
    color: #fff;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    z-index: 100001;
    border-radius: 0 0 var(--bsc-a11y-radius) 0;
    outline: 3px solid var(--bsc-a11y-focus-color);
    outline-offset: -3px;
}

.bsc-a11y-skip-link:focus,
.bsc-a11y-skip-link:active {
    left: 0;
    outline: 3px solid var(--bsc-a11y-focus-color);
}

/* ───────────────────────────────────────────
   Toggle Button (FAB)
   ─────────────────────────────────────────── */
.bsc-a11y-toggle-wrap {
    position: fixed;
    bottom: 20px;
    z-index: 999999;
}

.bsc-a11y-toggle-wrap[data-position="right"] {
    right: 20px;
}

.bsc-a11y-toggle-wrap[data-position="left"] {
    left: 20px;
}

.bsc-a11y-toggle {
    width: var(--bsc-a11y-toggle-size);
    height: var(--bsc-a11y-toggle-size);
    border-radius: 50%;
    border: none;
    background: var(--bsc-a11y-accent);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--bsc-a11y-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

.bsc-a11y-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

.bsc-a11y-toggle:focus-visible {
    outline: 3px solid var(--bsc-a11y-focus-color);
    outline-offset: 4px;
}

.bsc-a11y-toggle .bsc-a11y-icon {
    width: 28px;
    height: 28px;
    pointer-events: none;
}

.bsc-a11y-toggle .bsc-a11y-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    stroke: currentColor;
}

/* ───────────────────────────────────────────
   Panel (Sidebar/Dialog)
   ─────────────────────────────────────────── */
.bsc-a11y-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    width: var(--bsc-a11y-panel-width);
    background: var(--bsc-a11y-bg);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    color: var(--bsc-a11y-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow: hidden;
    transition: transform var(--bsc-a11y-transition);
}

/* Right position (default) */
.bsc-a11y-panel[data-position="right"] {
    right: 0;
    transform: translateX(100%);
}

/* Left position */
.bsc-a11y-panel[data-position="left"] {
    left: 0;
    transform: translateX(-100%);
}

/* Open state */
.bsc-a11y-panel[aria-hidden="false"] {
    transform: translateX(0);
}

/* Reset all heading styles inside panel */
#bsc-a11y-panel h1,
#bsc-a11y-panel h2,
#bsc-a11y-panel h3,
#bsc-a11y-panel h4,
#bsc-a11y-panel h5,
#bsc-a11y-panel h6 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    color: var(--bsc-a11y-text) !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

#bsc-a11y-panel h2.bsc-a11y-panel-title {
    font-size: 18px !important;
    font-weight: 700 !important;
}

#bsc-a11y-panel h3.bsc-a11y-module-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Panel Header */
.bsc-a11y-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--bsc-a11y-border);
    flex-shrink: 0;
}

.bsc-a11y-panel-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--bsc-a11y-text);
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.bsc-a11y-panel-close:hover {
    background: var(--bsc-a11y-hover);
}

.bsc-a11y-panel-close:focus-visible {
    outline: 3px solid var(--bsc-a11y-focus-color);
    outline-offset: 2px;
}

/* Panel Body */
.bsc-a11y-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

/* Panel Footer */
.bsc-a11y-panel-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--bsc-a11y-border);
    flex-shrink: 0;
}

/* ───────────────────────────────────────────
   Module Sections
   ─────────────────────────────────────────── */
.bsc-a11y-module {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bsc-a11y-border);
}

.bsc-a11y-module:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.bsc-a11y-module-title {
    margin-bottom: 10px !important;
}

.bsc-a11y-module-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bsc-a11y-module-info {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

/* ───────────────────────────────────────────
   Icons
   ─────────────────────────────────────────── */
.bsc-a11y-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bsc-a11y-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* ───────────────────────────────────────────
   Buttons
   ─────────────────────────────────────────── */
.bsc-a11y-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border: 2px solid var(--bsc-a11y-border);
    border-radius: 6px;
    background: var(--bsc-a11y-bg);
    color: var(--bsc-a11y-text);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 44px;
    min-width: 44px;
    text-align: center;
    line-height: 1.3;
}

.bsc-a11y-btn:hover {
    background: var(--bsc-a11y-hover);
    border-color: var(--bsc-a11y-accent);
}

.bsc-a11y-btn:focus-visible {
    outline: 3px solid var(--bsc-a11y-focus-color);
    outline-offset: 2px;
}

.bsc-a11y-btn[aria-pressed="true"] {
    background: var(--bsc-a11y-accent);
    color: var(--bsc-a11y-accent-text);
    border-color: var(--bsc-a11y-accent);
}

.bsc-a11y-btn-full {
    width: 100%;
}

.bsc-a11y-btn-reset {
    background: transparent;
    border: none;
    color: #666;
    font-size: 12px;
    padding: 4px 8px;
    cursor: pointer;
    min-height: 36px;
    min-width: auto;
}

.bsc-a11y-btn-reset:hover {
    color: var(--bsc-a11y-text);
}

.bsc-a11y-btn-danger {
    border-color: #d32f2f;
    color: #d32f2f;
    background: transparent;
    width: 100%;
}

.bsc-a11y-btn-danger:hover {
    background: #d32f2f;
    color: #fff;
}

/* Contrast grid */
.bsc-a11y-contrast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

/* ───────────────────────────────────────────
   Slider Groups (Typography)
   ─────────────────────────────────────────── */
.bsc-a11y-slider-group {
    width: 100%;
    margin-bottom: 8px;
}

.bsc-a11y-control-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.bsc-a11y-slider-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bsc-a11y-slider-value {
    font-size: 14px;
    font-weight: 700;
    min-width: 50px;
    text-align: center;
    color: var(--bsc-a11y-text);
}

.bsc-a11y-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bsc-a11y-border);
    outline: none;
    flex: 1;
}

.bsc-a11y-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bsc-a11y-accent);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bsc-a11y-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bsc-a11y-accent);
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bsc-a11y-range:focus-visible {
    outline: 3px solid var(--bsc-a11y-focus-color);
    outline-offset: 4px;
}

.bsc-a11y-slider-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--bsc-a11y-border);
    background: var(--bsc-a11y-bg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--bsc-a11y-text);
    flex-shrink: 0;
    transition: background 0.15s;
}

.bsc-a11y-slider-btn:hover {
    background: var(--bsc-a11y-hover);
}

.bsc-a11y-slider-btn:focus-visible {
    outline: 3px solid var(--bsc-a11y-focus-color);
    outline-offset: 2px;
}

/* ───────────────────────────────────────────
   Contrast Modes (applied to <html>)
   ─────────────────────────────────────────── */

/* High Contrast */
html.bsc-a11y-high-contrast {
    --bsc-hc-bg: #000;
    --bsc-hc-text: #FFF;
    --bsc-hc-link: #FFD700;
    --bsc-hc-accent: #00FFFF;
}

html.bsc-a11y-high-contrast body {
    background-color: var(--bsc-hc-bg) !important;
    color: var(--bsc-hc-text) !important;
}

html.bsc-a11y-high-contrast a[href] {
    color: var(--bsc-hc-link) !important;
}

html.bsc-a11y-high-contrast button,
html.bsc-a11y-high-contrast input,
html.bsc-a11y-high-contrast select,
html.bsc-a11y-high-contrast textarea {
    background-color: #111 !important;
    color: var(--bsc-hc-text) !important;
    border-color: var(--bsc-hc-text) !important;
}

html.bsc-a11y-high-contrast h1,
html.bsc-a11y-high-contrast h2,
html.bsc-a11y-high-contrast h3,
html.bsc-a11y-high-contrast h4,
html.bsc-a11y-high-contrast h5,
html.bsc-a11y-high-contrast h6 {
    color: var(--bsc-hc-text) !important;
}

html.bsc-a11y-high-contrast p,
html.bsc-a11y-high-contrast span,
html.bsc-a11y-high-contrast li,
html.bsc-a11y-high-contrast td,
html.bsc-a11y-high-contrast th,
html.bsc-a11y-high-contrast div,
html.bsc-a11y-high-contrast label {
    color: var(--bsc-hc-text) !important;
}

/* Invert */
html.bsc-a11y-invert {
    filter: invert(1) hue-rotate(180deg);
}

html.bsc-a11y-invert img,
html.bsc-a11y-invert video,
html.bsc-a11y-invert iframe,
html.bsc-a11y-invert canvas,
html.bsc-a11y-invert svg image,
html.bsc-a11y-invert .bsc-a11y-panel,
html.bsc-a11y-invert .bsc-a11y-toggle-wrap {
    filter: invert(1) hue-rotate(180deg);
}

/* Monochrome */
html.bsc-a11y-monochrome {
    filter: grayscale(1);
}

/* Low Vision */
html.bsc-a11y-low-vision body {
    background-color: #fff8e1 !important;
    color: #1a1a1a !important;
    font-size: 120% !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
}

html.bsc-a11y-low-vision a[href] {
    color: #0055aa !important;
    text-decoration: underline !important;
}

/* Dark Mode */
html.bsc-a11y-dark-mode body {
    background-color: #1a1a2e !important;
    color: #e0e0e0 !important;
}

html.bsc-a11y-dark-mode a[href] {
    color: #64b5f6 !important;
}

html.bsc-a11y-dark-mode h1,
html.bsc-a11y-dark-mode h2,
html.bsc-a11y-dark-mode h3,
html.bsc-a11y-dark-mode h4,
html.bsc-a11y-dark-mode h5,
html.bsc-a11y-dark-mode h6 {
    color: #f5f5f5 !important;
}

html.bsc-a11y-dark-mode p,
html.bsc-a11y-dark-mode span,
html.bsc-a11y-dark-mode li,
html.bsc-a11y-dark-mode td,
html.bsc-a11y-dark-mode th,
html.bsc-a11y-dark-mode div,
html.bsc-a11y-dark-mode label {
    color: #e0e0e0 !important;
}

html.bsc-a11y-dark-mode button,
html.bsc-a11y-dark-mode input,
html.bsc-a11y-dark-mode select,
html.bsc-a11y-dark-mode textarea {
    background-color: #2a2a3e !important;
    color: #e0e0e0 !important;
    border-color: #444 !important;
}

/* Custom Colors (set via CSS vars from admin) */
html.bsc-a11y-custom-colors body {
    background-color: var(--bsc-a11y-custom-bg, #ffffff) !important;
    color: var(--bsc-a11y-custom-text, #1a1a1a) !important;
}

html.bsc-a11y-custom-colors a[href] {
    color: var(--bsc-a11y-custom-link, #0073aa) !important;
}

/* ───────────────────────────────────────────
   Dyslexia Font
   ─────────────────────────────────────────── */
html.bsc-a11y-dyslexia *:not(.bsc-a11y-panel *):not(.bsc-a11y-toggle *) {
    font-family: 'OpenDyslexic', 'Comic Sans MS', cursive, sans-serif !important;
}

/* ───────────────────────────────────────────
   Spacing Mode (CSS Custom Properties)
   ─────────────────────────────────────────── */
html.bsc-a11y-spacing-active *:not(.bsc-a11y-panel *):not(.bsc-a11y-toggle *) {
    line-height: var(--bsc-a11y-line-height, 1.5) !important;
    word-spacing: var(--bsc-a11y-word-spacing, 0) !important;
    letter-spacing: var(--bsc-a11y-letter-spacing, 0) !important;
}

/* ───────────────────────────────────────────
   Animation Control
   ─────────────────────────────────────────── */
html.bsc-a11y-no-animations *,
html.bsc-a11y-no-animations *::before,
html.bsc-a11y-no-animations *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
}

html.bsc-a11y-no-animations video[autoplay] {
    display: none !important;
}

/* ───────────────────────────────────────────
   Focus Ring Enhancement
   ─────────────────────────────────────────── */
html.bsc-a11y-focus-active *:focus {
    outline: 3px solid var(--bsc-a11y-focus-color) !important;
    outline-offset: 3px !important;
}

/* Default focus-visible */
:focus-visible {
    outline: 3px solid var(--bsc-a11y-focus-color) !important;
    outline-offset: 3px !important;
}

/* ───────────────────────────────────────────
   Link Highlighting
   ─────────────────────────────────────────── */

/* Underline */
html.bsc-a11y-links-underline a[href] {
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-decoration-thickness: 2px !important;
}

/* Color */
html.bsc-a11y-links-color a[href] {
    color: #0066cc !important;
    font-weight: 600 !important;
}

/* Border */
html.bsc-a11y-links-border a[href] {
    outline: 2px solid currentColor !important;
    outline-offset: 2px !important;
}

html.bsc-a11y-links-border button:not(.bsc-a11y-btn):not(.bsc-a11y-panel-close):not(.bsc-a11y-toggle):not(.bsc-a11y-slider-btn),
html.bsc-a11y-links-border [role="button"] {
    outline: 2px solid currentColor !important;
    outline-offset: 2px !important;
}

/* Icons (external link indicator) */
html.bsc-a11y-links-icons a[href^="http"]::after {
    content: " \2197";
    font-size: 0.8em;
    vertical-align: super;
}

html.bsc-a11y-links-icons a[href^="http"][target="_blank"]::after {
    content: " \2197 (neues Fenster)";
    font-size: 0;
    clip: rect(0,0,0,0);
}

html.bsc-a11y-links-icons a[href^="http"][target="_blank"]::after {
    font-size: 0.8em;
    content: " \2197";
}

/* All (combination) */
html.bsc-a11y-links-all a[href] {
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    color: #0066cc !important;
    font-weight: 600 !important;
}

html.bsc-a11y-links-all a[href^="http"]::after {
    content: " \2197";
    font-size: 0.8em;
}

/* ───────────────────────────────────────────
   Reading Guide Elements
   ─────────────────────────────────────────── */
.bsc-a11y-reading-ruler {
    position: fixed;
    left: 0;
    right: 0;
    height: 40px;
    pointer-events: none;
    z-index: 999998;
    transition: top 0.05s linear;
}

.bsc-a11y-reading-mask-top,
.bsc-a11y-reading-mask-bottom {
    position: fixed;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 999998;
    transition: height 0.05s linear, top 0.05s linear;
}

.bsc-a11y-reading-mask-top {
    top: 0;
}

.bsc-a11y-reading-mask-bottom {
    bottom: 0;
}

.bsc-a11y-reading-highlight {
    position: fixed;
    left: 0;
    right: 0;
    height: 30px;
    pointer-events: none;
    z-index: 999998;
    transition: top 0.05s linear;
}

.bsc-a11y-reading-magnifier {
    position: fixed;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid var(--bsc-a11y-accent);
    overflow: hidden;
    pointer-events: none;
    z-index: 999998;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.5);
    transform-origin: center;
}

/* ───────────────────────────────────────────
   Dictionary Tooltips
   ─────────────────────────────────────────── */
.bsc-a11y-dict-term {
    border-bottom: 2px dotted var(--bsc-a11y-accent);
    cursor: help;
    position: relative;
}

.bsc-a11y-dict-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
    width: max-content;
    max-width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 99999;
}

.bsc-a11y-dict-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #333;
}

.bsc-a11y-dict-term:hover .bsc-a11y-dict-tooltip,
.bsc-a11y-dict-term:focus .bsc-a11y-dict-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ───────────────────────────────────────────
   TTS Audio Player
   ─────────────────────────────────────────── */
.bsc-a11y-tts-player {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999997;
    background: var(--bsc-a11y-bg);
    border: 1px solid var(--bsc-a11y-border);
    border-radius: 8px 8px 0 0;
    padding: 8px 16px;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
    display: none;
    max-width: 400px;
    width: 90%;
}

.bsc-a11y-tts-player audio {
    width: 100%;
    height: 40px;
}

/* ───────────────────────────────────────────
   Responsive (Tablet ≤1024px)
   ─────────────────────────────────────────── */
@media (max-width: 1024px) {
    :root {
        --bsc-a11y-panel-width: 360px;
    }

    .bsc-a11y-range::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }

    .bsc-a11y-range::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }

    .bsc-a11y-btn {
        min-height: 48px;
        font-size: 14px;
    }
}

/* ───────────────────────────────────────────
   Responsive (Mobile ≤767px)
   ─────────────────────────────────────────── */
@media (max-width: 767px) {
    /* Panel becomes bottom sheet */
    .bsc-a11y-panel {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-height: 85vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%) !important;
    }

    .bsc-a11y-panel[aria-hidden="false"] {
        transform: translateY(0) !important;
    }

    /* Drag handle indicator */
    .bsc-a11y-panel-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        border-radius: 2px;
        background: var(--bsc-a11y-border);
    }

    .bsc-a11y-panel-header {
        position: relative;
        padding-top: 20px;
    }

    /* Safe area insets */
    .bsc-a11y-panel-footer {
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
    }

    /* Toggle position */
    .bsc-a11y-toggle-wrap {
        bottom: calc(16px + env(safe-area-inset-bottom, 0));
    }

    /* Dictionary tooltip full-width */
    .bsc-a11y-dict-tooltip {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        transform: none !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 12px 12px 0 0;
        padding: 16px;
    }

    .bsc-a11y-dict-tooltip::after {
        display: none;
    }
}

/* ───────────────────────────────────────────
   Responsive (Small Mobile ≤374px)
   ─────────────────────────────────────────── */
@media (max-width: 374px) {
    .bsc-a11y-contrast-grid {
        grid-template-columns: 1fr;
    }

    .bsc-a11y-toggle {
        width: 48px;
        height: 48px;
    }

    .bsc-a11y-toggle .bsc-a11y-icon {
        width: 24px;
        height: 24px;
    }
}

/* ───────────────────────────────────────────
   Print
   ─────────────────────────────────────────── */
@media print {
    .bsc-a11y-toggle-wrap,
    .bsc-a11y-panel,
    .bsc-a11y-skip-links,
    .bsc-a11y-tts-player,
    .bsc-a11y-reading-ruler,
    .bsc-a11y-reading-mask-top,
    .bsc-a11y-reading-mask-bottom,
    .bsc-a11y-reading-highlight,
    .bsc-a11y-reading-magnifier {
        display: none !important;
    }
}
