/**
 * Transport Live — TL-P2 static styles.
 *
 * Scoped entirely under .sris-tl so it never collides with the legacy
 * transport page or the shared assets/css/style.css. Calm, directory-like.
 * Telemetry visuals (Live badge, distance, etc.) are NOT styled here — they
 * belong to TL-P3.
 */

.sris-tl {
    margin: 0;
}

/* ── Category chips ─────────────────────────────────────────────────── */

.sris-tl-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
}

.sris-tl-chip {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #dcdcde;
    border-radius: 999px;
    background: #fff;
    color: #1d2327;
    font-size: 14px;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.sris-tl-chip:hover {
    border-color: #2271b1;
}

.sris-tl-chip.is-active {
    background: #2271b1;
    border-color: #2271b1;
    color: #fff;
}

/* ── Card grid ──────────────────────────────────────────────────────── */

.sris-tl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.sris-tl-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px;
    border: 1px solid #dcdcde;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Attribute selector outranks .sris-tl-card, so filtered cards stay hidden. */
.sris-tl-card[hidden] {
    display: none;
}

.sris-tl-card-name {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    color: #1d2327;
}

.sris-tl-card-category {
    font-size: 13px;
    color: #6c757d;
}

.sris-tl-call {
    margin-top: 4px;
    padding: 10px 16px;
    border-radius: 8px;
    background: #2271b1;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.sris-tl-call:hover,
.sris-tl-call:focus {
    background: #185a8d;
    color: #fff;
    text-decoration: none;
}

/* ── Empty state ────────────────────────────────────────────────────── */

.sris-tl-empty {
    margin: 8px 0 0;
    color: #6c757d;
    font-size: 15px;
}

/* ── Mobile ─────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .sris-tl-grid {
        grid-template-columns: 1fr;
    }

    .sris-tl-call {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}
