/* Bristol Poker League — modern black & yellow (Redtooth-inspired) */

:root {
    --bg: #0d0d0d;
    --bg-card: #161616;
    --bg-subtle: #1f1f1f;
    --text: #f0f0f0;
    --text-muted: #a0a0a0;
    --accent: #f0c800;
    --accent-hover: #ffd700;
    --accent-glow: rgba(240, 200, 0, 0.4);
    --border: #2a2a2a;
    --divider: var(--accent);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.5);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    line-height: 1.65;
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body > main {
    flex: 1 0 auto;
}

/* Skip link — visible on focus for keyboard/screen reader users */
.skip-link {
    position: absolute;
    top: -4rem;
    left: 1rem;
    z-index: 1000;
    padding: 0.6rem 1rem;
    background: var(--accent);
    color: var(--bg);
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: top 0.2s;
}
.skip-link:focus {
    top: 1rem;
    outline: 2px solid var(--text);
    outline-offset: 2px;
}

/* Maintenance banner — admin-controlled, dismissible for session */
.maintenance-banner {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-subtle) 100%);
    border-bottom: 2px solid var(--accent);
    color: var(--text);
    padding: 0.75rem 1.25rem;
    position: relative;
    z-index: 101;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}
.maintenance-banner.is-dismissed {
    display: none;
}
.maintenance-banner-inner {
    max-width: 72rem;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.maintenance-banner-icon {
    font-size: 1.25rem;
    color: var(--accent);
    flex-shrink: 0;
}
.maintenance-banner-text {
    margin: 0;
    flex: 1 1 min(100%, 32rem);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.5;
}
.maintenance-banner-dismiss {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.maintenance-banner-dismiss:hover {
    background: var(--border);
    color: var(--text);
}

/* Page wrapper */
.page-wrap {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    position: relative;
}

/* Site header — one row:  left nav  +  logo  +  right nav  (- - - + - - -) */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    position: relative;
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Horizontal line under the row (runs behind the logo) */
.header-inner::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    z-index: 0;
}

/* Nav overlay: on desktop its children sit in the flex row (display: contents); on mobile it's the dropdown panel */
.nav-overlay {
    display: contents;
}

/* Left block: equal width with right; links spread evenly across the half; one row only (no wrap) so submenus stay under parent */
.nav-left {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-evenly;
    position: relative;
    z-index: 1;
}

/* Centre: logo sits on top of the line (covers it) */
.site-logo {
    order: 2;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    z-index: 2;
    background: rgba(13, 13, 13, 0.95);
    padding: 0 0.5rem;
}

.site-logo-img {
    height: 6rem;
    width: auto;
    display: block;
    object-fit: contain;
}

.site-logo:hover .site-logo-img {
    opacity: 0.95;
}

/* Right block: equal width with left; links spread evenly across the half; one row only */
.nav-right {
    order: 3;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-evenly;
    position: relative;
    z-index: 1;
}

.nav-left a,
.nav-right a {
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-left a:hover,
.nav-right a:hover {
    color: var(--accent);
    background: var(--bg-subtle);
    text-decoration: none;
}

.nav-left a.current,
.nav-right a.current {
    color: var(--accent);
    background: var(--bg-subtle);
}

/* League submenu (public nav) — dropdown only, never inline */
.nav-has-sub {
    position: relative;
    display: inline-block;
}
.nav-parent {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
}
.nav-has-sub:hover .nav-parent {
    color: var(--accent);
    background: var(--bg-subtle);
}
.nav-parent.current {
    color: var(--accent);
    background: var(--bg-subtle);
}
/* Dropdown panel: hidden until hover, positioned below parent; never in flow (so never appears as its own nav row) */
.nav-left .nav-sub,
.nav-right .nav-sub {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.25rem;
    min-width: 12rem;
    background: rgba(13, 13, 13, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    padding: 0.4rem 0;
    z-index: 200;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
/* Invisible bridge above dropdown so hover doesn’t break when moving cursor from parent to submenu */
.nav-left .nav-sub::before,
.nav-right .nav-sub::before {
    content: '';
    position: absolute;
    top: -0.25rem;
    left: 0;
    right: 0;
    height: 0.25rem;
}
.nav-has-sub:hover .nav-sub,
.nav-has-sub:focus-within .nav-sub {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-sub a {
    display: block;
    padding: 0.55rem 1rem;
    border-radius: 0;
    white-space: nowrap;
}
.nav-sub a:hover {
    background: var(--bg-subtle);
    color: var(--accent);
}
.nav-sub a.current {
    color: var(--accent);
    background: var(--bg-subtle);
}

/* Hamburger — hidden on desktop, order 4 so it doesn't affect the row */
.nav-toggle {
    order: 4;
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.5rem;
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--accent);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.nav-toggle:hover {
    background: var(--bg-subtle);
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s, opacity 0.25s;
}

.site-header.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.site-header.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Tablet / mobile: logo + hamburger in one row; nav in dropdown below */
@media (max-width: 900px) {
    .header-inner {
        padding: 0.75rem 1.25rem;
        gap: 1rem;
    }

    /* Overlay becomes the dropdown panel (no longer display: contents) */
    .nav-overlay {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 2px solid var(--accent);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        max-height: calc(100vh - 4rem);
        overflow-y: auto;
    }

    .site-header.is-open .nav-overlay {
        display: flex;
    }

    .nav-left,
    .nav-right {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .nav-left a,
    .nav-right a {
        padding: 0.85rem 1.25rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
        white-space: normal;
    }
    .nav-has-sub {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-parent {
        padding: 0.85rem 1.25rem;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }
    /* Mobile: submenu collapsed by default; expand when opened or when a submenu page is current */
    .nav-left .nav-sub,
    .nav-right .nav-sub,
    .nav-sub {
        position: static;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        box-shadow: none;
        background: var(--bg-subtle);
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.3s ease-out, opacity 0.2s ease-out, visibility 0.2s ease-out;
    }
    .nav-has-sub.is-open .nav-sub,
    .nav-has-sub.submenu-current .nav-sub {
        max-height: 12rem;
        opacity: 1;
        visibility: visible;
    }
    .nav-left .nav-sub::before,
    .nav-right .nav-sub::before {
        content: none;
    }
    .nav-sub a {
        padding: 0.65rem 1.25rem 0.65rem 2rem;
        border-bottom: 1px solid var(--border);
        font-size: 0.875rem;
    }
    .nav-overlay .nav-right a:last-child {
        border-bottom: none;
    }

    .site-logo {
        order: 1;
        flex: 0 0 auto;
        justify-content: flex-start;
    }

    .site-logo-img {
        height: 3.25rem;
    }

    .nav-toggle {
        order: 2;
        display: flex;
    }
}

@media (max-width: 480px) {
    .site-logo-img {
        height: 2.85rem;
    }
}

/* Hero — full-bleed gradient, big type */
.hero {
    margin: 0 -1.5rem 2rem;
    padding: 3.5rem 1.5rem 2rem;
    background: linear-gradient(165deg, var(--bg) 0%, var(--bg-card) 45%, var(--bg) 100%);
    border-bottom: 3px solid var(--accent);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.6;
}

.hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 0;
}

.hero-actions .btn {
    text-decoration: none;
    display: inline-block;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-actions .btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

.hero-intro {
    font-size: 1.0625rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
    line-height: 1.7;
}

.hero-intro:last-of-type {
    margin-bottom: 0;
}

/* Shared page hero for interior pages */
.page-hero {
    margin: 1.25rem 0 2rem;
    padding: 2.15rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 12% 12%, rgba(230, 184, 0, 0.18), transparent 42%),
        linear-gradient(160deg, #171717 0%, #101010 45%, #1c1c1c 100%);
    box-shadow: var(--shadow);
}
.page-hero h1 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.page-hero p {
    margin: 0;
    max-width: 44rem;
    color: var(--text-muted);
}

/* Home page — link cards to other sections */
.home-links {
    margin-top: 2rem;
}

.home-links h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    color: var(--text);
}

.link-cards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    min-height: 280px;
}

.link-cards li {
    display: flex;
}

.link-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.link-card:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 24px var(--accent-glow);
    text-decoration: none;
    color: var(--text);
}

.link-card-title {
    display: block;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.35rem;
}

@media (max-width: 640px) {
    .link-cards {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        min-height: 720px;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .link-cards {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        min-height: 420px;
    }
}

/* Cards for content sections (Redtooth-style blocks) */
.content-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background:
        linear-gradient(168deg, rgba(255, 255, 255, 0.015) 0%, rgba(0, 0, 0, 0) 45%),
        var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.content-section:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(230, 184, 0, 0.2);
    transform: translateY(-1px);
}

.content-section h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent);
    color: var(--text);
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--accent);
    color: var(--text);
    letter-spacing: -0.02em;
}

.content-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.content-section p {
    margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

.content-section .about-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Public venues list — compact grid */
.venue-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}
.venue-list--grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
}
.venue-tile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}
.venue-tile:hover {
    border-color: rgba(230, 184, 0, 0.3);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: inherit;
}
.venue-tile:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    text-decoration: none;
    color: inherit;
}
.venue-tile-image {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-subtle);
}
.venue-tile-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.venue-tile-image--empty {
    background: var(--border);
}
.venue-tile-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.venue-tile-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.2;
}
.venue-tile-address {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.venue-tile-schedule {
    font-size: 0.7rem;
    color: var(--accent);
    line-height: 1.25;
    margin-top: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (min-width: 640px) {
    .venue-list--grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
    .venue-tile-address {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
    }
    .venue-tile-schedule {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* Venue detail page (single venue) — creative layout + map */
.venue-detail {
    margin-bottom: 2rem;
}

.venue-detail-hero {
    position: relative;
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.venue-detail-hero-image {
    position: relative;
    width: 100%;
    height: 280px;
    background: var(--bg-subtle);
}

.venue-detail-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.venue-detail-hero-content {
    padding: 1.25rem 1.5rem 1.5rem;
    position: relative;
}

.venue-detail-hero-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.venue-detail-name {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.25rem;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.venue-detail-breadcrumb {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 0.5rem;
}

.venue-detail-breadcrumb a {
    color: var(--accent);
}

.venue-detail-breadcrumb a:hover {
    color: var(--accent-hover);
}

/* Grid: cards flow in a responsive grid */
.venue-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .venue-detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .venue-detail-address-card {
        grid-column: 1 / -1;
    }
}

@media (min-width: 960px) {
    .venue-detail-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem;
    }
    .venue-detail-address-card {
        grid-column: span 1;
    }
}

.venue-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow);
}

.venue-detail-card h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent);
    color: var(--text);
}

.venue-detail-section {
    margin-bottom: 0;
}

.venue-detail-address {
    margin: 0 0 1rem;
    line-height: 1.6;
    color: var(--text);
}

.venue-detail-map-wrap {
    width: 100%;
    height: 260px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
}

.venue-detail-map-wrap + .venue-detail-address,
.venue-detail-address + .venue-detail-map-wrap {
    margin-top: 0;
}

.venue-detail-description {
    margin: 0;
    line-height: 1.6;
    color: var(--text);
}

.venue-detail-gamenights .venue-detail-schedule {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 0.35rem;
}

.venue-detail-schedule-note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.venue-detail-calendar .btn {
    text-decoration: none;
}

.venue-detail-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.venue-detail-contact li {
    margin-bottom: 0.5rem;
}

.venue-detail-contact a {
    color: var(--accent);
}

.venue-detail-contact a:hover {
    color: var(--accent-hover);
}

.venue-detail-back {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.venue-detail-back .btn {
    text-decoration: none;
}

@media (max-width: 640px) {
    .venue-detail-hero-image {
        height: 200px;
    }
    .venue-detail-map-wrap {
        height: 220px;
    }
}

/* How it works — numbered steps with punch */
.steps-list {
    list-style: none;
    padding-left: 0;
    counter-reset: step;
}

.steps-list li {
    position: relative;
    padding: 1.25rem 1.25rem 1.25rem 4rem;
    margin-bottom: 1rem;
    counter-increment: step;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--accent);
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 1.25rem;
    width: 2.25rem;
    height: 2.25rem;
    background: var(--accent);
    color: var(--bg);
    font-weight: 800;
    font-size: 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 2.25rem;
    text-align: center;
    box-shadow: 0 2px 12px var(--accent-glow);
}

.note {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1.25rem;
}

.join-section .btn {
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}

.join-section .btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px var(--accent-glow);
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 2px solid var(--divider);
    margin: 1.5rem 0;
}

/* Buttons */
button,
.btn {
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

button:hover,
.btn:hover,
a.btn:hover {
    background: var(--accent-hover);
    color: var(--bg);
    box-shadow: 0 4px 20px var(--accent-glow);
}

button:focus-visible,
.btn:focus-visible,
a.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn-outline {
    background: rgba(240, 200, 0, 0.08);
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 1px rgba(240, 200, 0, 0.15);
}

.btn-outline:hover,
a.btn-outline:hover {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-outline:focus-visible,
a.btn-outline:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

code {
    background: var(--bg-subtle);
    color: var(--accent);
    padding: 0.2em 0.5em;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.9em;
}

/* Site footer */
.site-footer {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 2px solid var(--accent);
    background: var(--bg-card);
}

.footer-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.footer-disclaimer {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.footer-legal-links {
    margin-bottom: 0.5rem;
}

.footer-legal-links a {
    color: var(--accent);
    text-decoration: none;
}

.footer-legal-links a:hover {
    text-decoration: underline;
}

.footer-sep {
    margin: 0 0.35rem;
    color: var(--text-muted);
}

.footer-copy {
    margin-bottom: 0;
}

/* Cookie consent banner (GDPR / UK) */
.cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--bg-card);
    border-top: 2px solid var(--accent);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-notice-inner {
    max-width: 52rem;
    margin: 0 auto;
}

.cookie-notice-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cookie-notice-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
}

.cookie-notice-intro {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--text);
}

.cookie-notice-intro a,
.cookie-category-desc a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-notice-intro a:hover,
.cookie-category-desc a:hover {
    color: var(--accent-hover);
}

.cookie-notice-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-category {
    padding: 0.75rem 1rem;
    background: var(--bg-subtle, rgba(255,255,255,0.05));
    border-radius: 8px;
    border: 1px solid var(--border, rgba(255,255,255,0.1));
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.cookie-category-header input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    accent-color: var(--accent);
}

.cookie-category-header input[type="checkbox"]:disabled {
    opacity: 0.8;
}

.cookie-category-header label {
    cursor: pointer;
    font-weight: 600;
}

.cookie-category-header .cookie-category-badge {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-right: 0.25rem;
}

.cookie-category-desc {
    margin: 0 0 0 1.75rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.cookie-category-necessary .cookie-category-desc,
.cookie-category-analytics .cookie-category-desc {
    margin-left: 1.75rem;
}

.cookie-category-preference .cookie-category-desc {
    margin-left: 0;
}

.cookie-notice-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.btn-cookie-accept {
    background: var(--accent);
    color: var(--bg);
}

.btn-cookie-reject {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-cookie-reject:hover {
    background: var(--bg-subtle);
    color: var(--text);
    border-color: var(--text-muted);
}

.btn-cookie-save {
    background: var(--text-muted);
    color: var(--bg);
}

.btn-cookie-save:hover {
    background: var(--text);
    color: var(--bg);
}

/* Legal pages */
.legal-section {
    max-width: 52rem;
}

.legal-section h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-section h2:first-of-type {
    margin-top: 1.5rem;
}

.legal-updated {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.legal-section ul {
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.35rem;
}

/* News listing */
.news-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.news-list-item {
    border-bottom: 1px solid var(--border);
}
.news-list-link {
    display: flex;
    gap: 1.25rem;
    padding: 1.25rem 0;
    text-decoration: none;
    color: var(--text);
    align-items: flex-start;
}
.news-list-link:hover {
    color: var(--accent);
    text-decoration: none;
}
.news-list-thumb {
    flex-shrink: 0;
    width: 140px;
    height: 90px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-subtle);
}
.news-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.news-list-text {
    flex: 1;
    min-width: 0;
}
.news-list-text strong {
    display: block;
    margin-bottom: 0.25rem;
}
.news-list-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.35rem;
}
.news-list-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: block;
    line-height: 1.5;
}
.news-list-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.2rem 0 0.45rem;
}
.news-empty {
    color: var(--text-muted);
}

/* Events listing */
.events-grid {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.1rem;
}
.event-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(160deg, #171717 0%, #121212 100%);
    overflow: hidden;
}
.event-card article {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.event-card-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-subtle);
    overflow: hidden;
}
.event-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}
.event-card-media:hover img {
    transform: scale(1.03);
}
.event-card-media-empty {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.06em;
}
.event-card-content {
    padding: 0.95rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1;
}
.event-card-head {
    display: block;
}
.event-calendar-badge {
    position: absolute;
    top: 0.7rem;
    left: 0.7rem;
    z-index: 2;
    width: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(240, 200, 0, 0.35);
    background: rgba(16, 16, 16, 0.92);
    overflow: hidden;
    text-align: center;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    pointer-events: none;
}
.event-calendar-month {
    display: block;
    background: var(--accent);
    color: var(--bg);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.17rem 0;
    line-height: 1.1;
}
.event-calendar-day {
    display: block;
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.2;
    padding: 0.2rem 0;
}
.event-card-title {
    margin: 0 0 0.2rem;
    font-size: 1.22rem;
    line-height: 1.25;
}
.event-card-title a {
    color: var(--text);
    text-decoration: none;
}
.event-card-title a:hover {
    color: var(--accent);
    text-decoration: none;
}
.event-card-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}
.event-card-excerpt {
    margin: 0;
    color: var(--text-muted);
}
.event-card-action {
    margin: auto 0 0;
}

/* Event detail */
.event-detail {
    margin-top: 1.5rem;
}
.event-detail-media {
    margin: 0 0 1.1rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-subtle);
}
.event-detail-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.event-detail-header h1 {
    margin-bottom: 0.5rem;
}
.event-detail-breadcrumb {
    margin: 0 0 0.45rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.event-detail-breadcrumb a {
    color: var(--accent);
}
.event-detail-meta {
    margin: 0 0 1.2rem;
    color: var(--text-muted);
}
.event-detail-back {
    margin-top: 1.1rem;
}

/* Site map */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}
.sitemap-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(160deg, #171717 0%, #121212 100%);
    padding: 1rem;
}
.sitemap-card h2 {
    margin: 0 0 0.65rem;
}
.sitemap-list {
    margin: 0;
    padding-left: 1rem;
}
.sitemap-list li {
    margin: 0 0 0.32rem;
}
.sitemap-meta {
    margin-left: 0.35rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

/* News single */
.news-single-header h1 {
    margin-bottom: 0.5rem;
}
.news-meta {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.news-meta-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
}
.news-category-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(230, 184, 0, 0.45);
    border-radius: 999px;
    padding: 0.16rem 0.54rem;
    color: var(--accent);
    background: rgba(230, 184, 0, 0.1);
    font-size: 0.78rem;
    line-height: 1.2;
    text-decoration: none;
}
a.news-category-chip:hover {
    background: rgba(230, 184, 0, 0.2);
    color: var(--accent-hover);
    text-decoration: none;
}
.news-featured {
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-subtle);
}
.news-featured img {
    width: 100%;
    height: auto;
    display: block;
}
.news-body.content-body {
    margin-top: 1.5rem;
    line-height: 1.7;
}
.content-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}
.content-body {
    padding-bottom: 0.6rem;
}
.content-body p { margin: 0 0 0.9rem; }
.content-body p:last-child { margin-bottom: 0; }
.content-body ul, .content-body ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.content-body h2 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content-body h3 { margin-top: 1.25rem; margin-bottom: 0.5rem; }
.content-body a { color: var(--accent); text-decoration: underline; }
.content-body a:hover { color: var(--accent-hover); }

/* Gallery shortcode */
.content-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}
.content-gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-subtle);
}
.content-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* League results page */
.league-results-hero {
    margin: 1.5rem 0 2rem;
    padding: 2.25rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 12% 10%, rgba(230, 184, 0, 0.2), transparent 40%),
        linear-gradient(145deg, #171717 0%, #111111 50%, #1b1b1b 100%);
    box-shadow: var(--shadow);
    animation: leagueFadeIn 0.45s ease-out;
}

.league-results-kicker {
    margin: 0 0 0.45rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 700;
}

.league-results-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.08;
    border-bottom: 0;
    padding-bottom: 0;
}

.league-results-subtitle {
    margin: 0.8rem 0 1.6rem;
    color: var(--text-muted);
    max-width: 42rem;
}

.league-results-metrics {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.league-metric {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(230, 184, 0, 0.2);
    background: rgba(0, 0, 0, 0.24);
}

.league-metric-value {
    display: block;
    font-size: 1.45rem;
    line-height: 1;
    color: var(--accent);
    font-weight: 800;
}

.league-metric-label {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-size: 0.83rem;
}

.league-results-section {
    animation: leagueFadeIn 0.55s ease-out;
}

.league-filter-form {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: end;
}

.league-filter-form label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.league-filter-form label span {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.league-filter-form select {
    border: 1px solid var(--border);
    background: #111;
    color: var(--text);
    border-radius: var(--radius-sm);
    min-height: 2.6rem;
    padding: 0 0.75rem;
    font-size: 0.95rem;
}

.league-filter-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.league-standings-search {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-width: 20rem;
    margin: 0.25rem 0 0.95rem;
}

.league-standings-search label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.league-standings-search input {
    border: 1px solid var(--border);
    background: #111;
    color: var(--text);
    border-radius: var(--radius-sm);
    min-height: 2.35rem;
    padding: 0 0.75rem;
    font-size: 0.92rem;
}

.league-standings-search input:focus {
    outline: 2px solid rgba(230, 184, 0, 0.32);
    outline-offset: 1px;
}

.league-standings-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.league-standings-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.league-standings-table th,
.league-standings-table td {
    text-align: left;
    padding: 0.66rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

.league-standings-table th:first-child,
.league-standings-table td:first-child {
    width: 1%;
    white-space: nowrap;
    text-align: center;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
}

.league-standings-table th {
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.league-standings-table tbody tr:hover {
    background: rgba(230, 184, 0, 0.08);
}

.league-player-cell {
    white-space: nowrap;
}

.league-id-cell {
    color: var(--text-muted);
    white-space: nowrap;
    font-size: 0.78rem;
    width: 1%;
}

.league-id-badge {
    display: inline-block;
    padding: 0.06rem 0.38rem;
    border-radius: 999px;
    border: 1px solid rgba(230, 184, 0, 0.3);
    background: rgba(230, 184, 0, 0.08);
    color: #d7d7d7;
    font-size: 0.74rem;
    font-weight: 600;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.league-player-name {
    color: var(--text);
}

.league-player-chip {
    display: inline-block;
    margin-left: 0.45rem;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    border: 1px solid rgba(230, 184, 0, 0.45);
    color: var(--accent);
    background: rgba(230, 184, 0, 0.09);
    font-size: 0.76rem;
    font-weight: 700;
    vertical-align: middle;
}

.league-game-grid {
    display: grid;
    gap: 0.9rem;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.league-game-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: linear-gradient(155deg, #131313 0%, #1a1a1a 100%);
    padding: 0.95rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.league-game-card:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 184, 0, 0.45);
}

.league-game-card-head h3 {
    margin: 0.25rem 0 0;
    font-size: 1.2rem;
}

.league-game-meta {
    margin: 0;
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.league-game-season {
    margin: 0.25rem 0 0;
    color: var(--accent);
    font-size: 0.8rem;
}

.league-podium {
    display: grid;
    gap: 0.45rem;
}

.league-podium-row {
    display: grid;
    grid-template-columns: 1.6rem 1fr auto;
    gap: 0.5rem;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 7px;
    padding: 0.35rem 0.45rem;
}

.league-podium-place {
    color: var(--accent);
    font-weight: 800;
}

.league-podium-player {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.league-podium-points {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.league-podium-empty {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.league-game-card-foot {
    color: var(--text-muted);
    font-size: 0.82rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.55rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.league-game-card-foot .btn {
    padding: 0.28rem 0.6rem;
    font-size: 0.8rem;
}

.league-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 2000;
}

.league-modal {
    position: fixed;
    inset: 0;
    z-index: 2010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.league-modal[hidden],
.league-modal-backdrop[hidden] {
    display: none !important;
}

.league-modal-panel {
    position: relative;
    width: min(760px, 100%);
    max-height: 88vh;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    padding: 1rem;
}

.league-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
}

.league-modal-head h3 {
    margin: 0;
    font-size: 1.1rem;
}

.league-close-modal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    padding: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 700;
    box-shadow: none;
    transform: none;
}

.league-close-modal:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(230, 184, 0, 0.55);
    color: #fff;
    box-shadow: none;
    transform: none;
}

.league-modal-meta {
    margin: 0 0 0.9rem;
    color: var(--text-muted);
    font-size: 0.86rem;
}

@keyframes leagueFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 880px) {
    .league-filter-form {
        grid-template-columns: 1fr;
    }
}
