.event-public-page .protocol-card[id],
.event-public-page [id^="custom-section-"] {
    scroll-margin-top: 88px;
}

.event-public-body .protocol-content {
    background: #f4f6fa;
}

.event-utility-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.event-utility {
    position: relative;
}

.event-utility::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 220px;
    height: 14px;
    background: transparent;
}

.event-utility-trigger {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #ffffff;
    color: #14213d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(17, 24, 39, 0.2);
}

.event-theme-trigger {
    font-size: 1.05rem;
}

.event-utility-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #14213d;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.event-utility-dropdown {
    position: absolute;
    top: calc(100% + 0.12rem);
    right: 0;
    min-width: 190px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.22);
    padding: 0.4rem;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.event-utility:hover .event-utility-dropdown,
.event-utility:focus-within .event-utility-dropdown,
.event-utility.is-open .event-utility-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.event-utility-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.58rem 0.65rem;
    border-radius: 8px;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}

.event-utility-link:hover {
    background: #f2f5fb;
    color: #0f172a;
}

.event-utility-link-btn {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.event-top-navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.event-top-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0f2d4a;
    background: #f5f9ff;
    border: 1px solid #d8e4f4;
    border-radius: 999px;
    padding: 0.4rem 0.78rem;
}

.event-top-nav-link:hover {
    color: #ffffff;
    background: #1e4974;
    border-color: #1e4974;
}

.event-image-thumb {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: block;
}

[data-theme="dark"] .event-public-body .protocol-content {
    background: #0d1520;
}

[data-theme="dark"] .event-utility-trigger {
    border-color: rgba(148, 163, 184, 0.28);
    background: #0f172a;
    color: #e2e8f0;
}

[data-theme="dark"] .event-utility-avatar {
    background: #1d4ed8;
}

[data-theme="dark"] .event-utility-dropdown {
    background: #0f172a;
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow: 0 14px 34px rgba(2, 6, 23, 0.42);
}

[data-theme="dark"] .event-utility-link {
    color: #e2e8f0;
}

[data-theme="dark"] .event-utility-link:hover {
    background: rgba(148, 163, 184, 0.12);
    color: #f8fafc;
}

[data-theme="dark"] .event-top-nav-link {
    color: #dfeaf9;
    background: rgba(30, 52, 77, 0.72);
    border-color: rgba(138, 167, 201, 0.48);
}

[data-theme="dark"] .event-top-nav-link:hover {
    color: #ffffff;
    background: rgba(84, 133, 183, 0.62);
    border-color: rgba(139, 181, 224, 0.66);
}

[data-theme="dark"] .event-image-thumb {
    border-color: rgba(148, 163, 184, 0.34);
}

@media (max-width: 768px) {
    .event-utility-stack {
        top: 0.75rem;
        right: 0.75rem;
        bottom: auto;
        z-index: 1300;
    }

    .event-utility-trigger {
        width: 44px;
        height: 44px;
    }

    .event-utility-dropdown {
        min-width: 176px;
        max-width: min(86vw, 250px);
        max-height: min(62vh, 320px);
        overflow-y: auto;
    }

    .event-public-page .container-fluid {
        padding-left: 0.6rem;
        padding-right: 0.6rem;
    }

    .event-public-page .protocol-card {
        margin-bottom: 0.75rem;
    }

    .event-top-nav-link {
        font-size: 0.82rem;
        padding: 0.36rem 0.68rem;
    }

    .event-top-navigation {
        gap: 0.45rem;
    }
}

@media (max-width: 576px) {
    .event-utility-stack {
        top: 0.55rem;
        right: 0.5rem;
    }

    .event-utility-trigger {
        width: 42px;
        height: 42px;
    }

    .event-utility-avatar {
        width: 30px;
        height: 30px;
    }

    .event-public-page .container-fluid {
        padding-left: 0.45rem;
        padding-right: 0.45rem;
    }

    .event-top-nav-link {
        font-size: 0.78rem;
        padding: 0.34rem 0.58rem;
    }
}

@media (max-width: 390px) {
    .event-utility-dropdown {
        min-width: 162px;
        max-width: calc(100vw - 1rem);
    }

    .event-top-navigation .event-top-nav-link {
        flex: 1 1 calc(50% - 0.45rem);
        justify-content: center;
        text-align: center;
    }
}
