/* Tournament standings. Hero uses the generated cricket art; the table is the working surface. */
.tour { display: grid; gap: 18px; }
.tour > * { min-width: 0; }

.tour-hero {
    position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; min-height: 230px;
    display: flex; align-items: flex-end; padding: 26px 28px;
    box-shadow: 0 18px 44px rgba(150, 105, 10, .28), inset 0 0 0 1.5px rgba(255, 255, 255, .7);
}
.tour-hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; }
.tour-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(43, 32, 8, .82) 0%, rgba(43, 32, 8, .55) 42%, rgba(43, 32, 8, 0) 75%);
}
.tour-hero-text { display: grid; gap: 6px; color: #fff; max-width: 560px; }
.tour-kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .86rem; color: #FFE08A; }
.tour-hero h1 { margin: 0; font-family: 'Bangers', 'Nunito', sans-serif; font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: .03em; line-height: 1; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); }
.tour-hero p { margin: 0; color: rgba(255, 255, 255, .85); font-size: .92rem; }

.tour-table-card { padding: 16px !important; display: grid; gap: 10px; }
.tour-table-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.tour-table-head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; color: var(--ink); display: flex; gap: 8px; align-items: center; }
.tour-table-head h2 i { color: #C98A0B; }
.tour-table-head .live-muted { font-size: .8rem; }
.tour-table-scroll { overflow-x: auto; }
.tour-table { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-variant-numeric: tabular-nums; }
.tour-table thead th { font-size: .74rem; font-weight: 800; color: var(--ink-3); text-align: center; padding: 0 8px 2px; }
.tour-table thead th:nth-child(2) { text-align: left; }
.tour-table tbody tr { cursor: pointer; }
.tour-table tbody td, .tour-table tbody th { background: var(--glass-inlay); padding: 9px 8px; text-align: center; color: var(--ink-2); font-weight: 600; }
.tour-table tbody tr > :first-child { border-radius: 14px 0 0 14px; padding-left: 10px; }
.tour-table tbody tr > :last-child { border-radius: 0 14px 14px 0; padding-right: 12px; }
.tour-table tbody tr:hover > * { background: rgba(255, 255, 255, .9); }
.tour-table tbody tr.is-top > :first-child { box-shadow: inset 3px 0 0 #E7B33A; }
.tour-table tbody th { text-align: left; font-weight: 400; }
.tour-team { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; text-decoration: none; min-width: 0; max-width: 260px; }
.tour-team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-team:hover { color: var(--ember); }
.tour-team:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.tour-pts { font-weight: 800 !important; color: var(--ink) !important; font-size: 1.05rem; }
.tour-table .is-pos { color: #047857; }
.tour-table .is-neg { color: #B91C1C; }
.tour-form { display: inline-flex; gap: 3px; }
.tour-form i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; font-style: normal; font-size: .66rem; font-weight: 800; color: #fff; }
.tour-form .f-W { background: #047857; }
.tour-form .f-L { background: #B91C1C; }
.tour-form .f-T { background: #64748B; }
.tour-note { margin: 0; font-size: .78rem; }
/* Phones: every column that matters (P W L NRR Pts) fits without sideways scrolling; the team name gives way. */
@media (max-width: 560px) {
    .tour-table-card { padding: 12px !important; }
    .tour-table .hide-sm { display: none; }
    .tour-table { table-layout: fixed; font-size: .86rem; border-spacing: 0 5px; }
    .tour-table col.c-pos { width: 34px; } .tour-table col.c-n { width: 24px; } .tour-table col.c-nrr { width: 46px; } .tour-table col.c-pts { width: 34px; }
    .tour-table thead th { padding: 0 2px 2px; }
    .tour-table tbody td, .tour-table tbody th { padding: 8px 2px; }
    .tour-table tbody tr > :first-child { padding-left: 4px; }
    .tour-table tbody tr > :last-child { padding-right: 6px; }
    .tour-table .medal { width: 24px; height: 24px; font-size: .72rem; }
    .tour-team { gap: 6px; max-width: 100%; }
    .tour-team .crest { flex: none; }
    .tour-pts { font-size: .98rem; }
}

.tour-cols { display: grid; gap: 16px; }
@media (min-width: 900px) { .tour-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tour-recent .card-head { flex-wrap: wrap; gap: 8px; }
