/* brand.css — the public-site brand skin. Loads LAST (after style.css) so it wins.
   To rebrand a fork: change the --site-* values below; everything else follows.
   Current palette (AITA), extracted from aitanew.hitcourt.com (:root tokens there):
   navy #0a2540 / #0b2f52 / #061a30, saffron #E2762B (CTA), blue #1f6fd6 (links),
   ink #1c2b3a, muted #5e6e82, line #e3e8ee, bg-alt #eef3f9, Poppins 800 headings. */

:root {
    /* AITA brand */
    --site-navy: #0a2540;
    --site-navy-800: #0b2f52;
    --site-navy-900: #061a30;
    --site-saffron: #E2762B;
    --site-saffron-d: #c25f1d;
    --site-saffron-050: #fdf2e9;
    --site-blue: #1f6fd6;
    --site-blue-d: #1857ab;
    --site-blue-050: #eaf2fc;
    --site-green: #1a7a4a; /* tricolor stripe only */
    --site-ink: #1c2b3a;
    --site-muted: #5e6e82;
    --site-line: #e3e8ee;
    --site-bg-alt: #eef3f9;
    --site-shadow: 0 18px 50px rgba(10, 37, 64, .18);
    --site-shadow-sm: 0 6px 20px rgba(10, 37, 64, .10);
    --site-nav-h: 72px;

    /* Re-point the design-system consumer tokens at the AITA palette so
       components.css + compat.css inherit it without edits. */
    --accent: var(--site-blue);
    --accent-600: var(--site-blue-d);
    --accent-strong: var(--site-saffron);
    --accent-strong-600: var(--site-saffron-d);
    --accent-soft: var(--site-blue-050);
    --accent-ink: var(--site-blue-d);
    --on-accent-strong: #ffffff;
    --ink: var(--site-ink);
    --ink-2: #44546a;
    --ink-3: var(--site-muted);
    --rule: var(--site-line);
    --surface-2: var(--site-bg-alt);
    --brand-navy: var(--site-navy);
    --brand-navy-800: var(--site-navy-800);
    --brand-navy-900: var(--site-navy-900);
}

/* ---------------------------------------------------------------------------
   NAVBAR — solid navy, real nav weight, fixed with content offset
--------------------------------------------------------------------------- */
.navbar.fixed-top,
nav.navbar {
    background: linear-gradient(180deg, var(--site-navy-900), var(--site-navy)) !important;
    min-height: var(--site-nav-h);
    box-shadow: 0 2px 14px rgba(6, 26, 48, .45);
    /* AITA signature: tricolor hairline along the bottom edge */
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg,
        var(--site-saffron) 0 33%, #f4f7fb 33% 66%, var(--site-green) 66% 100%) 1;
}
/* the fix for content hiding behind the fixed navbar */
body { padding-top: var(--site-nav-h); }
html { scroll-padding-top: calc(var(--site-nav-h) + 12px); }
/* full-bleed hero tucks under the bar deliberately; auth shells have no navbar */
body:has(#banner), body:has(.auth-shell) { padding-top: 0; }

.navbar .nav-link {
    color: rgba(255, 255, 255, .92) !important;
    font-weight: 600;
    font-size: .9375rem;
    letter-spacing: .01em;
    padding-top: .9rem;
    padding-bottom: .9rem;
    position: relative;
}
.navbar .nav-link:hover,
.navbar .nav-link:focus { color: #fff !important; }
.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: .5rem; right: .5rem; bottom: .45rem;
    height: 2px;
    background: var(--site-saffron);
    transform: scaleX(0);
    transition: transform .18s ease;
}
.navbar .nav-link:hover::after,
.navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .dropdown-toggle::after { position: static; background: none; transform: none; }

/* brand sits on a white chip so the navy logo art reads on the navy bar */
.navbar .navbar-brand img {
    background: #fff;
    border-radius: 10px;
    padding: 4px 8px;
    height: 48px;
    width: auto;
}

/* Login / Register: quiet outline + saffron CTA pills (now role dropdowns) */
.navbar .nav-actions { gap: .6rem; }
.navbar #logins,
.navbar #registers {
    border-radius: 999px;
    padding: .45rem 1.15rem !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
}
.navbar #logins {
    border: 1.5px solid rgba(255, 255, 255, .55) !important;
    color: #fff !important;
}
.navbar #logins:hover { border-color: #fff !important; }
.navbar #registers {
    background: var(--site-saffron) !important;
    border: 1.5px solid var(--site-saffron) !important;
    color: #fff !important;
    font-weight: 700;
}
.navbar #registers:hover { background: var(--site-saffron-d) !important; }
.navbar #logins::after, .navbar #registers::after {
    display: inline-block;
    position: static;
    height: auto;
    background: none;
    transform: none;
    transition: none;
}

/* Dropdown panels — white card, generous radius, quiet shadow */
.navbar .dropdown-menu.site-menu {
    min-width: 280px;
    padding: .55rem;
    border: 1px solid var(--site-line);
    border-radius: 14px;
    box-shadow: var(--site-shadow);
}
.site-menu .site-menu-head {
    color: var(--site-muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin: .35rem .6rem .5rem;
}
.site-menu .mi {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .55rem .6rem;
    border-radius: 10px;
    white-space: normal;
}
/* beat style.css's global ATF-blue .dropdown-item hover (#1c4f92 !important) */
.navbar .dropdown-menu .dropdown-item {
    color: var(--site-ink) !important;
    background: transparent !important;
}
.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    color: var(--site-ink) !important;
    background: var(--site-bg-alt) !important;
}
.site-menu .mi:hover .mi-tt, .site-menu .mi:focus .mi-tt { color: var(--site-navy); }
.site-menu .mi:hover .ic { background: var(--site-saffron); color: #fff; }
.site-menu .mi .ic {
    flex: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--site-saffron-050);
    color: var(--site-saffron-d);
    font-size: .95rem;
}
.site-menu .mi-tt { display: block; font-weight: 700; font-size: .875rem; color: var(--site-ink); line-height: 1.25; }
.site-menu .mi-ds { display: block; font-weight: 400; font-size: .765rem; color: var(--site-muted); margin-top: .1rem; line-height: 1.3; }
.site-menu-roles { min-width: 310px; }
/* single-line items (Regulations PDFs) center their icon chip */
.site-menu .mi > .ic + .mi-tt { align-self: center; }

/* Desktop: hover-open with a soft lift; no layout shift, no clipping */
@media (min-width: 1200px) {
    .navbar .navbar-collapse { overflow: visible !important; }
    .navbar .nav-drop > .dropdown-menu {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: opacity .16s ease, transform .16s ease, visibility .16s;
    }
    /* BS only right-aligns via [data-bs-popper]; hover-open needs it explicit */
    .navbar .nav-drop > .dropdown-menu.dropdown-menu-end { left: auto; right: 0; }
    .navbar .nav-drop:hover > .dropdown-menu,
    .navbar .nav-drop:focus-within > .dropdown-menu,
    .navbar .nav-drop > .dropdown-menu.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    /* keep the hover alive across the gap between link and panel */
    .navbar .nav-drop > .dropdown-menu::before {
        content: "";
        position: absolute;
        left: 0; right: 0; top: -12px;
        height: 12px;
    }
}
/* Mobile: collapse scrolls itself; panels flow inline */
@media (max-width: 1199.98px) {
    .navbar .navbar-collapse { max-height: calc(100vh - var(--site-nav-h) - 12px); overflow-y: auto; }
    .navbar .dropdown-menu.site-menu { box-shadow: none; margin: 0 .25rem .5rem; }
}
@media (max-width: 1024px) {
    .tc-when { flex-direction: column; gap: .35rem; align-items: flex-start !important;}
}
/* ---------------------------------------------------------------------------
   HERO — token-based, no video (home #banner)
--------------------------------------------------------------------------- */
#banner {
    background:
        radial-gradient(900px 420px at 85% 15%, rgba(226, 118, 43, .28), transparent 60%),
        radial-gradient(700px 420px at 10% 90%, rgba(31, 111, 214, .35), transparent 60%),
        linear-gradient(160deg, var(--site-navy-900) 0%, var(--site-navy) 55%, var(--site-navy-800) 100%);
    min-height: 72vh !important;
    height: auto !important;
    display: flex;
    align-items: center;
    padding-top: calc(var(--site-nav-h) + 3rem) !important;
    padding-bottom: 4rem !important;
}
#banner .bg-holder { display: none; } /* retire the ATF artwork */
#banner h1 {
    font-weight: 800;
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
    letter-spacing: -.02em;
    line-height: 1.15;
}
#banner .hero-kicker {
    color: var(--site-saffron);
    font-weight: 700;
    font-size: .8125rem;
    letter-spacing: .18em;
    text-transform: uppercase;
}
#banner .lead { color: rgba(255, 255, 255, .78) !important; max-width: 40rem; }
#banner .btn-hero-primary {
    background: var(--site-saffron);
    border: none;
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: .8rem 1.2rem;
    box-shadow: 0 10px 28px rgba(226, 118, 43, .35);
}
#banner .btn-hero-primary:hover { background: var(--site-saffron-d); color: #fff; }
#banner .btn-hero-ghost {
    border: 1.5px solid rgba(255, 255, 255, .5);
    color: #fff;
    font-weight: 600;
    border-radius: 999px;
    padding: .8rem 1.6rem;
}
#banner .btn-hero-ghost:hover { border-color: #fff; color: var(--site-navy); background: #fff; }

/* ---------------------------------------------------------------------------
   TYPOGRAPHY + SECTIONS
--------------------------------------------------------------------------- */
h1, h2, h3, .h1, .h2, .h3 { font-weight: 800; letter-spacing: -.01em; color: var(--site-ink); }
section h2.text-primary, .text-primary { color: var(--site-navy) !important; }
.bg-light { background: var(--site-bg-alt) !important; }
.section-kicker {
    color: var(--site-saffron-d);
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    display: block;
    margin-bottom: .5rem;
}

/* Buttons: saffron = act, blue = navigate */
.btn-primary {
    background: var(--site-saffron) !important;
    border-color: var(--site-saffron) !important;
    font-weight: 600;
}
.btn-primary:hover, .btn-primary:focus { background: var(--site-saffron-d) !important; border-color: var(--site-saffron-d) !important; }
.btn-outline-primary {
    color: var(--site-blue) !important;
    border-color: var(--site-blue) !important;
    font-weight: 600;
}
.btn-outline-primary:hover { background: var(--site-blue) !important; color: #fff !important; }
.btn-outline-primary.active { background: var(--site-blue) !important; border-color: var(--site-blue) !important; color: #fff !important; }
a { color: var(--site-blue); }
a:hover { color: var(--site-blue-d); }

/* Cards (upcoming tournaments, calendar entries, generic) */
.card {
    border: 1px solid var(--site-line);
    border-radius: 16px;
    box-shadow: var(--site-shadow-sm);
}
.card:hover { box-shadow: var(--site-shadow); }

/* ---------------------------------------------------------------------------
   PAGE HEADERS (ranking / standings / calendar heads on imagery)
   Navy-tint the ATF-era header photos so every page head reads AITA navy.
--------------------------------------------------------------------------- */
.bg-holder.overlay ~ *, .light .text-white { text-shadow: 0 1px 3px rgba(6, 26, 48, .5); }
.bg-holder.overlay:before {
    background: linear-gradient(120deg, rgba(6, 26, 48, .92), rgba(10, 37, 64, .72)) !important;
}

/* ---------------------------------------------------------------------------
   PAGE BAND — the shared dark page header (calendar / rankings / standings).
   Navy gradient + glossy sheen + soft saffron/blue glows.
--------------------------------------------------------------------------- */
.page-band {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, #0d3a66 0%, var(--site-navy) 45%, var(--site-navy-900) 100%);
    padding: 2.4rem 0 1.6rem;
}
.page-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(112deg, transparent 41%, rgba(120, 170, 255, .16) 47%, rgba(228, 240, 255, .38) 50.2%, rgba(120, 170, 255, .14) 54%, transparent 63%),
        radial-gradient(760px 340px at 10% -34%, rgba(31, 111, 214, .45), transparent 72%),
        radial-gradient(520px 280px at 98% 128%, rgba(226, 118, 43, .16), transparent 70%);
}
.page-band > * { position: relative; z-index: 1; }
.band-eyebrow {
    color: var(--site-saffron);
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    display: block;
    margin-bottom: .2rem;
}
.page-band h1 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    letter-spacing: -.02em;
    margin: 0;
}
.page-band .band-sub { color: rgba(255, 255, 255, .72); font-size: .9rem; margin: .35rem 0 0; }
/* segmented toggle on dark (Card | List) */
.band-seg { display: inline-flex; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: .22rem; }
.band-seg a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .38rem .95rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .82rem;
    color: rgba(255, 255, 255, .8);
}
.band-seg a:hover { color: #fff; }
.band-seg a.on { background: #fff; color: var(--site-navy); }
.band-filter {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: var(--site-saffron);
    color: #fff;
    font-weight: 700;
    font-size: .875rem;
    border: none;
    border-radius: 999px;
    padding: .5rem 1.15rem;
}
.band-filter:hover { background: var(--site-saffron-d); color: #fff; }

/* Tabs on the band (factsheet) — Bootstrap tabs restyled as pills-on-dark */
.page-band .nav-tabs.band-tabs { border: none; gap: .35rem; flex-wrap: wrap; margin-top: 1.15rem; }
.page-band .band-tabs .nav-link {
    border: none !important;
    border-radius: 999px;
    padding: .42rem 1rem;
    font-weight: 600;
    font-size: .84rem;
    color: #cdd8ec;
    background: rgba(255, 255, 255, .1);
    transition: all .14s ease;
    white-space: nowrap;
}
.page-band .band-tabs .nav-link:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.page-band .band-tabs .nav-link.active { background: #fff; color: var(--site-navy); font-weight: 700; }
/* long tournament names get a calmer size */
.page-band h1.band-title-sm { font-size: clamp(1.25rem, 2.6vw, 1.9rem); }

/* Factsheet content: collapse-card headers + re-skin of tournament.style.css atoms */
#tourTabsContent .card-header.bg-soft-primary {
    background: var(--site-bg-alt) !important;
    border-bottom: 1px solid var(--site-line);
}
#tourTabsContent .card-header h5 {
    color: var(--site-navy);
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin: 0;
}
.heading { background: var(--site-navy) !important; color: #fff !important; }
.heading-dark { color: var(--site-navy) !important; }
.heading-badge { background: var(--site-saffron) !important; color: #fff !important; }
.vs { background: var(--site-saffron) !important; }
table.table.card_container { border-top-color: var(--site-navy) !important; }

/* Tournament LIST rows (monthly/weekly list views) */
.toursTabs { border-bottom: 1px solid var(--site-line); }
.toursTabs .nav-link {
    font-weight: 600;
    color: var(--site-muted);
    border: none !important;
    border-bottom: 2px solid transparent !important;
    background: transparent !important;
}
.toursTabs .nav-link:hover { color: var(--site-navy); }
.toursTabs .nav-link.active { color: var(--site-navy); border-bottom-color: var(--site-saffron) !important; }
.tour-row { --gc: var(--site-blue); display: flex; gap: .9rem; padding: 1rem .5rem; border-bottom: 1px solid var(--site-line); }
.tour-row:hover { background: var(--site-bg-alt); }
.tour-row .tc-title { font-size: .95rem; }

/* Month bar — white pill strip floating on the band */
.cal-bar {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(6, 26, 48, .30);
    padding: .4rem;
    margin-top: 1.35rem;
}
.cal-bar .cal-year {
    border: none;
    background: var(--site-bg-alt);
    border-radius: 9px;
    font-weight: 700;
    color: var(--site-navy);
    padding: .5rem 2rem .5rem .8rem;
    width: auto;
    flex: none;
}
.cal-months {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .1rem;
    flex: 1 1 auto;
    border-left: 1px solid var(--site-line);
    padding-left: .35rem;
    min-width: 0;
}
/* neutralize the legacy style.css month-box chrome, then restyle as quiet pills */
.cal-months .month-box {
    border: none !important;
    margin: 0;
    padding: 0;
    border-radius: 9px;
    overflow: hidden;
    line-height: 1;
}
.cal-months .month-box .year-name {
    padding: .55rem .7rem;
    background: transparent;
    color: var(--site-muted);
    font-size: .875rem;
    font-weight: 700;
    width: auto;
}
.cal-months .month-box:hover .year-name { background: var(--site-bg-alt); color: var(--site-navy); }
.cal-months .month-box.active .year-name { background: var(--site-navy); color: #fff; }

/* Month filter on mobile — becomes a 5-up Slick carousel with left/right arrows
   (JS only initializes Slick below the mobile breakpoint; desktop/tablet keep the
   plain wrapped pill row above and are untouched by these rules). */
.month-slider {
    position: relative;
}

.month-slider.slick-initialized {
    display: block;
    flex-wrap: nowrap;
    border-left: none;
    padding: 0 30px;
}

.month-slider .slick-list {
    margin: 0 -.15rem;
}

.month-slider .slick-track {
    display: flex;
    align-items: center;
}

.month-slider .slick-slide {
    padding: 0 .15rem;
}

.month-slider .slick-slide .month-box {
    display: block;
}

.month-slider .slick-slide .month-box .year-name {
    text-align: center;
    padding: .5rem .3rem;
    font-size: .8rem;
}

.month-slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--site-bg-alt);
    border-radius: 50%;
    color: var(--site-navy);
    font-size: .7rem;
    transition: background .14s ease, color .14s ease;
}

.month-slider .slick-arrow:hover {
    background: var(--site-navy);
    color: #fff;
}

.month-slider .slick-arrow.slick-prev {
    left: 0;
}

.month-slider .slick-arrow.slick-next {
    right: 0;
}

.month-slider .slick-arrow.slick-disabled {
    opacity: .35;
    pointer-events: none;
}

/* below the slider breakpoint the bar stays ONE line: year select + slider
   side by side (slick only shrinks as a flex child with min-width: 0) */
@media (max-width: 993px) {
    .cal-bar { flex-wrap: nowrap; }
    .cal-bar .month-slider.slick-initialized {
        flex: 1 1 auto;
        min-width: 0;
    }
}

/* ---------------------------------------------------------------------------
   TOURNAMENT CARDS: Grade colour coding preserved via --gc:
     Talent teal · Championship light green · Super purple · National blue ·
     Nationals saffron · Pro circuit navy · ITF rose · Masters indigo.
--------------------------------------------------------------------------- */
.tour-card {
    --gc: var(--site-blue);
    /* band = grade hue deepened over navy, so white text reads */
    --gc-band: color-mix(in srgb, var(--gc) 55%, var(--site-navy));
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid color-mix(in srgb, var(--gc) 22%, var(--site-line));
    border-radius: 16px;
    box-shadow: var(--site-shadow-sm);
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .16s ease, box-shadow .16s ease;
}

.tour-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--site-shadow);
}

.tour-card:hover:has(.qrcodeWrapper.enlarged) {
    transform: none;
}

/* grade colours + court photo per grade (bg-* from tbl_grade short_name) */
.bg-default { --gc: var(--site-blue); --tc-photo: url('../img/tour-bg/default.png'); }
.bg-ts7   { --gc: #0d9488; --tc-photo: url('../img/tour-bg/ts7.png'); }    /* Talent - teal */
.bg-cs3   { --gc: #4caf50; --tc-photo: url('../img/tour-bg/cs3.png'); }    /* Championship - green */
.bg-cs7   { --gc: #4caf50; --tc-photo: url('../img/tour-bg/cs7.png'); }
.bg-ss    { --gc: #7c5cd6; --tc-photo: url('../img/tour-bg/ss.png'); }     /* Super - purple */
.bg-ns    { --gc: var(--site-blue); --tc-photo: url('../img/tour-bg/ns.png'); } /* National - blue */
.bg-nat   { --gc: #ef8f1c; --tc-photo: url('../img/tour-bg/nat.png'); }    /* Nationals - saffron */
.bg-u10   { --gc: #0aa2c0; --tc-photo: url('../img/tour-bg/u10.png'); }
.bg-au14  { --gc: #d9a012; --tc-photo: url('../img/tour-bg/au14.png'); }
.bg-au16  { --gc: #d9a012; --tc-photo: url('../img/tour-bg/au16.png'); }
.bg-1lac  { --gc: var(--site-navy); --tc-photo: url('../img/tour-bg/1lac.png'); }
.bg-2-5la { --gc: var(--site-navy); --tc-photo: url('../img/tour-bg/2-5la.png'); }
.bg-5lac  { --gc: var(--site-navy); --tc-photo: url('../img/tour-bg/5lac.png'); }
.bg-7-5la { --gc: var(--site-navy); --tc-photo: url('../img/tour-bg/7-5la.png'); }
.bg-10lac { --gc: var(--site-navy); --tc-photo: url('../img/tour-bg/10lac.png'); }
.bg-itf-ju { --gc: #c2455f; --tc-photo: url('../img/tour-bg/itf-ju.png'); }
.bg-i15k  { --gc: #c2455f; --tc-photo: url('../img/tour-bg/i15k.png'); }
.bg-i25k  { --gc: #c2455f; --tc-photo: url('../img/tour-bg/i25k.png'); }
.bg-i40k  { --gc: #c2455f; --tc-photo: url('../img/tour-bg/i40k.png'); }
.bg-m100  { --gc: #5560c9; --tc-photo: url('../img/tour-bg/m100.png'); }
.bg-m200  { --gc: #5560c9; --tc-photo: url('../img/tour-bg/m200.png'); }
.bg-m400  { --gc: #5560c9; --tc-photo: url('../img/tour-bg/m400.png'); }
.bg-m700  { --gc: #5560c9; --tc-photo: url('../img/tour-bg/m700.png'); }
.bg-atp   { --gc: var(--site-navy); --tc-photo: url('../img/tour-bg/atp.png'); }
.bg-wta   { --gc: var(--site-navy); --tc-photo: url('../img/tour-bg/wta.png'); }
.bg-atpc  { --gc: var(--site-navy); --tc-photo: url('../img/tour-bg/atpc.png'); }

/* legacy API colour classes keep working (no photo — solid band) */
.tour-card.bg-purple { --gc: #7c5cd6; }
.tour-card.bg-primary { --gc: var(--site-blue); }
.tour-card.bg-success { --gc: #1a9a5c; }
.tour-card.bg-dark { --gc: var(--site-navy); }
.tour-card.bg-warning { --gc: #d9a012; }
.tour-card.bg-danger { --gc: #d64545; }
.tour-card.bg-info { --gc: #0aa2c0; }

/* ---------- band: dark grade tint over the faint court photo ---------- */
.tc-top {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding: 1rem 1.15rem .9rem;
    background:
        linear-gradient(100deg,
            color-mix(in srgb, var(--gc-band) 97%, transparent) 0%,
            color-mix(in srgb, var(--gc-band) 88%, transparent) 55%,
            color-mix(in srgb, var(--gc-band) 74%, transparent) 100%),
        var(--tc-photo, linear-gradient(var(--gc-band), var(--gc-band))) center / cover no-repeat;
    color: #fff;
    min-height: 118px;
}

/* keep title clear of the QR tile */
.tc-top:has(.qrcodeWrapper) { padding-right: 96px; }

.tc-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .45rem;
}

/* Gold grade chip */
.tc-grade {
    display: inline-block;
    background: #f5b942;
    color: #14263f;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 7px;
    padding: .26rem .6rem;
}

.tc-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 1px 3px rgba(6, 26, 48, .4);
}

.tc-title.no-shadow {
    text-shadow: none;
}

.tour-card .tc-title a { color: #fff; }
.tour-card .tc-title a:hover { color: rgba(255, 255, 255, .85); }
.tour-row .tc-title a { color: var(--site-ink); }
.tour-row .tc-title a:hover { color: var(--site-blue-d); }

.tc-org {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    color: rgba(255, 255, 255, .88);
    font-size: .8rem;
    margin: 0;
}

.tour-row .tc-org { color: var(--site-muted); }

.tc-org img.rounded-circle {
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .6);
}

.tour-row .tc-org img.rounded-circle { border-color: var(--site-line); }

/* QR tile pinned top-right */
.tc-top .qrcodeWrapper {
    position: absolute;
    top: .9rem;
    right: .9rem;
}

/* ---------- white info zone: icon-led facts grid ---------- */
.tc-meta {
    margin-top: auto;
    padding: .85rem 1.15rem .95rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .6rem .9rem;
    background: #fff;
    align-items: center;
}

.tc-fact {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .82rem;
    color: var(--site-ink);
    min-width: 0;
}

.tc-fact .ic {
    flex: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: color-mix(in srgb, var(--gc) 12%, #fff);
    color: color-mix(in srgb, var(--gc) 75%, #000);
    font-size: .8rem;
}

.tc-ages {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
    font-size: .78rem;
    color: var(--site-muted);
    min-width: 0;
}

.tc-ages .badge {
    background: color-mix(in srgb, var(--gc) 11%, #fff) !important;
    color: color-mix(in srgb, var(--gc) 75%, #000) !important;
    font-weight: 600;
    border-radius: 6px;
}

/* ---------- Month divider between groups ---------- */
.tc-month-divider {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin: .35rem 0 .1rem;
    color: var(--site-saffron-d);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.tc-month-divider::before,
.tc-month-divider::after {
    content: "";
    flex: 1;
    height: 2px;
    background: color-mix(in srgb, var(--site-saffron) 45%, var(--site-line));
    border-radius: 2px;
}

.tour-card .tc-org { justify-content: space-between; align-items: center; }
.tour-card .tc-org > span:first-child { min-width: 0; }

.tc-status {
    flex: none;
    margin-left: auto;
    text-align: right;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
}
.tc-status .nav-link { padding: 0; }

.tc-status .badge {
    display: inline-block;
    background: var(--site-saffron) !important;
    color: #fff !important;
    border: 1px solid transparent;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 999px !important;
    padding: .42rem .8rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
    transition: background .14s ease;
}

.tc-status a:hover .badge { background: var(--site-saffron-d) !important; }

.tc-status .badge.live,
.tc-status:not(.is-static) .badge-success { background: #0ba360 !important; }

.tc-status .fs--2 {
    display: block;
    text-align: right;
    font-size: .66rem;
    font-weight: 600;
    color: #ffe1c4 !important;
    margin: 0 0 .25rem;
}

.tc-status.is-static .badge {
    background: rgba(10, 22, 40, .28) !important;
    border-color: rgba(255, 255, 255, .55);
    color: #fff !important;
    box-shadow: none;
    backdrop-filter: blur(3px);
}

.tc-status.is-static .badge-danger    { border-color: #ffb1a8; color: #ffd9d4 !important; }  /* Completed */
.tc-status.is-static .badge-warning   { border-color: #ffd479; color: #ffeccb !important; }  /* Entry Closed */
.tc-status.is-static .badge-secondary { border-color: rgba(255, 255, 255, .5); color: #edf2f9 !important; }  /* To Open */
.tc-status.is-static .badge-success   { border-color: rgba(255, 255, 255, .75); color: #fff !important; }    /* Invitation Only */

/* wildcard-only white-zone slot (status no longer lives here) */
.tc-cta {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
}

/* ---------- Week Of groups: native <details>, past weeks collapsed ---------- */
.tc-week > summary {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .55rem .95rem .55rem .55rem;
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    color: var(--site-navy);
    list-style: none;
    user-select: none;
    transition: border-color .14s ease, box-shadow .14s ease;
}

/* mini date tile in the week bar — same language as the cards */
.tc-week .wk-tile {
    flex: none;
    width: 44px;
    border-radius: 9px;
    overflow: hidden;
    text-align: center;
    border: 1px solid var(--site-line);
    box-shadow: 0 2px 6px rgba(6, 26, 48, .08);
}

.tc-week .wk-tile .m {
    display: block;
    background: linear-gradient(120deg, var(--site-navy-800), var(--site-navy));
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .12rem 0;
}

.tc-week .wk-tile .d {
    display: block;
    background: #fff;
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.25;
    color: var(--site-ink);
}

.tc-week .wk-label {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.tc-week .wk-eyebrow {
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--site-saffron-d);
}

.tc-week .wk-date {
    font-size: .95rem;
    font-weight: 800;
    color: var(--site-navy);
}

.tc-week > summary::-webkit-details-marker { display: none; }

.tc-week > summary:hover {
    border-color: color-mix(in srgb, var(--site-saffron) 45%, var(--site-line));
    box-shadow: var(--site-shadow-sm);
}

.tc-week[open] > summary {
    border-color: color-mix(in srgb, var(--site-saffron) 45%, var(--site-line));
}

.tc-week .wk-label .fas { color: var(--site-saffron-d); }

.tc-week .wk-count {
    margin-left: auto;
    background: var(--site-blue-050);
    color: var(--site-blue-d);
    border-radius: 999px;
    padding: .2rem .65rem;
    font-size: .74rem;
    font-weight: 600;
    white-space: nowrap;
}

.tc-week .wk-chev {
    color: var(--site-muted);
    font-size: .78rem;
    transition: transform .16s ease;
}

.tc-week[open] .wk-chev { transform: rotate(180deg); }


/* ---------------------------------------------------------------------------
   RANKING / STANDINGS — category pills on the band, toolbar, table polish
--------------------------------------------------------------------------- */
.band-pills { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: 1.15rem; }
.band-pills .nav-link {
    padding: .42rem .95rem !important;
    border-radius: 999px;
    font-weight: 600;
    font-size: .84rem;
    color: #cdd8ec !important;
    background: rgba(255, 255, 255, .1);
    border: none;
    transition: all .14s ease;
    white-space: nowrap;
}
.band-pills .nav-link:hover { background: rgba(255, 255, 255, .22); color: #fff !important; }
.band-pills .nav-link.active {
    background: var(--site-saffron);
    color: #fff !important;
    font-weight: 700;
}
.band-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #fff !important;
    font-size: 1rem;
}
.band-icon:hover { background: rgba(255, 255, 255, .25); }
/* toolbar row between band and table */
.rank-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1rem;
}
.rank-toolbar label { color: var(--site-muted); font-size: .84rem; }

.rank-provisional {
    flex: 0 1 auto;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: .65rem;
    background: #fdefee;
    border: 1px solid #f2c7c2;
    border-left: 4px solid #c62828;
    border-radius: 12px;
    padding: .5rem .95rem;
    box-shadow: 0 2px 10px rgba(198, 40, 40, .1);
    line-height: 1.35;
    text-align: left;
}

.rank-provisional .rp-ico {
    flex: none;
    color: #c62828;
    font-size: 1.15rem;
}

.rank-provisional .rp-title {
    color: #c62828;
    font-weight: 800;
    font-size: .9rem;
    letter-spacing: .01em;
}

.rank-provisional .rp-sub {
    color: #8f2b23;
    font-size: .76rem;
    font-weight: 600;
}

.rank-provisional .rp-link {
    color: var(--site-muted);
    font-size: .72rem;
}

.rank-provisional .rp-link a {
    color: #c62828;
    font-weight: 700;
    text-decoration: underline;
}

@media (max-width: 767.98px) {
    .rank-provisional { order: -1; flex-basis: 100%; }
}

/* ---------- launch welcome modal ---------- */
.aita-welcome { border: none; border-radius: 16px; overflow: hidden; }

.aita-welcome .aw-head {
    display: flex;
    align-items: center;
    background: linear-gradient(150deg, var(--site-navy-800), var(--site-navy));
    color: #fff;
    border-bottom: 3px solid var(--site-saffron);
}

.aita-welcome .aw-head img { background: #fff; border-radius: 10px; padding: 3px; }

.aita-welcome .aw-body { color: var(--site-ink); font-size: .92rem; }

.aita-welcome .aw-contacts {
    list-style: none;
    margin: 0 0 1rem;
    padding: .35rem 0;
}

.aita-welcome .aw-contacts li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
    padding: .45rem .75rem;
    border-left: 3px solid var(--site-saffron);
    background: var(--site-bg-alt);
    margin-bottom: .35rem;
    border-radius: 0 8px 8px 0;
    font-size: .86rem;
}

.aita-welcome .aw-contacts li span { color: var(--site-muted); font-weight: 600; }

.aita-welcome .aw-contacts li a { color: var(--site-blue-d); font-weight: 700; }

.aita-welcome .aw-foot { border-top: 1px solid var(--site-line); }
/* the table sits in a quiet white panel */
.fancyTable {
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: 14px;
    box-shadow: var(--site-shadow-sm);
}
.fancyTable .table { margin-bottom: 0; }
.fancyTable .table td { vertical-align: middle; padding-top: .6rem; padding-bottom: .6rem; }
.fancyTable .player img { border-radius: 9px; border-color: var(--site-line); }
.fancyTable .player a { font-weight: 600; color: var(--site-ink); }
.fancyTable .player a:hover { color: var(--site-blue-d); }
/* movement chips */
.rank { border-radius: 6px; padding: .12rem .4rem; font-size: .74rem !important; }
.rank.up { background: #e5f6ea; color: #1f9d55; }
.rank.down { background: #fdecec; color: #d64545; }

/* Data tables: navy header, calm rows */
.table thead th, table thead th {
    background: var(--site-navy) !important;
    color: rgba(255, 255, 255, .92) !important;
    font-weight: 600;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-color: var(--site-navy) !important;
}
.table tbody tr:hover { background: var(--site-blue-050); }
.table td { color: var(--site-ink); border-color: var(--site-line); }
.tour-row .flex-grow-1 * {
    color:black
}

/* Pagination inherits compat vars; sharpen the active state */
.pagination .page-item.active .page-link {
    background: var(--site-navy);
    border-color: var(--site-navy);
}

/* ---------------------------------------------------------------------------
   FOOTER — navy-900 with tricolor top edge
--------------------------------------------------------------------------- */
footer, .footer {
    background: var(--site-navy-900) !important;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg,
        var(--site-saffron) 0 33%, #f4f7fb 33% 66%, var(--site-green) 66% 100%) 1;
}
footer a, .footer a { color: rgba(255, 255, 255, .75); }
footer a:hover, .footer a:hover { color: #fff; }

/* ---------------------------------------------------------------------------
   AUTH PAGES (login / register / forgot / recover) — standalone shells
   Two layouts: .auth-shell (navy side panel + form) and
   .auth-shell.auth-center (single centered card, for short forms)
--------------------------------------------------------------------------- */
.auth-side, .auth-aside {
    background:
        radial-gradient(700px 380px at 80% 20%, rgba(226, 118, 43, .25), transparent 60%),
        radial-gradient(600px 380px at 15% 85%, rgba(31, 111, 214, .32), transparent 60%),
        linear-gradient(160deg, var(--site-navy-900) 0%, var(--site-navy) 60%, var(--site-navy-800) 100%);
}
.auth-side-logo { background: #fff; border-radius: 16px; padding: 10px 14px; height: 88px; width: auto; }
.auth-side-tag {
    color: var(--site-saffron);
    font-weight: 700;
    font-size: .8125rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.auth-shell { display: flex; min-height: 100vh; background: #fff; }
.auth-aside {
    width: min(440px, 36vw);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 2.75rem;
    color: #fff;
}
.auth-aside .auth-side-logo { height: 64px; border-radius: 12px; padding: 6px 10px; }
.auth-aside h2 {
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    letter-spacing: -.02em;
    line-height: 1.18;
}
.auth-aside-copy { color: rgba(255, 255, 255, .75); max-width: 30rem; }
.auth-aside-foot { color: rgba(255, 255, 255, .55); font-size: .78rem; }
.auth-aside-foot a { color: rgba(255, 255, 255, .8); }
.auth-main {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}
.auth-card { width: 100%; max-width: 440px; }
.auth-card-wide { max-width: 560px; }
.auth-eyebrow {
    color: var(--site-saffron-d);
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    display: block;
    margin-bottom: .3rem;
}
.auth-card h3 { font-weight: 800; letter-spacing: -.01em; margin-bottom: .25rem; }
.auth-sub { color: var(--site-muted); font-size: .875rem; margin-bottom: 1.5rem; }
.auth-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--site-muted);
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
}
.auth-back:hover { color: var(--site-ink); }
/* centered variant: soft brand wash behind a floating white card */
.auth-shell.auth-center {
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(800px 400px at 85% 10%, rgba(226, 118, 43, .08), transparent 60%),
        radial-gradient(700px 420px at 10% 95%, rgba(31, 111, 214, .10), transparent 60%),
        var(--site-bg-alt);
}
.auth-center .auth-main { padding: 2rem 1rem; }
.auth-center .auth-card {
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: 18px;
    box-shadow: var(--site-shadow);
    padding: 2.25rem 2.25rem 2rem;
}
/* compact two-column radio group (register category) */
.auth-radio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .3rem .9rem;
}
@media (max-width: 575.98px) { .auth-radio-grid { grid-template-columns: 1fr; } }
@media (max-width: 991.98px) {
    .auth-aside { display: none !important; }
    .auth-main { align-items: flex-start; padding-top: 2rem; }
}
/* card header strip on auth cards (old Falcon "bg-shape") */
.card-header.bg-shape, .card-header.bg-circle-shape {
    background: linear-gradient(120deg, var(--site-navy-900), var(--site-navy-800)) !important;
    border-radius: 16px 16px 0 0;
}
/* old Falcon social-outline buttons -> AITA quiet outline / blue */
.btn-outline-google-plus, .btn-outline-facebook {
    color: var(--site-blue) !important;
    border: 1.5px solid var(--site-blue) !important;
    background: transparent !important;
    font-weight: 600;
}
.btn-outline-google-plus:hover, .btn-outline-facebook:hover {
    background: var(--site-blue) !important;
    color: #fff !important;
}

/* navy logo art needs a white chip on navy card headers + auth panels */
.card-header.bg-shape img, .card-header.bg-circle-shape img {
    background: #fff; border-radius: 12px; padding: 6px 10px; max-height: 64px; width: auto;
}

/* ---------------------------------------------------------------------------
   RANKING LIST — airy row cards with structured columns so wide screens are
   filled, not empty: medal ranks, identity, Born / Tourn. stats, the WTN
   scoreboard panel, gold points. One layout, responsive.
--------------------------------------------------------------------------- */
.rank-toolbar { margin-bottom: .35rem; }

.rank-list { display: flex; flex-direction: column; gap: .35rem; }

.rank-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: 14px;
    padding: .65rem 1.05rem;
    box-shadow: 0 1px 2px rgba(10, 37, 64, .04), 0 8px 22px rgba(10, 37, 64, .07);
    transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.rank-row:hover {
    border-color: color-mix(in srgb, var(--site-blue) 40%, var(--site-line));
    box-shadow: 0 2px 4px rgba(10, 37, 64, .05), 0 14px 32px rgba(10, 37, 64, .12);
    transform: translateY(-1px);
}

.rank-row-empty {
    justify-content: center;
    color: var(--site-muted);
    font-weight: 600;
    padding: 1.4rem;
}

.rr-rank {
    flex: none;
    min-width: 2.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--site-navy);
}

/* medal badges for the podium ranks */
.rr-rank.m1 span, .rr-rank.m2 span, .rr-rank.m3 span {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: .95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
    box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .18), 0 2px 6px rgba(10, 37, 64, .18);
}

.rr-rank.m1 span { background: linear-gradient(135deg, #f7c948, #e39b09); }
.rr-rank.m2 span { background: linear-gradient(135deg, #d9dfe7, #9fabb9); }
.rr-rank.m3 span { background: linear-gradient(135deg, #e6b183, #bd7743); }

.rr-move { flex: none; }

.rr-avatar {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--site-line);
    background: var(--site-bg-alt);
}

.rank-row:hover .rr-avatar { border-color: color-mix(in srgb, var(--site-blue) 45%, var(--site-line)); }

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

.rr-who { flex: 1 1 200px; min-width: 0; }

.rr-name {
    display: block;
    font-weight: 700;
    color: var(--site-ink);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rr-name:hover { color: var(--site-blue-d); }

.rr-sub {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    color: var(--site-muted);
    font-size: .78rem;
}

.rr-sub a { color: var(--site-muted); }
.rr-sub a:hover { color: var(--site-blue-d); }
.rr-sub .dotsep { color: var(--site-line); }
.rr-sub .yob-inline { display: inline-flex; align-items: center; gap: .35rem; }

/* desktop stat columns: label over value, hairline separated */
.rr-stat {
    flex: none;
    min-width: 64px;
    text-align: center;
    padding: 0 .9rem;
    border-left: 1px solid var(--site-line);
}

.rr-stat .l {
    display: block;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--site-muted);
}

.rr-stat .v {
    display: block;
    font-weight: 800;
    font-size: .98rem;
    color: var(--site-ink);
    margin-top: .05rem;
}

/* WTN scoreboard panel — branded, fills real width */
.rr-wtn {
    flex: none;
    display: flex;
    align-items: stretch;
    border: 1px solid color-mix(in srgb, var(--site-navy) 18%, var(--site-line));
    border-radius: 11px;
    overflow: hidden;
    background: #fff;
}

.wtn-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 .55rem;
    background: linear-gradient(150deg, var(--site-navy-800), var(--site-navy));
}

.wtn-brand .wtn-mark { height: 18px; width: auto; }

.wtn-val {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: .3rem .7rem;
    text-align: center;
}

.wtn-val .l {
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--site-muted);
    line-height: 1.1;
}

.wtn-val b {
    font-weight: 800;
    font-size: .95rem;
    color: var(--site-navy);
    line-height: 1.2;
}

.wtn-sep { width: 1px; background: var(--site-line); margin: .35rem 0; }

.rr-points {
    flex: none;
    text-align: right;
    min-width: 118px;
    padding-left: .9rem;
    border-left: 1px solid var(--site-line);
}

.rr-points .pts {
    display: block;
    color: var(--site-saffron-d);
    font-weight: 800;
    font-size: 1.12rem;
    line-height: 1.2;
}

.rr-points .pts small { font-weight: 600; font-size: .68rem; }

.rr-points .rr-meta { display: block; color: var(--site-muted); font-size: .72rem; }

/* calibration: the points/actions section is masked (blurred) on EVERY row —
   visible enough to show the layout, unreadable until rankings settle */
.rank-row .rr-points,
.rank-row .rr-profile,
.rank-row .rr-expand {
    filter: blur(8px);
    opacity: .65;
    pointer-events: none;
    user-select: none;
}

.rr-profile {
    flex: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    color: var(--site-blue-d);
    transition: background .14s ease;
}

.rr-profile:hover { background: var(--site-blue-050); color: var(--site-blue-d); }

/* desktop: sub-line YOB and points-meta tournaments are redundant with the
   stat columns */
@media (min-width: 992px) {
    .rr-sub .yob-inline { display: none; }
    .rr-points .meta-tourn { display: none; }
}

/* tablets: drop the stat columns, keep the WTN panel */
@media (min-width: 768px) and (max-width: 991.98px) {
    .rr-stat { display: none; }
}

/* inline points preview: chevron toggle + full-width expansion panel */
.rr-expand {
    flex: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--site-line);
    border-radius: 999px;
    background: #fff;
    color: var(--site-muted);
    cursor: pointer;
    transition: background .14s ease, color .14s ease;
}

.rr-expand:hover { background: var(--site-blue-050); color: var(--site-blue-d); }

.rr-expand .fas { transition: transform .16s ease; font-size: .78rem; }

.rankingCard.is-open .rr-expand .fas { transform: rotate(180deg); }

.rr-detail {
    flex-basis: 100%;
    display: none;
    background: var(--site-bg-alt);
    border-radius: 10px;
    margin-top: .35rem;
    padding: .3rem .3rem .45rem;
}

.rr-detail .table { background: #fff; margin-bottom: 0; }

/* WTN mark inside the ranking chips */
.wtn-chip .wtn-mark { height: 13px; width: auto; }

/* ---------------------------------------------------------------------------
   POINTS PREVIEW (.rr-detail content) — stat tiles + clean tournament list
--------------------------------------------------------------------------- */
.pv { padding: .45rem; }

.pv-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: .45rem;
    margin-bottom: .55rem;
}

.pv-stat {
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: 10px;
    padding: .45rem .5rem;
    text-align: center;
}

.pv-stat .lbl {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .28rem;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--site-muted);
    white-space: nowrap;
}

.pv-stat .val {
    display: block;
    font-weight: 800;
    font-size: .95rem;
    color: var(--site-ink);
    margin-top: .12rem;
}

.pv-stat.is-hot .val { color: var(--site-saffron-d); }
.pv-stat.is-wtn .val { color: var(--site-blue-d); }
.pv-stat .wtn-mark { height: 12px; width: auto; }

.pv-list {
    background: #fff;
    border: 1px solid var(--site-line);
    border-radius: 10px;
    overflow: hidden;
}

.pv-head,
.pv-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) 52px 52px 84px 60px;
    gap: .5rem;
    align-items: center;
    padding: .42rem .7rem;
    font-size: .76rem;
}

.pv-head {
    background: var(--site-bg-alt);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .62rem;
    color: var(--site-muted);
}

.pv-row { border-top: 1px solid var(--site-line); color: var(--site-ink); }
.pv-row .c-week { color: var(--site-muted); white-space: nowrap; }
.pv-row .c-name { font-weight: 600; min-width: 0; }
.pv-head .c-num, .pv-row .c-num,
.pv-head .c-pos, .pv-row .c-pos { text-align: right; white-space: nowrap; }
.pv-row.is-counted { background: color-mix(in srgb, var(--site-saffron) 7%, #fff); }
.pv-row.is-bonus .c-name { font-weight: 800; }
.pv-row .c-total { font-weight: 800; color: var(--site-saffron-d); }

.pv-note {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .7rem;
    margin: 0;
    font-size: .68rem;
    color: var(--site-muted);
    border-top: 1px solid var(--site-line);
}

.pv-dot {
    width: 11px;
    height: 11px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--site-saffron) 25%, #fff);
    border: 1px solid var(--site-saffron);
}

.pv-empty {
    margin: .2rem 0 .4rem;
    text-align: center;
    color: var(--site-muted);
    font-size: .8rem;
    padding: .55rem;
}

/* mobile: header collapses; each row becomes a labelled mini-card */
@media (max-width: 767.98px) {
    .pv-head { display: none; }
    .pv-row {
        grid-template-columns: repeat(2, 1fr);
        gap: .18rem .6rem;
        padding: .55rem .7rem;
    }
    .pv-row .c-week { grid-column: 1 / -1; font-size: .68rem; }
    .pv-row .c-name { grid-column: 1 / -1; }
    .pv-row .c-num, .pv-row .c-pos { text-align: left; font-size: .72rem; }
    .pv-row [data-l]::before { content: attr(data-l) ": "; color: var(--site-muted); font-weight: 600; }
}

/* gender segment on the ranking band */
.band-gender {
    display: inline-flex;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    padding: 3px;
    flex: none;
}

.band-gender .bg-btn {
    border: none;
    background: transparent;
    color: #cdd8ec;
    font-weight: 700;
    font-size: .8rem;
    padding: .32rem .95rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background .14s ease, color .14s ease;
}

.band-gender .bg-btn.active {
    background: #fff;
    color: var(--site-navy);
}

.band-pills [data-gender].is-gender-hidden { display: none !important; }

/* ---------------------------------------------------------------------------
   LIST ROWS (.tour-row, monthly/weekly calendar list) — the date tile lives
   on here (cards moved their date into the tc-fact grid); navy band + day.
--------------------------------------------------------------------------- */
.tour-row .tc-date {
    flex: none;
    width: 56px;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    border: 1px solid var(--site-line);
    box-shadow: 0 2px 8px rgba(6, 26, 48, .08);
}

.tour-row .tc-date .m {
    display: block;
    background: linear-gradient(120deg, var(--site-navy-800), var(--site-navy));
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .18rem 0;
}

.tour-row .tc-date .d {
    display: block;
    background: #fff;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--site-ink);
    padding: .12rem 0 .18rem;
}

/* status text in list rows is on white — keep it a quiet soft pill */
.tour-row .badge-beacon .badge {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 999px;
    padding: .3rem .65rem;
}

/* ranking rows on phones — stat columns fold away (YOB lives in the
   sub-line), compact WTN panel, actions right */
@media (max-width: 767.98px) {
    .rank-row { padding: .6rem .8rem .7rem; row-gap: .6rem; column-gap: .55rem; }
    .rr-rank { min-width: 1.6rem; font-size: 1rem; }
    .rr-rank.m1 span, .rr-rank.m2 span, .rr-rank.m3 span { width: 27px; height: 27px; font-size: .82rem; }
    .rr-avatar { width: 38px; height: 38px; }
    .rr-who { flex: 1 1 0; min-width: 0; }
    .rr-name { white-space: normal; }
    .rr-sub { gap: .3rem; }
    .rr-stat { display: none; }
    /* identity line carries the actions top-right */
    .rr-profile { order: 1; width: 32px; height: 32px; margin-left: 0; }
    .rr-expand { order: 2; width: 32px; height: 32px; }
    /* explicit flex line-break: identity above, numbers line below */
    .rank-row::after { content: ""; order: 3; flex-basis: 100%; height: 0; }
    /* numbers line: WTN panel (its regular light styling) left, points right */
    .rr-wtn { order: 4; }
    .wtn-brand .wtn-mark { height: 14px; }
    .rr-wtn .wtn-val { padding: .24rem .55rem; }
    .rr-wtn .wtn-val b { font-size: .88rem; }
    .rr-points {
        order: 5;
        flex: 0 1 auto;
        min-width: 0;
        max-width: none;
        margin-left: auto;
        border-left: none;
        padding-left: 0;
    }
    .rr-points .pts { font-size: 1rem; }
    .rr-points .rr-meta { font-size: .64rem; }
    .rr-detail { order: 9; }
}
