.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.site-nav a {
    font-size: 12px;
    font-weight: 500;
    color: #737373;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 8px;
    transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: #fff; background: #1a1a1a; }
.site-nav a.active { color: #fff; background: #222; }

/* Dolna nawigacja (mobile) */
.site-nav-bottom {
    display: none;
}

@media (max-width: 767px) {
    body.has-bottom-nav {
        padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
    }

    header .site-nav {
        display: none;
    }

    .site-nav-bottom {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 50;
        justify-content: space-around;
        align-items: stretch;
        gap: 0;
        padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
        background: rgba(8, 8, 8, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid #1a1a1a;
    }

    .site-nav-bottom a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 44px;
        padding: 6px 4px;
        font-size: 11px;
        font-weight: 600;
        color: #737373;
        text-decoration: none;
        border-radius: 10px;
        -webkit-tap-highlight-color: transparent;
    }

    .site-nav-bottom a i {
        font-size: 20px;
        line-height: 1;
    }

    .site-nav-bottom a.active {
        color: #fff;
        background: #1a1a1a;
    }
}

/* Wspólny pasek nagłówka — nawigacja zawsze po prawej */
.site-header-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.site-header-brand {
    flex-shrink: 0;
    line-height: 1.25;
    max-width: min(16rem, 42vw);
}

.site-header-brand .brand-main,
.site-header-brand > p:first-child {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.site-header-brand .brand-sub,
.site-header-brand .forum-title-sub,
.site-header-brand > p:last-child:not(:only-child):not(.vacation-badge) {
    font-size: 11px;
    color: #737373;
    margin-top: 1px;
}

.site-header-brand .vacation-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    font-size: 11px;
    font-weight: 600;
    color: #4ade80;
    line-height: 1.3;
}

.site-header-brand .vacation-badge.hidden {
    display: none;
}

.site-header-brand .vacation-badge.on-break {
    color: #fde68a;
}

.site-header-brand .vacation-badge i {
    font-size: 13px;
    opacity: 0.9;
}

.site-header-main {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.site-header-main:empty {
    padding: 0;
    min-height: 0;
}

/* Prawy blok: nawigacja + opcjonalnie „Dziś” (jak na planie lekcji) */
.site-header-end {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    flex-shrink: 0;
}

.site-header-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

/* Pusty slot = ta sama szerokość co przycisk „Dziś” na planie */
.site-header-actions--spacer {
    width: 3.25rem;
    min-height: 30px;
    pointer-events: none;
}

@media (max-width: 767px) {
    .site-header-bar {
        gap: 8px;
    }

    .site-header-brand .brand-sub,
    .site-header-brand .forum-title-sub,
    .site-header-brand > p:nth-child(2) {
        display: none;
    }
}
