/* /assets/css/member-clubs.css */

.page--member-clubs .site-main {
    box-sizing: border-box;
    padding: 20px;
}

.member-clubs-page {
    position: relative;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding-bottom: 34px;
}

.member-clubs-hero,
.member-clubs-section {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 166, 58, 0.24);
    background-color: rgba(8, 13, 10, 0.94);
    background-image:
        linear-gradient(135deg, rgba(8, 13, 10, 0.84), rgba(12, 17, 13, 0.92)),
        var(--member-clubs-container-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 232, 0.07),
        0 18px 34px rgba(0, 0, 0, 0.24);
}

.member-clubs-hero {
    --member-clubs-container-image: url("/assets/images/container5.png");

    margin-bottom: 20px;
    padding: clamp(24px, 3.2vw, 38px);
    border-radius: 28px;
}

.member-clubs-section {
    padding: clamp(22px, 3vw, 34px);
    border-radius: 28px;
}

.member-clubs-section + .member-clubs-section {
    margin-top: 20px;
}

.member-clubs-section--clubs {
    --member-clubs-container-image: url("/assets/images/container2.png");
}

.member-clubs-section--connections {
    --member-clubs-container-image: url("/assets/images/container1.png");
}

.member-clubs-section--supporters {
    --member-clubs-container-image: url("/assets/images/container4.png");
}

.member-clubs-hero::before,
.member-clubs-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(140deg, rgba(255, 247, 232, 0.07), rgba(255, 247, 232, 0.015) 34%, transparent 62%),
        radial-gradient(circle at top right, rgba(212, 166, 58, 0.13), transparent 30%);
    pointer-events: none;
}

.member-clubs-hero > *,
.member-clubs-section > * {
    position: relative;
    z-index: 1;
}

.member-clubs-hero__eyebrow,
.member-clubs-section__eyebrow {
    margin: 0 0 10px;
    color: rgba(212, 166, 58, 0.9);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.member-clubs-hero__title,
.member-clubs-section__title {
    margin: 0;
    color: #fff7e8;
    font-family: "Cormorant Garamond", Georgia, serif;
    line-height: 0.96;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.38);
}

.member-clubs-hero__title {
    font-size: clamp(2.35rem, 5vw, 4.6rem);
}

.member-clubs-section__title {
    font-size: clamp(1.85rem, 3vw, 3rem);
}

.member-clubs-hero__summary,
.member-clubs-section__intro {
    max-width: 840px;
    margin: 14px 0 0;
    color: rgba(244, 240, 228, 0.91);
    font-family: "Inter", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.62;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.36);
}

.member-clubs-section__head {
    margin-bottom: 20px;
}

.member-clubs-grid {
    display: grid;
    gap: 12px;
}

.member-clubs-grid--clubs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.member-clubs-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    color: rgba(255, 247, 232, 0.94);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    border: 1px solid rgba(212, 166, 58, 0.18);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(19, 25, 20, 0.92), rgba(10, 14, 11, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 232, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.18);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease,
        color 180ms ease;
}

.member-clubs-link--button {
    appearance: none;
    cursor: pointer;
}

.member-clubs-link:hover,
.member-clubs-link:focus-visible {
    color: #ffffff;
    border-color: rgba(212, 166, 58, 0.46);
    box-shadow:
        inset 0 1px 0 rgba(255, 247, 232, 0.1),
        0 14px 28px rgba(0, 0, 0, 0.24);
    outline: none;
    transform: translateY(-2px);
}

.member-clubs-link__meta {
    flex: 0 0 auto;
    padding: 6px 9px;
    color: rgba(212, 166, 58, 0.92);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    border: 1px solid rgba(212, 166, 58, 0.18);
    border-radius: 999px;
    background: rgba(4, 7, 5, 0.42);
}

.member-clubs-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.member-clubs-list li {
    position: relative;
    min-height: 54px;
    box-sizing: border-box;
    padding: 15px 16px 15px 44px;
    color: rgba(255, 247, 232, 0.93);
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.96rem;
    font-weight: 750;
    line-height: 1.3;
    border: 1px solid rgba(212, 166, 58, 0.16);
    border-radius: 16px;
    background: rgba(10, 14, 11, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 247, 232, 0.06);
}

.member-clubs-list li::before {
    content: "";
    position: absolute;
    top: 21px;
    left: 18px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(212, 166, 58, 0.82);
    box-shadow: 0 0 0 5px rgba(212, 166, 58, 0.12);
}

.member-clubs-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: min(420px, calc(100vw - 36px));
    padding: 13px 14px 13px 16px;
    color: #fff7e8;
    font-family: "Inter", Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.3;
    border: 1px solid rgba(212, 166, 58, 0.32);
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(19, 25, 20, 0.98), rgba(8, 11, 9, 0.98));
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.member-clubs-toast.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.member-clubs-toast__close {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #fff7e8;
    font-size: 1.15rem;
    line-height: 1;
    border: 1px solid rgba(212, 166, 58, 0.22);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

@media (max-width: 980px) {
    .member-clubs-grid--clubs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .page--member-clubs .site-main {
        padding: 16px;
    }

    .member-clubs-page {
        width: 100%;
        padding-bottom: 28px;
    }

    .member-clubs-hero,
    .member-clubs-section {
        border-radius: 24px;
    }

    .member-clubs-grid--clubs,
    .member-clubs-list {
        grid-template-columns: 1fr;
    }

    .member-clubs-link {
        min-height: 58px;
        padding: 13px 14px;
    }

    .member-clubs-link__meta {
        display: none;
    }

    .member-clubs-toast {
        right: 14px;
        bottom: 14px;
    }
}

/* Member clubs page must use document flow so the footer follows content. */
body.page--member-clubs {
    overflow-x: hidden;
    overflow-y: auto;
}

body.page--member-clubs .site-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: visible;
    align-items: start;
}

body.page--member-clubs .site-main {
    min-height: 0;
    overflow: visible;
}

body.page--member-clubs .site-footer {
    position: relative;
    bottom: auto;
    min-height: auto;
    height: auto;
}

@media (max-width: 900px) {
    body.page--member-clubs .site-shell {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible;
    }

    body.page--member-clubs .site-main {
        overflow: visible;
    }
}

/* Toast is created only on demand so no footer-area bar can remain after transitions. */
body:not(.page--member-clubs) .member-clubs-toast {
    display: none !important;
}

.member-clubs-toast:not(.is-visible) {
    visibility: hidden;
}



/* Prevent stale transition/toast nodes from becoming a footer bar. */
body.page--member-clubs [data-member-clubs-toast]:not(.is-visible),
body:not(.page--member-clubs) [data-member-clubs-toast],
body:not(.page--member-clubs) .member-clubs-toast {
    display: none !important;
}

.member-clubs-toast {
    box-sizing: border-box;
}
