/* Opaque, semantic badges preserve category identity in either site theme. */
.event-category-badge, .event-status-badge {
    background: var(--event-badge-bg, #312e81) !important;
    color: var(--event-badge-fg, #e0e7ff) !important;
    border-color: var(--event-badge-border, #818cf8) !important;
    opacity: 1 !important;
}
.event-category-badge[data-category-color="red"] { --event-badge-bg:#7f1d1d; --event-badge-fg:#fecaca; --event-badge-border:#f87171; }
.event-category-badge[data-category-color="yellow"] { --event-badge-bg:#713f12; --event-badge-fg:#fef08a; --event-badge-border:#facc15; }
.event-category-badge[data-category-color="blue"] { --event-badge-bg:#1e3a8a; --event-badge-fg:#bfdbfe; --event-badge-border:#60a5fa; }
.event-category-badge[data-category-color="green"], .event-status-live { --event-badge-bg:#14532d; --event-badge-fg:#dcfce7; --event-badge-border:#4ade80; }
.event-category-badge[data-category-color="purple"], .event-status-repeat { --event-badge-bg:#581c87; --event-badge-fg:#e9d5ff; --event-badge-border:#c084fc; }
.event-category-badge[data-category-color="pink"] { --event-badge-bg:#831843; --event-badge-fg:#fbcfe8; --event-badge-border:#f472b6; }
.event-category-badge[data-category-color="slate"], .event-status-duration { --event-badge-bg:#334155; --event-badge-fg:#e2e8f0; --event-badge-border:#94a3b8; }
.event-category-badge[data-category-color="sky"] { --event-badge-bg:#0c4a6e; --event-badge-fg:#bae6fd; --event-badge-border:#38bdf8; }
.event-category-badge[data-category-color="stone"] { --event-badge-bg:#44403c; --event-badge-fg:#e7e5e4; --event-badge-border:#a8a29e; }
.event-category-badge[data-category-color="indigo"] { --event-badge-bg:#312e81; --event-badge-fg:#c7d2fe; --event-badge-border:#818cf8; }
.event-status-promoted { --event-badge-bg:#78350f; --event-badge-fg:#fef3c7; --event-badge-border:#fbbf24; }
.event-status-local { --event-badge-bg:#064e3b; --event-badge-fg:#a7f3d0; --event-badge-border:#34d399; }
.sidebar-live { background-color:#064e3b !important; }
html[data-theme="light"] .sidebar-live { background-color:#ecfdf5 !important; }
.event-action-correction { background-color:#9a3412 !important; color:#fff !important; }
.event-action-correction:hover { background-color:#7c2d12 !important; }
.event-action-promote { background-color:#92400e !important; color:#fff !important; }
.event-action-promote:hover { background-color:#78350f !important; }
html[data-theme="light"] .fc-list-event.promoted-calendar-event .fc-list-event-title a { color:#92400e !important; }
html[data-theme="light"] .fc-list-event.final-calendar-event .fc-list-event-title a { color:#1d4ed8 !important; }
html[data-theme="light"] .fc-list-event.live-calendar-event .fc-list-event-title a { color:#047857 !important; }
html[data-theme="light"] .fc-list-event.unofficial-holiday-calendar-event td { background:#f3e8ff !important; }
html[data-theme="light"] .fc-list-event.unofficial-holiday-calendar-event .fc-list-event-title a { color:#581c87 !important; }
html[data-theme="light"] .fc-list-event.unofficial-holiday-calendar-event .fc-list-event-title::before { color:#6b21a8 !important; }
.fc .fc-list-event:hover td { background-color:#374151 !important; }
html[data-theme="light"] .fc .fc-list-event:hover td { background-color:#eef2ff !important; }
.kk-event-dialog { box-sizing:border-box; margin:0; width:100%; height:100%; max-width:none; max-height:none; border:0; color:inherit; }
.kk-event-dialog::backdrop { background:rgba(0,0,0,.6); }
.kk-event-dialog > div { min-width:0; }
.kk-event-dialog button, .kk-event-dialog a { min-height:2rem; }
.event-details-button { display:block; width:100%; min-height:2rem; text-align:left; color:inherit; background:transparent; cursor:pointer; border:0; padding:0; font:inherit; }
.event-details-button:hover { text-decoration:underline; text-underline-offset:3px; }
.event-details-button:focus-visible { outline:3px solid #818cf8; outline-offset:3px; border-radius:3px; }
.sidebar-item .event-details-button::after, .popup-event-card .event-details-button::after { content:''; position:absolute; inset:0; }
[data-holiday-preference-toggle]:focus-visible + [data-holiday-track] { outline:3px solid #818cf8; outline-offset:3px; }
@media (prefers-reduced-motion: reduce) {
    .pulse-ring, .pulse-ring-gold, .pulse-ring-blue, .animate-pulse-green, .animate-pulse-gold, .animate-pulse-blue, .virtual-live-pulse,
    .fc-daygrid-event.promoted-calendar-event, .fc-daygrid-event.final-calendar-event, .fc-daygrid-event.live-calendar-event { animation:none !important; }
    .popup-event-card, #geolocate-btn { transition:none !important; transform:none !important; }
}
