/* Shared panel navigation. Native details keep branches usable without JavaScript. */
.hub-sidebar {
    --sidebar-background: #0e1c2e;
    --sidebar-active: #1b2b43;
    --sidebar-text: #c3cbdd;
    --sidebar-muted: #95a5ba;
    --sidebar-gold: #d4ad63;
    color: var(--sidebar-text);
    font-family: Figtree, var(--font-sans, sans-serif);
    background: var(--sidebar-background);
    border-color: #26364a;
    min-width: 0;
}

.hub-sidebar .brand-wordmark { filter: brightness(0) invert(1); }
.hub-sidebar .shell-brand { padding: 4px 8px; min-height: 44px; }
.hub-sidebar .shell-links { gap: 22px; }
.hub-sidebar .nav-group { gap: 3px; min-width: 0; }
.hub-sidebar .nav-group-title {
    color: var(--sidebar-muted);
    padding: 0 12px;
    margin: 0 0 7px;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: .13em;
    font-weight: 600;
}

.hub-sidebar .shell-links a,
.hub-sidebar .nav-branch > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    min-width: 0;
    min-height: 42px;
    box-sizing: border-box;
    padding: 6px 8px;
    margin: 0;
    border: 0;
    border-radius: 11px;
    color: var(--sidebar-text);
    background: transparent;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
    text-decoration: none;
    overflow-wrap: anywhere;
    cursor: pointer;
    list-style: none;
}
.hub-sidebar .nav-branch > summary::-webkit-details-marker { display: none; }
.hub-sidebar .nav-branch > summary::marker { content: ''; }
.hub-sidebar .shell-links a:hover,
.hub-sidebar .nav-branch > summary:hover { color: #fff; background: #ffffff0d; }
.hub-sidebar .shell-links a[aria-current="page"] {
    color: var(--sidebar-gold);
    font-weight: 600;
    background: var(--sidebar-active);
    box-shadow: inset 3px 0 var(--sidebar-gold);
}
.hub-sidebar .nav-branch[data-current="true"] > summary { color: #fff; font-weight: 600; }
.hub-sidebar .nav-children > a[aria-current="page"] { box-shadow: none; }
.hub-sidebar :is(a, summary, button):focus-visible {
    outline: 2px solid #f2cc83;
    outline-offset: -2px;
}
.hub-sidebar .nav-tile {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #ffffff12;
    color: #bbc9dc;
}
.hub-sidebar .nav-tile[data-area="evt"] { background: #ffffff12; color: #8fb0ea; }
.hub-sidebar .nav-tile[data-area="fundraising"] { background: #ffffff12; color: #e4a4bd; }
.hub-sidebar .nav-tile[data-area="tithe"] { background: #ffffff12; color: #87cec1; }
.hub-sidebar .nav-tile[data-area="financial"] { background: #ffffff12; color: #e5c37b; }
.hub-sidebar .nav-tile[data-area="communication"] { background: #ffffff12; color: #8fb0ea; }
.hub-sidebar .nav-tile[data-area="journey"],
.hub-sidebar .nav-tile[data-area="jor"] { background: #29374a; color: #adc3e3; }
.hub-sidebar [data-icon="wallet"] { --icon: url(/brand/icons/wallet.svg); }
.hub-sidebar [data-icon="chat"] { --icon: url(/brand/icons/chat.svg); }
.hub-sidebar [data-icon="send"] { --icon: url(/brand/icons/send.svg); }
.hub-sidebar [data-icon="ticket"] { --icon: url(/brand/icons/ticket.svg); }
.hub-sidebar [data-icon="history"] { --icon: url(/brand/icons/history.svg); }
.hub-sidebar [data-icon="heart"] { --icon: url(/brand/icons/heart.svg); }
.hub-sidebar [data-icon="hands"] { --icon: url(/brand/icons/hands.svg); }
.hub-sidebar [data-icon="sparkles"] { --icon: url(/brand/icons/sparkles.svg); }
.hub-sidebar [data-icon="award"] { --icon: url(/brand/icons/award.svg); }
.hub-sidebar .nav-chevron {
    width: 7px;
    height: 7px;
    margin: 0 3px 0 auto;
    flex: 0 0 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg);
}
.hub-sidebar .nav-branch[open] > summary .nav-chevron { transform: rotate(45deg); }
.hub-sidebar .nav-children { margin: 4px 0 6px 24px; padding-left: 12px; border-left: 1px solid #34445b; }
.hub-sidebar .nav-children > a { min-height: 40px; padding: 8px 12px; font-size: 12px; }
.hub-sidebar .sidebar-context {
    flex-wrap: wrap;
    min-width: 0;
    gap: 9px;
    border-color: #29384b;
    color: var(--sidebar-text);
}
.hub-sidebar .sidebar-switch { flex-basis: 100%; padding: 0 0 0 45px; }
.hub-sidebar .sidebar-avatar { background: #433a28; color: #efd190; }
.hub-sidebar .sidebar-identity strong { color: #e3e9f2; }
.hub-sidebar .sidebar-identity span,
.hub-sidebar .sidebar-context a { color: var(--sidebar-muted); }
.hub-sidebar .sidebar-context a:hover { color: #fff; }
.hub-sidebar .sidebar-signout { flex: 0 0 auto; margin: 0; }
.hub-sidebar .sidebar-signout > button {
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 8px;
    margin: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--sidebar-muted);
}
.hub-sidebar .sidebar-signout > button:hover { background: #253448; color: #fff; }
.hub-sidebar .sidebar-signout img { width: 18px; height: 18px; filter: brightness(0) invert(.85); }

@media (min-width: 1024px) {
    .hub-sidebar {
        position: sticky;
        top: 0;
        width: 256px;
        height: 100vh;
        height: 100dvh;
        padding: 20px 14px 16px;
        gap: 25px;
        overflow: hidden;
    }
    .hub-sidebar .shell-menu {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        gap: 16px;
    }
    .hub-sidebar .shell-menu > summary { display: none; }
    .hub-sidebar .shell-menu::details-content { display: contents; }
    .hub-sidebar .shell-links {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: thin;
        scrollbar-color: #41546f transparent;
        padding: 2px 0;
    }
    .hub-sidebar .sidebar-context { flex: 0 0 auto; padding: 16px 0 0; }
    .hub-sidebar .shell-menu:not([open]) > .shell-links { display: flex; }
    .hub-sidebar .shell-menu:not([open]) > .sidebar-context { display: flex; }
}

@media (max-width: 1023px) {
    .hub-sidebar .shell-links a,
    .hub-sidebar .nav-branch > summary { min-height: 44px; }
    .hub-sidebar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0 12px;
        padding: 6px 12px;
        max-height: 100vh;
        max-height: 100dvh;
        background: #fff;
        border-color: #e5ded0;
    }
    .hub-sidebar .brand-wordmark { filter: none; }
    .hub-sidebar .shell-brand { grid-column: 1; grid-row: 1; margin: 0; }
    .hub-sidebar .shell-menu { display: contents; }
    .hub-sidebar .shell-menu::details-content { display: contents; }
    .hub-sidebar .shell-menu > summary {
        display: inline-flex;
        grid-column: 2;
        grid-row: 1;
        min-height: 44px;
        color: #0e1c2e;
        background: #fff;
        border-color: #e5ded0;
    }
    .hub-sidebar .shell-links {
        grid-column: 1 / -1;
        max-height: calc(100vh - 160px);
        max-height: calc(100dvh - 160px);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 16px 12px;
        background: var(--sidebar-background);
        border-radius: 12px 12px 0 0;
    }
    .hub-sidebar .sidebar-context { grid-column: 1 / -1; padding: 12px; background: var(--sidebar-background); border-radius: 0 0 12px 12px; }
    .hub-sidebar .shell-menu:not([open]) > :not(summary) { display: none; }
}

/* Real entry points only; these cards do not simulate metrics or activity. */
.shell .organizer-welcome,
.shell .portal-overview { min-width: 0; }
.shell .organizer-welcome .welcome-hero {
    padding: 40px;
    border: 1px solid #293c57;
    border-radius: 20px;
    background: radial-gradient(ellipse at 100% 0, #41507080, transparent 60%), linear-gradient(120deg, #0e1c2e, #1b2b43);
    color: #e3e9f2;
    overflow-wrap: anywhere;
    margin-bottom: 32px;
}
.shell .organizer-welcome .welcome-hero .eyebrow {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #e5c37b;
}
.shell .organizer-welcome .welcome-hero h1 {
    display: block;
    margin: 0;
    padding: 0;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    color: #fff;
}
.shell .organizer-welcome .welcome-hero h1::before { display: none; }
.shell .organizer-welcome .welcome-hero h1 + p {
    margin: 14px 0 24px;
    padding: 0;
    max-width: 600px;
    color: #c3cbdd;
    font-size: 16px;
    line-height: 1.6;
}
.shell .organizer-welcome .welcome-hero .action-link {
    min-height: 44px;
    padding: 12px 20px;
    background: #d4ad63;
    border-color: #d4ad63;
    color: #0e1c2e;
    font-weight: 600;
}
.shell .organizer-welcome .welcome-hero .action-link:hover { background: #e5c37b; border-color: #e5c37b; }
.shell .welcome-grid,
.shell .portal-overview .context-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
    gap: 18px;
    margin: 20px 0 28px;
}
.shell .welcome-grid > .card,
.shell .portal-overview .context-grid > .context-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--card-shadow);
    overflow-wrap: anywhere;
}
.shell .welcome-grid h3 { margin: 0 0 10px; font-size: 17px; line-height: 1.4; }
.shell .welcome-grid p { color: var(--mute); font-size: 14px; line-height: 1.6; }
.shell .welcome-grid a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
.shell .portal-overview .context-card { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 600; }
.shell .portal-overview .context-card span { display: block; color: var(--mute); font-size: 14px; font-weight: 400; margin-top: 8px; line-height: 1.5; }
.shell .portal-overview .context-card:hover { border-color: var(--gold); }
@media (max-width: 639px) {
    .shell .organizer-welcome .welcome-hero { padding: 28px 22px; border-radius: 16px; }
    .shell .welcome-grid,
    .shell .portal-overview .context-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .shell .welcome-grid > .card,
    .shell .portal-overview .context-grid > .context-card { padding: 22px; }
}

.review-summary-card{display:flex;flex-direction:column;gap:12px;width:min(100%,360px);box-sizing:border-box;color:inherit;text-decoration:none}.review-summary-card h2{margin:0;font-size:1.1rem}.review-summary-count{font-size:2.5rem;line-height:1.1;color:var(--navy,#172340)}.review-summary-action{font-weight:600}.review-summary-card:hover{border-color:#af8737}.review-summary-card:focus-visible{outline:3px solid #af8737;outline-offset:4px}

/* Event section navigation: segmented control from the live design reference. */
.shell .event-sections{display:flex;flex-wrap:wrap;gap:4px;width:fit-content;max-width:100%;padding:4px;margin:20px 0 24px;border:1px solid var(--line,#e7e0d4);border-radius:10px;background:#f7f6ef;box-sizing:border-box}
.shell .event-sections a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ink,#14213f);font-size:13px;font-weight:400;line-height:1.4;text-decoration:none;box-sizing:border-box}
.shell .event-sections a:hover{background:#fff9}
.shell .event-sections a[aria-current=page]{background:#fff;border-color:#14213f0a;box-shadow:0 1px 3px #14213f12;font-weight:500}
.shell .event-sections a:focus-visible{outline:2px solid #b18a41;outline-offset:2px}
.shell .event-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin:12px 0}
.shell .event-tools:empty{display:none}
@media(max-width:639px){.shell .event-sections{width:100%}.shell .event-sections a{min-height:44px;flex:1 0 auto}.shell .event-tools{justify-content:flex-start}}
