/**
 * LMIn Theme Toggle — standalone CSS for GP nav injection
 * Contains ONLY the styles needed for the nav theme toggle button.
 * Extracted from lmin-dashboard-v2.css per Sentinel LOW #1.
 * @package LMIn
 */

/* ── Screen-reader-only utility ── */
.lmin-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ── Icon button base — reused by nav toggle and dashboard ── */
.lmin-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 200ms ease;
}

.lmin-icon-btn:hover {
    color: var(--color-text);
    background: var(--color-surface-raised);
}

.lmin-icon-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ── GP Nav Theme Toggle — menu-specific positioning ── */
.lmin-nav-theme-toggle-item {
    display: flex;
    align-items: center;
    vertical-align: middle;
}

.lmin-nav-theme-toggle {
    /* Slightly smaller in nav context than dashboard's 44px */
    width: 40px;
    height: 40px;
    color: var(--color-text);
}

/* On mobile (GP hamburger), keep the toggle visible inside the dropdown */
@media (max-width: 768px) {
    .lmin-nav-theme-toggle-item {
        display: list-item;
    }
}
