/* place your custom CSS overrides here */

/* ── Accessibility: keyboard focus indicators ─────────────────────────────── */
:focus-visible {
    outline: 2px solid #2484ff;
    outline-offset: 2px;
}
/* Remove outline only for mouse/touch users; :focus-visible keeps it for kb */
:focus:not(:focus-visible) {
    outline: none;
}
/* Re-assert focus ring on elements that hard-code outline:0/none in screen.css */
.lang-selector a:focus-visible,
.toc-wrapper > .search input:focus-visible {
    outline: 2px solid #2484ff;
    outline-offset: 2px;
}

/* ── Accessibility: visually-hidden utility (labels readable by AT only) ───── */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Mobile menu button reset (replaced <span> with <button> for a11y) ──────── */
.mobile-menu-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}

/* ── Language tab: ARIA-driven active state (mirrors .active class) ─────────── */
.lang-selector a[aria-selected="true"] {
    background-color: #2e3336;
    color: #fff;
}

div .highlight {
	max-width: 95%;
	max-height: 350px;
	overflow-y: auto;
	overflow-x: hidden;
}
pre.highlight:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}
.toc-list-h3 {
    display: none;
    background-color: #1E2224;
}
.toc-h3 {
    padding-left: 35px;
    font-size: 11px;
}
.toc-list-h4 {
    display: none;
    background-color: #1E2224;
}
.toc-h4 {
    padding-left: 45px;
    font-size: 10px;
}
.toc-list-h5 {
    display: none;
    background-color: #1E2224;
}
.toc-h5 {
    padding-left: 55px;
    font-size: 9px;
}
.toc-list-h6 {
    display: none;
    background-color: #1E2224;
}
.toc-h6 {
    padding-left: 65px;
    font-size: 8px;
}
.well {
    background: rgba(0, 0, 0, 0.01);
}

/* ── Mobile TOC toggle button ────────────────────────────────────────────── */
@media (max-width: 930px) {
    .header .navbar-menu {
        display: none;
    }
}
