/* ==========================================================================
   GKDC — accessible display controls
   The controls supplement, but do not replace, semantic and content QA.
   ========================================================================== */

/* Baseline accessibility rules are active in the ordinary version too. */
.bvi-skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 10050;
    max-width: calc(100vw - 20px);
    padding: 11px 16px;
    color: #fff;
    background: #0d3f70;
    border: 2px solid #fff;
    border-radius: 10px;
    font: 700 16px/1.35 Arial, sans-serif;
    text-decoration: underline;
    transform: translateY(calc(-100% - 24px));
    transition: transform 160ms ease-out;
}

.bvi-skip-link:focus {
    transform: translateY(0);
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid #0b5f9e !important;
    outline-offset: 3px !important;
}

:where(main, section, article, h1, h2, h3, h4, h5, h6)[id] {
    scroll-margin-top: 96px;
}

.bvi-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    html:focus-within { scroll-behavior: auto !important; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Trigger in the existing top bar. */
.bvi-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 6px 11px;
    color: rgba(255, 255, 255, 0.98);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.bvi-trigger:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #fff;
}

.bvi-trigger:active { transform: translateY(1px); }
.bvi-trigger[aria-pressed="true"] { background: rgba(255, 255, 255, 0.24); }
.bvi-trigger-icon { width: 16px; height: 16px; flex: 0 0 auto; }

.bvi-menu-trigger {
    display: none;
    width: 100%;
    min-height: 52px;
    align-items: center;
    gap: 11px;
    margin: 0 0 12px;
    padding: 12px 14px;
    color: var(--text);
    background: var(--bg-section);
    border: 1px solid var(--border);
    border-radius: 13px;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.25;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.bvi-menu-trigger > span { flex: 1; }
.bvi-menu-trigger__icon,
.bvi-menu-trigger__arrow {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.bvi-menu-trigger__icon { color: var(--primary); }
.bvi-menu-trigger__arrow { width: 18px; height: 18px; color: var(--text-secondary); }
.bvi-menu-trigger[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }

/* On phones, the accessibility entry point belongs beside the menu close control,
   not in the stack of primary navigation actions. */
.bvi-menu-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.bvi-menu-trigger--compact {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
}

.bvi-menu-trigger--compact > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.bvi-menu-trigger--compact .bvi-menu-trigger__icon {
    width: 22px;
    height: 22px;
}

@media (hover: hover) and (pointer: fine) {
    .bvi-menu-trigger:hover { border-color: var(--primary); background: var(--primary-soft); }
}

/* Mobile fallback remains reachable even when the top bar is hidden. */
.bvi-floating-trigger {
    display: none;
    position: fixed;
    right: 12px;
    bottom: 12px;
    z-index: 9970;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 14px;
    color: #fff;
    background: #114e8c;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(13, 63, 112, 0.28);
    font: 700 14px/1.2 Arial, sans-serif;
}

.bvi-floating-trigger svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.bvi-floating-trigger[aria-pressed="true"] { background: #2d8b6f; }

.hero-playback-control[aria-pressed="true"] { color: #fff; background: #114e8c; }


@media (max-width: 1279px) {
    .bvi-trigger { display: none !important; }
    .bvi-menu-trigger { display: flex; }
    .bvi-menu-trigger--compact { display: inline-flex; }
}

@media (max-width: 767px) {
    .bvi-floating-trigger { display: none !important; }
    .hero-playback-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

/* Control panel. It participates in document flow and never covers content. */
.bvi-panel {
    --panel-bg: #f7fafc;
    --panel-surface: #fff;
    --panel-text: #20364d;
    --panel-muted: #5a6b7d;
    --panel-border: #c8d5e1;
    --panel-accent: #114e8c;
    --panel-accent-text: #fff;
    position: sticky;
    top: 0;
    z-index: 9990;
    max-height: 92vh;
    overflow: auto;
    color: var(--panel-text);
    background: var(--panel-bg);
    border-bottom: 2px solid var(--panel-border);
    box-shadow: 0 10px 30px rgba(20, 46, 72, 0.14);
    font: 400 16px/1.45 Arial, sans-serif;
    overscroll-behavior: contain;
    block-size: auto;
    opacity: 1;
    transform: translateY(0);
    transition: block-size 200ms cubic-bezier(0.23, 1, 0.32, 1), opacity 160ms cubic-bezier(0.23, 1, 0.32, 1), transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

.bvi-panel[hidden] { display: none !important; }
.bvi-panel.is-closed { block-size: 0; opacity: 0; transform: translateY(-8px); overflow: hidden; }
.bvi-panel * { box-sizing: border-box; }

body.bvi-theme-black .bvi-panel {
    --panel-bg: #050505;
    --panel-surface: #111;
    --panel-text: #fff;
    --panel-muted: #e8e8e8;
    --panel-border: #fff;
    --panel-accent: #ffeb3b;
    --panel-accent-text: #000;
}

body.bvi-theme-blue .bvi-panel {
    --panel-bg: #dceeff;
    --panel-surface: #f7fbff;
    --panel-text: #082f5b;
    --panel-muted: #244e78;
    --panel-border: #335f88;
    --panel-accent: #082f5b;
    --panel-accent-text: #fff;
}

body.bvi-theme-sepia .bvi-panel {
    --panel-bg: #efe5cc;
    --panel-surface: #fffaf0;
    --panel-text: #3b2a14;
    --panel-muted: #5d482d;
    --panel-border: #725b39;
    --panel-accent: #3b2a14;
    --panel-accent-text: #fffaf0;
}

.bvi-panel__shell { width: min(1440px, 100%); margin: 0 auto; padding: 18px 22px; }
.bvi-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.bvi-panel__intro { max-width: 720px; }
.bvi-panel__eyebrow {
    display: inline-flex;
    margin-bottom: 4px;
    color: var(--panel-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.bvi-panel__title { margin: 0; color: var(--panel-text); font-size: 22px; font-weight: 800; line-height: 1.2; }
.bvi-panel__description { margin: 5px 0 0; color: var(--panel-muted); font-size: 14px; }
.bvi-panel__header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.bvi-panel button {
    min-height: 44px;
    color: var(--panel-text);
    background: var(--panel-surface);
    border: 2px solid var(--panel-border);
    border-radius: 10px;
    font: 700 15px/1.25 Arial, sans-serif;
    cursor: pointer;
    transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.bvi-panel button:hover { border-color: var(--panel-accent); }
.bvi-panel button:active { transform: translateY(1px); }
.bvi-panel button:focus-visible { outline: 3px solid #ffbf47 !important; outline-offset: 2px !important; }
.bvi-panel__utility { padding: 9px 14px; }
.bvi-panel__normal { padding: 9px 16px; color: #fff !important; background: #b20d17 !important; border-color: #8e0911 !important; }
.bvi-panel__normal:hover { background: #8e0911 !important; }

.bvi-panel__controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.bvi-panel__advanced {
    margin-top: 12px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--panel-surface) 75%, transparent);
}

.bvi-panel__advanced > summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 14px;
    color: var(--panel-text);
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}

.bvi-panel__advanced > summary::-webkit-details-marker { display: none; }
.bvi-panel__advanced > summary::after { content: '+'; color: var(--panel-accent); font-size: 24px; font-weight: 500; line-height: 1; }
.bvi-panel__advanced[open] > summary::after { content: '−'; }
.bvi-panel__controls--advanced { grid-template-columns: repeat(3, minmax(210px, 1fr)); margin: 0; padding: 0 12px 12px; }

.bvi-control {
    min-width: 0;
    margin: 0;
    padding: 12px;
    background: color-mix(in srgb, var(--panel-surface) 92%, transparent);
    border: 1px solid var(--panel-border);
    border-radius: 12px;
}

.bvi-control legend { padding: 0 5px; color: var(--panel-text); font-size: 14px; font-weight: 800; }
.bvi-options { display: flex; flex-wrap: wrap; gap: 7px; }
.bvi-option { flex: 1 1 auto; padding: 8px 10px; }
.bvi-option[aria-pressed="true"] {
    position: relative;
    padding-right: 30px;
    color: var(--panel-accent-text);
    background: var(--panel-accent);
    border-color: var(--panel-accent);
    box-shadow: inset 0 0 0 2px var(--panel-surface);
}
.bvi-check {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 900;
}
.bvi-option[aria-pressed="true"] .bvi-check { display: inline; }

.bvi-swatch {
    display: inline-grid;
    place-items: center;
    width: 23px;
    height: 23px;
    margin-right: 6px;
    border: 1px solid currentColor;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 800;
}
.bvi-swatch--white { color: #111; background: #fff; }
.bvi-swatch--black { color: #fff; background: #000; }
.bvi-swatch--blue { color: #082f5b; background: #dceeff; }
.bvi-swatch--sepia { color: #3b2a14; background: #efe5cc; }

.bvi-panel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--panel-border);
}
.bvi-panel__hint { margin: 0; color: var(--panel-muted); font-size: 14px; }

@media (max-width: 1120px) {
    .bvi-panel__controls--advanced { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
}

@media (max-width: 680px) {
    .bvi-panel { max-height: 88vh; }
    .bvi-panel__shell { padding: 14px 12px 18px; }
    .bvi-panel__header { display: block; }
    .bvi-panel__title { font-size: 20px; }
    .bvi-panel__description { font-size: 13px; }
    .bvi-panel__header-actions { justify-content: flex-start; margin-top: 12px; }
    .bvi-panel__controls { grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .bvi-panel__controls--advanced { padding: 0 8px 8px; }
    .bvi-panel__footer { align-items: stretch; flex-direction: column; }
    .bvi-option { min-width: 84px; }
}

/* Accessible content mode. */
body.bvi-active {
    --bvi-bg: #fff;
    --bvi-surface: #fff;
    --bvi-text: #111;
    --bvi-muted: #292929;
    --bvi-link: #0036b3;
    --bvi-link-visited: #5b1a78;
    --bvi-border: #1f1f1f;
    --bvi-control-bg: #f1f1f1;
    min-width: 0 !important;
    color: var(--bvi-text) !important;
    background: var(--bvi-bg) !important;
    text-align: left !important;
}

body.bvi-theme-black {
    --bvi-bg: #000;
    --bvi-surface: #000;
    --bvi-text: #fff;
    --bvi-muted: #fff;
    --bvi-link: #ffeb3b;
    --bvi-link-visited: #ffd0ef;
    --bvi-border: #fff;
    --bvi-control-bg: #151515;
}

body.bvi-theme-blue {
    --bvi-bg: #eaf4ff;
    --bvi-surface: #f8fbff;
    --bvi-text: #082f5b;
    --bvi-muted: #163f68;
    --bvi-link: #721329;
    --bvi-link-visited: #5f245c;
    --bvi-border: #16436e;
    --bvi-control-bg: #dceeff;
}

body.bvi-theme-sepia {
    --bvi-bg: #f6f0df;
    --bvi-surface: #fffaf0;
    --bvi-text: #3b2a14;
    --bvi-muted: #49371f;
    --bvi-link: #651126;
    --bvi-link-visited: #5b275f;
    --bvi-border: #4f3a20;
    --bvi-control-bg: #eadfc4;
}

body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger),
body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger) * {
    color: var(--bvi-text) !important;
    background-color: var(--bvi-bg) !important;
    border-color: var(--bvi-border) !important;
    box-shadow: none !important;
    text-shadow: none !important;
    text-transform: none !important;
}

body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger) *::before,
body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger) *::after {
    box-shadow: none !important;
    text-shadow: none !important;
}

body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger) :where([style*="background-image"], .blob-bg, .wave-divider, .hero-decor) {
    background-image: none !important;
}

body.bvi-active :where(.blob-bg, .wave-divider, .hero-decor, [data-bvi-hide]) {
    display: none !important;
}

body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger) :where(p, li, dd, dt, blockquote, figcaption) {
    max-width: 80ch;
    color: var(--bvi-muted) !important;
    text-align: left !important;
    text-justify: auto !important;
}

body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger) :where(a, a *) {
    color: var(--bvi-link) !important;
    background-color: transparent !important;
    text-decoration: underline !important;
    text-decoration-thickness: 0.09em !important;
    text-underline-offset: 0.16em !important;
}

body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger) a:visited,
body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger) a:visited * { color: var(--bvi-link-visited) !important; }

/* The VK glyph used a fixed white fill and disappeared on light accessible themes. */
body.bvi-active a[aria-label="ВКонтакте"] svg,
body.bvi-active a[aria-label="ВКонтакте"] svg path,
body.bvi-active a[aria-label="Мессенджер MAX"] svg,
body.bvi-active a[aria-label="Мессенджер MAX"] svg path {
    color: var(--bvi-link) !important;
    fill: currentColor !important;
}

body.bvi-active :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 4px solid #ffbf47 !important;
    outline-offset: 4px !important;
}

body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger) :where(button, .btn, [role="button"], input[type="submit"], input[type="button"], select) {
    min-height: 44px !important;
    color: var(--bvi-text) !important;
    background: var(--bvi-control-bg) !important;
    border: 2px solid var(--bvi-border) !important;
    border-radius: 6px !important;
    font: inherit !important;
}

body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger) :where(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
    min-height: 44px !important;
    padding: 9px 12px !important;
    color: var(--bvi-text) !important;
    background: var(--bvi-surface) !important;
    border: 2px solid var(--bvi-border) !important;
    border-radius: 4px !important;
    font: inherit !important;
}

body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger) :where(input[type="checkbox"], input[type="radio"]) {
    width: 1.25em !important;
    height: 1.25em !important;
    accent-color: var(--bvi-link) !important;
}

body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger) :where(h1, h2, h3, h4, h5, h6) {
    max-width: 40ch;
    color: var(--bvi-text) !important;
    font-family: inherit !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    text-align: left !important;
}
body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger) h1 { font-size: 2em !important; }
body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger) h2 { font-size: 1.65em !important; }
body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger) h3 { font-size: 1.35em !important; }
body.bvi-active > :not(.bvi-panel):not(.bvi-skip-link):not(.bvi-floating-trigger) h4 { font-size: 1.15em !important; }

body.bvi-active [aria-current="page"] {
    border: 2px solid currentColor !important;
    outline: 2px dashed currentColor !important;
    outline-offset: 3px !important;
}

body.bvi-active :where(.truncate, [class*="line-clamp"]) {
    display: block !important;
    overflow: visible !important;
    white-space: normal !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: unset !important;
}

body.bvi-active :where(table) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
}

body.bvi-active :where(pre, code) {
    max-width: 100%;
    overflow-x: auto;
    overflow-wrap: normal;
    word-break: normal;
    white-space: pre;
}
body.bvi-active :where(img, video, iframe) { max-width: 100% !important; height: auto; }
body.bvi-active svg { max-width: 100%; }

body.bvi-active .hero-section { height: auto !important; min-height: 0 !important; overflow: visible !important; }
body.bvi-active .hero-slide:not(.active) { display: none !important; }
body.bvi-active .hero-slide.active { position: relative !important; inset: auto !important; opacity: 1 !important; }

/* Font scaling applies to utility-sized text too. */
body.bvi-font-100 { --bvi-text-scale: 1; font-size: 16px !important; }
body.bvi-font-125 { --bvi-text-scale: 1.25; font-size: 20px !important; }
body.bvi-font-150 { --bvi-text-scale: 1.5; font-size: 24px !important; }
body.bvi-font-200 { --bvi-text-scale: 2; font-size: 32px !important; }
body.bvi-active .text-xs { font-size: 0.82em !important; }
body.bvi-active .text-sm { font-size: 0.92em !important; }
body.bvi-active .text-base { font-size: 1em !important; }
body.bvi-active .text-lg { font-size: 1.12em !important; }
body.bvi-active .text-xl { font-size: 1.28em !important; }
body.bvi-active .text-2xl { font-size: 1.5em !important; }
body.bvi-active .text-3xl { font-size: 1.8em !important; }
body.bvi-active .text-4xl,
body.bvi-active .text-5xl,
body.bvi-active .text-6xl { font-size: 2em !important; }

/* The header used fixed pixel sizes, so it previously ignored text scaling. */
body.bvi-active .gk-header .gk-nav-link {
    font-size: calc(14px * var(--bvi-text-scale, 1)) !important;
}
body.bvi-active .gk-header :where(.gk-mega-heading, .gk-mega-link) {
    font-size: calc(12px * var(--bvi-text-scale, 1)) !important;
}
body.bvi-active .gk-header .gk-btn-booking {
    font-size: calc(13px * var(--bvi-text-scale, 1)) !important;
}
body.bvi-active .gk-mobile-menu :where(summary, .gk-mobile-sub) {
    font-size: calc(15px * var(--bvi-text-scale, 1)) !important;
}
body.bvi-active .gk-mobile-menu .gk-mobile-heading {
    font-size: calc(12px * var(--bvi-text-scale, 1)) !important;
}

/* At the two largest settings the desktop row cannot reflow safely. */
body:is(.bvi-font-150, .bvi-font-200) .gk-header .gk-main-nav,
body:is(.bvi-font-150, .bvi-font-200) .gk-header .gk-btn-booking {
    display: none !important;
}
body:is(.bvi-font-150, .bvi-font-200) .gk-header button[aria-label="Открыть меню"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

body.bvi-family-sans,
body.bvi-family-sans > :not(.bvi-panel),
body.bvi-family-sans > :not(.bvi-panel) * { font-family: Arial, Verdana, Tahoma, sans-serif !important; }
body.bvi-family-serif,
body.bvi-family-serif > :not(.bvi-panel),
body.bvi-family-serif > :not(.bvi-panel) * { font-family: Georgia, "Times New Roman", serif !important; }

body.bvi-leading-normal > :not(.bvi-panel),
body.bvi-leading-normal > :not(.bvi-panel) * { line-height: 1.5 !important; }
body.bvi-leading-comfortable > :not(.bvi-panel),
body.bvi-leading-comfortable > :not(.bvi-panel) * { line-height: 1.75 !important; }
body.bvi-leading-spacious > :not(.bvi-panel),
body.bvi-leading-spacious > :not(.bvi-panel) * { line-height: 2 !important; }

body.bvi-spacing-normal > :not(.bvi-panel),
body.bvi-spacing-normal > :not(.bvi-panel) * { letter-spacing: normal !important; word-spacing: normal !important; }
body.bvi-spacing-medium > :not(.bvi-panel),
body.bvi-spacing-medium > :not(.bvi-panel) * { letter-spacing: 0.06em !important; word-spacing: 0.12em !important; }
body.bvi-spacing-large > :not(.bvi-panel),
body.bvi-spacing-large > :not(.bvi-panel) * { letter-spacing: 0.12em !important; word-spacing: 0.16em !important; }

.bvi-image-alternative {
    display: none;
    max-width: 80ch;
    margin: 8px 0;
    padding: 10px 12px;
    color: var(--bvi-text);
    background: var(--bvi-control-bg);
    border: 2px dashed var(--bvi-border);
    font: inherit;
}
body.bvi-images-mono img { filter: grayscale(1) contrast(1.15) !important; }
body.bvi-images-hidden img { display: none !important; }
body.bvi-images-hidden .bvi-image-alternative { display: inline-block !important; }
body.bvi-images-hidden [style*="background-image"] { background-image: none !important; }

body.bvi-motion-stop *,
body.bvi-motion-stop *::before,
body.bvi-motion-stop *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
}

body.bvi-motion-stop :where(.fade-up, .card) {
    opacity: 1 !important;
    transform: none !important;
}

/* Reflow at narrow widths and at 200% zoom-like text scaling. */
@media (max-width: 640px) {
    body.bvi-active main :where(.grid) { grid-template-columns: minmax(0, 1fr) !important; }
    body.bvi-active main :where(.flex) { flex-wrap: wrap !important; }
    body.bvi-active main :where([class*="w-"]) { max-width: 100% !important; }
    body.bvi-active :where(h1, h2, h3, h4) { max-width: 100%; }
}

body.bvi-font-200 main :where(.grid) { grid-template-columns: minmax(0, 1fr) !important; }
body.bvi-font-200 main :where(.flex) { flex-wrap: wrap !important; }
body.bvi-font-200 main :where([class*="w-"]) { max-width: 100% !important; }

@media (forced-colors: active) {
    .bvi-panel, .bvi-panel button, .bvi-trigger, .bvi-menu-trigger, .bvi-floating-trigger { forced-color-adjust: auto; }
    .bvi-option[aria-pressed="true"] { outline: 3px solid ButtonText; }
}

@media print {
    .bvi-panel, .bvi-trigger, .bvi-menu-trigger, .bvi-floating-trigger, .bvi-skip-link { display: none !important; }
}
