/* ==========================================================================
   Training search page (Views/ShoppingCart/Webinar.aspx + Views/Shared/TrainingsSearchResult.ascx)
   Hero search bar, type tabs, filters panel, date-grouped result cards.
   Fonts are inherited from the site. Materialize form styles are reset where they clash.
   ========================================================================== */

.ts-page {
    --ts-navy: #13294b;
    --ts-ink: #1f2937;
    --ts-muted: #4b5563;
    --ts-soft: #6b7280;
    --ts-line: #e3e6ec;
    --ts-bg: #f4f6fa;
    --ts-ai: #b0179a;
    --ts-ai-soft: #f7e4f3;
    --ts-orange: #c2410c;
    --ts-orange-soft: #fde9dd;
    color: var(--ts-ink);
}

.ts-page h1, .ts-page h2, .ts-page h3, .ts-page p { margin: 0; text-align: left; }
.ts-page button { font-family: inherit; }
.ts-inner { max-width: 1600px; margin: 0 auto; padding: 0 32px; box-sizing: border-box; }
.ts-page svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Hero + search bar ---------- */
.ts-hero { background: #fff; padding: 40px 0 24px; }
.ts-hero__title { font-size: 38px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; color: var(--ts-navy); }
.ts-hero__sub { margin-top: 8px !important; font-size: 16px; color: var(--ts-muted); }

.ts-searchbar {
    display: flex; align-items: stretch; margin-top: 24px;
    border: 2px solid var(--ts-ai); border-radius: 12px; background: #fff; overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ts-searchbar:focus-within { box-shadow: 0 0 0 4px rgba(176, 23, 154, .12); }
.ts-searchbar[data-mode="classic"] { border-color: var(--ts-navy); }
.ts-searchbar[data-mode="classic"]:focus-within { box-shadow: 0 0 0 4px rgba(19, 41, 75, .12); }

.ts-mode { display: flex; align-items: center; gap: 4px; padding: 6px; background: #f6f4f8; border-right: 1px solid var(--ts-line); }
.ts-mode__btn,
.ts-mode__btn:focus {
    display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px;
    border: 0; border-radius: 8px; background: transparent; color: var(--ts-muted);
    font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.ts-mode__btn:hover { color: var(--ts-navy); }
.ts-mode__btn.is-active,
.ts-mode__btn.is-active:focus { background: var(--ts-navy); color: #fff; }
.ts-searchbar[data-mode="ai"] .ts-mode__btn.is-active,
.ts-searchbar[data-mode="ai"] .ts-mode__btn.is-active:focus { background: var(--ts-ai); }

.ts-page input.ts-searchbar__input {
    flex: 1 1 auto; min-width: 0; width: auto !important; height: auto !important; margin: 0 !important;
    padding: 0 18px !important; border: 0 !important; box-shadow: none !important; border-radius: 0;
    background: transparent; font-size: 16px; color: var(--ts-ink);
}
.ts-page input.ts-searchbar__input::placeholder { color: #8a93a3; }

.ts-searchbar__submit,
.ts-searchbar__submit:focus {
    display: inline-flex; align-items: center; gap: 8px; padding: 0 28px; border: 0;
    background: var(--ts-ai); color: #fff; font-size: 16px; font-weight: 700; cursor: pointer;
}
.ts-searchbar[data-mode="classic"] .ts-searchbar__submit,
.ts-searchbar[data-mode="classic"] .ts-searchbar__submit:focus { background: var(--ts-navy); }
.ts-searchbar__submit:hover { filter: brightness(1.08); }

.ts-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--ts-muted); }
.ts-try__label { margin-right: 2px; }
.ts-try__chip,
.ts-try__chip:focus {
    padding: 7px 14px; border: 0; border-radius: 999px; background: var(--ts-ai-soft); color: #8e1680;
    font-size: 14px; cursor: pointer;
}
.ts-try__chip:hover { background: #f0d2ea; }

/* ---------- Type tabs ---------- */
.ts-tabs-bar { background: #fff; border-bottom: 1px solid var(--ts-line); }
.ts-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ts-tabs::-webkit-scrollbar { display: none; }
.ts-tab,
.ts-tab:focus {
    display: inline-flex; align-items: center; gap: 8px; padding: 14px 16px 12px; border: 0;
    border-bottom: 3px solid transparent; background: transparent; color: #334155;
    font-size: 16px; white-space: nowrap; cursor: pointer;
}
.ts-tab:hover { color: var(--ts-navy); }
.ts-tab.is-active,
.ts-tab.is-active:focus { color: var(--ts-navy); font-weight: 700; border-bottom-color: var(--ts-orange); }
.ts-tab__count { padding: 2px 8px; border-radius: 999px; background: #eef1f5; color: var(--ts-muted); font-size: 12px; font-weight: 600; }
.ts-tab.is-active .ts-tab__count { background: var(--ts-orange-soft); color: var(--ts-orange); }
.ts-hidden-types { display: none; }

/* ---------- Layout ---------- */
.ts-main { background: var(--ts-bg); padding: 32px 0 56px; }
.ts-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }

/* ---------- Filters ---------- */
.ts-filters { background: #fff; border: 1px solid var(--ts-line); border-radius: 16px; padding: 20px 24px 24px; }
.ts-filters__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ts-filters__title,
.ts-filters__title:focus {
    display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none;
    color: var(--ts-navy); font-size: 17px; font-weight: 700; cursor: default;
}
.ts-filters__reset { color: var(--ts-ai); font-size: 14px; font-weight: 600; }
.ts-filters__reset:hover { text-decoration: underline; }

.ts-filter { padding-top: 18px; }
.ts-filter + .ts-filter--speaker { margin-top: 18px; border-top: 1px solid var(--ts-line); }
.ts-filter__title { margin-bottom: 10px !important; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ts-muted); }

.ts-checks { margin: 0; padding: 0; list-style: none; }
.ts-checks > li { margin: 0; }
.ts-checks--sub { margin: 0 0 4px 30px; }
.ts-check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; color: var(--ts-ink); font-size: 15px; }
/* Materialize draws its own box on "checkbox + span": switch that off for this layout */
.ts-page [type="checkbox"] + span:not(.lever) { padding-left: 0; height: auto; line-height: inherit; font-size: inherit; }
.ts-page [type="checkbox"] + span:not(.lever)::before,
.ts-page [type="checkbox"] + span:not(.lever)::after { display: none; }
.ts-check__box {
    position: relative; width: 20px; height: 20px; flex-shrink: 0; border: 2px solid #9aa3b2; border-radius: 4px;
    background: #fff; box-sizing: border-box; transition: background .15s ease, border-color .15s ease;
}
.ts-check input:checked + .ts-check__box { background: var(--ts-navy); border-color: var(--ts-navy); }
.ts-check input:checked + .ts-check__box::after {
    content: ""; display: block !important; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ts-check input:focus-visible + .ts-check__box { box-shadow: 0 0 0 3px rgba(19, 41, 75, .2); }
.ts-check__name { flex: 1 1 auto; line-height: 1.3; }
.ts-check__count { font-size: 13px; color: var(--ts-soft); }

.ts-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-pill { cursor: pointer; }
.ts-pill > span {
    display: inline-block !important; padding: 7px 16px !important; border: 1px solid #d3d8e0; border-radius: 999px;
    color: var(--ts-ink); font-size: 14px !important; line-height: 1.3 !important; transition: all .15s ease;
}
.ts-pill:hover > span { border-color: var(--ts-navy); }
.ts-pill input:checked + span { background: var(--ts-navy); border-color: var(--ts-navy); color: #fff; }
.ts-pill input:focus-visible + span { box-shadow: 0 0 0 3px rgba(19, 41, 75, .2); }

.ts-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ts-date > span { display: block; margin-bottom: 4px; font-size: 13px; color: var(--ts-muted); }
.ts-page input.ts-date__input,
.ts-page input.ts-speaker-search {
    width: 100% !important; height: 44px !important; margin: 0 !important; padding: 0 10px !important;
    border: 1px solid #d3d8e0 !important; border-radius: 8px !important; box-shadow: none !important;
    background: #fff; box-sizing: border-box !important; font-size: 14px; color: var(--ts-ink);
}
.ts-page input.ts-date__input:focus,
.ts-page input.ts-speaker-search:focus { border-color: var(--ts-navy) !important; box-shadow: 0 0 0 3px rgba(19, 41, 75, .12) !important; }

.ts-filter__toggle,
.ts-filter__toggle:focus { display: flex; align-items: center; gap: 6px; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.ts-filter__caret { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid var(--ts-muted); transform: rotate(-90deg); transition: transform .15s ease; }
.ts-filter--speaker.is-open .ts-filter__caret { transform: none; }
.ts-filter--speaker .ts-speakers { display: none; max-height: 260px; overflow-y: auto; margin-top: 8px; }
.ts-filter--speaker.is-open .ts-speakers { display: block; }

.ts-promo { margin-top: 20px; padding: 24px; border-radius: 16px; background: var(--ts-navy); color: #fff; }
.ts-promo__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #f6a77d; }
.ts-promo__title { margin-top: 8px !important; font-size: 22px; font-weight: 700; line-height: 1.25; color: #fff; }
.ts-promo__text { margin-top: 8px !important; font-size: 14px; line-height: 1.5; color: #cbd5e1; }
.ts-promo__button { display: block; margin-top: 18px; padding: 12px; border-radius: 10px; background: #fff; color: var(--ts-navy); font-weight: 700; text-align: center; }
.ts-promo__button:hover { background: #eef2f8; }

/* ---------- Results ---------- */
.ts-results__head { margin-bottom: 16px; }
.ts-results__title { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; color: var(--ts-navy); }
.ts-results__sub { margin-top: 4px !important; font-size: 15px; color: var(--ts-muted); }

.ts-active { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.ts-active__chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: #e7ecf4; color: var(--ts-navy); font-size: 14px; }
.ts-active__chip button,
.ts-active__chip button:focus { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(19, 41, 75, .1); color: var(--ts-navy); font-size: 16px; line-height: 1; cursor: pointer; }
.ts-active__chip button:hover { background: rgba(19, 41, 75, .2); }
.ts-ai-note { margin: 0 0 16px !important; font-size: 14px; color: var(--ts-muted); }

.ts-topics { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.ts-topic,
.ts-topic:focus { padding: 9px 18px; border: 1px solid #d3d8e0; border-radius: 999px; background: #fff; color: var(--ts-ink); font-size: 15px; font-weight: 500; cursor: pointer; }
.ts-topic:hover { border-color: var(--ts-navy); }
.ts-topic.is-active,
.ts-topic.is-active:focus { background: var(--ts-navy); border-color: var(--ts-navy); color: #fff; font-weight: 700; }

.ts-day { margin: 8px 0 14px !important; font-size: 15px; font-weight: 400; color: var(--ts-muted); }
.ts-day strong { margin-right: 8px; font-size: 20px; font-weight: 700; color: var(--ts-navy); }
.ts-grid + .ts-day { margin-top: 28px !important; }

.ts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

/* ---------- Card ---------- */
.ts-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ts-line); border-radius: 16px; overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.ts-card:hover { box-shadow: 0 10px 28px rgba(19, 41, 75, .1); transform: translateY(-2px); }
.ts-card__band { padding: 20px 24px 16px; background: var(--tone-bg); }
.ts-card__band-top { display: flex; align-items: center; justify-content: space-between; min-height: 42px; }
.ts-card__topic { margin-top: 14px !important; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tone-ink); }

.ts-tone-0 { --tone-bg: #efe6f8; --tone-ink: #6b2fa0; }
.ts-tone-1 { --tone-bg: #e3edfa; --tone-ink: #1f4f8f; }
.ts-tone-2 { --tone-bg: #e2f3ea; --tone-ink: #1d6a45; }
.ts-tone-3 { --tone-bg: #fcefdc; --tone-ink: #92540a; }
.ts-tone-4 { --tone-bg: #fbe7ed; --tone-ink: #a3324f; }
.ts-tone-5 { --tone-bg: #dff2f1; --tone-ink: #176869; }

.ts-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 5px; background: var(--ts-navy); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ts-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: #f59e6b; }
.ts-badge--live .ts-badge__dot { animation: ts-pulse 1.8s ease-in-out infinite; }
.ts-badge--recording .ts-badge__dot { background: #93c5fd; }
.ts-badge--ondemand .ts-badge__dot { background: #86efac; }
.ts-badge--free { background: #1d6a45; }
.ts-badge--free .ts-badge__dot { background: #bbf7d0; }
@keyframes ts-pulse { 50% { opacity: .35; } }


.ts-card__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 20px 24px 22px; }
.ts-card__title { font-size: 20px; font-weight: 700; line-height: 1.3; }
.ts-card__title a { color: var(--ts-navy); }
.ts-card__title a:hover { color: var(--ts-orange); }
.ts-card__desc {
    margin-top: 10px !important; font-size: 15px; line-height: 1.55; color: var(--ts-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ts-card__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ts-muted); }
.ts-card__meta li { display: inline-flex; align-items: center; gap: 6px; }
.ts-card__meta svg { width: 16px; height: 16px; }

.ts-card__foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid #eef0f4; }
.ts-card__meta + .ts-card__foot { margin-top: 18px; }
.ts-card__speaker { display: inline-flex; flex: 1 1 auto; align-items: center; gap: 10px; min-width: 0; color: var(--ts-ink); font-size: 16px; font-weight: 600; }
.ts-card__speaker:hover .ts-card__speaker-name { color: var(--ts-orange); }
.ts-card__speaker-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: #eef1f6; color: var(--ts-navy); font-size: 13px; font-weight: 700; }
.ts-card__cta { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; padding: 12px 18px; border-radius: 8px; background: var(--ts-orange); color: #fff; font-size: 15px; font-weight: 700; white-space: nowrap; }
.ts-card__cta:hover { background: #a8380a; color: #fff; }

/* Pagination below the cards */
.ts-results .pagination { margin-top: 28px; }

/* ---------- Tablet / phone ---------- */
@media (max-width: 991px) {
    .ts-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .ts-filters__title, .ts-filters__title:focus { cursor: pointer; }
    .ts-filters__title::after { content: ""; width: 7px; height: 7px; margin-left: 4px; border: solid var(--ts-navy); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
    .ts-filters.is-collapsed .ts-filters__title::after { transform: rotate(-45deg); }
    .ts-filters.is-collapsed { padding-bottom: 14px; }
    .ts-filters.is-collapsed .ts-filters__head { margin-bottom: 0; }
    .ts-filters.is-collapsed .ts-filters__body { display: none; }
    .ts-promo { display: none; }
}

@media (max-width: 767px) {
    .ts-inner { padding: 0 16px; }
    .ts-hero { padding: 24px 0 18px; }
    .ts-hero__title { font-size: 28px; }
    .ts-hero__sub { font-size: 15px; }
    .ts-searchbar { flex-wrap: wrap; }
    .ts-mode { width: 100%; border-right: 0; border-bottom: 1px solid var(--ts-line); }
    .ts-mode__btn { flex: 1 1 0; justify-content: center; }
    .ts-page input.ts-searchbar__input { height: 52px !important; }
    .ts-searchbar__submit { padding: 0 18px; }
    .ts-try__lead { width: 100%; }
    .ts-tab, .ts-tab:focus { padding: 12px 10px 10px; font-size: 15px; }
    .ts-main { padding: 20px 0 40px; }
    .ts-results__title { font-size: 22px; }
    .ts-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .ts-card__band { padding: 16px 18px 14px; }
    .ts-card__body { padding: 16px 18px 18px; }
    .ts-card__title { font-size: 18px; }
    .ts-card__foot { flex-wrap: wrap; }
    .ts-card__speaker { flex-basis: 100%; }
    .ts-card__cta { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .ts-card, .ts-badge--live .ts-badge__dot { transition: none; animation: none; }
    .ts-card:hover { transform: none; }
}

/* ---------- Fixes: clear the fixed 80px header; undo Materialize nav and old switch styles ---------- */
.ts-page { padding-top: 80px; }

/* Materialize styles every <nav> as a red 56px bar with a shadow */
.ts-page nav.ts-tabs {
    height: auto;
    line-height: normal;
    background: transparent;
    box-shadow: none;
    color: inherit;
}

/* webinar-search.css styles .ai-search-switch__option (uppercase, small, flex: 1) */
.ts-page .ts-mode__btn.ai-search-switch__option {
    flex: 0 0 auto;
    padding: 0 16px;
    font-size: 15px;
    letter-spacing: normal;
    text-transform: none;
}

/* Checkbox square: the Materialize reset above (height: auto on "checkbox + span") collapsed it to a line */
.ts-page .ts-check input + .ts-check__box { width: 20px; height: 20px; }

/* This page only (this file loads only on the search page): keep the site header in line with the
   1600px content column on wide screens, instead of spreading across the whole window */
#ShopifyMainNav.header-bg {
    padding-left: max(28px, calc((100% - 1600px) / 2 + 32px)) !important;
    padding-right: max(28px, calc((100% - 1600px) / 2 + 32px)) !important;
}

/* Applied filters row (under the topic chips): "Applied:" + light-purple chips + "Clear all" */
.ts-applied { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -6px 0 22px; }
.ts-applied__label { font-size: 15px; color: var(--ts-muted); }
.ts-applied__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ts-applied__chip { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 10px 7px 16px; border-radius: 999px; background: #f6e8f5; color: #6b2580; font-size: 15px; font-weight: 600; }
.ts-applied__chip button,
.ts-applied__chip button:focus { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #6b2580; cursor: pointer; }
.ts-applied__chip button:hover { background: rgba(107, 37, 128, .12); }
.ts-page .ts-applied__chip svg { width: 14px; height: 14px; stroke-width: 2.4; }
.ts-applied__clear { margin-left: 4px; color: var(--ts-navy); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ts-applied__clear:hover { color: var(--ts-ai); }

/* Level radios: same reset as the checkboxes (Materialize draws its own circle on "radio + span") */
.ts-page [type="radio"] + span:not(.lever) { padding-left: 0; height: auto; line-height: inherit; font-size: inherit; }
.ts-page [type="radio"] + span:not(.lever)::before,
.ts-page [type="radio"] + span:not(.lever)::after { display: none; }
.ts-page .ts-check input + .ts-check__box--radio { border-radius: 50%; }
.ts-page .ts-check input:checked + .ts-check__box--radio { background: #fff; border-color: var(--ts-navy); }
.ts-page .ts-check input:checked + .ts-check__box--radio::after {
    content: ""; display: block !important; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px;
    border: 0; border-radius: 50%; background: var(--ts-navy); transform: translate(-50%, -50%);
}

/* Box / circle size wins over the Materialize resets above (they set height: auto and flattened it) */
.ts-page .ts-check input[type] + .ts-check__box { width: 20px; height: 20px; min-width: 20px; padding: 0; box-sizing: border-box; }
.ts-page .ts-check input[type="radio"] + .ts-check__box--radio { border: 2px solid #9aa3b2; border-radius: 50%; background: #fff; }
.ts-page .ts-check:hover input[type="radio"] + .ts-check__box--radio { border-color: var(--ts-navy); }
.ts-page .ts-check input[type="radio"]:checked + .ts-check__box--radio { border-color: var(--ts-navy); }
.ts-page .ts-check input[type="radio"]:focus-visible + .ts-check__box--radio { box-shadow: 0 0 0 3px rgba(19, 41, 75, .2); }

/* Dates: one per line at full width (side by side, the browser's date box is wider than the panel) */
.ts-page .ts-dates { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ts-page .ts-date { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ts-page .ts-date > span { flex: 0 0 40px; margin: 0; }
.ts-page .ts-date input.ts-date__input { flex: 1 1 auto; min-width: 0; }

/* Radio circle size: never let another rule flatten it */
.ts-page .ts-check input[type="radio"] + .ts-check__box--radio { width: 20px !important; height: 20px !important; flex: 0 0 20px; }

/* Tick and dot: drawn as centred backgrounds on the box itself. The ::after versions above picked up
   Materialize's offsets (margin, position) for "checkbox/radio + span::after" and sat off-centre. */
.ts-page .ts-check input:checked + .ts-check__box::after,
.ts-page .ts-check input:checked + .ts-check__box--radio::after { display: none !important; }

.ts-page .ts-check input[type="checkbox"]:checked + .ts-check__box {
    background: var(--ts-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
    border-color: var(--ts-navy);
}

.ts-page .ts-check input[type="radio"]:checked + .ts-check__box--radio {
    background: radial-gradient(circle at center, var(--ts-navy) 0 4.5px, #fff 5px);
    border-color: var(--ts-navy);
}

/* No matches: one compact centred card */
.ts-empty { max-width: 480px; margin: 24px auto; padding: 36px 32px; border: 1px solid var(--ts-line); border-radius: 16px; background: #fff; text-align: center; }
.ts-page .ts-empty__title,
.ts-page .ts-empty__text,
.ts-page .ts-empty__help { text-align: center; }
.ts-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: #eef2f7; color: var(--ts-navy); }
.ts-page .ts-empty__icon svg { width: 24px; height: 24px; }
.ts-page .ts-empty__title { margin-top: 16px; font-size: 20px; font-weight: 700; color: var(--ts-navy); }
.ts-page .ts-empty__text { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--ts-muted); }
.ts-page .ts-empty__help { margin-top: 18px; font-size: 14px; color: var(--ts-muted); }
.ts-empty__help a { margin-left: 4px; color: var(--ts-orange); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ts-empty__help a:hover { color: #9a3412; }

/* Applied filters: smaller, tighter chips */
.ts-applied { gap: 8px; }
.ts-applied__label,
.ts-applied__clear { font-size: 13px; }
.ts-applied__list { gap: 6px; }
.ts-applied__chip { gap: 4px; padding: 3px 4px 3px 10px; font-size: 13px; line-height: 1.3; }
.ts-applied__chip button,
.ts-applied__chip button:focus { width: 16px; height: 16px; }
.ts-page .ts-applied__chip svg { width: 11px; height: 11px; }

/* Applied filter tag: thin purple border */
.ts-applied__chip { border: 1px solid #e3c3e2; }

/* Filter section heading with its own "Clear" link (shown only when that section has a selection) */
.ts-filter__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ts-page .ts-filter__head .ts-filter__title { margin-bottom: 0 !important; }
.ts-filter__head .ts-filter__toggle,
.ts-filter__head .ts-filter__toggle:focus { width: auto; flex: 1 1 auto; }
.ts-filter__clear { flex-shrink: 0; color: var(--ts-ai); font-size: 13px; font-weight: 600; }
.ts-filter__clear:hover { text-decoration: underline; }
/* The speaker search box keeps its gap below the heading */
.ts-filter--speaker .ts-filter__head { margin-bottom: 10px; }

/* Results heading on one line: "Showing 1–10 of 1,328 trainings" with the total in bold */
.ts-page .ts-results__title--line { font-size: 22px; font-weight: 500; letter-spacing: 0; color: var(--ts-ink); }
.ts-page .ts-results__title--line strong { margin: 0; font-size: inherit; font-weight: 800; color: var(--ts-navy); }
.ts-results__order { font-size: 15px; font-weight: 400; color: var(--ts-muted); }
@media (max-width: 767px) { .ts-page .ts-results__title--line { font-size: 18px; } }

/* Topic chips: smaller text and padding */
.ts-topics { gap: 8px; }
.ts-topic,
.ts-topic:focus { padding: 6px 14px; font-size: 13px; }

/* Result cards: no side tile; the date (live) or type (recording / on demand) shows as the first tag */
.ts-card--plain .ts-card__body { padding: 22px 24px; }
.ts-page .ts-card--plain .ts-card__topic { margin: 0 0 10px !important; }
.ts-page .ts-card__meta li.ts-meta--date { background: #e3f3e8; color: #166534; }
.ts-page .ts-card__meta li.ts-meta--date svg { color: #15803d; }
.ts-page .ts-card__meta li.ts-meta--watch svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.ts-page .ts-card__meta li.ts-meta--free { background: #15803d; color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
@media (max-width: 767px) {
    .ts-card--plain .ts-card__body { padding: 16px 18px; }
}

/* Speaker list: keep counts clear of the scrollbar; thin scrollbar */
.ts-filter--speaker .ts-speakers { padding-right: 14px; scrollbar-width: thin; scrollbar-color: #c3c9d4 transparent; }
.ts-filter--speaker .ts-speakers::-webkit-scrollbar { width: 6px; }
.ts-filter--speaker .ts-speakers::-webkit-scrollbar-thumb { background: #c3c9d4; border-radius: 3px; }
.ts-filter--speaker .ts-speakers::-webkit-scrollbar-track { background: transparent; }
.ts-check__count { flex-shrink: 0; min-width: 18px; text-align: right; }

/* Result cards: description up to 4 lines; medium-size View details button */
.ts-page .ts-card__desc { -webkit-line-clamp: 3; }
.ts-page .ts-card__cta { gap: 6px; padding: 8px 14px; border-radius: 6px; font-size: 14px; }
.ts-page .ts-card__cta { gap: 4px; padding: 6px 12px; font-size: 13px; }

/* Pager: white rounded squares, navy current page, "…" gaps */
.ts-pager-wrap { display: flex; justify-content: center; margin-top: 32px; }
.ts-page ul.ts-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ts-page ul.ts-pager li.pagination { display: block; height: auto; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; list-style: none; }
.ts-page ul.ts-pager li.pagination a {
    display: flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; margin: 0;
    border: 1px solid var(--ts-line); border-radius: 10px; background: #fff; color: var(--ts-ink);
    font-size: 16px; font-weight: 500; line-height: 1; box-sizing: border-box; transition: border-color .15s ease, color .15s ease;
}
.ts-page ul.ts-pager li.pagination:not(.disabled) a:hover { border-color: var(--ts-navy); color: var(--ts-navy); }
.ts-page ul.ts-pager li.pagination.active a { border-color: var(--ts-navy); background: var(--ts-navy); color: #fff; font-weight: 700; cursor: default; }
.ts-page ul.ts-pager li.ts-pager__nav.disabled a { color: #b6bcc7; cursor: default; }
.ts-page ul.ts-pager li.ts-pager__nav svg { width: 18px; height: 18px; }
.ts-page ul.ts-pager li.ts-pager__gap { padding: 0 4px; color: var(--ts-muted); font-size: 16px; }
.ts-page ul.ts-pager li.pagination a:focus-visible { outline: 2px solid var(--ts-navy); outline-offset: 2px; }
@media (max-width: 767px) {
    .ts-page ul.ts-pager { gap: 6px; }
    .ts-page ul.ts-pager li.pagination a { min-width: 38px; height: 38px; padding: 0 8px; font-size: 15px; }
}

/* Card meta (duration, level): soft pills so they stand out from the description */
.ts-page .ts-card__meta { gap: 8px; }
.ts-page .ts-card__meta li { gap: 6px; padding: 5px 10px; border-radius: 6px; background: #eef2f8; color: var(--ts-navy); font-size: 13px; font-weight: 600; line-height: 1.3; }
.ts-page .ts-card__meta svg { width: 15px; height: 15px; color: #3b5b8c; }
