/* The hamburger menu on pages other than the directory (lib/site-menu.js):
   a slim blue bar for pages without a topbar, and the menu's categories
   greyed out (they only filter on the directory page). */
.site-bar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: var(--color-topbar, #33658a);
    border-bottom: 4px solid var(--color-yellow, #f6ae2d);
}

.site-bar-title {
    font-family: "Work Sans", var(--font-sans, sans-serif);
    font-weight: 800;
    font-size: 1.05rem;
    color: #ffffff;
    text-decoration: none;
}

/* This browser's three words (lib/site-menu.js), as in the directory's
   header: a box per word, tap to copy. On narrow phones they wrap under the
   title. */
.site-bar {
    flex-wrap: wrap;
}

.site-bar-words {
    position: relative;
    display: flex;
    gap: 4px;
    margin-left: auto;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.site-bar-words[hidden] {
    display: none;
}

.site-bar-word {
    padding: 4px 7px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--color-header-btn, #f6ae2d);
    font-family: var(--font-label, sans-serif);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.site-bar-words:focus-visible {
    outline: 2px solid var(--accent-on-dark, #5bc0eb);
    outline-offset: 2px;
}

.site-bar-words.is-copied .site-bar-word {
    visibility: hidden;
}

.site-bar-words.is-copied::after {
    content: attr(data-copied);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.14);
    color: var(--color-header-btn, #f6ae2d);
    font-family: var(--font-label, sans-serif);
    font-size: 0.82rem;
    font-weight: 800;
}

.menu-cats-note {
    margin: 0;
    padding: 12px 16px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--ink-soft, rgba(47, 72, 88, 0.72));
}

.menu-cats-note a {
    font-weight: 700;
    color: var(--color-blue, #33658a);
}

.category-drawer .menu-cat-item.is-disabled {
    cursor: default;
    opacity: 0.45;
}

.category-drawer .menu-cat-item.is-disabled:hover {
    background: transparent;
}
