/* Carbon Ticket Network Manager: header Events dropdown. Uses the shared ct-* design tokens with fallbacks. */
.ctnm-hdr-events {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex: 0 0 auto;
}

.ctnm-hdr-events-toggle {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--ct-ink, currentColor);
    line-height: 1;
    cursor: pointer;
    box-shadow: none;
}

.ctnm-hdr-events-toggle:hover,
.ctnm-hdr-events-toggle[aria-expanded="true"] {
    background: var(--ct-sky, #dceefa);
    color: var(--ct-blue, #286fae);
}

.ctnm-hdr-events-toggle:focus-visible {
    outline: 2px solid var(--ct-blue, #286fae);
    outline-offset: 2px;
}

.ctnm-hdr-events-toggle svg {
    display: block;
    transition: transform 0.18s ease;
}

.ctnm-hdr-events-toggle[aria-expanded="true"] svg {
    transform: rotate(180deg);
}

@media (hover: none), (pointer: coarse) {
    .ctnm-hdr-events-toggle {
        width: 32px;
        height: 32px;
        margin-left: -4px;
    }
}

.ctnm-hdr-events-panel {
    position: fixed;
    z-index: 100000;
    box-sizing: border-box;
    width: 340px;
    max-width: calc(100vw - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px;
    background: var(--ct-white, #fff);
    border: 1px solid #dce7f0;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(7, 31, 61, 0.18);
    font-family: var(--ct-font-body, inherit);
    text-align: left;
    white-space: normal;
}

.ctnm-hdr-events-panel[hidden] {
    display: none;
}

.ctnm-hdr-events-label {
    margin: 4px 10px 6px;
    padding: 0;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ct-muted, #60758a);
}

.ctnm-hdr-events-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ctnm-hdr-events-list li {
    margin: 0;
    padding: 0;
}

.ctnm-hdr-events-list li::before,
.ctnm-hdr-events-list li::marker {
    content: none;
}

.ctnm-hdr-events-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 10px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--ct-ink, #102a43);
}

.ctnm-hdr-events-item:hover,
.ctnm-hdr-events-item:focus-visible {
    background: var(--ct-paper, #f5f8fb);
    outline: none;
}

.ctnm-hdr-events-item:focus-visible {
    box-shadow: inset 0 0 0 2px var(--ct-blue, #286fae);
}

.ctnm-hdr-events-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.ctnm-hdr-events-item:hover .ctnm-hdr-events-title {
    color: var(--ct-blue, #286fae);
}

.ctnm-hdr-events-meta {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ct-muted, #60758a);
}

.ctnm-hdr-events-all {
    display: block;
    margin-top: 4px;
    padding: 10px 10px 6px;
    border-top: 1px solid #e6edf3;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    color: var(--ct-blue, #286fae);
}

.ctnm-hdr-events-all:hover,
.ctnm-hdr-events-all:focus-visible {
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    .ctnm-hdr-events-toggle svg {
        transition: none;
    }
}
