/* =========================================================================
   TenVet — "COURTSIDE" experimental redesign
   -------------------------------------------------------------------------
   A bold, opinionated visual overhaul loaded on top of the existing stack.
   Direction: modern sport-editorial. Deep forest green + electric lime,
   warm paper background, expressive display type (Space Grotesk) over a
   clean readable body (Inter). Confident spacing, layered depth, soft motion.
   Functionality/markup untouched — this only restyles.
   ========================================================================= */

:root {
    /* Brand-rooted palette, pushed further */
    --c-green:        #57a13d;   /* original brand green (kept as anchor) */
    --c-green-600:    #47913140; /* translucent helper */
    --c-forest:       #0e2a1e;   /* deep forest — primary dark */
    --c-forest-2:     #143a28;
    --c-pine:         #1c5138;
    --c-lime:         #c8f03c;   /* electric accent */
    --c-lime-soft:    #e6f6a8;
    --c-paper:        #f5f4ec;   /* warm paper background */
    --c-paper-2:      #ecebe0;
    --c-cream:        #fbfaf4;
    --c-ink:          #12211a;   /* near-black green ink */
    --c-ink-soft:     #47564e;
    --c-clay:         #b5432f;   /* secondary warm accent (from site red) */

    --font-display: "SrbijaSans", Arial, sans-serif;   /* restored previous font */
    --font-body:    "SrbijaSans", Arial, sans-serif;   /* restored previous font */

    /* Share the modern layer's scale: panels 12px, controls 8px. */
    --r-lg: var(--tvs-radius);
    --r-md: var(--tvs-radius);
    --r-sm: var(--tvs-radius-sm);
    --r-pill: var(--tvs-radius-pill);

    --sh-sm: 0 2px 8px rgba(14, 42, 30, 0.08);
    --sh-md: 0 18px 40px -18px rgba(14, 42, 30, 0.35);
    --sh-lg: 0 40px 80px -30px rgba(14, 42, 30, 0.45);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ------------------------------------------------------------------ base */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body) !important;
    background-color: var(--c-paper);
    color: var(--c-ink);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    padding-top: 99px;             /* clear the fixed navbar (99px) on all pages */
}
/* The landing hero is full-bleed: pull it back under the nav. */
.rx-hero { margin-top: -99px; }
@media (max-width: 991px) {
    body { padding-top: 84px; }
    .rx-hero { margin-top: -84px; }
}

/* subtle paper texture using layered gradients */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60vw 60vw at 88% -8%, rgba(200, 240, 60, 0.10), transparent 60%),
        radial-gradient(50vw 50vw at -10% 12%, rgba(28, 81, 56, 0.08), transparent 55%);
    pointer-events: none;
}

h1, h2, h3, h4, h5, h6,
.tm-section-title, .tm-section-title-2, .tm-article-title-1,
.tm-article-title-2, .tm-article-title-3, .card-title {
    font-family: var(--font-display) !important;
    letter-spacing: -0.02em;
    color: var(--c-ink);
    line-height: 1.05;
}

p { color: var(--c-ink-soft); }

a { color: var(--c-pine); transition: color 0.2s var(--ease); }
a:hover { color: var(--c-green); }

/* keyboard focus */
a:focus-visible, button:focus-visible, .btn:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--c-lime);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------- top nav */
/* Navbar reverted to the previous (modern.css) styling per request —
   the experimental glass floating nav rules were removed so the familiar
   sticky navbar returns. */

/* ------------------------------------------------------------- buttons */
.btn, .tm-btn-white-bordered, .tm-btn-green-bordered {
    font-family: var(--font-display) !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    border-radius: var(--r-sm) !important;
    text-transform: none !important;
    transition: transform 0.18s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease) !important;
}
.btn-primary, .tm-btn-primary {
    background: var(--c-forest) !important;
    border: 2px solid var(--c-forest) !important;
    color: var(--c-lime) !important;
    padding: 13px 28px !important;
    font-size: 1rem !important;
    box-shadow: var(--sh-md);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--c-pine) !important;
    border-color: var(--c-pine) !important;
    transform: translateY(-2px);
    box-shadow: var(--sh-lg);
}
/* lime CTA variant on dark backgrounds */
.tm-btn-white-bordered {
    background: var(--c-lime) !important;
    border: 2px solid var(--c-lime) !important;
    color: var(--c-forest) !important;
    padding: 13px 30px !important;
    font-size: 1.02rem !important;
    box-shadow: 0 14px 30px -12px rgba(200, 240, 60, 0.7);
}
.tm-btn-white-bordered:hover {
    background: var(--c-lime-soft) !important;
    border-color: var(--c-lime-soft) !important;
    color: var(--c-forest) !important;
    transform: translateY(-2px);
}
.tm-btn-green-bordered {
    background: transparent !important;
    border: 2px solid var(--c-forest) !important;
    color: var(--c-forest) !important;
    padding: 12px 26px !important;
}
.tm-btn-green-bordered:hover { background: var(--c-forest) !important; color: var(--c-lime) !important; }

/* On the dark hero, the outlined (login) button must use the lime accent so it
   is visible against the dark background. */
.rx-hero__cta .tm-btn-green-bordered {
    background: transparent !important;
    border-color: var(--c-lime) !important;
    color: var(--c-lime) !important;
}
.rx-hero__cta .tm-btn-green-bordered:hover {
    background: var(--c-lime) !important;
    border-color: var(--c-lime) !important;
    color: var(--c-forest) !important;
}

/* ------------------------------------------------------------- forms */
.form-control, .tm-select, select.form-control {
    border-radius: var(--r-sm) !important;
    border: 1.5px solid rgba(14, 42, 30, 0.16) !important;
    background: var(--c-cream) !important;
    font-size: 1rem !important;
    padding: 0.75rem 1rem !important;
    color: var(--c-ink) !important;
}
.form-control:focus {
    border-color: var(--c-green) !important;
    box-shadow: 0 0 0 4px rgba(87, 161, 61, 0.18) !important;
}
label { font-family: var(--font-display); font-weight: 600; color: var(--c-forest) !important; }

/* Search-form fields have an absolutely-positioned icon on the left; keep
   enough left padding so the icon never overlaps the text/placeholder. */
.tm-form-element > .form-control,
.tm-form-element > .tm-select,
.tm-search-form .form-control,
.tm-search-form .tm-select { padding-left: 48px !important; }

/* ------------------------------------------------------------- sections */
.tm-section { min-height: auto !important; }
.tm-section-2 {
    background: transparent !important;
    padding: 0 !important;
}
.green-line { display: none; }              /* retire the heavy green bars globally */
.tm-section-down-arrow { display: none !important; }

.tm-section-title { font-size: clamp(2rem, 5vw, 3.4rem) !important; color: var(--c-ink) !important; }
.tm-section-title-2 { font-size: clamp(1.8rem, 4vw, 3rem) !important; }
.tm-color-primary { color: var(--c-green) !important; }
.tm-color-primary2 { color: var(--c-pine) !important; }

/* Headings placed directly on the dark textured image sections need light text. */
.tm-section.tm-bg-img01,
.tm-section.tm-bg-img0,
.tm-section.tm-bg-img,
.tm-section.tm-bg-img001,
.tm-section.tm-bg-img0001 { color: var(--c-cream); }
.tm-section.tm-bg-img01 > .pb-3 .tm-section-title,
.tm-section.tm-bg-img01 > .pb-3 .tm-section-title-2,
.tm-section.tm-bg-img0 > .container > .row > div > .tm-section-title,
.tm-section.tm-bg-img001 .tm-section-title {
    color: var(--c-cream) !important;
}

/* ------------------------------------------------------------- cards */
.card, .tm-bg-white-shadow, .tm-media-container {
    background: var(--c-cream) !important;
    border: 1px solid rgba(14, 42, 30, 0.08) !important;
    border-radius: var(--r-lg) !important;
    box-shadow: var(--sh-md) !important;
    overflow: hidden;
}
.card-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(14, 42, 30, 0.08) !important;
    font-family: var(--font-display);
}
.tm-article {
    background: var(--c-cream);
    border: 1px solid rgba(14, 42, 30, 0.08);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.tm-article:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--sh-lg) !important;
}
.tm-article .fa { color: var(--c-green) !important; }

/* news / tournament feed rows */
.tm-media-1 {
    background: var(--c-cream) !important;
    border: 1px solid rgba(14, 42, 30, 0.08) !important;
    border-left: 5px solid var(--c-green) !important;
    border-radius: var(--r-md) !important;
    padding: 18px 20px !important;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease) !important;
}
.tm-media-1:hover {
    transform: translateX(4px) !important;
    border-left-color: var(--c-lime) !important;
    box-shadow: var(--sh-md) !important;
}

/* scroll containers */
.scroll-container { scrollbar-width: thin; scrollbar-color: var(--c-green) transparent; }
.scroll-container::-webkit-scrollbar { width: 8px; }
.scroll-container::-webkit-scrollbar-thumb { background: var(--c-green); border-radius: 999px; }

/* ------------------------------------------------------------- footer */
footer.tm-bg-dark-blue, .tm-bg-dark-blue {
    background: var(--c-forest) !important;
    position: relative;
}
footer.tm-bg-dark-blue p, .tm-bg-dark-blue p { color: rgba(230, 246, 168, 0.85) !important; font-family: var(--font-body); }

/* ------------------------------------------------------------- tables (keep rounded, restyle colors) */
.table thead th { background: var(--c-forest) !important; color: var(--c-lime) !important; font-family: var(--font-display); }

/* ------------------------------------------------------------- images fit */
img { max-width: 100%; }

/* =========================================================================
   Landing hero + bespoke landing components (used by index.html redesign)
   ========================================================================= */
.rx-hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    color: var(--c-cream);
    overflow: hidden;
    padding: 150px 0 50px;
}
.rx-hero__bg {
    position: absolute; inset: 0; z-index: 0;
    background-size: cover; background-position: center 30%;
}
.rx-hero__bg::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(14,42,30,0.55) 0%, rgba(14,42,30,0.82) 62%, rgba(14,42,30,0.96) 100%);
}
.rx-hero__inner { position: relative; z-index: 2; }
.rx-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display); font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.8rem;
    color: var(--c-lime);
    background: rgba(200, 240, 60, 0.10);
    border: 1px solid rgba(200, 240, 60, 0.35);
    padding: 8px 16px; border-radius: var(--r-pill);
}
.rx-hero h1, .rx-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.6rem, 8vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    color: var(--c-cream) !important;
    margin: 22px 0 18px;
}
.rx-hero h1 .rx-lime { color: var(--c-lime) !important; }
.rx-hero__lede { font-size: 1.15rem; color: rgba(251,250,244,0.86) !important; max-width: 44ch; }
.rx-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.rx-hero__note { font-size: 0.85rem; color: rgba(251,250,244,0.6) !important; margin-top: 22px; max-width: 52ch; }

.rx-hero__scroll {
    position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
    z-index: 2; color: var(--c-lime); font-size: 1.6rem; animation: rxbob 1.8s var(--ease) infinite;
}
@keyframes rxbob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,10px)} }

/* section shell */
.rx-section { padding: clamp(60px, 9vw, 130px) 0; }
.rx-kicker {
    font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.16em; font-size: 0.82rem; color: var(--c-green);
    display: inline-block; margin-bottom: 12px;
}
.rx-heading { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; }

/* big feature cards */
.rx-feature {
    display: block; height: 100%;
    background: var(--c-cream);
    border: 1px solid rgba(14,42,30,0.08);
    border-radius: var(--r-lg);
    padding: 34px 30px;
    box-shadow: var(--sh-sm);
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), background 0.28s var(--ease);
    position: relative; overflow: hidden;
    color: var(--c-ink);
}
.rx-feature::before {
    content: ""; position: absolute; right: -40px; top: -40px;
    width: 140px; height: 140px; border-radius: 50%;
    background: radial-gradient(circle, rgba(200,240,60,0.35), transparent 70%);
    opacity: 0; transition: opacity 0.3s var(--ease);
}
.rx-feature:hover {
    transform: translateY(-10px);
    box-shadow: var(--sh-lg);
    color: var(--c-ink);
    text-decoration: none;
}
.rx-feature:hover::before { opacity: 1; }
.rx-feature__icon {
    width: 66px; height: 66px; border-radius: var(--r-sm);
    display: grid; place-items: center;
    background: var(--c-forest); color: var(--c-lime);
    font-size: 1.7rem; margin-bottom: 20px;
    transition: transform 0.3s var(--ease);
}
.rx-feature:hover .rx-feature__icon { transform: rotate(-8deg) scale(1.06); }
.rx-feature h3 { font-size: 1.5rem; margin-bottom: 10px; }
.rx-feature p { color: var(--c-ink-soft); margin-bottom: 16px; }
.rx-feature__link { font-family: var(--font-display); font-weight: 600; color: var(--c-green); }

/* dark band (membership CTA) */
.rx-band {
    background: var(--c-forest);
    color: var(--c-cream);
    border-radius: var(--r-lg);
    padding: clamp(40px, 7vw, 80px);
    position: relative; overflow: hidden;
}
.rx-band::after {
    content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px;
    border-radius: 50%; background: radial-gradient(circle, rgba(200,240,60,0.18), transparent 65%);
}
.rx-band h2 { color: var(--c-cream) !important; font-size: clamp(2rem, 5vw, 3.4rem); }
.rx-band .rx-lime { color: var(--c-lime) !important; }

/* feed panels */
.rx-panel {
    background: var(--c-cream);
    border: 1px solid rgba(14,42,30,0.08);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
    overflow: hidden;
}
.rx-panel__head {
    padding: 22px 26px;
    background: linear-gradient(100deg, var(--c-forest), var(--c-pine));
    color: var(--c-cream);
    display: flex; align-items: center; justify-content: space-between;
}
.rx-panel__head h2 { color: var(--c-cream) !important; font-size: 1.5rem; margin: 0; }
.rx-panel__body { padding: 18px; max-height: 520px; overflow-y: auto; }

/* responsive nav pieces on redesign */
@media (max-width: 991px) {
    .tm-top-bar .row {
        border-radius: var(--r-lg);
        padding: 8px 10px;
    }
    .navbar-collapse {
        background: var(--c-cream) !important;
        border-radius: var(--r-lg);
        margin-top: 10px;
        box-shadow: var(--sh-lg);
        border: 1px solid rgba(14,42,30,0.10);
    }
}

/* Tablet */
@media (max-width: 991px) {
    .rx-hero {
        min-height: 82vh;
        padding: 80px 0 50px;
    }
}

/* Phone */
@media (max-width: 576px) {
    .rx-hero {
        min-height: 75vh;
        padding: 60px 0 35px;
    }

    .rx-hero h1 {
        font-size: 2.7rem;
        line-height: 0.98;
        margin: 16px 0;
    }

    .rx-hero__lede {
        font-size: 1rem;
        line-height: 1.5;
    }

    .rx-hero__cta {
        margin-top: 22px;
        gap: 10px;
        flex-direction: row;
        align-items: center;
    }

    .rx-hero__cta .btn,
    .rx-hero__cta a {
        width: auto;
    }

    .rx-hero__note {
        font-size: 0.8rem;
        margin-top: 16px;
    }

    .rx-hero__scroll {
        bottom: 12px;
    }
}
/* =========================================================
   TOURNAMENT TABLE — FLOATING ROWS
   ========================================================= */

.tvs-round-table {
    width: 100%;
    margin-top: 30px;
    padding-bottom: 30px;
}

.tvs-tournament-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 5px;
    text-align: center;
}


/* =========================
   TABLE HEADER
   ========================= */

.tvs-tournament-table thead th {
    background-color: var(--c-forest);
    color: var(--c-lime);
    border: none;
    padding: 15px 14px;
    font-weight: normal;
}


/* =========================
   FLOATING TOURNAMENT ROWS
   ========================= */

.tvs-tournament-table tbody tr {
    background-color: white;
    box-shadow: 0 5px 18px rgba(14, 90, 45, 0.16);
    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                background-color 0.2s ease;
}

/* Cells */

.tvs-tournament-table tbody td {
    border: none;
    padding: 17px 14px;
    vertical-align: middle;
}


/* Rounded ends of each floating row */

.tvs-tournament-table tbody td:first-child {
    border-radius: 0;
}

.tvs-tournament-table tbody td:last-child {
    border-radius: 0;
}


/* =========================
   HOVER / SELECTED EFFECT
   ========================= */

.tvs-tournament-table tbody tr:hover {
    background-color: #f5f8ec;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(14, 90, 45, 0.40);
}


/* =========================
   TOURNAMENT NAME
   ========================= */

.tvs-tournament-table tbody td:first-child {
    color: #005600;
    font-weight: 600;
}


/* =========================
   LINKS
   ========================= */

.tvs-tournament-table tbody a {
    color: #005600;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.tvs-tournament-table tbody a:hover {
    color: #8aad24;
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {

    .tvs-round-table {
        overflow-x: auto;
    }

    .tvs-tournament-table {
        min-width: 700px;
    }

    .tvs-tournament-table thead th {
        padding: 12px 10px;
        font-size: 0.8rem;
    }

    .tvs-tournament-table tbody td {
        padding: 14px 10px;
        font-size: 0.85rem;
    }
}

/* =========================================================
   MEMBERS — COURTSIDE DIRECTORY
   ========================================================= */

.members-section {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 20px 50px 70px;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

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

.member-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--c-cream);
    border: 1px solid rgba(14, 42, 30, 0.09);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--sh-sm);
    transition:
        transform 0.25s var(--ease),
        box-shadow 0.25s var(--ease);
}

.member-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--sh-lg);
}

/* ---------------------------------------------------------
   PHOTO
   --------------------------------------------------------- */

.member-card__image-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.member-card__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4.6;
    overflow: hidden;
    background: var(--c-paper-2);
}

.member-card__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transition: transform 0.45s var(--ease);
}

.member-card:hover .member-card__image {
    transform: scale(1.04);
}

/* ---------------------------------------------------------
   CARD CONTENT
   --------------------------------------------------------- */
.member-card__body {
    padding: 18px 20px 20px;
    background: var(--c-cream);
}

.member-card__name {
    display: block;
    margin: -18px -20px 18px;
    padding: 16px 20px;

    background: var(--c-forest);
    color: var(--c-lime) !important;

    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;

    text-decoration: none !important;
    transition: background 0.2s var(--ease),
                color 0.2s var(--ease);
}

.member-card__name:hover {
    background: var(--c-pine);
    color: var(--c-lime-soft) !important;
}

/* ---------------------------------------------------------
   DETAILS
   --------------------------------------------------------- */

.member-card__details {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 2px;
    border-top: none;
}

.member-detail {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(14, 42, 30, 0.08);
}

.member-detail:last-child {
    border-bottom: none;
}

.member-detail__label {
    flex-shrink: 0;
    color: var(--c-green);
    font-family: var(--font-display);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.member-detail__value {
    color: var(--c-ink);
    font-size: 0.9rem;
    font-weight: 500;
    text-align: right;
}

/* ---------------------------------------------------------
   LIME ACCENT
   --------------------------------------------------------- */

.member-card__accent {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 4px;
    background: var(--c-lime);
    transition: width 0.3s var(--ease);
}

.member-card:hover .member-card__accent {
    width: 100%;
}

/* =========================================================
   MEMBERS PAGE HEADER
   ========================================================= */

.my-div.tm-section {
    background:
        radial-gradient(
            circle at 90% 0%,
            rgba(200, 240, 60, 0.10),
            transparent 30%
        ),
        var(--c-paper) !important;
}

.my-div .tm-section-title {
    margin: 0;
    color: var(--c-forest) !important;
    font-size: clamp(2.4rem, 5vw, 4rem) !important;
    font-weight: 700;
}

/* ---------------------------------------------------------
   SEARCH
   --------------------------------------------------------- */

.my-div form {
    margin-top: 10px;
    margin-bottom: 15px;
}

.my-div #years {
    height: 52px;
}

.my-div #btnn {
    height: 52px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1200px) {
    .members-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .members-section {
        padding-left: 35px;
        padding-right: 35px;
    }
}

@media (max-width: 900px) {
    .members-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .members-section {
        padding-left: 25px;
        padding-right: 25px;
    }
}

@media (max-width: 576px) {
    .members-section {
        padding: 10px 16px 45px;
    }

    .members-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .member-card__image-wrap {
        aspect-ratio: 4 / 4.2;
    }

    .member-card__body {
        padding: 17px 18px 16px;
    }

    .member-card__name {
        font-size: 1.15rem;
    }
}
/* =========================================================
   MEMBERS SEARCH
   ========================================================= */

.members-search {
    width: 100%;
    max-width: 850px;
    margin: 35px auto 35px;
    padding: 0 20px;
}

.members-search form {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.members-search__input {
    flex: 1;
}

.members-search__input .form-control {
    height: 52px;
    margin: 0;
}

.members-search__button {
    flex: 0 0 auto;
    height: 52px;
    padding-left: 28px !important;
    padding-right: 28px !important;
}

/* phone */
@media (max-width: 576px) {
    .members-search {
        padding: 0 16px;
        margin-bottom: 25px;
    }

    .members-search form {
        gap: 8px;
    }

    .members-search__button {
        padding-left: 18px !important;
        padding-right: 18px !important;
    }
}

.versus-select {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 48px;

    box-sizing: border-box !important;

    border-radius: var(--r-sm);
    border: 1.5px solid rgba(14,42,30,.16);
    background: var(--c-cream);
    color: var(--c-ink);
    font-size: 1rem;

    padding: 0 12px;
    line-height: normal;
}
.versus-select:focus {
    border-color: var(--c-green);
    box-shadow: 0 0 0 4px rgba(87,161,61,.18);
    outline: none;
}
.versus-card .card-header {
    padding: 14px !important;
    overflow: hidden;
    box-sizing: border-box;
}

/* Tournament header */

.tournament-header {
    background: var(--c-cream);
    border: 1px solid rgba(14, 42, 30, .09);
    border-radius: var(--r-md);
    box-shadow: var(--sh-sm);
    padding: 25px 30px 20px;
}

.tournament-title {
    margin: 0;
    color: var(--c-forest) !important;
    font-family: var(--font-display) !important;
    font-size: 1.8rem;
    font-weight: 700 !important;
    line-height: 1.2;
}

.tournament-header hr {
    margin: 18px 0;
    border: 0 !important;
    border-top: 1px solid rgba(14, 42, 30, .12) !important;
}

.tournament-header .info-container {
    padding: 7px 15px;
}

.tournament-header .info-container h6 {
    margin: 0;
    font-size: .9rem;
    line-height: 1.4;
}

.tournament-header .info-label {
    color: var(--c-green) !important;
    font-weight: 700;
}

.tournament-header .info-value {
    color: var(--c-ink) !important;
    font-weight: 500;
}

.tournament-button {
    border: none !important;
    border-radius: var(--r-sm) !important;
    padding: 8px 18px !important;
    font-family: var(--font-display) !important;
    font-size: .85rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

.tournament-button a {
    color: inherit !important;
    text-decoration: none !important;
}

.tournament-button--apply {
    background: var(--c-forest) !important;
    color: var(--c-lime) !important;
}

.tournament-button--apply:hover {
    background: var(--c-pine) !important;
}

.tournament-button--cancel {
    background: var(--c-clay) !important;
    color: white !important;
}

.tournament-button--cancel:hover {
    background: #963827 !important;
}

@media (max-width: 767px) {
    .tournament-header {
        margin: 0 15px;
        padding: 20px;
    }

    .tournament-title {
        font-size: 1.5rem;
    }

    .tournament-header .info-container {
        padding: 6px 10px;
    }
}

/* Classic brand colors only: keep the current layout and component sizing. */
.btn-primary, .tm-btn-primary,
.tm-btn-white-bordered,
.tournament-button--apply {
    background: var(--c-green) !important;
    border-color: var(--c-green) !important;
    color: #fff !important;
}

.btn-primary:hover, .btn-primary:focus,
.tm-btn-primary:hover, .tm-btn-primary:focus,
.tm-btn-white-bordered:hover, .tm-btn-white-bordered:focus,
.tournament-button--apply:hover, .tournament-button--apply:focus,
.tm-btn-green-bordered:hover {
    background: #3c702c !important;
    border-color: #3c702c !important;
    color: #fff !important;
}

.tm-btn-white-bordered {
    box-shadow: var(--sh-md);
}

.table thead th, .tvs-tournament-table thead th,
.member-card__name,
.rx-feature__icon,
.rx-band,
.rx-panel__head,
footer.tm-bg-dark-blue, .tm-bg-dark-blue {
    background: var(--c-green) !important;
    color: #fff !important;
}

.member-card__name:hover {
    background: #3c702c !important;
    color: #fff !important;
}

.member-card__accent {
    background: var(--c-green);
}

.rx-hero h1 .rx-lime,
.rx-eyebrow, .rx-hero__scroll,
.rx-band h2, .rx-band p, .rx-band .rx-lime,
.rx-panel__head h2, .rx-panel__head a, .rx-panel__head .rx-kicker,
footer.tm-bg-dark-blue p, .tm-bg-dark-blue p, .tm-bg-dark-blue a {
    color: #fff !important;
}

.rx-hero__cta .tm-btn-green-bordered {
    border-color: #fff !important;
    color: #fff !important;
}

.rx-hero__cta .tm-btn-green-bordered:hover {
    background: var(--c-green) !important;
    border-color: var(--c-green) !important;
    color: #fff !important;
}

/* Component corners: rounded boundaries, square internal joins. */
.player-summary-panel,
.table-responsive,
.tvs-round-table {
    border-radius: var(--r-md);
}

.green-line {
    border-radius: 0;
}

.table-responsive .table tbody tr td:first-child,
.table-responsive .table tbody tr td:last-child,
.tvs-round-table .table tbody tr td:first-child,
.tvs-round-table .table tbody tr td:last-child {
    border-radius: 0;
}

/* The profile navigation is one joined group, stacked below lg. */
.profile-nav-card.card {
    border-radius: 0 !important;
}
.profile-nav-card--first.card {
    border-radius: var(--r-md) var(--r-md) 0 0 !important;
}
.profile-nav-card--last.card {
    border-radius: 0 0 var(--r-md) var(--r-md) !important;
}
.profile-nav-card > .card-header:first-child {
    border-radius: inherit !important;
}
@media (min-width: 992px) {
    .profile-nav-card--first.card {
        border-radius: var(--r-md) 0 0 var(--r-md) !important;
    }
    .profile-nav-card--last.card {
        border-radius: 0 var(--r-md) var(--r-md) 0 !important;
    }
}

/* Round-robin matrices use cell boundaries, not the generic row borders. */
.table-responsive > .table.round-robin-table {
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    text-align: center;
}
.table-responsive .table.round-robin-table tbody tr td {
    border: 0;
    border-right: 1px solid var(--tvs-border);
    border-bottom: 1px solid var(--tvs-border);
    border-radius: 0;
    background: var(--c-cream);
    vertical-align: middle;
}
.table-responsive .table.round-robin-table tbody tr td:first-child {
    text-align: left;
    font-weight: 600;
}
.table-responsive .table.round-robin-table tbody tr td:last-child {
    border-right: 0;
}
.table-responsive .table.round-robin-table tbody tr:last-child td {
    border-bottom: 0;
}
.table-responsive .table.round-robin-table td.round-robin-win {
    box-shadow: inset 0 0 0 2px #57a13d;
}
.table-responsive .table.round-robin-table td.round-robin-loss {
    box-shadow: inset 0 0 0 2px #951b27;
}

/* Login */

.login-actions {
    align-items: center;
    margin-top: 10px;
}

.login-button {
    display: flex;
    align-items: center;
}

.register-link,
.help-link {
    text-align: center;
    line-height: 1.4;
}

.login-help {
    align-items: center;
    margin-top: 8px;
}

@media (max-width: 767px) {
    .login-actions {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .login-actions .login-button,
    .login-actions .register-link {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }

    .login-button {
        justify-content: center;
    }

    .register-link {
        padding: 0 10px;
    }

    .login-help {
        margin-top: 15px;
    }

    .login-help > div:first-child {
        display: none;
    }

    .login-help .help-link {
        width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        padding: 0 10px;
    }
}
