/* Explain: Styles for the CPD live bar and workshop list. */
/* ===== CPD workshops & the members-area live bar ===== */
.cpd-live-bar {
    position: relative;
}

.cpd-live-stripe {
    height: 4px;
    width: 100%;
    background: var(--accent-color);
    transition: background 0.3s ease;
}

.cpd-live-badge {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary-color);
    font-size: 1rem;
    transition: background 0.3s ease, color 0.3s ease;
}

.cpd-live-bar.is-live {
    border-color: var(--danger-color);
}

.cpd-live-bar.is-live .cpd-live-badge {
    background: #fbe7e3;
    color: var(--danger-color);
}

.cpd-live-bar.is-live .cpd-live-stripe {
    background: var(--danger-color);
}

.cpd-live-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 999px;
    background: var(--text-soft);
    vertical-align: middle;
}

.cpd-live-bar.is-live .cpd-live-dot,
.pill .cpd-live-dot {
    background: var(--danger-color);
    animation: cpdPulse 1.4s ease-in-out infinite;
}

@keyframes cpdPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.45);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cpd-live-bar.is-live .cpd-live-dot,
    .pill .cpd-live-dot {
        animation: none;
    }
}