/* ============================================================================
   Website Builder — public site theme
   Mobile-first, responsive. Colours and fonts come from CSS custom properties
   emitted per-site by wb_theme_css() in lib/render.php.
   ========================================================================== */

:root {
    --wb-primary: #1a3d6e;
    --wb-secondary: #2c2f6b;
    --wb-accent: #c0572a;
    --wb-font-heading: 'Montserrat', sans-serif;
    --wb-font-body: 'Open Sans', sans-serif;
    --wb-text: #2b3440;
    --wb-muted: #6b7682;
    --wb-bg: #f7f8fa;
    --wb-surface: #ffffff;
    --wb-border: #e2e6ea;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--wb-font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--wb-text);
    background: var(--wb-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

h1, h2, h3, h4 {
    font-family: var(--wb-font-heading);
    color: var(--wb-primary);
    line-height: 1.25;
    margin: 1.2em 0 0.5em;
}
h1 { font-size: 30px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 17px; }

a { color: var(--wb-primary); }

.wb-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

.wb-muted { color: var(--wb-muted); }
.wb-center { text-align: center; }

/* ---- Header / navigation ------------------------------------------------ */

.wb-site-header {
    background: var(--wb-primary);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    flex-shrink: 0;
}

.wb-site-header .wb-shell {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    min-height: 58px;
    gap: 8px;
}

.wb-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-family: var(--wb-font-heading);
    font-size: 18px;
    font-weight: 700;
    padding: 8px 0;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 60%;
}
.wb-brand img { height: 38px; width: auto; border-radius: 4px; background: #fff; padding: 2px; }
.wb-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wb-nav-toggle {
    background: none;
    border: 0;
    padding: 12px;
    cursor: pointer;
    display: block;
    margin-left: auto;
}
.wb-nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    border-radius: 2px;
}

/* ---- Navigation ---------------------------------------------------------- */

.wb-nav { display: none; width: 100%; }
.wb-nav.open { display: block; }
.wb-nav ul { list-style: none; margin: 0; padding: 0 0 10px; }
.wb-nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 11px 8px;
    border-radius: 6px;
    font-weight: 600;
    -webkit-tap-highlight-color: rgba(255,255,255,.15);
}
.wb-nav a:hover, .wb-nav li.active > a { background: rgba(255,255,255,.16); }

/* Mobile: dropdown caret doubles as accordion toggle */
.wb-caret { display: inline-block; margin-left: 6px; font-style: normal; font-size: .7em; vertical-align: middle; }
.wb-caret::after { content: '▼'; }

/* Mobile accordion — sub-menu hidden by default, shown when parent li gets .wb-open */
.wb-dropdown { display: none; padding: 0 0 4px 16px !important; }
.wb-has-dropdown.wb-open > .wb-dropdown { display: block; }

/* Dropdown toggle — shared styles for both <a> and <button> variants */
.wb-dropdown-toggle {
    cursor: pointer;
    background: none;
    border: none;
    padding: 11px 8px;
    color: #fff;
    font-weight: 600;
    font-size: inherit;
    font-family: inherit;
    display: block;
    width: 100%;
    text-align: left;
    border-radius: 6px;
    -webkit-tap-highlight-color: rgba(255,255,255,.15);
}
.wb-dropdown-toggle:hover { background: rgba(255,255,255,.16); }

@media (min-width: 768px) {
    .wb-nav-toggle { display: none; }
    /* Push nav to the right so the brand link stays compact */
    .wb-site-header .wb-shell { align-items: stretch; }
    .wb-brand { align-self: center; margin-right: auto; }
    .wb-nav { display: flex; width: auto; align-items: stretch; }
    .wb-nav > ul { display: flex; gap: 2px; padding: 0; align-items: stretch; }
    /* Stretch li to full header height so top:100% on dropdown aligns to header bottom */
    .wb-nav > ul > li { position: relative; display: flex; align-items: stretch; }
    .wb-nav a { padding: 18px 14px; border-radius: 0; border-bottom: 3px solid transparent; display: flex; align-items: center; }
    .wb-nav > ul > li > a:hover,
    .wb-nav > ul > li.active > a { background: rgba(255,255,255,.10); border-bottom-color: var(--wb-accent); }

    /* Desktop dropdown */
    .wb-dropdown-toggle { display: flex; align-items: center; padding: 0 14px; border-radius: 0; border-bottom: 3px solid transparent; width: auto; text-align: center; }
    .wb-dropdown-toggle:hover,
    .wb-has-dropdown.active > .wb-dropdown-toggle { background: rgba(255,255,255,.10); border-bottom-color: var(--wb-accent); }
    .wb-caret { display: none; }
    .wb-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 180px;
        background: var(--wb-primary);
        border-radius: 0 0 8px 8px;
        box-shadow: 0 6px 20px rgba(0,0,0,.25);
        padding: 6px 0 !important;
        z-index: 100;
    }
    .wb-has-dropdown:hover > .wb-dropdown,
    .wb-has-dropdown:focus-within > .wb-dropdown { display: block; }
    .wb-dropdown li a {
        padding: 10px 16px;
        border-bottom: none;
        border-radius: 0;
        white-space: nowrap;
    }
    .wb-dropdown li a:hover,
    .wb-dropdown li.active a { background: rgba(255,255,255,.16); }

    h1 { font-size: 38px; }
    h2 { font-size: 28px; }
}

/* ---- Navigation style variants ------------------------------------------- */

/* Non-sticky horizontal top bar */
.wb-nav-top { position: static; }

/* Hamburger on all screen sizes — nav drops down as overlay */
.wb-nav-hamburger { position: relative; }
.wb-nav-hamburger .wb-nav-toggle { display: block; margin-left: auto; }
@media (min-width: 768px) {
    .wb-nav-hamburger .wb-nav-toggle { display: block; }
    .wb-nav-hamburger .wb-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--wb-primary);
        box-shadow: 0 6px 18px rgba(0,0,0,.22);
        z-index: 100;
        width: auto;
    }
    .wb-nav-hamburger .wb-nav.open { display: block; }
    .wb-nav-hamburger .wb-nav > ul { display: block; padding: 8px 0 12px; }
    .wb-nav-hamburger .wb-nav > ul > li { display: block; }
    .wb-nav-hamburger .wb-nav a { border-bottom: none; border-radius: 6px; padding: 11px 12px; }
    .wb-nav-hamburger .wb-nav > ul > li > a:hover,
    .wb-nav-hamburger .wb-nav > ul > li.active > a { background: rgba(255,255,255,.16); border-bottom-color: transparent; }
}

/* ---- Sidebar layout wrapper ---- */
.wb-page-wrap { display: flex; min-height: 100vh; flex-direction: column; }
@media (min-width: 768px) {
    .wb-nav-sidebar,
    .wb-nav-sidebar-collapse { flex-direction: row; }
}

/* The sidebar panel itself */
.wb-sidebar {
    background: var(--wb-primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    z-index: 200;
    flex-shrink: 0;
}

/* Mobile: off-canvas drawer for both sidebar styles */
@media (max-width: 767px) {
    .wb-nav-sidebar .wb-sidebar,
    .wb-nav-sidebar-collapse .wb-sidebar {
        position: fixed;
        top: 0; left: 0;
        width: 260px; height: 100%;
        transform: translateX(-100%);
        transition: transform .25s ease;
        overflow-y: auto;
    }
    .wb-nav-sidebar .wb-sidebar.wb-sidebar-open,
    .wb-nav-sidebar-collapse .wb-sidebar.wb-sidebar-open { transform: translateX(0); }
}

/* Desktop: sticky sidebar column */
@media (min-width: 768px) {
    .wb-nav-sidebar .wb-sidebar,
    .wb-nav-sidebar-collapse .wb-sidebar {
        width: 240px;
        position: sticky;
        top: 0; height: 100vh;
        overflow-y: auto;
        box-shadow: 2px 0 8px rgba(0,0,0,.14);
        transition: width .22s ease, min-width .22s ease, overflow .22s;
    }
    /* Permanent sidebar: close button not needed */
    .wb-nav-sidebar .wb-sidebar-close { display: none; }
    /* Collapsible: collapse to zero width */
    .wb-nav-sidebar-collapse .wb-sidebar.wb-sidebar-collapsed {
        width: 0; overflow: hidden;
    }
}

/* Sidebar head: brand + close button */
.wb-sidebar-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.15);
    flex-shrink: 0;
}
.wb-sidebar-head .wb-brand { font-size: 15px; padding: 0; max-width: calc(100% - 40px); min-width: 0; }
.wb-sidebar-close {
    background: none; border: 0; color: #fff; font-size: 24px;
    cursor: pointer; padding: 2px 6px; line-height: 1; opacity: .7; flex-shrink: 0;
}
.wb-sidebar-close:hover { opacity: 1; }

/* Sidebar navigation: always accordion */
.wb-sidebar-nav { flex: 1; padding: 6px 0; overflow-y: auto; }
.wb-sidebar-nav > ul { list-style: none; margin: 0; padding: 0; }
.wb-sidebar-nav li { position: relative; }
.wb-sidebar-nav a,
.wb-sidebar-nav .wb-dropdown-toggle {
    display: block; color: #fff; text-decoration: none;
    padding: 11px 16px; font-weight: 600; font-size: inherit; font-family: inherit;
    background: none; border: none; width: 100%; text-align: left; cursor: pointer;
}
.wb-sidebar-nav a:hover,
.wb-sidebar-nav li.active > a,
.wb-sidebar-nav .wb-dropdown-toggle:hover { background: rgba(255,255,255,.15); }
.wb-sidebar-nav li.active > a { border-left: 3px solid var(--wb-accent); padding-left: 13px; }
.wb-sidebar-nav .wb-caret { display: inline-block; float: right; transition: transform .18s; }
.wb-sidebar-nav .wb-has-dropdown.wb-open > .wb-dropdown-toggle .wb-caret { transform: rotate(180deg); }
.wb-sidebar-nav .wb-dropdown { display: none; list-style: none; margin: 0; padding: 0; background: rgba(0,0,0,.14); }
.wb-sidebar-nav .wb-has-dropdown.wb-open > .wb-dropdown { display: block; }
.wb-sidebar-nav .wb-dropdown li a { padding: 9px 16px 9px 28px; font-weight: 400; }

/* Backdrop overlay (mobile drawer + collapsible desktop) */
.wb-sb-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.45); z-index: 150;
}
.wb-sb-backdrop.wb-sb-backdrop-show { display: block; }

/* Page body (content + footer next to sidebar) */
.wb-page-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wb-page-body .wb-main { flex: 1; }

/* Mobile topbar for sidebar layouts */
.wb-topbar {
    background: var(--wb-primary); color: #fff;
    display: flex; align-items: center; padding: 0 16px;
    min-height: 54px; gap: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
    position: sticky; top: 0; z-index: 100; flex-shrink: 0;
}
.wb-topbar .wb-brand { padding: 0; flex: 1; min-width: 0; font-size: 16px; }
.wb-topbar-toggle { background: none; border: 0; padding: 10px 4px; cursor: pointer; flex-shrink: 0; }
.wb-topbar-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; }

/* Permanent sidebar: topbar is mobile-only */
@media (min-width: 768px) {
    .wb-nav-sidebar .wb-topbar { display: none; }
    /* Collapsible: topbar stays visible on desktop (houses the toggle) */
    .wb-nav-sidebar-collapse .wb-topbar { display: flex; }
    /* Collapsible: hide brand in topbar by default (brand is in sidebar) */
    .wb-nav-sidebar-collapse .wb-topbar .wb-brand { display: none; }
    /* When sidebar is collapsed, show the brand in the topbar instead */
    .wb-nav-sidebar-collapse .wb-sidebar.wb-sidebar-collapsed
    ~ .wb-page-body .wb-topbar .wb-brand { display: flex; }
}

/* ---- Main ----------------------------------------------------------------- */

.wb-main { padding: 24px 0 48px; flex: 1 0 auto; }
.wb-main > .wb-shell > :first-child { margin-top: 0; }
/* Clearfix — prevents floated images at the bottom of a page from bleeding into the footer */
.wb-main > .wb-shell::after { content: ''; display: block; clear: both; }

/* ---- In-page sibling tab bar (dropdown "tab bar" option) ------------------ */
/* Rendered at the top of each page that belongs to a dropdown with the tab-bar
   option enabled; links to the dropdown's sibling pages. */
.wb-page-tabs {
    margin: 0 0 24px;
    border-bottom: 2px solid var(--wb-border);
}
.wb-page-tabs ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.wb-page-tabs li { margin: 0; }
.wb-page-tabs li a {
    display: block;
    padding: 9px 16px;
    color: var(--wb-text);
    text-decoration: none;
    font-family: var(--wb-font-heading);
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    border: 1px solid transparent;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    margin-bottom: -2px;
}
.wb-page-tabs li a:hover {
    color: var(--wb-primary);
    background: rgba(0, 0, 0, .03);
}
.wb-page-tabs li.active a {
    color: var(--wb-primary);
    background: var(--wb-surface);
    border-color: var(--wb-border);
    border-bottom: 2px solid var(--wb-surface);
}
@media (max-width: 600px) {
    .wb-page-tabs ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .wb-page-tabs li a { white-space: nowrap; }
}

/* ---- Hero ----------------------------------------------------------------- */

.wb-hero {
    background: linear-gradient(135deg, var(--wb-primary), var(--wb-secondary));
    color: #fff;
    border-radius: 12px;
    margin: 0 0 28px;
    overflow: hidden;
}
.wb-hero-img {
    background-size: cover;
    background-position: center;
    position: relative;
}
.wb-hero-img .wb-hero-inner { background: rgba(15, 25, 45, .55); }
.wb-hero-inner { padding: 48px 24px; text-align: center; }
.wb-hero h1 { color: #fff; margin: 0 0 10px; }
.wb-hero-sub { font-size: 18px; margin: 0 0 22px; opacity: .92; }
@media (min-width: 768px) { .wb-hero-inner { padding: 80px 40px; } }

/* ---- Buttons ----------------------------------------------------------------- */

.wb-btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 8px;
    font-family: var(--wb-font-heading);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    min-height: 44px;
    line-height: 20px;
}
.wb-btn-accent { background: var(--wb-accent); color: #fff; }
.wb-btn-accent:hover { filter: brightness(1.1); }
.wb-btn-secondary { background: transparent; color: var(--wb-primary); box-shadow: inset 0 0 0 2px var(--wb-primary); }
.wb-button-row { margin: 18px 0; }

/* ---- Text & headings ----------------------------------------------------------- */

.wb-text { margin: 14px 0; }
.wb-text blockquote {
    border-left: 4px solid var(--wb-accent);
    margin: 16px 0;
    padding: 6px 18px;
    background: var(--wb-surface);
    border-radius: 0 8px 8px 0;
}

/* ---- Images & galleries ----------------------------------------------------------- */

.wb-image { margin: 20px 0; }
.wb-image img { border-radius: 10px; display: block; }
.wb-image-full img { width: 100%; }
.wb-image figcaption, .wb-gallery figcaption, .wb-video-caption {
    font-size: 13px;
    color: var(--wb-muted);
    margin-top: 6px;
    text-align: center;
}
@media (min-width: 600px) {
    .wb-image-left  { float: left;  max-width: 46%; margin: 6px 22px 12px 0; }
    .wb-image-right { float: right; max-width: 46%; margin: 6px 0 12px 22px; }
}

/* Club logo block */
.wb-logo { display: flex; margin: 20px 0; }
.wb-logo-left   { justify-content: flex-start; }
.wb-logo-center { justify-content: center; }
.wb-logo-right  { justify-content: flex-end; }
.wb-logo img { width: auto; max-width: 100%; }
.wb-logo .wb-logo-small  { max-height: 60px; }
.wb-logo .wb-logo-medium { max-height: 120px; }
.wb-logo .wb-logo-large  { max-height: 200px; }

.wb-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
}
.wb-gallery-item { margin: 0; }
.wb-gallery-item img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; }
@media (min-width: 768px) {
    .wb-gallery { grid-template-columns: repeat(3, 1fr); }
    .wb-gallery-item img { height: 200px; }
}

/* Lightbox trigger button — reset all button chrome, just show the image */
.wb-lightbox-trigger {
    display: block; width: 100%; padding: 0; margin: 0;
    background: none; border: none; cursor: zoom-in;
    border-radius: 10px; overflow: hidden;
}
.wb-lightbox-trigger img { display: block; transition: opacity .15s; }
.wb-lightbox-trigger:hover img { opacity: .88; }

/* Lightbox overlay */
#wb-lightbox {
    display: none; position: fixed; inset: 0; z-index: 9000;
    background: rgba(0,0,0,.88);
    align-items: center; justify-content: center; flex-direction: column;
    padding: 20px;
}
#wb-lightbox.wb-lb-open { display: flex; }
.wb-lb-close {
    position: absolute; top: 14px; right: 18px;
    background: none; border: none; color: #fff; font-size: 36px;
    line-height: 1; cursor: pointer; opacity: .8; padding: 0;
}
.wb-lb-close:hover { opacity: 1; }
.wb-lb-img-wrap { max-width: 92vw; max-height: 82vh; display: flex; align-items: center; justify-content: center; }
#wb-lb-img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 6px; box-shadow: 0 8px 40px rgba(0,0,0,.6); }
#wb-lb-caption { color: #e0e0e0; margin-top: 12px; font-size: 15px; text-align: center; max-width: 700px; }

/* ---- Video ----------------------------------------------------------------- */

.wb-video { margin: 22px 0; }
.wb-video-frame { position: relative; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; }
.wb-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Documents ----------------------------------------------------------------- */

.wb-document { margin: 14px 0; }
.wb-document a {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--wb-surface);
    border: 1px solid var(--wb-border);
    border-radius: 10px;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--wb-text);
}
.wb-document a:hover { border-color: var(--wb-primary); }
.wb-doc-icon { font-size: 26px; }
.wb-doc-text { flex: 1; min-width: 0; }
.wb-doc-text small { display: block; color: var(--wb-muted); }
.wb-doc-dl { color: var(--wb-accent); font-weight: 700; font-size: 14px; }

/* ---- Divider / spacer ----------------------------------------------------------- */

.wb-divider { border: 0; border-top: 1px solid var(--wb-border); margin: 28px 0; }
.wb-spacer-small  { height: 16px; }
.wb-spacer-medium { height: 36px; }
.wb-spacer-large  { height: 64px; }

/* ---- Fixtures table ----------------------------------------------------------- */

.wb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 14px 0; }
.wb-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--wb-surface);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
.wb-table th {
    background: var(--wb-primary);
    color: #fff;
    text-align: left;
    padding: 11px 14px;
    font-family: var(--wb-font-heading);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.wb-table td { padding: 11px 14px; border-top: 1px solid var(--wb-border); vertical-align: top; }
@media (max-width: 599px) { .wb-hide-sm { display: none; } }

/* ---- Results ----------------------------------------------------------------- */

.wb-result-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--wb-surface);
    border: 1px solid var(--wb-border);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 10px 0;
}
.wb-result-score {
    font-family: var(--wb-font-heading);
    font-size: 22px;
    font-weight: 800;
    min-width: 76px;
    text-align: center;
}
.wb-result-detail { flex: 1; min-width: 0; }
.wb-result-detail small { display: block; }
.wb-result-badge {
    width: 34px; height: 34px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex-shrink: 0;
}
.wb-win  { color: #1a7a4a; } .wb-result-badge.wb-win  { background: #1a7a4a; color: #fff; }
.wb-loss { color: #b03030; } .wb-result-badge.wb-loss { background: #b03030; color: #fff; }
.wb-draw { color: #946d00; } .wb-result-badge.wb-draw { background: #946d00; color: #fff; }
.wb-report summary { cursor: pointer; color: var(--wb-primary); font-weight: 600; margin-top: 6px; }

/* ---- Contact ----------------------------------------------------------------- */

.wb-contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 16px 0; }
@media (min-width: 768px) { .wb-contact-grid { grid-template-columns: 1fr 1.4fr; } }

.wb-contact-form {
    background: var(--wb-surface);
    border: 1px solid var(--wb-border);
    border-radius: 12px;
    padding: 20px;
}
.wb-contact-form label { display: block; font-weight: 600; margin-bottom: 14px; font-size: 14px; }
.wb-contact-form input,
.wb-contact-form textarea {
    width: 100%;
    margin-top: 5px;
    padding: 11px 12px;
    font: inherit;
    border: 1px solid var(--wb-border);
    border-radius: 8px;
    background: var(--wb-bg);
}
.wb-contact-form input:focus,
.wb-contact-form textarea:focus { outline: 2px solid var(--wb-primary); border-color: var(--wb-primary); }
.wb-hp { position: absolute; left: -9999px; top: -9999px; }
.wb-captcha-box {
    border: 1px solid var(--wb-border);
    border-radius: 8px;
    padding: 14px 16px;
    background: #f8f9fa;
    margin-bottom: 14px;
}
.wb-captcha-label { display: block; font-weight: 600; font-size: 12px; text-transform: uppercase;
    letter-spacing: .06em; color: #666; margin-bottom: 8px; }
.wb-captcha-img { display: block; border-radius: 6px; margin-bottom: 10px; line-height: 0; user-select: none; }
.wb-captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wb-captcha-answer-label { font-weight: 600; font-size: 14px; white-space: nowrap; }
.wb-captcha-input { width: 72px !important; text-align: center; }
.wb-captcha-refresh { background: none; border: none; color: var(--wb-primary); cursor: pointer;
    font-size: 13px; padding: 0; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.wb-captcha-refresh:hover { text-decoration: underline; }
.wb-captcha-refresh:disabled { opacity: .5; cursor: default; }
.wb-alert-ok {
    background: #e6f6ec;
    border: 1px solid #1a7a4a;
    color: #14613b;
    border-radius: 8px;
    padding: 14px 16px;
    font-weight: 600;
}
.wb-alert-error {
    background: #fdecea;
    border: 1px solid #b3261e;
    color: #8c1d17;
    border-radius: 8px;
    padding: 14px 16px;
    font-weight: 600;
    margin-bottom: 14px;
}

/* ---- Questionnaire ----------------------------------------------------------------- */

.wb-questionnaire { margin: 22px 0; }
.wb-questionnaire-embed {
    border: 1px solid var(--wb-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--wb-surface);
}
.wb-questionnaire-embed iframe { display: block; }

/* ---- Sponsors ----------------------------------------------------------------- */

.wb-sponsor-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin: 16px 0;
}
@media (min-width: 768px) { .wb-sponsor-grid { grid-template-columns: repeat(4, 1fr); } }
.wb-sponsor {
    background: var(--wb-surface);
    border: 1px solid var(--wb-border);
    border-radius: 10px;
    padding: 18px 12px;
    text-align: center;
    text-decoration: none;
    color: var(--wb-text);
    font-weight: 600;
}
.wb-sponsor img { max-height: 64px; width: auto; margin-bottom: 8px; }
.wb-sponsor span { display: block; font-size: 14px; }

/* ---- Footer ----------------------------------------------------------------- */

.wb-site-footer {
    background: var(--wb-secondary);
    color: rgba(255,255,255,.88);
    padding: 32px 0 22px;
    margin-top: 30px;
    flex-shrink: 0;
}
.wb-footer-cols { display: flex; flex-wrap: wrap; gap: 22px; justify-content: space-between; }
.wb-footer-social { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.wb-footer-social a { color: #fff; text-decoration: none; font-weight: 600; }
.wb-footer-social a:hover { text-decoration: underline; }
.wb-footer-credit {
    margin: 22px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.18);
    font-size: 13px;
    opacity: .75;
}

/* ---- Powered by Athesion badge ----------------------------------------------- */
.wb-powered-by { margin: 18px 0; }
.wb-powered-center { text-align: center; }
.wb-powered-right  { text-align: right; }
.wb-powered-link { display: inline-block; }
.wb-powered-badge { display: block; max-width: 100%; height: auto; }

/* ---- Club News (blog) --------------------------------------------------------- */

.wb-blog { margin: 20px 0; }
.wb-blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 600px)  { .wb-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .wb-blog-grid { grid-template-columns: repeat(3, 1fr); } }
.wb-blog-card {
    background: var(--wb-surface);
    border: 1px solid var(--wb-border);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.wb-blog-img { display: block; }
.wb-blog-img img { width: 100%; height: 170px; object-fit: cover; display: block; }
.wb-blog-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }
.wb-blog-body h3 { margin: 4px 0 8px; font-size: 18px; }
.wb-blog-body h3 a { color: inherit; text-decoration: none; }
.wb-blog-body h3 a:hover { color: var(--wb-primary); }
.wb-blog-body p { margin: 0 0 10px; font-size: 14px; color: var(--wb-muted); flex: 1; }
.wb-blog-more {
    font-weight: 600;
    font-size: 14px;
    color: var(--wb-accent);
    text-decoration: none;
}
.wb-blog-more:hover { text-decoration: underline; }

/* Single post view (/{club}/blog/{slug}) */
.wb-blog-post { max-width: 760px; margin: 0 auto; }
.wb-blog-post-img {
    width: 100%;
    border-radius: 10px;
    margin: 10px 0 18px;
    display: block;
}
.wb-blog-post-body img { max-width: 100%; height: auto; }
.wb-blog-post-body table { max-width: 100%; border-collapse: collapse; }
.wb-blog-post-body table td, .wb-blog-post-body table th {
    border: 1px solid var(--wb-border);
    padding: 6px 10px;
}

/* ---- Newsletters --------------------------------------------------------------- */

.wb-newsletter { margin: 20px 0; }
.wb-newsletter-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 600px)  { .wb-newsletter-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .wb-newsletter-list { grid-template-columns: repeat(3, 1fr); } }
.wb-newsletter-card {
    background: var(--wb-surface);
    border: 1px solid var(--wb-border);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}
.wb-newsletter-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }
.wb-newsletter-body h3 { margin: 4px 0 8px; font-size: 18px; }
.wb-newsletter-body h3 a { color: inherit; text-decoration: none; }
.wb-newsletter-body h3 a:hover { color: var(--wb-primary); }
.wb-newsletter-body p { margin: 0 0 10px; font-size: 14px; color: var(--wb-muted); flex: 1; }

/* Single issue view (/{club}/newsletter/{id}) */
.wb-newsletter-post { max-width: 760px; margin: 0 auto; }
.wb-newsletter-post-body img { max-width: 100%; height: auto; }
.wb-newsletter-post-body table { max-width: 100%; border-collapse: collapse; }
.wb-newsletter-post-body table td, .wb-newsletter-post-body table th {
    border: 1px solid var(--wb-border);
    padding: 6px 10px;
}

/* ---- Two Columns block ------------------------------------------------------- */
.wb-columns {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    margin: 1rem 0;
}
@media (min-width: 640px) {
    .wb-columns[data-split="50"] { grid-template-columns: 1fr 1fr; }
    .wb-columns[data-split="33"] { grid-template-columns: 1fr 2fr; }
    .wb-columns[data-split="67"] { grid-template-columns: 2fr 1fr; }
}
.wb-col { min-width: 0; }

/* ---- Map block --------------------------------------------------------------- */
/* isolation:isolate contains Leaflet's internal panes/controls (z-index up to 1000)
   so they can't stack above the sticky site header when the page scrolls. */
.wb-map-wrap { margin: 1rem 0; isolation: isolate; }
.wb-map { width: 100%; border-radius: 8px; overflow: hidden; position: relative; z-index: 0; }
.wb-map-label { margin-bottom: 6px; }

/* ---- Inline images in text blocks ------------------------------------------- */
.wb-text .wb-inline-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
    border-radius: 6px;
}

/* ---- Inline image alignment inside text blocks ------------------------------ */
.wb-text .wb-img-left  { float: left;  display: block; margin: 0.2em 1.4em 0.8em 0; }
.wb-text .wb-img-right { float: right; display: block; margin: 0.2em 0 0.8em 1.4em; }
.wb-text .wb-img-center { float: none; display: block; margin-left: auto; margin-right: auto; }
/* inline: images sit side by side within the paragraph flow */
.wb-text .wb-img-inline { display: inline-block; vertical-align: top; margin: 0.2em 0.5em 0.8em 0; }
.wb-text::after { content: ''; display: table; clear: both; }


/* ---- Table block ------------------------------------------------------------ */
.wb-table-wrap { overflow-x: auto; margin: 1rem 0; }
.wb-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.wb-table th {
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
}
.wb-table td {
    padding: 9px 14px;
    vertical-align: top;
    border-top: 1px solid var(--wb-border);
}
.wb-table-stripe tr:nth-child(even) td { background: rgba(0,0,0,0.03); }
.wb-table-border th,
.wb-table-border td { border: 1px solid var(--wb-border); }


/* ---- Empty page placeholder --------------------------------------------------- */
.wb-empty-page {
    text-align: center;
    padding: 64px 20px;
    max-width: 420px;
    margin: 0 auto;
}
.wb-empty-icon { display: block; margin: 0 auto 20px; }
.wb-empty-page h1 { margin-bottom: 10px; }
.wb-empty-page p { color: var(--wb-muted); }