@font-face {
    font-family: "FuturaRB";
    src: url("/static/fonts/FuturaforRedBull-Book.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FuturaRB";
    src: url("/static/fonts/FuturaforRedBull-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "FuturaRB";
    src: url("/static/fonts/FuturaforRedBull-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --rb-blue: #0F0069;
    --rb-blue-2: #1A0A8F;
    --rb-blue-soft: #EEF0FF;
    --rb-yellow: #FFCC00;
    --rb-red: #D2003C;
    --bg: #F5F6FA;
    --card: #FFFFFF;
    --card-soft: #FAFAFC;
    --text: #08111F;
    --muted: #6B7280;
    --line: #E2E4EA;
    --shadow: 0 14px 34px rgba(8, 17, 31, 0.075);
    --shadow-soft: 0 8px 22px rgba(8, 17, 31, 0.055);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: "FuturaRB", Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(15, 0, 105, 0.14), transparent 30rem),
        radial-gradient(circle at top left, rgba(15, 0, 105, 0.08), transparent 26rem),
        linear-gradient(180deg, #F7F8FC 0%, #F1F3F8 100%);
}
button, input { font-family: inherit; }
.app-shell { width: min(1220px, calc(100% - 32px)); margin: 0 auto; padding: 22px 0 48px; }
.brand-wrap { margin-bottom: 20px; }
.brand-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.brand-title { font-size: 38px; line-height: 0.95; font-weight: 700; letter-spacing: -0.025em; text-transform: uppercase; color: var(--text); }
.brand-subtitle { margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.13em; }
.brand-status { display: inline-flex; align-items: center; gap: 8px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--rb-blue); box-shadow: var(--shadow-soft); white-space: nowrap; }
.status-dot { width: 9px; height: 9px; background: #16A34A; border-radius: 999px; box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12); }
.top-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.nav-btn, .category-btn { border: 1px solid var(--line); background: #FFFFFF; color: var(--text); border-radius: 999px; padding: 10px 16px; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-soft); transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, color 0.14s ease; }
.nav-btn:hover, .category-btn:hover { transform: translateY(-1px); border-color: rgba(15, 0, 105, 0.28); }
.nav-btn.active, .category-btn.active { background: var(--rb-blue); color: #FFFFFF; border-color: var(--rb-blue); }
.page-panel { display: none; }
.page-panel.active { display: block; }
.page-title { font-size: 31px; font-weight: 700; margin-bottom: 6px; color: var(--text); letter-spacing: -0.03em; }
.page-subtitle { color: var(--muted); margin-bottom: 20px; font-size: 15px; font-weight: 400; }
.category-tabs { display: flex; gap: 8px; margin: 4px 0 18px; }
.ranking-table { background: rgba(255,255,255,0.98); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); }
.ranking-head { display: grid; grid-template-columns: 82px 1.5fr 90px 130px 130px 130px; gap: 12px; padding: 15px 20px; background: var(--rb-blue); border-bottom: 1px solid var(--rb-blue); color: #FFFFFF; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }
.ranking-row { display: grid; grid-template-columns: 82px 1.5fr 90px 130px 130px 130px; gap: 12px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); background: #FFFFFF; transition: background 0.2s ease; }
.ranking-row:nth-child(even) { background: #FAFAFC; }
.ranking-row:last-child { border-bottom: none; }
.ranking-row.top-three { background: linear-gradient(90deg, rgba(15,0,105,0.055), #FFFFFF 36%); }
.rank-number { font-size: 30px; font-weight: 700; color: var(--rb-blue); letter-spacing: -0.04em; }
.rank-number.gold { color: var(--rb-red); }
.rider-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.table-name { font-size: 17px; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table-small { display: none; color: var(--muted); font-size: 13px; font-weight: 500; }
.table-cell { font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.time-cell { font-size: 24px; font-weight: 700; color: var(--rb-blue); text-align: right; letter-spacing: -0.03em; }
.gender-badge { display: inline-block; padding: 6px 11px; border-radius: 999px; background: var(--rb-blue-soft); color: var(--rb-blue); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.profile-controls { display: grid; grid-template-columns: 1fr 190px; gap: 14px; align-items: end; margin-bottom: 18px; }
.search-card { position: relative; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: var(--shadow-soft); }
.search-card label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 8px; }
.search-card input { width: 100%; background: #FFFFFF; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; font-size: 16px; font-weight: 500; color: var(--text); outline: none; }
.search-card input:focus { border-color: rgba(15, 0, 105, 0.42); box-shadow: 0 0 0 4px rgba(15, 0, 105, 0.07); }
.rider-results { position: absolute; z-index: 20; left: 14px; right: 14px; top: calc(100% - 10px); background: #FFFFFF; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; display: none; }
.rider-results.open { display: block; }
.rider-result-item { width: 100%; text-align: left; border: none; background: #FFFFFF; padding: 13px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.rider-result-item:last-child { border-bottom: none; }
.rider-result-item:hover { background: var(--rb-blue-soft); }
.rider-result-name { display: block; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--text); }
.rider-result-meta { display: block; margin-top: 3px; font-size: 12px; font-weight: 500; color: var(--muted); }
.primary-action { min-height: 52px; border: 1px solid var(--rb-blue); background: var(--rb-blue); color: #FFFFFF; border-radius: 18px; padding: 12px 16px; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 16px 34px rgba(15, 0, 105, 0.22); }
.primary-action:hover { background: var(--rb-blue-2); }
.primary-action:disabled { opacity: 0.65; cursor: not-allowed; }
.profile-hero { background: linear-gradient(90deg, rgba(15,0,105,0.07), rgba(255,255,255,0) 52%), #FFFFFF; border: 1px solid var(--line); border-radius: 28px; padding: 24px; margin: 18px 0; box-shadow: var(--shadow); }
.profile-name { font-size: 33px; font-weight: 700; text-transform: uppercase; color: var(--text); letter-spacing: -0.03em; }
.profile-meta { margin-top: 6px; color: var(--muted); font-weight: 500; font-size: 15px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; }
.kpi-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; padding: 20px; min-height: 118px; box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
.kpi-card.highlight { background: linear-gradient(135deg, var(--rb-blue) 0%, #160084 100%); border: 1px solid var(--rb-blue); box-shadow: 0 18px 38px rgba(15, 0, 105, 0.22); }
.kpi-card.highlight .kpi-label { color: rgba(255,255,255,0.72); }
.kpi-card.highlight .kpi-value { color: var(--rb-yellow); }
.kpi-card:before { content: ""; position: absolute; top: 0; left: 0; width: 42px; height: 5px; background: var(--rb-blue); border-radius: 0 0 8px 0; }
.kpi-card.highlight:before { background: var(--rb-yellow); }
.kpi-label { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; }
.kpi-value { color: var(--rb-blue); font-size: 34px; font-weight: 700; margin-top: 12px; letter-spacing: -0.04em; }
.times-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.premium-card { background: rgba(255,255,255,0.96); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.card-title { padding: 17px 20px; border-bottom: 1px solid var(--line); color: var(--rb-blue); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; background: #FFFFFF; }
.time-list-row { display: grid; grid-template-columns: 60px 1fr 110px; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); align-items: center; background: #FFFFFF; }
.time-list-row:nth-child(even) { background: #FAFAFC; }
.time-list-row:last-child { border-bottom: none; }
.time-list-rank { font-weight: 700; color: var(--rb-blue); font-size: 19px; }
.time-list-meta { color: var(--muted); font-weight: 500; font-size: 14px; }
.time-list-time { color: var(--rb-blue); font-weight: 700; font-size: 22px; text-align: right; }
.info-card, .empty-state { background: #FFFFFF; border: 1px solid var(--line); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); }
.info-kicker, .empty-kicker { color: var(--rb-blue); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 10px; }
.info-title, .empty-title { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; text-transform: uppercase; margin-bottom: 8px; }
.empty-title { font-size: 28px; }
.info-text, .empty-text { color: var(--muted); font-size: 16px; font-weight: 400; line-height: 1.55; }
.info-card hr { border: none; border-top: 1px solid var(--line); margin: 20px 0; }
@media (max-width: 900px) {
    .app-shell { width: min(100% - 24px, 1220px); padding-top: 16px; }
    .brand-top { flex-direction: column; }
    .brand-title { font-size: 29px; }
    .brand-status { font-size: 11px; }
    .ranking-head { display: none; }
    .ranking-row { grid-template-columns: 62px 1fr 100px; gap: 12px; padding: 16px; }
    .hide-mobile { display: none; }
    .table-small { display: block; }
    .time-cell { font-size: 22px; }
    .profile-controls { grid-template-columns: 1fr; }
    .primary-action { width: 100%; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .times-grid { grid-template-columns: 1fr; }
}


.profile-controls-single {
    grid-template-columns: 1fr;
}

.nav-btn,
.category-btn,
.card-title,
.kpi-label,
.search-card label,
.info-kicker,
.empty-kicker,
.brand-subtitle,
.brand-status,
.rider-result-meta {
    text-transform: uppercase;
}

.nav-btn,
.category-btn,
.search-card label,
.card-title,
.kpi-label,
.info-kicker,
.empty-kicker,
.brand-status {
    letter-spacing: 0.12em;
}


/* My Times Search Block */
#page-my-times .search-card {
    background: linear-gradient(135deg, var(--rb-blue) 0%, #170083 100%);
    border-color: rgba(15, 0, 105, 0.95);
    box-shadow: 0 18px 38px rgba(15, 0, 105, 0.22);
}

#page-my-times .search-card label {
    color: rgba(255,255,255,0.74);
}

#page-my-times .search-card input {
    background: #FFFFFF;
    color: var(--text);
    border-color: rgba(255,255,255,0.95);
}

#page-my-times .search-card input::placeholder {
    color: #7A8191;
}

#page-my-times .rider-results {
    top: calc(100% + 8px);
}

/* Premium card gradients */
.premium-card,
.info-card,
.empty-state,
.profile-hero,
.search-card,
.ranking-table {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(250,251,255,0.96) 100%);
}

.kpi-card:not(.highlight) {
    background:
        linear-gradient(135deg, #FFFFFF 0%, #F8F9FE 100%);
}

.ranking-row.top-three {
    background:
        linear-gradient(90deg, rgba(15,0,105,0.07), rgba(255,255,255,0.98) 42%);
}

/* Event Info redesign */
.event-info-hero {
    background:
        radial-gradient(circle at top right, rgba(255,204,0,0.22), transparent 18rem),
        linear-gradient(135deg, var(--rb-blue) 0%, #160084 100%);
    border: 1px solid rgba(15, 0, 105, 0.85);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 20px 46px rgba(15, 0, 105, 0.24);
    color: #FFFFFF;
    overflow: hidden;
    position: relative;
}

.event-info-hero .info-kicker,
.event-info-hero .info-title,
.event-info-hero .info-text {
    color: #FFFFFF;
}

.event-info-hero .info-kicker {
    color: rgba(255,255,255,0.72);
}

.event-info-hero .info-title {
    font-size: 38px;
    line-height: 0.95;
    margin-bottom: 12px;
}

.event-info-hero .info-text {
    color: rgba(255,255,255,0.82);
    max-width: 780px;
}

.info-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.20);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.event-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 16px;
    margin-top: 16px;
}

.event-detail-card,
.program-card {
    background:
        linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,249,254,0.96) 100%);
    border: 1px solid var(--line);
    border-radius: 26px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.event-detail-card {
    padding: 22px;
}

.detail-list {
    display: grid;
    gap: 14px;
}

.detail-item {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}

.detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.detail-value {
    color: var(--text);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.program-list {
    display: grid;
}

.program-row {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,0.78);
}

.program-row:nth-child(even) {
    background: rgba(250,250,252,0.92);
}

.program-row:last-child {
    border-bottom: none;
}

.program-time {
    color: var(--rb-blue);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.program-title {
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .event-info-grid {
        grid-template-columns: 1fr;
    }

    .event-info-hero .info-title {
        font-size: 31px;
    }

    .program-row {
        grid-template-columns: 74px 1fr;
    }
}

.brand-title,
.page-title,
.info-title,
.empty-title,
.profile-name,
.table-name,
.rank-number,
.time-cell,
.kpi-value {
    font-weight: 700;
}

.nav-btn,
.category-btn,
.card-title,
.kpi-label,
.search-card label,
.brand-status,
.info-pill,
.detail-label {
    font-weight: 500;
}

.page-subtitle,
.info-text,
.empty-text,
.profile-meta,
.time-list-meta {
    font-weight: 400;
}


/* Event Info program-only layout */
.event-info-program-only {
    margin-top: 16px;
}

.event-info-program-only .program-card {
    width: 100%;
}

.event-info-hero .info-title {
    text-transform: uppercase;
}

.event-info-hero .info-text {
    display: none;
}



/* =========================================================
   MOBILE-FIRST FINAL PASS
   Rider app optimized for phone usage on event day
   ========================================================= */

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

button,
input {
    -webkit-tap-highlight-color: transparent;
}

button {
    touch-action: manipulation;
}

/* Sticky top navigation */
.app-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: calc(12px + env(safe-area-inset-top));
    padding-bottom: 10px;
    background:
        linear-gradient(180deg, rgba(245,246,250,0.96) 0%, rgba(245,246,250,0.88) 72%, rgba(245,246,250,0) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Better touch targets */
.nav-btn,
.category-btn,
.primary-action,
.rider-result-item {
    min-height: 46px;
}

.nav-btn,
.category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile result card behavior */
@media (max-width: 760px) {
    body {
        font-size: 15px;
    }

    .app-shell {
        width: 100%;
        padding-left: 14px;
        padding-right: 14px;
    }

    .app-nav {
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 14px;
        padding-right: 14px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .app-nav::-webkit-scrollbar {
        display: none;
    }

    .nav-btn {
        flex: 0 0 auto;
        min-width: auto;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 11px;
        white-space: nowrap;
    }

    .page-header {
        margin-top: 12px;
        margin-bottom: 16px;
    }

    .page-title {
        font-size: 38px;
        line-height: 0.9;
        letter-spacing: -0.055em;
    }

    .page-subtitle {
        font-size: 15px;
        line-height: 1.28;
        max-width: 310px;
    }

    .category-switch {
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .category-switch::-webkit-scrollbar {
        display: none;
    }

    .category-btn {
        min-height: 44px;
        padding: 0 15px;
        font-size: 10.5px;
        white-space: nowrap;
    }

    /* Ranking as mobile cards */
    .ranking-table {
        background: transparent;
        border: 0;
        box-shadow: none;
        display: grid;
        gap: 12px;
    }

    .ranking-head {
        display: none;
    }

    .ranking-row {
        display: grid;
        grid-template-columns: 54px 1fr auto;
        grid-template-areas:
            "rank rider time"
            "rank meta time";
        align-items: center;
        column-gap: 12px;
        min-height: 88px;
        padding: 16px;
        border: 1px solid rgba(17,24,39,0.08);
        border-radius: 24px;
        box-shadow: 0 14px 30px rgba(17,24,39,0.08);
        background:
            linear-gradient(135deg, rgba(255,255,255,0.99) 0%, rgba(248,249,254,0.96) 100%);
    }

    .ranking-row.top-three {
        background:
            radial-gradient(circle at top left, rgba(255,204,0,0.20), transparent 9rem),
            linear-gradient(135deg, rgba(255,255,255,0.99) 0%, rgba(248,249,254,0.96) 100%);
        border-color: rgba(255,204,0,0.28);
    }

    .rank-number {
        grid-area: rank;
        width: 46px;
        height: 46px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: var(--rb-blue);
        color: #FFFFFF;
        font-size: 14px;
        font-weight: 700;
        letter-spacing: -0.03em;
    }

    .rank-number.gold {
        background: var(--rb-yellow);
        color: var(--text);
    }

    .rider-main {
        grid-area: rider;
        min-width: 0;
    }

    .table-name {
        font-size: 16px;
        line-height: 1.05;
        letter-spacing: -0.025em;
        text-transform: uppercase;
        overflow-wrap: anywhere;
    }

    .table-small {
        display: block;
        margin-top: 5px;
        color: var(--muted);
        font-size: 11px;
        line-height: 1.25;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .time-cell {
        grid-area: time;
        font-size: 28px;
        line-height: 0.95;
        letter-spacing: -0.055em;
        color: var(--rb-blue);
        text-align: right;
        white-space: nowrap;
    }

    .hide-mobile {
        display: none !important;
    }

    /* My Times */
    .profile-controls,
    .profile-controls-single {
        display: block;
    }

    #page-my-times .search-card {
        padding: 18px;
        border-radius: 24px;
    }

    .search-card label {
        font-size: 10.5px;
        line-height: 1.25;
    }

    .search-card input {
        min-height: 54px;
        margin-top: 10px;
        padding: 0 16px;
        border-radius: 16px;
        font-size: 16px;
    }

    .rider-results.open {
        border-radius: 20px;
        overflow: hidden;
    }

    .rider-result-item {
        padding: 15px 16px;
    }

    .rider-result-name {
        font-size: 15px;
        line-height: 1.1;
        text-transform: uppercase;
    }

    .rider-result-meta {
        margin-top: 5px;
        font-size: 11px;
        line-height: 1.25;
    }

    .profile-hero {
        padding: 22px;
        border-radius: 26px;
    }

    .profile-name {
        font-size: 31px;
        line-height: 0.94;
        letter-spacing: -0.055em;
        text-transform: uppercase;
    }

    .profile-meta {
        margin-top: 9px;
        font-size: 12px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .kpi-card {
        min-height: 108px;
        padding: 16px;
        border-radius: 22px;
    }

    .kpi-card.highlight {
        grid-column: 1 / -1;
        min-height: 138px;
    }

    .kpi-label {
        font-size: 10px;
    }

    .kpi-value {
        font-size: 31px;
        line-height: 0.94;
        letter-spacing: -0.055em;
    }

    .kpi-card.highlight .kpi-value {
        font-size: 52px;
    }

    .times-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .premium-card {
        border-radius: 24px;
        padding: 18px;
    }

    .card-title {
        font-size: 11px;
        margin-bottom: 13px;
    }

    .time-list-row {
        min-height: 52px;
        padding: 12px 0;
        grid-template-columns: 42px 1fr auto;
    }

    .time-list-rank {
        font-size: 13px;
    }

    .time-list-meta {
        font-size: 13px;
    }

    .time-list-time {
        font-size: 21px;
        color: var(--rb-blue);
    }

    /* Event Info */
    .event-info-hero {
        padding: 24px;
        border-radius: 26px;
    }

    .event-info-hero .info-title {
        font-size: 34px;
        line-height: 0.9;
        letter-spacing: -0.055em;
        max-width: 330px;
    }

    .info-pill-row {
        gap: 8px;
        margin-top: 20px;
    }

    .info-pill {
        min-height: 34px;
        padding: 8px 10px;
        font-size: 9.5px;
        letter-spacing: 0.1em;
    }

    .event-info-program-only {
        margin-top: 12px;
    }

    .program-card {
        border-radius: 24px;
    }

    .program-row {
        grid-template-columns: 70px 1fr;
        gap: 12px;
        min-height: 62px;
        padding: 15px 17px;
    }

    .program-time {
        font-size: 20px;
    }

    .program-title {
        font-size: 14px;
        line-height: 1.15;
    }

    /* Empty states */
    .empty-state {
        padding: 24px;
        border-radius: 24px;
    }

    .empty-title {
        font-size: 27px;
        line-height: 0.95;
        letter-spacing: -0.045em;
    }

    .empty-text {
        font-size: 14px;
        line-height: 1.35;
    }
}

/* Very small iPhones */
@media (max-width: 390px) {
    .app-shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .app-nav {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .page-title {
        font-size: 34px;
    }

    .ranking-row {
        grid-template-columns: 48px 1fr;
        grid-template-areas:
            "rank rider"
            "rank time";
        row-gap: 8px;
    }

    .time-cell {
        text-align: left;
        font-size: 31px;
    }

    .kpi-card.highlight .kpi-value {
        font-size: 46px;
    }

    .event-info-hero .info-title {
        font-size: 30px;
    }

    .program-row {
        grid-template-columns: 62px 1fr;
    }
}

/* Desktop should remain clean */
@media (min-width: 761px) {
    .app-nav {
        top: 0;
    }

    .table-small {
        display: none;
    }
}



/* =========================================================
   MY TIMES RANK + MOBILE TIME SWITCH
   ========================================================= */

.mobile-times-switch {
    display: none;
}

.times-panel {
    min-width: 0;
}

/* Best rank label should stay readable even with category suffix */
.kpi-label {
    white-space: normal;
}

@media (max-width: 760px) {
    .mobile-times-switch {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 12px 0;
        padding: 5px;
        border-radius: 999px;
        background: rgba(15, 0, 105, 0.08);
        border: 1px solid rgba(15, 0, 105, 0.10);
    }

    .mobile-times-tab {
        min-height: 44px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: var(--rb-blue);
        font-family: "FuturaRB", Arial, Helvetica, sans-serif;
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.13em;
        text-transform: uppercase;
        cursor: pointer;
    }

    .mobile-times-tab.active {
        background: var(--rb-blue);
        color: #FFFFFF;
        box-shadow: 0 8px 18px rgba(15, 0, 105, 0.18);
    }

    .times-grid {
        display: block;
    }

    .times-grid .times-panel {
        display: none;
    }

    .times-grid.show-fastest .times-panel-fastest {
        display: block;
    }

    .times-grid.show-latest .times-panel-latest {
        display: block;
    }

    .times-panel .premium-card {
        margin: 0;
    }
}

@media (min-width: 761px) {
    .times-grid {
        display: grid;
    }

    .times-panel {
        display: block;
    }
}



/* Latest/Fastest Runs label refinements */
@media (max-width: 760px) {
    .mobile-times-tab {
        font-size: 10.5px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .time-list-rank {
        text-transform: uppercase;
        white-space: nowrap;
    }
}



/* =========================================================
   LIVE SCREEN ALL RANKINGS
   16:9 and 9:16 optimized
   ========================================================= */

.live-screen-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(255,204,0,0.22), transparent 28rem),
        radial-gradient(circle at bottom right, rgba(15,0,105,0.18), transparent 32rem),
        linear-gradient(135deg, #F4F6FB 0%, #FFFFFF 100%);
    overflow: hidden;
}

.live-screen-shell.live-screen-all {
    width: 100vw;
    height: 100vh;
    padding: clamp(20px, 2.2vw, 42px);
    box-sizing: border-box;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: clamp(16px, 1.6vw, 28px);
}

.live-all-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: start;
    gap: clamp(16px, 1.6vw, 28px);
}

.live-kicker,
.live-section-kicker,
.live-status-label,
.live-qr-label,
.live-board-count {
    font-size: clamp(10px, 0.75vw, 15px);
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rb-blue);
}

.live-title {
    margin-top: 5px;
    font-size: clamp(46px, 6vw, 100px);
    line-height: 0.82;
    letter-spacing: -0.075em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
}

.live-subtitle {
    margin-top: 10px;
    font-size: clamp(14px, 1.25vw, 25px);
    line-height: 1;
    letter-spacing: -0.035em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--rb-blue);
}

.live-status-card {
    min-width: 220px;
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(255,255,255,0.84);
    border: 1px solid rgba(17,24,39,0.08);
    box-shadow: 0 18px 42px rgba(17,24,39,0.08);
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-status-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #16A34A;
    box-shadow: 0 0 0 8px rgba(22,163,74,0.12);
}

.live-status-dot.offline {
    background: var(--rb-red);
    box-shadow: 0 0 0 8px rgba(210,0,60,0.12);
}

.live-status-text {
    margin-top: 2px;
    font-size: clamp(12px, 0.9vw, 17px);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
}

.live-qr-card {
    min-width: clamp(280px, 23vw, 430px);
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 30px;
    background:
        linear-gradient(135deg, var(--rb-blue) 0%, #170083 100%);
    border: 1px solid rgba(15,0,105,0.8);
    box-shadow: 0 22px 52px rgba(15,0,105,0.20);
    color: #FFFFFF;
}

.live-qr-label {
    color: rgba(255,255,255,0.72);
}

.live-qr-title {
    margin-top: 4px;
    font-size: clamp(21px, 2vw, 38px);
    line-height: 0.88;
    letter-spacing: -0.055em;
    font-weight: 700;
    text-transform: uppercase;
    color: #FFFFFF;
}

.live-qr-placeholder {
    width: clamp(74px, 6vw, 116px);
    height: clamp(74px, 6vw, 116px);
    border-radius: 18px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.live-qr-box {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background:
        linear-gradient(90deg, var(--text) 12%, transparent 12% 24%, var(--text) 24% 36%, transparent 36% 48%, var(--text) 48% 60%, transparent 60% 72%, var(--text) 72% 84%, transparent 84%),
        linear-gradient(var(--text) 12%, transparent 12% 24%, var(--text) 24% 36%, transparent 36% 48%, var(--text) 48% 60%, transparent 60% 72%, var(--text) 72% 84%, transparent 84%);
    background-size: 18px 18px;
    color: transparent;
}

.live-all-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: clamp(14px, 1.35vw, 24px);
}

.live-board-card {
    min-height: 0;
    border-radius: clamp(26px, 2.2vw, 40px);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,249,254,0.95) 100%);
    border: 1px solid rgba(17,24,39,0.08);
    box-shadow: 0 22px 54px rgba(17,24,39,0.10);
    padding: clamp(18px, 1.7vw, 32px);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: clamp(12px, 1.1vw, 20px);
}

.live-board-latest {
    background:
        radial-gradient(circle at top right, rgba(255,204,0,0.22), transparent 16rem),
        linear-gradient(135deg, rgba(15,0,105,0.98) 0%, rgba(23,0,131,0.96) 100%);
    color: #FFFFFF;
    border-color: rgba(15,0,105,0.8);
}

.live-board-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.live-board-title {
    margin-top: 4px;
    font-size: clamp(38px, 4.3vw, 82px);
    line-height: 0.82;
    letter-spacing: -0.075em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
}

.live-board-latest .live-section-kicker,
.live-board-latest .live-board-count {
    color: rgba(255,255,255,0.68);
}

.live-board-latest .live-board-title {
    color: #FFFFFF;
}

.live-board-count {
    padding-top: 4px;
    color: var(--muted);
    white-space: nowrap;
}

.live-board-list,
.live-latest-list {
    min-height: 0;
    display: grid;
    align-content: start;
    gap: clamp(8px, 0.75vw, 13px);
    overflow: hidden;
}

.live-board-row {
    min-height: clamp(56px, 6.4vh, 86px);
    display: grid;
    grid-template-columns: clamp(42px, 3.3vw, 64px) 1fr auto;
    align-items: center;
    gap: clamp(10px, 0.9vw, 16px);
    padding: clamp(10px, 0.9vw, 15px);
    border-radius: clamp(16px, 1.25vw, 23px);
    background: rgba(255,255,255,0.82);
    border: 1px solid rgba(17,24,39,0.06);
}

.live-board-rank {
    width: clamp(38px, 3vw, 56px);
    height: clamp(38px, 3vw, 56px);
    border-radius: 999px;
    background: var(--rb-blue);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(13px, 1vw, 18px);
    font-weight: 700;
}

.live-board-row:first-child .live-board-rank {
    background: var(--rb-yellow);
    color: var(--text);
}

.live-board-rider {
    min-width: 0;
}

.live-board-name {
    font-size: clamp(15px, 1.18vw, 24px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text);
    overflow-wrap: anywhere;
}

.live-board-meta {
    margin-top: 5px;
    font-size: clamp(10px, 0.75vw, 14px);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.live-board-time {
    font-size: clamp(22px, 1.9vw, 38px);
    line-height: 0.9;
    letter-spacing: -0.055em;
    font-weight: 700;
    color: var(--rb-blue);
    white-space: nowrap;
}

.live-latest-row {
    min-height: clamp(55px, 6vh, 80px);
    display: grid;
    grid-template-columns: clamp(72px, 5.4vw, 105px) 1fr auto;
    align-items: center;
    gap: clamp(10px, 0.9vw, 16px);
    padding: clamp(10px, 0.9vw, 15px);
    border-radius: clamp(16px, 1.25vw, 23px);
    background: rgba(255,255,255,0.11);
    border: 1px solid rgba(255,255,255,0.14);
}

.live-latest-badge {
    min-height: clamp(36px, 3vw, 52px);
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    color: #FFFFFF;
    font-size: clamp(10px, 0.78vw, 14px);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.live-latest-rider {
    min-width: 0;
}

.live-latest-name {
    font-size: clamp(15px, 1.15vw, 23px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 700;
    text-transform: uppercase;
    color: #FFFFFF;
    overflow-wrap: anywhere;
}

.live-latest-meta {
    margin-top: 5px;
    font-size: clamp(10px, 0.75vw, 14px);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.62);
}

.live-latest-time {
    font-size: clamp(22px, 1.85vw, 36px);
    line-height: 0.9;
    letter-spacing: -0.055em;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
}

.live-empty {
    padding: 28px;
    border-radius: 24px;
    background: rgba(255,255,255,0.72);
    color: var(--muted);
    font-size: clamp(13px, 1vw, 18px);
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}

.live-board-latest .live-empty {
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.72);
}

/* 16:9 and wider */
@media (orientation: landscape) and (min-aspect-ratio: 16/10) {
    .live-screen-shell.live-screen-all {
        gap: clamp(12px, 1.1vw, 22px);
    }

    .live-all-header {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .live-all-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(330px, 0.86fr);
    }
}

/* 9:16 portrait screens */
@media (orientation: portrait) {
    .live-screen-shell.live-screen-all {
        padding: clamp(22px, 4vw, 50px);
        gap: clamp(16px, 2.4vw, 34px);
    }

    .live-all-header {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .live-title {
        font-size: clamp(62px, 11.5vw, 136px);
    }

    .live-subtitle {
        max-width: 760px;
        font-size: clamp(19px, 2.8vw, 40px);
    }

    .live-qr-card {
        width: min(100%, 760px);
        min-width: 0;
    }

    .live-all-status {
        justify-self: start;
    }

    .live-all-grid {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.92fr);
    }

    .live-board-title {
        font-size: clamp(48px, 8vw, 102px);
    }

    .live-board-row,
    .live-latest-row {
        min-height: clamp(70px, 6.8vh, 104px);
    }

    .live-board-name,
    .live-latest-name {
        font-size: clamp(22px, 3vw, 38px);
    }

    .live-board-time,
    .live-latest-time {
        font-size: clamp(30px, 4.2vw, 58px);
    }

    .live-board-meta,
    .live-latest-meta {
        font-size: clamp(12px, 1.5vw, 20px);
    }

    .live-board-list,
    .live-latest-list {
        gap: 12px;
    }
}

/* Smaller preview windows */
@media (max-width: 980px) {
    .live-screen-body {
        overflow: auto;
    }

    .live-screen-shell.live-screen-all {
        min-height: 100vh;
        height: auto;
    }

    .live-all-header,
    .live-all-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================================================
   LIVE SCREEN COMPACT 10-ROW MODE
   Designed so MEN / WOMEN / LATEST RUNS can show 10 rows
   ========================================================= */

.live-screen-shell.live-screen-all {
    padding: clamp(14px, 1.45vw, 28px);
    gap: clamp(10px, 1vw, 18px);
}

.live-all-header {
    align-items: center;
    gap: clamp(10px, 1vw, 18px);
}

.live-title {
    font-size: clamp(34px, 4.1vw, 72px);
    line-height: 0.82;
}

.live-subtitle {
    margin-top: 7px;
    font-size: clamp(12px, 0.95vw, 19px);
}

.live-kicker,
.live-section-kicker,
.live-status-label,
.live-qr-label,
.live-board-count {
    font-size: clamp(9px, 0.62vw, 12px);
}

.live-qr-card {
    min-width: clamp(240px, 19vw, 340px);
    padding: clamp(10px, 0.9vw, 14px);
    border-radius: 24px;
    gap: 12px;
}

.live-qr-title {
    font-size: clamp(17px, 1.45vw, 28px);
}

.live-qr-placeholder {
    width: clamp(58px, 4.7vw, 88px);
    height: clamp(58px, 4.7vw, 88px);
    border-radius: 14px;
}

.live-status-card {
    min-width: 190px;
    padding: 11px 15px;
}

.live-status-text {
    font-size: clamp(11px, 0.75vw, 14px);
}

.live-all-grid {
    gap: clamp(9px, 0.9vw, 16px);
}

.live-board-card {
    padding: clamp(12px, 1vw, 20px);
    border-radius: clamp(20px, 1.55vw, 30px);
    gap: clamp(8px, 0.65vw, 12px);
}

.live-board-title {
    font-size: clamp(28px, 3vw, 56px);
    line-height: 0.82;
}

.live-board-header {
    gap: 10px;
}

.live-board-list,
.live-latest-list {
    gap: clamp(4px, 0.42vw, 7px);
}

.live-board-row {
    min-height: clamp(39px, 4.95vh, 58px);
    grid-template-columns: clamp(32px, 2.45vw, 44px) 1fr auto;
    gap: clamp(7px, 0.62vw, 11px);
    padding: clamp(6px, 0.55vw, 9px);
    border-radius: clamp(12px, 0.9vw, 17px);
}

.live-board-rank {
    width: clamp(30px, 2.25vw, 40px);
    height: clamp(30px, 2.25vw, 40px);
    font-size: clamp(10px, 0.72vw, 14px);
}

.live-board-name {
    font-size: clamp(11px, 0.92vw, 17px);
    line-height: 0.98;
}

.live-board-meta {
    margin-top: 3px;
    font-size: clamp(8px, 0.56vw, 10px);
}

.live-board-time {
    font-size: clamp(16px, 1.38vw, 27px);
}

.live-latest-row {
    min-height: clamp(39px, 4.95vh, 58px);
    grid-template-columns: clamp(58px, 4.4vw, 82px) 1fr auto;
    gap: clamp(7px, 0.62vw, 11px);
    padding: clamp(6px, 0.55vw, 9px);
    border-radius: clamp(12px, 0.9vw, 17px);
}

.live-latest-badge {
    min-height: clamp(28px, 2.15vw, 38px);
    padding: 0 8px;
    font-size: clamp(8px, 0.56vw, 10px);
}

.live-latest-name {
    font-size: clamp(11px, 0.9vw, 17px);
    line-height: 0.98;
}

.live-latest-meta {
    margin-top: 3px;
    font-size: clamp(8px, 0.56vw, 10px);
}

.live-latest-time {
    font-size: clamp(16px, 1.35vw, 26px);
}

/* Compact portrait: still keep 10 rows possible by reducing header/card sizes */
@media (orientation: portrait) {
    .live-screen-shell.live-screen-all {
        padding: clamp(14px, 2.7vw, 34px);
        gap: clamp(10px, 1.6vw, 22px);
    }

    .live-title {
        font-size: clamp(42px, 7.4vw, 88px);
    }

    .live-subtitle {
        font-size: clamp(14px, 1.8vw, 26px);
    }

    .live-qr-card {
        width: min(100%, 640px);
    }

    .live-all-grid {
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
        gap: clamp(9px, 1.2vw, 18px);
    }

    .live-board-card {
        padding: clamp(12px, 1.8vw, 22px);
    }

    .live-board-title {
        font-size: clamp(34px, 5.6vw, 72px);
    }

    .live-board-row,
    .live-latest-row {
        min-height: clamp(42px, 4.25vh, 64px);
    }

    .live-board-name,
    .live-latest-name {
        font-size: clamp(13px, 1.85vw, 23px);
    }

    .live-board-time,
    .live-latest-time {
        font-size: clamp(18px, 2.35vw, 31px);
    }

    .live-board-meta,
    .live-latest-meta {
        font-size: clamp(8px, 0.95vw, 13px);
    }
}


/* =========================================================
   EVENT NEWS & ALERTS
   ========================================================= */

.global-alert-host {
    position: sticky;
    top: 0;
    z-index: 200;
    display: none;
    width: 100%;
    padding: max(10px, env(safe-area-inset-top)) 14px 0;
    box-sizing: border-box;
}

.global-alert-host.visible {
    display: block;
}

.global-alert {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 22px;
    color: #FFFFFF;
    box-shadow: 0 18px 42px rgba(8, 17, 31, 0.22);
    border: 1px solid rgba(255,255,255,0.20);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.global-alert-info {
    background: linear-gradient(135deg, rgba(15,0,105,0.97), rgba(27,9,145,0.97));
}

.global-alert-important {
    background: linear-gradient(135deg, #E45A00, #C23A00);
}

.global-alert-critical {
    background: linear-gradient(135deg, #D2003C, #8E0029);
}

.global-alert-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.16);
    color: #FFFFFF;
    font-size: 21px;
    font-weight: 700;
}

.global-alert-kicker {
    color: rgba(255,255,255,0.68);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.global-alert-title {
    margin-top: 2px;
    color: #FFFFFF;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
}

.global-alert-text {
    margin-top: 5px;
    color: rgba(255,255,255,0.84);
    font-size: 13px;
    line-height: 1.25;
    font-weight: 400;
}

.global-alert-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.global-alert-details,
.global-alert-close {
    min-height: 42px;
    border: 1px solid rgba(255,255,255,0.24);
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #FFFFFF;
    font-family: "FuturaRB", Arial, Helvetica, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
}

.global-alert-details {
    padding: 0 15px;
    font-size: 10px;
    letter-spacing: 0.12em;
}

.global-alert-close {
    width: 42px;
    padding: 0;
    font-size: 22px;
}

.nav-btn-news {
    position: relative;
}

.news-nav-badge {
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--rb-red);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.09em;
    margin-left: 6px;
    text-transform: uppercase;
}

.news-section {
    margin-top: 16px;
    padding: 22px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(248,249,254,0.96));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

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

.news-section-subtitle {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.news-count {
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--rb-blue);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.news-list {
    display: grid;
    gap: 11px;
}

.news-card {
    padding: 17px;
    border-radius: 20px;
    border: 1px solid rgba(17,24,39,0.08);
    background: #FFFFFF;
}

.news-card-important {
    border-left: 6px solid #E45A00;
}

.news-card-critical {
    border-left: 6px solid var(--rb-red);
    background: linear-gradient(135deg, rgba(210,0,60,0.06), #FFFFFF 48%);
}

.news-card-info {
    border-left: 6px solid var(--rb-blue);
}

.news-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-priority,
.news-mode {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.news-priority {
    background: var(--rb-blue);
    color: #FFFFFF;
}

.news-card-critical .news-priority {
    background: var(--rb-red);
}

.news-card-important .news-priority {
    background: #E45A00;
}

.news-mode {
    background: #F1F2F6;
    color: var(--muted);
}

.news-title {
    margin-top: 12px;
    color: var(--text);
    font-size: 21px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
}

.news-body {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.42;
    white-space: pre-wrap;
}

.news-empty {
    padding: 18px;
    border-radius: 17px;
    background: #F5F6FA;
    color: var(--muted);
    font-size: 13px;
}

@media (max-width: 760px) {
    .global-alert-host {
        padding-left: 10px;
        padding-right: 10px;
    }

    .global-alert {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 10px;
        padding: 13px;
        border-radius: 20px;
    }

    .global-alert-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .global-alert-title {
        font-size: 16px;
    }

    .global-alert-text {
        font-size: 12px;
    }

    .global-alert-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .global-alert-details {
        flex: 1;
    }

    .news-section {
        padding: 17px;
        border-radius: 23px;
    }

    .news-title {
        font-size: 18px;
    }
}


/* =========================================================
   EVENT INFO PROGRAM / NEWS SWITCH
   ========================================================= */

.event-info-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-top: 16px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(15, 0, 105, 0.08);
    border: 1px solid rgba(15, 0, 105, 0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.event-info-tab {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--rb-blue);
    font-family: "FuturaRB", Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.event-info-tab:hover {
    transform: translateY(-1px);
}

.event-info-tab.active {
    background: var(--rb-blue);
    color: #FFFFFF;
    box-shadow: 0 10px 22px rgba(15, 0, 105, 0.22);
}

.event-info-tab-panel {
    margin-top: 12px;
}

.event-info-tab-panel[hidden] {
    display: none !important;
}

.event-info-tab-panel .event-info-program-only,
.event-info-tab-panel .news-section {
    margin-top: 0;
}

@media (max-width: 760px) {
    .event-info-switch {
        margin-top: 12px;
    }

    .event-info-tab {
        min-height: 44px;
        font-size: 10.5px;
    }

    .event-info-tab-panel {
        margin-top: 10px;
    }
}
