/* /Components/ThemeSwitch.razor.rz.scp.css */
/* the track: two icon slots with the knob behind the current one.
   the knob's travel is the inner width (2.75rem minus the 1px borders)
   minus both paddings and its own width. */
.theme-switch[b-hi4ayl2nfq] {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 2.75rem;
    height: 1.5rem;
    padding: 0 0.12rem;
    border: 1px solid var(--d-line);
    border-radius: 999px;
    background: var(--d-bg);
}

.theme-switch-knob[b-hi4ayl2nfq] {
    position: absolute;
    top: 50%;
    left: 0.12rem;
    width: 1.18rem;
    height: 1.18rem;
    border-radius: 50%;
    background: var(--d-accent);
    transform: translate(0, -50%);
    transition: transform 0.15s ease;
}

.theme-switch.is-dark .theme-switch-knob[b-hi4ayl2nfq] {
    transform: translate(calc(1.33rem - 2px), -50%);
}

.theme-switch-icon[b-hi4ayl2nfq] {
    position: relative; /* above the knob */
    display: grid;
    place-items: center;
    width: 1.18rem;
    height: 1.18rem;
    color: var(--d-muted);
}

.theme-switch-icon.is-current[b-hi4ayl2nfq] {
    color: var(--d-on-accent);
}

.theme-switch-icon svg[b-hi4ayl2nfq] {
    width: 0.78rem;
    height: 0.78rem;
}

@media (prefers-reduced-motion: reduce) {
    .theme-switch-knob[b-hi4ayl2nfq] {
        transition: none;
    }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.content[b-fgae4g0z8d] {
    max-width: 52rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 3rem;
}
/* /Layout/NavMenu.razor.rz.scp.css */
.topbar[b-t703fehbv3] {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--d-panel);
    border-bottom: 1px solid var(--d-line);
}

.topbar-inner[b-t703fehbv3] {
    max-width: 60rem;
    margin: 0 auto;
    padding: 0 1rem;
    min-height: 3.25rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.brand[b-t703fehbv3] {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.02em;
    color: var(--d-fg);
    text-decoration: none;
}

.topbar-links[b-t703fehbv3] {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-width: 0;
}

.topbar-spacer[b-t703fehbv3] {
    flex: 1;
}

.topbar-inner[b-t703fehbv3]  .topbar-link {
    color: var(--d-muted);
    text-decoration: none;
    white-space: nowrap;
    padding: 0.85rem 0;
    border-bottom: 2px solid transparent;
}

.topbar-inner[b-t703fehbv3]  .topbar-link:hover {
    color: var(--d-fg);
}

.topbar-inner[b-t703fehbv3]  .topbar-link.active {
    color: var(--d-fg);
    border-bottom-color: var(--d-accent);
}

/* signed out */

/* only a click target around the switch; the switch draws itself */
.theme-toggle[b-t703fehbv3] {
    display: inline-flex;
    background: none;
    border: none;
    border-radius: 999px;
    padding: 0.25rem;
    cursor: pointer;
}

.theme-toggle:focus-visible[b-t703fehbv3] {
    outline: 2px solid var(--d-accent);
    outline-offset: 1px;
}

/* the user menu */

.user-menu[b-t703fehbv3] {
    position: relative;
    margin-left: auto;
}

.user-button[b-t703fehbv3] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 16rem;
    background: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.25rem 0.6rem 0.25rem 0.25rem;
    color: var(--d-fg);
    font: inherit;
    cursor: pointer;
}

.user-button:hover[b-t703fehbv3],
.user-button[aria-expanded="true"][b-t703fehbv3] {
    border-color: var(--d-line);
}

.user-initial[b-t703fehbv3] {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    background: var(--d-accent);
    color: var(--d-on-accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.user-name[b-t703fehbv3] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-caret[b-t703fehbv3] {
    color: var(--d-muted);
    font-size: 0.8rem;
}

/* catches a tap anywhere outside the panel */
.menu-backdrop[b-t703fehbv3] {
    position: fixed;
    inset: 0;
    z-index: 20;
}

.menu-panel[b-t703fehbv3] {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 21;
    min-width: 14rem;
    background: var(--d-panel);
    border: 1px solid var(--d-line);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
    padding: 0.35rem 0;
}

.menu-who[b-t703fehbv3] {
    padding: 0.5rem 1rem 0.6rem;
    border-bottom: 1px solid var(--d-line);
    margin-bottom: 0.35rem;
    overflow-wrap: anywhere;
}

.menu-who-name[b-t703fehbv3] {
    font-weight: 700;
}

.menu-who-email[b-t703fehbv3] {
    color: var(--d-muted);
    font-size: 0.875rem;
}

.menu-item[b-t703fehbv3] {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    color: var(--d-fg);
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}

.menu-item:hover[b-t703fehbv3],
.menu-item:focus-visible[b-t703fehbv3] {
    background: var(--d-bg);
}

/* text on the left, its icon on the right, so the text lines up with the other items */
.menu-item-split[b-t703fehbv3] {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item-danger[b-t703fehbv3] {
    color: var(--d-bad);
}

.menu-separator[b-t703fehbv3] {
    border-top: 1px solid var(--d-line);
    margin: 0.35rem 0;
}

/* a phone: only the initial on the button; the panel spans the screen under the bar */
@media (max-width: 640.98px) {
    .topbar-inner[b-t703fehbv3] {
        gap: 1rem;
    }

    .user-name[b-t703fehbv3],
    .user-caret[b-t703fehbv3] {
        display: none;
    }

    .user-button[b-t703fehbv3] {
        padding: 0.25rem;
    }

    .user-menu[b-t703fehbv3] {
        position: static;
    }

    .menu-panel[b-t703fehbv3] {
        position: fixed;
        left: 0;
        right: 0;
        top: 3.25rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .menu-item[b-t703fehbv3] {
        padding: 0.85rem 1rem;
    }
}
