/* /Components/Layout/CulturePicker.razor.rz.scp.css */
/* Bespoke FLAG language picker in the wood top nav (Phase 16.1 / §20, redesigned): a no-JS
   <details> dropdown whose <summary> trigger shows the current language's flag and whose open
   panel is a themed parchment grid of country-flag submit buttons. Sits at the right of the nav
   row. The form posts to /Culture/Set (set-cookie-then-reload) — no circuit, no JS. */
.culture-picker[b-axx4p037h9] {
    display: flex;
    align-items: center;
    margin: 0;
}

/* The <details> is the positioning anchor: the open panel is absolutely positioned against it so
   opening the menu never shifts the nav layout. */
.culture-menu[b-axx4p037h9] {
    position: relative;
}

/* The trigger (<summary>): a small wood chip framing the current flag + a chevron. Reset the native
   list marker (the disclosure triangle) so it reads as a bespoke control, not a stock <details>. */
.culture-trigger[b-axx4p037h9] {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.45rem;
    cursor: pointer;
    list-style: none;
    border-radius: var(--radius-sm, 8px);
    border: 1px solid var(--wood-edge, #3f2410);
    background-color: rgba(0, 0, 0, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    -webkit-tap-highlight-color: transparent;
}

.culture-trigger[b-axx4p037h9]::-webkit-details-marker {
    display: none;
}

.culture-trigger:hover[b-axx4p037h9] {
    background-color: rgba(0, 0, 0, 0.30);
}

/* The current-flag thumbnail inside the trigger: a subtle rounded cream frame so it sits in the
   cozy theme rather than floating as a bare image. */
.culture-flag[b-axx4p037h9] {
    display: block;
    border-radius: 3px;
    border: 1px solid var(--wood-edge, #3f2410);
    box-shadow: 0 1px 2px rgba(40, 25, 10, 0.35);
    object-fit: cover;
}

.culture-flag-current[b-axx4p037h9] {
    width: 24px;
    height: 18px;
}

/* A small cream chevron that flips when the menu opens (a quiet "this expands" cue). */
.culture-chevron[b-axx4p037h9] {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--cream, #f4e9d2);
    transition: transform 0.12s ease;
}

.culture-menu[open] .culture-chevron[b-axx4p037h9] {
    transform: rotate(180deg);
}

/* The open panel: a themed parchment/cream card with a soft shadow and wood edge, anchored to the
   trigger and RIGHT-aligned so it grows toward the viewport centre (never off the right edge). A
   compact ~5-column grid of flags. z-index above page content. Max-width + scroll keep it inside a
   narrow viewport. */
.culture-panel[b-axx4p037h9] {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(5, auto);
    gap: 0.4rem;
    padding: 0.6rem;
    max-width: min(20rem, calc(100vw - 1.5rem));
    max-height: min(22rem, calc(100vh - var(--topnav-height, 7rem) - 1rem));
    overflow: auto;
    background-color: var(--kraft-light, #e7d2ae);
    background-image: linear-gradient(rgba(255, 255, 255, 0.10), rgba(0, 0, 0, 0.05));
    color: var(--ink, #3a2a18);
    border: 1px solid var(--wood-edge, #3f2410);
    border-radius: var(--radius, 12px);
    box-shadow: var(--shadow-pop, 0 8px 18px rgba(40, 25, 10, 0.30));
}

/* A little parchment "beak" pointing up at the trigger so the panel reads as attached to it. */
.culture-panel[b-axx4p037h9]::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 0.85rem;
    width: 12px;
    height: 12px;
    background-color: var(--kraft-light, #e7d2ae);
    border-left: 1px solid var(--wood-edge, #3f2410);
    border-top: 1px solid var(--wood-edge, #3f2410);
    transform: rotate(45deg);
}

/* Each flag is a submit button: a tidy cream tile with a rounded frame. No stock button chrome. */
.culture-option[b-axx4p037h9] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    margin: 0;
    cursor: pointer;
    background-color: var(--cream, #f4e9d2);
    border: 1px solid var(--kraft-dark, #c2a271);
    border-radius: var(--radius-sm, 8px);
    box-shadow: var(--shadow-soft, 0 2px 6px rgba(40, 25, 10, 0.18));
    transition: transform 0.05s ease, box-shadow 0.05s ease, border-color 0.12s ease;
}

.culture-option:hover[b-axx4p037h9] {
    border-color: var(--wood, #7a4b2b);
    transform: translateY(-1px);
    box-shadow: var(--shadow-pop, 0 8px 18px rgba(40, 25, 10, 0.30));
}

.culture-option:active[b-axx4p037h9] {
    transform: translateY(0);
}

/* The current language: an amber frame + a soft amber halo (the "you are here" cue, matching the
   nav's active-link amber marker). */
.culture-option.is-current[b-axx4p037h9] {
    border-color: var(--accent, #c9772e);
    box-shadow: 0 0 0 2px var(--accent, #c9772e);
}

/* The two-tone cream/ink focus halo used across the theme, so keyboard focus is unmistakable on
   either the dark trigger or the light panel. */
.culture-trigger:focus-visible[b-axx4p037h9],
.culture-option:focus-visible[b-axx4p037h9] {
    outline: 2px solid var(--accent, #c9772e);
    outline-offset: 2px;
    box-shadow:
        0 0 0 2px var(--cream, #f4e9d2),
        0 0 0 4px var(--ink, #3a2a18);
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* App shell layout (Phase 13.6). The page sits on FELT (body, theme.css); the
   top bar is a WOOD plank (NavMenu.razor.css); below it the content article reads
   on a full-width, centered PAPER sheet. The left sidebar was dropped and the nav
   moved to a horizontal top bar to match docs/design/sample. Material = role
   (visual-direction §3/§5). */

.page[b-2rxljaky2p] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-main[b-2rxljaky2p] {
    flex: 1;
    min-width: 0;
    padding: 0 1.5rem;
}

/* Content article = a paper sheet laid on the felt: full-width up to a readable
   max, centered, lifted with a soft shadow. */
.content[b-2rxljaky2p] {
    max-width: 1100px;
    margin: 1.5rem auto;
    background-color: var(--paper);
    color: var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: 1.75rem 2rem;
}

    .content :is(h1, h2, h3, h4, h5, h6)[b-2rxljaky2p] {
        color: var(--ink);
    }

@media (max-width: 640.98px) {
    .page-main[b-2rxljaky2p] {
        padding: 0 0.75rem;
    }

    .content[b-2rxljaky2p] {
        margin: 0.75rem auto;
        padding: 1.1rem 1.15rem;
    }
}

#blazor-error-ui[b-2rxljaky2p] {
    color-scheme: light only;
    background: var(--paper, lightyellow);
    color: var(--ink, #3A2A18);
    border-top: 3px solid var(--accent, #C9772E);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(40, 25, 10, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-2rxljaky2p] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
        /* Reset the native button chrome — it reads as a plain close glyph. */
        appearance: none;
        border: none;
        background: none;
        padding: 0.1rem 0.35rem;
        font-size: 1.1rem;
        line-height: 1;
        color: var(--ink, #3A2A18);
        border-radius: var(--radius-sm, 8px);
    }

    #blazor-error-ui .dismiss:hover[b-2rxljaky2p],
    #blazor-error-ui .dismiss:focus-visible[b-2rxljaky2p] {
        background: var(--paper-dim, #EBE0C6);
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* WOOD plank TOP nav (Phase 13.6, visual-direction §3/§5; matches docs/design/sample):
   a beveled brown plank spanning the top, the concept-1 tray logo at the left and the
   cream links pushed to the right. The active link is an inset wood well with an amber
   left-edge marker. On narrow screens the links collapse behind a hamburger toggle. */

.topnav[b-9l2j79z7j0] {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    padding: 0.7rem 1.5rem;
    color: var(--cream);
    background-color: var(--wood);
    background-image:
        linear-gradient(rgba(255, 255, 255, .06), rgba(0, 0, 0, .10)),
        repeating-linear-gradient(90deg,
            rgba(0, 0, 0, .05) 0 2px, transparent 2px 5px,
            rgba(255, 255, 255, .04) 5px 6px, transparent 6px 11px);
    box-shadow: inset 0 2px 0 var(--wood-light), inset 0 -3px 0 var(--wood-dark), 0 4px 10px rgba(40, 25, 10, .35);
    border-bottom: 1px solid var(--wood-edge);
}

/* Brand = the tray mark + wordmark; margin-right:auto pushes the links to the right. */
.brand[b-9l2j79z7j0] {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-right: auto;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cream);
    text-decoration: none;
    padding: 0.1rem 0;
}

.brand:hover[b-9l2j79z7j0] {
    color: #fff;
    text-decoration: none;
}

.brand-mark[b-9l2j79z7j0] {
    flex: 0 0 auto;
    filter: drop-shadow(0 1px 1px rgba(40, 25, 10, .4));
}

.brand-wordmark[b-9l2j79z7j0] {
    color: #fff;
}

/* "Maker" is injected via a runtime MarkupString (Nav_BrandName), so its <b> never receives this
   component's CSS-isolation scope attribute — a plain `.brand-wordmark b` (rewritten to require that
   attribute) wouldn't match it. ::deep targets the unscoped descendant so the gold actually applies. */
.brand-wordmark[b-9l2j79z7j0]  b {
    color: var(--brand-maker);
    font-weight: 700;
}

/* The link cluster. Wide screens lay it out as an inline row (see the media query);
   the mobile-first base hides it behind the hamburger and stacks it when opened. */
.nav-links[b-9l2j79z7j0] {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding-top: 0.4rem;
}

.nav-toggler:checked ~ .nav-links[b-9l2j79z7j0] {
    display: flex;
}

.nav-logout[b-9l2j79z7j0] {
    display: flex;
    margin: 0;
}

/* The links + the logout button (a plain button styled as a link). The ::deep
   reaches the NavLink-rendered anchors (their own scope) AND the logout button. */
.nav-links[b-9l2j79z7j0]  .nav-link {
    color: var(--cream);
    font-family: var(--font-body);
    font-weight: 600;
    width: 100%;
    padding: 0.5rem 0.8rem;
    border: none;
    border-radius: var(--radius-sm);
    background: none;
    cursor: pointer;
    white-space: nowrap;
    text-align: left;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
}

.nav-links[b-9l2j79z7j0]  .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.18);
    color: #fff;
    text-decoration: none;
}

/* Active link = an inset wood well + an amber left-edge marker (the "you are here" cue). */
.nav-links[b-9l2j79z7j0]  a.active {
    position: relative;
    background-color: var(--wood-dark);
    color: #fff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, .4);
}

.nav-links[b-9l2j79z7j0]  a.active::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 2px;
    background: var(--accent);
}

/* Hamburger (the checkbox styled as a button) — only shown on narrow screens. */
.nav-toggler[b-9l2j79z7j0] {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    width: 2.75rem;
    height: 2.25rem;
    margin: 0;
    color: var(--cream);
    border: 1px solid var(--wood-edge);
    border-radius: var(--radius-sm);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28244, 233, 210, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.6rem rgba(0, 0, 0, 0.18);
}

.nav-toggler:checked[b-9l2j79z7j0] {
    background-color: rgba(0, 0, 0, 0.35);
}

/* Wide screens: hide the hamburger, lay the links out as an inline row at the right. */
@media (min-width: 641px) {
    .nav-toggler[b-9l2j79z7j0] {
        display: none;
    }

    .nav-links[b-9l2j79z7j0],
    .nav-toggler:checked ~ .nav-links[b-9l2j79z7j0] {
        display: flex;
        flex-basis: auto;
        flex-direction: row;
        align-items: center;
        gap: 0.3rem;
        padding-top: 0;
    }

    .nav-links[b-9l2j79z7j0]  .nav-link {
        width: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-j2nln1rtfh],
.components-reconnect-repeated-attempt-visible[b-j2nln1rtfh],
.components-reconnect-failed-visible[b-j2nln1rtfh],
.components-pause-visible[b-j2nln1rtfh],
.components-resume-failed-visible[b-j2nln1rtfh],
.components-rejoining-animation[b-j2nln1rtfh] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-j2nln1rtfh],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-j2nln1rtfh],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-j2nln1rtfh],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-j2nln1rtfh],
#components-reconnect-modal.components-reconnect-retrying[b-j2nln1rtfh],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-j2nln1rtfh],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-j2nln1rtfh],
#components-reconnect-modal.components-reconnect-failed[b-j2nln1rtfh],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-j2nln1rtfh] {
    display: block;
}


#components-reconnect-modal[b-j2nln1rtfh] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-j2nln1rtfh 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-j2nln1rtfh 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-j2nln1rtfh 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-j2nln1rtfh]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-j2nln1rtfh 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-j2nln1rtfh {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-j2nln1rtfh {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-j2nln1rtfh {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-j2nln1rtfh] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-j2nln1rtfh] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-j2nln1rtfh] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-j2nln1rtfh] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-j2nln1rtfh] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-j2nln1rtfh] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-j2nln1rtfh] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-j2nln1rtfh 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-j2nln1rtfh] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-j2nln1rtfh {
    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;
    }
}
