/* [ CUSTOM WORK:- THE SELECT SOURCE ] (2026-10-23) /current-events sections + filter chips.
 * Markup is built by assets/js/tss-current-events.js; nothing here matches without it.
 * A standalone file (auto-loaded like every addon asset) rather than a live-auctions.scss
 * edit, so the hotfix does not recompile the 285 KB bundle. Live badge pulse: 1.2 s cycle
 * (well under 3 flashes/s), static under prefers-reduced-motion. Red #b91c1c on white text
 * is 6.5:1 (WCAG AA). */
.tss-ce-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}

.tss-ce-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 36px;
    padding: 6px 14px;
    border: 1px solid #ced4da;
    border-radius: 999px;
    background: #fff;
    color: #212529;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.tss-ce-chip:hover {
    border-color: #6c757d;
}

.tss-ce-chip[aria-pressed="true"] {
    background: #212529;
    border-color: #212529;
    color: #fff;
}

.tss-ce-chip-live {
    border-color: #b91c1c;
    color: #b91c1c;
}

.tss-ce-chip-live[aria-pressed="true"] {
    background: #b91c1c;
    border-color: #b91c1c;
    color: #fff;
}

.tss-ce-chip:focus-visible,
.tss-ce-head:focus-visible {
    outline: 3px solid #0d6efd;
    outline-offset: 2px;
}

.tss-ce-count {
    font-weight: 400;
    opacity: .85;
}

.tss-ce-section {
    margin: 0 0 28px;
}

.tss-ce-section[hidden] {
    display: none !important;
}

.tss-ce-heading {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.tss-ce-head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 0;
    border: 0;
    border-bottom: 2px solid #dee2e6;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.tss-ce-head[aria-pressed="true"] {
    border-bottom-color: #212529;
}

.tss-ce-section-live .tss-ce-heading {
    margin-bottom: 14px;
}

.tss-ce-section-live .tss-ce-head {
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: #b91c1c;
    color: #fff;
    box-shadow: 0 2px 8px rgba(185, 28, 28, .35);
}

.tss-ce-section-live .tss-ce-head[aria-pressed="true"] {
    box-shadow: 0 0 0 3px #7f1d1d inset, 0 2px 8px rgba(185, 28, 28, .35);
}

.tss-ce-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border-radius: 4px;
    background: #fff;
    color: #b91c1c;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .08em;
    animation: tss-ce-live-pulse 1.2s ease-in-out infinite;
}

.tss-ce-live-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #b91c1c;
}

@keyframes tss-ce-live-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
    .tss-ce-live-badge {
        animation: none;
    }
}

@media (max-width: 600px) {
    .tss-ce-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .tss-ce-chip {
        flex: 0 0 auto;
    }

    .tss-ce-heading {
        font-size: 1.1rem;
    }
}

/* [ CUSTOM WORK:- THE SELECT SOURCE ] (2026-10-23) fix-forward: page-scope note, shown only when
 * the paginator has more than one page */
.tss-ce-page-note {
    margin: -8px 0 16px;
    color: #6c757d;
    font-size: .85rem;
}
