/* Accessibility Toolbar — LIC-style text size */

:root {
    --a11y-font-scale: 1;
}

/*
 * Scale page CONTENT only (not header chrome).
 * zoom is supported in Chromium/Safari/modern Firefox.
 */
#main-content {
    zoom: var(--a11y-font-scale);
}

@supports not (zoom: 1) {
    html {
        font-size: calc(16px * var(--a11y-font-scale));
    }

    .site-nav,
    .site-nav .menu_link,
    .site-nav .btn-apply,
    .site-nav .btn-ghost,
    .site-nav .btn-hamburger,
    .a11y-toolbar,
    .a11y-launcher,
    .a11y-panel,
    .a11y-btn,
    .a11y-hint,
    .a11y-skip-link,
    .mobile-drawer,
    .mobile-sticky {
        font-size: 16px !important;
    }
}

/* Skip link */
.a11y-skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 10000;
    padding: 0.65rem 1rem;
    background: var(--navy, #182544);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.a11y-skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--orange, #ff9a4a);
    outline-offset: 2px;
}

/* Header control — last item in nav-actions */
.a11y-toolbar {
    position: relative;
    flex: 0 0 auto;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: normal;
    z-index: 1201;
}

.a11y-launcher {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--navy, #182544);
    color: #fff;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.a11y-launcher:hover,
.a11y-launcher[aria-expanded="true"] {
    background: var(--orange-deep, #ae1b01);
}

.a11y-launcher:focus-visible {
    outline: 3px solid var(--orange, #ff9a4a);
    outline-offset: 2px;
}

.a11y-launcher i,
.a11y-launcher .a11y-icon-fallback {
    font-size: 1.05rem;
    line-height: 1;
}

.a11y-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(240px, calc(100vw - 1.5rem));
    padding: 0.9rem;
    background: #fff;
    border: 1px solid rgba(24, 37, 68, 0.12);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(24, 37, 68, 0.18);
    z-index: 1300;
    display: none;
}

.a11y-panel.is-open {
    display: block;
}

.a11y-panel-title {
    margin: 0 0 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy, #182544);
}

.a11y-font-controls {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.a11y-btn {
    min-height: 40px;
    padding: 0.4rem 0.5rem;
    border: 1px solid rgba(24, 37, 68, 0.15);
    border-radius: 8px;
    background: #f8f9fb;
    color: var(--navy, #182544);
    font-weight: 700;
    cursor: pointer;
    transition: 0.15s ease;
}

.a11y-btn:hover {
    border-color: var(--orange, #ff9a4a);
    color: var(--orange-deep, #ae1b01);
}

.a11y-btn:focus-visible {
    outline: 3px solid var(--orange, #ff9a4a);
    outline-offset: 2px;
}

.a11y-btn.is-active,
.a11y-btn[aria-pressed="true"] {
    background: var(--navy, #182544);
    border-color: var(--navy, #182544);
    color: #fff;
}

.a11y-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.a11y-btn:disabled:hover {
    border-color: rgba(24, 37, 68, 0.15);
    color: var(--navy, #182544);
}

.a11y-btn-a-minus { font-size: 0.85rem; }
.a11y-btn-a { font-size: 1rem; }
.a11y-btn-a-plus { font-size: 1.15rem; }

.a11y-hint {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    font-weight: 500;
    color: #667085;
}

/* Keep dropdown visible above sticky header; avoid clip */
.site-nav,
.nav-inner,
.nav-actions {
    overflow: visible;
}

@media (max-width: 575.98px) {
    .a11y-launcher {
        width: 36px;
        height: 36px;
    }

    .a11y-panel {
        position: fixed;
        top: 72px;
        right: 0.75rem;
        bottom: auto;
        left: auto;
        width: min(240px, calc(100vw - 1.5rem));
    }
}

@media (prefers-reduced-motion: reduce) {
    .a11y-launcher,
    .a11y-btn,
    .a11y-skip-link {
        transition: none;
    }
}
