/* ============================================================
   ROOT VARIABLES + GLOBAL RESET
   ============================================================ */
:root {
    --masters-green: #0b6623;
    --text-dark: #222;
    --text-light: #555;
    --bg-light: #f7f7f7;

    --radius-card: 8px;
    --radius-pill: 999px;

    --shadow-soft: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-medium: 0 4px 10px rgba(0,0,0,0.18);
    --shadow-card: 0 2px 6px rgba(0,0,0,0.15);
}

/* ============================================================
   2026 APP POLISH LAYER
   ============================================================ */

body {
    background: #d7e2d4;
    color: #18251d;
}

a {
    color: #155d42;
}

.card,
.event-card,
.team-card,
.match-card,
.standing-card,
.schedule-card,
.week-card,
.live-session-card,
.event-body,
.week-body {
    border-radius: 8px !important;
    border: 1px solid #c7d5c4 !important;
    box-shadow: 0 3px 10px rgba(18, 48, 34, 0.14) !important;
    background: #ffffff;
}

.card h2,
.card h3,
.team-card h2,
.team-card h3,
.event-card h2,
.event-card h3 {
    color: #152b20;
}

.btn-small,
.pill-btn,
.team-card a,
.event-card a,
.match-card a {
    border-radius: 8px !important;
    box-shadow: none !important;
}

.btn-enter,
.btn-view,
.pill-success {
    background: #197650 !important;
    border-color: #197650 !important;
    color: #ffffff !important;
}

.btn-enter:hover,
.btn-view:hover,
.pill-success:hover {
    background: #135f40 !important;
    transform: none !important;
}

.match-card:hover,
.team-card:hover,
.event-card:hover,
.standing-card:hover {
    transform: none !important;
    box-shadow: 0 5px 14px rgba(18, 48, 34, 0.18) !important;
}

.match-card {
    border-left-width: 4px !important;
}

.match-card.locked,
.match-card.rainout {
    border-left-width: 4px !important;
}

.score-night-date,
.badge,
.standing-rank,
.position-badge {
    border-radius: 8px !important;
}

.schedule-header,
.week-header,
.event-header {
    border-radius: 8px 8px 0 0 !important;
    background: #123c31 !important;
}

table.table,
.card table:not(.gps-grid),
.event-body table,
.page-wrapper > table {
    border-radius: 8px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    font-family: system-ui, sans-serif;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    max-width: 100%;
    overflow-x: hidden;
}

img,
svg,
video {
    max-width: 100%;
}

/* ============================================================
   CARD COMPONENTS
   ============================================================ */
.card {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 18px 22px;
    box-shadow: var(--shadow-card);
    margin-bottom: 20px;
    max-width: 100%;
}

.card--accent {
    border-left: 6px solid var(--masters-green);
}

.team-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

/* ============================================================
   STANDINGS — FINAL POLISH PASS
   ============================================================ */
.standing-card {
    max-width: 500px;
    width: 100%;
    margin: 0 auto 16px auto;
    padding: 12px 16px;
    transition: 0.15s ease;
}

.standing-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.standing-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.standing-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.standing-rank {
    background: var(--masters-green);
    color: white;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 1rem;
    min-width: 52px;
    text-align: center;
}

.standing-card-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.standing-team {
    font-size: 1.2rem;
    font-weight: 700;
}

.standing-points {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--masters-green);
    white-space: nowrap;
}

/* ============================================================
   EVENT CARDS
   ============================================================ */
.event-card {
    margin-bottom: 20px;
}

.event-header {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    background: var(--masters-green);
    color: white;
    padding: 12px 18px;
    border-radius: var(--radius-pill);
    border: none;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.event-body {
    background: white;
    padding: 16px 20px;
    border-radius: var(--radius-card);
    margin-top: 8px;
    box-shadow: var(--shadow-card);
}

.event-body.collapsed {
    display: none;
}

.event-links {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ============================================================
   TILES
   ============================================================ */
.tile {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 14px 18px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.tile-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.tile-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.tile-link {
    font-weight: 600;
    color: var(--masters-green);
    text-decoration: none;
}

/* ============================================================
   PILL SYSTEM
   ============================================================ */
.pill {
    background: #fff;
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    display: inline-block;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-soft);
}

.pill-header {
    background: var(--bg-light);
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pill-label {
    background: var(--masters-green);
    color: white;
    border-radius: var(--radius-pill);
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================================
   LABELS + BADGES
   ============================================================ */
.special-label {
    background: var(--masters-green);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
}

.results-badge {
    background: #444;
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.team-header,
.standing-header {
    background: var(--bg-light);
    border-radius: var(--radius-pill);
    padding: 10px 18px;
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================================
   SCHEDULE HEADERS
   ============================================================ */
.schedule-header {
    background: var(--masters-green);
    color: white;
    border: none;
    width: 100%;
    text-align: left;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    margin-bottom: 10px;
}

.schedule-header:hover {
    background: #0a5a1f;
}
/* ============================================================
   SCHEDULE — MOBILE TWO-ROW MATCH LAYOUT
   ============================================================ */

.match-row {
    display: flex;
    flex-direction: column;   /* <-- TWO ROWS */
    padding: 8px 4px;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* Row 1: teams + vs */
.match-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.match-top .team-name {
    font-size: 0.85rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-top .vs {
    font-size: 0.75rem;
    flex-shrink: 0;
    opacity: 0.7;
}

/* Row 2: score + button */
.match-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.match-bottom .score {
    font-size: 0.85rem;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.match-bottom .btn-small {
    font-size: 0.7rem;
    padding: 3px 8px;
    line-height: 1.1;
    white-space: nowrap;
}

/* ============================================================
   WEEK BODY
   ============================================================ */
.week-body {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 16px 20px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
}

.week-body.collapsed {
    display: none !important;
}

/* ============================================================
   MATCH ROWS
   ============================================================ */
.match-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 600;
}

.match-row:last-child {
    border-bottom: none;
}

.match-row .team-name {
    font-weight: 600;
}

.match-row .vs {
    color: var(--text-light);
    font-weight: 600;
}

/* ============================================================
   GRID SYSTEM
   ============================================================ */
.grid-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 680px) {
    .grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* ============================================================
   SCHEDULE POLISH
   ============================================================ */
.schedule-list {
    display: grid;
    gap: 14px;
}

.schedule-card {
    background: #ffffff;
    border: 1px solid rgba(11, 61, 11, 0.16);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.09);
    overflow: hidden;
}

.schedule-card--current {
    border-color: rgba(212, 160, 23, 0.75);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);
}

.schedule-header {
    align-items: center;
    background: #0b4f24;
    border: none;
    border-radius: 0;
    color: #ffffff;
    cursor: pointer;
    display: grid;
    font-size: 1.02rem;
    font-weight: 800;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 0;
    padding: 13px 18px;
    text-align: left;
    width: 100%;
}

.schedule-header:hover {
    background: #083f1c;
}

.schedule-week-title {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    grid-column: 1;
    min-width: 0;
}

.schedule-current-badge {
    background: #d4a017;
    border-radius: 999px;
    color: #111;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 3px 8px;
    text-transform: uppercase;
}

.schedule-round-badge {
    background: rgba(212, 160, 23, 0.96);
    border-radius: 8px;
    color: #1d1809;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 4px 8px;
}

.schedule-date {
    flex: 0 0 auto;
    font-size: 0.94rem;
    font-weight: 800;
    grid-column: 2;
    grid-row: 1;
    opacity: 0.92;
    text-align: right;
}

.schedule-forecast-chip {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.72rem;
    font-weight: 900;
    grid-column: 1 / -1;
    line-height: 1.1;
    padding: 5px 9px;
    white-space: nowrap;
    width: fit-content;
}

.forecast-chip-extra {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 800;
}

.schedule-forecast-chip--unavailable {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
}

.week-body {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    padding: 8px 16px 14px;
}

.schedule-alert {
    background: #fff7df;
    border: 1px solid rgba(212, 160, 23, 0.45);
    border-radius: var(--radius-card);
    color: #5e4300;
    font-weight: 700;
    margin: 10px 0;
    padding: 10px 12px;
}

.schedule-playoff-note {
    background: #f6fbf7;
    border: 1px solid #cfe2d4;
    border-left: 4px solid #197650;
    border-radius: 8px;
    color: #1e3327;
    display: grid;
    gap: 4px;
    margin: 10px 0;
    padding: 10px 12px;
}

.schedule-playoff-note strong {
    color: #123c31;
    font-size: 0.95rem;
}

.schedule-playoff-note span {
    color: #526158;
    font-size: 0.86rem;
    font-weight: 700;
}

.schedule-playoff-warning {
    color: #8a5a00 !important;
}

.schedule-playoff-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.schedule-playoff-actions .match-status {
    color: #197650;
    font-size: 0.78rem;
}


.match-row {
    border: 1px solid transparent;
    border-bottom-color: #e6ebea;
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 2px 0;
    padding: 10px 10px;
    width: 100%;
}

.match-row:last-child {
    border-bottom-color: transparent;
}

.match-row--scored {
    background: #f7faf8;
    border-color: #dce8df;
}

.match-top,
.match-bottom {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    width: 100%;
}

.match-top .team-name {
    color: #17251d;
    font-size: 0.98rem;
    font-weight: 800;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-team {
    align-items: center;
    display: flex;
    flex: 1 1 0;
    gap: 10px;
    min-width: 0;
}

.schedule-team--right {
    justify-content: flex-end;
    text-align: right;
}

.schedule-team-logo {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    flex: 0 0 auto;
    height: 38px;
    object-fit: contain;
    padding: 2px;
    width: 38px;
}

.schedule-team-logo--placeholder {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.match-top .vs {
    background: #eef3ef;
    border: 1px solid #d9e2dc;
    border-radius: 999px;
    color: #526158;
    flex: 0 0 auto;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0;
    opacity: 1;
    padding: 3px 8px;
    text-transform: uppercase;
}

.match-bottom .score {
    align-items: center;
    background: #17251d;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.88rem;
    font-weight: 800;
    gap: 7px;
    min-height: 28px;
    padding: 4px 12px;
}

.score-team {
    min-width: 16px;
    text-align: center;
}

.score-separator {
    color: #d4a017;
}

.match-status {
    color: #65736b;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

.match-bottom .btn-small {
    font-size: 0.76rem;
    line-height: 1.1;
    padding: 5px 10px;
    white-space: nowrap;
}

@media (max-width: 520px) {
    .schedule-header {
        align-items: start;
        gap: 7px 10px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 12px 14px;
    }

    .week-body {
        padding: 8px 8px 12px;
    }

    .schedule-week-title {
        gap: 6px;
    }

    .schedule-forecast-chip {
        align-items: center;
        justify-content: space-between;
        line-height: 1.25;
        white-space: normal;
        width: 100%;
    }

    .forecast-chip-extra {
        display: inline;
        margin-left: auto;
        text-align: right;
    }

    .match-row {
        padding: 10px 8px;
    }

    .match-top {
        gap: 6px;
    }

    .schedule-team {
        gap: 6px;
    }

    .schedule-team-logo {
        height: 30px;
        width: 30px;
    }

    .match-top .team-name {
        font-size: 0.88rem;
    }

    .match-top .vs {
        padding: 2px 6px;
    }
}

/* ============================================================
   PLAYER LISTS
   ============================================================ */
.signup-list,
.player-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.signup-list li,
.player-row {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

/* ============================================================
   LINKS
   ============================================================ */
.event-link,
.results-link {
    font-weight: 600;
    color: var(--masters-green);
    text-decoration: none;
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
.navbar a {
    color: white;
    padding: 10px 14px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
}

.navbar a:hover {
    background: rgba(255,255,255,0.15);
}


/* ============================================================
   LOGO SYSTEM
   ============================================================ */
img.logo,
.team-logo,
.standing-logo,
.team-card-logo,
.standing-card-logo {
    object-fit: contain;
    display: block;
}

.logo-small,
.team-logo,
.standing-logo {
    width: 48px;
    height: 48px;
}

.logo-medium {
    width: 70px;
    height: 70px;
}

.logo-large {
    width: 100px;
    height: 100px;
}

.team-card-logo {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

.standing-card-logo {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-soft);
}

/* ============================================================
   COLLAPSIBLE LISTS
   ============================================================ */
.players-list {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.players-list.collapsed {
    display: none;
}

/* ============================================================
   SCORECARD WRAPPER (SAFE)
   ============================================================ */
.score-sheet-wrapper {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

/* ============================================================
   TEAM CARD (SAFE)
   ============================================================ */
.team-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.team-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    text-align: center;
}

/* ============================================================
   SUMMARY ROW COLORS
   ============================================================ */
.table-secondary {
    background: #e9ecef;
}

.table-info {
    background: #d1ecf1;
}

.table-primary {
    background: #cfe2ff;
}

/* ============================================================
   WIN/LOSS HIGHLIGHTING
   ============================================================ */
.manual-player-row.winner {
    background-color: #d4edda;
    border-left: 4px solid #28a745;
}

.manual-player-row.loser {
    background-color: #f8d7da;
    border-left: 4px solid #dc3545;
}

.manual-player-row.tie {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
}

/* ============================================================
   MOBILE FIXES (SAFE)
   ============================================================ */
@media (max-width: 768px) {
    .score-sheet-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .team-card {
        max-width: 100%;
        overflow: hidden;
    }

    .manual-player-row,
    .manual-summary-row {
        flex-wrap: wrap;
    }

    .manual-summary-row input {
        width: 48%;
    }
}

/* ============================================================
   TEE COLOR OVERRIDES
   ============================================================ */
.banner-conditions .tee-purple {
    color: purple !important;
}

.banner-conditions .tee-red {
    color: red !important;
}

/* ============================================================
   MATCHUP LAYOUT
   ============================================================ */
.matchup-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.team-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.team-logo {
    width: 70px;
    max-height: 70px;
    border-radius: 8px;
    object-fit: contain;
    background: #fff;
}

.team-name {
    font-size: 1.3rem;
    font-weight: 700;
}

.vs-block {
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0.7;
}

/* ============================================================
   MOBILE MATCHUP LAYOUT
   ============================================================ */
@media (max-width: 600px) and (orientation: portrait) {
    .matchup-row {
        flex-direction: column;
        gap: 12px;
    }

    .team-block {
        flex-direction: column;
        align-items: center;
    }

    .team-name {
        text-align: center;
        margin-top: 6px;
    }

    .vs-block {
        margin: 4px 0;
    }
}

/* ============================================================
   TEAMS PAGE BUTTONS
   ============================================================ */
.team-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f1f1f1;
    color: #222;
    padding: 8px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-right: 8px;
    transition: all 0.2s ease;
}

.team-card a:hover {
    background: #0b3d0b;
    color: white;
    transform: translateY(-1px);
}

.team-card strong {
    font-size: 1.1rem;
}

@media (max-width: 600px) {
    .nav-cluster {
        padding: 12px 6px;
        gap: 8px;
        max-width: 100%;
    }

    .nav-cluster a {
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 20px;
    }
}

/* ============================================
   PAGE TITLES — FINAL OVERRIDE
   ============================================ */
.page-title {
    display: block;
    width: fit-content;
    margin: 25px auto 20px auto;

    background: rgba(255,255,255,0.85);
    padding: 12px 28px;
    border-radius: 999px;

    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;

    /* Option 1 — Soft glow + depth */
    box-shadow:
        0 2px 6px rgba(0,0,0,0.15),
        0 0 12px rgba(255,255,255,0.6) inset;

    /* Option 2 — Thin gold accent ring */
    border: 2px solid rgba(212,160,23,0.35);

    backdrop-filter: blur(3px);

    /* Needed for underline glow */
    position: relative;
}

@media (max-width: 600px) {
    .page-title {
        max-width: calc(100vw - 24px);
        padding: 10px 16px;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.15;
    }
}

/* Option 5 — Underline glow */
.page-title::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    border-radius: 3px;
    background: rgba(0,0,0,0.15);
}

/* ============================================
   SCORE BUTTONS
============================================ */
.btn-small {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: 0.15s ease;
}

/* Enter Scores button */
.btn-enter {
    background: #0b3d0b;
    color: white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.btn-enter:hover {
    background: #145214;
    transform: translateY(-2px);
}

/* View Scores button */
.btn-view {
    background: #1e90ff;
    color: white;
    box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.btn-view:hover {
    background: #1877d3;
    transform: translateY(-2px);
}


/* ============================================================
   UNIFIED BANNER SYSTEM
   ============================================================ */

/* Wrappers: center both banners */
.conditions-banner-wrapper,
.weather-banner-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    text-align: center;
}

/* Base pill banner style */
.global-banner,
.weather-banner {
    display: inline-flex;
    width: auto;
    max-width: 100%;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    white-space: nowrap;
}

/* Conditions banner colors */
.banner-conditions {
    background: #00A86B;
    color: white;
}

.banner-rainout {
    background: #b30000;
    color: white;
}

/* Weather banner — BLUE pill */
.weather-banner {
    background: #1e90ff !important;
    color: white;
}

/* Mobile: keep pill shape, centered, no wrapping */
@media (max-width: 600px) {

    .conditions-banner-wrapper,
    .weather-banner-wrapper {
        padding: 0 10px;
        box-sizing: border-box;
    }

    .global-banner,
    .weather-banner {
        display: inline-flex !important;
        width: auto !important;
        max-width: calc(100vw - 20px);
        border-radius: 999px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        white-space: normal !important;
        flex-wrap: wrap;
        gap: 6px 10px;
        line-height: 1.25;
    }

    .cond-item {
        display: inline-flex;
        gap: 4px;
        align-items: center;
    }

    .page-wrapper,
    .schedule-list,
    .grid-1,
    .grid-2,
    .card,
    .event-card,
    .team-card {
        min-width: 0;
    }

    .team-card a {
        margin-bottom: 8px;
        max-width: 100%;
        white-space: normal;
    }

    table.table,
    .card table:not(.gps-grid),
    .event-body table,
    .page-wrapper > table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
}
/* ============================================================
   STANDINGS — FIX CARD WIDTH ON MOBILE
   ============================================================ */
@media (max-width: 600px) {

    /* Prevent horizontal overflow */
    .standing-card {
        width: 100%;
        max-width: 100% !important;
        padding: 10px 12px;   /* reduce padding */
        box-sizing: border-box;
        overflow: hidden;     /* critical */
    }

    /* Tighten the row */
    .standing-row {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
    }

    /* Allow left block to shrink */
    .standing-left {
        flex: 1 1 auto;
        min-width: 0;
        gap: 8px;
    }

    /* Prevent team name from pushing layout */
    .standing-team {
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Points stay tight */
    .standing-points {
        flex-shrink: 0;
        white-space: nowrap;
        font-weight: 700;
    }

    /* Slightly smaller logo */
    .standing-card-logo {
        width: 40px;
        height: 40px;
    }

    /* Slightly smaller rank pill */
    .standing-rank {
        padding: 4px 10px;
        font-size: 0.85rem;
    }
}

/* Final cascade pass for the refreshed app shell. */
body {
    background: #d7e2d4 !important;
    color: #18251d;
}

.card,
.event-card,
.team-card,
.match-card,
.standing-card,
.schedule-card,
.week-card,
.live-session-card,
.event-body,
.week-body {
    border-radius: 8px !important;
    border: 1px solid #c7d5c4 !important;
    box-shadow: 0 3px 10px rgba(18, 48, 34, 0.14) !important;
}

.btn-small,
.pill-btn,
.team-card a,
.event-card a,
.match-card a {
    border-radius: 8px !important;
    box-shadow: none !important;
}

.match-card:hover,
.team-card:hover,
.event-card:hover,
.standing-card:hover {
    transform: none !important;
}

