/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-libswg2ieh] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-libswg2ieh] {
    flex: 1;
}

.sidebar[b-libswg2ieh] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-libswg2ieh] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-libswg2ieh]  a, .top-row[b-libswg2ieh]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-libswg2ieh]  a:hover, .top-row[b-libswg2ieh]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-libswg2ieh]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-libswg2ieh] {
        justify-content: space-between;
    }

    .top-row[b-libswg2ieh]  a, .top-row[b-libswg2ieh]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-libswg2ieh] {
        flex-direction: row;
    }

    .sidebar[b-libswg2ieh] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-libswg2ieh] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-libswg2ieh]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-libswg2ieh], article[b-libswg2ieh] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-libswg2ieh] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 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-libswg2ieh] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-ahqqkh8ido] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-ahqqkh8ido] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-ahqqkh8ido] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-ahqqkh8ido] {
    font-size: 1.1rem;
}

.bi[b-ahqqkh8ido] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-ahqqkh8ido] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-ahqqkh8ido] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-ahqqkh8ido] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-ahqqkh8ido] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-ahqqkh8ido] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-ahqqkh8ido] {
        padding-bottom: 1rem;
    }

    .nav-item[b-ahqqkh8ido]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-ahqqkh8ido]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-ahqqkh8ido]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-ahqqkh8ido] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-ahqqkh8ido] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-ahqqkh8ido] {
        display: none;
    }

    .nav-scrollable[b-ahqqkh8ido] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-dnjj4vvuxm],
.components-reconnect-repeated-attempt-visible[b-dnjj4vvuxm],
.components-reconnect-failed-visible[b-dnjj4vvuxm],
.components-pause-visible[b-dnjj4vvuxm],
.components-resume-failed-visible[b-dnjj4vvuxm],
.components-rejoining-animation[b-dnjj4vvuxm] {
    display: none;
}

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


#components-reconnect-modal[b-dnjj4vvuxm] {
    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-dnjj4vvuxm 0.5s both;
    &[open]

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

@keyframes components-rejoining-animation-b-dnjj4vvuxm {
    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;
    }
}
/* /Components/Pages/News.razor.rz.scp.css */
/* ── PIN gate ────────────────────────────────────────────── */

.pin-gate[b-v3h8pacd7r] {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.pin-card[b-v3h8pacd7r] {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
    padding: 2.75rem 2.5rem 2.25rem;
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.pin-icon[b-v3h8pacd7r] {
    color: #1a73e8;
    margin-bottom: 1rem;
}

.pin-title[b-v3h8pacd7r] {
    font-size: 1.6rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.pin-subtitle[b-v3h8pacd7r] {
    font-size: 0.88rem;
    color: #777;
    margin-bottom: 1.75rem;
}

.pin-form[b-v3h8pacd7r] {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pin-input[b-v3h8pacd7r] {
    width: 100%;
    font-size: 1.6rem;
    text-align: center;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 0.65rem 1rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    background: #fafafa;
    letter-spacing: 0.4em;
}

.pin-input:focus[b-v3h8pacd7r] {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
    background: #fff;
}

.pin-input--error[b-v3h8pacd7r] {
    border-color: #dc3545;
}

.pin-input--error:focus[b-v3h8pacd7r] {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

.pin-error-msg[b-v3h8pacd7r] {
    color: #dc3545;
    font-size: 0.83rem;
    margin: 0.5rem 0 0;
    text-align: center;
}

.pin-submit[b-v3h8pacd7r] {
    margin-top: 1.25rem;
    padding: 0.65rem;
    font-weight: 600;
    border-radius: 10px;
    font-size: 0.95rem;
}

/* ── Page header ─────────────────────────────────────────── */

.news-title[b-v3h8pacd7r] {
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.news-subtitle[b-v3h8pacd7r] {
    font-size: 0.92rem;
    color: #777;
    margin-top: 0.2rem;
}

.refresh-btn[b-v3h8pacd7r] {
    align-self: flex-end;
}

/* ── Story card ───────────────────────────────────────────── */

.story-card[b-v3h8pacd7r] {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    outline-offset: 3px;
}

.story-card:hover[b-v3h8pacd7r] {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);
}

.story-card:focus-visible[b-v3h8pacd7r] {
    outline: 2px solid #1a73e8;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.13);
}

/* ── Thumbnail ────────────────────────────────────────────── */

/* Skeleton shimmer shown until the image paints over it */
@keyframes shimmer-b-v3h8pacd7r {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

.story-thumbnail[b-v3h8pacd7r] {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
    /* Shimmer fills the box; the <img> covers it once loaded */
    background: linear-gradient(90deg, #ebebeb 25%, #f5f5f5 50%, #ebebeb 75%);
    background-size: 200% 100%;
    animation: shimmer-b-v3h8pacd7r 1.4s ease-in-out infinite;
}

.story-thumbnail img[b-v3h8pacd7r] {
    /* Fills the 16/9 container regardless of source dimensions */
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Top-biased: keeps faces/subjects visible, crops sky/backgrounds */
    object-position: center top;
    display: block;
    transition: transform 0.3s ease;
}

.story-card:hover .story-thumbnail img[b-v3h8pacd7r] {
    transform: scale(1.04);
}

.story-thumbnail-placeholder[b-v3h8pacd7r] {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #c0c5cc;
    /* Static gradient — no shimmer for explicit "no image" state */
    background: linear-gradient(140deg, #f2f4f7 0%, #e8ebf0 100%);
    animation: none;
}

.story-thumbnail-placeholder small[b-v3h8pacd7r] {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

/* ── Card content ─────────────────────────────────────────── */

.story-content[b-v3h8pacd7r] {
    padding: 1.1rem 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.story-category[b-v3h8pacd7r] {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #1a73e8;
    background: #e8f0fe;
    border-radius: 4px;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.55rem;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-headline[b-v3h8pacd7r] {
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
    line-height: 1.35;
    margin: 0 0 0.6rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.story-teaser[b-v3h8pacd7r] {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.58;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Card footer ──────────────────────────────────────────── */

.story-footer[b-v3h8pacd7r] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: #999;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.story-byline[b-v3h8pacd7r] {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}

.story-sep[b-v3h8pacd7r] {
    color: #ccc;
}

.story-date[b-v3h8pacd7r] {
    white-space: nowrap;
}

/* ── Load more ────────────────────────────────────────────── */

.load-more-section[b-v3h8pacd7r] {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 0 1rem;
}

.load-more-btn[b-v3h8pacd7r] {
    min-width: 180px;
    padding: 0.55rem 1.75rem;
    font-weight: 600;
    border-radius: 24px;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.load-more-btn:not(:disabled):hover[b-v3h8pacd7r] {
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.load-more-end[b-v3h8pacd7r] {
    color: #aaa;
    font-size: 0.875rem;
    margin: 0;
}

/* ── Category filter ──────────────────────────────────────── */

.category-filter[b-v3h8pacd7r] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.category-btn[b-v3h8pacd7r] {
    padding: 0.3rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 20px;
    border: 1.5px solid #dee2e6;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.category-btn:hover[b-v3h8pacd7r] {
    border-color: #1a73e8;
    color: #1a73e8;
}

.category-btn--active[b-v3h8pacd7r] {
    background: #1a73e8;
    border-color: #1a73e8;
    color: #fff;
}

.category-btn--active:hover[b-v3h8pacd7r] {
    background: #1557b0;
    border-color: #1557b0;
    color: #fff;
}

/* ── Search bar ───────────────────────────────────────────── */

.search-bar[b-v3h8pacd7r] {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-input[b-v3h8pacd7r] {
    flex: 1;
    min-width: 0;
    padding: 0.45rem 0.9rem;
    font-size: 0.9rem;
    border: 1.5px solid #dee2e6;
    border-radius: 8px;
    outline: none;
    background: #fafafa;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus[b-v3h8pacd7r] {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.12);
    background: #fff;
}

.search-btn[b-v3h8pacd7r] {
    white-space: nowrap;
}

.search-active-label[b-v3h8pacd7r] {
    font-size: 0.85rem;
    color: #888;
}

/* ── Full story dialog ────────────────────────────────────── */

.story-body[b-v3h8pacd7r] {
    padding: 0.25rem 0.5rem;
    max-height: 70vh;
    overflow-y: auto;
    line-height: 1.8;
}

.story-body-meta[b-v3h8pacd7r] {
    color: #777;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #eee;
}

