@charset "UTF-8";

:root {
    --card-radius: 0.5rem;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --bc-text: #212529;
    --bc-muted: #6c757d;
    --bc-border: #e9ecef;
    --bc-accent: #111111;
    --bc-hover: #0d6efd;
    --bc-header-bg: #ffffff;
    --bc-topbar-bg: #f8f9fa;
}

/* Typography */
html {
    font-size: 16px;
}

body {
    font-family: 'Cabin', sans-serif;
    line-height: 1.6;
    color: var(--bc-text);
    font-size: 1rem;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
    color: var(--bc-hover);
}

.no-download {
    pointer-events: none;
    user-drag: none;
    user-select: none;
}

/* Shared container rhythm */
.container {
    max-width: 1140px;
}

/* Header */
.site-header {
    background: var(--bc-header-bg);
    border-bottom: 1px solid var(--bc-border);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.bc-topbar {
    background: var(--bc-topbar-bg);
    border-bottom: 1px solid var(--bc-border);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bc-topbar-inner {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.bc-topbar-left,
.bc-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.bc-topbar-link,
.bc-topbar-icon {
    color: #495057;
    text-decoration: none;
    transition: color 0.2s ease;
}

.bc-topbar-link:hover,
.bc-topbar-icon:hover {
    color: var(--bc-accent);
    text-decoration: none;
}

.bc-search-link {
    padding-left: 0.5rem;
    border-left: 1px solid #dcdfe3;
}

.bc-navbar {
    background: #fff;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.bc-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
}

.bc-brand:hover {
    text-decoration: none;
}

.bc-brand img {
    width: 180px;
    height: auto;
    display: block;
}

.bc-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.bc-brand-title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #111;
}

.bc-brand-tagline {
    font-size: 0.88rem;
    color: var(--bc-muted);
    margin-top: 0.15rem;
}

.bc-navbar-nav {
    gap: 0.35rem;
}

.bc-navbar .nav-link {
    position: relative;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #222;
    padding: 0.65rem 0.9rem !important;
    transition: color 0.2s ease;
}

.bc-navbar .nav-link:hover {
    color: var(--bc-accent);
    text-decoration: none;
}

.bc-navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 0.9rem;
    right: 0.9rem;
    bottom: 0.35rem;
    height: 2px;
    background: #111;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.bc-navbar .nav-link:hover::after,
.bc-navbar .nav-link.active::after {
    transform: scaleX(1);
}

.bc-navbar .nav-link.active {
    color: #111;
}

.bc-navbar-toggler {
    border: 1px solid var(--bc-border);
    padding: 0.45rem 0.65rem;
}

.bc-navbar-toggler:focus {
    box-shadow: none;
}

/* Card Utility */
.bc-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.06);
}

/* .bc-card isn't a Bootstrap .card, so its .card-body doesn't inherit the
   --bs-card-spacer padding. Restore it (utility classes like .p-0 still win). */
.bc-card > .card-body {
    padding: 1rem;
}

.bc-card .card-header {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: var(--card-radius);
    border-top-right-radius: var(--card-radius);
}

.bc-card .list-group-item {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid #eee;
}

.bc-card .list-group-item:last-child {
    border-bottom: none;
}

.bc-card img {
    border-radius: 0.35rem;
}

/* Image Styling */
.card-img-top,
.banner-img,
.cover-img {
    object-fit: cover;
    width: 100%;
    border-radius: var(--card-radius);
}

.card-img-top {
    height: 200px;
}

.logo-img {
    max-height: 80px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: var(--card-radius);
}

.rapha-logo {
    border-radius: var(--card-radius);
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Sidebar */
.sidebar .list-group-item a {
    white-space: normal;
    word-break: break-word;
}

.sidebar img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Timeline */
.timeline {
    list-style: none;
    padding-left: 0;
    position: relative;
    margin-left: 1rem;
    border-left: 3px solid #0d6efd;
}

.timeline-item {
    position: relative;
    padding-left: 1rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #0d6efd;
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    vertical-align: middle;
}

.badge-custom {
    background-color: #0d6efd;
    color: white;
    padding: 0.3em 0.6em;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    margin-right: 0.5em;
}

/* Rankings Card Styles */
.rankings-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rankings-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.rankings-card .card-title {
    font-weight: 600;
    font-size: 1rem;
}

.rankings-card .badge {
    font-size: 0.7rem;
    padding: 0.3em 0.5em;
    border-radius: 0.35rem;
}

/* Rankings index — chips + leader row (moved from the page's inline <style>) */
.rankings-card .card-tags-bottom {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.rankings-card .chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    color: #334155;
    background: #f5f7fb;
    border: 1px solid #e6e9ef;
    border-radius: 999px;
}

.rankings-card .object-fit-cover { object-fit: cover; }

.rankings-card .line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranking-leader {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--bc-border);
    font-size: 0.85rem;
}

.ranking-leader-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #b8860b;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.ranking-leader-name { font-weight: 600; color: var(--bc-text); }
.ranking-leader-pts { color: var(--bc-muted); }

/* Rankings index — filter pills */
.ranking-filters {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.ranking-filters .filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.filter-pill {
    border: 1px solid var(--bc-border);
    background: #fff;
    color: #495057;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.filter-pill:hover {
    border-color: #c3ccd8;
}

.filter-pill.active {
    background: var(--bc-accent);
    border-color: var(--bc-accent);
    color: #fff;
}

/* Rankings index — branded fallback cover (no organiser image) */
.card-cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        hsl(var(--cover-hue, 210), 42%, 34%),
        hsl(var(--cover-hue, 210), 46%, 20%));
}

.card-cover-monogram {
    color: #fff;
    font-weight: 800;
    font-size: 2.4rem;
    letter-spacing: 0.06em;
    opacity: 0.92;
}

/* ============================================================
   Race listings index
   ============================================================ */
.race-search {
    max-width: 420px;
    border-radius: 999px;
    padding-left: 1rem;
}

.bc-tabs {
    border-bottom: 2px solid var(--bc-border);
    flex-wrap: wrap;
}

.bc-tabs .nav-link {
    font-weight: 600;
    color: #6b7488;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 0.5rem 0.95rem;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.bc-tabs .nav-link:hover {
    color: var(--bc-text);
    border-color: #cbd3dd;
}

.bc-tabs .nav-link.active {
    color: var(--bc-text);
    background: transparent;
    border-bottom: 2px solid var(--bc-accent);
}

/* Lighter, modern table header (replaces heavy table-dark) */
.race-table thead th {
    background: #f7f9fc;
    color: #6b7488;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #e9edf2;
    border-top: 0;
}

.race-name:hover { color: var(--bc-hover) !important; }

.race-badges {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.race-tag {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #5b6472;
    background: #eef1f5;
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
}

.race-tag--grade {
    color: #7a4f00;
    background: #fff3e0;
}

.race-upcoming {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #2f6fed;
    background: #e9f1ff;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
}

/* ============================================================
   Unify public table headers on the lighter "race listings" look
   (custom.css is only loaded on the public site, so admin tables
   are untouched). Overrides Bootstrap's heavy .table-dark thead.
   ============================================================ */
.container thead.table-dark,
.container-fluid thead.table-dark {
    --bs-table-bg: #f7f9fc;
    --bs-table-color: #6b7488;
    --bs-table-border-color: #e9edf2;
}

.container thead.table-dark th,
.container-fluid thead.table-dark th {
    background-color: #f7f9fc;
    color: #6b7488;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #e9edf2;
}

/* White header icons (points) would disappear on a light header — invert to dark */
.container thead.table-dark img[src*="_white"],
.container-fluid thead.table-dark img[src*="_white"] {
    filter: invert(1);
}

/* ============================================================
   Sidebar — recent / upcoming feed + promo
   ============================================================ */
@media (min-width: 992px) {
    .bc-sidebar {
        position: sticky;
        top: 180px; /* clears the sticky site-header (~170px) + a small gap */
    }
}

/* These cards aren't single links, so drop the hover "lift" */
.sidebar-card:hover {
    transform: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #44506a;
    background: #f7f9fc;
    border-bottom: 1px solid var(--bc-border);
}

.sidebar-card-header i { font-size: 0.95rem; }
.sidebar-card-header--results i { color: #dc3545; }
.sidebar-card-header--upcoming i { color: #2f6fed; }

.sidebar-card .list-group-item.sidebar-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-color: #f0f2f5;
}

.sidebar-item-main { min-width: 0; }

.sidebar-race-link,
.sidebar-race-link:hover { text-decoration: none; display: block; }

.sidebar-race-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.25;
    color: var(--bc-text);
}
.sidebar-race-link:hover .sidebar-race-name { color: var(--bc-hover); }

.sidebar-race-meta {
    font-size: 0.75rem;
    color: var(--bc-muted);
}

.sidebar-winner {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: var(--bc-muted);
}
.sidebar-winner img { flex-shrink: 0; }

.sidebar-date-chip {
    flex-shrink: 0;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 600;
    color: #5b6472;
    background: #eef1f5;
    border-radius: 6px;
    padding: 0.15rem 0.45rem;
    white-space: nowrap;
}

/* ============================================================
   Global search — dropdown + results page
   ============================================================ */
.gs-dropdown {
    display: none;
    margin-top: 0.75rem;
    max-height: 60vh;
    overflow-y: auto;
    border: 1px solid var(--bc-border);
    border-radius: 0.6rem;
    background: #fff;
}
.gs-dropdown.show { display: block; }

.gs-dropdown .gs-category {
    padding: 0.35rem 0.9rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a94a6;
    background: #f7f9fc;
    border-top: 1px solid #eef1f5;
}
.gs-dropdown .gs-category:first-child { border-top: 0; }

/* Shared row (dropdown items + results-page cards) */
.gs-item,
.search-result {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.9rem;
    text-decoration: none;
    color: inherit;
}
.gs-item:hover,
.gs-item.is-active,
.search-result:hover {
    background: #f3f7ff;
    text-decoration: none;
    color: inherit;
}

.gs-thumb {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f2f5;
}

.gs-icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef1f5;
    color: #6b7488;
    font-size: 1rem;
}

.gs-text {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}
.gs-label { font-weight: 600; color: var(--bc-text); font-size: 0.92rem; }
.gs-label strong { color: var(--bc-hover); font-weight: 700; }
.gs-sub { font-size: 0.76rem; color: var(--bc-muted); }

/* Truncate long text in the compact dropdown only */
.gs-dropdown .gs-label,
.gs-dropdown .gs-sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gs-empty {
    padding: 1rem 0.9rem;
    text-align: center;
    color: var(--bc-muted);
    font-size: 0.9rem;
}

.gs-all {
    position: sticky;
    bottom: 0;
    display: block;
    padding: 0.6rem 0.9rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--bc-hover);
    background: #f7f9fc;
    border-top: 1px solid #eef1f5;
    text-decoration: none;
}
.gs-all:hover { background: #eef4ff; text-decoration: none; }

/* Results page */
.search-section-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--bc-text);
    padding-bottom: 0.4rem;
    margin-bottom: 0.75rem;
    border-bottom: 2px solid var(--bc-border);
}
.search-section-title i { color: #b3bccc; margin-right: 0.35rem; }

.search-result {
    border: 1px solid var(--bc-border);
    border-radius: 0.5rem;
    background: #fff;
    height: 100%;
}
.search-result:hover { border-color: #cdd9f0; }
.search-result-chev { margin-left: auto; color: #c3ccd8; flex-shrink: 0; }

/* ============================================================
   Homepage
   ============================================================ */
.home-hero {
    background: linear-gradient(135deg, #1b1f27 0%, #0e1116 100%);
    color: #fff;
    border-radius: 0.9rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
}

/* List cards on the homepage aren't single links — drop the hover lift */
.home-card:hover {
    transform: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.home-card-header {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    font-weight: 700;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #44506a;
    background: #f7f9fc;
    border-bottom: 1px solid var(--bc-border);
}
.home-card-header a { color: inherit; text-decoration: none; }
.home-card-header a:hover { color: var(--bc-hover); }
.home-card-header i { font-size: 0.95rem; }
.home-card-header--open i { color: #c9971b; }
.home-card-header--women i { color: #d6336c; }
.home-card-header--team i { color: #2f6fed; }
.home-card-header--upcoming i { color: #2f6fed; }
.home-card-header--recent i { color: #dc3545; }

/* Live race pill */
.home-live {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 1rem;
    border: 1px solid #f3c2c2;
    background: #fff5f5;
    border-radius: 0.6rem;
    text-decoration: none;
    color: #b02a37;
    font-weight: 600;
}
.home-live:hover { background: #ffecec; color: #b02a37; text-decoration: none; }
.home-live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dc3545;
    animation: home-live-pulse 1.6s infinite;
}
@keyframes home-live-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5); }
    70%  { box-shadow: 0 0 0 8px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}
.home-live-label { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.05em; }
.home-live-name { color: var(--bc-text); font-weight: 700; }

/* Ranking rows */
.home-rank-row { display: flex; align-items: center; gap: 0.55rem; padding: 0.5rem 1rem; }
.home-rank-num { font-weight: 700; color: var(--bc-muted); min-width: 1.2rem; text-align: right; flex-shrink: 0; }
.home-rank-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #f0f2f5; }
.home-rank-name {
    font-weight: 600;
    color: var(--bc-text);
    text-decoration: none;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home-rank-name:hover { color: var(--bc-hover); }
.home-rank-pts { margin-left: auto; font-weight: 700; color: var(--bc-text); white-space: nowrap; flex-shrink: 0; }

/* Race rows */
.home-race-row { display: flex; align-items: flex-start; gap: 0.7rem; padding: 0.55rem 1rem; }
.home-race-date { font-weight: 700; color: #5b6472; font-size: 0.82rem; white-space: nowrap; flex-shrink: 0; min-width: 3rem; }
.home-race-main { min-width: 0; }
.home-race-name { font-weight: 600; color: var(--bc-text); text-decoration: none; }
.home-race-name:hover { color: var(--bc-hover); }
.home-race-meta { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.15rem; }
.home-race-winner { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.15rem; font-size: 0.82rem; color: var(--bc-muted); }

/* ============================================================
   Detail pages (rider / team show) — soft side-card headers
   ============================================================ */
.panel-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1rem;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #44506a;
    background: #f7f9fc;
    border-bottom: 1px solid var(--bc-border);
}
.panel-header i { color: #b3bccc; }
.panel-header--history i { color: #2f6fed; }
.panel-header--future i { color: #c9971b; }

/* Startlist: riders marked DNS are crossed through (badges stay legible
   because inline-block boxes don't inherit the line-through). */
.row-dns td {
    text-decoration: line-through;
    color: var(--bc-muted);
}
.row-dns td a { color: var(--bc-muted) !important; }

/* Live Ticker Links */
.live-ticker-container a {
    word-break: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

/* jQuery UI Autocomplete */
#searchBox {
    padding: 10px 14px;
    font-size: 17px;
    width: 100%;
    box-sizing: border-box;
}

.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    font-size: 16px;
    z-index: 9999 !important;
    background-color: #fff;
    border: 1px solid #ccc;
}

.ui-menu-item-wrapper {
    padding: 8px 12px;
    cursor: pointer;
}

.ui-menu-item-wrapper:hover {
    background-color: #f8f9fa;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Table corner rounding */
table thead tr:first-child th:first-child {
    border-top-left-radius: var(--card-radius);
}

table thead tr:first-child th:last-child {
    border-top-right-radius: var(--card-radius);
}

.display-5 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.badge.bg-primary,
.badge.bg-danger {
    font-size: 0.85rem;
    padding: 0.5em 1em;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn-outline-primary,
.btn-outline-secondary {
    transition: all 0.2s ease-in-out;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bg-white.rounded-4 {
    border: 1px solid #eee;
    background-color: #fff;
}

.text-primary {
    color: #0056b3 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* If using Bootstrap Icons */
.bi {
    vertical-align: middle;
    margin-right: 0.25rem;
}

/* ============================================================
   Mobile-friendly data tables
   On phones, wide stat tables (rankings, startlists, results)
   scroll horizontally instead of wrapping every name/team into
   tall, unreadable rows.
   ============================================================ */
@media (max-width: 575.98px) {
    .table-responsive > table {
        white-space: nowrap;
    }

    .table-responsive > table th,
    .table-responsive > table td {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    /* Subtle hint that there's more to scroll */
    .table-responsive {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .site-header {
        position: static;
    }

    .bc-topbar-right {
        gap: 0.65rem;
    }

    .bc-brand {
        align-items: center;
    }

    .bc-brand img {
        width: 150px;
    }

    .bc-brand-tagline {
        font-size: 0.8rem;
    }

    .bc-navbar .navbar-collapse {
        padding-top: 0.75rem;
    }

    .bc-navbar .nav-link {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .bc-navbar .nav-link::after {
        left: 0;
        right: auto;
        width: 36px;
    }
}

@media (max-width: 575.98px) {
    .bc-topbar-inner {
        flex-wrap: wrap;
        justify-content: center;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    .bc-topbar-left,
    .bc-topbar-right {
        justify-content: center;
        width: 100%;
    }

    .bc-brand {
        gap: 0.7rem;
    }

    .bc-brand-text {
        display: none;
    }

    .bc-brand img {
        width: 160px;
    }
}