/* =================================================
   Road2Race – Global Styles
================================================= */

/* ------------------------------
   TYPEFACES
------------------------------ */

@import url('https://fonts.googleapis.com/css2?family=BBH+Bartle&family=Encode+Sans+Expanded:wght@100;200;300;400;500;600;700;800;900&display=swap');


/* ------------------------------
   THEME VARIABLES
------------------------------ */

:root[data-theme="light"] {
    --bg-main: #f6f7f9;
    --bg-navbar: rgba(255,255,255,0.75);

    --card-bg: rgba(255,255,255,0.80);
    --card-border: rgba(0,0,0,0.08);
    --card-shadow: 0 20px 40px rgba(0,0,0,0.12);

    --text-main: #111111;
    --text-muted: #5f6368;
    --text-soft: #8a8f94;

    --accent-main: #111111;
    --accent-soft: rgba(0,0,0,0.15);

    --input-bg: rgba(255,255,255,0.90);
    --input-border: rgba(0,0,0,0.25);
}

:root[data-theme="dark"] {
    --bg-main: #0b0c0f;
    --bg-navbar: rgba(0,0,0,0.65);

    --card-bg: rgba(255,255,255,0.08);
    --card-border: rgba(255,255,255,0.12);
    --card-shadow: 0 30px 60px rgba(0,0,0,0.65);

    --text-main: #ffffff;
    --text-muted: rgba(255,255,255,0.65);
    --text-soft: rgba(255,255,255,0.45);

    --accent-main: #ffffff;
    --accent-soft: rgba(255,255,255,0.25);

    --input-bg: rgba(0,0,0,0.6);
    --input-border: rgba(255,255,255,0.22);
}

/* ------------------------------
   RESET & BASE
------------------------------ */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(
            rgba(0,0,0,0.35),
            rgba(0,0,0,0.35)
        ),
        url('../img/bg-r2r.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--bg-main);

    color: var(--text-main);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

/* ------------------------------
   LAYOUT
------------------------------ */

.test-mode-banner {
    margin: 16px auto 22px;
    max-width: 980px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(24, 0, 173, 0.08);
    border: 1px solid rgba(24, 0, 173, 0.18);
    color: var(--text-main);
    font-size: 0.88rem;
    line-height: 1.35;
}

.test-mode-banner strong {
    display: block;
    margin-bottom: 4px;
    color: #1800AD;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 20px 64px;
}

/* ------------------------------
   TYPOGRAPHY
------------------------------ */

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* ------------------------------
   NAVBAR
------------------------------ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: var(--bg-navbar);
    border-bottom: 1px solid var(--card-border);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left {
    flex: 1;
}

.nav-center {
    flex: 2;
    display: flex;
    justify-content: center;
    gap: 28px;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    gap: 14px;
}

.nav-logo {
    font-family: "Encode Sans Expanded", sans-serif;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.9rem;
    /*letter-spacing: 0.14em;*/
    color: var(--text-main);
}

.nav-item {
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-item:hover {
    color: var(--text-main);
}

.nav-lang {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--text-soft);
}

.nav-lang.active {
    color: var(--text-main);
}

/* Sponsors Strip */

.sponsors-strip {
    width: 100%;
    padding: 12px 0;
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sponsors-track {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.sponsors-track img {
    height: 26px;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.sponsors-track img:hover {
    opacity: 1;
    transform: scale(1.05);
}


/* ------------------------------
   CARD
------------------------------ */

.card {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 30px;
    box-shadow: var(--card-shadow);
    background: rgba(255, 255, 255, 0.65);
}

/* ------------------------------
   CLUB
------------------------------ */

.club-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.club-flag {
    font-size: 1.5rem;
    line-height: 1;
}

.club-country {
    margin-top: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.club-subtitle {
    margin-top: 4px;
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 520px;
}

/* ------------------------------
   COUNTER & PROGRESS
------------------------------ */

.counter {
    display: flex;
    gap: 14px;
    align-items: baseline;
}

.counter strong {
    font-size: 2.4rem;
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--accent-soft);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 12px;
}

.progress-fill {
    height: 100%;
    background: var(--accent-main);
    transition: width 0.4s ease;
}

/* ------------------------------
   CTA
------------------------------ */

.cta {
    margin-top: 42px;
    text-align: center;
}

.cta a {
    display: inline-block;
    padding: 16px 48px;
    border-radius: 999px;
    background: var(--accent-main);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

/* ------------------------------
   FORMS
------------------------------ */

form input {
    width: 100%;
    padding: 15px 18px;
    border-radius: 14px;
    border: 1px solid var(--input-border);
    background: var(--input-bg);
    color: var(--text-main);
    margin-bottom: 14px;
    font-size: 0.95rem;
}

form button {
    width: 100%;
    padding: 16px;
    border-radius: 999px;
    border: none;
    background: var(--accent-main);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

/* FIX SELECT STYLE */
select.input {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    background-color: rgba(255,255,255,0.9);
    font-size: 16px;
    font-family: inherit;
    color: #111;
    outline: none;

    /* clave */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* para que no quede feo */
    line-height: 1.4;
}

/* arrow custom (opcional pero recomendado) */
select.input {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7L10 12L15 7' stroke='%23666' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}
/* ------------------------------
   FEEDBACK
------------------------------ */

.success {
    color: var(--text-main);
    margin-top: 12px;
}

.error {
    color: #c0392b;
    margin-top: 12px;
}

.dashboard-message {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
}

.success-message {
    background: rgba(34, 197, 94, 0.08);
    color: #15803d;
}

.error-message {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
}

/* ------------------------------
   LEADERBOARD
------------------------------ */

/* EVENT LOGO - unified size */
.event-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
}

/* opcional: responsive */
@media (max-width: 768px) {
    .event-logo {
        height: 56px;
    }
}

.leaderboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.leaderboard-subtitle {
    margin-top: 6px;
    color: var(--text-muted);
}

.period-switch a {
    margin-left: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    background: #f2f2f2;
    font-weight: 500;
}

.period-switch a.active {
    background: #111;
    color: #fff;
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}

.leaderboard-table th,
.leaderboard-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e5e5e5;
    text-align: left;
}

.leaderboard-table tbody tr:hover {
    background: rgba(0,0,0,0.03);
}

.row-light {
    background: rgba(255,255,255,0.6);
}

.row-dark {
    background: rgba(0,0,0,0.04);
}

.club-link {
    font-weight: 600;
    text-decoration: none;
    color: #111;
}

/* ------------------------------
   DASHBOARD
------------------------------ */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
}

.dashboard-subtitle {
    margin-top: 6px;
    color: var(--text-muted);
}

.dashboard-link-btn {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
}

.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.dashboard-stat-card,
.dashboard-step {
    border-radius: 16px;
    padding: 18px;
}

.stat-light {
    background: rgba(255,255,255,0.6);
}

.stat-dark {
    background: rgba(0,0,0,0.04);
}

.dashboard-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.dashboard-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
}

.dashboard-section {
    margin-top: 30px;
}

.dashboard-helper {
    margin-top: 6px;
    margin-bottom: 14px;
    color: var(--text-muted);
}

.dashboard-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.dashboard-form input {
    flex: 1;
    min-width: 220px;
}

.dashboard-form button {
    width: auto;
    min-width: 150px;
    padding: 15px 20px;
}

.dashboard-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
}

.dashboard-step-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.dashboard-step-text {
    color: var(--text-muted);
    font-size: 14px;
}

.dashboard-footer-links {
    margin-top: 34px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.dashboard-footer-links a {
    font-size: 14px;
    color: var(--text-main);
    text-decoration: underline;
}

/* ------------------------------
   DASHBOARD ATHLETES
------------------------------ */

.dashboard-athletes-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}

.dashboard-athletes-row {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.8fr 0.8fr;
    gap: 12px;
    align-items: center;
    border-radius: 14px;
    padding: 14px 16px;
}

.dashboard-athletes-head {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    background: transparent;
    padding-left: 4px;
    padding-right: 4px;
}

.dashboard-empty {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(0,0,0,0.04);
    color: var(--text-muted);
}

.status-pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status-connected {
    background: rgba(34, 197, 94, 0.10);
    color: #15803d;
}

.status-pending {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}

.athlete-header {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 22px;
}

.athlete-avatar {
    width: 104px;
    height: 104px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 700;
    color: #555;
    flex-shrink: 0;
}

.athlete-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.athlete-info h1 {
    margin: 0;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */

@media (max-width: 900px) {
    .nav-center {
        display: none;
    }

    .dashboard-athletes-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dashboard-athletes-head {
        display: none;
    }
}

@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-form {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-form button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .card {
        padding: 28px;
    }

    h1 {
        font-size: 1.8rem;
    }
}

.r2r-footer {
    margin-top: 60px;
    padding: 40px 20px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
}

.r2r-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.r2r-footer-brand img {
    height: 26px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.r2r-footer-links {
    margin-bottom: 10px;
}

.r2r-footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
    font-size: 13px;
}

.r2r-footer-links a:hover {
    color: #fff;
}

.r2r-footer-copy {
    font-size: 12px;
    color: #777;
}
/* ------------------------------
   GLOBAL LEADERBOARD
------------------------------ */

.global-leaderboard-container {
    max-width: 1180px;
}

.global-leaderboard-card {
    padding: 34px;
}

.global-leaderboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.global-leaderboard-kicker {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #444;
}

.global-leaderboard-intro {
    max-width: 720px;
    color: var(--text-muted);
}

.global-leaderboard-profile-pill {
    display: inline-block;
    padding: 9px 14px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.global-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 26px;
}

.global-summary-card {
    border-radius: 16px;
    padding: 16px;
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--card-border);
}

.global-summary-card span {
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.global-summary-card strong {
    display: block;
    color: var(--text-main);
    font-size: 26px;
    line-height: 1;
}

.global-filters-panel {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,0.48);
    border: 1px solid var(--card-border);
}

.global-filter-group > span {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.global-filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.global-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    color: #333;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.global-filter-chip:hover,
.global-filter-chip.is-active {
    background: #111;
    color: #fff;
}

.global-athlete-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.global-athlete-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px 340px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.52);
    border: 1px solid var(--card-border);
}

.global-athlete-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.global-athlete-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    flex: 0 0 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.08);
    color: #444;
    font-size: 16px;
    font-weight: 900;
}

.global-athlete-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.global-athlete-copy {
    min-width: 0;
}

.global-athlete-copy h2 {
    margin: 0;
    color: var(--text-main);
    font-size: 18px;
    line-height: 1.2;
}

.global-athlete-copy p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.global-inline-rank {
    color: #444444;
    font-weight: 900;
    margin-right: 6px;
}

.global-athlete-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.global-athlete-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0,0,0,0.06);
    color: #444;
    font-size: 11px;
    font-weight: 700;
}

.global-athlete-score {
    text-align: right;
}

.global-athlete-score strong {
    display: block;
    font-size: 28px;
    line-height: 1;
    color: var(--text-main);
}

.global-athlete-score span {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.global-athlete-details {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.global-athlete-details div {
    padding: 9px;
    border-radius: 12px;
    background: rgba(0,0,0,0.04);
    text-align: center;
}

.global-athlete-details strong {
    display: block;
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.15;
}

.global-athlete-details span {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.global-last-activity {
    grid-column: span 1;
}

@media (max-width: 980px) {
    .global-athlete-card {
        grid-template-columns: 1fr;
    }

    .global-athlete-score {
        text-align: left;
    }

    .global-athlete-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .global-leaderboard-hero {
        flex-direction: column;
    }

    .global-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .global-leaderboard-card {
        padding: 22px;
    }

    .global-summary-grid,
    .global-athlete-details {
        grid-template-columns: 1fr;
    }
}

/* Suite Sponsors — Desktop */
.leaderboard-brand-sponsors-row {
    display: grid;
    grid-template-columns: minmax(280px, 460px) 1fr;
    align-items: center;
    gap: 36px;
    width: 100%;
    margin-top: 28px;
}

.leaderboard-brand-left {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    min-width: 0;
}

.leaderboard-brand-left .competition-logo img {
    display: block;
    max-width: 260px;
    max-height: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.leaderboard-brand-left h1 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.05;
    color: rgba(10, 10, 12, 0.96);
}

.leaderboard-sponsors-right {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

.r2r-sponsors-strip {
    position: relative;
    z-index: 4;
    width: 100%;
    margin: 0;
    padding: 0;
}

.r2r-sponsors-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    width: 100%;
    text-align: center;
}

.r2r-sponsor-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 12px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
    text-align: center;
}

.r2r-sponsor-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    text-align: center;
}

.r2r-sponsor-logo {
    display: block;
    max-width: 110px;
    max-height: 34px;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* fallback si no hay logo */
.r2r-sponsor-name {
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.15;
    color: rgba(15, 23, 42, 0.84);
    white-space: nowrap;
    text-align: center;
}

/* Tablet / mobile */
@media (max-width: 900px) {
    .leaderboard-brand-sponsors-row {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 24px;
    }

    .leaderboard-brand-left {
        justify-content: flex-start;
    }

    .leaderboard-sponsors-right {
        justify-content: center;
        width: 100%;
    }

    .r2r-sponsors-list {
        justify-content: center;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .leaderboard-brand-sponsors-row {
        gap: 18px;
        margin-top: 22px;
    }

    .leaderboard-brand-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .leaderboard-brand-left .competition-logo img {
        max-width: 240px;
        max-height: 130px;
    }

    .leaderboard-brand-left h1 {
        font-size: 30px;
    }

    .r2r-sponsors-list {
        gap: 10px;
    }

    .r2r-sponsor-card {
        min-height: 46px;
        padding: 8px 12px;
        border-radius: 14px;
        max-width: 120px;
    }

    .r2r-sponsor-logo {
        max-width: 84px !important;
        max-height: 28px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
    }
}

/* Small mobile */
@media (max-width: 420px) {
    .r2r-sponsors-list {
        gap: 8px;
    }

    .r2r-sponsor-card {
        max-width: 104px;
        min-height: 44px;
        padding: 7px 10px;
        border-radius: 13px;
    }

    .r2r-sponsor-logo {
        max-width: 74px !important;
        max-height: 24px !important;
    }

    .r2r-sponsor-link {
        max-width: 100%;
    }
}