/* =========================================================
   AMERY UNIONIST CLUB
   Site-wide stylesheet
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --navy: #071514;
    --green: #123b30;
    --green-light: #164b3b;
    --gold: #c7a45b;
    --cream: #f3f1eb;
    --grey: #73766f;
    --white: #ffffff;
    --border: #dedbd2;
    --shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   RESET / BASE
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", Arial, sans-serif;
    color: var(--navy);
    background: var(--cream);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}


/* =========================================================
SITE HEADER
========================================================= */

.site-header {
    background: var(--navy);
    color: white;
    min-height: 82px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* =========================================================
LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: var(--green);
    border: 1px solid rgba(199, 164, 91, 0.5);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.logo-text span {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}

.logo-text strong {
    display: block;
    color: var(--gold);
    font-family: "Montserrat", sans-serif;
    font-size: 8px;
    letter-spacing: 1.5px;
}

/* =========================================================
DESKTOP NAVIGATION
========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .main-nav a {
        color: rgba(255, 255, 255, 0.65);
        font-size: 11px;
        font-weight: 600;
        transition: color 0.2s ease;
    }

        .main-nav a:hover {
            color: white;
        }

/* =========================================================
MEMBER / ACCOUNT NAVIGATION
========================================================= */

.member-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.member-button {
    border: 1px solid rgba(199, 164, 91, 0.5);
    color: var(--gold);
    padding: 10px 16px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: 0.25s;
}

    .member-button:hover {
        background: var(--gold);
        color: var(--navy);
    }

.member-login-button,
.member-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    box-sizing: border-box;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.member-login-button {
    padding: 0 22px;
}

.member-account-button {
    padding: 0 18px;
}

    .member-login-button:hover,
    .member-account-button:hover {
        background: var(--green);
        border-color: var(--green);
        color: white;
    }

.logout-form {
    display: flex;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 18px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--green);
    font-family: inherit;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .logout-button:hover {
        background: var(--green);
        border-color: var(--green);
        color: white;
    }

.login-nav-link {
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

    .login-nav-link:hover {
        color: var(--gold);
    }

.logout-nav-button,
.nav-auth-link {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    color: white;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

    .logout-nav-button:hover,
    .nav-auth-link:hover {
        color: var(--gold);
    }

.nav-logout-form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-auth-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.nav-logout-button {
    appearance: none;
    -webkit-appearance: none;
}

/* =========================================================
MOBILE MENU BUTTON
========================================================= */

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(199, 164, 91, 0.5);
    background: transparent;
    color: var(--gold);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    position: relative;
    z-index: 1001;
}

    .mobile-menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .mobile-menu-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* =========================================================
MOBILE MENU
========================================================= */

.mobile-menu {
    display: none;
    width: 100%;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

    .mobile-menu.open {
        display: block;
    }

.mobile-menu-inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 8px 0 20px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

    .mobile-nav a {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.75);
        font-family: "Montserrat", sans-serif;
        font-size: 11px;
        font-weight: 700;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.7px;
    }

        .mobile-nav a:hover {
            color: var(--gold);
        }

    .mobile-nav .mobile-account-link {
        color: var(--gold);
    }

    .mobile-nav .mobile-logout-form {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-nav .mobile-logout-button {
        width: 100%;
        padding: 15px 0;
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.75);
        font-family: inherit;
        font-size: 11px;
        font-weight: 700;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.7px;
        cursor: pointer;
    }

        .mobile-nav .mobile-logout-button:hover {
            color: var(--gold);
        }

/* =========================================================
MOBILE RESPONSIVE NAVIGATION
========================================================= */

@media (max-width: 800px) {

    .site-header {
        min-height: 72px;
    }

    .main-nav,
    .account-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        margin-left: auto;
    }

    .mobile-menu {
        display: none !important;
    }

        .mobile-menu.open {
            display: block !important;
        }

    /* Show the account controls inside the mobile menu */
    .mobile-account-nav {
        display: block !important;
        padding-top: 18px;
        margin-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

        .mobile-account-nav .member-nav {
            display: flex !important;
            flex-direction: column;
            align-items: stretch;
            justify-content: flex-start;
            gap: 0;
            width: 100%;
            white-space: normal;
        }

            .mobile-account-nav .member-nav > * {
                width: 100%;
            }

        .mobile-account-nav .member-login-button,
        .mobile-account-nav .member-account-button,
        .mobile-account-nav .logout-button {
            width: 100%;
            height: 44px;
            margin-top: 8px;
        }

        .mobile-account-nav .logout-form {
            width: 100%;
        }

        .mobile-account-nav .login-nav-link,
        .mobile-account-nav .logout-nav-button,
        .mobile-account-nav .nav-auth-link {
            display: block;
            width: 100%;
            padding: 15px 0;
            text-align: left;
        }

        .mobile-account-nav .nav-logout-form {
            width: 100%;
        }
}

/* =========================================================
DESKTOP - HIDE MOBILE NAVIGATION
========================================================= */

@media (min-width: 801px) {

    .mobile-menu-toggle,
    .mobile-menu {
        display: none !important;
    }

}

/* =========================================================
CONSTRUCTION BANNER
========================================================= */


.construction-banner {
    background: #f4f1e8;
    border-bottom: 1px solid #ddd6c7;
}

.construction-banner-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 20px;
    text-align: left;
}

.construction-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.construction-content {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

    .construction-content strong {
        font-family: "Montserrat", sans-serif;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .construction-content span {
        font-size: 14px;
        color: #555;
    }


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-block;
    padding: 13px 20px;
    font-size: 10px;
    font-weight: 800;
    transition: 0.25s;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

    .btn-primary:hover {
        transform: translateY(-2px);
    }

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

    .btn-outline:hover {
        background: white;
        color: var(--navy);
    }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid var(--border);
    color: var(--green);
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    color: white;
    background: linear-gradient(120deg, #071514, #164b3b);
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('/images/AmeryFront.png');
        background-repeat: no-repeat;
        background-position: right center;
        background-size: cover;
        opacity: 0.05;
        pointer-events: none;
    }

.hero-content {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.hero-label,
.section-label {
    display: inline-block;
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 800;
}

.hero h1 {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.92;
    font-weight: 800;
    margin: 20px 0 30px;
}

    .hero h1 span {
        color: var(--gold);
    }

.hero p {
    max-width: 500px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 35px;
}


/* =========================================================
   HOME - INTRO
   ========================================================= */

.home-intro {
    background: var(--cream);
    padding: 110px 0;
}

.home-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.home-intro h2,
.home-sport h2,
.home-committee h2 {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
    font-weight: 800;
    margin-top: 15px;
}

.intro-large {
    font-size: 21px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 25px;
}

.home-intro-grid p:not(.intro-large) {
    color: var(--grey);
}


/* =========================================================
   HOME - WHAT'S ON
   ========================================================= */

.home-whats-on {
    background: white;
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 35px;
}

    .section-header h2 {
        font-family: "Montserrat", sans-serif;
        font-size: 36px;
        margin-top: 5px;
    }

.text-link {
    color: var(--green-light);
    font-size: 10px;
    font-weight: 800;
}

.event-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.event-preview {
    border: 1px solid var(--border);
    padding: 30px;
    min-height: 250px;
    position: relative;
    transition: 0.25s;
}

    .event-preview:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
    }

.event-date {
    color: var(--gold);
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.event-type {
    display: block;
    color: var(--grey);
    font-size: 8px;
    letter-spacing: 2px;
    margin-top: 25px;
}

.event-preview h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    margin: 8px 0;
}

.event-preview p {
    color: var(--grey);
    font-size: 11px;
}

.event-time {
    position: absolute;
    bottom: 25px;
    left: 30px;
    color: var(--green-light);
    font-size: 10px;
    font-weight: 800;
}


/* =========================================================
   HOME - SPORT
   ========================================================= */

.home-sport {
    color: white;
    padding: 110px 0;
    background: linear-gradient(120deg, #071514, #164b3b);
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    align-items: center;
}

    .home-sport::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('/images/AmerySnooker.jpg');
        background-repeat: no-repeat;
        background-position: right center;
        background-size: cover;
        opacity: 0.05;
        pointer-events: none;
    }

.sport-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.home-sport p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 450px;
    margin: 25px 0 30px;
}

.sport-cards {
    display: grid;
    gap: 12px;
}

.sport-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
}

    .sport-card span {
        display: block;
        color: var(--gold);
        font-size: 8px;
        letter-spacing: 2px;
        font-weight: 800;
    }

    .sport-card strong {
        display: block;
        font-size: 11px;
        margin-top: 12px;
    }

    .sport-card > div {
        font-family: "Montserrat", sans-serif;
        font-size: 42px;
        font-weight: 800;
        margin-top: 5px;
    }

    .sport-card small {
        font-size: 15px;
        color: var(--gold);
    }

    .sport-card p {
        margin: 0;
        font-size: 9px;
    }


/* =========================================================
   SPORTS LANDING PAGE
   ========================================================= */

.sports-page {
    padding: 4rem 0 5rem;
}

.sports-header {
    max-width: 760px;
    margin-bottom: 3rem;
}

    .sports-header h1 {
        margin: 0.5rem 0 1rem;
        font-size: clamp(2.5rem, 5vw, 4rem);
        line-height: 1.05;
    }

    .sports-header p {
        margin: 0;
        max-width: 650px;
        font-size: 1.05rem;
        line-height: 1.7;
        opacity: 0.65;
    }

.sports-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

    .sports-grid .sport-card {
        display: flex;
        gap: 1.5rem;
        min-height: 250px;
        padding: 2rem;
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 16px;
        text-decoration: none;
        color: inherit;
        overflow: hidden;
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }

        .sports-grid .sport-card:not(.sport-card-coming-soon):hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
            border-color: rgba(0, 0, 0, 0.15);
        }

.sport-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.05);
}

.sport-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.sport-card-kicker {
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.5;
}

.sports-grid .sport-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.7rem;
}

.sports-grid .sport-card p {
    margin: 0;
    max-width: 420px;
    font-size: 0.92rem;
    line-height: 1.65;
    opacity: 0.65;
}

.sport-card-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 800;
}

    .sport-card-link span {
        font-size: 1.1rem;
        transition: transform 0.2s ease;
    }

.sports-grid .sport-card:hover .sport-card-link span {
    transform: translateX(4px);
}

.sport-card-coming {
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.45;
}

.sport-card-coming-soon {
    opacity: 0.7;
}

/* =========================================================
   SPORTS - MOBILE
   ========================================================= */

@media (max-width: 800px) {

    .sports-page {
        padding: 3rem 0 4rem;
    }

    .sports-header {
        margin-bottom: 2rem;
    }

    .sports-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100%;
        gap: 1rem;
    }

        .sports-grid .sport-card {
            display: flex;
            flex-direction: row;
            width: 100%;
            min-width: 0 !important;
            max-width: 100%;
            min-height: 220px;
            padding: 1.5rem;
            gap: 1rem;
            box-sizing: border-box;
            overflow: hidden;
        }

        .sports-grid .sport-card-icon {
            flex: 0 0 48px;
            width: 48px;
            height: 48px;
        }

        .sports-grid .sport-card-content {
            flex: 1 1 auto;
            width: 0;
            min-width: 0;
            max-width: none;
        }

        .sports-grid .sport-card h2 {
            font-size: 1.5rem;
            line-height: 1.2;
            white-space: normal;
            overflow-wrap: break-word;
            word-break: normal;
        }

        .sports-grid .sport-card p {
            width: 100%;
            max-width: none;
            font-size: 0.9rem;
            line-height: 1.6;
            white-space: normal;
            overflow-wrap: break-word;
            word-break: normal;
        }

        .sports-grid .sport-card-link,
        .sports-grid .sport-card-coming {
            white-space: normal;
        }
}

/* =========================================================
   HOME - COMMITTEE
   ========================================================= */

.home-committee {
    background: var(--cream);
    padding: 110px 0;
}

.committee-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

    .committee-home-grid > div:last-child {
        max-width: 450px;
    }

    .committee-home-grid p {
        color: var(--grey);
        margin-bottom: 25px;
    }


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: var(--navy);
    color: white;
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 50px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    margin-top: 15px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    margin-bottom: 8px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 50px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.3);
    font-size: 8px;
}


/* =========================================================
   GENERIC PAGE HERO
   ========================================================= */

.page-hero {
    background: var(--green);
    color: white;
    padding: 90px 0;
}

    .page-hero h1 {
        font-family: "Montserrat", sans-serif;
        font-size: clamp(3rem, 7vw, 5rem);
        line-height: 1;
        margin: 15px 0;
    }

    .page-hero p {
        color: rgba(255, 255, 255, 0.6);
        max-width: 500px;
    }


/* =========================================================
   WHAT'S ON
   ========================================================= */

.events-page {
    background: var(--cream);
    padding: 90px 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.event-card {
    display: block;
    background: white;
    border: 1px solid var(--border);
    transition: 0.25s;
}

    .event-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
    }

.event-card-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

    .event-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.event-card-date {
    min-width: 100px;
    background: var(--green);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .event-card-date strong {
        font-family: "Montserrat", sans-serif;
        font-size: 34px;
        line-height: 1;
    }

    .event-card-date span {
        color: var(--gold);
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        margin-top: 5px;
    }

.event-card-content {
    padding: 28px;
}

    .event-card-content .event-type {
        margin-top: 0;
    }

    .event-card-content h2 {
        font-family: "Montserrat", sans-serif;
        font-size: 22px;
        margin: 8px 0;
    }

    .event-card-content p {
        color: var(--grey);
        font-size: 12px;
        margin-bottom: 15px;
    }

    .event-card-content .event-time {
        position: static;
        color: var(--green-light);
    }

.empty-events {
    background: white;
    padding: 70px;
    text-align: center;
    border: 1px solid var(--border);
}

    .empty-events h2 {
        font-family: "Montserrat", sans-serif;
        margin-bottom: 10px;
    }

    .empty-events p {
        color: var(--grey);
    }


/* =========================================================
   EVENT DETAIL
   ========================================================= */

.event-detail {
    background: var(--cream);
    min-height: 750px;
    padding: 60px 0 100px;
}

.back-link {
    display: inline-block;
    color: var(--green-light);
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 35px;
}

.event-detail-grid {
    display: grid;
    grid-template-columns: minmax(300px, 500px) 1fr;
    gap: 80px;
    align-items: start;
}

.event-poster {
    background: white;
    padding: 12px;
    box-shadow: var(--shadow);
}

    .event-poster img {
        width: 100%;
        height: auto;
        display: block;
    }

.event-detail-info {
    padding-top: 20px;
}

    .event-detail-info h1 {
        font-family: "Montserrat", sans-serif;
        font-size: clamp(2.5rem, 5vw, 5rem);
        line-height: 1;
        margin: 15px 0 35px;
    }

.event-detail-date {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    margin-bottom: 30px;
}

    .event-detail-date strong {
        font-family: "Montserrat", sans-serif;
        font-size: 48px;
        line-height: 1;
        color: var(--gold);
    }

    .event-detail-date div {
        display: flex;
        flex-direction: column;
    }

    .event-detail-date span:first-child {
        font-weight: 700;
        font-size: 13px;
    }

    .event-detail-date span:last-child {
        color: var(--grey);
        font-size: 11px;
        margin-top: 3px;
    }

.event-description {
    color: var(--grey);
    font-size: 15px;
    line-height: 1.8;
    max-width: 600px;
}

.current-poster {
    width: 220px;
    background: #f5f5f5;
    padding: 8px;
    margin-top: 10px;
}

    .current-poster img {
        width: 100%;
        height: auto;
        display: block;
    }

.admin-event-details {
    flex: 1;
}

.event-status {
    display: inline-block;
    margin-top: 6px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

    .event-status.published {
        color: var(--green-light);
    }

    .event-status.draft {
        color: var(--grey);
    }


/* =========================================================
   ADMIN - GENERAL
   ========================================================= */

.admin-page {
    background: var(--cream);
    min-height: 750px;
    padding: 60px 0 100px;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

    .admin-page-header h1 {
        font-family: "Montserrat", sans-serif;
        font-size: clamp(2.5rem, 5vw, 4.5rem);
        line-height: 1;
        margin: 10px 0 15px;
    }

    .admin-page-header p {
        color: var(--grey);
        font-size: 14px;
        margin: 0;
    }

.admin-header {
    margin-bottom: 40px;
}

    .admin-header h1 {
        font-family: "Montserrat", sans-serif;
        font-size: 48px;
        margin-top: 10px;
    }

.admin-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
}

.admin-form-card,
.admin-events-card {
    background: white;
    border: 1px solid var(--border);
    padding: 35px;
}

    .admin-form-card h2,
    .admin-events-card h2 {
        font-family: "Montserrat", sans-serif;
        font-size: 22px;
        margin-bottom: 30px;
    }

.admin-form-card {
    border-radius: 0;
}

.admin-form-section {
    padding-bottom: 35px;
    margin-bottom: 35px;
    border-bottom: 1px solid #e4e1dc;
}

.admin-form-section-header {
    margin-bottom: 25px;
}

    .admin-form-section-header h2 {
        margin: 5px 0 0;
        font-size: 1.5rem;
    }

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.admin-form-field {
    display: flex;
    flex-direction: column;
}

    .admin-form-field label {
        margin-bottom: 7px;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .admin-form-field .form-control {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #d8d4ce;
        border-radius: 0;
        font-family: inherit;
    }

        .admin-form-field .form-control:focus {
            outline: none;
            border-color: #222;
            box-shadow: none;
        }

.admin-form-checkbox {
    justify-content: flex-end;
}

    .admin-form-checkbox label {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 0;
    }

    .admin-form-checkbox input {
        width: 18px;
        height: 18px;
    }

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    background: #fafafa;
    font-family: inherit;
    font-size: 12px;
}

    .form-control:focus {
        outline: none;
        border-color: var(--green-light);
    }

.form-help {
    display: block;
    margin-top: 5px;
    color: var(--grey);
    font-size: 9px;
}

.validation-summary {
    background: #fff1f1;
    border: 1px solid #e0b5b5;
    color: #8a2525;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 11px;
}

    .validation-summary ul {
        margin: 0;
        padding-left: 20px;
    }

    .validation-summary:empty {
        display: none;
    }

.form-checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 25px 0;
}

    .form-checkbox label {
        font-size: 11px;
        font-weight: 600;
    }


/* Admin event list */

.admin-event {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

    .admin-event img {
        width: 70px;
        height: 70px;
        object-fit: cover;
    }

    .admin-event strong {
        display: block;
        font-size: 12px;
    }

    .admin-event span {
        display: block;
        color: var(--grey);
        font-size: 9px;
        margin-top: 5px;
    }

.admin-empty {
    color: var(--grey);
    font-size: 12px;
}


/* Admin event actions */

.admin-event-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    align-self: center;
}

.admin-edit-button,
.admin-delete-button {
    box-sizing: border-box;
    min-width: 75px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    margin: 0;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.admin-edit-button {
    border: 1px solid var(--border);
    background: white;
    color: var(--green);
}

    .admin-edit-button:hover {
        background: var(--green);
        color: white;
    }

.admin-delete-form {
    margin: 0;
    padding: 0;
}

.admin-delete-button {
    border: 1px solid #d5b5b5;
    background: white;
    color: #9b3333;
}

    .admin-delete-button:hover {
        background: #9b3333;
        color: white;
        border-color: #9b3333;
    }

.admin-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

.admin-primary-button,
.admin-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    text-decoration: none;
    font-family: inherit;
    font-weight: 600;
    border: 1px solid;
    cursor: pointer;
}

.admin-primary-button {
    background: #222;
    border-color: #222;
    color: #fff;
}

    .admin-primary-button:hover {
        opacity: 0.85;
        color: #fff;
    }

.admin-secondary-button {
    background: #fff;
    border-color: #d8d4ce;
    color: #222;
}

    .admin-secondary-button:hover {
        background: #f5f3ef;
        color: #222;
    }


/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */

.admin-dashboard {
    background: var(--cream);
    min-height: 750px;
    padding: 70px 0 110px;
}

.admin-dashboard-header {
    margin-bottom: 55px;
}

    .admin-dashboard-header h1 {
        font-family: "Montserrat", sans-serif;
        font-size: clamp(3rem, 6vw, 5.5rem);
        line-height: 0.95;
        margin: 12px 0 20px;
    }

    .admin-dashboard-header p {
        color: var(--grey);
        font-size: 14px;
        max-width: 500px;
    }

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
}

.admin-dashboard-card {
    position: relative;
    display: flex;
    min-height: 270px;
    padding: 35px;
    background: white;
    color: var(--green);
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease;
}

    .admin-dashboard-card:hover {
        background: var(--green);
        color: white;
        transform: translateY(-3px);
        z-index: 2;
    }

.admin-dashboard-number {
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 800;
    opacity: 0.45;
    margin-right: 30px;
}

.admin-dashboard-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .admin-dashboard-content h2 {
        font-family: "Montserrat", sans-serif;
        font-size: 32px;
        margin: 8px 0 15px;
    }

    .admin-dashboard-content p {
        max-width: 350px;
        margin: 0;
        color: var(--grey);
        font-size: 13px;
        line-height: 1.7;
    }

.admin-dashboard-card:hover p {
    color: rgba(255, 255, 255, 0.75);
}

.admin-dashboard-link {
    margin-top: auto;
    padding-top: 25px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.admin-dashboard-card-disabled {
    cursor: default;
}

    .admin-dashboard-card-disabled:hover {
        transform: none;
        background: white;
        color: var(--green);
    }

        .admin-dashboard-card-disabled:hover p {
            color: var(--grey);
        }


/* =========================================================
   ADMIN MEMBERS
   ========================================================= */

.admin-members-card {
    background: white;
    border: 1px solid var(--border);
}

.admin-members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border);
}

    .admin-members-header strong {
        display: block;
        font-family: "Montserrat", sans-serif;
        font-size: 18px;
    }

    .admin-members-header span {
        display: block;
        margin-top: 4px;
        color: var(--grey);
        font-size: 10px;
    }

.admin-members-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-export-button,
.admin-import-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 14px;
    background-color: var(--green);
    color: var(--cream);
}

    .admin-export-button:hover,
    .admin-import-button:hover {
        text-decoration: none;
    }

.admin-members-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-bottom: 24px;
    background: #e5e2dc;
}

.admin-member-summary-item {
    background: #fff;
    padding: 24px;
}

    .admin-member-summary-item span {
        display: block;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 8px;
    }

    .admin-member-summary-item strong {
        font-family: "Montserrat", sans-serif;
        font-size: 1.8rem;
    }

.admin-members-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.admin-members-search {
    flex: 1;
}

    .admin-members-search input,
    .admin-members-filter select {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #d8d4ce;
        background: #fff;
        font-family: "DM Sans", sans-serif;
        font-size: 0.95rem;
    }

        .admin-members-search input:focus,
        .admin-members-filter select:focus {
            outline: none;
            border-color: #999;
        }

.admin-members-filter {
    min-width: 180px;
}

.admin-filter-button {
    padding: 12px 20px;
    border: none;
    background: #222;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    cursor: pointer;
}

    .admin-filter-button:hover {
        opacity: 0.85;
    }

.admin-clear-filter {
    padding: 12px 10px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.admin-members-table-wrapper {
    overflow-x: auto;
}

.admin-members-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-members-table th {
        padding: 15px 20px;
        background: var(--cream);
        border-bottom: 1px solid var(--border);
        color: var(--grey);
        font-size: 9px;
        font-weight: 800;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .admin-members-table td {
        padding: 18px 20px;
        border-bottom: 1px solid var(--border);
        color: var(--grey);
        font-size: 12px;
    }

    .admin-members-table tbody tr:last-child td {
        border-bottom: none;
    }

    .admin-members-table tbody tr:hover {
        background: #fafafa;
    }

.admin-member-name {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
}

    .admin-member-name strong {
        color: var(--green);
        font-family: "Montserrat", sans-serif;
        font-size: 12px;
    }

.admin-member-avatar {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--green);
    color: white;
    font-size: 9px;
    font-weight: 800;
}

.admin-member-status {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

    .admin-member-status.active {
        color: var(--green-light);
    }

    .admin-member-status.inactive {
        color: #9b3333;
    }

.admin-member-actions {
    text-align: right;
}

    .admin-member-actions .admin-edit-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 15px;
        border: 1px solid var(--border);
        color: var(--green);
        font-size: 9px;
        font-weight: 800;
        text-decoration: none;
        text-transform: uppercase;
    }

        .admin-member-actions .admin-edit-button:hover {
            background: var(--green);
            color: white;
        }


/* =========================================================
   ADMIN MEMBER EDIT
   ========================================================= */

.admin-edit-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    max-width: 900px;
}

.admin-edit-section {
    padding-bottom: 35px;
    margin-bottom: 35px;
    border-bottom: 1px solid #e5e7eb;
}

    .admin-edit-section h2 {
        margin: 8px 0 25px;
        font-family: "Montserrat", sans-serif;
        font-size: 22px;
    }

.admin-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
}

    .admin-form-group label {
        margin-bottom: 8px;
        font-weight: 600;
    }

.admin-form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
}

    .admin-form-control:focus {
        outline: none;
        border-color: #111827;
    }

.admin-edit-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.admin-edit-danger {
    margin-right: auto;
}

.admin-edit-standard {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-save-button,
.admin-cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.admin-save-button {
    border: none;
}

    .admin-cancel-button:hover,
    .admin-save-button:hover {
        text-decoration: none;
    }

.admin-edit-danger .admin-delete-button {
    padding: 12px 20px;
    border: 1px solid #dc2626;
    border-radius: 6px;
    background: transparent;
    color: #dc2626;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    cursor: pointer;
}

    .admin-edit-danger .admin-delete-button:hover {
        background: #dc2626;
        color: #fff;
    }


/* =========================================================
   ADMIN SUMMARY CARDS
   ========================================================= */

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.admin-summary-card {
    background: #fff;
    border: 1px solid #e8e5df;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-summary-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #77736c;
}

.admin-summary-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
}

.admin-summary-description {
    font-size: 0.85rem;
    color: #77736c;
}

.committee-member-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.committee-warning {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.8rem;
    font-weight: 700;
    color: #9a6700;
}

.committee-attention-row {
    background: #fffaf0;
}

.admin-events-history {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

    .admin-events-history h2 {
        margin-bottom: 25px;
    }


/* =========================================================
   ADMIN PASSWORD / SUCCESS
   ========================================================= */

.admin-success-message {
    background: #fff;
    border: 1px solid #d8d4ce;
    padding: 40px;
}

    .admin-success-message > strong {
        display: block;
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

.temporary-password {
    margin: 25px 0;
    padding: 20px;
    background: #f5f3ef;
    border-left: 4px solid #222;
}

    .temporary-password span {
        display: block;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 8px;
    }

    .temporary-password strong {
        display: block;
        font-family: monospace;
        font-size: 1.3rem;
        letter-spacing: 0.05em;
    }

.temporary-password-value {
    display: flex;
    align-items: center;
    gap: 15px;
}

.temporary-password-copy {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #d8d4ce;
    color: #222;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

    .temporary-password-copy:hover {
        background: #f5f3ef;
    }

.admin-warning-text {
    font-size: 0.9rem;
}


/* =========================================================
   COMMITTEE
   ========================================================= */

.committee-page {
    padding: 80px 0 100px;
}

.committee-header {
    max-width: 760px;
    margin-bottom: 55px;
}

    .committee-header h1 {
        margin: 10px 0 15px;
    }

    .committee-header p {
        margin: 0;
        font-size: 1.05rem;
        line-height: 1.7;
    }

.committee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.committee-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .committee-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.09);
    }

.committee-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f4f1eb;
}

    .committee-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.committee-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .committee-card-placeholder span {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        font-weight: 700;
    }

.committee-card-content {
    padding: 28px;
}

.committee-card-position {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.committee-card-content h2 {
    margin: 0 0 12px;
}

.committee-card-content p {
    margin: 0;
    line-height: 1.7;
}

.committee-empty {
    padding: 60px 30px;
    text-align: center;
    background: #fff;
    border-radius: 18px;
}

    .committee-empty h2 {
        margin-bottom: 10px;
    }

    .committee-empty p {
        margin: 0;
    }


/* =========================================================
   RULEBOOK - PUBLIC
   ========================================================= */

.rulebook-page {
    background: var(--cream);
    min-height: 750px;
    padding: 70px 0 110px;
}

.rulebook-header {
    max-width: 800px;
    margin-bottom: 70px;
}

    .rulebook-header h1 {
        font-family: "Montserrat", sans-serif;
        font-size: clamp(3.5rem, 7vw, 6rem);
        line-height: 0.9;
        margin: 12px 0 25px;
    }

    .rulebook-header p {
        max-width: 600px;
        color: var(--grey);
        font-size: 15px;
        line-height: 1.8;
    }

.rulebook-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 14px 20px;
    background: var(--green);
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

    .rulebook-download span {
        font-size: 16px;
        line-height: 1;
    }

    .rulebook-download:hover {
        background: var(--gold);
        color: var(--green);
    }

.rulebook-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 80px;
    align-items: start;
}

.rulebook-navigation {
    position: sticky;
    top: 30px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.rulebook-nav-title {
    padding: 18px 0 15px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.rulebook-navigation a {
    padding: 12px 0;
    border-top: 1px solid var(--border);
    color: var(--grey);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

    .rulebook-navigation a:hover {
        color: var(--green);
    }

.rulebook-content {
    max-width: 760px;
}

.rulebook-section {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 30px;
    padding: 0 0 65px;
    margin-bottom: 65px;
    border-bottom: 1px solid var(--border);
}

    .rulebook-section:last-child {
        margin-bottom: 0;
    }

.rulebook-section-number {
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: var(--gold);
}

.rulebook-section h2 {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1;
    margin: 0 0 25px;
}

.rulebook-section h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    margin: 30px 0 10px;
}

.rulebook-section p {
    color: var(--grey);
    font-size: 14px;
    line-height: 1.9;
    margin: 0 0 18px;
}

.rulebook-section-content {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

    .rulebook-section-content p {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        margin: 0;
        line-height: 1.7;
    }

.rulebook-rule-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 0.15rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.05);
}


/* Online flipbook */

.rulebook-online {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
}

.rulebook-online-header {
    margin-bottom: 1.5rem;
}

    .rulebook-online-header h2 {
        margin: 0.4rem 0 0.5rem;
        font-size: 1.5rem;
    }

    .rulebook-online-header p {
        margin: 0;
        max-width: 650px;
        font-size: 0.9rem;
        line-height: 1.6;
        opacity: 0.6;
    }

.rulebook-flipbook {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
}

    .rulebook-flipbook .fp-iframe {
        display: block;
        width: 100%;
        height: 650px;
        border: none;
    }

.rulebook-download-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}


/* =========================================================
   ADMIN RULEBOOK
   ========================================================= */

.admin-rulebook-page,
.admin-rulebook-editor {
    padding-bottom: 4rem;
}

.admin-rulebook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2.5rem 0 1rem;
}

.admin-rulebook-count {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-rulebook-description {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    opacity: 0.65;
}

.admin-rulebook-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-rulebook-card {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.75rem;
    padding: 1.75rem 2rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .admin-rulebook-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
        border-color: rgba(0, 0, 0, 0.14);
    }

.admin-rulebook-card-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.04);
}

.admin-rulebook-card-content {
    min-width: 0;
}

.admin-rulebook-card-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

    .admin-rulebook-card-heading h2 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 700;
    }

.admin-rulebook-preview {
    margin: 0.65rem 0 0;
    max-width: 800px;
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0.65;
}

    .admin-rulebook-preview.empty {
        font-style: italic;
    }

.rulebook-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.rulebook-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.rulebook-status.published {
    background: rgba(40, 160, 90, 0.1);
}

    .rulebook-status.published .rulebook-status-dot {
        background: #28a05a;
    }

.rulebook-status.draft {
    background: rgba(220, 150, 40, 0.12);
}

    .rulebook-status.draft .rulebook-status-dot {
        background: #dc9628;
    }

.admin-rulebook-card-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    .admin-rulebook-card-action .admin-edit-button {
        width: auto;
        height: auto;
        padding: 0.75rem 1.1rem;
        border-radius: 8px;
        font-size: 0.9rem;
        text-transform: none;
    }

.admin-rulebook-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-empty-state {
    margin-top: 2.5rem;
    padding: 4rem 2rem;
    text-align: center;
    background: #fff;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: 14px;
}

.admin-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.05);
}

.admin-empty-state h2 {
    margin-bottom: 0.5rem;
}

.admin-empty-state p {
    margin-bottom: 1.5rem;
    opacity: 0.65;
}


/* Rulebook editor */

.admin-rulebook-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-form-card-header {
    margin-bottom: 1.75rem;
}

.admin-form-card-kicker {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.55;
}

.admin-form-card-header h2,
.admin-publishing-content h2 {
    margin: 0;
    font-size: 1.2rem;
}

.rulebook-editor-help {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.035);
}

.rulebook-editor-help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.08);
}

.rulebook-editor-help strong {
    display: block;
    margin-bottom: 0.2rem;
}

.rulebook-editor-help p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    opacity: 0.65;
}

.admin-rulebook-form textarea {
    min-height: 360px;
    resize: vertical;
    line-height: 1.8;
}

.admin-publishing-card {
    padding: 1.5rem 2rem;
}

.admin-publishing-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

    .admin-publishing-content p {
        margin: 0.4rem 0 0;
        max-width: 650px;
        font-size: 0.88rem;
        line-height: 1.55;
        opacity: 0.6;
    }

.admin-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

    .admin-toggle input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.admin-toggle-slider {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease;
}

    .admin-toggle-slider::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s ease;
    }

.admin-toggle input:checked + .admin-toggle-slider {
    background: #28a05a;
}

    .admin-toggle input:checked + .admin-toggle-slider::after {
        transform: translateX(20px);
    }

.admin-toggle-label {
    font-size: 0.9rem;
    font-weight: 700;
}


/* =========================================================
   SNOOKER - PUBLIC
   ========================================================= */

.snooker-page {
    padding: 80px 0 110px;
}

.snooker-header {
    max-width: 760px;
    margin-bottom: 70px;
}

    .snooker-header h1 {
        margin: 12px 0 18px;
        font-family: "Montserrat", sans-serif;
        font-size: clamp(3rem, 6vw, 5rem);
        line-height: 1;
        letter-spacing: -0.04em;
    }

    .snooker-header p {
        max-width: 620px;
        margin: 0;
        font-size: 1.1rem;
        line-height: 1.8;
    }

.snooker-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 28px;
}

    .snooker-section-heading h2 {
        margin: 8px 0 0;
        font-family: "Montserrat", sans-serif;
        font-size: 2rem;
        letter-spacing: -0.025em;
    }

.snooker-matches-section {
    margin-bottom: 80px;
}

.snooker-match-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.snooker-match-column {
    padding: 30px;
    background: #f7f4ee;
    border: 1px solid #e5e0d7;
    border-radius: 18px;
}

.snooker-match-heading {
    margin-bottom: 24px;
}

.snooker-match-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.snooker-match-heading h3 {
    margin: 6px 0 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1.35rem;
}

.snooker-public-match-list {
    display: flex;
    flex-direction: column;
}

.snooker-public-match {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #e1ddd5;
}

    .snooker-public-match:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .snooker-public-match:last-child {
        padding-bottom: 0;
    }

.snooker-public-match-date {
    width: 52px;
    height: 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd8cf;
    border-radius: 10px;
}

    .snooker-public-match-date strong {
        font-family: "Montserrat", sans-serif;
        font-size: 1.2rem;
        line-height: 1;
    }

    .snooker-public-match-date span {
        margin-top: 4px;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

.snooker-public-match-details {
    min-width: 0;
}

.snooker-public-match-type {
    display: block;
    margin-bottom: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.snooker-public-match-details h4 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    line-height: 1.35;
}

    .snooker-public-match-details h4 span {
        margin: 0 4px;
        font-weight: 400;
    }

.snooker-public-match-details p {
    margin: 7px 0 0;
    font-size: 0.82rem;
}

.snooker-public-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.3rem;
    white-space: nowrap;
}

    .snooker-public-score span {
        font-weight: 400;
    }

.snooker-public-empty {
    padding: 30px 0 5px;
}

    .snooker-public-empty p {
        margin: 0;
        font-size: 0.95rem;
    }

.snooker-table-empty {
    padding: 60px 30px;
    text-align: center;
    background: #f7f4ee;
    border: 1px solid #e5e0d7;
    border-radius: 18px;
}

.snooker-empty-icon {
    margin-bottom: 14px;
    font-size: 2rem;
}

.snooker-table-empty h3 {
    margin: 0 0 8px;
    font-family: "Montserrat", sans-serif;
}

.snooker-table-empty p {
    margin: 0;
}

.snooker-table-section {
    margin-top: 20px;
}

.snooker-table-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    text-align: right;
    font-size: 0.8rem;
}

    .snooker-table-meta span:first-child {
        font-weight: 700;
    }

.snooker-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e1ddd5;
    border-radius: 18px;
}

.snooker-league-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

    .snooker-league-table th {
        padding: 17px 18px;
        background: #f7f4ee;
        border-bottom: 1px solid #ddd8cf;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-align: center;
        text-transform: uppercase;
    }

        .snooker-league-table th:nth-child(2) {
            text-align: left;
        }

    .snooker-league-table td {
        padding: 18px;
        border-bottom: 1px solid #eeeae3;
        text-align: center;
        font-size: 0.9rem;
    }

    .snooker-league-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .snooker-league-table tbody tr:hover {
        background: #faf9f6;
    }

    .snooker-league-table .snooker-position {
        width: 60px;
    }

.snooker-position-number {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.snooker-team {
    text-align: left !important;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem !important;
}

.snooker-points {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}

.snooker-table-key {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
    margin-top: 16px;
    font-size: 0.75rem;
}

    .snooker-table-key span {
        font-weight: 700;
    }


/* =========================================================
   ADMIN SNOOKER
   ========================================================= */

.admin-snooker-page,
.admin-snooker-editor {
    padding: 60px 0 90px;
}

    .admin-snooker-page .admin-page-header,
    .admin-snooker-editor .admin-header {
        margin-bottom: 40px;
    }

        .admin-snooker-page .admin-page-header h1,
        .admin-snooker-editor .admin-header h1 {
            margin: 8px 0 12px;
        }

        .admin-snooker-page .admin-page-header p,
        .admin-snooker-editor .admin-header p {
            max-width: 650px;
            margin: 0;
        }

    .admin-snooker-page .admin-form-card,
    .admin-snooker-editor .admin-form-card {
        background: #fff;
        border: 1px solid #e7e3dc;
        border-radius: 18px;
        padding: 30px;
        margin-bottom: 28px;
        box-shadow: 0 8px 30px rgba(30, 25, 20, 0.05);
    }

.admin-snooker-form .admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

    .admin-snooker-form .admin-form-grid:last-child {
        margin-bottom: 0;
    }

.admin-snooker-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

    .admin-snooker-form .form-group label {
        font-weight: 700;
        margin-bottom: 8px;
    }

    .admin-snooker-form .form-group input,
    .admin-snooker-form .form-group select {
        width: 100%;
        min-height: 46px;
        padding: 10px 13px;
        border: 1px solid #dcd7cf;
        border-radius: 9px;
        background: #fff;
        font: inherit;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .admin-snooker-form .form-group input:focus,
        .admin-snooker-form .form-group select:focus {
            outline: none;
            border-color: #8f1d2c;
            box-shadow: 0 0 0 3px rgba(143, 29, 44, 0.1);
        }

.admin-form-card-description {
    margin: 8px 0 0;
    max-width: 650px;
    font-size: 0.88rem;
    opacity: 0.6;
}

.admin-snooker-edit-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

    .admin-snooker-edit-table thead {
        background: #f5f2ed;
    }

    .admin-snooker-edit-table th {
        padding: 14px 12px;
        text-align: left;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .admin-snooker-edit-table td {
        padding: 10px 12px;
        border-top: 1px solid #ebe7e0;
    }

        .admin-snooker-edit-table td input {
            width: 100%;
            min-height: 42px;
            padding: 8px 10px;
            border: 1px solid #dcd7cf;
            border-radius: 7px;
            background: #fff;
            font: inherit;
        }

            .admin-snooker-edit-table td input:focus {
                outline: none;
                border-color: #8f1d2c;
                box-shadow: 0 0 0 3px rgba(143, 29, 44, 0.08);
            }

    .admin-snooker-edit-table .position-column {
        width: 55px;
        text-align: center;
    }

    .admin-snooker-edit-table th:nth-child(3),
    .admin-snooker-edit-table th:nth-child(4),
    .admin-snooker-edit-table th:nth-child(5),
    .admin-snooker-edit-table th:nth-child(6),
    .admin-snooker-edit-table th:nth-child(7),
    .admin-snooker-edit-table td:nth-child(3),
    .admin-snooker-edit-table td:nth-child(4),
    .admin-snooker-edit-table td:nth-child(5),
    .admin-snooker-edit-table td:nth-child(6),
    .admin-snooker-edit-table td:nth-child(7) {
        width: 75px;
        text-align: center;
    }

    .admin-snooker-edit-table input[type="number"] {
        text-align: center;
    }

.row-number {
    font-weight: 800;
    opacity: 0.55;
}

.snooker-remove-row {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd7cf;
    border-radius: 50%;
    background: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .snooker-remove-row:hover {
        border-color: #8f1d2c;
        background: #faf0f2;
        transform: scale(1.05);
    }

.snooker-add-row {
    margin-top: 18px;
    padding: 11px 17px;
    border: 1px dashed #bcb5ab;
    border-radius: 9px;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

    .snooker-add-row:hover {
        border-color: #8f1d2c;
        background: #faf5f6;
    }

.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 44px;
    cursor: pointer;
    font-weight: 600;
}

    .admin-checkbox-label input {
        width: 18px;
        height: 18px;
    }


/* Snooker publish */

.snooker-publish-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 20px 22px;
    border: 1px solid #dcd7cf;
    border-radius: 14px;
    background: #faf8f4;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.snooker-publish-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

    .snooker-publish-content strong {
        display: block;
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .snooker-publish-content p {
        margin: 0;
        font-size: 0.84rem;
        line-height: 1.5;
        opacity: 0.7;
        max-width: 440px;
    }

.snooker-publish-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #e8e3db;
    font-size: 0.85rem;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease;
}

.snooker-publish-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    cursor: pointer;
    user-select: none;
}

    .snooker-publish-toggle input {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
        pointer-events: none;
    }

.snooker-publish-toggle-track {
    position: relative;
    display: block;
    width: 52px;
    height: 30px;
    flex: 0 0 52px;
    border-radius: 999px;
    background: #c9c4bc;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.snooker-publish-toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.snooker-publish-toggle input:checked + .snooker-publish-toggle-track {
    background: #8f1d2c;
    box-shadow: 0 0 0 4px rgba(143, 29, 44, 0.1);
}

    .snooker-publish-toggle input:checked + .snooker-publish-toggle-track .snooker-publish-toggle-thumb {
        transform: translateX(22px);
    }

.snooker-publish-toggle input:checked ~ .snooker-publish-toggle-label {
    font-weight: 700;
}

.snooker-publish-toggle-label {
    font-size: 0.86rem;
    white-space: nowrap;
}

.snooker-publish-toggle input:focus-visible + .snooker-publish-toggle-track {
    outline: 3px solid rgba(143, 29, 44, 0.25);
    outline-offset: 3px;
}

.snooker-publish-panel:has(.snooker-publish-toggle input:checked) {
    border-color: rgba(143, 29, 44, 0.35);
    background: rgba(143, 29, 44, 0.035);
}

    .snooker-publish-panel:has(.snooker-publish-toggle input:checked) .snooker-publish-icon {
        background: #8f1d2c;
        color: #fff;
    }


/* Snooker table summary */

.admin-snooker-table-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

    .admin-snooker-table-summary > div {
        padding: 18px;
        background: #f7f4ee;
        border: 1px solid #e3ded5;
        border-radius: 12px;
    }

    .admin-snooker-table-summary span {
        display: block;
        margin-bottom: 6px;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .admin-snooker-table-summary strong {
        display: block;
        font-family: "Montserrat", sans-serif;
        font-size: 0.95rem;
    }

.admin-snooker-published {
    color: #426448;
}

.admin-snooker-unpublished {
    color: #796b55;
}


/* Snooker admin list */

.admin-snooker-list-section {
    margin-top: 35px;
}

    .admin-snooker-list-section + .admin-snooker-list-section {
        padding-top: 35px;
        border-top: 1px solid #e5e0d7;
    }

.admin-snooker-list-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

    .admin-snooker-list-heading h3 {
        margin: 6px 0 0;
        font-family: "Montserrat", sans-serif;
        font-size: 1.3rem;
    }

    .admin-snooker-list-heading > span {
        min-width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f1eee8;
        font-size: 0.75rem;
        font-weight: 700;
    }

.admin-snooker-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #e3ded5;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.admin-snooker-match {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr) 130px 80px;
    gap: 22px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #eeeae3;
}

    .admin-snooker-match:last-child {
        border-bottom: 0;
    }

.admin-snooker-match-date {
    width: 52px;
    height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7f4ee;
    border: 1px solid #ded9d0;
    border-radius: 10px;
}

    .admin-snooker-match-date strong {
        font-family: "Montserrat", sans-serif;
        font-size: 1.2rem;
        line-height: 1;
    }

    .admin-snooker-match-date span {
        margin-top: 4px;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

.admin-snooker-match-info {
    min-width: 0;
}

    .admin-snooker-match-info strong {
        display: block;
        font-family: "Montserrat", sans-serif;
        font-size: 0.95rem;
    }

        .admin-snooker-match-info strong span {
            margin: 0 4px;
            font-weight: 400;
        }

    .admin-snooker-match-info small {
        display: block;
        margin-top: 6px;
        font-size: 0.76rem;
    }

.admin-snooker-match-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    text-align: right;
}

    .admin-snooker-match-time strong {
        font-family: "Montserrat", sans-serif;
        font-size: 0.9rem;
    }

.admin-snooker-match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.15rem;
}

    .admin-snooker-match-score span {
        font-weight: 400;
    }

.admin-snooker-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

    .admin-snooker-status.published {
        background: #e8f2e8;
        color: #426448;
    }

    .admin-snooker-status.unpublished {
        background: #f3eee5;
        color: #796b55;
    }

.admin-snooker-match-actions {
    display: flex;
    justify-content: flex-end;
}

    .admin-snooker-match-actions .admin-edit-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 58px;
        padding: 8px 12px;
        border: 1px solid #d8d2c8;
        border-radius: 8px;
        background: #fff;
        text-decoration: none;
        font-size: 0.75rem;
        font-weight: 700;
        transition: all 0.2s ease;
    }

        .admin-snooker-match-actions .admin-edit-button:hover {
            background: #f7f4ee;
            border-color: #c8c0b5;
        }

.admin-snooker-empty {
    padding: 35px 20px;
    text-align: center;
    border: 1px dashed #d8d2c8;
    border-radius: 12px;
    background: #faf9f6;
}

    .admin-snooker-empty h3 {
        margin: 0 0 7px;
        font-family: "Montserrat", sans-serif;
    }

    .admin-snooker-empty p {
        margin: 0;
    }

.admin-success-message {
    max-width: 1100px;
    margin: 0 auto 25px;
    padding: 14px 18px;
    border: 1px solid rgba(38, 115, 77, 0.25);
    border-radius: 10px;
    background: rgba(38, 115, 77, 0.07);
    color: #26734d;
    font-weight: 700;
}


/* =========================================================
   LOGIN / AUTHENTICATION
   ========================================================= */

.login-page {
    min-height: calc(100vh - 90px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    padding: 45px 45px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #e7e7e7;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f2937;
    color: #fff;
    border-radius: 50%;
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.login-header h1 {
    margin: 0 0 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 30px;
    font-weight: 700;
}

.login-header p {
    margin: 0;
    color: #6b7280;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
}

.login-field {
    margin-bottom: 22px;
}

    .login-field label {
        display: block;
        margin-bottom: 8px;
        font-family: "DM Sans", sans-serif;
        font-size: 14px;
        font-weight: 600;
    }

    .login-field input {
        width: 100%;
        height: 48px;
        padding: 0 14px;
        border: 1px solid #d5d8dc;
        border-radius: 7px;
        background: #fff;
        font-family: "DM Sans", sans-serif;
        font-size: 15px;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .login-field input:focus {
            outline: none;
            border-color: #1f2937;
            box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
        }

        .login-field input::placeholder {
            color: #9ca3af;
        }

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .remember-me input {
        width: 16px;
        height: 16px;
        margin: 0;
    }

.login-options a,
.login-footer a,
.login-back a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
}

    .login-options a:hover,
    .login-footer a:hover,
    .login-back a:hover {
        text-decoration: underline;
    }

.login-submit {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 7px;
    background: #1f2937;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

    .login-submit:hover {
        opacity: 0.9;
    }

    .login-submit:active {
        transform: translateY(1px);
    }

.login-validation {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 7px;
    background: #fef2f2;
    color: #b91c1c;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
}

.login-error {
    display: block;
    margin-top: 6px;
    color: #b91c1c;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    font-family: "DM Sans", sans-serif;
}

    .login-footer p {
        margin: 0 0 7px;
        color: #6b7280;
        font-size: 14px;
    }

.register-link {
    font-size: 14px;
}

.login-back {
    text-align: center;
    margin-top: 25px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
}

.register-card {
    max-width: 500px;
}

.confirmation-message {
    text-align: center;
    font-family: "DM Sans", sans-serif;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

    .confirmation-message p {
        margin: 0 0 15px;
    }

.confirmation-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: 25px;
    box-sizing: border-box;
}

    .confirmation-button:hover {
        text-decoration: none !important;
    }


/* =========================================================
   MEMBER AREA
   ========================================================= */

.member-page {
    background: var(--cream);
    min-height: 750px;
    padding: 70px 0 100px;
}

.member-header {
    margin-bottom: 55px;
}

    .member-header h1 {
        margin: 12px 0 15px;
        font-family: "Montserrat", sans-serif;
        font-size: clamp(3rem, 6vw, 5.5rem);
        line-height: 0.95;
    }

    .member-header p {
        margin: 0;
        color: var(--grey);
        font-size: 15px;
    }

.member-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 70px;
    align-items: start;
}

.member-sidebar {
    border-top: 1px solid var(--border);
}

.member-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.member-avatar {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: white;
    font-size: 13px;
    font-weight: 800;
}

.member-profile strong {
    display: block;
    font-size: 12px;
}

.member-profile span {
    display: block;
    margin-top: 4px;
    color: var(--grey);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-sidebar .member-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    white-space: normal;
}

    .member-sidebar .member-nav a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
        color: var(--green);
        font-size: 10px;
        font-weight: 800;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

        .member-sidebar .member-nav a:hover,
        .member-sidebar .member-nav a.active {
            color: var(--gold);
        }

.member-content {
    max-width: 800px;
}

.member-welcome {
    margin-bottom: 45px;
}

    .member-welcome h2 {
        margin: 10px 0 18px;
        font-family: "Montserrat", sans-serif;
        font-size: clamp(2rem, 4vw, 3.5rem);
    }

    .member-welcome p {
        max-width: 650px;
        color: var(--grey);
        font-size: 15px;
        line-height: 1.8;
    }

.member-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.member-card {
    position: relative;
    min-height: 190px;
    padding: 25px;
    border: 1px solid var(--border);
    background: white;
    color: var(--green);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .member-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
    }

.member-card-icon {
    display: block;
    margin-bottom: 30px;
    color: var(--gold);
    font-size: 22px;
    font-weight: 400;
}

.member-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-card p {
    margin: 0;
    color: var(--grey);
    font-size: 12px;
    line-height: 1.6;
}

.member-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 45px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.member-summary-item {
    padding: 20px 25px;
    border-right: 1px solid var(--border);
}

    .member-summary-item:last-child {
        border-right: none;
    }

    .member-summary-item span {
        display: block;
        margin-bottom: 8px;
        color: var(--grey);
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.7px;
    }

    .member-summary-item strong {
        font-family: "Montserrat", sans-serif;
        font-size: 15px;
    }

.membership-status.active {
    color: var(--green-light);
}

.membership-status.inactive {
    color: #9b3333;
}


/* Member details */

.member-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    gap: 30px;
    margin-top: 45px;
}

.member-details-card {
    background: white;
    border: 1px solid var(--border);
    padding: 40px;
}

.member-card-heading {
    margin-bottom: 35px;
}

    .member-card-heading h2 {
        font-family: "Montserrat", sans-serif;
        font-size: 28px;
        margin: 8px 0 12px;
    }

    .member-card-heading p {
        color: var(--grey);
        font-size: 13px;
        line-height: 1.7;
        margin: 0;
    }

.member-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.member-details-card .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.member-details-card .form-group-full {
    grid-column: 1 / -1;
}

.member-details-card .form-group label {
    margin-bottom: 8px;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.member-details-card .form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    border: 1px solid var(--border);
    background: var(--cream);
    color: var(--green);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

    .member-details-card .form-group input:focus {
        border-color: var(--green-light);
    }

.validation-message {
    margin-top: 5px;
    color: #9b3333;
    font-size: 11px;
}

.member-form-actions {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

    .member-form-actions .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 13px 25px;
        border: none;
        background: var(--green);
        color: white;
        font-family: inherit;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: background 0.2s ease;
    }

        .member-form-actions .btn-primary:hover {
            background: var(--green-light);
            transform: none;
        }

.member-readonly {
    background: var(--cream);
}

.member-info-list {
    border-top: 1px solid var(--border);
}

.member-info-row {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

    .member-info-row span {
        color: var(--grey);
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.6px;
    }

    .member-info-row strong {
        font-family: "Montserrat", sans-serif;
        font-size: 14px;
        word-break: break-word;
    }

.member-success {
    margin-top: 30px;
    padding: 15px 20px;
    border-left: 3px solid var(--green-light);
    background: white;
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   VOTING - ADMIN
   ========================================================= */

.admin-voting-page {
    padding-bottom: 4rem;
}

.admin-voting-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-voting-summary-card {
    background: #fff;
    border: 1px solid #e5e0d8;
    border-radius: 14px;
    padding: 1.35rem 1.4rem;
    box-shadow: 0 5px 18px rgba(71, 61, 48, 0.05);
}

.admin-voting-summary-label {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8176;
    margin-bottom: 0.35rem;
}

.admin-voting-summary-card strong {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    line-height: 1.1;
    color: #51483f;
}

.admin-voting-summary-card small {
    display: block;
    margin-top: 0.35rem;
    color: #8a8176;
    font-size: 0.82rem;
}

.admin-voting-page .admin-form-card {
    margin-bottom: 1.5rem;
}

.admin-voting-page .admin-form-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-voting-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: #f1ede7;
    color: #665d54;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-voting-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-voting-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    background: #fff;
    border: 1px solid #e7e1d9;
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .admin-voting-card:hover {
        transform: translateY(-2px);
        border-color: #d8d0c6;
        box-shadow: 0 8px 24px rgba(71, 61, 48, 0.08);
    }

.admin-voting-card-main {
    flex: 1;
    min-width: 0;
}

.admin-voting-card-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.admin-voting-card h3 {
    margin: 0;
    color: #51483f;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.admin-voting-card p {
    margin: 0.55rem 0 0;
    color: #766d64;
    line-height: 1.6;
}

.admin-voting-status,
.admin-voting-anonymous {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

    .admin-voting-status.open {
        background: #e7f2e9;
        color: #477052;
    }

    .admin-voting-status.scheduled {
        background: #eeeaf7;
        color: #66548a;
    }

    .admin-voting-status.closed {
        background: #f0ece7;
        color: #776d63;
    }

    .admin-voting-status.draft {
        background: #f8eee2;
        color: #916b42;
    }

.admin-voting-anonymous {
    background: #f1ede7;
    color: #766d64;
}

.admin-voting-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.5rem;
    margin-top: 1rem;
}

    .admin-voting-meta span {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        color: #80766d;
        font-size: 0.82rem;
    }

    .admin-voting-meta strong {
        color: #5d554d;
        font-weight: 700;
    }

.admin-voting-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
    min-width: 150px;
}

    .admin-voting-card-actions form {
        margin: 0;
    }

    .admin-voting-card-actions .admin-edit-button,
    .admin-voting-card-actions .admin-delete-button {
        white-space: nowrap;
    }

.admin-voting-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
}

    .admin-voting-empty.compact {
        padding: 2.5rem 1.5rem;
    }

.admin-voting-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #eeeae4;
    color: #81766b;
    font-size: 1.15rem;
    font-weight: 700;
}

.admin-voting-empty h3 {
    margin: 0;
    color: #51483f;
    font-family: "Montserrat", sans-serif;
    font-size: 1.15rem;
}

.admin-voting-empty p {
    max-width: 500px;
    margin: 0.55rem auto 1.25rem;
    color: #80766d;
    line-height: 1.6;
}

.admin-voting-public-link {
    padding: 0.5rem 0 1rem;
    text-align: center;
}

    .admin-voting-public-link .text-link {
        color: #756758;
        font-weight: 700;
        text-decoration: none;
    }


/* =========================================================
   VOTING - PUBLIC
   ========================================================= */

.voting-page {
    padding: 4rem 0 5rem;
}

.voting-header {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

    .voting-header h1 {
        margin: 0.5rem 0 0.75rem;
        color: #51483f;
        font-family: "Montserrat", sans-serif;
        font-size: 2.5rem;
        font-weight: 700;
    }

    .voting-header p {
        margin: 0;
        color: #766d64;
        font-size: 1rem;
        line-height: 1.7;
    }

.voting-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.voting-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.6rem 1.75rem;
    background: #fff;
    border: 1px solid #e7e1d9;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(71, 61, 48, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .voting-card:hover {
        transform: translateY(-2px);
        border-color: #d8d0c6;
        box-shadow: 0 9px 26px rgba(71, 61, 48, 0.08);
    }

.voting-card-content {
    flex: 1;
    min-width: 0;
}

.voting-card h2 {
    margin: 0;
    color: #51483f;
    font-family: "Montserrat", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.voting-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.voting-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.voting-badge-open {
    background: #e7f2e9;
    color: #477052;
}

.voting-badge-complete {
    background: #eeeaf7;
    color: #66548a;
}

.voting-badge-anonymous {
    background: #f1ede7;
    color: #766d64;
}

.voting-description {
    margin: 0.65rem 0 0;
    color: #766d64;
    line-height: 1.65;
}

.voting-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.5rem;
    margin-top: 1rem;
}

    .voting-meta span {
        color: #80766d;
        font-size: 0.82rem;
    }

    .voting-meta strong {
        margin-right: 0.3rem;
        color: #5d554d;
    }

.voting-card-action {
    flex-shrink: 0;
}

.voting-complete-message {
    color: #665d54;
    font-size: 0.85rem;
    font-weight: 700;
}

.voting-empty {
    max-width: 650px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    background: #fff;
    border: 1px solid #e7e1d9;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(71, 61, 48, 0.05);
}

.voting-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #eeeae4;
    color: #81766b;
    font-size: 1.2rem;
    font-weight: 700;
}

.voting-empty h2 {
    margin: 0;
    color: #51483f;
    font-family: "Montserrat", sans-serif;
    font-size: 1.35rem;
}

.voting-empty p {
    max-width: 500px;
    margin: 0.65rem auto 0;
    color: #80766d;
    line-height: 1.6;
}


/* Voting cast */

.voting-cast-page {
    padding-top: 2.5rem;
    padding-bottom: 5rem;
}

.voting-cast-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.voting-cast-header {
    margin-bottom: 1.5rem;
}

.voting-back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #756758;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

    .voting-back-link:hover {
        text-decoration: underline;
    }

.voting-cast-header .section-kicker {
    display: block;
}

.voting-cast-header h1 {
    margin: 0.5rem 0 0.75rem;
    color: #51483f;
    font-family: "Montserrat", sans-serif;
    font-size: 2.2rem;
    line-height: 1.2;
}

.voting-cast-header p {
    margin: 0;
    color: #766d64;
    line-height: 1.7;
}

.voting-form-card {
    background: #fff;
    border: 1px solid #e7e1d9;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 5px 18px rgba(71, 61, 48, 0.05);
}

.voting-form-card-header {
    margin-bottom: 1.5rem;
}

.voting-form-kicker {
    display: block;
    margin-bottom: 0.35rem;
    color: #8a8176;
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.voting-form-card-header h2 {
    margin: 0;
    color: #51483f;
    font-family: "Montserrat", sans-serif;
    font-size: 1.25rem;
}

.voting-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.voting-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: #faf8f5;
    border: 1px solid #e5dfd7;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .voting-option:hover {
        background: #f5f1eb;
        border-color: #d6cec4;
        transform: translateY(-1px);
    }

    .voting-option input {
        flex-shrink: 0;
        width: 1.1rem;
        height: 1.1rem;
        margin: 0;
        accent-color: #756758;
    }

.voting-option-content {
    flex: 1;
}

.voting-option-name {
    color: #51483f;
    font-size: 0.95rem;
    font-weight: 700;
}

.voting-form-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ebe6df;
}

.voting-anonymous-note {
    margin: 0 0 1.25rem;
    color: #80766d;
    font-size: 0.82rem;
    line-height: 1.6;
}

.voting-submit-button {
    width: 100%;
}

.voting-validation-summary {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    background: #f8eee8;
    border: 1px solid #ead8ce;
    border-radius: 10px;
    color: #895f50;
    font-size: 0.85rem;
}

    .voting-validation-summary ul {
        margin: 0;
        padding-left: 1.25rem;
    }

.voting-status-panel {
    padding: 3rem 2rem;
    background: #fff;
    border: 1px solid #e7e1d9;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 18px rgba(71, 61, 48, 0.05);
}

.voting-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #eeeae4;
    color: #756758;
    font-size: 1.2rem;
    font-weight: 700;
}

.voting-status-panel h2 {
    margin: 0;
    color: #51483f;
    font-family: "Montserrat", sans-serif;
    font-size: 1.35rem;
}

.voting-status-panel p {
    max-width: 520px;
    margin: 0.65rem auto 1.5rem;
    color: #80766d;
    line-height: 1.6;
}


/* Voting results */

.voting-results-page {
    padding-bottom: 5rem;
}

.voting-results-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.voting-results-header {
    margin-bottom: 2rem;
}

    .voting-results-header h1 {
        margin: 0.5rem 0 0.75rem;
        color: #51483f;
        font-family: "Montserrat", sans-serif;
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .voting-results-header p {
        max-width: 700px;
        margin: 0;
        color: #766d64;
        line-height: 1.7;
    }

.voting-results-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.voting-results-summary-card {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e7e1d9;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(71, 61, 48, 0.05);
}

    .voting-results-summary-card span {
        display: block;
        margin-bottom: 0.35rem;
        color: #8a8176;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .voting-results-summary-card strong {
        color: #51483f;
        font-family: "Montserrat", sans-serif;
        font-size: 1.25rem;
    }

.voting-results-card {
    padding: 2rem;
    background: #fff;
    border: 1px solid #e7e1d9;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(71, 61, 48, 0.05);
}

.voting-results-card-header {
    margin-bottom: 1.75rem;
}

    .voting-results-card-header h2 {
        margin: 0.3rem 0 0;
        color: #51483f;
        font-family: "Montserrat", sans-serif;
        font-size: 1.3rem;
    }

.voting-public-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.voting-public-result {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #ebe6df;
}

    .voting-public-result:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

.voting-public-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

    .voting-public-result-header strong {
        color: #51483f;
        font-family: "Montserrat", sans-serif;
        font-size: 1rem;
    }

    .voting-public-result-header span {
        flex-shrink: 0;
        color: #80766d;
        font-size: 0.8rem;
        font-weight: 700;
    }

.voting-public-result-bar {
    width: 100%;
    height: 0.7rem;
    overflow: hidden;
    background: #eeeae4;
    border-radius: 999px;
}

.voting-public-result-fill {
    height: 100%;
    background: #756758;
    border-radius: 999px;
}

.voting-results-no-votes {
    padding: 2rem;
    text-align: center;
}

    .voting-results-no-votes h3 {
        margin: 0;
        color: #51483f;
        font-family: "Montserrat", sans-serif;
    }

    .voting-results-no-votes p {
        margin: 0.5rem 0 0;
        color: #80766d;
    }

.voting-results-note {
    margin-top: 1rem;
    color: #80766d;
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: center;
}

    .voting-results-note span {
        display: block;
        margin-top: 0.2rem;
    }

.voting-message {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
}

.voting-message-success {
    background: #e7f2e9;
    border: 1px solid #d3e5d6;
    color: #477052;
}

.voting-message-error {
    background: #f8eee8;
    border: 1px solid #ead8ce;
    color: #895f50;
}

.voting-section {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.voting-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.voting-section-kicker {
    display: block;
    margin-bottom: 0.3rem;
    color: #8a8176;
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.voting-section-header h2 {
    margin: 0;
    color: #51483f;
    font-family: "Montserrat", sans-serif;
    font-size: 1.4rem;
}

.voting-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: #f1ede7;
    color: #665d54;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
}

.voting-results-section {
    padding-top: 0.5rem;
}

.voting-results-publish-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1.5rem;
}

    .voting-results-publish-card h2 {
        margin: 0.35rem 0 0;
        color: #51483f;
        font-family: "Montserrat", sans-serif;
        font-size: 1.2rem;
    }

    .voting-results-publish-card p {
        margin: 0.55rem 0 0;
        color: #80766d;
        line-height: 1.6;
    }

    .voting-results-publish-card form {
        margin: 0;
    }


/* =========================================================
   AMERY UNIONIST CLUB
   Site-wide stylesheet
   ========================================================= */


/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --navy: #071514;
    --green: #123b30;
    --green-light: #164b3b;
    --gold: #c7a45b;
    --cream: #f3f1eb;
    --grey: #73766f;
    --white: #ffffff;
    --border: #dedbd2;
    --shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   RESET / BASE
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", Arial, sans-serif;
    color: var(--navy);
    background: var(--cream);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
}


/* =========================================================
   SITE HEADER
   ========================================================= */

.site-header {
    background: var(--navy);
    color: white;
    min-height: 82px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}


/* Logo */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-mark {
    width: 42px;
    height: 42px;
    background: var(--green);
    border: 1px solid rgba(199, 164, 91, 0.5);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.logo-text span {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}

.logo-text strong {
    display: block;
    color: var(--gold);
    font-family: "Montserrat", sans-serif;
    font-size: 8px;
    letter-spacing: 1.5px;
}


/* Desktop navigation */

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .main-nav a {
        color: rgba(255, 255, 255, 0.65);
        font-size: 11px;
        font-weight: 600;
        transition: color 0.2s ease;
    }

        .main-nav a:hover {
            color: white;
        }


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    position: relative;
    z-index: 1001;
}

    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--white);
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

.mobile-menu {
    display: none;
    width: 100%;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

    .mobile-menu.open {
        display: block !important;
    }

.mobile-menu-inner {
    padding-top: 8px;
    padding-bottom: 20px;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

    .mobile-nav a {
        display: block;
        padding: 15px 0;
        color: var(--white);
        text-decoration: none;
        font-family: "Montserrat", sans-serif;
        font-size: 15px;
        font-weight: 600;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

        .mobile-nav a:last-child {
            border-bottom: none;
        }

        .mobile-nav a:hover {
            color: var(--gold);
        }

    .mobile-nav .mobile-account-link {
        color: var(--gold);
    }

    .mobile-nav .mobile-logout-form {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .mobile-nav .mobile-logout-button {
        width: 100%;
        padding: 15px 0;
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.75);
        font-family: inherit;
        font-size: 15px;
        font-weight: 600;
        text-align: left;
        text-transform: none;
        cursor: pointer;
    }

        .mobile-nav .mobile-logout-button:hover {
            color: var(--gold);
        }

.mobile-account-nav {
    padding-top: 18px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* Desktop - ensure mobile menu never appears */

@media (min-width: 801px) {

    .mobile-menu,
    .mobile-menu-toggle {
        display: none !important;
    }
}


/* Member / account navigation */

.member-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.member-button {
    border: 1px solid rgba(199, 164, 91, 0.5);
    color: var(--gold);
    padding: 10px 16px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    transition: 0.25s;
}

    .member-button:hover {
        background: var(--gold);
        color: var(--navy);
    }

.member-login-button,
.member-account-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    box-sizing: border-box;
    border: 1px solid var(--gold);
    background: var(--gold);
    color: var(--green);
    font-size: 9px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.member-login-button {
    padding: 0 22px;
}

.member-account-button {
    padding: 0 18px;
}

    .member-login-button:hover,
    .member-account-button:hover {
        background: var(--green);
        border-color: var(--green);
        color: white;
    }

.logout-form {
    display: flex;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 18px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--green);
    font-family: inherit;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .logout-button:hover {
        background: var(--green);
        border-color: var(--green);
        color: white;
    }

.login-nav-link {
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    text-transform: uppercase;
}

    .login-nav-link:hover {
        color: var(--gold);
    }

.logout-nav-button,
.nav-auth-link {
    padding: 0;
    margin: 0;
    border: none;
    background: none;
    color: white;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

    .logout-nav-button:hover,
    .nav-auth-link:hover {
        color: var(--gold);
    }

.nav-logout-form {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-auth-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.nav-logout-button {
    appearance: none;
    -webkit-appearance: none;
}


/* =========================================================
   CONSTRUCTION BANNER
   ========================================================= */

.construction-banner {
    background: #f4f1e8;
    border-bottom: 1px solid #ddd6c7;
}

.construction-banner-inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 12px 20px;
    text-align: left;
}

.construction-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.construction-content {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

    .construction-content strong {
        font-family: "Montserrat", sans-serif;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
    }

    .construction-content span {
        font-size: 14px;
        color: #555;
    }


/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
    display: inline-block;
    padding: 13px 20px;
    font-size: 10px;
    font-weight: 800;
    transition: 0.25s;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

    .btn-primary:hover {
        transform: translateY(-2px);
    }

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

    .btn-outline:hover {
        background: white;
        color: var(--navy);
    }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: 1px solid var(--border);
    color: var(--green);
    text-decoration: none;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 650px;
    display: flex;
    align-items: center;
    color: white;
    background: linear-gradient(120deg, #071514, #164b3b);
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('/images/AmeryFront.png');
        background-repeat: no-repeat;
        background-position: right center;
        background-size: cover;
        opacity: 0.05;
        pointer-events: none;
    }

.hero-content {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.hero-label,
.section-label {
    display: inline-block;
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 800;
}

.hero h1 {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: 0.92;
    font-weight: 800;
    margin: 20px 0 30px;
}

    .hero h1 span {
        color: var(--gold);
    }

.hero p {
    max-width: 500px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 15px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-top: 35px;
}


/* =========================================================
   HOME - INTRO
   ========================================================= */

.home-intro {
    background: var(--cream);
    padding: 110px 0;
}

.home-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.home-intro h2,
.home-sport h2,
.home-committee h2 {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
    font-weight: 800;
    margin-top: 15px;
}

.intro-large {
    font-size: 21px;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 25px;
}

.home-intro-grid p:not(.intro-large) {
    color: var(--grey);
}


/* =========================================================
   HOME - WHAT'S ON
   ========================================================= */

.home-whats-on {
    background: white;
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 35px;
}

    .section-header h2 {
        font-family: "Montserrat", sans-serif;
        font-size: 36px;
        margin-top: 5px;
    }

.text-link {
    color: var(--green-light);
    font-size: 10px;
    font-weight: 800;
}

.event-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.event-preview {
    border: 1px solid var(--border);
    padding: 30px;
    min-height: 250px;
    position: relative;
    transition: 0.25s;
}

    .event-preview:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
    }

.event-date {
    color: var(--gold);
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    font-weight: 800;
}

.event-type {
    display: block;
    color: var(--grey);
    font-size: 8px;
    letter-spacing: 2px;
    margin-top: 25px;
}

.event-preview h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    margin: 8px 0;
}

.event-preview p {
    color: var(--grey);
    font-size: 11px;
}

.event-time {
    position: absolute;
    bottom: 25px;
    left: 30px;
    color: var(--green-light);
    font-size: 10px;
    font-weight: 800;
}


/* =========================================================
   HOME - SPORT
   ========================================================= */

.home-sport {
    color: white;
    padding: 110px 0;
    background: linear-gradient(120deg, #071514, #164b3b);
    position: relative;
    overflow: hidden;
    min-height: 650px;
    display: flex;
    align-items: center;
}

    .home-sport::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('/images/AmerySnooker.jpg');
        background-repeat: no-repeat;
        background-position: right center;
        background-size: cover;
        opacity: 0.05;
        pointer-events: none;
    }

.sport-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.home-sport p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 450px;
    margin: 25px 0 30px;
}

.sport-cards {
    display: grid;
    gap: 12px;
}

.sport-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
}

    .sport-card span {
        display: block;
        color: var(--gold);
        font-size: 8px;
        letter-spacing: 2px;
        font-weight: 800;
    }

    .sport-card strong {
        display: block;
        font-size: 11px;
        margin-top: 12px;
    }

    .sport-card > div {
        font-family: "Montserrat", sans-serif;
        font-size: 42px;
        font-weight: 800;
        margin-top: 5px;
    }

    .sport-card small {
        font-size: 15px;
        color: var(--gold);
    }

    .sport-card p {
        margin: 0;
        font-size: 9px;
    }


/* =========================================================
   SPORTS LANDING PAGE
   ========================================================= */

.sports-page {
    padding: 4rem 0 5rem;
}

.sports-header {
    max-width: 760px;
    margin-bottom: 3rem;
}

    .sports-header h1 {
        margin: 0.5rem 0 1rem;
        font-size: clamp(2.5rem, 5vw, 4rem);
        line-height: 1.05;
    }

    .sports-header p {
        margin: 0;
        max-width: 650px;
        font-size: 1.05rem;
        line-height: 1.7;
        opacity: 0.65;
    }

.sports-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

    .sports-grid .sport-card {
        display: flex;
        gap: 1.5rem;
        min-height: 250px;
        padding: 2rem;
        background: #fff;
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 16px;
        text-decoration: none;
        color: inherit;
        overflow: hidden;
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    }

        .sports-grid .sport-card:not(.sport-card-coming-soon):hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
            border-color: rgba(0, 0, 0, 0.15);
        }

.sport-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(0, 0, 0, 0.05);
}

.sport-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.sport-card-kicker {
    margin-bottom: 0.35rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.5;
}

.sports-grid .sport-card h2 {
    margin: 0 0 0.75rem;
    font-size: 1.7rem;
}

.sports-grid .sport-card p {
    margin: 0;
    max-width: 420px;
    font-size: 0.92rem;
    line-height: 1.65;
    opacity: 0.65;
}

.sport-card-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    font-weight: 800;
}

    .sport-card-link span {
        font-size: 1.1rem;
        transition: transform 0.2s ease;
    }

.sports-grid .sport-card:hover .sport-card-link span {
    transform: translateX(4px);
}

.sport-card-coming {
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.45;
}

.sport-card-coming-soon {
    opacity: 0.7;
}


/* =========================================================
   HOME - COMMITTEE
   ========================================================= */

.home-committee {
    background: var(--cream);
    padding: 110px 0;
}

.committee-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

    .committee-home-grid > div:last-child {
        max-width: 450px;
    }

    .committee-home-grid p {
        color: var(--grey);
        margin-bottom: 25px;
    }


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: var(--navy);
    color: white;
    padding: 70px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 50px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    margin-top: 15px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    margin-bottom: 8px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    line-height: 1.8;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 50px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    color: rgba(255, 255, 255, 0.3);
    font-size: 8px;
}


/* =========================================================
   GENERIC PAGE HERO
   ========================================================= */

.page-hero {
    background: var(--green);
    color: white;
    padding: 90px 0;
}

    .page-hero h1 {
        font-family: "Montserrat", sans-serif;
        font-size: clamp(3rem, 7vw, 5rem);
        line-height: 1;
        margin: 15px 0;
    }

    .page-hero p {
        color: rgba(255, 255, 255, 0.6);
        max-width: 500px;
    }


/* =========================================================
   WHAT'S ON
   ========================================================= */

.events-page {
    background: var(--cream);
    padding: 90px 0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.event-card {
    display: block;
    background: white;
    border: 1px solid var(--border);
    transition: 0.25s;
}

    .event-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
    }

.event-card-image {
    width: 100%;
    height: 260px;
    overflow: hidden;
}

    .event-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.event-card-date {
    min-width: 100px;
    background: var(--green);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

    .event-card-date strong {
        font-family: "Montserrat", sans-serif;
        font-size: 34px;
        line-height: 1;
    }

    .event-card-date span {
        color: var(--gold);
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        margin-top: 5px;
    }

.event-card-content {
    padding: 28px;
}

    .event-card-content .event-type {
        margin-top: 0;
    }

    .event-card-content h2 {
        font-family: "Montserrat", sans-serif;
        font-size: 22px;
        margin: 8px 0;
    }

    .event-card-content p {
        color: var(--grey);
        font-size: 12px;
        margin-bottom: 15px;
    }

    .event-card-content .event-time {
        position: static;
        color: var(--green-light);
    }

.empty-events {
    background: white;
    padding: 70px;
    text-align: center;
    border: 1px solid var(--border);
}

    .empty-events h2 {
        font-family: "Montserrat", sans-serif;
        margin-bottom: 10px;
    }

    .empty-events p {
        color: var(--grey);
    }


/* =========================================================
   EVENT DETAIL
   ========================================================= */

.event-detail {
    background: var(--cream);
    min-height: 750px;
    padding: 60px 0 100px;
}

.back-link {
    display: inline-block;
    color: var(--green-light);
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 35px;
}

.event-detail-grid {
    display: grid;
    grid-template-columns: minmax(300px, 500px) 1fr;
    gap: 80px;
    align-items: start;
}

.event-poster {
    background: white;
    padding: 12px;
    box-shadow: var(--shadow);
}

    .event-poster img {
        width: 100%;
        height: auto;
        display: block;
    }

.event-detail-info {
    padding-top: 20px;
}

    .event-detail-info h1 {
        font-family: "Montserrat", sans-serif;
        font-size: clamp(2.5rem, 5vw, 5rem);
        line-height: 1;
        margin: 15px 0 35px;
    }

.event-detail-date {
    display: flex;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    margin-bottom: 30px;
}

    .event-detail-date strong {
        font-family: "Montserrat", sans-serif;
        font-size: 48px;
        line-height: 1;
        color: var(--gold);
    }

    .event-detail-date div {
        display: flex;
        flex-direction: column;
    }

    .event-detail-date span:first-child {
        font-weight: 700;
        font-size: 13px;
    }

    .event-detail-date span:last-child {
        color: var(--grey);
        font-size: 11px;
        margin-top: 3px;
    }

.event-description {
    color: var(--grey);
    font-size: 15px;
    line-height: 1.8;
    max-width: 600px;
}

.current-poster {
    width: 220px;
    background: #f5f5f5;
    padding: 8px;
    margin-top: 10px;
}

    .current-poster img {
        width: 100%;
        height: auto;
        display: block;
    }

.admin-event-details {
    flex: 1;
}

.event-status {
    display: inline-block;
    margin-top: 6px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

    .event-status.published {
        color: var(--green-light);
    }

    .event-status.draft {
        color: var(--grey);
    }


/* =========================================================
   ADMIN - GENERAL
   ========================================================= */

.admin-page {
    background: var(--cream);
    min-height: 750px;
    padding: 60px 0 100px;
}

.admin-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

    .admin-page-header h1 {
        font-family: "Montserrat", sans-serif;
        font-size: clamp(2.5rem, 5vw, 4.5rem);
        line-height: 1;
        margin: 10px 0 15px;
    }

    .admin-page-header p {
        color: var(--grey);
        font-size: 14px;
        margin: 0;
    }

.admin-header {
    margin-bottom: 40px;
}

    .admin-header h1 {
        font-family: "Montserrat", sans-serif;
        font-size: 48px;
        margin-top: 10px;
    }

.admin-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 25px;
}

.admin-form-card,
.admin-events-card {
    background: white;
    border: 1px solid var(--border);
    padding: 35px;
}

    .admin-form-card h2,
    .admin-events-card h2 {
        font-family: "Montserrat", sans-serif;
        font-size: 22px;
        margin-bottom: 30px;
    }

.admin-form-card {
    border-radius: 0;
}

.admin-form-section {
    padding-bottom: 35px;
    margin-bottom: 35px;
    border-bottom: 1px solid #e4e1dc;
}

.admin-form-section-header {
    margin-bottom: 25px;
}

    .admin-form-section-header h2 {
        margin: 5px 0 0;
        font-size: 1.5rem;
    }

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.admin-form-field {
    display: flex;
    flex-direction: column;
}

    .admin-form-field label {
        margin-bottom: 7px;
        font-weight: 600;
        font-size: 0.9rem;
    }

    .admin-form-field .form-control {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #d8d4ce;
        border-radius: 0;
        font-family: inherit;
    }

        .admin-form-field .form-control:focus {
            outline: none;
            border-color: #222;
            box-shadow: none;
        }

.admin-form-checkbox {
    justify-content: flex-end;
}

    .admin-form-checkbox label {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 0;
    }

    .admin-form-checkbox input {
        width: 18px;
        height: 18px;
    }

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 7px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    background: #fafafa;
    font-family: inherit;
    font-size: 12px;
}

    .form-control:focus {
        outline: none;
        border-color: var(--green-light);
    }

.form-help {
    display: block;
    margin-top: 5px;
    color: var(--grey);
    font-size: 9px;
}

.validation-summary {
    background: #fff1f1;
    border: 1px solid #e0b5b5;
    color: #8a2525;
    padding: 12px 15px;
    margin-bottom: 20px;
    font-size: 11px;
}

    .validation-summary ul {
        margin: 0;
        padding-left: 20px;
    }

    .validation-summary:empty {
        display: none;
    }

.form-checkbox {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 25px 0;
}

    .form-checkbox label {
        font-size: 11px;
        font-weight: 600;
    }


/* Admin event list */

.admin-event {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border);
}

    .admin-event img {
        width: 70px;
        height: 70px;
        object-fit: cover;
    }

    .admin-event strong {
        display: block;
        font-size: 12px;
    }

    .admin-event span {
        display: block;
        color: var(--grey);
        font-size: 9px;
        margin-top: 5px;
    }

.admin-empty {
    color: var(--grey);
    font-size: 12px;
}


/* Admin event actions */

.admin-event-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    align-self: center;
}

.admin-edit-button,
.admin-delete-button {
    box-sizing: border-box;
    min-width: 75px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    margin: 0;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
}

.admin-edit-button {
    border: 1px solid var(--border);
    background: white;
    color: var(--green);
}

    .admin-edit-button:hover {
        background: var(--green);
        color: white;
    }

.admin-delete-form {
    margin: 0;
    padding: 0;
}

.admin-delete-button {
    border: 1px solid #d5b5b5;
    background: white;
    color: #9b3333;
}

    .admin-delete-button:hover {
        background: #9b3333;
        color: white;
        border-color: #9b3333;
    }

.admin-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}

.admin-primary-button,
.admin-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    text-decoration: none;
    font-family: inherit;
    font-weight: 600;
    border: 1px solid;
    cursor: pointer;
}

.admin-primary-button {
    background: #222;
    border-color: #222;
    color: #fff;
}

    .admin-primary-button:hover {
        opacity: 0.85;
        color: #fff;
    }

.admin-secondary-button {
    background: #fff;
    border-color: #d8d4ce;
    color: #222;
}

    .admin-secondary-button:hover {
        background: #f5f3ef;
        color: #222;
    }


/* =========================================================
   ADMIN DASHBOARD
   ========================================================= */

.admin-dashboard {
    background: var(--cream);
    min-height: 750px;
    padding: 70px 0 110px;
}

.admin-dashboard-header {
    margin-bottom: 55px;
}

    .admin-dashboard-header h1 {
        font-family: "Montserrat", sans-serif;
        font-size: clamp(3rem, 6vw, 5.5rem);
        line-height: 0.95;
        margin: 12px 0 20px;
    }

    .admin-dashboard-header p {
        color: var(--grey);
        font-size: 14px;
        max-width: 500px;
    }

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
}

.admin-dashboard-card {
    position: relative;
    display: flex;
    min-height: 270px;
    padding: 35px;
    background: white;
    color: var(--green);
    text-decoration: none;
    transition: transform 0.25s ease, background 0.25s ease;
}

    .admin-dashboard-card:hover {
        background: var(--green);
        color: white;
        transform: translateY(-3px);
        z-index: 2;
    }

.admin-dashboard-number {
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 800;
    opacity: 0.45;
    margin-right: 30px;
}

.admin-dashboard-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

    .admin-dashboard-content h2 {
        font-family: "Montserrat", sans-serif;
        font-size: 32px;
        margin: 8px 0 15px;
    }

    .admin-dashboard-content p {
        max-width: 350px;
        margin: 0;
        color: var(--grey);
        font-size: 13px;
        line-height: 1.7;
    }

.admin-dashboard-card:hover p {
    color: rgba(255, 255, 255, 0.75);
}

.admin-dashboard-link {
    margin-top: auto;
    padding-top: 25px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.admin-dashboard-card-disabled {
    cursor: default;
}

    .admin-dashboard-card-disabled:hover {
        transform: none;
        background: white;
        color: var(--green);
    }

        .admin-dashboard-card-disabled:hover p {
            color: var(--grey);
        }


/* =========================================================
   ADMIN MEMBERS
   ========================================================= */

.admin-members-card {
    background: white;
    border: 1px solid var(--border);
}

.admin-members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--border);
}

    .admin-members-header strong {
        display: block;
        font-family: "Montserrat", sans-serif;
        font-size: 18px;
    }

    .admin-members-header span {
        display: block;
        margin-top: 4px;
        color: var(--grey);
        font-size: 10px;
    }

.admin-members-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-export-button,
.admin-import-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: 14px;
    background-color: var(--green);
    color: var(--cream);
}

    .admin-export-button:hover,
    .admin-import-button:hover {
        text-decoration: none;
    }

.admin-members-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    margin-bottom: 24px;
    background: #e5e2dc;
}

.admin-member-summary-item {
    background: #fff;
    padding: 24px;
}

    .admin-member-summary-item span {
        display: block;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 8px;
    }

    .admin-member-summary-item strong {
        font-family: "Montserrat", sans-serif;
        font-size: 1.8rem;
    }

.admin-members-filters {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}

.admin-members-search {
    flex: 1;
}

    .admin-members-search input,
    .admin-members-filter select {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid #d8d4ce;
        background: #fff;
        font-family: "DM Sans", sans-serif;
        font-size: 0.95rem;
    }

        .admin-members-search input:focus,
        .admin-members-filter select:focus {
            outline: none;
            border-color: #999;
        }

.admin-members-filter {
    min-width: 180px;
}

.admin-filter-button {
    padding: 12px 20px;
    border: none;
    background: #222;
    color: #fff;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    cursor: pointer;
}

    .admin-filter-button:hover {
        opacity: 0.85;
    }

.admin-clear-filter {
    padding: 12px 10px;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.admin-members-table-wrapper {
    overflow-x: auto;
}

.admin-members-table {
    width: 100%;
    border-collapse: collapse;
}

    .admin-members-table th {
        padding: 15px 20px;
        background: var(--cream);
        border-bottom: 1px solid var(--border);
        color: var(--grey);
        font-size: 9px;
        font-weight: 800;
        text-align: left;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .admin-members-table td {
        padding: 18px 20px;
        border-bottom: 1px solid var(--border);
        color: var(--grey);
        font-size: 12px;
    }

    .admin-members-table tbody tr:last-child td {
        border-bottom: none;
    }

    .admin-members-table tbody tr:hover {
        background: #fafafa;
    }

.admin-member-name {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 190px;
}

    .admin-member-name strong {
        color: var(--green);
        font-family: "Montserrat", sans-serif;
        font-size: 12px;
    }

.admin-member-avatar {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--green);
    color: white;
    font-size: 9px;
    font-weight: 800;
}

.admin-member-status {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

    .admin-member-status.active {
        color: var(--green-light);
    }

    .admin-member-status.inactive {
        color: #9b3333;
    }

.admin-member-actions {
    text-align: right;
}

    .admin-member-actions .admin-edit-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 15px;
        border: 1px solid var(--border);
        color: var(--green);
        font-size: 9px;
        font-weight: 800;
        text-decoration: none;
        text-transform: uppercase;
    }

        .admin-member-actions .admin-edit-button:hover {
            background: var(--green);
            color: white;
        }


/* =========================================================
   ADMIN MEMBER EDIT
   ========================================================= */

.admin-edit-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    max-width: 900px;
}

.admin-edit-section {
    padding-bottom: 35px;
    margin-bottom: 35px;
    border-bottom: 1px solid #e5e7eb;
}

    .admin-edit-section h2 {
        margin: 8px 0 25px;
        font-family: "Montserrat", sans-serif;
        font-size: 22px;
    }

.admin-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.admin-form-group {
    display: flex;
    flex-direction: column;
}

    .admin-form-group label {
        margin-bottom: 8px;
        font-weight: 600;
    }

.admin-form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
}

    .admin-form-control:focus {
        outline: none;
        border-color: #111827;
    }

.admin-edit-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
}

.admin-edit-danger {
    margin-right: auto;
}

.admin-edit-standard {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-save-button,
.admin-cancel-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 6px;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.admin-save-button {
    border: none;
}

    .admin-cancel-button:hover,
    .admin-save-button:hover {
        text-decoration: none;
    }

.admin-edit-danger .admin-delete-button {
    padding: 12px 20px;
    border: 1px solid #dc2626;
    border-radius: 6px;
    background: transparent;
    color: #dc2626;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    cursor: pointer;
}

    .admin-edit-danger .admin-delete-button:hover {
        background: #dc2626;
        color: #fff;
    }


/* =========================================================
   ADMIN SUMMARY CARDS
   ========================================================= */

.admin-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.admin-summary-card {
    background: #fff;
    border: 1px solid #e8e5df;
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-summary-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #77736c;
}

.admin-summary-value {
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
}

.admin-summary-description {
    font-size: 0.85rem;
    color: #77736c;
}

.committee-member-cell {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.committee-warning {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.8rem;
    font-weight: 700;
    color: #9a6700;
}

.committee-attention-row {
    background: #fffaf0;
}

.admin-events-history {
    margin-top: 50px;
    padding-top: 35px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

    .admin-events-history h2 {
        margin-bottom: 25px;
    }


/* =========================================================
   ADMIN PASSWORD / SUCCESS
   ========================================================= */

.admin-success-message {
    background: #fff;
    border: 1px solid #d8d4ce;
    padding: 40px;
}

    .admin-success-message > strong {
        display: block;
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

.temporary-password {
    margin: 25px 0;
    padding: 20px;
    background: #f5f3ef;
    border-left: 4px solid #222;
}

    .temporary-password span {
        display: block;
        font-size: 0.8rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 8px;
    }

    .temporary-password strong {
        display: block;
        font-family: monospace;
        font-size: 1.3rem;
        letter-spacing: 0.05em;
    }

.temporary-password-value {
    display: flex;
    align-items: center;
    gap: 15px;
}

.temporary-password-copy {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #d8d4ce;
    color: #222;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

    .temporary-password-copy:hover {
        background: #f5f3ef;
    }

.admin-warning-text {
    font-size: 0.9rem;
}


/* =========================================================
   COMMITTEE
   ========================================================= */

.committee-page {
    padding: 80px 0 100px;
}

.committee-header {
    max-width: 760px;
    margin-bottom: 55px;
}

    .committee-header h1 {
        margin: 10px 0 15px;
    }

    .committee-header p {
        margin: 0;
        font-size: 1.05rem;
        line-height: 1.7;
    }

.committee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.committee-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .committee-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.09);
    }

.committee-card-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f4f1eb;
}

    .committee-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.committee-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .committee-card-placeholder span {
        width: 120px;
        height: 120px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        font-weight: 700;
    }

.committee-card-content {
    padding: 28px;
}

.committee-card-position {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

.committee-card-content h2 {
    margin: 0 0 12px;
}

.committee-card-content p {
    margin: 0;
    line-height: 1.7;
}

.committee-empty {
    padding: 60px 30px;
    text-align: center;
    background: #fff;
    border-radius: 18px;
}

    .committee-empty h2 {
        margin-bottom: 10px;
    }

    .committee-empty p {
        margin: 0;
    }


/* =========================================================
   RULEBOOK - PUBLIC
   ========================================================= */

.rulebook-page {
    background: var(--cream);
    min-height: 750px;
    padding: 70px 0 110px;
}

.rulebook-header {
    max-width: 800px;
    margin-bottom: 70px;
}

    .rulebook-header h1 {
        font-family: "Montserrat", sans-serif;
        font-size: clamp(3.5rem, 7vw, 6rem);
        line-height: 0.9;
        margin: 12px 0 25px;
    }

    .rulebook-header p {
        max-width: 600px;
        color: var(--grey);
        font-size: 15px;
        line-height: 1.8;
    }

.rulebook-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding: 14px 20px;
    background: var(--green);
    color: white;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
}

    .rulebook-download span {
        font-size: 16px;
        line-height: 1;
    }

    .rulebook-download:hover {
        background: var(--gold);
        color: var(--green);
    }

.rulebook-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 80px;
    align-items: start;
}

.rulebook-navigation {
    position: sticky;
    top: 30px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
}

.rulebook-nav-title {
    padding: 18px 0 15px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.rulebook-navigation a {
    padding: 12px 0;
    border-top: 1px solid var(--border);
    color: var(--grey);
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

    .rulebook-navigation a:hover {
        color: var(--green);
    }

.rulebook-content {
    max-width: 760px;
}

.rulebook-section {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 30px;
    padding: 0 0 65px;
    margin-bottom: 65px;
    border-bottom: 1px solid var(--border);
}

    .rulebook-section:last-child {
        margin-bottom: 0;
    }

.rulebook-section-number {
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 800;
    color: var(--gold);
}

.rulebook-section h2 {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1;
    margin: 0 0 25px;
}

.rulebook-section h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    margin: 30px 0 10px;
}

.rulebook-section p {
    color: var(--grey);
    font-size: 14px;
    line-height: 1.9;
    margin: 0 0 18px;
}

.rulebook-section-content {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

    .rulebook-section-content p {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        margin: 0;
        line-height: 1.7;
    }

.rulebook-rule-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-top: 0.15rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.05);
}


/* Online flipbook */

.rulebook-online {
    margin-top: 3rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
}

.rulebook-online-header {
    margin-bottom: 1.5rem;
}

    .rulebook-online-header h2 {
        margin: 0.4rem 0 0.5rem;
        font-size: 1.5rem;
    }

    .rulebook-online-header p {
        margin: 0;
        max-width: 650px;
        font-size: 0.9rem;
        line-height: 1.6;
        opacity: 0.6;
    }

.rulebook-flipbook {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #f5f5f5;
}

    .rulebook-flipbook .fp-iframe {
        display: block;
        width: 100%;
        height: 650px;
        border: none;
    }

.rulebook-download-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}


/* =========================================================
   ADMIN RULEBOOK
   ========================================================= */

.admin-rulebook-page,
.admin-rulebook-editor {
    padding-bottom: 4rem;
}

.admin-rulebook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2.5rem 0 1rem;
}

.admin-rulebook-count {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.admin-rulebook-description {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.9rem;
    opacity: 0.65;
}

.admin-rulebook-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-rulebook-card {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.75rem;
    padding: 1.75rem 2rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .admin-rulebook-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
        border-color: rgba(0, 0, 0, 0.14);
    }

.admin-rulebook-card-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 12px;
    font-size: 1.15rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.04);
}

.admin-rulebook-card-content {
    min-width: 0;
}

.admin-rulebook-card-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

    .admin-rulebook-card-heading h2 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 700;
    }

.admin-rulebook-preview {
    margin: 0.65rem 0 0;
    max-width: 800px;
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0.65;
}

    .admin-rulebook-preview.empty {
        font-style: italic;
    }

.rulebook-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.rulebook-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.rulebook-status.published {
    background: rgba(40, 160, 90, 0.1);
}

    .rulebook-status.published .rulebook-status-dot {
        background: #28a05a;
    }

.rulebook-status.draft {
    background: rgba(220, 150, 40, 0.12);
}

    .rulebook-status.draft .rulebook-status-dot {
        background: #dc9628;
    }

.admin-rulebook-card-action {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    .admin-rulebook-card-action .admin-edit-button {
        width: auto;
        height: auto;
        padding: 0.75rem 1.1rem;
        border-radius: 8px;
        font-size: 0.9rem;
        text-transform: none;
    }

.admin-rulebook-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-empty-state {
    margin-top: 2.5rem;
    padding: 4rem 2rem;
    text-align: center;
    background: #fff;
    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: 14px;
}

.admin-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    font-size: 1.5rem;
    background: rgba(0, 0, 0, 0.05);
}

.admin-empty-state h2 {
    margin-bottom: 0.5rem;
}

.admin-empty-state p {
    margin-bottom: 1.5rem;
    opacity: 0.65;
}


/* Rulebook editor */

.admin-rulebook-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.admin-form-card-header {
    margin-bottom: 1.75rem;
}

.admin-form-card-kicker {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.55;
}

.admin-form-card-header h2,
.admin-publishing-content h2 {
    margin: 0;
    font-size: 1.2rem;
}

.rulebook-editor-help {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.035);
}

.rulebook-editor-help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.08);
}

.rulebook-editor-help strong {
    display: block;
    margin-bottom: 0.2rem;
}

.rulebook-editor-help p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    opacity: 0.65;
}

.admin-rulebook-form textarea {
    min-height: 360px;
    resize: vertical;
    line-height: 1.8;
}

.admin-publishing-card {
    padding: 1.5rem 2rem;
}

.admin-publishing-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

    .admin-publishing-content p {
        margin: 0.4rem 0 0;
        max-width: 650px;
        font-size: 0.88rem;
        line-height: 1.55;
        opacity: 0.6;
    }

.admin-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

    .admin-toggle input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.admin-toggle-slider {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease;
}

    .admin-toggle-slider::after {
        content: "";
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
        transition: transform 0.2s ease;
    }

.admin-toggle input:checked + .admin-toggle-slider {
    background: #28a05a;
}

    .admin-toggle input:checked + .admin-toggle-slider::after {
        transform: translateX(20px);
    }

.admin-toggle-label {
    font-size: 0.9rem;
    font-weight: 700;
}


/* =========================================================
   SNOOKER - PUBLIC
   ========================================================= */

.snooker-page {
    padding: 80px 0 110px;
}

.snooker-header {
    max-width: 760px;
    margin-bottom: 70px;
}

    .snooker-header h1 {
        margin: 12px 0 18px;
        font-family: "Montserrat", sans-serif;
        font-size: clamp(3rem, 6vw, 5rem);
        line-height: 1;
        letter-spacing: -0.04em;
    }

    .snooker-header p {
        max-width: 620px;
        margin: 0;
        font-size: 1.1rem;
        line-height: 1.8;
    }

.snooker-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    margin-bottom: 28px;
}

    .snooker-section-heading h2 {
        margin: 8px 0 0;
        font-family: "Montserrat", sans-serif;
        font-size: 2rem;
        letter-spacing: -0.025em;
    }

.snooker-matches-section {
    margin-bottom: 80px;
}

.snooker-match-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.snooker-match-column {
    padding: 30px;
    background: #f7f4ee;
    border: 1px solid #e5e0d7;
    border-radius: 18px;
}

.snooker-match-heading {
    margin-bottom: 24px;
}

.snooker-match-kicker {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.snooker-match-heading h3 {
    margin: 6px 0 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1.35rem;
}

.snooker-public-match-list {
    display: flex;
    flex-direction: column;
}

.snooker-public-match {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 20px 0;
    border-top: 1px solid #e1ddd5;
}

    .snooker-public-match:first-child {
        border-top: 0;
        padding-top: 0;
    }

    .snooker-public-match:last-child {
        padding-bottom: 0;
    }

.snooker-public-match-date {
    width: 52px;
    height: 58px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd8cf;
    border-radius: 10px;
}

    .snooker-public-match-date strong {
        font-family: "Montserrat", sans-serif;
        font-size: 1.2rem;
        line-height: 1;
    }

    .snooker-public-match-date span {
        margin-top: 4px;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

.snooker-public-match-details {
    min-width: 0;
}

.snooker-public-match-type {
    display: block;
    margin-bottom: 5px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.snooker-public-match-details h4 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    font-size: 1rem;
    line-height: 1.35;
}

    .snooker-public-match-details h4 span {
        margin: 0 4px;
        font-weight: 400;
    }

.snooker-public-match-details p {
    margin: 7px 0 0;
    font-size: 0.82rem;
}

.snooker-public-score {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.3rem;
    white-space: nowrap;
}

    .snooker-public-score span {
        font-weight: 400;
    }

.snooker-public-empty {
    padding: 30px 0 5px;
}

    .snooker-public-empty p {
        margin: 0;
        font-size: 0.95rem;
    }

.snooker-table-empty {
    padding: 60px 30px;
    text-align: center;
    background: #f7f4ee;
    border: 1px solid #e5e0d7;
    border-radius: 18px;
}

.snooker-empty-icon {
    margin-bottom: 14px;
    font-size: 2rem;
}

.snooker-table-empty h3 {
    margin: 0 0 8px;
    font-family: "Montserrat", sans-serif;
}

.snooker-table-empty p {
    margin: 0;
}

.snooker-table-section {
    margin-top: 20px;
}

.snooker-table-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    text-align: right;
    font-size: 0.8rem;
}

    .snooker-table-meta span:first-child {
        font-weight: 700;
    }

.snooker-table-wrapper {
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e1ddd5;
    border-radius: 18px;
}

.snooker-league-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

    .snooker-league-table th {
        padding: 17px 18px;
        background: #f7f4ee;
        border-bottom: 1px solid #ddd8cf;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-align: center;
        text-transform: uppercase;
    }

        .snooker-league-table th:nth-child(2) {
            text-align: left;
        }

    .snooker-league-table td {
        padding: 18px;
        border-bottom: 1px solid #eeeae3;
        text-align: center;
        font-size: 0.9rem;
    }

    .snooker-league-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .snooker-league-table tbody tr:hover {
        background: #faf9f6;
    }

    .snooker-league-table .snooker-position {
        width: 60px;
    }

.snooker-position-number {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.snooker-team {
    text-align: left !important;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem !important;
}

.snooker-points {
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
}

.snooker-table-key {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 10px;
    margin-top: 16px;
    font-size: 0.75rem;
}

    .snooker-table-key span {
        font-weight: 700;
    }


/* =========================================================
   ADMIN SNOOKER
   ========================================================= */

.admin-snooker-page,
.admin-snooker-editor {
    padding: 60px 0 90px;
}

    .admin-snooker-page .admin-page-header,
    .admin-snooker-editor .admin-header {
        margin-bottom: 40px;
    }

        .admin-snooker-page .admin-page-header h1,
        .admin-snooker-editor .admin-header h1 {
            margin: 8px 0 12px;
        }

        .admin-snooker-page .admin-page-header p,
        .admin-snooker-editor .admin-header p {
            max-width: 650px;
            margin: 0;
        }

    .admin-snooker-page .admin-form-card,
    .admin-snooker-editor .admin-form-card {
        background: #fff;
        border: 1px solid #e7e3dc;
        border-radius: 18px;
        padding: 30px;
        margin-bottom: 28px;
        box-shadow: 0 8px 30px rgba(30, 25, 20, 0.05);
    }

.admin-snooker-form .admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

    .admin-snooker-form .admin-form-grid:last-child {
        margin-bottom: 0;
    }

.admin-snooker-form .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

    .admin-snooker-form .form-group label {
        font-weight: 700;
        margin-bottom: 8px;
    }

    .admin-snooker-form .form-group input,
    .admin-snooker-form .form-group select {
        width: 100%;
        min-height: 46px;
        padding: 10px 13px;
        border: 1px solid #dcd7cf;
        border-radius: 9px;
        background: #fff;
        font: inherit;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .admin-snooker-form .form-group input:focus,
        .admin-snooker-form .form-group select:focus {
            outline: none;
            border-color: #8f1d2c;
            box-shadow: 0 0 0 3px rgba(143, 29, 44, 0.1);
        }

.admin-form-card-description {
    margin: 8px 0 0;
    max-width: 650px;
    font-size: 0.88rem;
    opacity: 0.6;
}

.admin-snooker-edit-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
}

    .admin-snooker-edit-table thead {
        background: #f5f2ed;
    }

    .admin-snooker-edit-table th {
        padding: 14px 12px;
        text-align: left;
        font-size: 0.72rem;
        font-weight: 800;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }

    .admin-snooker-edit-table td {
        padding: 10px 12px;
        border-top: 1px solid #ebe7e0;
    }

        .admin-snooker-edit-table td input {
            width: 100%;
            min-height: 42px;
            padding: 8px 10px;
            border: 1px solid #dcd7cf;
            border-radius: 7px;
            background: #fff;
            font: inherit;
        }

            .admin-snooker-edit-table td input:focus {
                outline: none;
                border-color: #8f1d2c;
                box-shadow: 0 0 0 3px rgba(143, 29, 44, 0.08);
            }

    .admin-snooker-edit-table .position-column {
        width: 55px;
        text-align: center;
    }

    .admin-snooker-edit-table th:nth-child(3),
    .admin-snooker-edit-table th:nth-child(4),
    .admin-snooker-edit-table th:nth-child(5),
    .admin-snooker-edit-table th:nth-child(6),
    .admin-snooker-edit-table th:nth-child(7),
    .admin-snooker-edit-table td:nth-child(3),
    .admin-snooker-edit-table td:nth-child(4),
    .admin-snooker-edit-table td:nth-child(5),
    .admin-snooker-edit-table td:nth-child(6),
    .admin-snooker-edit-table td:nth-child(7) {
        width: 75px;
        text-align: center;
    }

    .admin-snooker-edit-table input[type="number"] {
        text-align: center;
    }

.row-number {
    font-weight: 800;
    opacity: 0.55;
}

.snooker-remove-row {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd7cf;
    border-radius: 50%;
    background: #fff;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .snooker-remove-row:hover {
        border-color: #8f1d2c;
        background: #faf0f2;
        transform: scale(1.05);
    }

.snooker-add-row {
    margin-top: 18px;
    padding: 11px 17px;
    border: 1px dashed #bcb5ab;
    border-radius: 9px;
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

    .snooker-add-row:hover {
        border-color: #8f1d2c;
        background: #faf5f6;
    }

.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 44px;
    cursor: pointer;
    font-weight: 600;
}

    .admin-checkbox-label input {
        width: 18px;
        height: 18px;
    }


/* Snooker publish */

.snooker-publish-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 20px 22px;
    border: 1px solid #dcd7cf;
    border-radius: 14px;
    background: #faf8f4;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.snooker-publish-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

    .snooker-publish-content strong {
        display: block;
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .snooker-publish-content p {
        margin: 0;
        font-size: 0.84rem;
        line-height: 1.5;
        opacity: 0.7;
        max-width: 440px;
    }

.snooker-publish-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    border-radius: 50%;
    background: #e8e3db;
    font-size: 0.85rem;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease;
}

.snooker-publish-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    cursor: pointer;
    user-select: none;
}

    .snooker-publish-toggle input {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
        pointer-events: none;
    }

.snooker-publish-toggle-track {
    position: relative;
    display: block;
    width: 52px;
    height: 30px;
    flex: 0 0 52px;
    border-radius: 999px;
    background: #c9c4bc;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.snooker-publish-toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease;
}

.snooker-publish-toggle input:checked + .snooker-publish-toggle-track {
    background: #8f1d2c;
    box-shadow: 0 0 0 4px rgba(143, 29, 44, 0.1);
}

    .snooker-publish-toggle input:checked + .snooker-publish-toggle-track .snooker-publish-toggle-thumb {
        transform: translateX(22px);
    }

.snooker-publish-toggle input:checked ~ .snooker-publish-toggle-label {
    font-weight: 700;
}

.snooker-publish-toggle-label {
    font-size: 0.86rem;
    white-space: nowrap;
}

.snooker-publish-toggle input:focus-visible + .snooker-publish-toggle-track {
    outline: 3px solid rgba(143, 29, 44, 0.25);
    outline-offset: 3px;
}

.snooker-publish-panel:has(.snooker-publish-toggle input:checked) {
    border-color: rgba(143, 29, 44, 0.35);
    background: rgba(143, 29, 44, 0.035);
}

    .snooker-publish-panel:has(.snooker-publish-toggle input:checked) .snooker-publish-icon {
        background: #8f1d2c;
        color: #fff;
    }


/* Snooker table summary */

.admin-snooker-table-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

    .admin-snooker-table-summary > div {
        padding: 18px;
        background: #f7f4ee;
        border: 1px solid #e3ded5;
        border-radius: 12px;
    }

    .admin-snooker-table-summary span {
        display: block;
        margin-bottom: 6px;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .admin-snooker-table-summary strong {
        display: block;
        font-family: "Montserrat", sans-serif;
        font-size: 0.95rem;
    }

.admin-snooker-published {
    color: #426448;
}

.admin-snooker-unpublished {
    color: #796b55;
}


/* Snooker admin list */

.admin-snooker-list-section {
    margin-top: 35px;
}

    .admin-snooker-list-section + .admin-snooker-list-section {
        padding-top: 35px;
        border-top: 1px solid #e5e0d7;
    }

.admin-snooker-list-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

    .admin-snooker-list-heading h3 {
        margin: 6px 0 0;
        font-family: "Montserrat", sans-serif;
        font-size: 1.3rem;
    }

    .admin-snooker-list-heading > span {
        min-width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: #f1eee8;
        font-size: 0.75rem;
        font-weight: 700;
    }

.admin-snooker-list {
    display: flex;
    flex-direction: column;
    border: 1px solid #e3ded5;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}

.admin-snooker-match {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr) 130px 80px;
    gap: 22px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid #eeeae3;
}

    .admin-snooker-match:last-child {
        border-bottom: 0;
    }

.admin-snooker-match-date {
    width: 52px;
    height: 58px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f7f4ee;
    border: 1px solid #ded9d0;
    border-radius: 10px;
}

    .admin-snooker-match-date strong {
        font-family: "Montserrat", sans-serif;
        font-size: 1.2rem;
        line-height: 1;
    }

    .admin-snooker-match-date span {
        margin-top: 4px;
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

.admin-snooker-match-info {
    min-width: 0;
}

    .admin-snooker-match-info strong {
        display: block;
        font-family: "Montserrat", sans-serif;
        font-size: 0.95rem;
    }

        .admin-snooker-match-info strong span {
            margin: 0 4px;
            font-weight: 400;
        }

    .admin-snooker-match-info small {
        display: block;
        margin-top: 6px;
        font-size: 0.76rem;
    }

.admin-snooker-match-time {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    text-align: right;
}

    .admin-snooker-match-time strong {
        font-family: "Montserrat", sans-serif;
        font-size: 0.9rem;
    }

.admin-snooker-match-score {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.15rem;
}

    .admin-snooker-match-score span {
        font-weight: 400;
    }

.admin-snooker-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

    .admin-snooker-status.published {
        background: #e8f2e8;
        color: #426448;
    }

    .admin-snooker-status.unpublished {
        background: #f3eee5;
        color: #796b55;
    }

.admin-snooker-match-actions {
    display: flex;
    justify-content: flex-end;
}

    .admin-snooker-match-actions .admin-edit-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 58px;
        padding: 8px 12px;
        border: 1px solid #d8d2c8;
        border-radius: 8px;
        background: #fff;
        text-decoration: none;
        font-size: 0.75rem;
        font-weight: 700;
        transition: all 0.2s ease;
    }

        .admin-snooker-match-actions .admin-edit-button:hover {
            background: #f7f4ee;
            border-color: #c8c0b5;
        }

.admin-snooker-empty {
    padding: 35px 20px;
    text-align: center;
    border: 1px dashed #d8d2c8;
    border-radius: 12px;
    background: #faf9f6;
}

    .admin-snooker-empty h3 {
        margin: 0 0 7px;
        font-family: "Montserrat", sans-serif;
    }

    .admin-snooker-empty p {
        margin: 0;
    }

.admin-success-message {
    max-width: 1100px;
    margin: 0 auto 25px;
    padding: 14px 18px;
    border: 1px solid rgba(38, 115, 77, 0.25);
    border-radius: 10px;
    background: rgba(38, 115, 77, 0.07);
    color: #26734d;
    font-weight: 700;
}


/* =========================================================
   LOGIN / AUTHENTICATION
   ========================================================= */

.login-page {
    min-height: calc(100vh - 90px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: #fff;
    padding: 45px 45px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #e7e7e7;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1f2937;
    color: #fff;
    border-radius: 50%;
    font-family: "Montserrat", sans-serif;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
}

.login-header h1 {
    margin: 0 0 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 30px;
    font-weight: 700;
}

.login-header p {
    margin: 0;
    color: #6b7280;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
}

.login-field {
    margin-bottom: 22px;
}

    .login-field label {
        display: block;
        margin-bottom: 8px;
        font-family: "DM Sans", sans-serif;
        font-size: 14px;
        font-weight: 600;
    }

    .login-field input {
        width: 100%;
        height: 48px;
        padding: 0 14px;
        border: 1px solid #d5d8dc;
        border-radius: 7px;
        background: #fff;
        font-family: "DM Sans", sans-serif;
        font-size: 15px;
        box-sizing: border-box;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .login-field input:focus {
            outline: none;
            border-color: #1f2937;
            box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.1);
        }

        .login-field input::placeholder {
            color: #9ca3af;
        }

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

    .remember-me input {
        width: 16px;
        height: 16px;
        margin: 0;
    }

.login-options a,
.login-footer a,
.login-back a {
    color: #1f2937;
    text-decoration: none;
    font-weight: 600;
}

    .login-options a:hover,
    .login-footer a:hover,
    .login-back a:hover {
        text-decoration: underline;
    }

.login-submit {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 7px;
    background: #1f2937;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

    .login-submit:hover {
        opacity: 0.9;
    }

    .login-submit:active {
        transform: translateY(1px);
    }

.login-validation {
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 7px;
    background: #fef2f2;
    color: #b91c1c;
    font-family: "DM Sans", sans-serif;
    font-size: 14px;
}

.login-error {
    display: block;
    margin-top: 6px;
    color: #b91c1c;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
}

.login-footer {
    text-align: center;
    margin-top: 28px;
    padding-top: 25px;
    border-top: 1px solid #eee;
    font-family: "DM Sans", sans-serif;
}

    .login-footer p {
        margin: 0 0 7px;
        color: #6b7280;
        font-size: 14px;
    }

.register-link {
    font-size: 14px;
}

.login-back {
    text-align: center;
    margin-top: 25px;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
}

.register-card {
    max-width: 500px;
}

.confirmation-message {
    text-align: center;
    font-family: "DM Sans", sans-serif;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

    .confirmation-message p {
        margin: 0 0 15px;
    }

.confirmation-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: 25px;
    box-sizing: border-box;
}

    .confirmation-button:hover {
        text-decoration: none !important;
    }


/* =========================================================
   MEMBER AREA
   ========================================================= */

.member-page {
    background: var(--cream);
    min-height: 750px;
    padding: 70px 0 100px;
}

.member-header {
    margin-bottom: 55px;
}

    .member-header h1 {
        margin: 12px 0 15px;
        font-family: "Montserrat", sans-serif;
        font-size: clamp(3rem, 6vw, 5.5rem);
        line-height: 0.95;
    }

    .member-header p {
        margin: 0;
        color: var(--grey);
        font-size: 15px;
    }

.member-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 70px;
    align-items: start;
}

.member-sidebar {
    border-top: 1px solid var(--border);
}

.member-profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
}

.member-avatar {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green);
    color: white;
    font-size: 13px;
    font-weight: 800;
}

.member-profile strong {
    display: block;
    font-size: 12px;
}

.member-profile span {
    display: block;
    margin-top: 4px;
    color: var(--grey);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-sidebar .member-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    white-space: normal;
}

    .member-sidebar .member-nav a {
        padding: 15px 0;
        border-bottom: 1px solid var(--border);
        color: var(--green);
        font-size: 10px;
        font-weight: 800;
        text-decoration: none;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

        .member-sidebar .member-nav a:hover,
        .member-sidebar .member-nav a.active {
            color: var(--gold);
        }

.member-content {
    max-width: 800px;
}

.member-welcome {
    margin-bottom: 45px;
}

    .member-welcome h2 {
        margin: 10px 0 18px;
        font-family: "Montserrat", sans-serif;
        font-size: clamp(2rem, 4vw, 3.5rem);
    }

    .member-welcome p {
        max-width: 650px;
        color: var(--grey);
        font-size: 15px;
        line-height: 1.8;
    }

.member-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.member-card {
    position: relative;
    min-height: 190px;
    padding: 25px;
    border: 1px solid var(--border);
    background: white;
    color: var(--green);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .member-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow);
    }

.member-card-icon {
    display: block;
    margin-bottom: 30px;
    color: var(--gold);
    font-size: 22px;
    font-weight: 400;
}

.member-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-card p {
    margin: 0;
    color: var(--grey);
    font-size: 12px;
    line-height: 1.6;
}

.member-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 45px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.member-summary-item {
    padding: 20px 25px;
    border-right: 1px solid var(--border);
}

    .member-summary-item:last-child {
        border-right: none;
    }

    .member-summary-item span {
        display: block;
        margin-bottom: 8px;
        color: var(--grey);
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.7px;
    }

    .member-summary-item strong {
        font-family: "Montserrat", sans-serif;
        font-size: 15px;
    }

.membership-status.active {
    color: var(--green-light);
}

.membership-status.inactive {
    color: #9b3333;
}


/* Member details */

.member-details-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
    gap: 30px;
    margin-top: 45px;
}

.member-details-card {
    background: white;
    border: 1px solid var(--border);
    padding: 40px;
}

.member-card-heading {
    margin-bottom: 35px;
}

    .member-card-heading h2 {
        font-family: "Montserrat", sans-serif;
        font-size: 28px;
        margin: 8px 0 12px;
    }

    .member-card-heading p {
        color: var(--grey);
        font-size: 13px;
        line-height: 1.7;
        margin: 0;
    }

.member-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.member-details-card .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.member-details-card .form-group-full {
    grid-column: 1 / -1;
}

.member-details-card .form-group label {
    margin-bottom: 8px;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.member-details-card .form-group input {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 15px;
    border: 1px solid var(--border);
    background: var(--cream);
    color: var(--green);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

    .member-details-card .form-group input:focus {
        border-color: var(--green-light);
    }

.validation-message {
    margin-top: 5px;
    color: #9b3333;
    font-size: 11px;
}

.member-form-actions {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

    .member-form-actions .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 13px 25px;
        border: none;
        background: var(--green);
        color: white;
        font-family: inherit;
        font-size: 10px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        transition: background 0.2s ease;
    }

        .member-form-actions .btn-primary:hover {
            background: var(--green-light);
            transform: none;
        }

.member-readonly {
    background: var(--cream);
}

.member-info-list {
    border-top: 1px solid var(--border);
}

.member-info-row {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

    .member-info-row span {
        color: var(--grey);
        font-size: 9px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.6px;
    }

    .member-info-row strong {
        font-family: "Montserrat", sans-serif;
        font-size: 14px;
        word-break: break-word;
    }

.member-success {
    margin-top: 30px;
    padding: 15px 20px;
    border-left: 3px solid var(--green-light);
    background: white;
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   VOTING - ADMIN
   ========================================================= */

.admin-voting-page {
    padding-bottom: 4rem;
}

.admin-voting-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.admin-voting-summary-card {
    background: #fff;
    border: 1px solid #e5e0d8;
    border-radius: 14px;
    padding: 1.35rem 1.4rem;
    box-shadow: 0 5px 18px rgba(71, 61, 48, 0.05);
}

.admin-voting-summary-label {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8176;
    margin-bottom: 0.35rem;
}

.admin-voting-summary-card strong {
    display: block;
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    line-height: 1.1;
    color: #51483f;
}

.admin-voting-summary-card small {
    display: block;
    margin-top: 0.35rem;
    color: #8a8176;
    font-size: 0.82rem;
}

.admin-voting-page .admin-form-card {
    margin-bottom: 1.5rem;
}

.admin-voting-page .admin-form-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-voting-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: #f1ede7;
    color: #665d54;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-voting-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-voting-card {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 2rem;
    background: #fff;
    border: 1px solid #e7e1d9;
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .admin-voting-card:hover {
        transform: translateY(-2px);
        border-color: #d8d0c6;
        box-shadow: 0 8px 24px rgba(71, 61, 48, 0.08);
    }

.admin-voting-card-main {
    flex: 1;
    min-width: 0;
}

.admin-voting-card-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}

.admin-voting-card h3 {
    margin: 0;
    color: #51483f;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

.admin-voting-card p {
    margin: 0.55rem 0 0;
    color: #766d64;
    line-height: 1.6;
}

.admin-voting-status,
.admin-voting-anonymous {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

    .admin-voting-status.open {
        background: #e7f2e9;
        color: #477052;
    }

    .admin-voting-status.scheduled {
        background: #eeeaf7;
        color: #66548a;
    }

    .admin-voting-status.closed {
        background: #f0ece7;
        color: #776d63;
    }

    .admin-voting-status.draft {
        background: #f8eee2;
        color: #916b42;
    }

.admin-voting-anonymous {
    background: #f1ede7;
    color: #766d64;
}

.admin-voting-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.5rem;
    margin-top: 1rem;
}

    .admin-voting-meta span {
        display: flex;
        align-items: center;
        gap: 0.3rem;
        color: #80766d;
        font-size: 0.82rem;
    }

    .admin-voting-meta strong {
        color: #5d554d;
        font-weight: 700;
    }

.admin-voting-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
    min-width: 150px;
}

    .admin-voting-card-actions form {
        margin: 0;
    }

    .admin-voting-card-actions .admin-edit-button,
    .admin-voting-card-actions .admin-delete-button {
        white-space: nowrap;
    }

.admin-voting-empty {
    text-align: center;
    padding: 3.5rem 1.5rem;
}

    .admin-voting-empty.compact {
        padding: 2.5rem 1.5rem;
    }

.admin-voting-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #eeeae4;
    color: #81766b;
    font-size: 1.15rem;
    font-weight: 700;
}

.admin-voting-empty h3 {
    margin: 0;
    color: #51483f;
    font-family: "Montserrat", sans-serif;
    font-size: 1.15rem;
}

.admin-voting-empty p {
    max-width: 500px;
    margin: 0.55rem auto 1.25rem;
    color: #80766d;
    line-height: 1.6;
}

.admin-voting-public-link {
    padding: 0.5rem 0 1rem;
    text-align: center;
}

    .admin-voting-public-link .text-link {
        color: #756758;
        font-weight: 700;
        text-decoration: none;
    }


/* =========================================================
   VOTING - PUBLIC
   ========================================================= */

.voting-page {
    padding: 4rem 0 5rem;
}

.voting-header {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

    .voting-header h1 {
        margin: 0.5rem 0 0.75rem;
        color: #51483f;
        font-family: "Montserrat", sans-serif;
        font-size: 2.5rem;
        font-weight: 700;
    }

    .voting-header p {
        margin: 0;
        color: #766d64;
        font-size: 1rem;
        line-height: 1.7;
    }

.voting-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-width: 900px;
    margin: 0 auto;
}

.voting-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.6rem 1.75rem;
    background: #fff;
    border: 1px solid #e7e1d9;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(71, 61, 48, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

    .voting-card:hover {
        transform: translateY(-2px);
        border-color: #d8d0c6;
        box-shadow: 0 9px 26px rgba(71, 61, 48, 0.08);
    }

.voting-card-content {
    flex: 1;
    min-width: 0;
}

.voting-card h2 {
    margin: 0;
    color: #51483f;
    font-family: "Montserrat", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.voting-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.7rem;
}

.voting-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.voting-badge-open {
    background: #e7f2e9;
    color: #477052;
}

.voting-badge-complete {
    background: #eeeaf7;
    color: #66548a;
}

.voting-badge-anonymous {
    background: #f1ede7;
    color: #766d64;
}

.voting-description {
    margin: 0.65rem 0 0;
    color: #766d64;
    line-height: 1.65;
}

.voting-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1.5rem;
    margin-top: 1rem;
}

    .voting-meta span {
        color: #80766d;
        font-size: 0.82rem;
    }

    .voting-meta strong {
        margin-right: 0.3rem;
        color: #5d554d;
    }

.voting-card-action {
    flex-shrink: 0;
}

.voting-complete-message {
    color: #665d54;
    font-size: 0.85rem;
    font-weight: 700;
}

.voting-empty {
    max-width: 650px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    background: #fff;
    border: 1px solid #e7e1d9;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(71, 61, 48, 0.05);
}

.voting-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #eeeae4;
    color: #81766b;
    font-size: 1.2rem;
    font-weight: 700;
}

.voting-empty h2 {
    margin: 0;
    color: #51483f;
    font-family: "Montserrat", sans-serif;
    font-size: 1.35rem;
}

.voting-empty p {
    max-width: 500px;
    margin: 0.65rem auto 0;
    color: #80766d;
    line-height: 1.6;
}


/* Voting cast */

.voting-cast-page {
    padding-top: 2.5rem;
    padding-bottom: 5rem;
}

.voting-cast-wrapper {
    max-width: 760px;
    margin: 0 auto;
}

.voting-cast-header {
    margin-bottom: 1.5rem;
}

.voting-back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: #756758;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

    .voting-back-link:hover {
        text-decoration: underline;
    }

.voting-cast-header .section-kicker {
    display: block;
}

.voting-cast-header h1 {
    margin: 0.5rem 0 0.75rem;
    color: #51483f;
    font-family: "Montserrat", sans-serif;
    font-size: 2.2rem;
    line-height: 1.2;
}

.voting-cast-header p {
    margin: 0;
    color: #766d64;
    line-height: 1.7;
}

.voting-form-card {
    background: #fff;
    border: 1px solid #e7e1d9;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 5px 18px rgba(71, 61, 48, 0.05);
}

.voting-form-card-header {
    margin-bottom: 1.5rem;
}

.voting-form-kicker {
    display: block;
    margin-bottom: 0.35rem;
    color: #8a8176;
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.voting-form-card-header h2 {
    margin: 0;
    color: #51483f;
    font-family: "Montserrat", sans-serif;
    font-size: 1.25rem;
}

.voting-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.voting-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.15rem;
    background: #faf8f5;
    border: 1px solid #e5dfd7;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .voting-option:hover {
        background: #f5f1eb;
        border-color: #d6cec4;
        transform: translateY(-1px);
    }

    .voting-option input {
        flex-shrink: 0;
        width: 1.1rem;
        height: 1.1rem;
        margin: 0;
        accent-color: #756758;
    }

.voting-option-content {
    flex: 1;
}

.voting-option-name {
    color: #51483f;
    font-size: 0.95rem;
    font-weight: 700;
}

.voting-form-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ebe6df;
}

.voting-anonymous-note {
    margin: 0 0 1.25rem;
    color: #80766d;
    font-size: 0.82rem;
    line-height: 1.6;
}

.voting-submit-button {
    width: 100%;
}

.voting-validation-summary {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    background: #f8eee8;
    border: 1px solid #ead8ce;
    border-radius: 10px;
    color: #895f50;
    font-size: 0.85rem;
}

    .voting-validation-summary ul {
        margin: 0;
        padding-left: 1.25rem;
    }

.voting-status-panel {
    padding: 3rem 2rem;
    background: #fff;
    border: 1px solid #e7e1d9;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 18px rgba(71, 61, 48, 0.05);
}

.voting-status-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #eeeae4;
    color: #756758;
    font-size: 1.2rem;
    font-weight: 700;
}

.voting-status-panel h2 {
    margin: 0;
    color: #51483f;
    font-family: "Montserrat", sans-serif;
    font-size: 1.35rem;
}

.voting-status-panel p {
    max-width: 520px;
    margin: 0.65rem auto 1.5rem;
    color: #80766d;
    line-height: 1.6;
}


/* Voting results */

.voting-results-page {
    padding-bottom: 5rem;
}

.voting-results-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.voting-results-header {
    margin-bottom: 2rem;
}

    .voting-results-header h1 {
        margin: 0.5rem 0 0.75rem;
        color: #51483f;
        font-family: "Montserrat", sans-serif;
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .voting-results-header p {
        max-width: 700px;
        margin: 0;
        color: #766d64;
        line-height: 1.7;
    }

.voting-results-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.voting-results-summary-card {
    padding: 1.25rem;
    background: #fff;
    border: 1px solid #e7e1d9;
    border-radius: 14px;
    box-shadow: 0 5px 18px rgba(71, 61, 48, 0.05);
}

    .voting-results-summary-card span {
        display: block;
        margin-bottom: 0.35rem;
        color: #8a8176;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .voting-results-summary-card strong {
        color: #51483f;
        font-family: "Montserrat", sans-serif;
        font-size: 1.25rem;
    }

.voting-results-card {
    padding: 2rem;
    background: #fff;
    border: 1px solid #e7e1d9;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(71, 61, 48, 0.05);
}

.voting-results-card-header {
    margin-bottom: 1.75rem;
}

    .voting-results-card-header h2 {
        margin: 0.3rem 0 0;
        color: #51483f;
        font-family: "Montserrat", sans-serif;
        font-size: 1.3rem;
    }

.voting-public-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.voting-public-result {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #ebe6df;
}

    .voting-public-result:last-child {
        padding-bottom: 0;
        border-bottom: none;
    }

.voting-public-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.65rem;
}

    .voting-public-result-header strong {
        color: #51483f;
        font-family: "Montserrat", sans-serif;
        font-size: 1rem;
    }

    .voting-public-result-header span {
        flex-shrink: 0;
        color: #80766d;
        font-size: 0.8rem;
        font-weight: 700;
    }

.voting-public-result-bar {
    width: 100%;
    height: 0.7rem;
    overflow: hidden;
    background: #eeeae4;
    border-radius: 999px;
}

.voting-public-result-fill {
    height: 100%;
    background: #756758;
    border-radius: 999px;
}

.voting-results-no-votes {
    padding: 2rem;
    text-align: center;
}

    .voting-results-no-votes h3 {
        margin: 0;
        color: #51483f;
        font-family: "Montserrat", sans-serif;
    }

    .voting-results-no-votes p {
        margin: 0.5rem 0 0;
        color: #80766d;
    }

.voting-results-note {
    margin-top: 1rem;
    color: #80766d;
    font-size: 0.8rem;
    line-height: 1.6;
    text-align: center;
}

    .voting-results-note span {
        display: block;
        margin-top: 0.2rem;
    }

.voting-message {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    padding: 0.9rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
}

.voting-message-success {
    background: #e7f2e9;
    border: 1px solid #d3e5d6;
    color: #477052;
}

.voting-message-error {
    background: #f8eee8;
    border: 1px solid #ead8ce;
    color: #895f50;
}

.voting-section {
    max-width: 900px;
    margin: 0 auto 3rem;
}

.voting-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.voting-section-kicker {
    display: block;
    margin-bottom: 0.3rem;
    color: #8a8176;
    font-family: "Montserrat", sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.voting-section-header h2 {
    margin: 0;
    color: #51483f;
    font-family: "Montserrat", sans-serif;
    font-size: 1.4rem;
}

.voting-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: #f1ede7;
    color: #665d54;
    font-family: "Montserrat", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
}

.voting-results-section {
    padding-top: 0.5rem;
}

.voting-results-publish-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1.5rem;
}

    .voting-results-publish-card h2 {
        margin: 0.35rem 0 0;
        color: #51483f;
        font-family: "Montserrat", sans-serif;
        font-size: 1.2rem;
    }

    .voting-results-publish-card p {
        margin: 0.55rem 0 0;
        color: #80766d;
        line-height: 1.6;
    }

    .voting-results-publish-card form {
        margin: 0;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */


/* Large tablet / smaller desktop */

@media (max-width: 1000px) {

    .committee-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-summary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* Tablet */

@media (max-width: 900px) {

    .admin-snooker-match {
        grid-template-columns: 60px minmax(0, 1fr) auto;
    }

    .admin-snooker-match-time {
        align-items: flex-start;
        text-align: left;
    }

    .admin-snooker-match-actions {
        grid-column: 2 / -1;
        justify-content: flex-start;
    }

    .admin-snooker-table-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-voting-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-voting-card {
        flex-direction: column;
        gap: 1.25rem;
    }

    .admin-voting-card-actions {
        justify-content: flex-start;
        min-width: 0;
    }
}


/* Main mobile breakpoint */

@media (max-width: 800px) {

    .container {
        width: min(100% - 30px, 1180px);
    }

    /*
       Important:
       The mobile menu is a sibling of .nav-container inside
       .site-header, so the header must become a column.
    */
    .site-header {
        flex-direction: column;
        align-items: stretch;
        min-height: 72px;
    }

    .nav-container {
        min-height: 72px;
    }

    .main-nav,
    .account-nav {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        margin-left: auto;
    }

    .mobile-menu {
        display: none !important;
        width: 100%;
    }

        .mobile-menu.open {
            display: block !important;
        }

    .member-nav {
        display: none;
    }

    .construction-banner-inner {
        justify-content: flex-start;
        padding: 14px 20px;
    }

    .construction-content {
        display: block;
    }

        .construction-content strong {
            display: block;
            margin-bottom: 3px;
        }

    .home-intro-grid,
    .sport-home-grid,
    .committee-home-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .event-preview-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .event-poster {
        max-width: 500px;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-page {
        padding: 40px 0 70px;
    }

    .admin-page-header {
        display: block;
    }

    .admin-members-table th,
    .admin-members-table td {
        padding: 14px;
    }

    .member-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .member-sidebar {
        max-width: 400px;
    }

    .member-cards {
        grid-template-columns: 1fr;
    }

    .member-summary {
        grid-template-columns: 1fr;
    }

    .member-summary-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

        .member-summary-item:last-child {
            border-bottom: none;
        }

    .member-details-layout {
        grid-template-columns: 1fr;
    }

    .member-details-card {
        padding: 25px;
    }

    .member-form-grid {
        grid-template-columns: 1fr;
    }

    .member-details-card .form-group-full {
        grid-column: auto;
    }

    .admin-edit-card {
        padding: 25px;
    }

    .admin-edit-grid {
        grid-template-columns: 1fr;
    }

    .admin-edit-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-edit-danger {
        width: 100%;
    }

    .admin-edit-standard {
        flex-direction: column-reverse;
        width: 100%;
    }

    .admin-edit-danger .admin-delete-button,
    .admin-save-button,
    .admin-cancel-button {
        width: 100%;
        box-sizing: border-box;
    }

    .admin-members-summary {
        grid-template-columns: 1fr;
    }

    .admin-members-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-members-filter {
        min-width: 0;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

        .admin-form-actions a,
        .admin-form-actions button {
            width: 100%;
            text-align: center;
        }

    .admin-dashboard {
        padding: 45px 0 80px;
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-card {
        min-height: 230px;
        padding: 25px;
    }

    .admin-rulebook-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 1.25rem;
        padding: 1.5rem;
    }

    .admin-rulebook-card-action {
        grid-column: 2;
        justify-content: flex-start;
    }

    .admin-rulebook-card-number {
        width: 52px;
        height: 52px;
    }

    .admin-publishing-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-snooker-page,
    .admin-snooker-editor {
        padding: 40px 0 60px;
    }

        .admin-snooker-page .admin-form-card,
        .admin-snooker-editor .admin-form-card {
            padding: 22px;
        }

    .admin-snooker-form .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .snooker-publish-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .snooker-publish-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .snooker-table-section {
        margin-top: 10px;
    }

    .snooker-page {
        padding: 55px 0 80px;
    }

    .snooker-header {
        margin-bottom: 50px;
    }

    .snooker-match-grid {
        grid-template-columns: 1fr;
    }

    .snooker-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .snooker-table-meta {
        align-items: flex-start;
        text-align: left;
    }

    .voting-card {
        flex-direction: column;
        align-items: stretch;
        gap: 1.25rem;
        padding: 1.35rem;
    }

    .voting-card-action {
        width: 100%;
    }

        .voting-card-action .btn-primary {
            display: block;
            width: 100%;
            text-align: center;
        }

    .voting-meta {
        flex-direction: column;
        gap: 0.45rem;
    }

    .voting-results-summary {
        grid-template-columns: 1fr;
    }

    .voting-results-card {
        padding: 1.25rem;
    }

    .voting-results-header h1 {
        font-size: 1.8rem;
    }

    .voting-results-publish-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .voting-results-summary-header {
        flex-direction: column;
        gap: 1rem;
    }

    .voting-results-meta {
        grid-template-columns: 1fr;
    }
}


/* Mobile */

@media (max-width: 700px) {

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .event-card-image {
        height: 220px;
    }

    .admin-summary-grid {
        grid-template-columns: 1fr;
    }

    .committee-page {
        padding: 55px 0 70px;
    }

    .committee-grid {
        grid-template-columns: 1fr;
    }

    .committee-card-image {
        aspect-ratio: 4 / 3;
    }

    .admin-voting-summary {
        grid-template-columns: 1fr;
    }

    .admin-voting-summary-card {
        padding: 1.15rem 1.2rem;
    }

    .admin-voting-card {
        padding: 1.15rem;
    }

    .admin-voting-meta {
        flex-direction: column;
        gap: 0.45rem;
    }

    .admin-voting-card-actions {
        width: 100%;
    }

        .admin-voting-card-actions .admin-edit-button,
        .admin-voting-card-actions .admin-delete-button {
            flex: 1;
            text-align: center;
        }

    .voting-page {
        padding: 3rem 0 4rem;
    }

    .voting-header h1 {
        font-size: 2rem;
    }

    .voting-result-header {
        align-items: flex-start;
    }

    .voting-result-count {
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
    }

    .voting-public-result-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.3rem;
    }
}


/* Small mobile */

@media (max-width: 650px) {

    .rulebook-page {
        padding: 45px 0 80px;
    }

    .rulebook-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rulebook-navigation {
        position: static;
    }

    .rulebook-section {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .rulebook-section-number {
        margin-bottom: 5px;
    }

    .rulebook-online {
        padding: 1.25rem;
    }

    .rulebook-flipbook .fp-iframe {
        height: 500px;
    }

    .rulebook-download-wrapper {
        justify-content: flex-start;
    }

    .admin-rulebook-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .admin-rulebook-card-action {
        grid-column: auto;
    }

    .admin-rulebook-card-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.6rem;
    }

    .admin-rulebook-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-form-card {
        padding: 1.5rem;
    }

    .admin-snooker-table-summary {
        grid-template-columns: 1fr;
    }

    .snooker-match-column {
        padding: 22px;
    }

    .snooker-public-match {
        grid-template-columns: 52px minmax(0, 1fr);
    }

    .snooker-public-score {
        grid-column: 2;
        justify-content: flex-start;
        margin-top: 3px;
    }

    .snooker-publish-content {
        gap: 10px;
    }

        .snooker-publish-content p {
            font-size: 0.8rem;
        }

    .voting-cast-page {
        padding-top: 2rem;
    }

    .voting-cast-header h1 {
        font-size: 1.8rem;
    }

    .voting-form-card {
        padding: 1.25rem;
    }

    .voting-status-panel {
        padding: 2.5rem 1.25rem;
    }
}


/* Very small screens */

@media (max-width: 576px) {

    .login-page {
        padding: 30px 15px;
        align-items: flex-start;
    }

    .login-card {
        padding: 35px 25px 30px;
    }

    .login-header h1 {
        font-size: 26px;
    }

    .login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }
}


@media (max-width: 550px) {

    .admin-rulebook-card-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.6rem;
    }
}


@media (max-width: 520px) {

    .admin-snooker-table-summary {
        grid-template-columns: 1fr;
    }

    .snooker-publish-content {
        gap: 10px;
    }

        .snooker-publish-content p {
            font-size: 0.8rem;
        }
}


@media (max-width: 500px) {

    .hero {
        min-height: 550px;
    }

        .hero h1 {
            font-size: 3.5rem;
        }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
    }

    .member-button {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
