/* ==========================================================================
   Frontend — shared site design system
   Design tokens (dark broadcast theme + light theme), reset, typography,
   premium site header with main navigation, footer, shared page components.
   Loaded on every public page BEFORE any area-specific stylesheet
   (e.g. assets/scoreboard/css/style.css consumes the variables defined here).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

@font-face {
    font-family: 'Hind Siliguri';
    src: url('/font/HindSiliguri-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Hind Siliguri';
    src: url('/font/HindSiliguri-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Same display font used on /championship — applied to the shared header
   nav and footer (see below) so it's consistent across every page. */
@font-face {
    font-family: 'Klavika Condensed';
    src: url('/font/Klavika%20Web%20Bold%20Condensed.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Applies whenever the page (or a switched-language element) is Bangla —
   Outfit/Inter have no Bangla glyphs, so this is what actually renders.
   !important is deliberate: dozens of component rules below redeclare
   font-family: 'Outfit'/'Inter' with equal specificity, and being later in
   the cascade they'd otherwise win over this language-based override. */
:lang(bn) {
    font-family: 'Hind Siliguri', 'Outfit', 'Inter', sans-serif !important;
}

:root {
    /* Surfaces */
    --bg-page: #06090c;
    --bg-surface: #0e141c;
    --bg-surface-raised: #131b26;
    --bg-header: rgba(10, 14, 20, 0.72);
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    /* Ink */
    --text-primary: #f5f6f7;
    --text-secondary: #a7afba;
    --text-muted: #6b7280;

    /* Brand / accent */
    --accent: #16c98d;
    --accent-soft: rgba(22, 201, 141, 0.14);
    --accent-ink: #04150f;
    --gold: #eda100;
    --gold-soft: rgba(237, 161, 0, 0.14);
    --silver: #9aa4b2;
    --bronze: #c9772f;

    /* Golf scoring convention */
    --under-par: #ef5757;
    --under-par-soft: rgba(239, 87, 87, 0.14);
    --over-par: #8b93a1;
    --even-par: var(--text-primary);

    /* Status (hole badges) */
    --status-good: #16c98d;
    --status-warning: #fab219;
    --status-critical: #d03b3b;
    --status-eagle: #9085e9;

    /* Radii (flat design — no rounded corners) / shadows */
    --radius-sm: 0;
    --radius-md: 0;
    --radius-lg: 0;
    --shadow-card: 0 14px 40px rgba(0, 0, 0, 0.35);
    --shadow-row: 0 6px 18px rgba(0, 0, 0, 0.25);

    /* Background glow tints */
    --bg-glow-1: rgba(22, 201, 141, 0.07);
    --bg-glow-2: rgba(237, 161, 0, 0.05);

    /* Banner title gradient */
    --title-gradient-start: #ffffff;
    --title-gradient-end: #cbd5e1;

    /* Layout */
    --header-height: 72px;
}

/* Light theme — toggled via [data-theme="light"] on <html> (see theme-init.js) */
:root[data-theme="light"] {
    --bg-page: #f4f5f7;
    --bg-surface: #ffffff;
    --bg-surface-raised: #eef0f3;
    --bg-header: rgba(255, 255, 255, 0.82);
    --border: rgba(15, 23, 42, 0.09);
    --border-strong: rgba(15, 23, 42, 0.18);

    --text-primary: #10151d;
    --text-secondary: #495260;
    --text-muted: #8891a0;

    --accent: #0ca36f;
    --accent-soft: rgba(12, 163, 111, 0.12);
    --accent-ink: #ffffff;
    --gold: #b97800;
    --gold-soft: rgba(185, 120, 0, 0.12);
    --silver: #6b7480;
    --bronze: #a35d21;

    --under-par: #d13a3a;
    --under-par-soft: rgba(209, 58, 58, 0.1);
    --over-par: #6b7480;

    --status-good: #0ca36f;
    --status-warning: #b97800;
    --status-critical: #d13a3a;
    --status-eagle: #6a5acd;

    --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.08);
    --shadow-row: 0 4px 12px rgba(15, 23, 42, 0.06);

    --bg-glow-1: rgba(12, 163, 111, 0.05);
    --bg-glow-2: rgba(185, 120, 0, 0.04);

    --title-gradient-start: #10151d;
    --title-gradient-end: #414a58;
}

/* ==========================================================================
   Reset & base typography
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 8% 0%, var(--bg-glow-1) 0%, transparent 42%),
        radial-gradient(circle at 92% 18%, var(--bg-glow-2) 0%, transparent 40%);
    background-attachment: fixed;
    transition: background-color 0.2s ease, color 0.2s ease;
}

::selection {
    background: var(--accent-soft);
    color: var(--text-primary);
}

/* Scrollbars */
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); }

/* Generic page shell (content container) */
.page-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* ==========================================================================
   Site header — sticky bar: brand + main navigation + site controls
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: var(--bg-header);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: var(--shadow-row);
}

.site-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    min-height: var(--header-height);
    padding: 0.6rem 1.5rem;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    text-decoration: none;
}

.brand-logo {
    height: 62px;
    width: auto;
    flex-shrink: 0;
}

.brand-text { min-width: 0; }

.brand-title {
    display: block;
    font-family: 'Klavika Condensed', 'Outfit', sans-serif;
    font-size: clamp(1.2rem, 2.1vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brand-sub {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

/* ==========================================================================
   Main navigation
   ========================================================================== */

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
    min-width: 0;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: 'Klavika Condensed', 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-secondary);
    text-decoration: none;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.55rem 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover { color: var(--text-primary); }

/* Active/current page indicator — accent underline bar */
.nav-link::after {
    content: '';
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.15rem;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s ease;
}

.nav-link:hover::after { transform: scaleX(1); }

.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after { transform: scaleX(1); }

/* Dropdown (About) */
.nav-item-dropdown { position: relative; }

.nav-caret {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    opacity: 0.7;
}

.nav-item-dropdown.open .nav-caret,
.nav-item-dropdown:hover .nav-caret { transform: rotate(180deg); }

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    min-width: 210px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 0;
    box-shadow: var(--shadow-card);
    padding: 0.4rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 60;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.62rem 1.15rem;
    font-family: 'Klavika Condensed', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.dropdown-link:hover {
    color: var(--text-primary);
    background: var(--accent-soft);
}

.dropdown-link.active {
    color: var(--accent);
    box-shadow: inset 2px 0 0 var(--accent);
    background: var(--accent-soft);
}

/* Scoreboard — call-to-action nav item */
.nav-cta {
    margin-left: 0.5rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.5rem 1rem;
}

.nav-cta::after { content: none; }

.nav-cta:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.nav-cta.active {
    background: var(--accent);
    color: var(--accent-ink);
}

/* Hamburger (mobile only) */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 0 9px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 0;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.nav-burger:hover { border-color: var(--border-strong); }

.burger-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-secondary);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

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

/* ==========================================================================
   Shared header controls
   ========================================================================== */

.theme-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.theme-toggle-btn:hover { color: var(--text-primary); border-color: var(--border-strong); }

.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }

.select-dropdown {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 0.62rem 2.2rem 0.62rem 1.1rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a7afba' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    transition: border-color 0.2s ease;
}

.select-dropdown:hover,
.select-dropdown:focus { border-color: var(--border-strong); outline: none; }

/* Compact variant used inside the site header */
.select-compact {
    padding: 0.5rem 2rem 0.5rem 0.9rem;
    font-size: 0.8rem;
    background-position: right 0.85rem center;
}

/* Live badge (site-wide component — used on the scoreboard page head) */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--under-par);
    background: var(--under-par-soft);
    border: 1px solid rgba(239, 87, 87, 0.3);
    padding: 0.32rem 0.7rem;
    border-radius: 0;
    white-space: nowrap;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 0;
    background: var(--under-par);
    box-shadow: 0 0 0 0 rgba(239, 87, 87, 0.6);
    animation: pulse-dot 1.8s ease-out infinite;
}

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(239, 87, 87, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(239, 87, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 87, 87, 0); }
}

/* ==========================================================================
   Buttons (shared)
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-accent {
    background: var(--accent);
    color: var(--accent-ink);
    border: 1px solid var(--accent);
}

.btn-accent:hover { filter: brightness(1.08); }

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ==========================================================================
   Page hero — title band used by content pages
   ========================================================================== */

.page-hero {
    background:
        linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%),
        var(--bg-surface);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.25rem;
}

.page-hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.25rem 1.5rem 1.75rem;
}

.page-hero-row {
    display: flex;
    align-items: baseline;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.page-hero-row .page-overline {
    margin-bottom: 0;
    padding: 0.3rem 0.65rem;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
}

.page-overline {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.7rem;
}

.page-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.12;
    background: linear-gradient(135deg, var(--title-gradient-start) 30%, var(--title-gradient-end) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text-primary);
}

.page-title-custom-font {
    font-family: 'Hind Siliguri', 'Outfit', sans-serif;
}

.page-sub {
    margin-top: 0.8rem;
    max-width: 640px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* ==========================================================================
   Coming-soon placeholder card
   ========================================================================== */

.coming-soon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: var(--shadow-card);
    padding: 4rem 1.5rem 4.25rem;
}

.coming-soon-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    color: var(--accent);
    margin-bottom: 1.4rem;
}

.coming-soon-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.7rem;
}

.coming-soon-body {
    max-width: 540px;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.coming-soon-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================================================
   About content band — shared full-width layout for every /about/* page
   (Welcome, Message, About CISM), driven by frontend.partials.about-band
   from an AboutMessage entry. Same visual language as the homepage's CISM
   history block (.cc-cism-history in championship.css), rebuilt with this
   stylesheet's own tokens/fonts since these pages extend layouts.frontend
   instead of layouts.championship. A direct sibling of .page-hero (both
   live inside <main>, which has no max-width of its own), so the
   background spans edge-to-edge on its own — no full-bleed breakout trick
   needed.
   ========================================================================== */
.about-band {
    position: relative;
    padding: 2.5rem 0 3rem;
    background: var(--bg-surface-raised);
    border-top: 3px solid var(--gold);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    text-align: center;
}

.about-band-inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.about-band-logo-btn {
    display: block;
    margin: 0 auto 1.1rem;
    padding: 0;
    background: none;
    border: none;
    cursor: zoom-in;
}

.about-band-logo {
    height: 200px;
    width: auto;
    margin: 0 auto;
    padding: 6px;
    border: 3px solid var(--gold);
    background: var(--bg-surface);
    transition: transform 0.25s ease;
}

.about-band-logo-btn:hover .about-band-logo,
.about-band-logo-btn:focus-visible .about-band-logo { transform: scale(1.06); }

.about-band-tag {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.6rem;
}

.about-band-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

.about-band-rule {
    display: block;
    width: 64px;
    height: 3px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.about-band-body {
    max-width: 100%;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-secondary);
    text-align: justify;
    text-align-last: left;
}

.about-band-body + .about-band-body { margin-top: 1.25rem; }

/* Welcome/Message-only paragraph variants — About CISM never sets these. */
.about-band-lead {
    font-weight: 600;
    color: var(--text-primary);
}

.about-band-signoff {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-style: italic;
    text-align: center;
}

@media (max-width: 640px) {
    .about-band { padding: 2rem 0 2.5rem; }
    .about-band-logo { height: 140px; }
}

/* ==========================================================================
   Notice Board — announcement list
   ========================================================================== */

.notice-list {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 0;
    box-shadow: var(--shadow-card);
    margin-top: 0;
    overflow: hidden;
}

.notice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease, border-left-color 0.15s ease;
}

.notice-row:nth-child(even) {
    background: var(--bg-surface-raised);
}

.notice-row:last-child {
    border-bottom: none;
}

.notice-row:hover {
    background: var(--accent-soft);
    border-left-color: var(--accent);
}

.notice-row.is-featured {
    border-left-color: var(--accent);
}

.notice-serial {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--bg-page);
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
}

.notice-row-text {
    min-width: 0;
    flex: 1;
}

.notice-row-title-line {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.notice-date {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    background: var(--bg-page);
    border: 1px solid var(--border);
    padding: 0.1rem 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.03em;
}

.notice-row-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.1px;
    color: var(--text-primary);
    margin: 0;
}

.notice-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
    background: var(--accent);
    color: var(--bg-page);
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.14rem 0.5rem;
}

.notice-row-excerpt {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0.25rem 0 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.notice-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-strong);
    color: var(--text-secondary);
    background: var(--bg-page);
    transition: all 0.15s ease;
}

.notice-icon-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.notice-icon-btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-page);
}

.notice-icon-btn-accent:hover {
    filter: brightness(1.1);
    color: var(--bg-page);
}

/* ==========================================================================
   Players roster — Country Flag / Country Name / Military Rank / Player
   Name table on the public /players page.
   ========================================================================== */

.players-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.players-filter-btn {
    padding: 0.55rem 1.25rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.players-filter-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.players-filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-page);
}

.players-filter-empty {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

.players-table-wrap {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    box-shadow: var(--shadow-card);
    overflow-x: auto;
}

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

.players-table th {
    text-align: left;
    padding: 0.85rem 1.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.players-table td {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 0.92rem;
}

.players-table tbody tr:nth-child(even) { background: var(--bg-surface-raised); }
.players-table tbody tr:hover { background: var(--accent-soft); }
.players-table tbody tr:last-child td { border-bottom: none; }

.players-flag-col { width: 1%; }

.players-flag {
    display: block;
    width: 28px;
    height: 21px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.players-flag-emoji { font-size: 1.1rem; }

.players-name-cell { font-weight: 600; }

.players-name-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Deliberate exception to the site's "no rounded corners" rule — a round
   profile photo/initials bubble is its own established UI convention,
   distinct from the sharp-cornered cards/buttons/panels elsewhere. */
.players-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-surface-raised);
}

.players-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.players-avatar-initial {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

/* Same six colors as the admin panel's .avatar-color-* (see admin.css) —
   Player::avatarColorClass() is deterministic per player ID, so reusing the
   exact palette here means a given player's avatar color matches whether
   viewed on the public roster or in the admin players list. */
.avatar-color-0 { background-color: #007bff; }
.avatar-color-1 { background-color: #28a745; }
.avatar-color-2 { background-color: #dc3545; }
.avatar-color-3 { background-color: #fd7e14; }
.avatar-color-4 { background-color: #6f42c1; }
.avatar-color-5 { background-color: #17a2b8; }

@media (max-width: 560px) {
    .players-table th, .players-table td { padding: 0.65rem 0.85rem; }
}

/* ==========================================================================
   Pagination bar — used by Notice Board and any future paginated list
   ========================================================================== */

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.page-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.page-link.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-page);
}

.page-link.is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ==========================================================================
   News — article grid, cards and detail page
   ========================================================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 0;
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: var(--border-strong);
    border-top-color: var(--accent);
}

.news-card-image {
    position: relative;
    width: 100%;
    height: 170px;
    background: var(--bg-surface-raised);
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.news-card-category {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    background: var(--accent);
    color: var(--bg-page);
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
}

.news-card-body {
    padding: 1rem 1.1rem 1.25rem;
}

.news-card-date {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.news-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.news-card-excerpt {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* News detail page — text hero + in-content featured image */

.news-hero {
    padding-top: 2.75rem;
    margin-bottom: 2rem;
    background:
        linear-gradient(180deg, var(--accent-soft) 0%, transparent 100%),
        var(--bg-surface);
    border-bottom: 1px solid var(--border);
}

.news-hero-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 1.5rem 2rem;
}

.news-hero-top-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    height: 2.15rem;
    background: var(--bg-surface-raised);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0 0.85rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.news-back-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.news-hero-category {
    display: inline-flex;
    align-items: center;
    height: 2.15rem;
    background: var(--accent);
    color: var(--accent-ink);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 0.85rem;
}

.news-hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 3.6vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.18;
    margin: 0 0 1.1rem;
    background: linear-gradient(135deg, var(--title-gradient-start) 30%, var(--title-gradient-end) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text-primary);
}

.news-hero-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.35rem;
}

.news-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-hero-meta-item svg {
    flex-shrink: 0;
    opacity: 0.85;
    color: var(--accent);
}

.news-article-shell {
    max-width: 1080px;
}

.news-featured-image {
    margin: 0 0 2rem;
}

.news-featured-image img {
    width: 100%;
    height: clamp(240px, 45vw, 480px);
    object-fit: cover;
    display: block;
    border: 1px solid var(--border);
}

.news-featured-caption {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0.6rem 0 0;
}

.news-article-lead {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
    padding-left: 1.1rem;
    border-left: 3px solid var(--accent);
    margin: 0 0 1.75rem;
}

.news-article-body {
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.9;
}

.news-article-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.85rem;
    margin-top: 2rem;
}

.news-gallery-frame {
    overflow: hidden;
    height: 170px;
    border: 1px solid var(--border);
}

.news-gallery-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.news-gallery-frame:hover img {
    transform: scale(1.08);
}

.news-gallery-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    background: none;
    font: inherit;
    cursor: zoom-in;
}

.news-gallery-trigger::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.news-gallery-trigger:hover::after {
    opacity: 1;
}

/* Full-screen lightbox for gallery images (not the cover image) */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3.5rem 1.5rem;
    background: rgba(2, 5, 8, 0.94);
}

.lightbox.is-open {
    display: flex;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Small assets (logos/emblems, via data-lightbox-compact on the trigger) open
   at a modest, standard "popup" size instead of stretching near-full-screen
   like gallery/news photos — see script.js's lightbox handler. */
.lightbox-image.lightbox-image-compact {
    max-width: min(420px, 85vw);
    max-height: min(420px, 70vh);
    padding: 1.5rem;
    background: var(--bg-surface-raised);
    border: 2px solid var(--gold);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: var(--accent);
}

body.lightbox-open {
    overflow: hidden;
}

.news-article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
}

.news-tag {
    background: var(--bg-surface-raised);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.news-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.news-related {
    margin-top: 3.5rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--border);
}

.news-related-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1.25rem;
}

.news-related .news-grid {
    margin-top: 0;
}

/* ==========================================================================
   Gallery — flat image grid with a full-screen lightbox (shared component,
   see .lightbox rules above; JS wiring in assets/frontend/js/script.js)
   ========================================================================== */

.gallery-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.gallery-photo-frame {
    position: relative;
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    padding: 0;
    background: none;
    border: 1px solid var(--border);
    font: inherit;
    cursor: zoom-in;
}

.gallery-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gallery-photo-frame:hover img {
    transform: scale(1.08);
}

.gallery-photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-photo-frame:hover::after {
    opacity: 1;
}

/* ==========================================================================
   Video Highlights page (/videos) — grid of clickable thumbnails that open
   an embedded YouTube player in a lightbox modal (see script.js section 8).
   ========================================================================== */

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
}

.video-card {
    display: block;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16/9;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    height: 100% !important;
    overflow: hidden;
    background: #000;
}

.video-thumbnail img,
.video-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.35s ease;
}

.video-card:hover .video-thumbnail img,
.video-card:hover .video-thumbnail video {
    transform: scale(1.06);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s ease;
}

.video-card:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.45);
}

.play-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--accent-ink);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s ease;
}

.video-card:hover .play-icon {
    transform: scale(1.15);
    background: #fff;
    color: #000;
}

.video-duration {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
}

.video-info {
    padding: 0.95rem;
}

.video-category {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold);
}

.video-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 0.35rem;
    line-height: 1.4;
}

.video-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* Lightbox video player modal — mirrors #site-lightbox's open/close pattern */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.video-modal.is-open {
    display: flex;
}

.video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.video-modal-container {
    position: relative;
    width: 100%;
    max-width: 850px;
    background: #000;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--border-strong);
    z-index: 10;
    box-shadow: var(--shadow-card);
}

.video-modal-close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.video-modal-close:hover {
    color: var(--gold);
}

.video-modal-iframe-wrap {
    width: 100%;
    height: 100%;
}

.video-modal-iframe-wrap iframe,
.video-modal-iframe-wrap video {
    width: 100%;
    height: 100%;
    border: none;
    background: #000;
}

.video-modal-iframe-wrap video {
    display: none;
}

body.video-modal-open {
    overflow: hidden;
}

/* ==========================================================================
   Contact page — committee info panel + enquiry form
   ========================================================================== */

.contact-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    padding: 1.75rem;
}

/* Committee Information card removed — the enquiry form now stands alone
   and stretches to the full .page-shell width instead of sharing a
   1fr/1.4fr grid column with it. */
.contact-card-full { padding: 2.5rem; }

.contact-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 1.4rem;
}

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

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-info-item:last-child { border-bottom: none; padding-bottom: 0; }
.contact-info-item:first-child { padding-top: 0; }

.contact-info-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.contact-info-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.contact-info-value {
    color: var(--text-primary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.contact-info-value a { color: inherit; text-decoration: none; }
.contact-info-value a:hover { color: var(--accent); }

.contact-success {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--accent-soft);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 1rem 1.2rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.contact-success svg { flex-shrink: 0; color: var(--accent); margin-top: 0.15rem; }

/* ==========================================================================
   Points of Contact — named committee liaisons, below the venue/form grid.
   Same "eyebrow + heading" pattern as .news-related; each person reuses
   .contact-card/.contact-info-* from the card above rather than new markup.
   ========================================================================== */
.contact-poc {
    margin-top: 3.5rem;
    padding-top: 2.25rem;
    border-top: 1px solid var(--border);
}

.contact-poc-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 1.5rem;
}

.poc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.poc-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    margin: 0 0 0.25rem;
}

.poc-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin: 0 0 1.25rem;
}

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

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.form-group { margin-bottom: 1.1rem; }

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.form-input,
.form-textarea {
    width: 100%;
    background: var(--bg-page);
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 0.7rem 0.85rem;
    transition: border-color 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-textarea { resize: vertical; min-height: 130px; }

.form-input.has-error,
.form-textarea.has-error { border-color: var(--under-par); }

.form-error {
    display: block;
    font-size: 0.78rem;
    color: var(--under-par);
    margin-top: 0.4rem;
}

/* ==========================================================================
   Home — landing hero, meta strip, quick-link cards
   ========================================================================== */

.home-hero {
    position: relative;
    text-align: center;
    padding: 4.5rem 1.5rem 3.75rem;
    background:
        radial-gradient(circle at 50% -20%, var(--accent-soft) 0%, transparent 60%),
        var(--bg-surface);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.home-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-hero-logo {
    height: 96px;
    width: auto;
    margin-bottom: 1.6rem;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.35));
}

.home-overline {
    font-family: 'Outfit', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.9rem;
}

.home-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.9rem, 5vw, 3.1rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.08;
    background: linear-gradient(135deg, var(--title-gradient-start) 30%, var(--title-gradient-end) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--text-primary);
    margin-bottom: 1.1rem;
}

.home-lead {
    max-width: 640px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.home-cta-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Meta strip: dates / venue / format */
.home-meta-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 0;
    box-shadow: var(--shadow-card);
    margin: 2.5rem 0;
}

.home-meta-item {
    padding: 1.5rem 1.75rem;
    border-right: 1px solid var(--border);
}

.home-meta-item:last-child { border-right: none; }

.home-meta-label {
    display: block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.home-meta-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Quick-link cards */
.home-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.home-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: 2px solid var(--accent);
    border-radius: 0;
    padding: 1.75rem;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: var(--border-strong);
    border-top-color: var(--accent);
}

.home-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 1.1rem;
}

.home-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.home-card-text {
    color: var(--text-secondary);
    font-size: 0.87rem;
    line-height: 1.65;
    margin-bottom: 1.2rem;
}

.home-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: auto;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
}

/* ==========================================================================
   Site footer
   ========================================================================== */

.site-footer {
    margin-top: 1rem;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
}

.site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.75rem 1.5rem 2.25rem;
    display: grid;
    grid-template-columns: 2.2fr 1fr 1.2fr 1.2fr;
    gap: 2.5rem;
}

.footer-brand { max-width: 380px; }

.footer-logo {
    height: 56px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-brand-name {
    font-family: 'Klavika Condensed', 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.65;
}

.footer-heading {
    font-family: 'Klavika Condensed', 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
}

.footer-heading-follow { margin-top: 1.5rem; }

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 0.55rem; }

.footer-links a {
    font-family: 'Klavika Condensed', 'Inter', sans-serif;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--accent); }

.footer-address {
    font-style: normal;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
}

.footer-social { display: flex; gap: 0.6rem; }

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bg-surface-raised);
    border: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-secondary);
    transition: border-color 0.2s ease, color 0.2s ease;
}

.footer-social a:hover { color: var(--accent); border-color: var(--border-strong); }

.footer-bottom { border-top: 1px solid var(--border); }

.footer-bottom-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
    .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .home-cards { grid-template-columns: 1fr; }
    .contact-form-row { grid-template-columns: 1fr; }
    .home-meta-strip { grid-template-columns: 1fr; }
    .home-meta-item {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .home-meta-item:last-child { border-bottom: none; }
}

/* Collapse main nav into a hamburger panel */
@media (max-width: 1160px) {
    .nav-burger { display: flex; }

    .brand-sub { display: none; }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-left: 0;
        padding: 0.5rem 0 0.75rem;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-card);
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    }

    .site-header.nav-open .main-nav {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    .nav-link::after { content: none; }

    .nav-link.active {
        color: var(--accent);
        background: var(--accent-soft);
        box-shadow: inset 3px 0 0 var(--accent);
    }

    /* Dropdown becomes an inline accordion */
    .nav-item-dropdown { position: static; }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        border: none;
        border-top: none;
        box-shadow: none;
        padding: 0;
        background: transparent;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    /* Hover must not open the accordion on touch — only the .open class does */
    .nav-item-dropdown:hover .nav-dropdown-menu,
    .nav-item-dropdown:focus-within .nav-dropdown-menu { display: none; }

    .nav-item-dropdown.open .nav-dropdown-menu,
    .nav-item-dropdown.open:hover .nav-dropdown-menu,
    .nav-item-dropdown.open:focus-within .nav-dropdown-menu { display: block; }

    .nav-item-dropdown:hover .nav-caret { transform: none; }
    .nav-item-dropdown.open .nav-caret { transform: rotate(180deg); }

    .dropdown-link {
        padding: 0.7rem 1.5rem 0.7rem 2.6rem;
        font-size: 0.86rem;
    }

    .dropdown-link.active { box-shadow: inset 3px 0 0 var(--accent); }

    .nav-cta {
        margin: 0.6rem 1.5rem 0;
        width: auto;
        justify-content: center;
        border: 1px solid var(--accent);
    }

    .nav-cta.active {
        background: var(--accent);
        color: var(--accent-ink);
        box-shadow: none;
    }
}

/* ==========================================================================
   Fair Play Vote — public poll reached by scanning a QR code (/fair-play).
   Reuses .contact-card/.contact-success/.btn-accent/.form-error from the
   Contact page above rather than duplicating card/alert/button styling.
   ========================================================================== */
.fair-play-form-hint {
    margin: -0.75rem 0 1.4rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.fair-play-voted-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
}

.fair-play-voted-card svg { flex-shrink: 0; color: var(--accent); }

.fair-play-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.fair-play-option { cursor: pointer; }

.fair-play-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.fair-play-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 0.75rem;
    background: var(--bg-surface-raised);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.2s ease;
}

.fair-play-option:hover .fair-play-option-card { border-color: var(--accent); }

.fair-play-option.is-selected .fair-play-option-card {
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.fair-play-option-flag {
    display: block;
    width: 40px;
    height: 30px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.fair-play-option-flag-emoji { font-size: 1.6rem; }

.fair-play-option-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.fair-play-results {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.fair-play-results-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 0.35rem;
}

.fair-play-results-total {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0 0 1.25rem;
}

.fair-play-results-empty {
    color: var(--text-muted);
    padding: 1.5rem 0;
}

.fair-play-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.fair-play-result-row {
    display: grid;
    grid-template-columns: 160px 1fr 90px;
    align-items: center;
    gap: 0.85rem;
}

.fair-play-result-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-primary);
}

.fair-play-result-flag {
    display: block;
    width: 24px;
    height: 18px;
    object-fit: cover;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.fair-play-result-bar-track {
    height: 10px;
    background: var(--bg-surface-raised);
    border: 1px solid var(--border);
}

.fair-play-result-bar-fill {
    height: 100%;
    background: var(--accent);
    width: 0;
}

.fair-play-result-value {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

@media (max-width: 560px) {
    .fair-play-result-row { grid-template-columns: 1fr; gap: 0.35rem; }
    .fair-play-result-value { text-align: left; }
}

@media (max-width: 680px) {
    .page-shell { padding: 0 1rem 2.5rem; }

    .site-header-inner { padding: 0.6rem 1rem; gap: 0.75rem; }
    .brand-logo { height: 46px; }
    .header-actions { gap: 0.5rem; }

    .page-hero-inner { padding: 2.25rem 1rem 1.9rem; }
    .home-hero { padding: 3rem 1rem 2.5rem; }
    .home-hero-logo { height: 72px; }

    .news-hero-inner { padding: 0 1rem 1.5rem; }
    .news-hero-meta { gap: 0.85rem; }

    .coming-soon-card { padding: 3rem 1rem 3.25rem; }

    .site-footer-inner { grid-template-columns: 1fr; padding: 2.25rem 1rem 1.75rem; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; padding: 1rem; }
}
