/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-33yea4bnv7] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-33yea4bnv7] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.body[b-33yea4bnv7] {
    flex: 1 0 auto;
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.body > article[b-33yea4bnv7] {
    flex: 1 1 auto;
    min-width: 0;
}

/* Full-width header bar; its contents line up with the three columns below. */
.top-row[b-33yea4bnv7] {
    background-color: var(--sh-surface);
    border-bottom: 1px solid var(--sh-border-subtle);
    position: sticky;
    top: 0;
    z-index: 2;
}

.top-row-inner[b-33yea4bnv7] {
    max-width: 1480px;
    margin-inline: auto;
    min-height: 3.5rem;
    padding-inline: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .top-row-inner[b-33yea4bnv7]  a, .top-row-inner[b-33yea4bnv7]  .btn-link {
        white-space: nowrap;
        text-decoration: none;
    }

    .top-row-inner[b-33yea4bnv7]  a:hover, .top-row-inner[b-33yea4bnv7]  .btn-link:hover {
        text-decoration: underline;
    }

.navbar-brand[b-33yea4bnv7] {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--sh-text);
    display: flex;
    align-items: center;
}

/* The search sits right after the logo; the links are pushed to the far side. */
.top-search[b-33yea4bnv7] {
    margin-inline-end: auto;
}

@media (max-width: 640.98px) {
    .top-row-inner[b-33yea4bnv7] {
        flex-wrap: wrap;
        padding-block: 0.5rem;
        gap: 0.5rem 0.9rem;
        /* Room on the right for the menu button, which is placed over the header (see NavMenu). */
        padding-inline-end: 4.25rem;
    }

    /* Discover is in the menu too. */
    .top-discover[b-33yea4bnv7] {
        display: none;
    }

    .top-search[b-33yea4bnv7] {
        order: 10;
        flex: 1 0 100%;
    }
}

@media (min-width: 641px) {
    /* On a wide screen the three columns sit together in the middle instead of being pushed to the left edge. */
    .page[b-33yea4bnv7] {
        flex-direction: row;
        max-width: 1480px;
        margin-inline: auto;
    }

    /* Same 250px column as before; the menu and groups float in it as bubbles. */
    .sidebar[b-33yea4bnv7] {
        flex: 0 0 250px;
        width: 250px;
        box-sizing: border-box;
        padding: 1rem 0 0.5rem 0.75rem;
        height: calc(100vh - 3.5rem);
        position: sticky;
        top: 3.5rem;
        overflow-y: auto;
    }

    article[b-33yea4bnv7] {
        padding-inline-start: 2rem !important;
        padding-inline-end: 1.5rem !important;
    }
}

/* Reading column: wide enough to read, never a full-width wall of text. */
article.content[b-33yea4bnv7] {
    max-width: 960px;
}

#blazor-error-ui[b-33yea4bnv7] {
    background-color: var(--sh-surface);
    color: var(--sh-text);
    border-top: 2px solid var(--sh-danger);
    bottom: 0;
    box-sizing: border-box;
    display: none;
    inset-inline-start: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-33yea4bnv7] {
        cursor: pointer;
        position: absolute;
        inset-inline-end: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-xy3y7njpfh] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: var(--sh-text);
    display: block;
    margin: 0.5rem 1rem 0.5rem auto;
    border: 1px solid var(--sh-border-strong);
    border-radius: 8px;
    background-color: var(--sh-surface);
}

/* The hamburger is drawn as text so it takes the theme color. */
.navbar-toggler[b-xy3y7njpfh]::before {
    content: "\2630";
    display: block;
    text-align: center;
    line-height: 2.3rem;
    font-size: 1.25rem;
}

.navbar-toggler:checked[b-xy3y7njpfh] {
    background-color: var(--sh-hover);
}

/* The menu is a bubble, like the right-hand panel. */
.side-bubble[b-xy3y7njpfh] {
    background-color: var(--sh-surface);
    border: 1px solid var(--sh-border-subtle);
    border-radius: 10px;
    margin-bottom: 0.75rem;
}

/* Legal links: small and quiet, under the bubbles. */
.side-legal[b-xy3y7njpfh] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    padding: 0 0.5rem 1rem;
    font-size: 0.75rem;
}

    .side-legal a[b-xy3y7njpfh] {
        color: var(--sh-text);
        opacity: 0.7;
        text-decoration: none;
    }

    .side-legal a:hover[b-xy3y7njpfh] {
        opacity: 1;
        text-decoration: underline;
    }

.nav-item[b-xy3y7njpfh] {
    font-size: 0.9rem;
    padding-bottom: 0.1rem;
}

    .nav-item:first-of-type[b-xy3y7njpfh] {
        padding-top: 0.5rem;
    }

    .nav-item:last-of-type[b-xy3y7njpfh] {
        padding-bottom: 0.5rem;
    }

    .nav-item[b-xy3y7njpfh]  .nav-link {
        color: var(--sh-text);
        background: none;
        border: none;
        border-radius: 8px;
        min-height: 2rem;
        padding-block: 0.25rem;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        width: 100%;
    }

/* The current page: the menu item takes the accent color and a soft accent tint of its own. */
.nav-item[b-xy3y7njpfh]  a.active {
    background-color: color-mix(in srgb, var(--sh-accent) 16%, transparent);
    color: var(--sh-accent);
    font-weight: 600;
}

.nav-item[b-xy3y7njpfh]  .nav-link:hover {
    background-color: var(--sh-hover);
    color: var(--sh-text);
}

.nav-item[b-xy3y7njpfh]  a.active:hover {
    background-color: color-mix(in srgb, var(--sh-accent) 24%, transparent);
    color: var(--sh-accent);
}

.nav-scrollable[b-xy3y7njpfh] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-xy3y7njpfh] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-xy3y7njpfh] {
        display: none;
    }

    .nav-scrollable[b-xy3y7njpfh] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}

/* Small screens: the menu button sits in the header's first row instead of taking a line of its own, and the menu opens as a
   panel over the page under the header, wherever the page is scrolled to. */
@media (max-width: 640.98px) {
    .navbar-toggler[b-xy3y7njpfh] {
        position: fixed;
        top: 0.6rem;
        inset-inline-end: 0.75rem;
        z-index: 4;
        width: 2.75rem;
        height: 2.4rem;
        margin: 0;
    }

    .navbar-toggler:checked ~ .nav-scrollable[b-xy3y7njpfh] {
        position: fixed;
        top: 3.7rem;
        inset-inline: 0.75rem;
        z-index: 3;
        max-height: calc(100dvh - 4.5rem);
        overflow-y: auto;
        padding: 0.5rem;
        background-color: var(--sh-bg);
        border: 1px solid var(--sh-border-subtle);
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-lsh5kels4h],
.components-reconnect-repeated-attempt-visible[b-lsh5kels4h],
.components-reconnect-failed-visible[b-lsh5kels4h],
.components-pause-visible[b-lsh5kels4h],
.components-resume-failed-visible[b-lsh5kels4h],
.components-rejoining-animation[b-lsh5kels4h] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-lsh5kels4h],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-lsh5kels4h],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-lsh5kels4h],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-lsh5kels4h],
#components-reconnect-modal.components-reconnect-retrying[b-lsh5kels4h],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-lsh5kels4h],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-lsh5kels4h],
#components-reconnect-modal.components-reconnect-failed[b-lsh5kels4h],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-lsh5kels4h] {
    display: block;
}


#components-reconnect-modal[b-lsh5kels4h] {
    background-color: var(--sh-surface);
    color: var(--sh-text);
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    border: 1px solid var(--sh-border-strong);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-lsh5kels4h 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-lsh5kels4h 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-lsh5kels4h 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-lsh5kels4h]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-lsh5kels4h 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-lsh5kels4h {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-lsh5kels4h {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-lsh5kels4h {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-lsh5kels4h] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-lsh5kels4h] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-lsh5kels4h] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-lsh5kels4h] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-lsh5kels4h] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-lsh5kels4h] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-lsh5kels4h] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-lsh5kels4h 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-lsh5kels4h] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-lsh5kels4h {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
