:root {
    --bg: #f5f7fb;
	--bg-card: #ffffff;
    --surface: #ffffff;
    --ink: #0b1220;
    --muted: #6be1e8;
    --line: #e3e7f0;
    --accent-a: #000000;
    --accent-b: #2c77c5;
    --accent-gradient: linear-gradient(135deg, #007F0E, #007F46);
    --gold: #b8860b;
    --radius: 14px;
}

* { box-sizing: border-box; }

body {
    background: var(--bg);
    background-image:
        radial-gradient(circle at 1px 1px, #dde2ee 1px, transparent 0);
    background-size: 28px 28px;
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0 0 80px; /* padding-top retiré : le bandeau nav.php doit être collé au sommet de la page (voir nav.php) */
}

/* --- Structure principale --- */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Tous les Ã©lÃ©ments de contenu avec largeur uniforme */
.search-card,
.bib,
.index-hero,
.card,
.races-card,
.grid-2 > * {
    width: 100%;
    box-sizing: border-box;
}

h1.brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}


/* --- Pour supprimer le soulignage et la couleur bleue des liens --- */
a {
    color: inherit;
    text-decoration: none;
}

/* --- Pour les liens dans les cards et tableaux --- */
.card a,
.races-card a {
    color: inherit;
    text-decoration: none;
}

/* --- Formulaire de recherche --- */
.search-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}

.search-row {
    display: flex;
    gap: 10px;
}

input[type=text],
textarea {
    font: inherit;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 11px 14px;
    background: #fbfcfe;
    color: var(--ink);
    width: 100%;
}

input[type=text]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-a);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.btn {
    font: inherit;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 11px 22px;
    background: linear-gradient(180deg,#f2fffb 0%,#cffff0 48%,#9ff6d8 100%);
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover {
    filter: brightness(1.06);
}

.hint {
    color: var(--muted);
    font-size: 0.82rem;
    margin-top: 8px;
}

details.advanced {
    margin-top: 14px;
}

details.advanced summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--accent-a);
    letter-spacing: 0.01em;
}

.advanced-body {
    padding-top: 14px;
    display: grid;
    gap: 14px;
}

label.field-label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.error-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.92rem;
}

/* --- Bib plate (identitÃ©) --- */
.bib {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}

.bib::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
}

.bib-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.bib-number {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    color: var(--muted);
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.bib-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.9rem;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.bib-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.bib-tag {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.76rem;
    background: #f1f4fb;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 12px;
    color: var(--ink);
}

/* --- Bandeau DUV-index (Ã©lÃ©ment signature) --- */
.index-hero {
    background: #0b1220;
    background-image: radial-gradient(circle at 20% -20%, #005B04, transparent 35%),
                       radial-gradient(circle at 100% 120%, #007F46, transparent 35%);
    border-radius: var(--radius);
    padding: 22px 28px;
    margin-bottom: 16px;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    color: #ffffff;
}

.index-stat {
    flex: 1;
    min-width: 160px;
}

.index-value {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
    font-size: 2.4rem;
    line-height: 1;
    background: linear-gradient(135deg, #93c5fd, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.index-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-top: 4px;
}

.index-label a {
    color: #93c5fd;
    text-decoration: none;
    margin-left: 6px;
}

.index-label a:hover {
    text-decoration: underline;
}

.info-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid #64748b;
    color: #cbd5e1;
    font-size: 0.66rem;
    cursor: help;
    margin-left: 4px;
    position: relative;
}

.info-dot .bubble {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 260px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.78rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.45;
    text-align: left;
    box-shadow: 0 8px 24px rgba(15,23,42,0.18);
    z-index: 10;
    cursor: auto;
}

.info-dot:hover .bubble,
.info-dot:focus .bubble,
.info-dot:focus-within .bubble {
    display: block;
}

/* --- Grille deux colonnes --- */
.grid-2 {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 20px;
    align-items: start;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}

.card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #6be1e8;
    margin: 0 0 12px;
}

.stat-line {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.92rem;
}

.stat-line:last-child {
    border-bottom: none;
}

.stat-line .v {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
}

/* --- Histogramme "Km par an" (carte entre Totaux et Wins & podiums) --- */
.km-year-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.km-year-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.km-year-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
    white-space: nowrap;
}

.km-year-bars {
    height: 110px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.km-year-bar {
    width: 60%;
    min-width: 18px;
    background: linear-gradient(180deg,#f2fffb 0%,#cffff0 48%,#9ff6d8 100%);
    border-radius: 4px 4px 0 0;
}

.km-year-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--muted);
    margin-top: 6px;
}

@media (max-width: 480px) {
    .km-year-chart { gap: 5px; }
    .km-year-bars { height: 80px; }
    .km-year-value, .km-year-label { font-size: 0.62rem; }
}

/* --- Tableau des records --- */
table.records {
    width: 100%;
    border-collapse: collapse;
}

table.records td {
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.92rem;
}

table.records tr:last-child td {
    border-bottom: none;
}

table.records td:last-child {
    text-align: right;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
}

/* Effet de survol sur les lignes du tableau des records */
.card table.records tbody tr:hover,
.card table.records tr:hover {
    background-color: #e8f5e9;
    cursor: pointer;
}

.recent-item {
    font-size: 0.86rem;
    padding: 7px 0;
    border-bottom: 1px dashed var(--line);
}

.recent-item:last-child {
    border-bottom: none;
}

.recent-item .d {
    color: var(--muted);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
}

.recent-item .p {
    float: right;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 600;
}

/* --- Tableau complet des courses --- */
.races-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.races-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 10px;
}

table.races-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
}

table.races-table th {
    text-align: left;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
}

table.races-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #f0f2f7;
}

table.races-table tr[data-stage="1"] td {
    color: var(--muted);
    font-size: 0.83rem;
}

table.races-table .date,
table.races-table .perf {
    font-family: 'IBM Plex Mono', monospace;
    white-space: nowrap;
}

table.races-table .medal {
    font-size: 1rem;
    white-space: nowrap;
}

/* Effet de survol sur les lignes du tableau principal */
#racesTable tbody tr:hover {
    background-color: #e8f5e9;
    cursor: pointer;
}

/* Pour que le lien occupe toute la cellule dans le tableau principal */
#racesTable tbody td .row-link {
    display: block;
    padding: 7px 10px;
    margin: -7px -10px;
    color: inherit;
    text-decoration: none;
}

/* SÃ©parateur d'annÃ©es - pas de survol */
#racesTable tbody tr.year-separator:hover {
    background-color: transparent;
    cursor: default;
}

/* ============================================================
   MEDIA QUERIES - RESPONSIVE
   ============================================================ */

/* Tablettes et petits Ã©crans */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Mobiles */
@media (max-width: 768px) {
    body {
        padding: 16px 0 60px;
    }

    .wrap {
        padding: 0 10px;
    }

    /* RÃ©duire les paddings sur mobile */
    .search-card,
    .bib,
    .index-hero,
    .card,
    .races-card {
        padding: 16px;
    }

    .bib {
        padding: 18px 20px;
    }

    .index-hero {
        padding: 18px 20px;
        gap: 20px;
    }

    .search-card {
        padding: 16px;
    }

    .search-row {
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .bib-name {
        font-size: 1.5rem;
    }

    .index-value {
        font-size: 2rem;
    }

    .index-hero {
        flex-direction: column;
        gap: 16px;
    }

    .index-stat {
        min-width: auto;
        width: 100%;
    }

    /* --- TABLEAU DES RÃ‰SULTATS MOBILE --- */
    .races-card {
        padding: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table.races-table {
        font-size: 0.7rem;
        min-width: 100%;
    }

    table.races-table th {
        font-size: 0.6rem;
        padding: 5px 6px;
        white-space: nowrap;
    }

    table.races-table td {
        padding: 4px 6px;
        font-size: 0.65rem;
    }

    table.races-table .date,
    table.races-table .perf {
        font-size: 0.6rem;
        white-space: nowrap;
    }

    table.races-table .medal {
        font-size: 0.8rem;
        white-space: nowrap;
    }

    table.races-table tr[data-stage="1"] td {
        font-size: 0.6rem;
    }

    /* Largeurs des colonnes */
    table.races-table th:nth-child(1),
    table.races-table td:nth-child(1) {
        min-width: 70px;
        max-width: 70px;
    }

    table.races-table th:nth-child(2),
    table.races-table td:nth-child(2) {
        min-width: 50px;
        max-width: 60px;
    }

    table.races-table th:nth-child(3),
    table.races-table td:nth-child(3) {
        min-width: 100px;
    }

    table.races-table th:nth-child(4),
    table.races-table td:nth-child(4) {
        min-width: 60px;
        max-width: 70px;
    }

    table.races-table th:nth-child(5),
    table.races-table td:nth-child(5) {
        min-width: 40px;
        max-width: 50px;
    }

    /* Cards en colonne */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card {
        padding: 14px 16px;
    }

    /* Records table */
    table.records td {
        padding: 5px 0;
        font-size: 0.85rem;
    }

    .stat-line {
        font-size: 0.85rem;
        padding: 5px 0;
    }

    .bib-tags {
        gap: 6px;
    }

    .bib-tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }


}

/* TrÃ¨s petits mobiles (moins de 480px) */
@media (max-width: 480px) {
    .wrap {
        padding: 0 6px;
    }

    .search-card,
    .bib,
    .index-hero,
    .card,
    .races-card {
        padding: 10px;
        border-radius: 10px;
    }

    .races-card {
        padding: 8px;
    }

    table.races-table {
        font-size: 0.6rem;
    }

    table.races-table th {
        font-size: 0.55rem;
        padding: 3px 4px;
    }

    table.races-table td {
        padding: 3px 4px;
        font-size: 0.55rem;
    }

    table.races-table .date,
    table.races-table .perf {
        font-size: 0.5rem;
    }

    table.races-table .medal {
        font-size: 0.7rem;
        white-space: nowrap;
    }

    table.races-table tr[data-stage="1"] td {
        font-size: 0.5rem;
    }

    /* Colonnes encore plus serrÃ©es */
    table.races-table th:nth-child(1),
    table.races-table td:nth-child(1) {
        min-width: 60px;
        max-width: 60px;
    }

    table.races-table th:nth-child(2),
    table.races-table td:nth-child(2) {
        min-width: 40px;
        max-width: 50px;
    }

    table.races-table th:nth-child(3),
    table.races-table td:nth-child(3) {
        min-width: 80px;
    }

    table.races-table th:nth-child(4),
    table.races-table td:nth-child(4) {
        min-width: 50px;
        max-width: 60px;
    }

    table.races-table th:nth-child(5),
    table.races-table td:nth-child(5) {
        min-width: 35px;
        max-width: 40px;
    }

    .bib {
        padding: 12px 14px;
    }

    .index-hero {
        padding: 12px 14px;
        border-radius: 10px;
    }

    .bib-name {
        font-size: 1.2rem;
    }

    .index-value {
        font-size: 1.6rem;
    }

    h1.brand {
        font-size: 1.1rem;
        gap: 6px;
    }

    .card h3 {
        font-size: 0.65rem;
    }

    .stat-line {
        font-size: 0.75rem;
        padding: 3px 0;
    }

    .bib-tag {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    input[type=text],
    textarea {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

/* Style de base pour toutes les bulles */


/* Ajustement pour la bulle des pays - plus Ã©troite */
.info-dot .country-bubble {
    width: 180px;
    text-align: center;
    font-size: 0.85rem;
    padding: 12px 16px;
}

/* Bulles DUV-index / DUV-index+ : ouvrent a droite du « ? » (pas au-dessus),
   pour ne jamais deborder en haut de l'ecran quel que soit l'endroit
   ou la bande index-hero se trouve sur la page. */
.index-stat:first-child .info-dot .bubble,
.index-stat:nth-child(2) .info-dot .bubble {
    width: 340px;
    left: calc(100% + 12px);
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

@media (max-width:768px) {

    .info-dot .bubble {
        width: 260px;
        left: 10px; /* ChangÃ© de 0 Ã  10px */
        transform: none;
    }

    .info-dot .bubble::after {
        left: 32px; /* ChangÃ© de 22px Ã  32px (22+10) */
        transform: none;
    }

    .info-dot .country-bubble {
        width: 170px;
    }

    .index-stat:first-child .info-dot .bubble,
    .index-stat:nth-child(2) .info-dot .bubble {
        width: 220px;
        left: calc(100% + 12px);
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }
}

@media (max-width:480px) {

    .info-dot .bubble {
        width: 210px;
    }

    .info-dot .country-bubble {
        width: 150px;
    }

    .index-stat:first-child .info-dot .bubble,
    .index-stat:nth-child(2) .info-dot .bubble {
        width: 170px;
        left: calc(100% + 10px);
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }
}

/* Effet de survol */
.info-dot:hover .bubble,
.info-dot:focus .bubble {
    visibility: visible;
    opacity: 1;
}

.info-dot {
    position: relative;
    display: inline-block;
    cursor: help;
    margin-left: 4px;
}



.index-stat:first-child .info-dot .bubble::after,
.index-stat:nth-child(2) .info-dot .bubble::after {
    content: '';
    position: absolute;
    left: -9px;
    top: 50%;
    transform: translateY(-50%);
    border: 9px solid transparent;
    border-right-color: var(--line);
    z-index: -1;
}

    table.records td {
        font-size: 0.75rem;
        padding: 3px 0;
    }
}

/* Pour les trÃ¨s grands Ã©crans */
@media (min-width: 1400px) {
    .wrap {
        padding: 0 40px;
    }
}

/* ============================================================
   STYLES POUR EVENT.PHP
   ============================================================ */

/* Tableau des rÃ©sultats event.php */
#resultsTable {
    width: 100%;
    border-collapse: collapse;
}

#resultsTable th,
#resultsTable td {
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

#resultsTable tbody tr:hover {
    background-color: #e8f5e9;
    cursor: pointer;
}

#resultsTable tbody td .row-link {
    display: block;
    padding: 8px 12px;
    margin: -8px -12px;
    color: inherit;
    text-decoration: none;
}

/* Mobile pour event.php */
@media (max-width: 768px) {
    .results-card {
        padding: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    #resultsTable {
        font-size: 0.7rem;
        min-width: 100%;
    }

    #resultsTable th,
    #resultsTable td {
        padding: 4px 6px;
        font-size: 0.6rem;
        white-space: nowrap;
    }

    #resultsTable tbody td .row-link {
        padding: 4px 6px;
        margin: -4px -6px;
    }
}

@media (max-width: 480px) {
    .results-card {
        padding: 6px;
    }

    #resultsTable {
        font-size: 0.55rem;
    }

    #resultsTable th,
    #resultsTable td {
        padding: 3px 4px;
        font-size: 0.5rem;
    }

    #resultsTable tbody td .row-link {
        padding: 3px 4px;
        margin: -3px -4px;
    }
}
/* --- Navigation interne Runner --- */
.runner-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.runner-tab {
    appearance: none;
    border: 1px solid var(--line);
    background: #f7f9fc;
    color: var(--muted);
    border-radius: 10px;
    padding: 9px 15px;
    font: inherit;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.runner-tab:hover {
    transform: translateY(-1px);
    color: var(--ink);
    border-color: #b8c2d8;
    background: #eef3f9;
}
.runner-tab.is-active {
    color: #fff;
    border-color: transparent;
    background: var(--accent-gradient);
    box-shadow: 0 5px 16px rgba(15, 23, 42, .13);
}
.runner-tab-panel {
    opacity: 0;
    transform: translateX(14px);
    transition: opacity .20s ease, transform .20s ease;
}
.runner-tab-panel.is-active {
    opacity: 1;
    transform: translateX(0);
}
.runner-tab-panel[hidden] { display: none !important; }

/* --- Onglet Réseau --- */
.network-head { gap: 16px; align-items: center; }
.network-filter {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: .82rem;
    color: var(--muted);
    white-space: nowrap;
}
.network-filter select {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    border-radius: 8px;
    padding: 7px 9px;
    font: inherit;
    font-weight: 700;
}
.network-loading {
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--muted);
}
.network-loading[hidden] { display: none !important; }
.network-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid var(--line);
    border-top-color: var(--accent-a);
    border-radius: 50%;
    animation: network-spin .75s linear infinite;
}
@keyframes network-spin { to { transform: rotate(360deg); } }
.network-runner-cell {
    display: flex;
    align-items: center;
    gap: 7px;
}
.network-runner-toggle {
    appearance: none;
    border: 0;
    padding: 3px 0;
    margin: 0;
    background: transparent;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}
.network-runner-toggle::after {
    content: '›';
    display: inline-block;
    margin-left: 6px;
    color: var(--muted);
    transition: transform .16s ease;
}
.network-runner-toggle.is-open::after { transform: rotate(90deg); }
.network-runner-toggle:hover { color: var(--accent-a); }
.network-count {
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.network-count-value { vertical-align: middle; }
.network-icon-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
    background: transparent;
    text-decoration: none;
    line-height: 0;
    cursor: pointer;
    vertical-align: middle;
    opacity: .78;
    transition: opacity .15s ease, transform .15s ease;
}
.network-icon-action:hover { opacity: 1; transform: scale(1.08); }
.network-icon-action img { width: 18px; height: 18px; display: block; }
.network-count .network-icon-action { margin-left: 5px; }
.network-profile-link { flex: 0 0 auto; }
.network-table th:nth-child(2),
.network-table td:nth-child(2) { text-align: right; }
.network-detail-row td { padding: 0 !important; border-bottom: 1px solid var(--line); }
.network-encounters {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-5px);
    padding: 0 18px 0 31px;
    background: transparent;
    transition: max-height .22s ease, opacity .18s ease, transform .18s ease, padding .22s ease;
}
.network-encounters.is-open {
    max-height: 1500px;
    opacity: 1;
    transform: translateY(0);
    padding-top: 8px;
    padding-bottom: 8px;
}
.network-encounter {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 5px 0;
    font-size: .84rem;
    color: var(--muted);
}
.network-encounter-date {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--ink);
    font-weight: 600;
}
.network-empty { padding: 26px 4px; text-align: center; }
.duv-index-highlight { background: rgba(0, 127, 70, .08); font-weight: 700; }

@media (max-width: 620px) {
    .runner-tab { flex: 1 1 auto; padding-left: 10px; padding-right: 10px; }
    .network-head { align-items: flex-start; }
    .network-filter { margin-left: 0; }
    .network-encounter { grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
}

/* --- Accueil Runner : tirage aléatoire --- */
.random-runner-btn {
    flex: 0 0 auto;
    width: 42px;
    min-width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfcfe;
    color: var(--ink);
    font-size: 20px;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.random-runner-btn:hover { transform: translateY(-1px) rotate(-4deg); background:#eef3f9; border-color:#b8c2d8; }
.random-runner-btn:disabled { opacity:.55; cursor:wait; }

/* Réseau : colonnes volontairement rapprochées au lieu d'occuper toute la carte. */
.network-table { width: 100%; table-layout: fixed; }
.network-table th:first-child,
.network-table td:first-child { width: 70%; }
.network-table th:nth-child(2),
.network-table td:nth-child(2) { width: 30%; text-align: left; }
.network-count { display: flex; align-items: center; justify-content: flex-start; }
.network-count .network-icon-action { margin-left: 13px; }

/* 260910d — ajustements Runner / Réseau */
.runner-main-input-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.runner-main-input-wrap > input { width: 100%; }
.country-flag { height: 14px; width: auto; display: inline-block; vertical-align: -2px; margin-left: 4px; border-radius: 1px; }
.random-runner-btn:hover { transform: translateY(-1px) rotate(-4deg); background:#005f2f; border-color:#18865d; color:#fff; }

/* Les deux informations d'une ligne Réseau restent strictement sur le même axe. */
.network-table { width:100%; table-layout:fixed; }
.network-table th:first-child,.network-table td:first-child { width:48%; }
.network-table th:nth-child(2),.network-table td:nth-child(2) { width:52%; text-align:left; }
.network-table tbody tr.network-runner-row > td { height:40px; vertical-align:middle; padding-top:6px; padding-bottom:6px; }
.network-runner-cell,.network-count { min-height:27px; display:flex; align-items:center; }
.network-count { justify-content:flex-start; }
.network-count .network-icon-action { margin-left:18px; }

/* 260910e — Réseau : alignement strict des deux valeurs sur une même ligne. */
.network-table{width:100%;table-layout:auto!important;border-collapse:collapse}
.network-table thead tr,
.network-table tbody tr.network-runner-row{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 190px;
    column-gap:24px;
    align-items:center!important;
    width:100%;
}
.network-table thead th,
.network-table tbody tr.network-runner-row>td{
    display:flex!important;
    align-items:center!important;
    min-width:0;
    width:auto!important;
    height:40px!important;
    min-height:40px!important;
    padding-top:6px!important;
    padding-bottom:6px!important;
    margin:0!important;
    vertical-align:middle!important;
}
.network-table thead th:nth-child(2),
.network-table tbody tr.network-runner-row>td:nth-child(2){justify-content:flex-start!important;text-align:left!important}
.network-runner-cell,.network-count{height:28px!important;min-height:28px!important;display:flex!important;align-items:center!important;margin:0!important;line-height:1!important}
.network-runner-toggle,.network-count-value{line-height:20px!important;margin:0!important;align-self:center!important}
.network-count .network-icon-action{margin-left:18px!important}
.network-detail-row{display:table-row!important}
.network-detail-row>td{display:table-cell!important;width:auto!important}
@media(max-width:620px){
  .network-table thead tr,.network-table tbody tr.network-runner-row{grid-template-columns:minmax(0,1fr) 132px;column-gap:12px}
  .network-count .network-icon-action{margin-left:14px!important}
}

/* 260910f — progression Réseau */
.network-loading{min-height:0;padding:14px 0 10px;display:block}
.network-progress-wrap{width:100%}
.network-progress-title{display:flex;align-items:center;gap:10px;margin-bottom:9px;color:var(--muted);font-size:.84rem}
.network-progress-track{width:100%;height:8px;background:#e8edf3;border-radius:999px;overflow:hidden}
.network-progress-track>span{display:block;width:0;height:100%;background:var(--accent-gradient);border-radius:inherit;transition:width .18s ease}

/* Network pagination / cancellation */
.network-stop-btn{margin-top:10px;border:0;border-radius:8px;padding:7px 12px;background:#111827;color:#fff;font:600 13px -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;cursor:pointer;transition:background .16s ease,transform .16s ease}
.network-stop-btn:hover{background:#374151;transform:translateY(-1px)}
.network-pager{display:flex;gap:6px;align-items:center;justify-content:center;padding:14px 0 4px;flex-wrap:wrap}
.network-page-btn{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:7px;min-width:34px;height:32px;padding:0 9px;cursor:pointer;font-weight:700}
.network-page-btn:hover{background:#f1f5f9}.network-page-btn.is-active{background:var(--accent-a);color:#fff;border-color:var(--accent-a)}

/* 260910h — mobile network, pagination crossfade, encounter links */
.network-table,
.network-pager { transition: opacity .12s ease, transform .12s ease; }
.network-table.is-page-fading,
.network-pager.is-page-fading { opacity: 0; transform: translateY(3px); }

.network-encounter-event {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}
.network-encounter-event > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.network-event-link {
    flex: 0 0 auto;
    font-size: .78rem;
    font-weight: 700;
    color: var(--accent-a);
    text-decoration: none;
}
.network-event-link:hover { text-decoration: underline; }

@media (max-width: 620px) {
    .runner-network-card { overflow: hidden; }
    .network-head {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px !important;
        align-items: start !important;
    }
    .network-head > div:first-child { min-width: 0; }
    .network-head h3 { font-size: 18px; line-height: 1.2; }
    .network-head .hint { font-size: 12px; line-height: 1.35; }
    .network-filter {
        margin: 0 !important;
        align-self: start;
        font-size: 12px;
        gap: 5px;
    }
    .network-filter select { height: 36px; padding: 5px 8px; font-size: 12px; }

    .network-table { table-layout: auto !important; width: 100% !important; }
    .network-table thead tr,
    .network-table tbody tr.network-runner-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 82px !important;
        column-gap: 8px !important;
        align-items: center !important;
        width: 100% !important;
    }
    .network-table thead th,
    .network-table tbody tr.network-runner-row > td {
        min-width: 0 !important;
        width: auto !important;
        height: 40px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
        overflow: hidden;
    }
    .network-table thead th { font-size: 9px; white-space: nowrap; }
    .network-runner-cell {
        display: grid !important;
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 7px !important;
        min-width: 0 !important;
        overflow: hidden;
    }
    .network-profile-link img,
    .network-icon-action img { width: 17px; height: 17px; }
    .network-runner-toggle {
        display: block !important;
        width: 100%;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 13px;
        line-height: 20px !important;
    }
    .network-runner-toggle::after { margin-left: 4px; }
    .network-count {
        display: grid !important;
        grid-template-columns: 24px 20px;
        justify-content: end !important;
        gap: 12px !important;
        min-width: 0 !important;
        overflow: visible !important;
        font-size: 13px;
    }
    .network-count .network-icon-action { margin-left: 0 !important; }
    .network-count-value { text-align: right; }
    .network-detail-row > td { width: 100% !important; }
    .network-encounters { padding-left: 8px; padding-right: 8px; }
    .network-encounter {
        grid-template-columns: 58px minmax(0,1fr) !important;
        gap: 7px !important;
        font-size: 12px;
    }
    .network-encounter-event { gap: 7px; }
    .network-event-link { font-size: 11px; }
    .network-pager { gap: 4px; padding-top: 10px; }
    .network-page-btn { min-width: 30px; height: 30px; padding: 0 7px; }
}


/* 260910i — mobile network: full runner names, horizontal table scroll */
.runner-network-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
}
.network-runner-toggle {
    white-space: nowrap !important;
    overflow: visible !important;
    text-overflow: clip !important;
    width: auto !important;
    max-width: none !important;
}
.network-encounter-event {
    min-width: 0;
}
.network-event-link {
    display: inline-block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: inherit;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}
.network-event-link:hover {
    color: var(--accent-a);
    text-decoration: underline;
}
@media (max-width: 620px) {
    .runner-network-card { overflow: visible !important; }
    .runner-network-table-scroll {
        margin-left: -2px;
        padding-bottom: 2px;
    }
    .network-table {
        min-width: 560px !important;
        width: 560px !important;
        table-layout: auto !important;
    }
    .network-table thead tr,
    .network-table tbody tr.network-runner-row {
        grid-template-columns: minmax(380px, 1fr) 145px !important;
        column-gap: 14px !important;
    }
    .network-table thead th,
    .network-table tbody tr.network-runner-row > td {
        overflow: visible !important;
    }
    .network-runner-cell {
        display: flex !important;
        align-items: center !important;
        gap: 7px !important;
        overflow: visible !important;
        min-width: 0 !important;
    }
    .network-runner-toggle {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        font-size: 13px;
    }
    .network-count {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 14px !important;
        white-space: nowrap !important;
        overflow: visible !important;
    }
    .network-count .network-icon-action { margin-left: 0 !important; }
}

/* 260910j — mobile network: keep the count column visible, runner column <= 75% */
@media (max-width: 620px) {
    .runner-network-card { overflow: hidden !important; }
    .runner-network-table-scroll {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
        margin-left: 0 !important;
        padding-bottom: 0 !important;
    }
    .network-table {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }
    .network-table thead tr,
    .network-table tbody tr.network-runner-row {
        width: 100% !important;
        max-width: 100% !important;
        grid-template-columns: minmax(0, 75%) minmax(0, 25%) !important;
        column-gap: 0 !important;
    }
    .network-table thead th:first-child,
    .network-table tbody tr.network-runner-row > td:first-child {
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 4px !important;
    }
    .network-table thead th:nth-child(2),
    .network-table tbody tr.network-runner-row > td:nth-child(2) {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
    .network-runner-cell {
        display: grid !important;
        grid-template-columns: 18px minmax(0, 1fr) !important;
        gap: 5px !important;
        overflow: visible !important;
    }
    .network-runner-toggle {
        display: block !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        font-size: 12px !important;
        letter-spacing: -0.15px;
    }
    .network-runner-toggle.network-name-long { font-size: 11px !important; letter-spacing: -0.3px; }
    .network-runner-toggle.network-name-very-long { font-size: 10px !important; letter-spacing: -0.45px; }
    .network-count {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 9px !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        overflow: visible !important;
        font-size: 12px !important;
    }
    .network-profile-link img,
    .network-icon-action img { width: 15px !important; height: 15px !important; }
}

/* 260910k — Network columns: force a strict 80% / 20% split on every viewport */
.network-table thead tr,
.network-table tbody tr.network-runner-row {
    grid-template-columns: minmax(0, 80%) minmax(0, 20%) !important;
    column-gap: 0 !important;
}
.network-table thead th:first-child,
.network-table tbody tr.network-runner-row > td:first-child {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-right: 8px !important;
    box-sizing: border-box !important;
}
.network-table thead th:nth-child(2),
.network-table tbody tr.network-runner-row > td:nth-child(2) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-left: 8px !important;
    padding-right: 4px !important;
    box-sizing: border-box !important;
}
.network-count {
    width: 100% !important;
    justify-content: flex-start !important;
    white-space: nowrap !important;
}
@media (max-width: 620px) {
    .network-table thead tr,
    .network-table tbody tr.network-runner-row {
        grid-template-columns: minmax(0, 80%) minmax(0, 20%) !important;
        column-gap: 0 !important;
    }
    .network-table thead th:first-child,
    .network-table tbody tr.network-runner-row > td:first-child {
        padding-right: 5px !important;
    }
    .network-table thead th:nth-child(2),
    .network-table tbody tr.network-runner-row > td:nth-child(2) {
        padding-left: 5px !important;
        padding-right: 2px !important;
    }
    .network-count {
        justify-content: flex-start !important;
        gap: 7px !important;
    }
}

/* 260911g */
.sex-icon{filter:brightness(0) invert(1)!important;}

/* 260911g white SVG */
.sex-icon{filter:brightness(0) invert(1)!important;}

/* 260911k runner/network UI */
.search-card{background:transparent!important;border:0!important;box-shadow:none!important;padding-left:0!important;padding-right:0!important}
.search-card>form{background:#11191a;border:1px solid #314044;border-radius:16px;padding:12px 14px}
.random-runner-btn,.random-runner-btn:hover{background:#000!important;border-color:#24302d!important;color:#fff!important}
.random-runner-btn img{filter:brightness(0) invert(1)!important}
.network-table tbody tr.network-runner-row,.network-table tbody tr.network-runner-row>td{background:#101617!important;color:#eef4f2!important}
.network-table tbody tr.network-runner-row:hover,.network-table tbody tr.network-runner-row:hover>td{background:#17211f!important}

.search-card>form{background:transparent!important;border:0!important;border-radius:0!important;padding:0!important}
.search-card .search-row{background:#11191a!important;border:1px solid #314044!important;border-radius:15px!important;padding:5px!important;gap:6px!important}
.search-card .field-label:first-of-type{margin-left:6px!important}


/* 260911l — Runner visual cleanup */
.bib{background:#0d251f!important}
.search-card,.search-card>form,.search-card .search-row{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
.search-card .search-row{padding:0!important}
.races-head{background:transparent!important}
.races-table .mv-badge,.races-table .ffa-badge,.races-table span[style*="border-radius: 999px"],.races-table span[style*="border-radius:999px"]{background:#000!important;color:#6be1e8!important;border-color:#25312e!important}
.runner-network-card{background:transparent!important;border:0!important;box-shadow:none!important}
.runner-network-card .network-head{background:transparent!important}

/* 260911m — frameless input zones */
.search-card,.search-card>form,.search-card .search-row{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
.search-card{padding:0!important}
.search-card .field-label:first-of-type{margin-left:0!important}
.runner-main-input-wrap{background:transparent!important;border:0!important;box-shadow:none!important}


/* 260911n — frameless Runner search + naked random button */
.search-card,.search-card>form,.search-card .search-row{
 background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;
}
.search-card{padding-left:0!important;padding-right:0!important;}
.random-runner-btn,.random-runner-btn:hover,.random-runner-btn:focus{
 background:transparent!important;border:0!important;box-shadow:none!important;outline:none!important;
 width:38px!important;height:38px!important;min-width:38px!important;padding:4px!important;
 transform:none!important;
}
.random-runner-btn img{width:30px!important;height:30px!important;filter:brightness(0) invert(1)!important;}


/* 260911o — final Runner search/bib cleanup */
.search-card,.search-card>form,.search-card .search-row,.runner-main-input-wrap{
  background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;
}
.search-card{padding:0!important;}
.search-card .search-row{padding:0!important;}
.search-card .runner-main-input-wrap input,
.search-card input#q{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  outline:none!important;
}
.search-card .runner-main-input-wrap input:focus,
.search-card input#q:focus{border:0!important;box-shadow:none!important;outline:none!important;}
.bib{background:#0d251f!important;border:0!important;box-shadow:none!important;}
.bib-number a,.bib-name a{border-bottom:0!important;text-decoration:none!important;}
.bib-number a:hover,.bib-name a:hover{border-bottom:0!important;text-decoration:none!important;}


/* 260911p — Runner search aligned with Race / Calendar */
.search-card .search-row{
    display:flex!important;
    align-items:end!important;
    gap:9px!important;
}
.search-card .runner-main-input-wrap{
    flex:0 1 520px!important;
    max-width:520px!important;
    min-width:220px!important;
}
.search-card .runner-main-input-wrap input,
.search-card input#q{
    height:40px!important;
    width:100%!important;
    box-sizing:border-box!important;
    padding:0 13px!important;
    background:#0c1213!important;
    color:#f5f8f7!important;
    border:1px solid #39474a!important;
    border-radius:9px!important;
    box-shadow:none!important;
    outline:none!important;
}
.search-card .runner-main-input-wrap input:focus,
.search-card input#q:focus{
    border:1px solid #5bd3b0!important;
    box-shadow:0 0 0 3px rgba(91,211,176,.10)!important;
}
.search-card .btn{
    height:40px!important;
    padding:0 18px!important;
    border-radius:9px!important;
}
.search-card .random-runner-btn{
    align-self:end!important;
    height:40px!important;
    width:42px!important;
    min-width:42px!important;
}
@media(max-width:700px){
    .search-card .search-row{flex-wrap:wrap!important;}
    .search-card .runner-main-input-wrap{flex:1 1 calc(100% - 51px)!important;max-width:none!important;}
    .search-card .btn{width:100%!important;}
}

/* 260911q search button */
.search-icon-btn{width:40px!important;height:40px!important;min-width:40px!important;padding:0!important;border:0!important;border-radius:9px!important;background:#2C67C5!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;transition:background-color .18s ease!important;cursor:pointer!important}.search-icon-btn:hover{background:#2C77C5!important;transform:none!important;filter:none!important}.search-icon-btn img{width:18px!important;height:18px!important;display:block!important;filter:brightness(0) invert(1)!important}

input,textarea{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;font-size:13px!important}


/* 260911r network names + countries bubble */
.network-runner-toggle,.network-runner-toggle:link,.network-runner-toggle:visited,.network-runner-cell a,.network-runner-cell a:link,.network-runner-cell a:visited,.network-count-value,.network-event-link{color:#f1f7f4!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important}
.network-runner-toggle:hover,.network-runner-cell a:hover,.network-event-link:hover{color:#ffffff!important}
.info-dot .country-bubble .country-entry{display:flex;align-items:center;justify-content:space-between;gap:8px}
.info-dot .country-bubble .country-entry+.country-entry{margin-top:4px}
.info-dot .country-bubble .country-entry img{margin-left:8px!important;margin-right:0!important;vertical-align:middle!important}
.network-stop-btn,.network-page-btn{background:#2C67C5!important;border:1px solid #2C67C5!important;color:#fff!important}
.network-stop-btn:hover,.network-page-btn:hover,.network-page-btn.is-active{background:#2C77C5!important;border-color:#2C77C5!important;color:#fff!important;transform:none!important}


/* 260911s affinities/network table lighter text + white icons */
.network-runner-toggle,.network-count,.network-count-value,.network-event-link,.network-encounter,.network-encounter-date{font-weight:400!important}
.network-icon-action img{filter:brightness(0) invert(1)!important}

/* 260911u runner refinements */
.bib{margin-top:3px!important}
.info-dot .country-bubble{
  background:rgba(17,23,24,.50)!important;
  color:#f5f8f7!important;
  border-color:rgba(255,255,255,.16)!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
}
.info-dot .country-bubble .country-entry{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:3px!important;
  width:max-content!important;
  max-width:100%!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.info-dot .country-bubble .country-entry img{
  margin:0 0 0 3px!important;
  width:18px!important;
  height:12px!important;
}
.bib-country-tag img[src$="Male.svg"],
.bib-country-tag img[src$="Female.svg"]{
  filter:brightness(0) invert(1)!important;
}

/* 260911v runner spacing */
label.field-label[for="q"]{margin-bottom:3px!important}
label.field-label[for="q"] + .search-row{margin-top:0!important}

/* 260911w exact Runner search row spacing */
.search-row{padding:15px!important;display:flex!important;gap:10px!important}

/* 260911z — Runner visual polish */
.bib{
  background:linear-gradient(172deg,#000000 0% 0%,#0b1025 100%)!important;
}

/* DUV-index and DUV-index+ tooltips aligned with Countries visited */
.index-stat:first-child .info-dot .bubble,
.index-stat:nth-child(2) .info-dot .bubble{
  background:rgba(17,23,24,.50)!important;
  color:#ffffff!important;
  border:0!important;
  backdrop-filter:blur(8px)!important;
  -webkit-backdrop-filter:blur(8px)!important;
  box-shadow:0 10px 26px rgba(0,0,0,.34)!important;
}
.index-stat:first-child .info-dot .bubble *,
.index-stat:nth-child(2) .info-dot .bubble *{
  color:#ffffff!important;
}

/* Active Runner tab */
.runner-tab.active,
.runner-tab[aria-selected="true"],
.runner-tab.is-active{
  background:#2367c5!important;
  color:#ffffff!important;
  border:0!important;
}

/* Gender icon immediately before the country flag */
.bib-country-tag{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
}
.bib-country-tag .runner-gender-icon{
  width:15px!important;
  height:15px!important;
  display:block!important;
  flex:0 0 15px!important;
  filter:brightness(0) invert(1)!important;
  margin:0!important;
}
.bib-country-tag .country-flag{
  margin:0!important;
}
