/* ===================================================
   London Unity League — Main Stylesheet
   =================================================== */

/* --- CSS Variables -------------------------------- */
:root {
    --bg:          #f3f4f5;
    --primary:         #2a5f72;
    --primary-light:   #306c80;
    --primary-dark:    #1a3d4a;
    --primary-darkest: #0d2028;
    --div1:        #D63031;
    --div2:        #6C3483;
    --lu-cup-r1:   #2a5f72;
    --lu-cup-ko:   #C9921A;
    --lu-plate-ko: #7F8C8D;
    --text:        #1a1a2e;
    --text-muted:  #6c757d;
    --border:      #dde0e4;
    --white:       #ffffff;
    --card-bg:     #ffffff;
    --bottom-nav-h: 62px;
    --home-section-gap: 3rem;  /* spacing between homepage sections */
}

/* --- Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

/* Scale up base font on desktop so all rem values are larger */
@media (min-width: 768px) {
    html { font-size: 17px; }
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'din-2014', 'Helvetica Neue', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px)); /* room for mobile bottom nav */
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--div1); }

img { max-width: 100%; height: auto; }

/* --- Typography ----------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'din-2014', 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.page-title {
    /* Break out of the max-width container to span full viewport width */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -1.25rem; /* negate main-content top padding */
    margin-bottom: 1.5rem;
    /* Re-align text with the page content below */
    padding: calc(3.3rem + 50px) calc(50vw - 50% + 1rem);
    background: linear-gradient(to right, #c5d3ef 0%, #dce7fc 100%);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    border-bottom: 1px solid rgba(11,29,64,0.1);
    box-shadow: 0 2px 8px rgba(11,29,64,0.07);
    line-height: 1.2;
}
.page-title-season {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    opacity: 0.55;
    margin-bottom: 0.35rem;
}

/* --- Site Header ---------------------------------- */
.site-header,
.site-navbar {
    background: #ffffff;
    padding: 0;
    padding-top: env(safe-area-inset-top, 0px);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: none;
    min-height: 100px;
}

.site-header .navbar,
.site-navbar .container-fluid {
    height: 100px;
}

.site-header .navbar-brand,
.site-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
    /* Center logo on mobile using absolute positioning */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.brand-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    display: block;
}

@media (min-width: 768px) {
    .brand-logo {
        height: 60px;
    }
}

/* Desktop: brand back in normal flow */
@media (min-width: 768px) {
    .site-header .navbar-brand,
    .site-navbar .navbar-brand {
        position: static;
        transform: none;
    }
}

/* Header inner width matches main content */
.site-header .navbar .container-fluid {
    max-width: 1450px;
    margin-left: auto;
    margin-right: auto;
}

/* Desktop: hamburger and nav links aligned left, no wrapping */
@media (min-width: 768px) {
    .site-header .navbar > .container-fluid {
        justify-content: flex-start !important;
        flex-wrap: nowrap;
        gap: 0.25rem;
    }
    .site-header .navbar-toggler {
        margin-top: 0.5rem;
    }
}

.brand-name span {
    display: block;
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    opacity: 0.6;
    line-height: 1;
}

/* Manager login button — mobile first (outlined) */
.lul-login-btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: var(--primary) !important;
    border: 1px solid var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    padding: 0.3rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: none;
}
.lul-login-btn:hover {
    background: var(--primary);
    color: #fff !important;
    box-shadow: none;
    transform: none;
}

/* Desktop: filled solid style */
@media (min-width: 768px) {
    a.lul-login-btn {
        background: var(--primary) !important;
        color: #fff !important;
        border: none !important;
        font-size: 0.85rem;
        padding: 0.45rem 1rem;
        margin-top: 0.5rem;
        box-shadow: 0 2px 6px rgba(10,61,74,0.18);
    }
    a.lul-login-btn:hover {
        background: var(--primary-dark) !important;
        color: #fff !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(10,61,74,0.28);
    }
    a.lul-login-btn:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(10,61,74,0.18);
    }
}

/* Mobile: outlined style — must come after desktop block */
@media (max-width: 767.98px) {
    a.lul-login-btn {
        background: #fff !important;
        color: var(--primary) !important;
        border: 1px solid var(--primary) !important;
        box-shadow: none !important;
        transform: none !important;
    }
    a.lul-login-btn:hover {
        background: var(--primary) !important;
        color: #fff !important;
    }
}

/* Dropdown must float above content, not push it down */
.site-header .dropdown-menu {
    position: absolute !important;
}

/* Desktop nav links */
.site-header .nav-link,
.site-navbar .nav-link {
    color: #000 !important;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    padding: 1.1rem 0.9rem 0.6rem !important;
    transition: color 0.2s;
}
.site-header .nav-link:hover,
.site-header .nav-link.active,
.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
    color: var(--primary) !important;
}

/* Dropdown */
.site-header .dropdown-menu {
    background: #ffffff;
    border: 1px solid rgba(11,29,64,0.1);
    border-radius: 6px;
    padding: 0.3rem 0;
    min-width: 180px;
    box-shadow: 0 6px 20px rgba(11,29,64,0.12);
}
.site-header .dropdown-item {
    color: rgba(11,29,64,0.75);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 0.5rem 1.1rem;
    letter-spacing: 0.02em;
    transition: background 0.15s;
}
.site-header .dropdown-item:hover {
    background: rgba(11,29,64,0.06);
    color: var(--primary);
}

/* Hamburger (mobile) */
.site-header .navbar-toggler {
    border: none;
    color: var(--primary);
    padding: 4px 8px;
}
.site-header .navbar-toggler:focus { box-shadow: none; }
.site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2811%2C29%2C64%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- Offcanvas Menu ------------------------------- */
.offcanvas-lul {
    background: var(--primary);
    color: var(--white);
    width: 280px !important;
}
.offcanvas-lul .offcanvas-header {
    background: var(--primary-dark);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 1.2rem;
}
.offcanvas-lul .offcanvas-title {
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
}
.offcanvas-lul .btn-close {
    filter: invert(1) brightness(2);
}
.offcanvas-lul .offcanvas-body {
    padding: 0.5rem 0;
}
.offcanvas-lul .nav-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    padding: 1rem 1.2rem 0.3rem;
}
.offcanvas-lul .nav-item a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.82);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.65rem 1.2rem;
    transition: background 0.15s, color 0.15s;
    border-radius: 0;
}
.offcanvas-lul .nav-item a:hover,
.offcanvas-lul .nav-item a.active {
    background: rgba(255,255,255,0.08);
    color: var(--white);
}
.offcanvas-lul .nav-item a i { width: 18px; text-align: center; opacity: 0.7; }
.offcanvas-lul hr { border-color: rgba(255,255,255,0.1); margin: 0.4rem 1.2rem; }

/* ============================================================
   ADMIN BODY & HEADER
   ============================================================ */
.admin-body {
    overflow-x: hidden;
    padding-bottom: 0;
}

.admin-header {
    background: var(--primary);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-header .navbar {
    height: 100px;
}

.admin-header .container-fluid {
    max-width: 1450px;
    margin-left: auto;
    margin-right: auto;
}

/* Hamburger: white lines */
.admin-header .navbar-toggler {
    border: none;
    padding: 4px 8px;
}
.admin-header .navbar-toggler:focus { box-shadow: none; }
.admin-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Desktop nav links */
.admin-header .nav-link {
    color: rgba(255,255,255,0.82) !important;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}
.admin-header .nav-link:hover,
.admin-header .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.15);
}

/* Logged-in user name */
.admin-user-name {
    color: rgba(255,255,255,0.82);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Logout button */
.admin-logout-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 8px;
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.admin-logout-btn:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}

/* ============================================================
   Admin Fixtures List — card footer additions
   ============================================================ */

/* Score inline (used in admin card when result is in) */
.fixture-score-inline {
    font-size: 1rem;
    font-weight: 800;
    background: var(--comp-colour);
    color: #fff;
    border-radius: 6px;
    padding: 0.15rem 0.65rem;
}

/* Penalty score shown below the main score pill */
.fixture-vs-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex-shrink: 0;
}
.fixture-score-pens {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Admin card: non-clickable, pointer stays default */
.admin-fixture-card {
    cursor: default;
}
.admin-fixture-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* Footer bar below the card's team row */
.admin-fixture-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
}
.admin-fixture-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.admin-fixture-card-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* Fixture status check indicators */
.admin-fx-check {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
}
.admin-fx-check--pending {
    background: #f3f4f6;
    color: #9ca3af;
}
.admin-fx-check--received {
    background: #dcfce7;
    color: #166534;
}
.admin-fx-check--overdue {
    background: #fee2e2;
    color: #991b1b;
}
.admin-fx-check i {
    font-size: 0.8rem;
}

/* Confirmation status pill */
.admin-fixture-status {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    border-radius: 3px;
    display: inline-block;
}
.admin-fixture-status--unconfirmed { background: #fee2e2; color: #991b1b; }
.admin-fixture-status--confirmed   { background: #fef3c7; color: #92400e; }
.admin-fixture-status--ack         { background: #dcfce7; color: #166534; }

/* Admin team strip */
.admin-team-strip {
    background: var(--white);
    width: 100%;
    border-bottom: 1px solid var(--border);
}

.admin-team-strip-inner {
    max-width: 1450px;
    margin: 0 auto;
    padding: 1.35rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-team-strip-logo {
    height: 36px;
    width: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.admin-team-strip-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
}

/* Team switch button */
.admin-team-switch-btn {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 0.15rem 0.6rem;
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s, color 0.15s;
}
.admin-team-switch-btn:hover,
.admin-team-switch-btn:focus {
    background: var(--primary);
    color: #fff;
    outline: none;
}

/* Admin page content wrapper */
.admin-content {
    max-width: 1450px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

@media (max-width: 767.98px) {
    .admin-content {
        padding: 2rem 1rem;
    }
}

/* Admin section */
.admin-section {
    margin-bottom: 3.5rem;
}

.admin-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--border);
}

.admin-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.01em;
}

.admin-notif-badge {
    background: var(--div1);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    letter-spacing: 0.04em;
}

/* Notification list */
.admin-notif-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-notif {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    transition: background 0.15s;
}

.admin-notif--unread {
    background: #fff;
}

/* Icon */
.admin-notif-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin-top: 0.1rem;
    background: rgba(0,0,0,0.05);
    color: var(--text-muted);
}

.admin-notif--fixture  .admin-notif-icon { background: var(--primary);        color: #fff; }
.admin-notif--transfer .admin-notif-icon { background: var(--div2);            color: #fff; }
.admin-notif--reminder .admin-notif-icon { background: var(--lu-cup-ko);       color: #fff; }
.admin-notif--fine     .admin-notif-icon { background: var(--div1);            color: #fff; }
.admin-notif--suspension .admin-notif-icon { background: var(--lu-plate-ko);   color: #fff; }
.admin-notif--system   .admin-notif-icon { background: var(--text-muted);      color: #fff; }

/* Body */
.admin-notif-body {
    flex: 1;
    min-width: 0;
}

.admin-notif-type {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #000;
    margin-bottom: 0.2rem;
}

.admin-notif-text {
    font-size: 0.875rem;
    color: var(--text);
    margin: 0;
    line-height: 1.45;
}

.admin-notif--unread .admin-notif-text {
    font-weight: 500;
}

/* Meta (time + unread dot) */
.admin-notif-meta {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    padding-top: 0.1rem;
}

.admin-notif-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.admin-notif-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    display: block;
}

/* Empty notifications state */
.admin-notif-empty {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 1.25rem 0;
    margin: 0;
}

/* Admin section footer — houses "view all" buttons */
.admin-section-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}

/* Shared "view all" button — used across all admin sections */
.admin-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.18s, color 0.18s, gap 0.2s;
}
.admin-view-all-btn:hover {
    background: var(--primary);
    color: #fff;
    gap: 0.65rem;
}

@media (max-width: 767.98px) {
    .admin-section-footer {
        justify-content: flex-start;
    }
}

/* Notifications page hero */
.admin-notif-page-hero {
    background: var(--primary-dark);
    width: 100%;
    padding: 0;
}
.admin-notif-page-hero-inner {
    max-width: 1450px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
}
.admin-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    margin-bottom: 0.6rem;
    transition: color 0.2s;
}
.admin-back-link:hover { color: #fff; }
.admin-notif-page-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

/* Dashboard two-column grid */
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 767.98px) {
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Your Fixtures — desktop grid */
.admin-fx-scroll-wrap {
    width: 100%;
}

.admin-fx-scroll-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.85rem;
}

/* Mobile — replicate news scroller pattern exactly */
@media (max-width: 767.98px) {
    .admin-fx-scroll-wrap {
        width: 100vw;
        margin-left: calc(-50vw + 50%);
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 1rem;
    }
    .admin-fx-scroll-wrap::-webkit-scrollbar { display: none; }

    .admin-fx-scroll-track {
        display: flex;
        grid-template-columns: unset;
        gap: 0.85rem;
        width: max-content;
        padding: 0.25rem 1rem 0;
    }
    .admin-fx-card {
        flex: 0 0 155px;
        width: 155px;
    }
}

/* Fixture card */
.admin-fx-card {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
    border-top-width: 4px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    background: var(--white);
}

.admin-fx-card--result   { border-top-color: var(--text-muted); }
.admin-fx-card--next     { border-top-color: var(--primary); background: #f0f7fa; }
.admin-fx-card--upcoming { border-top-color: var(--border); }

.admin-fx-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.admin-fx-card--next .admin-fx-label { color: var(--primary); }

.admin-fx-date {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
}

.admin-fx-teams {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.admin-fx-team {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
}

.admin-fx-score {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.admin-fx-vs {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

.admin-fx-comp {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ── Team checklist ──────────────────────────────── */
.admin-team-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.4rem 1.5rem;
    padding: 0.6rem 0;
}

.admin-team-checklist .form-check-label {
    font-size: 0.875rem;
    cursor: pointer;
}

/* ── User avatar ─────────────────────────────────── */
.admin-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 0.75rem;
}

/* ── Teams list ──────────────────────────────────── */
.admin-teams-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-team-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.9rem 1.1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.admin-team-row-identity {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 2;
    min-width: 0;
}

.admin-team-row-swatch {
    width: 14px;
    height: 40px;
    border-radius: 4px;
    flex-shrink: 0;
}

.admin-team-row-logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.admin-team-row-name {
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-team-row-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-team-row-manager {
    flex: 2;
    min-width: 0;
}

.admin-team-row-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.admin-delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 0.65rem;
    font-size: 0.875rem;
    color: var(--div1);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}

.admin-delete-btn:hover {
    background: var(--div1);
    color: #fff;
    border-color: var(--div1);
}

@media (max-width: 767.98px) {
    .admin-team-row { flex-wrap: wrap; gap: 0.75rem; }
    .admin-team-row-manager { display: none; }
    .admin-team-row-identity { flex: 1; }
}

/* ── Admin forms ─────────────────────────────────── */
.admin-form-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

/* Primary-coloured header bar — bleeds to card edges */
.admin-form-section-header {
    background: var(--primary);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.55rem 1.5rem;
    margin: -1.5rem -1.5rem 1.25rem -1.5rem;
    border-radius: 9px 9px 0 0;
}

/* Fixture matchup banner */
.fixture-matchup-banner {
    background: #000;
    padding: 1.25rem 1.5rem 1.5rem;
    text-align: center;
}
.fixture-matchup-competition {
    color: rgba(255,255,255,0.45);
    font-family: 'din-2014', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.fixture-matchup-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}
.fixture-matchup-team {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}
.fixture-matchup-team:last-child {
    flex-direction: row-reverse;
    text-align: right;
}
.fixture-matchup-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}
.fixture-matchup-name {
    color: #fff;
    font-family: 'din-2014', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}
.fixture-matchup-vs {
    color: rgba(255,255,255,0.35);
    font-family: 'din-2014', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    flex-shrink: 0;
    padding: 0 0.25rem;
}

.admin-form-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.admin-form-admin-badge {
    font-size: 0.68rem;
    font-weight: 600;
    background: rgba(42,95,114,0.1);
    color: var(--primary);
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
}

.admin-form-sub-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin: 0;
}

.admin-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.18s;
}

.admin-save-btn:hover { background: var(--primary-dark); }

/* ── Activity log filter ─────────────────────────── */
.admin-activity-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.admin-activity-filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.admin-activity-filter-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.admin-activity-filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.admin-activity-cat-badge {
    font-size: 0.68rem;
    font-weight: 600;
    background: var(--bg);
    color: var(--text-muted);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    border: 1px solid var(--border);
}

/* ── Audit log ───────────────────────────────────── */
.admin-audit-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.admin-audit-entry {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.admin-audit-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.95rem;
}

.admin-audit-body { flex: 1; min-width: 0; }

.admin-audit-headline {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.2rem;
}

.admin-audit-action {
    font-size: 0.875rem;
    font-weight: 700;
    color: #000;
}

.admin-audit-team {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.admin-audit-by {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.admin-audit-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.admin-audit-changes {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.admin-audit-change-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
}

.admin-audit-field {
    font-weight: 600;
    color: var(--text);
    min-width: 130px;
}

.admin-audit-from {
    color: var(--div1);
    text-decoration: line-through;
    opacity: 0.7;
}

.admin-audit-arrow { color: var(--text-muted); font-size: 0.75rem; }

.admin-audit-to { color: var(--primary); font-weight: 500; }

/* Admin main content area */
.admin-main {
    min-height: calc(100vh - 100px);
    padding: 0;
    margin: 0;
    width: 100%;
    display: block;
}

/* Admin welcome hero */
.admin-hero {
    background: var(--primary-light);
    width: 100%;
    min-height: 275px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.admin-hero-inner {
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.admin-hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.5);
    margin: 0 0 0.6rem;
}

.admin-hero-greeting {
    font-size: 1.6rem;
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    margin: 0 0 1.8rem;
    line-height: 1.2;
}

.admin-hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.15rem;
    line-height: 1.1;
}

.admin-hero-role {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    margin: 0 0 0.1rem;
}
.admin-hero-date {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255,255,255,0.55);
    margin: 2.25rem 0 0;
}

.admin-hero-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.55);
    margin: 0;
}

@media (max-width: 767.98px) {
    .admin-header .navbar {
        height: 70px;
    }
    .admin-brand-logo {
        height: 45px;
    }
    .admin-hero-greeting {
        font-size: 1.2rem;
    }
    .admin-hero-title {
        font-size: 2.9rem;
    }
    .admin-main {
        min-height: calc(100vh - 70px);
        padding: 0;
    }
}

/* --- Ground map (club page) ----------------------- */
.ground-map-card { padding-bottom: 0.75rem; }
.ground-map-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    margin: 0.5rem 0 0.75rem;
}
.ground-map-wrap iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.ground-map-directions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--div1);
    text-decoration: none;
}
.ground-map-directions:hover { text-decoration: underline; }

/* --- Standings layout (main + sidebar) ------------ */
.standings-layout {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;          /* sidebar drops below when viewport is too narrow */
}
.standings-main {
    flex: 0 1 930px;          /* won't grow beyond 930px, shrinks freely */
    min-width: 0;
}
.standings-sidebar {
    flex: 1 1 260px;          /* fills remaining space, min 260px before wrapping */
    min-width: 260px;
}

/* Sidebar widgets */
.sidebar-widget { padding: 1rem; }

.sidebar-scorer-row,
.sidebar-fp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}
.sidebar-scorer-row:last-of-type,
.sidebar-fp-row:last-of-type { border-bottom: none; }

.sidebar-scorer-rank {
    width: 18px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
    flex-shrink: 0;
}
.sidebar-scorer-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
.sidebar-scorer-club {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-scorer-goals {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
    min-width: 22px;
    text-align: right;
}
.sidebar-more-link {
    display: block;
    margin-top: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--div1);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.sidebar-more-link:hover { text-decoration: underline; }

/* --- Mobile Bottom Nav ---------------------------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    display: flex;
    align-items: stretch;
    z-index: 1040;
    box-shadow: 0 -1px 0 rgba(0,0,0,0.08), 0 -4px 12px rgba(0,0,0,0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav a, .bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #bcc1d3;
    background: none;
    border: none;
    font-family: 'din-2014', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
    padding: 0 0 2px;
}
.bottom-nav a i, .bottom-nav button i { font-size: 1.3rem; }
.bottom-nav a:hover, .bottom-nav button:hover {
    color: #888ea8;
}
.bottom-nav a.active, .bottom-nav button.active {
    color: #000000;
}
.bottom-nav a.active i, .bottom-nav button.active i {
    color: #000000;
}

/* Hide bottom nav on desktop */
@media (min-width: 768px) {
    .bottom-nav { display: none; }
    body { padding-bottom: 0; }
}

/* --- Main Content --------------------------------- */
.main-content {
    padding: 1.25rem 1rem;
    max-width: 1450px;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .main-content { padding: 2rem 1.5rem; }
}
@media (min-width: 1024px) {
    .main-content { padding: 2.5rem 2rem; }
}

/* --- Cards ---------------------------------------- */
.lul-card {
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border);
    padding: 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.lul-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/* --- Division Badge / Pill ------------------------ */
.div-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.div-badge.div1        { background: rgba(214,48,49,0.10);   color: #b02020; border: 1px solid rgba(214,48,49,0.30); }
.div-badge.div2        { background: rgba(108,52,131,0.10);  color: #5a2a7a; border: 1px solid rgba(108,52,131,0.30); }
.div-badge.lu-cup-r1  { background: rgba(42,95,114,0.10);   color: #1a3d4a; border: 1px solid rgba(42,95,114,0.30); }
.div-badge.lu-cup-ko  { background: rgba(201,146,26,0.12);  color: #8a6200; border: 1px solid rgba(201,146,26,0.35); }
.div-badge.lu-plate-ko{ background: rgba(127,140,141,0.12); color: #555f60; border: 1px solid rgba(127,140,141,0.35); }

/* --- Division section headers --------------------- */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}
.section-header h2 {
    font-size: 1.05rem;
    margin: 0;
    color: var(--primary);
}
.section-accent {
    width: 4px;
    height: 22px;
    border-radius: 3px;
    flex-shrink: 0;
}
.section-accent.div1        { background: var(--div1); }
.section-accent.div2        { background: var(--div2); }
.section-accent.lu-cup-r1  { background: var(--lu-cup-r1); }
.section-accent.lu-cup-ko  { background: var(--lu-cup-ko); }
.section-accent.lu-plate-ko { background: var(--lu-plate-ko); }

/* --- Tables --------------------------------------- */
.lul-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--white);
    margin-bottom: 1.5rem;
}
.lul-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.lul-table thead th {
    background: var(--primary);
    color: rgba(255,255,255,0.85);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    padding: 0.65rem 0.75rem;
    white-space: nowrap;
    border: none;
}
.lul-table thead th:first-child { border-radius: 9px 0 0 0; }
.lul-table thead th:last-child  { border-radius: 0 9px 0 0; }
.lul-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
.lul-table tbody tr:last-child { border-bottom: none; }
.lul-table tbody tr:hover { background: rgba(91,160,204,0.05); }
.lul-table td {
    padding: 0.6rem 0.75rem;
    vertical-align: middle;
    color: var(--text);
}
.lul-table td.pos { color: var(--text-muted); font-size: 0.8rem; text-align: center; width: 30px; }
.lul-table td.pts { font-weight: 700; color: var(--primary); }
.lul-table td.club-name { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.standings-crest { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.lul-table td.num { text-align: center; }

/* Promotion / relegation zone row highlights */
.lul-table tbody tr.promotion td:first-child {
    border-left: 3px solid var(--cup);
}
.lul-table tbody tr.relegation td:first-child {
    border-left: 3px solid #dc3545;
}

/* Clickable row */
.lul-table tbody tr.clickable { cursor: pointer; }

/* --- Date group header ----------------------------- */
.date-group-header {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin: 3rem 0 0.35rem;
}
.date-group-header:first-child { margin-top: 0; }

/* --- Fixture Cards --------------------------------- */
.fixture-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-left-width: 12px;
    border-radius: 10px;
    padding: 0.85rem 2.75rem 0.85rem 1rem;
    margin-bottom: 0.6rem;
    transition: box-shadow 0.18s, transform 0.18s;
    cursor: pointer;
}
.fixture-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

/* Competition-coloured left border + score colour token */
.fixture-card             { --comp-colour: #6b7280; }
.fixture-card.div1        { border-left-color: var(--div1);        --comp-colour: var(--div1); }
.fixture-card.div2        { border-left-color: var(--div2);        --comp-colour: var(--div2); }
.fixture-card.lu-cup-r1  { border-left-color: var(--lu-cup-r1);   --comp-colour: var(--lu-cup-r1); }
.fixture-card.lu-cup-ko  { border-left-color: var(--lu-cup-ko);   --comp-colour: var(--lu-cup-ko); }
.fixture-card.lu-plate-ko { border-left-color: var(--lu-plate-ko); --comp-colour: var(--lu-plate-ko); }

/* Competition label */
.fixture-competition {
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    margin-bottom: 0.65rem;
    color: var(--text-muted);
}
.fixture-card.div1        .fixture-competition { color: var(--div1); }
.fixture-card.div2        .fixture-competition { color: var(--div2); }
.fixture-card.lu-cup-r1  .fixture-competition { color: var(--lu-cup-r1); }
.fixture-card.lu-cup-ko  .fixture-competition { color: var(--lu-cup-ko); }
.fixture-card.lu-plate-ko .fixture-competition { color: var(--lu-plate-ko); }

/* Teams row */
.fixture-teams {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Each team column: crest + name */
.team-col {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1;
    min-width: 0;
}
/* Away team: mirror so crest is on the right */
.fixture-teams .team-col:last-child {
    flex-direction: row-reverse;
}

/* Team crest image */
.team-crest {
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Placeholder when no crest */
.team-crest-placeholder {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Team name */
.team-name {
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.team-name.home { text-align: left; }
.team-name.away { text-align: right; }

/* Per-team score shown on mobile only */
.team-score-mobile {
    display: none;
    background: var(--comp-colour);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 6px;
    padding: 0.1rem 0.55rem;
    flex-shrink: 0;
    margin-left: auto;
}

/* VS separator */
.fixture-vs {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
    padding: 0 0.35rem;
}

/* Chevron arrow */
.fixture-arrow {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--border);
    font-size: 0.8rem;
    pointer-events: none;
    transition: color 0.18s;
}
.fixture-card:hover .fixture-arrow { color: var(--primary); }

/* Admin cards have no chevron arrow — tighten right padding */
.fixture-card.admin-fixture-card {
    padding-right: 1rem;
}

/* Mobile: stack teams vertically with per-team scores */
@media (max-width: 575px) {
    .fixture-teams {
        flex-direction: column;
        gap: 0.4rem;
    }
    .team-col,
    .fixture-teams .team-col:last-child {
        flex-direction: row;
        width: 100%;
    }
    .team-name.away {
        text-align: left;
    }
    .fixture-vs-col {
        display: none;
    }
    .team-score-mobile {
        display: block;
    }
}

/* --- Filter tabs ---------------------------------- */
.filter-tabs {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
}
.filter-tab {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s;
}
.filter-tab:hover { border-color: var(--primary); color: var(--primary); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: var(--white); }
.filter-tab.active.div1        { background: var(--div1);        border-color: var(--div1); }
.filter-tab.active.div2        { background: var(--div2);        border-color: var(--div2); }
.filter-tab.active.lu-cup-r1  { background: var(--lu-cup-r1);  border-color: var(--lu-cup-r1); }
.filter-tab.active.lu-cup-ko  { background: var(--lu-cup-ko);  border-color: var(--lu-cup-ko); }
.filter-tab.active.lu-plate-ko { background: var(--lu-plate-ko); border-color: var(--lu-plate-ko); }

/* --- Club Page ------------------------------------ */
.club-hero {
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.club-hero .club-crest {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    overflow: hidden;
}
/* Logo image in hero — no circular clip, just contained */
.club-crest-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}
/* Logo image in club card grid */
.club-card-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.club-hero h1 { font-size: 1.3rem; color: var(--white); margin: 0 0 0.2rem; }
.club-hero p  { margin: 0; font-size: 0.82rem; opacity: 0.75; }

.club-colors-swatch {
    display: flex;
    gap: 6px;
    align-items: center;
}
.color-swatch {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    display: inline-block;
}
/* Kit colour swatches on club page */
.kit-swatch {
    width: 24px;
    height: 28px;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,0.12);
    display: inline-block;
    flex-shrink: 0;
}
.kit-swatch--shorts {
    width: 20px;
    height: 22px;
    border-radius: 3px;
}
.kit-swatch--socks {
    width: 10px;
    height: 26px;
    border-radius: 3px;
}

/* Club grid on clubs.php */
.clubs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
@media (min-width: 480px) { .clubs-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .clubs-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .clubs-grid { grid-template-columns: repeat(5, 1fr); } }

.club-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 0.75rem;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.15s;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: var(--text);
}
.club-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); transform: translateY(-2px); color: var(--text); }
.club-card .club-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(11,29,64,0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 0.6rem;
}
.club-card .club-card-name { font-size: 0.8rem; font-weight: 600; line-height: 1.2; }
.club-card .club-card-div  { font-size: 0.65rem; color: var(--text-muted); margin-top: 0.2rem; }

/* --- Stat rows (fair play, goal scorers etc) ------ */
.stat-row {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
    background: var(--white);
}
.stat-row:last-child { border-bottom: none; }
.stat-row .rank {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 22px;
    text-align: center;
}
.stat-row .stat-label { flex: 1; font-size: 0.88rem; font-weight: 600; }
.stat-row .stat-sub   { font-size: 0.72rem; color: var(--text-muted); }
.stat-row .stat-value { font-weight: 700; font-size: 1rem; color: var(--primary); min-width: 30px; text-align: right; }

/* --- Suspension badges ---------------------------- */
.suspension-badge {
    display: inline-block;
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #f5c6cb;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    letter-spacing: 0.04em;
}
.suspension-badge.served {
    background: #f0fdf4;
    color: #2e7d32;
    border-color: #a5d6a7;
}

/* --- Modal ---------------------------------------- */
.modal-header {
    background: var(--primary);
    color: var(--white);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
}
.modal-header .btn-close { filter: invert(1); }
.modal-header h5 { color: var(--white); font-size: 1rem; }
.modal-content { border-radius: 12px; border: none; }
.modal-body { padding: 1.25rem; }
.modal-body .detail-row {
    display: flex;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}
.modal-body .detail-row:last-child { border-bottom: none; }
.modal-body .detail-label { color: var(--text-muted); min-width: 110px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; }
.modal-body .detail-value { font-weight: 500; }

.scorer-list { list-style: none; padding: 0; margin: 0; }
.scorer-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0;
    font-size: 0.85rem;
}
.scorer-list li i { color: #f0a500; font-size: 0.85rem; }

/* --- Homepage quick-links ------------------------- */
.quick-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
@media (min-width: 600px) { .quick-links { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .quick-links { grid-template-columns: repeat(4, 1fr); } }

.quick-link {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 0.75rem;
    text-align: center;
    transition: box-shadow 0.2s, transform 0.15s;
    text-decoration: none;
    display: block;
    color: var(--text);
}
.quick-link:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.1); transform: translateY(-2px); color: var(--text); }
.quick-link i { font-size: 1.7rem; color: var(--primary); margin-bottom: 0.4rem; display: block; }
.quick-link span { font-size: 0.78rem; font-weight: 600; }

/* --- Forms link section --------------------------- */
.forms-section .form-link-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.2s;
}
.forms-section .form-link-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,0.09); }
.forms-section .form-link-card i { font-size: 1.4rem; color: var(--primary); flex-shrink: 0; }
.forms-section .form-link-card .link-title { font-weight: 600; font-size: 0.9rem; }
.forms-section .form-link-card .link-desc  { font-size: 0.75rem; color: var(--text-muted); }

/* --- Alerts / banners ----------------------------- */
.lul-alert {
    border-radius: 8px;
    border-left: 4px solid var(--div1);
    background: rgba(91,160,204,0.08);
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

/* --- Footer --------------------------------------- */
.site-footer {
    background: var(--primary);
    color: rgba(255,255,255,0.55);
    text-align: center;
    font-size: 0.75rem;
    padding: 1.5rem 1rem;
    margin-top: 2.5rem;
}
.site-footer a { color: rgba(255,255,255,0.7); }
.site-footer a:hover { color: var(--white); }

/* --- Utilities ------------------------------------ */
.text-div1 { color: var(--div1); }
.text-div2 { color: var(--div2); }
.text-cup  { color: var(--cup); }
.bg-div1   { background-color: var(--div1); }
.bg-div2   { background-color: var(--div2); }
.bg-cup    { background-color: var(--cup); }
.fw-700 { font-weight: 700; }
.small-caps {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    color: var(--text-muted);
}


/* ==========================================================
   Homepage — Hero & Page Sections
   ========================================================== */

/* ── Hero Splash ──────────────────────────────────────── */
.pub-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -1.25rem;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(150deg,
        var(--primary-dark)    0%,
        var(--primary)         40%,
        var(--primary-dark)    70%,
        var(--primary-darkest) 100%
    );
    margin-bottom: 1.8rem;
    padding: 5rem 1.5rem;
}
@media (min-width: 768px)  { .pub-hero { margin-top: -2rem; } }
@media (min-width: 1024px) { .pub-hero { margin-top: -2.5rem; } }
@media (max-width: 767.98px) {
    .pub-hero { min-height: 420px; padding: 4rem 1.25rem; }
}

/* Rainbow accent strip */
.pub-hero .hero-stripe {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff0000, #ff8c00, #ffed00, #00c020, #0066ff, #8b00ff);
}

/* Decorative circles */
.pub-hero::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.pub-hero::after {
    content: '';
    position: absolute;
    bottom: -160px; left: -100px;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: left;
    width: 100%;
    max-width: 1450px;
    padding: 0 1rem;
    color: #fff;
}
@media (min-width: 768px)  { .hero-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .hero-inner { padding: 0 2rem; } }

.hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 1.1rem;
}
.hero-inner h1 {
    font-size: clamp(2rem, 5.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 1.2rem;
}
.hero-inner p {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.82);
    margin-bottom: 2rem;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 0.7rem 1.8rem;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    transition: transform 0.15s, box-shadow 0.15s;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(0,0,0,0.28);
    background: rgba(255,255,255,0.28);
    color: #fff;
}

/* ── Section titles ───────────────────────────────────── */
.pub-section {
    padding-top: var(--home-section-gap);
    margin-bottom: 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
.pub-section-title {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pub-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ── News cards ───────────────────────────────────────── */
.news-card {
    background: #fff;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.news-card .news-date  { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.2rem; }
.news-card .news-title { font-weight: 700; color: var(--primary); font-size: 0.95rem; margin-bottom: 0.3rem; }
.news-card .news-body  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }

/* ── Fixture / result cards ───────────────────────────── */
.match-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
}
.match-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.9rem 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.match-card .mc-comp {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
 color: var(--text-muted); margin-bottom: 0.5rem;
}
.match-card .mc-team {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.88rem; font-weight: 600; color: var(--primary); padding: 0.15rem 0;
}
.match-card .mc-score  { font-weight: 800; font-size: 1rem; min-width: 1.5rem; text-align: center; }
.match-card .mc-meta   { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.5rem; }
.match-card .mc-divider { border: none; border-top: 1px solid #f0f1f5; margin: 0.4rem 0; }

/* ── Mini standings ───────────────────────────────────── */
.standings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}
.mini-table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.mini-table-header {
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em;
 padding: 0.55rem 1rem;
}
.mini-table table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.mini-table th {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em;
 color: var(--text-muted);
    padding: 0.4rem 0.75rem; text-align: left; border-bottom: 1px solid #f0f1f5;
}
.mini-table th.num { text-align: center; }
.mini-table td { padding: 0.45rem 0.75rem; border-bottom: 1px solid #f0f1f5; vertical-align: middle; }
.mini-table tr:last-child td { border-bottom: none; }
.mini-table td.num   { text-align: center; font-weight: 700; color: var(--primary); }
.mini-table .td-pos  { width: 28px; text-align: center; font-weight: 700; color: var(--text-muted); font-size: 0.78rem; }
.mini-table .td-club { font-weight: 600; color: var(--primary); }
.mini-table a.full-table {
    display: block; text-align: center; padding: 0.5rem;
    font-size: 0.75rem; font-weight: 700; color: var(--primary);
    text-decoration: none; border-top: 1px solid #f0f1f5;
}
.mini-table a.full-table:hover { background: #f5f8fa; }

/* ── Empty state ──────────────────────────────────────── */
.pub-empty { font-size: 0.85rem; color: var(--text-muted); padding: 1rem 0; }


/* ==========================================================
   Homepage — News Scroll Section
   ========================================================== */

.news-scroll-section {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-bottom: 0;
    padding: 2.5rem 0 0;
    background: #f0f4f6;
}

.news-scroll-header {
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
@media (min-width: 768px)  { .news-scroll-header { padding: 0 1.5rem 1.5rem; } }
@media (min-width: 1024px) { .news-scroll-header { padding: 0 2rem 1.5rem; } }

.news-scroll-heading {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.04em;
    margin: 0;
}

.news-scroll-btns {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.news-scroll-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    line-height: 1;
}
.news-scroll-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

.news-scroll-track-wrap {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1rem;
}
.news-scroll-track-wrap::-webkit-scrollbar { display: none; }

.news-scroll-track {
    display: flex;
    gap: 1.75rem;
    padding: 0.25rem 2rem 0 max(1rem, calc((100vw - 1450px) / 2 + 1rem));
    width: max-content;
}
@media (min-width: 768px) {
    .news-scroll-track {
        padding-left: max(1.5rem, calc((100vw - 1450px) / 2 + 1.5rem));
    }
}
@media (min-width: 1024px) {
    .news-scroll-track {
        padding-left: max(2rem, calc((100vw - 1450px) / 2 + 2rem));
    }
}

.news-scroll-card {
    flex: 0 0 clamp(253px, 27vw, 322px);
    width: clamp(253px, 27vw, 322px);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 18px rgba(0,0,0,0.1);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-scroll-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.nsc-img {
    height: clamp(160px, 17vw, 210px);
    flex-shrink: 0;
    overflow: hidden;
}
.nsc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.news-scroll-card:hover .nsc-img img {
    transform: scale(1.05);
}

.nsc-body {
    flex: 1;
    background: #fff;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    overflow: hidden;
}
.nsc-tag {
    font-size: clamp(0.72rem, 1.1vw, 1rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
    background: rgba(42, 95, 114, 0.08);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    margin-bottom: 0.4rem;
    display: inline-block;
    align-self: flex-start;
}
.nsc-body h3 {
    font-size: clamp(0.88rem, 1.25vw, 1.15rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nsc-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 1.75rem;
}

@media (max-width: 767.98px) {
    .news-scroll-header { padding: 0 1.25rem 1.25rem; }
    .news-scroll-track  { padding: 0.25rem 1.25rem 0; gap: 1.25rem; }
    .news-scroll-card   { flex: 0 0 253px; width: 253px; }
    .nsc-img            { height: 160px; }
    .nsc-tag            { font-size: 0.72rem; letter-spacing: 0; }
    .nsc-body h3        { font-size: 0.88rem; }
}


/* ==========================================================
   News — Listing Page
   ========================================================== */

.news-listing-page {
    padding-bottom: 3rem;
}

.news-listing-header {
    margin-bottom: 2rem;
}

.news-listing-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.news-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.news-filter-tab {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1;
}
.news-filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.news-filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.news-article-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.14);
}

.nac-img {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}
.nac-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.news-article-card:hover .nac-img img {
    transform: scale(1.04);
}

.nac-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.nac-cat {
    display: inline-block;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary);
    background: rgba(42,95,114,0.08);
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    margin-bottom: 0.65rem;
    align-self: flex-start;
}

.nac-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin: 0 0 0.6rem;
}

.nac-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1rem;
    flex: 1;
}

.nac-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.news-empty {
    color: var(--text-muted);
    font-size: 0.95rem;
    padding: 2rem 0;
}

@media (max-width: 767.98px) {
    .news-grid { grid-template-columns: 1fr; }
}

/* About hub grid — max 3 columns, same card style as news */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}
@media (min-width: 992px) {
    .about-grid .nac-title   { font-size: 1.4rem; }
    .about-grid .nac-excerpt { font-size: 1rem; }
}
@media (max-width: 991.98px) {
    .about-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .about-grid { grid-template-columns: 1fr; }
}


/* ==========================================================
   News — Single Article Page
   ========================================================== */

.news-article-page {
    padding-bottom: 3rem;
}

.na-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -2.5rem;
    aspect-ratio: 21 / 8;
    overflow: hidden;
    margin-bottom: 2.5rem;
}
.na-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.na-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(13, 35, 45, 0.94) 0%,
        rgba(23, 55, 72, 0.60) 40%,
        rgba(0,  0,  0,  0)    75%
    );
    display: flex;
    align-items: flex-end;
}

.na-hero-content {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 1.5rem 1rem 2rem;
}
@media (min-width: 768px)  { .na-hero-content { padding: 2rem 1.5rem 2.5rem; } }
@media (min-width: 1024px) { .na-hero-content { padding: 2rem 2rem 3rem; } }

.na-title {
    font-size: clamp(1.5rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
    max-width: 900px;
}

.na-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
}

.na-cat {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
}

.na-date-pub {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── Three-column article layout ─────────────────────── */
.na-layout {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr) 310px;
    gap: 2.5rem 2rem;
    align-items: start;
    padding: 0 0 4rem;
}

/* LEFT SIDEBAR */
.na-sidebar-left {
    position: sticky;
    top: 110px;
}

.na-author-card {
    margin-bottom: 1.75rem;
}

.na-author-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin-bottom: 0.75rem;
    border: 2px solid rgba(42,95,114,0.18);
}

.na-author-name {
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--primary);
    margin-bottom: 0.2rem;
}

.na-author-role {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

.na-publish-card {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.na-publish-label {
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    display: block;
}

.na-publish-date {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
}

.na-publish-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* CENTRE — main body */
.na-main {
    min-width: 0;
}

.na-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.25rem;
}
.na-body p:first-of-type {
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
}
@media (min-width: 768px) {
    /* Base is 17px on desktop; 1rem = 17px matches the intended article reading size */
    .na-body p { font-size: 1rem; }
    .na-body p:first-of-type { font-size: 1.1rem; }
}

.na-back {
    display: inline-flex;
    align-items: center;
    margin-top: 2rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    border: 1.5px solid var(--primary);
    padding: 0.5rem 1.1rem;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}
.na-back:hover {
    background: var(--primary);
    color: #fff;
}

/* RIGHT SIDEBAR */
.na-sidebar-right {
    position: sticky;
    top: 110px;
    padding-left: 2.5rem;
    border-left: 1px solid var(--border);
}

.na-recent-heading {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1.1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--primary);
}

.na-recent-item {
    display: flex;
    gap: 0.85rem;
    margin-bottom: 1.1rem;
    text-decoration: none;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    transition: opacity 0.2s;
}
.na-recent-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}
.na-recent-item:hover { opacity: 0.75; }

.na-recent-thumb {
    width: 84px;
    height: 74px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.na-recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.na-recent-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.na-recent-cat {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.na-recent-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.na-recent-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ── Responsive ──────────────────────────────────────── */

/* Tablet: right sidebar hidden, left sidebar + content */
@media (max-width: 1150px) {
    .na-layout {
        grid-template-columns: 185px 1fr;
        gap: 2rem;
    }
    .na-sidebar-right { display: none; }
}

/* Mobile: single column, content first */
@media (max-width: 767.98px) {
    .na-hero { margin-top: -1.25rem; aspect-ratio: 1 / 1; }
    .na-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 0 3rem;
    }
    .na-sidebar-left {
        order: 2;
        position: static;
        display: flex;
        gap: 1.5rem;
        align-items: flex-start;
    }
    .na-author-card {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    .na-author-img {
        width: 48px;
        height: 48px;
        margin: 0;
        flex-shrink: 0;
    }
    .na-author-details { text-align: left; }
    .na-publish-card {
        padding-top: 0;
        border-top: none;
        border-left: 1px solid var(--border);
        padding-left: 1.5rem;
        flex: 1;
    }
    .na-main { order: 1; }
    .na-sidebar-right { display: none; }
}


/* ==========================================================
   Instagram Feed Section
   ========================================================== */

.ig-section {
    padding: var(--home-section-gap) 0 1.8rem;
    margin-bottom: 0;
}

.ig-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.ig-section-heading {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.04em;
    margin: 0;
}

.ig-follow-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    border: 1.5px solid var(--primary);
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}
.ig-follow-link:hover {
    background: var(--primary);
    color: #fff;
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.ig-post {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    transition: box-shadow 0.2s, transform 0.2s;
}

.ig-post:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.16);
    transform: translateY(-2px);
}

.ig-post-inner {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #eee;
}

.ig-post-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ig-post:hover .ig-post-inner img {
    transform: scale(1.05);
}

.ig-video-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.8rem;
    padding: 3px 7px;
    border-radius: 4px;
    pointer-events: none;
}

.ig-post-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26,61,74,0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.ig-post:hover .ig-post-overlay {
    opacity: 1;
}

.ig-post-caption {
    color: #fff;
    font-size: 0.82rem;
    line-height: 1.5;
    text-align: center;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 767.98px) {
    .ig-grid { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .ig-section-header { padding: 0 1rem; }
}


/* ==========================================================
   Fixtures Page — sidebar layout
   ========================================================== */

.fx-layout {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr) 260px;
    gap: 2.5rem 2rem;
    align-items: start;
    padding: 0 0 4rem;
}

/* ── LEFT COLUMN wrapper: occupies col 1 ── */
.fx-left-col {
    grid-column: 1;
}

/* ── Competition filter: sticky within the left column ── */
.fx-sidebar-left {
    position: sticky;
    top: 110px;
    z-index: 10;
    background: var(--bg);
    padding-bottom: 0.75rem;
}

.fx-nav-heading {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--primary);
}

.fx-filter-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.fx-nav-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    border-left: 3px solid transparent;
    color: var(--text);
    transition: background 0.15s, border-color 0.15s;
}

.fx-nav-link:hover {
    background: rgba(0,0,0,0.04);
    border-left-color: var(--fx-colour);
    color: var(--text);
}

.fx-nav-link--active {
    background: rgba(0,0,0,0.05);
    border-left-color: var(--fx-colour);
    font-weight: 700;
}

.fx-nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--fx-colour);
    flex-shrink: 0;
}

.fx-nav-label {
    font-size: 0.9rem;
    line-height: 1.3;
}

/* ── TEAM FILTER PANEL (sits inside .fx-left-col, below competition filter) ── */
.fx-team-panel {
    display: block;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    margin-top: 1.5rem;
}

.fx-team-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
}

.fx-team-clear {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    letter-spacing: 0.03em;
    opacity: 0.85;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fx-team-clear:hover { opacity: 1; }

.fx-team-count {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    min-height: 1.1em;
}

.fx-team-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.fx-team-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.3;
    transition: background 0.1s;
    user-select: none;
}

.fx-team-label:hover { background: rgba(0,0,0,0.04); }

.fx-team-check {
    accent-color: var(--primary);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    cursor: pointer;
}

.fx-team-label:has(.fx-team-check:checked) {
    background: rgba(42,95,114,0.08);
    font-weight: 600;
}

/* ── MAIN ── */
.fx-main {
    grid-column: 2;
    min-width: 0;
}

/* ── RIGHT SIDEBAR: season links ── */
.fx-sidebar-right {
    grid-column: 3;
    position: sticky;
    top: 110px;
    padding-left: 1.5rem;
    border-left: 1px solid var(--border);
}

.fx-season-links {
    display: flex;
    flex-direction: column;
}

.fx-season-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    transition: color 0.15s;
}

.fx-season-link:last-child { border-bottom: none; }
.fx-season-link:hover { color: var(--primary); }
.fx-season-link i { color: var(--text-muted); font-size: 0.85rem; flex-shrink: 0; }
.fx-season-link--active { color: var(--primary); font-weight: 700; }
.fx-season-link--active i { color: var(--primary); }

/* Desktop (>1150px): add breathing room around the fixture cards */
@media (min-width: 1151px) {
    .fx-main {
        padding: 0 2.5rem;
    }
}

/* Tablet: drop right sidebar */
@media (max-width: 1150px) {
    .fx-layout {
        grid-template-columns: 185px minmax(0, 1fr);
        gap: 2rem;
    }
    .fx-sidebar-right { display: none; }
    .fx-main { grid-column: 2; }
}

/* Mobile trigger button (hidden on desktop) */
.fx-team-trigger-wrap { display: none; }

/* Modal & overlay: hidden by default everywhere */
.fx-modal-overlay,
.fx-modal { display: none; }

/* Mobile: block layout (iOS Safari sticky + CSS Grid = broken) */
@media (max-width: 767.98px) {
    .fx-layout {
        display: block;
        padding: 0 0 3rem;
    }

    /* Left col wrapper: just a block, no special treatment needed */
    .fx-left-col { display: block; }

    /* Desktop team panel hidden on mobile */
    .fx-team-panel { display: none; }

    /* Competition filter: sticky horizontal pill bar */
    .fx-sidebar-left {
        position: sticky;
        top: 100px;
        z-index: 100;
        background: var(--bg);
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        overflow: hidden;
    }
    .fx-nav-heading { display: none; }
    .fx-filter-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 3px;
    }
    .fx-filter-nav::-webkit-scrollbar { display: none; }
    .fx-filter-nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.4rem;
        width: max-content;
    }
    .fx-nav-link {
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
        padding: 0.4rem 0.75rem;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: 8px;
        background: rgba(0,0,0,0.05);
        white-space: nowrap;
    }
    .fx-nav-link--active {
        border-left: none;
        border-bottom-color: var(--fx-colour);
        background: rgba(0,0,0,0.07);
    }
    .fx-nav-label { font-size: 0.82rem; }
    .fx-nav-dot { width: 8px; height: 8px; }

    /* Mobile trigger button */
    .fx-team-trigger-wrap {
        display: block;
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--border);
    }
    .fx-team-trigger {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(0,0,0,0.05);
        border: none;
        border-radius: 8px;
        padding: 0.45rem 0.85rem;
        font-size: 0.82rem;
        font-family: inherit;
        font-weight: 500;
        color: var(--text);
        cursor: pointer;
        width: 100%;
        justify-content: center;
    }
    .fx-team-trigger--active {
        background: rgba(42,95,114,0.12);
        color: var(--primary);
        font-weight: 700;
    }

    .fx-main { padding-top: 1rem; }
    .fx-sidebar-right { display: none; }

    /* ── Bottom-sheet modal ── */
    .fx-modal-overlay.fx-modal--open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        z-index: 200;
    }
    .fx-modal.fx-modal--open {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 201;
        background: var(--bg);
        border-radius: 16px 16px 0 0;
        max-height: 80vh;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .fx-modal-handle {
        width: 36px;
        height: 4px;
        background: var(--border);
        border-radius: 2px;
        margin: 10px auto 0;
        flex-shrink: 0;
    }
    .fx-modal-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 1.1rem 0.6rem;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }
    .fx-modal-title {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--text);
    }
    .fx-modal-close {
        background: none;
        border: none;
        font-size: 1rem;
        color: var(--muted);
        cursor: pointer;
        padding: 0.2rem 0.3rem;
        line-height: 1;
    }
    .fx-modal-list {
        list-style: none;
        margin: 0;
        padding: 0.5rem 0;
        overflow-y: auto;
        flex: 1;
        -webkit-overflow-scrolling: touch;
    }
    .fx-modal-label {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.75rem 1.1rem;
        font-size: 0.9rem;
        cursor: pointer;
        border-bottom: 1px solid var(--border);
    }
    .fx-modal-label:last-child { border-bottom: none; }
    .fx-modal-label:has(.fx-modal-check:checked) {
        background: rgba(42,95,114,0.07);
        font-weight: 600;
        color: var(--primary);
    }
    .fx-modal-check {
        accent-color: var(--primary);
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    .fx-modal-footer {
        display: flex;
        gap: 0.75rem;
        padding: 0.85rem 1.1rem;
        border-top: 1px solid var(--border);
        flex-shrink: 0;
    }
    .fx-modal-btn {
        flex: 1;
        padding: 0.7rem 1rem;
        border-radius: 8px;
        border: none;
        font-size: 0.9rem;
        font-family: inherit;
        font-weight: 600;
        cursor: pointer;
    }
    .fx-modal-btn--clear {
        background: rgba(0,0,0,0.06);
        color: var(--text);
    }
    .fx-modal-btn--apply {
        background: var(--primary);
        color: #fff;
    }
}

/* ==========================================================
   Committee Page
   ========================================================== */

.committee-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 2.5rem 2rem;
    align-items: start;
    padding: 0 0 4rem;
}

/* MAIN CONTENT */
.committee-main { min-width: 0; }

.committee-member {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 120px;
}

.committee-member:first-child { padding-top: 0; }
.committee-member:last-child { border-bottom: none; }

.committee-member-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.committee-member-photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--border);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.committee-member-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 0.2rem;
    line-height: 1.2;
}

.committee-member-title {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.committee-member-bio {
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
    margin: 0;
}

/* Tablet: hide right sidebar */
@media (max-width: 1150px) {
    .committee-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .committee-layout .rb-sidebar-right { display: none; }
}

/* Mobile */
@media (max-width: 767.98px) {
    .committee-layout { padding: 0 0 3rem; }
    .committee-member-photo { width: 72px; height: 72px; }
}

/* ==========================================================
   Rulebook — three-column layout matching article page
   ========================================================== */

/* Three-column grid (mirrors .na-layout) */
.rb-layout {
    display: grid;
    grid-template-columns: 185px minmax(0, 1fr) 310px;
    gap: 2.5rem 2rem;
    align-items: start;
    padding: 0 0 4rem;
}

/* ── Search bar ── */
.rb-search-wrap {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rb-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.rb-search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.rb-search-input {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 2.75rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
}

.rb-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(42, 95, 114, 0.12);
}

/* hide browser's built-in clear button */
.rb-search-input::-webkit-search-cancel-button { display: none; }

.rb-search-clear {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.rb-search-clear:hover { color: var(--text); }

.rb-search-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    min-height: 1.2em;
}

/* ── LEFT SIDEBAR: section navigation ── */
.rb-sidebar-left {
    position: sticky;
    top: 110px;
}

.rb-nav-heading {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--primary);
}

.rb-section-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rb-nav-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    border-left: 3px solid transparent;
    transition: background 0.15s, border-color 0.15s;
}

.rb-nav-link:hover {
    background: rgba(0,0,0,0.04);
    border-left-color: var(--rb-colour);
    color: inherit;
}

.rb-nav-label {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--rb-colour);
    line-height: 1.2;
}

.rb-nav-title {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
    margin-top: 0.1rem;
}

/* ── MAIN CONTENT ── */
.rb-main { min-width: 0; }

.rb-section-block {
    margin-bottom: 3.5rem;
    scroll-margin-top: 120px;
}

.rb-section-block:last-child { margin-bottom: 0; }

.rb-section-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--rb-colour);
}

.rb-section-heading i {
    font-size: 1.4rem;
    color: var(--rb-colour);
    flex-shrink: 0;
}

.rb-section-eyebrow {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--rb-colour);
    margin-bottom: 0.15rem;
}

.rb-section-heading h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
}

/* Rules */
.rb-rule {
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
}

.rb-rule:last-child { border-bottom: none; }

.rb-rule-header {
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

.rb-ref {
    font-weight: 900;
    color: var(--rb-colour);
    white-space: nowrap;
    min-width: 70px;
    font-size: 1rem;
    flex-shrink: 0;
}

.rb-text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.75;
}

.rb-clause {
    display: flex;
    gap: 0.75rem;
    align-items: baseline;
    padding: 0.25rem 0 0 calc(70px + 1rem);
}

.rb-clause-marker {
    font-weight: 700;
    color: var(--rb-colour);
    min-width: 28px;
    flex-shrink: 0;
    font-size: 0.82rem;
}

.rb-clause-text {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.75;
}

.rb-continuation {
    margin: 0.4rem 0 0 calc(70px + 1rem);
    color: var(--text);
    font-size: 1rem;
    line-height: 1.75;
}

.rb-empty {
    color: var(--text-muted);
    font-size: 1rem;
    padding: 1rem 0;
}

/* ── RIGHT SIDEBAR: about links ── */
.rb-sidebar-right {
    position: sticky;
    top: 110px;
    padding-left: 2rem;
    border-left: 1px solid var(--border);
}

.rb-about-links {
    display: flex;
    flex-direction: column;
}

.rb-about-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
    transition: color 0.15s;
}

.rb-about-link:last-child { border-bottom: none; }
.rb-about-link:hover { color: var(--primary); }
.rb-about-link i { color: var(--text-muted); font-size: 0.85rem; flex-shrink: 0; }
.rb-about-link--active { color: var(--primary); font-weight: 700; }
.rb-about-link--active i { color: var(--primary); }

/* Tablet: drop right sidebar */
@media (max-width: 1150px) {
    .rb-layout {
        grid-template-columns: 185px minmax(0, 1fr);
        gap: 2rem;
    }
    .rb-sidebar-right { display: none; }
}

/* Mobile: sticky section nav at top, right sidebar hidden */
@media (max-width: 767.98px) {
    .rb-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0 0 3rem;
    }
    .rb-sidebar-left {
        position: sticky;
        top: 100px;
        z-index: 100;
        order: -1;
        background: var(--bg);
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
        /* Contain the scrollable pill row — no negative margins */
        overflow: hidden;
    }
    .rb-nav-heading { display: none; }
    .rb-sidebar-right { display: none; }
    .rb-main { padding-top: 1.5rem; }
    .rb-section-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 3px; /* prevent shadow clipping */
    }
    .rb-section-nav::-webkit-scrollbar { display: none; }
    .rb-section-nav ul {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 0.5rem;
        width: max-content; /* let pills determine width, scroll container clips */
    }
    .rb-nav-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 0.75rem;
        border-left: none;
        border-radius: 8px;
        background: rgba(0,0,0,0.05);
        width: 110px;
        flex-shrink: 0;
        overflow: hidden;
    }
    .rb-nav-label {
        font-size: 0.88rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    .rb-nav-title {
        display: block;
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
    .rb-clause { padding-left: calc(55px + 0.75rem); }
    .rb-continuation { margin-left: calc(55px + 0.75rem); }
    .rb-ref { min-width: 55px; }
}

/* ==========================================================
   Page Hero — half-height variant for all inner pages
   ========================================================== */

.page-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: -1.25rem;
    min-height: 195px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(150deg,
        var(--primary-dark)    0%,
        var(--primary)         40%,
        var(--primary-dark)    70%,
        var(--primary-darkest) 100%
    );
    margin-bottom: 2.5rem;
    padding: 1.875rem 1.5rem;
}
@media (min-width: 768px)  { .page-hero { margin-top: -2rem; } }
@media (min-width: 1024px) { .page-hero { margin-top: -2.5rem; } }
@media (max-width: 767.98px) { .page-hero { min-height: 255px; padding: 1.75rem 1.25rem; } }

/* Decorative circles */
.page-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: -100px; left: -60px;
    width: 360px; height: 360px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 768px)  { .page-hero-inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .page-hero-inner { padding: 0 2rem; } }

.page-hero-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.65);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 0.25rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

.page-hero-inner h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0;
}
