/* JSG Manager — frontend styles.
 *
 * Brand: JSG Eching-Neufahrn (Handball)
 *   Royal Blue  #0047AB
 *   Yellow      #FFC107
 *   Red         #E30613
 *
 * Design language: dark navy base + atmospheric handball background
 * (CSS-only: radial ball glow bottom-right, motion streaks, subtle pixel
 * grid right edge). Glassmorphism cards in deep navy/blue tint. Yellow as
 * primary action accent. Mobile-first.
 */

/* =================================================================
 * Tokens
 * ================================================================= */

.jsg-team-page {
    /* ---------- Surfaces (deeper, more cinematic) ---------- */
    --jsg-bg-base:        #030814;   /* unified Sports-Tech base */
    --jsg-bg-grad-a:      #050e22;
    --jsg-bg-grad-b:      #061634;
    --jsg-bg-elev:        rgba(6, 22, 48, 0.92);

    --jsg-surface:        rgba(10, 28, 58, 0.55);
    --jsg-surface-hover:  rgba(16, 44, 88, 0.75);
    --jsg-surface-soft:   rgba(255, 255, 255, 0.035);
    --jsg-surface-glass:  rgba(8, 14, 32, 0.72);  /* primary glassmorph fill */
    --jsg-card:           rgba(8, 14, 32, 0.72);  /* alias for legacy/external use */

    --jsg-border:         rgba(0, 130, 255, 0.10);
    --jsg-border-strong:  rgba(0, 130, 255, 0.32);
    --jsg-border-accent:  rgba(255, 193, 7, 0.42);

    /* ---------- Type ---------- */
    --jsg-text:           rgba(232, 240, 255, 0.92);
    --jsg-text-strong:    #ffffff;
    --jsg-text-muted:     rgba(220, 232, 250, 0.58);
    --jsg-text-dim:       rgba(220, 232, 250, 0.38);

    /* ---------- Brand (deep-set + neon variants) ---------- */
    --jsg-blue:           #0047AB;       /* official royal blue */
    --jsg-blue-neon:      #0077FF;       /* neon variant for glows / accents */
    --jsg-blue-soft:      rgba(0, 119, 255, 0.20);
    --jsg-blue-glow:      rgba(0, 119, 255, 0.55);

    --jsg-yellow:         #FFD000;
    --jsg-yellow-strong:  #FFE04D;
    --jsg-yellow-soft:    rgba(255, 208, 0, 0.22);
    --jsg-yellow-glow:    rgba(255, 208, 0, 0.65);

    --jsg-red:            #E30613;
    --jsg-red-soft:       rgba(227, 6, 19, 0.20);
    --jsg-red-glow:       rgba(227, 6, 19, 0.55);

    --jsg-accent:         var(--jsg-yellow);
    --jsg-accent-strong:  var(--jsg-yellow-strong);
    --jsg-accent-on-yellow: #00050f;

    --jsg-link:           #6FA8FF;
    --jsg-link-strong:    #A8C8FF;
    --jsg-whatsapp:       #25d366;

    /* ---------- Glow tokens (Sports-Tech aesthetic) ----------
     * Reusable box-shadow stacks for cards, buttons, headers. Use:
     *   box-shadow: var(--jsg-glow-yellow);     // single brand glow
     *   box-shadow: var(--jsg-glow-stack);      // depth + glow combo
     */
    --jsg-glow-blue:      0 0 18px var(--jsg-blue-glow), 0 0 0 1px rgba(0, 119, 255, 0.32);
    --jsg-glow-yellow:    0 0 18px var(--jsg-yellow-glow), 0 0 0 1px rgba(255, 208, 0, 0.42);
    --jsg-glow-red:       0 0 18px var(--jsg-red-glow), 0 0 0 1px rgba(227, 6, 19, 0.32);
    --jsg-glow-stack:     0 8px 32px rgba(0, 0, 0, 0.45), 0 0 24px var(--jsg-blue-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);

    /* ---------- Geometry ---------- */
    --jsg-radius:         22px;
    --jsg-radius-sm:      12px;
    --jsg-radius-pill:    999px;

    --jsg-blur:           18px;

    /* ---------- Shadow stacks ---------- */
    --jsg-shadow:         0 16px 40px rgba(0, 0, 0, 0.50), 0 0 0 1px var(--jsg-border);
    --jsg-shadow-strong:  0 24px 56px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--jsg-border-strong);
    --jsg-shadow-glow:    0 24px 56px rgba(0, 0, 0, 0.60), 0 0 36px var(--jsg-yellow-glow), 0 0 0 1px var(--jsg-border-accent);

    --jsg-font-display:   "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
}

/* =================================================================
 * Page wrapper + atmospheric handball background
 *
 * Layered background (bottom → top in source order):
 *   1. Base diagonal navy gradient
 *   2. Pixel-grid hint on far right edge
 *   3. Motion streak (yellow) diagonal
 *   4. Motion streak (red) diagonal
 *   5. Blue ambient top-left
 *   6. Red glow bottom-right (ball atmosphere)
 *   7. Yellow core glow bottom-right (ball center)
 * background-attachment: fixed → stays anchored to the viewport while
 * scrolling, giving the "always-there atmosphere" feel.
 * ================================================================= */

.jsg-team-page {
    position: relative;
    background-color: var(--jsg-bg-base);
    background-image:
        radial-gradient(circle at 96% 94%, var(--jsg-yellow-soft) 0%, transparent 22%),
        radial-gradient(circle at 88% 96%, var(--jsg-red-soft) 0%, transparent 32%),
        radial-gradient(circle at 6% -4%, var(--jsg-blue-soft) 0%, transparent 50%),
        linear-gradient(108deg, transparent 52%, rgba(227, 6, 19, 0.035) 65%, transparent 76%),
        linear-gradient(115deg, transparent 36%, rgba(255, 193, 7, 0.05) 50%, transparent 64%),
        linear-gradient(90deg, transparent 78%, rgba(255, 255, 255, 0.025) 96%, transparent 100%),
        linear-gradient(135deg, var(--jsg-bg-grad-a) 0%, var(--jsg-bg-base) 55%, var(--jsg-bg-grad-b) 100%);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    color: var(--jsg-text);
    margin: 0;
    min-height: 60vh;
    font-family: var(--jsg-font-display);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: opacity 0.2s ease;
    /* Respect iPhone safe areas */
    padding-bottom: env(safe-area-inset-bottom);
}

.jsg-team-page.is-loading {
    opacity: 0.55;
}

.jsg-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 18px;
    box-sizing: border-box;
}

/* =================================================================
 * Page header
 * ================================================================= */

.jsg-page-header {
    padding: 40px 0 28px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Local dampening layer — knocks back the body's top-left blue ambient
   so the header reads as a deep, cinematic surface (not a bright wash). */
.jsg-page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(3, 8, 20, 0.75) 0%,
        rgba(3, 8, 20, 0.55) 60%,
        rgba(3, 8, 20, 0.35) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Bottom accent line — diagonal blue→yellow→red glow, mirroring the
   bottom edge of .jsg-team-hero with the JSG brand-stripe color sweep. */
.jsg-page-header::after {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--jsg-blue-neon) 18%,
        var(--jsg-blue-neon) 38%,
        var(--jsg-yellow) 50%,
        var(--jsg-red) 62%,
        var(--jsg-red) 82%,
        transparent 100%);
    transform: skewY(-2deg);
    transform-origin: center;
    opacity: 0.85;
    box-shadow:
        0 0 10px var(--jsg-blue-neon),
        0 0 18px var(--jsg-yellow-glow),
        0 0 24px var(--jsg-red-glow);
    pointer-events: none;
    z-index: 3;
}

.jsg-page-header > .jsg-container {
    position: relative;
    z-index: 1;
}

.jsg-page-header__kicker {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--jsg-yellow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-shadow: 0 0 14px var(--jsg-yellow-glow);
}

.jsg-page-header__kicker::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    background: var(--jsg-yellow);
    border-radius: 50%;
    box-shadow: 0 0 14px var(--jsg-yellow), 0 0 28px var(--jsg-yellow-glow);
    animation: jsg-kicker-pulse 2.4s ease-in-out infinite;
}

@keyframes jsg-kicker-pulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%      { opacity: 0.6; transform: scale(0.85); }
}

.jsg-page-header__title {
    margin: 0;
    font-size: clamp(36px, 9.5vw, 64px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.028em;
    color: var(--jsg-text-strong);
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    text-shadow:
        0 2px 24px rgba(0, 0, 0, 0.55),
        0 0 32px rgba(0, 120, 255, 0.12);
}

.jsg-page-header__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    background: linear-gradient(135deg, var(--jsg-yellow-strong) 0%, var(--jsg-yellow) 50%, #FFB300 100%);
    color: var(--jsg-accent-on-yellow);
    border-radius: var(--jsg-radius-pill);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow:
        0 8px 22px var(--jsg-yellow-glow),
        0 0 0 1px rgba(255, 213, 79, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* Inline filter trigger next to the page-header title — replaces the
   count badge on archive pages whose drawer should open from the title
   row instead of from a separate filter-bar top row. */
.jsg-page-header__filter-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    background: linear-gradient(135deg, var(--jsg-yellow-strong) 0%, var(--jsg-yellow) 50%, #FFB300 100%);
    color: var(--jsg-accent-on-yellow);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    box-shadow:
        0 8px 22px var(--jsg-yellow-glow),
        0 0 0 1px rgba(255, 213, 79, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    align-self: center;
}
.jsg-page-header__filter-btn:hover,
.jsg-page-header__filter-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow:
        0 12px 28px var(--jsg-yellow-glow),
        0 0 0 1px rgba(255, 213, 79, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    outline: none;
}
.jsg-page-header__filter-btn .dashicons {
    font-size: 22px;
    width: 22px;
    height: 22px;
    line-height: 22px;
}
.jsg-page-header__filter-btn[aria-expanded="true"] {
    box-shadow:
        0 0 0 2px var(--jsg-accent-on-yellow),
        0 8px 22px var(--jsg-yellow-glow);
}
/* Active-filter count badge — top-right notch on the icon button. */
.jsg-page-header__filter-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--jsg-red);
    color: #fff;
    border-radius: var(--jsg-radius-pill);
    font-size: 11px;
    font-weight: 900;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 2px 8px var(--jsg-red-glow), 0 0 0 2px var(--jsg-bg-base);
}
.jsg-page-header__filter-count[hidden] { display: none; }

.jsg-page-header__lead {
    margin: 16px 0 0;
    max-width: 640px;
    color: var(--jsg-text-muted);
    font-size: 15px;
    line-height: 1.65;
}

/* =================================================================
 * Filter bar
 *
 * Mobile: compact sticky top bar (search + filter trigger button).
 *         Filter groups live in a slide-up bottom-sheet drawer.
 * Desktop (≥ 768px): the drawer wrappers collapse via display:contents,
 *         so search + filter groups flow inline in one row.
 * ================================================================= */

.jsg-filter-bar {
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(180deg, rgba(0, 18, 38, 0.9) 70%, rgba(0, 18, 38, 0.5) 100%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--jsg-border);
}

/* When an external trigger (e.g. page-header filter icon) handles drawer
   opening and there's no search input, the form has no visible top row —
   collapse its visual presence so it doesn't add an empty sticky strip. */
.jsg-filter-bar--no-top {
    padding: 0;
    position: static;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 0;
}

.jsg-filter-bar__top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jsg-filter-bar__search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.jsg-filter-bar__search .dashicons {
    position: absolute;
    left: 14px;
    color: var(--jsg-text-muted);
    pointer-events: none;
}

.jsg-filter-bar__search input[type="search"] {
    width: 100%;
    padding: 13px 16px 13px 42px;
    background: rgba(0, 25, 60, 0.55);
    -webkit-backdrop-filter: blur(var(--jsg-blur));
    backdrop-filter: blur(var(--jsg-blur));
    border: 1px solid var(--jsg-border);
    border-radius: 16px;
    color: var(--jsg-text);
    font: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.jsg-filter-bar__search input[type="search"]:focus {
    border-color: var(--jsg-yellow);
    background: rgba(0, 30, 70, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.15);
}

.jsg-filter-bar__search input[type="search"]::placeholder {
    color: var(--jsg-text-dim);
}

/* Trigger button (mobile only) */
.jsg-filter-bar__trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    background: rgba(0, 25, 60, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 71, 171, 0.4);
    border-radius: var(--jsg-radius-pill);
    color: var(--jsg-text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    min-height: 44px;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.jsg-filter-bar__trigger:hover,
.jsg-filter-bar__trigger:focus-visible {
    border-color: var(--jsg-yellow);
    background: rgba(0, 71, 171, 0.5);
    outline: none;
}

.jsg-filter-bar__trigger .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--jsg-yellow);
}

.jsg-filter-bar__trigger-label {
    /* Hide label on very narrow screens — icon + count is enough */
    display: none;
}

@media (min-width: 380px) {
    .jsg-filter-bar__trigger-label {
        display: inline;
    }
}

.jsg-filter-bar__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    background: var(--jsg-yellow);
    color: var(--jsg-accent-on-yellow);
    border-radius: var(--jsg-radius-pill);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.jsg-filter-bar__count[hidden] {
    display: none;
}

/* Drawer: hidden by default on mobile, shown when .is-open */
.jsg-filter-bar__drawer {
    position: fixed;
    inset: 0;
    z-index: 200;
    visibility: hidden;
    transition: visibility 0s 0.3s;
}

.jsg-filter-bar.is-open .jsg-filter-bar__drawer {
    visibility: visible;
    transition: visibility 0s 0s;
}

.jsg-filter-bar__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.jsg-filter-bar.is-open .jsg-filter-bar__backdrop {
    opacity: 1;
}

.jsg-filter-bar__panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: linear-gradient(180deg, var(--jsg-bg-grad-a) 0%, var(--jsg-bg-base) 100%);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.6);
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.jsg-filter-bar.is-open .jsg-filter-bar__panel {
    transform: translateY(0);
}

.jsg-filter-bar__panel-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--jsg-border);
}

.jsg-filter-bar__panel-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
}

.jsg-filter-bar__panel-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--jsg-text-strong);
    letter-spacing: -0.01em;
}

.jsg-filter-bar__panel-close {
    background: transparent;
    border: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--jsg-text);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.15s ease;
}

.jsg-filter-bar__panel-close:hover,
.jsg-filter-bar__panel-close:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.jsg-filter-bar__groups {
    padding: 16px 20px 20px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 18px;
    -webkit-overflow-scrolling: touch;
}

.jsg-filter-bar__panel-footer {
    display: flex;
    gap: 10px;
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--jsg-border);
    background: rgba(0, 18, 38, 0.6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.jsg-filter-bar__reset {
    flex: 1 1 40%;
    padding: 12px 16px;
    background: transparent;
    border: 1px solid var(--jsg-border-strong);
    border-radius: var(--jsg-radius-pill);
    color: var(--jsg-text);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    min-height: 44px;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.jsg-filter-bar__reset:hover,
.jsg-filter-bar__reset:focus-visible {
    border-color: var(--jsg-red);
    color: var(--jsg-text-strong);
    outline: none;
}

.jsg-filter-bar__apply {
    flex: 1 1 60%;
    padding: 12px 16px;
    background: linear-gradient(135deg, var(--jsg-yellow) 0%, #FFB300 100%);
    border: 0;
    border-radius: var(--jsg-radius-pill);
    color: var(--jsg-accent-on-yellow);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    min-height: 44px;
    box-shadow: 0 4px 16px var(--jsg-yellow-glow);
}

/* Body scroll lock when drawer open (toggled by JS) */
body.jsg-filter-bar-open {
    overflow: hidden;
}

.jsg-filter-group {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jsg-filter-group__label {
    padding: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--jsg-text-dim);
}

.jsg-filter-group__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* =================================================================
 * Chips (filter pills)
 *
 * Inactive: dark blue glass with subtle border.
 * Active: yellow gradient with deep navy text + soft glow.
 * ================================================================= */

.jsg-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(0, 25, 60, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 71, 171, 0.35);
    border-radius: var(--jsg-radius-pill);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    user-select: none;
    line-height: 1.3;
    white-space: nowrap;
    min-height: 38px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.jsg-chip:hover {
    background: rgba(0, 71, 171, 0.4);
    border-color: rgba(0, 71, 171, 0.6);
    color: var(--jsg-text-strong);
}

.jsg-chip:active {
    transform: scale(0.97);
}

.jsg-chip.is-active {
    background: linear-gradient(135deg, var(--jsg-yellow) 0%, #FFB300 100%);
    border-color: var(--jsg-yellow);
    color: var(--jsg-accent-on-yellow);
    box-shadow:
        0 4px 16px var(--jsg-yellow-glow),
        0 0 0 1px var(--jsg-yellow-soft),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.jsg-chip input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.jsg-chip-static {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid var(--jsg-border-strong);
    border-radius: var(--jsg-radius-pill);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--jsg-text-strong);
}

/* =================================================================
 * Searchable select (used inside each filter group)
 * ================================================================= */

.jsg-select {
    position: relative;
    width: 100%;
}

.jsg-select__radio-input {
    /* Hidden but submittable */
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.jsg-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 11px 14px;
    background: rgba(0, 25, 60, 0.55);
    -webkit-backdrop-filter: blur(var(--jsg-blur));
    backdrop-filter: blur(var(--jsg-blur));
    border: 1px solid var(--jsg-border);
    border-radius: 14px;
    color: var(--jsg-text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    min-height: 44px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.jsg-select__trigger:hover,
.jsg-select__trigger:focus-visible {
    border-color: var(--jsg-yellow);
    background: rgba(0, 71, 171, 0.45);
    outline: none;
}

.jsg-select.is-filtered .jsg-select__trigger {
    border-color: var(--jsg-yellow);
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.18), rgba(0, 71, 171, 0.45));
    color: var(--jsg-text-strong);
}

.jsg-select__current {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jsg-select__caret {
    flex-shrink: 0;
    color: var(--jsg-text-muted);
    transition: transform 0.18s ease, color 0.15s ease;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.jsg-select__trigger[aria-expanded="true"] .jsg-select__caret {
    transform: rotate(180deg);
    color: var(--jsg-yellow);
}

.jsg-select__menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    background: var(--jsg-bg-grad-a);
    border: 1px solid var(--jsg-border-strong);
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 320px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s 0.15s;
}

.jsg-select__menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s 0s;
}

.jsg-select__search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid var(--jsg-border);
}

.jsg-select__search-wrap .dashicons {
    position: absolute;
    left: 18px;
    color: var(--jsg-text-muted);
    pointer-events: none;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.jsg-select__search {
    width: 100%;
    padding: 8px 10px 8px 36px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--jsg-border);
    border-radius: 10px;
    color: var(--jsg-text);
    font: inherit;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.jsg-select__search:focus {
    border-color: var(--jsg-yellow);
}

.jsg-select__search::placeholder {
    color: var(--jsg-text-dim);
}

.jsg-select__options {
    list-style: none;
    margin: 0;
    padding: 4px 0;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.jsg-select__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 14px;
    color: var(--jsg-text);
    font-size: 14px;
    cursor: pointer;
    min-height: 40px;
    transition: background 0.12s ease, color 0.12s ease;
}

.jsg-select__option:hover,
.jsg-select__option:focus-visible {
    background: rgba(0, 71, 171, 0.4);
    color: var(--jsg-text-strong);
    outline: none;
}

.jsg-select__option.is-active {
    background: var(--jsg-yellow-soft);
    color: var(--jsg-text-strong);
    font-weight: 700;
}

.jsg-select__option-check {
    color: var(--jsg-yellow);
    opacity: 0;
    font-size: 18px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.jsg-select__option.is-active .jsg-select__option-check {
    opacity: 1;
}

.jsg-select__no-matches {
    margin: 0;
    padding: 12px 14px;
    color: var(--jsg-text-muted);
    font-size: 13px;
    font-style: italic;
    text-align: center;
}

.jsg-filter-bar__submit {
    align-self: flex-start;
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--jsg-yellow) 0%, #FFB300 100%);
    border: 0;
    border-radius: var(--jsg-radius-pill);
    color: var(--jsg-accent-on-yellow);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px var(--jsg-yellow-glow);
}

/* =================================================================
 * Section + title
 * ================================================================= */

.jsg-team-section {
    padding: 24px 0;
}

.jsg-team-section + .jsg-team-section {
    padding-top: 0;
}

.jsg-section-title {
    margin: 0 0 18px;
    font-size: clamp(20px, 4.5vw, 28px);
    font-weight: 900;
    letter-spacing: -0.015em;
    color: var(--jsg-text-strong);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--jsg-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.jsg-section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 22px;
    background: var(--jsg-yellow);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--jsg-yellow-glow);
}

/* =================================================================
 * Card grids
 * ================================================================= */

.jsg-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

/* =================================================================
 * Team card (archive)
 * ================================================================= */

.jsg-team-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    background: var(--jsg-surface-glass);
    -webkit-backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    border: 1px solid var(--jsg-border);
    border-radius: var(--jsg-radius);
    overflow: hidden;
    box-shadow: var(--jsg-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: var(--jsg-text);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Diagonal yellow shimmer that sweeps on hover — Sports-Tech motion accent */
.jsg-team-card::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 35%;
    background: linear-gradient(115deg,
        transparent 0%,
        rgba(255, 193, 7, 0.12) 45%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 193, 7, 0.12) 55%,
        transparent 100%);
    transform: skewX(-18deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 3;
}

@media (hover: hover) {
    .jsg-team-card:hover {
        transform: translateY(-6px);
        border-color: var(--jsg-border-accent);
        box-shadow: var(--jsg-shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    }
    .jsg-team-card:hover::after {
        left: 130%;
    }
    .jsg-team-card:hover .jsg-team-card__arrow {
        opacity: 1;
        transform: translateX(0);
    }
}

.jsg-team-card__media {
    position: relative;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--jsg-bg-elev);
}

.jsg-team-card__media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 18, 38, 0.15) 0%, rgba(0, 18, 38, 0.85) 100%);
}

.jsg-team-card__badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 1;
}

.jsg-team-card__clubs {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 4px;
    z-index: 1;
}

.jsg-team-card__club-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 2px solid rgba(0, 18, 38, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.jsg-team-card__body {
    padding: 18px 20px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jsg-team-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--jsg-text-strong);
    line-height: 1.22;
    letter-spacing: -0.012em;
}

.jsg-team-card__league {
    margin: 0 0 4px;
    font-size: 13px;
    color: var(--jsg-text-muted);
}

.jsg-team-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--jsg-border);
}

.jsg-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    font-size: 12px;
    color: var(--jsg-text-muted);
}

.jsg-stat__num {
    font-size: 20px;
    font-weight: 900;
    color: var(--jsg-text-strong);
    letter-spacing: -0.03em;
}

.jsg-stat__label {
    text-transform: lowercase;
}

.jsg-stat--meta {
    margin-left: auto;
}

.jsg-stat--meta .jsg-stat__label {
    color: var(--jsg-yellow);
    font-weight: 800;
    text-transform: none;
}

.jsg-team-card__arrow {
    position: absolute;
    bottom: 16px;
    right: 16px;
    font-size: 22px;
    color: var(--jsg-yellow);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

/* =================================================================
 * Club card (archive)
 * ================================================================= */

.jsg-club-card {
    --jsg-club-accent: var(--jsg-blue-neon);
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: var(--jsg-surface-glass);
    -webkit-backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    border: 1px solid var(--jsg-border);
    border-radius: var(--jsg-radius);
    box-shadow: var(--jsg-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: var(--jsg-text);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

/* Left accent bar — neon stripe, brighter on hover */
.jsg-club-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--jsg-club-accent) 18%,
        var(--jsg-club-accent) 82%,
        transparent 100%);
    box-shadow:
        0 0 16px var(--jsg-club-accent),
        0 0 32px var(--jsg-club-accent);
    opacity: 0.85;
    transition: opacity 0.25s ease, width 0.25s ease;
    z-index: 1;
}

/* Diagonal yellow shimmer on hover */
.jsg-club-card::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 35%;
    background: linear-gradient(115deg,
        transparent 0%,
        rgba(255, 193, 7, 0.10) 50%,
        transparent 100%);
    transform: skewX(-18deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 2;
}

@media (hover: hover) {
    .jsg-club-card:hover {
        transform: translateY(-5px);
        border-color: var(--jsg-border-accent);
        box-shadow: var(--jsg-shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    }
    .jsg-club-card:hover::before {
        opacity: 1;
        width: 5px;
    }
    .jsg-club-card:hover::after {
        left: 130%;
    }
}

.jsg-club-card__logo-wrap {
    flex-shrink: 0;
}

.jsg-club-card__logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    background: #fff;
}

.jsg-club-card__logo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--jsg-club-accent) 0%, var(--jsg-bg-base) 100%);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.jsg-club-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.jsg-club-card__title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--jsg-text-strong);
    line-height: 1.25;
}

.jsg-club-card__short {
    margin: 0;
    font-size: 11px;
    color: var(--jsg-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.jsg-club-card__stats {
    display: flex;
    gap: 16px;
    margin-top: 6px;
}

.jsg-club-card__arrow {
    color: var(--jsg-yellow);
    font-size: 22px;
    flex-shrink: 0;
}

/* =================================================================
 * Contact row (archive)
 * ================================================================= */

.jsg-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jsg-contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--jsg-surface);
    -webkit-backdrop-filter: blur(var(--jsg-blur)) saturate(160%);
    backdrop-filter: blur(var(--jsg-blur)) saturate(160%);
    border: 1px solid var(--jsg-border);
    border-radius: 18px;
    color: var(--jsg-text);
    text-decoration: none;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) {
    .jsg-contact-row:hover {
        transform: translateX(3px);
        border-color: var(--jsg-yellow);
        background: var(--jsg-surface-hover);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--jsg-yellow-soft);
    }
}

.jsg-contact-row__avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 71, 171, 0.3);
}

.jsg-contact-row__avatar.no-image {
    background: linear-gradient(135deg, var(--jsg-blue) 0%, var(--jsg-bg-base) 100%);
}

.jsg-contact-row__initials {
    font-size: 18px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
}

.jsg-contact-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.jsg-contact-row__name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--jsg-text-strong);
    line-height: 1.25;
}

.jsg-contact-row__roles {
    margin: 0;
    font-size: 12px;
    color: var(--jsg-yellow);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.jsg-contact-row__teams {
    margin: 0;
    font-size: 12px;
    color: var(--jsg-text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jsg-contact-row__teams .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: var(--jsg-text-dim);
}

.jsg-contact-row__meta {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--jsg-text-muted);
}

.jsg-contact-row__icons {
    display: none;
    gap: 6px;
    align-items: center;
}

.jsg-contact-row__icons .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.jsg-contact-row__whatsapp {
    display: inline-block;
    padding: 1px 5px;
    background: var(--jsg-whatsapp);
    color: #fff;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.jsg-contact-row__arrow {
    font-size: 20px;
    color: var(--jsg-yellow);
}

/* =================================================================
 * Training schedule
 * ================================================================= */

.jsg-schedule {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.jsg-schedule__day-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 3px solid var(--jsg-yellow);
}

.jsg-schedule__day-title {
    margin: 0;
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 900;
    letter-spacing: -0.015em;
    color: var(--jsg-text-strong);
    text-transform: uppercase;
}

.jsg-schedule__day-count {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--jsg-text-muted);
}

.jsg-schedule__rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jsg-training-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
    padding: 14px 16px;
    background: var(--jsg-surface);
    -webkit-backdrop-filter: blur(var(--jsg-blur)) saturate(160%);
    backdrop-filter: blur(var(--jsg-blur)) saturate(160%);
    border: 1px solid var(--jsg-border);
    border-radius: 18px;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (hover: hover) {
    .jsg-training-row:hover {
        border-color: var(--jsg-yellow);
        background: var(--jsg-surface-hover);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--jsg-yellow-soft);
    }
}

.jsg-training-row__time {
    flex-shrink: 0;
    min-width: 110px;
    display: flex;
    align-items: center;
    padding-right: 16px;
    border-right: 1px solid var(--jsg-border);
}

.jsg-training-row__time-value {
    font-size: 14px;
    font-weight: 800;
    color: var(--jsg-yellow);
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.jsg-training-row__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.jsg-training-row__teams {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    font-weight: 700;
    color: var(--jsg-text-strong);
}

.jsg-team-link {
    color: var(--jsg-text-strong);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.15s ease;
}

.jsg-team-link:hover {
    color: var(--jsg-yellow);
}

.jsg-club-link {
    color: var(--jsg-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.jsg-club-link:hover {
    color: var(--jsg-yellow);
}

.jsg-training-row__venue {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--jsg-text-muted);
    flex-wrap: wrap;
}

.jsg-training-row__venue .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--jsg-text-dim);
}

.jsg-training-row__venue a {
    color: var(--jsg-text);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

.jsg-training-row__venue a:hover {
    color: var(--jsg-yellow);
    border-bottom-color: var(--jsg-yellow);
}

.jsg-training-row__venue-city {
    color: var(--jsg-text-dim);
}

.jsg-training-row__maps {
    margin-left: auto;
    color: var(--jsg-yellow) !important;
    border-bottom: 0 !important;
}

.jsg-training-row__notes {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--jsg-text-muted);
    font-style: italic;
}

/* =================================================================
 * Team hero (single)
 * ================================================================= */

/* =================================================================
 * Team single-view hero — Sports-Tech edition
 *
 * Markup (parts/team-hero.php):
 *   <section.jsg-team-hero>
 *     <div.jsg-team-hero__media>         ← background-image, full bleed
 *     <div.jsg-team-hero__overlay>       ← multi-layer cinematic darken
 *     <div.jsg-team-hero__bottom>        ← dark band with title/meta/badges
 *       <div.jsg-container>
 *         <div.jsg-team-hero__inner>
 *           <div.jsg-team-hero__text>    ← title + meta + badges
 *           <a/span.jsg-team-hero__club-mark>  ← club logo right side
 * ================================================================= */

.jsg-team-hero {
    position: relative;
    isolation: isolate;
    background-color: var(--jsg-bg-base);
    color: var(--jsg-text-strong);
    overflow: hidden;
    margin: 0 0 8px;
}

/* Featured image — full-bleed banner above the text area */
.jsg-team-hero__media {
    position: relative;
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Cinematic gradient overlay on the image (top translucent → bottom solid
   so the image fades into the dark text section beneath). */
.jsg-team-hero__overlay {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 320px;
    background:
        radial-gradient(60% 70% at 20% 20%, rgba(0, 120, 255, 0.20) 0%, transparent 60%),
        linear-gradient(115deg,
            transparent 35%,
            rgba(255, 193, 7, 0.06) 50%,
            transparent 65%),
        linear-gradient(180deg,
            rgba(3, 8, 20, 0.20) 0%,
            rgba(3, 8, 20, 0.05) 35%,
            rgba(3, 8, 20, 0.85) 90%,
            var(--jsg-bg-base) 100%);
    pointer-events: none;
    z-index: 1;
}

.jsg-team-hero.no-image .jsg-team-hero__media,
.jsg-team-hero.no-image .jsg-team-hero__overlay {
    display: none;
}

/* Below-image text band — title, meta, badges, club mark */
.jsg-team-hero__bottom {
    position: relative;
    z-index: 2;
    padding: 16px 0 28px;
    background: linear-gradient(180deg,
        var(--jsg-bg-base) 0%,
        var(--jsg-bg-base) 100%);
}

.jsg-team-hero__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.jsg-team-hero__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jsg-team-hero__title {
    margin: 0;
    font-size: clamp(28px, 7.2vw, 44px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.028em;
    color: var(--jsg-text-strong);
    text-shadow:
        0 2px 24px rgba(0, 0, 0, 0.6),
        0 0 32px var(--jsg-blue-glow);
}

.jsg-team-hero__meta {
    margin: 0;
    color: var(--jsg-text-muted);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.jsg-team-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

/* Pill badges (replaces old .jsg-badge); two flavours via modifier classes */
.jsg-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(8, 14, 32, 0.65);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 119, 255, 0.55);
    border-radius: var(--jsg-radius-pill);
    color: var(--jsg-blue-neon);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    line-height: 1;
    box-shadow:
        0 0 14px rgba(0, 119, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.jsg-pill .dashicons {
    font-size: 14px; width: 14px; height: 14px; line-height: 14px;
}
.jsg-pill--league {
    color: var(--jsg-yellow);
    border-color: rgba(255, 208, 0, 0.65);
    box-shadow:
        0 0 14px var(--jsg-yellow-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-transform: none;
}

/* Club mark (right of title) — bright shield/logo against dark band */
.jsg-team-hero__club-mark {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: 14px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.45),
        0 0 18px var(--jsg-blue-glow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.jsg-team-hero__club-mark img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
}
a.jsg-team-hero__club-mark:hover {
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.55),
        0 0 28px var(--jsg-yellow-glow);
}

/* Diagonal glow separator below the hero band — Sports-Tech accent */
.jsg-team-hero::after {
    content: "";
    position: absolute;
    left: -10%;
    right: -10%;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--jsg-blue-neon) 25%,
        var(--jsg-blue-neon) 75%,
        transparent 100%);
    transform: skewY(-2deg);
    transform-origin: center;
    opacity: 0.7;
    box-shadow:
        0 0 12px var(--jsg-blue-neon),
        0 0 24px var(--jsg-blue-glow);
    pointer-events: none;
    z-index: 3;
}

/* Page-Hero — kompakter als der Team-Hero: max. ~1/3 Viewport, damit
   auf "Über Uns"-artigen Seiten der Lese-Inhalt nicht hinter dem
   Hero verschwindet. Cap mit min() um auf hohen Desktops nicht
   überdimensioniert zu wirken. */
.jsg-page-hero .jsg-team-hero__media,
.jsg-page-hero .jsg-team-hero__overlay {
    height: min(33vh, 220px);
}

/* Visuell identisch zum Team-Hero, aber der Glow-Streifen
   nutzt die tri-color Brand-Variante (blau/gelb/rot), wie sie auch
   .jsg-page-header verwendet. Klar erkennbarer Sektionstrenner. */
.jsg-page-hero::after {
    background: linear-gradient(90deg,
        transparent 0%,
        var(--jsg-blue-neon) 18%,
        var(--jsg-blue-neon) 38%,
        var(--jsg-yellow)    50%,
        var(--jsg-red)       62%,
        var(--jsg-red)       82%,
        transparent 100%);
    opacity: 0.85;
    box-shadow:
        0 0 10px var(--jsg-blue-neon),
        0 0 18px var(--jsg-yellow-glow),
        0 0 24px var(--jsg-red-glow);
}

/* Sauberer Abstand zwischen Hero und Content-Sektion. */
.jsg-page-content {
    padding-top: 32px;
}

/* No-image Fallback: nur Title-Band, kein leerer Image-Bereich.
   `.jsg-team-hero.no-image` versteckt media+overlay bereits — wir
   geben dem Bottom-Band lediglich etwas mehr Atemraum. */
.jsg-page-hero.no-image .jsg-team-hero__bottom {
    padding-top: 48px;
}

@media (min-width: 768px) {
    .jsg-team-hero__media,
    .jsg-team-hero__overlay {
        height: 420px;
    }
    .jsg-team-hero__bottom {
        padding: 22px 0 32px;
    }
    .jsg-team-hero__club-mark {
        width: 96px;
        height: 96px;
    }
    /* Page-Hero bleibt kompakt — selbst auf Desktop nicht über 1/3 vh. */
    .jsg-page-hero .jsg-team-hero__media,
    .jsg-page-hero .jsg-team-hero__overlay {
        height: min(33vh, 280px);
    }
}

/* =================================================================
 * Contact hero (single)
 * ================================================================= */

.jsg-contact-hero {
    position: relative;
    padding: 40px 0;
    overflow: hidden;
}

.jsg-contact-hero::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--jsg-yellow-soft) 0%, transparent 70%);
    pointer-events: none;
}

.jsg-contact-hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, var(--jsg-blue-soft) 0%, transparent 70%);
    pointer-events: none;
}

.jsg-contact-hero__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    text-align: center;
}

.jsg-contact-hero__avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid var(--jsg-yellow);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 30px var(--jsg-yellow-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.jsg-contact-hero__avatar.no-image {
    background: linear-gradient(135deg, var(--jsg-blue) 0%, var(--jsg-bg-base) 100%);
}

.jsg-contact-hero__initials {
    font-size: 52px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.04em;
}

.jsg-contact-hero__info {
    flex: 1;
    min-width: 0;
}

.jsg-contact-hero__name {
    margin: 6px 0;
    font-size: clamp(30px, 7vw, 48px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--jsg-text-strong);
}

.jsg-contact-hero__roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 14px 0;
}

.jsg-contact-hero__contact {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.jsg-contact-hero__contact li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.jsg-contact-hero__contact li .dashicons {
    color: var(--jsg-text-muted);
}

.jsg-contact-hero__contact a {
    color: var(--jsg-text);
    text-decoration: none;
    border-bottom: 1px dashed var(--jsg-border-strong);
}

.jsg-contact-hero__contact a:hover {
    color: var(--jsg-yellow);
    border-bottom-color: var(--jsg-yellow);
}

/* =================================================================
 * Club hero (single)
 * ================================================================= */

.jsg-club-hero {
    --jsg-club-accent: var(--jsg-blue-neon);
    position: relative;
    padding: 48px 0 40px;
    overflow: hidden;
    isolation: isolate;
}

/* Layered atmosphere: club-color ambient + diagonal motion streak */
.jsg-club-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(70% 90% at 50% -10%, var(--jsg-club-accent) 0%, transparent 65%),
        linear-gradient(125deg,
            transparent 38%,
            rgba(255, 255, 255, 0.04) 50%,
            transparent 62%);
    opacity: 0.28;
    pointer-events: none;
    z-index: 0;
}

/* Bottom neon scan-line — same horizon recipe as page-header */
.jsg-club-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--jsg-club-accent) 50%,
        transparent 100%);
    box-shadow: 0 0 14px var(--jsg-club-accent);
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
}

.jsg-club-hero__overlay {
    display: none;
}

.jsg-club-hero__content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.jsg-club-hero__logo-wrap {
    flex-shrink: 0;
}

.jsg-club-hero__logo {
    width: 130px;
    height: 130px;
    border-radius: 18px;
    object-fit: cover;
    background: #fff;
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.55),
        0 0 0 3px var(--jsg-club-accent),
        0 0 32px var(--jsg-blue-glow);
}

.jsg-club-hero__logo--placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--jsg-club-accent) 0%, var(--jsg-bg-base) 100%);
    color: #fff;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.jsg-club-hero__title {
    margin: 4px 0;
    font-size: clamp(30px, 7vw, 48px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.028em;
    color: var(--jsg-text-strong);
    text-shadow:
        0 2px 24px rgba(0, 0, 0, 0.6),
        0 0 32px var(--jsg-blue-glow);
}

.jsg-club-hero__legal {
    margin: 0;
    color: var(--jsg-text-muted);
    font-size: 14px;
}

/* =================================================================
 * Team-link card + post card
 * ================================================================= */

.jsg-team-link-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: var(--jsg-surface-glass);
    -webkit-backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    border: 1px solid var(--jsg-border);
    border-radius: var(--jsg-radius);
    text-decoration: none;
    color: var(--jsg-text);
    box-shadow: var(--jsg-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    overflow: hidden;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

/* Thin diagonal blue motion line in the corner */
.jsg-team-link-card::before {
    content: "";
    position: absolute;
    top: -10px;
    right: -10px;
    width: 50%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--jsg-blue-neon) 70%,
        transparent 100%);
    transform: rotate(-30deg);
    transform-origin: right center;
    box-shadow: 0 0 12px var(--jsg-blue-neon);
    opacity: 0.55;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 0;
}

@media (hover: hover) {
    .jsg-team-link-card:hover {
        transform: translateY(-3px);
        border-color: var(--jsg-border-accent);
        box-shadow: var(--jsg-shadow-strong), 0 0 24px var(--jsg-yellow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    }
    .jsg-team-link-card:hover::before {
        opacity: 1;
    }
}

.jsg-team-link-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--jsg-text-strong);
}

.jsg-team-link-card__meta {
    margin: 0;
    font-size: 13px;
    color: var(--jsg-text-muted);
}

.jsg-post-card {
    display: flex;
    flex-direction: column;
    background: var(--jsg-surface);
    -webkit-backdrop-filter: blur(var(--jsg-blur)) saturate(160%);
    backdrop-filter: blur(var(--jsg-blur)) saturate(160%);
    border: 1px solid var(--jsg-border);
    border-radius: var(--jsg-radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--jsg-text);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

@media (hover: hover) {
    .jsg-post-card:hover {
        transform: translateY(-3px);
        border-color: var(--jsg-yellow);
    }
}

.jsg-post-card__media {
    height: 160px;
    background-size: cover;
    background-position: center;
    background-color: var(--jsg-bg-elev);
}

.jsg-post-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jsg-post-card__title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--jsg-text-strong);
    line-height: 1.3;
}

.jsg-post-card__excerpt {
    margin: 0;
    font-size: 13px;
    color: var(--jsg-text-muted);
    line-height: 1.5;
}

/* =================================================================
 * Role list (contact single)
 * ================================================================= */

.jsg-role-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.jsg-role-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: var(--jsg-surface);
    -webkit-backdrop-filter: blur(var(--jsg-blur)) saturate(160%);
    backdrop-filter: blur(var(--jsg-blur)) saturate(160%);
    border: 1px solid var(--jsg-border);
    border-left: 4px solid var(--jsg-yellow);
    border-radius: 18px;
}

.jsg-role-row.is-inactive {
    opacity: 0.55;
    border-left-color: var(--jsg-text-dim);
}

.jsg-role-row__role {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--jsg-yellow);
}

.jsg-role-row__where {
    font-size: 16px;
    font-weight: 800;
    color: var(--jsg-text-strong);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.jsg-role-row__sep {
    color: var(--jsg-text-dim);
    font-weight: 400;
}

.jsg-role-row__season {
    font-size: 12px;
    color: var(--jsg-text-muted);
}

/* =================================================================
 * Single-view contact + training cards (on team single)
 * ================================================================= */

.jsg-contact-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    background: var(--jsg-surface-glass);
    -webkit-backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    border: 1px solid var(--jsg-border);
    border-radius: var(--jsg-radius);
    overflow: hidden;
    box-shadow: var(--jsg-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: var(--jsg-text);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Diagonal blue shimmer on hover */
.jsg-contact-card::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 35%;
    background: linear-gradient(115deg,
        transparent 0%,
        rgba(0, 120, 255, 0.10) 50%,
        transparent 100%);
    transform: skewX(-18deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 3;
}

@media (hover: hover) {
    .jsg-contact-card:hover {
        transform: translateY(-5px);
        border-color: var(--jsg-border-accent);
        box-shadow: var(--jsg-shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    }
    .jsg-contact-card:hover::after {
        left: 130%;
    }
}

.jsg-contact-card__photo {
    position: relative;
    height: 200px;
    background-size: cover;
    background-position: center top;
    background-color: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jsg-contact-card__photo.no-image {
    background: linear-gradient(135deg, var(--jsg-blue) 0%, var(--jsg-bg-base) 100%);
}

.jsg-contact-card__initials {
    font-size: 56px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
}

.jsg-contact-card__role {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    background: var(--jsg-yellow);
    color: var(--jsg-accent-on-yellow);
    border-radius: var(--jsg-radius-pill);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    box-shadow: 0 4px 12px var(--jsg-yellow-glow);
}

.jsg-contact-card__body {
    padding: 16px 18px 18px;
    flex: 1;
}

.jsg-contact-card__name {
    margin: 0 0 4px;
    font-size: clamp(16px, 2.4vw, 18px);
    font-weight: 800;
    color: var(--jsg-text-strong);
    line-height: 1.3;
}

.jsg-contact-card__club {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--jsg-text-muted);
}

.jsg-contact-card__contact {
    margin: 0;
    padding: 10px 0 0;
    list-style: none;
    border-top: 1px solid var(--jsg-border);
}

.jsg-contact-card__contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    font-size: 13px;
    min-height: 28px;
}

.jsg-contact-card__contact li .dashicons {
    color: var(--jsg-text-muted);
    flex-shrink: 0;
}

.jsg-contact-card__contact a {
    color: var(--jsg-link);
    text-decoration: none;
    word-break: break-word;
}

.jsg-contact-card__contact a:hover,
.jsg-contact-card__contact a:focus {
    color: var(--jsg-link-strong);
    text-decoration: underline;
}

.jsg-contact-card__whatsapp {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    background: var(--jsg-whatsapp);
    color: #fff;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.jsg-training-card {
    background: var(--jsg-surface);
    -webkit-backdrop-filter: blur(var(--jsg-blur)) saturate(160%);
    backdrop-filter: blur(var(--jsg-blur)) saturate(160%);
    border: 1px solid var(--jsg-border);
    border-radius: var(--jsg-radius);
    padding: 18px;
    box-shadow: var(--jsg-shadow);
    color: var(--jsg-text);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (hover: hover) {
    .jsg-training-card:hover {
        transform: translateY(-3px);
        border-color: var(--jsg-yellow);
        box-shadow: var(--jsg-shadow-glow);
    }
}

.jsg-training-card__when {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--jsg-border);
}

.jsg-training-card__weekday {
    font-size: clamp(18px, 3.5vw, 22px);
    font-weight: 900;
    letter-spacing: -0.015em;
    color: var(--jsg-text-strong);
    text-transform: uppercase;
}

.jsg-training-card__time {
    font-size: 14px;
    font-weight: 800;
    color: var(--jsg-yellow);
    white-space: nowrap;
}

.jsg-training-card__venue {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    color: var(--jsg-text-strong);
}

.jsg-training-card__venue a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
}

.jsg-training-card__venue a:hover,
.jsg-training-card__venue a:focus {
    color: var(--jsg-yellow);
    border-bottom-color: var(--jsg-yellow);
}

.jsg-training-card__maps-icon {
    display: inline-block;
    margin-left: 4px;
    font-size: 11px;
    color: var(--jsg-text-muted);
}

.jsg-training-card__address {
    margin: 0 0 6px;
    font-size: 13px;
    color: var(--jsg-text-muted);
}

.jsg-training-card__parking {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0;
    padding: 8px 10px;
    background: var(--jsg-surface-soft);
    border-left: 3px solid var(--jsg-border-strong);
    border-radius: 0 var(--jsg-radius-sm) var(--jsg-radius-sm) 0;
    font-size: 12px;
    color: var(--jsg-text);
}

.jsg-training-card__parking .dashicons {
    color: var(--jsg-text-muted);
    margin-top: 1px;
    flex-shrink: 0;
}

.jsg-training-card__notes {
    margin: 0;
    font-size: 13px;
    color: var(--jsg-text-muted);
    font-style: italic;
}

.jsg-training-card__validity {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--jsg-border);
    font-size: 10px;
    color: var(--jsg-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* =================================================================
 * Description (post_content)
 * ================================================================= */

.jsg-team-section--description .jsg-team-description {
    max-width: 800px;
    line-height: 1.7;
    color: var(--jsg-text);
    font-size: 15px;
}

.jsg-team-section--description .jsg-team-description a {
    color: var(--jsg-link);
}

.jsg-team-section--description .jsg-team-description h1,
.jsg-team-section--description .jsg-team-description h2,
.jsg-team-section--description .jsg-team-description h3,
.jsg-team-section--description .jsg-team-description h4 {
    color: var(--jsg-text-strong);
}

/* =================================================================
 * Empty state
 * ================================================================= */

.jsg-empty {
    padding: 40px 24px;
    background: var(--jsg-surface);
    border: 1px dashed var(--jsg-border);
    border-radius: var(--jsg-radius);
    color: var(--jsg-text-muted);
    text-align: center;
    font-size: 15px;
    margin: 0;
}

/* =================================================================
 * Breakpoints — mobile-first ↑ desktop
 * ================================================================= */

@media (min-width: 600px) {
    .jsg-container {
        padding: 0 22px;
    }
    .jsg-team-section {
        padding: 32px 0;
    }
    .jsg-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .jsg-team-hero {
        min-height: 420px;
        padding: 52px 0 32px;
    }
    .jsg-contact-hero__content,
    .jsg-club-hero__content {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 32px;
    }
    .jsg-contact-hero__roles {
        justify-content: flex-start;
    }
    .jsg-contact-hero__contact {
        align-items: flex-start;
    }
    .jsg-contact-row__icons {
        display: flex;
    }
    .jsg-training-row__time {
        min-width: 140px;
    }
    /* Desktop filter bar: flatten the mobile drawer wrappers back inline
       via display:contents so search + groups sit in one flex row. */
    .jsg-filter-bar {
        padding-bottom: 18px;
    }
    .jsg-filter-bar__top,
    .jsg-filter-bar__drawer,
    .jsg-filter-bar__panel,
    .jsg-filter-bar__groups {
        display: contents;
        /* Reset mobile-only visibility/position so children render normally */
        visibility: visible;
        position: static;
        transform: none;
        opacity: 1;
    }
    .jsg-filter-bar > .jsg-container {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        gap: 16px;
    }
    .jsg-filter-bar__trigger,
    .jsg-filter-bar__backdrop,
    .jsg-filter-bar__panel-header,
    .jsg-filter-bar__panel-footer {
        display: none !important;
    }
    .jsg-filter-bar__search {
        flex: 1 1 240px;
    }
    .jsg-filter-group {
        flex: 1 1 auto;
    }
}

@media (min-width: 1024px) {
    .jsg-container {
        padding: 0 28px;
    }
    .jsg-card-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    .jsg-card-grid--clubs {
        grid-template-columns: repeat(2, 1fr);
    }
    .jsg-team-hero {
        min-height: 480px;
        padding: 68px 0 44px;
    }
    .jsg-team-section {
        padding: 48px 0;
    }
}

/* =================================================================
 * Fallback: no backdrop-filter support
 * ================================================================= */

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .jsg-team-card,
    .jsg-club-card,
    .jsg-contact-card,
    .jsg-contact-row,
    .jsg-training-card,
    .jsg-training-row,
    .jsg-team-link-card,
    .jsg-post-card,
    .jsg-role-row,
    .jsg-filter-bar__search input[type="search"] {
        background: var(--jsg-bg-elev);
    }
    .jsg-badge,
    .jsg-chip-static {
        background: rgba(255, 255, 255, 0.16);
    }
    .jsg-chip {
        background: rgba(0, 25, 60, 0.85);
    }
    .jsg-filter-bar {
        background: rgba(0, 18, 38, 0.96);
    }
}

/* =================================================================
 * Reduced motion
 * ================================================================= */

@media (prefers-reduced-motion: reduce) {
    .jsg-team-card,
    .jsg-club-card,
    .jsg-contact-card,
    .jsg-contact-row,
    .jsg-training-card,
    .jsg-training-row,
    .jsg-team-link-card,
    .jsg-post-card,
    .jsg-team-hero__club,
    .jsg-chip {
        transition: none;
    }
    .jsg-team-card:hover,
    .jsg-club-card:hover,
    .jsg-contact-card:hover,
    .jsg-contact-row:hover,
    .jsg-training-card:hover,
    .jsg-training-row:hover,
    .jsg-team-link-card:hover,
    .jsg-post-card:hover {
        transform: none;
    }
}

/* =================================================================
 * iOS Safari: background-attachment: fixed has known performance issues
 * on long pages with rich gradients. Disable on small touch screens.
 * ================================================================= */

@media (max-width: 1023px) and (hover: none) {
    .jsg-team-page {
        background-attachment: scroll;
    }
}

/* =================================================================
 * Shortcode embedding scope
 *
 * Cards/pills/heros keep their full visual treatment, but the page-level
 * dark navy + atmospheric background is dropped so the snippet sits
 * cleanly inside the host theme's page body without darkening it.
 * Also hides the page-header and filter-bar since those belong to the
 * standalone archive views, not embedded snippets.
 * ================================================================= */

.jsg-team-page.jsg-shortcode {
    background: transparent;
    background-image: none;
    min-height: 0;
    padding-bottom: 0;
}

.jsg-team-page.jsg-shortcode .jsg-page-header,
.jsg-team-page.jsg-shortcode .jsg-filter-bar {
    display: none;
}

.jsg-team-page.jsg-shortcode .jsg-team-section {
    padding: 0;
}

.jsg-team-page.jsg-shortcode .jsg-team-section + .jsg-team-section {
    padding-top: 24px;
}

.jsg-team-page.jsg-shortcode .jsg-container {
    padding: 0;
}

/* =================================================================
 * [jsg_hero] — Premium Sports-Tech edition.
 *
 * Mobile: three full-width "promo sections" stacked vertically, each
 *   with a cover image, strong cinematic overlay, kicker label,
 *   headline, subline and glassmorph circular CTA. Diagonal accent
 *   line (the section's brand color) sits between adjacent sections.
 *   User scrolls through them naturally — NO more 100vh-clipped
 *   trapezoid layout.
 *
 * Desktop: cross-fade slider preserved (one slice at a time, large
 *   media, dots-based navigation).
 *
 * Per-slot accent (drives kicker color + diagonal separator + CTA
 * border halo):
 *   Slot 1 → blue   (--jsg-blue-neon)
 *   Slot 2 → yellow (--jsg-yellow)
 *   Slot 3 → red    (--jsg-red)
 * ================================================================= */

.jsg-team-page.jsg-shortcode.jsg-hero {
    position: relative;
    width: 100%;
    background: var(--jsg-bg-base);
    padding: 0;
    overflow: hidden;
}

.jsg-hero__slice {
    position: relative;
    display: block;
    background-size: cover;
    background-position: center;
    text-decoration: none;
    color: #fff;
    box-sizing: border-box;
    overflow: hidden;
    transition: filter 0.4s ease;
    /* Subtle baseline filter — keeps photos cinematic without crushing them. */
    filter: saturate(102%) brightness(0.72) contrast(1.04);
}

/* Per-slice accent (drives kicker color, CTA border, separator color) */
.jsg-hero__slice--1 { --jsg-hero-accent: var(--jsg-blue-neon); --jsg-hero-arrow: #fff; }
.jsg-hero__slice--2 { --jsg-hero-accent: var(--jsg-yellow);    --jsg-hero-arrow: var(--jsg-bg-base); }
.jsg-hero__slice--3 { --jsg-hero-accent: var(--jsg-red);       --jsg-hero-arrow: #fff; }

/* Cinematic multi-layer overlay — Premium look:
 *   1. Vignette spotlight: edges dark, center slightly clearer
 *   2. Top→bottom darken: ensures text legibility
 *   3. Very subtle digital noise (0.025 alpha) for tactility
 *   No more neon brand-tint layer, no diagonal "lightstreak". */
.jsg-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        radial-gradient(ellipse 110% 80% at 50% 45%,
            rgba(3, 8, 20, 0.25) 0%,
            rgba(3, 8, 20, 0.55) 55%,
            rgba(3, 8, 20, 0.92) 100%),
        linear-gradient(180deg,
            rgba(3, 8, 20, 0.55) 0%,
            rgba(3, 8, 20, 0.25) 35%,
            rgba(3, 8, 20, 0.85) 100%);
    background-size:
        22px 22px,
        auto, auto;
    background-position:
        0 0,
        center, center;
    pointer-events: none;
    z-index: 1;
}

/* Content stack (title + subtitle + CTA).
 * Positioning is driven by .jsg-pos-{top-left|top-right|center|bottom-left|bottom-right}
 * classes on the parent .jsg-hero__slice — see "Per-position text anchors" below. */
.jsg-hero__content {
    position: absolute;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ---------- Per-position text anchors (mobile defaults) ---------- */

.jsg-pos-top-left .jsg-hero__content {
    top: clamp(24px, 6vw, 48px);
    left: clamp(20px, 6vw, 48px);
    right: auto;
    bottom: auto;
    max-width: 75%;
    align-items: flex-start;
    text-align: left;
}
.jsg-pos-top-right .jsg-hero__content {
    top: clamp(24px, 6vw, 48px);
    right: clamp(20px, 6vw, 48px);
    left: auto;
    bottom: auto;
    max-width: 75%;
    align-items: flex-end;
    text-align: right;
}
.jsg-pos-center .jsg-hero__content {
    top: 50%;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    width: calc(100% - 40px);
    max-width: 80%;
    align-items: center;
    text-align: center;
}
.jsg-pos-bottom-left .jsg-hero__content {
    bottom: max(24px, env(safe-area-inset-bottom));
    left: clamp(20px, 6vw, 48px);
    right: auto;
    top: auto;
    max-width: 75%;
    align-items: flex-start;
    text-align: left;
}
.jsg-pos-bottom-right .jsg-hero__content {
    bottom: max(24px, env(safe-area-inset-bottom));
    right: clamp(20px, 6vw, 48px);
    left: auto;
    top: auto;
    max-width: 75%;
    align-items: flex-end;
    text-align: right;
}

/* Kicker — small uppercase label above the headline, in the section's
 * accent color, with a leading hairline dash (Bundesliga-app style). */
.jsg-hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 4px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--jsg-hero-accent);
}
.jsg-hero__kicker::before {
    content: "";
    width: 22px;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
    flex-shrink: 0;
}

.jsg-hero__title {
    position: relative;
    margin: 0;
    /* Premium scale — ultra-bold, restrained.
       --jsg-hero-title-size / --jsg-hero-title-color are inline overrides
       set on the slice when admin Typo-controls are configured. */
    font-size: var(--jsg-hero-title-size, clamp(34px, 9vw, 56px));
    font-weight: 900;
    line-height: 1.0;
    letter-spacing: -0.030em;
    text-transform: uppercase;
    color: var(--jsg-hero-title-color, #fff);
    /* Single light shadow — premium feel, no neon glow */
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
    text-decoration: none;
}

/* Title text-transform overrides (only when explicitly set in admin) */
.jsg-hero__slice--normalcase .jsg-hero__title { text-transform: none; }
.jsg-hero__slice--upper      .jsg-hero__title { text-transform: uppercase; }

.jsg-hero__subtitle {
    margin: 0;
    font-size: var(--jsg-hero-subtitle-size, clamp(14px, 3.2vw, 17px));
    font-weight: 500;
    line-height: 1.45;
    color: var(--jsg-hero-subtitle-color, rgba(232, 240, 255, 0.65));
    max-width: 32ch;
    letter-spacing: 0.005em;
}

/* Glassmorph circular CTA — premium app look (DAZN / Bundesliga style).
 * Translucent dark glass background, accent-colored hairline border,
 * subtle shadow, single small glow halo (no neon explosion). */
.jsg-hero__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin-top: 16px;
    background: rgba(8, 14, 32, 0.55);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    color: #fff;
    border: 1.5px solid var(--jsg-hero-accent, rgba(255, 255, 255, 0.45));
    border-radius: 50%;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.45),
        0 0 16px color-mix(in oklab, var(--jsg-hero-accent) 30%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transition: transform 0.20s ease, box-shadow 0.20s ease, border-color 0.20s ease, background 0.20s ease;
}

.jsg-hero__cta svg {
    display: block;
    color: var(--jsg-hero-accent);
    transition: color 0.20s ease;
}

.jsg-hero__slice:hover .jsg-hero__cta,
.jsg-hero__slice:focus-visible .jsg-hero__cta {
    transform: translateX(3px);
    background: color-mix(in oklab, var(--jsg-hero-accent) 18%, rgba(8, 14, 32, 0.55));
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.55),
        0 0 24px color-mix(in oklab, var(--jsg-hero-accent) 45%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.jsg-hero__slice:hover .jsg-hero__cta svg,
.jsg-hero__slice:focus-visible .jsg-hero__cta svg {
    color: #fff;
}

/* MOBILE — three diagonal trapezoid slices in ONE viewport (100vh
 * minus mobile-nav-height). The user scrolls THROUGH the page, but
 * the hero itself is always exactly one screen tall — Premium Sports-
 * Tech app feel, not a long scrollable landing.
 *
 * Geometry: three parallel diagonals with 12% drop produce three
 * equally-sized trapezoids, identical to the original geometry:
 *   Slice 1:  0   → 39%   viewport (height: 39%)
 *   Slice 2:  27.4% → 73% viewport (height: 45.6%, parallelogram)
 *   Slice 3:  61.4% → 100% viewport (height: 38.6%)
 *
 * Three diagonal accent lines (Premium hairline glow):
 *   1. Between slice 1 + 2 → BLUE   (slice 1's accent)  → .jsg-hero::before
 *   2. Between slice 2 + 3 → YELLOW (slice 2's accent)  → .jsg-hero::after
 *   3. At the very bottom (above mobile-nav) → RED      → .jsg-hero__slice--3::after
 */
@media (max-width: 767px) {
    /* Hero container is exactly one viewport tall, minus the mobile-nav
       so the bar doesn't cover the bottom slice. The WP admin-bar (46px
       on mobile) is also subtracted when present — it adds margin-top
       to the <html> element which would otherwise push our hero down
       past the visible viewport. */
    .jsg-team-page.jsg-shortcode.jsg-hero {
        height: 100vh;
        min-height: 520px;
    }
    body.jsg-has-mobile-nav .jsg-team-page.jsg-shortcode.jsg-hero {
        height: calc(100vh - var(--jsg-nav-height));
        min-height: 0;
    }
    body.admin-bar .jsg-team-page.jsg-shortcode.jsg-hero {
        height: calc(100vh - 46px);
    }
    body.admin-bar.jsg-has-mobile-nav .jsg-team-page.jsg-shortcode.jsg-hero {
        height: calc(100vh - var(--jsg-nav-height) - 46px);
    }
    @supports (height: 100dvh) {
        .jsg-team-page.jsg-shortcode.jsg-hero {
            height: 100dvh;
        }
        body.jsg-has-mobile-nav .jsg-team-page.jsg-shortcode.jsg-hero {
            height: calc(100dvh - var(--jsg-nav-height));
        }
        body.admin-bar .jsg-team-page.jsg-shortcode.jsg-hero {
            height: calc(100dvh - 46px);
        }
        body.admin-bar.jsg-has-mobile-nav .jsg-team-page.jsg-shortcode.jsg-hero {
            height: calc(100dvh - var(--jsg-nav-height) - 46px);
        }
    }

    /* Slices are absolutely positioned and clipped to trapezoids */
    .jsg-hero__slice {
        position: absolute;
        inset: 0;
        display: block;
    }
    .jsg-hero__slice--1 {
        bottom: auto;
        height: 39%;
        clip-path: polygon(0% 0%, 100% 0%, 100% 69.23%, 0% 100%);
    }
    .jsg-hero__slice--2 {
        top: 27.4%;
        bottom: auto;
        height: 45.6%;
        clip-path: polygon(0% 26.32%, 100% 0%, 100% 73.68%, 0% 100%);
    }
    .jsg-hero__slice--3 {
        top: auto;
        height: 38.6%;
        clip-path: polygon(0% 31.09%, 100% 0%, 100% 100%, 0% 100%);
    }

    /* Diagonal 1: between slice 1 + 2 (BLUE) — uses .jsg-hero::before */
    .jsg-team-page.jsg-shortcode.jsg-hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg,
            transparent 0%,
            var(--jsg-blue-neon) 25%,
            var(--jsg-blue-neon) 75%,
            transparent 100%);
        clip-path: polygon(
            0%   38.95%,
            100% 26.95%,
            100% 27.45%,
            0%   39.45%
        );
        filter:
            drop-shadow(0 0 3px var(--jsg-blue-glow))
            drop-shadow(0 0 10px rgba(0, 119, 255, 0.30));
        opacity: 0.80;
        pointer-events: none;
        z-index: 10;
    }
    /* Diagonal 2: between slice 2 + 3 (YELLOW) — uses .jsg-hero::after */
    .jsg-team-page.jsg-shortcode.jsg-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg,
            transparent 0%,
            var(--jsg-yellow) 25%,
            var(--jsg-yellow) 75%,
            transparent 100%);
        clip-path: polygon(
            0%   72.95%,
            100% 60.95%,
            100% 61.45%,
            0%   73.45%
        );
        filter:
            drop-shadow(0 0 3px var(--jsg-yellow-glow))
            drop-shadow(0 0 10px rgba(255, 208, 0, 0.30));
        opacity: 0.80;
        pointer-events: none;
        z-index: 10;
    }
    /* Diagonal 3: bottom of slice 3 (RED) — uses slice 3's own ::after.
       Disable the generic slice::after for slices 1 + 2 so we don't get
       extra lines inside the trapezoids. */
    .jsg-hero__slice--1::after,
    .jsg-hero__slice--2::after {
        display: none;
    }
    .jsg-hero__slice--3::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: -10%;
        right: -10%;
        height: 2px;
        background: linear-gradient(90deg,
            transparent 0%,
            var(--jsg-red) 20%,
            var(--jsg-red) 80%,
            transparent 100%);
        transform: skewY(-3.5deg);
        transform-origin: center;
        opacity: 0.85;
        box-shadow:
            0 0 10px color-mix(in oklab, var(--jsg-red) 55%, transparent),
            0 0 22px color-mix(in oklab, var(--jsg-red) 30%, transparent);
        pointer-events: none;
        z-index: 4;
    }

    /* Content stack — compact typography for trapezoid mode, anchored at
       the bottom-left of each slice's visible area. */
    .jsg-hero__content {
        position: absolute;
        bottom: 18px;
        left: 22px;
        right: 22px;
        top: auto;
        transform: none;
        max-width: 88%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        z-index: 2;
    }
    /* Slice 2 (middle parallelogram) — push content slightly down inside
       its visible band so it doesn't cross the upper diagonal. */
    .jsg-hero__slice--2 .jsg-hero__content {
        bottom: 12%;
    }

    /* Position-class overrides — keep them functional in trapezoid mode. */
    .jsg-pos-top-left .jsg-hero__content   { top: 18px; bottom: auto; align-items: flex-start; text-align: left; }
    .jsg-pos-top-right .jsg-hero__content  { top: 18px; bottom: auto; align-items: flex-end;   text-align: right; }
    .jsg-pos-center .jsg-hero__content     { top: 50%; bottom: auto; transform: translateY(-50%); align-items: center; text-align: center; }
    .jsg-pos-bottom-right .jsg-hero__content { align-items: flex-end; text-align: right; }

    /* Compact typography — must fit in ~250-300px slice height. */
    .jsg-hero__kicker {
        font-size: 10px;
        letter-spacing: 0.20em;
        gap: 8px;
    }
    .jsg-hero__kicker::before { width: 16px; }
    .jsg-hero__title {
        font-size: var(--jsg-hero-title-size, clamp(22px, 6.5vw, 32px));
        line-height: 1.0;
    }
    .jsg-hero__subtitle {
        font-size: var(--jsg-hero-subtitle-size, clamp(12px, 3vw, 14px));
        line-height: 1.4;
        max-width: 28ch;
        /* Cap to 2 lines so the slice stays compact */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .jsg-hero__cta {
        width: 44px;
        height: 44px;
        margin-top: 6px;
    }
    .jsg-hero__cta svg {
        width: 18px;
        height: 18px;
    }

    /* Tap feedback */
    .jsg-hero__slice:active { transform: scale(0.998); }

    /* No dots needed in trapezoid mode (all 3 visible) */
    .jsg-hero__dots {
        display: none;
    }
}

/* DESKTOP (≥ 768px) — cross-fade slider, slices stacked full-bleed */
@media (min-width: 768px) {
    .jsg-team-page.jsg-shortcode.jsg-hero {
        background: var(--jsg-bg-base);
        height: 100vh;
        min-height: 600px;
        max-height: 900px;
    }

    .jsg-hero__slice {
        position: absolute;
        inset: 0;
        height: 100%;
        min-height: 0;
        max-height: none;
        opacity: 0;
        transition: opacity 0.6s ease;
        pointer-events: none;
        clip-path: none;
    }
    .jsg-hero__slice.is-active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Larger, more cinematic content on desktop — position anchors are
       still driven by the .jsg-pos-* classes; we only override offsets
       and max-width for the bigger viewport. */
    .jsg-hero__content { gap: 14px; }

    .jsg-pos-top-left .jsg-hero__content {
        top: clamp(48px, 8vh, 96px);
        left: clamp(48px, 8vw, 96px);
        right: auto;
        bottom: auto;
        max-width: 50%;
    }
    .jsg-pos-top-right .jsg-hero__content {
        top: clamp(48px, 8vh, 96px);
        right: clamp(48px, 8vw, 96px);
        left: auto;
        bottom: auto;
        max-width: 50%;
    }
    .jsg-pos-center .jsg-hero__content {
        top: 50%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translate(-50%, -50%);
        width: auto;
        max-width: 70%;
    }
    .jsg-pos-bottom-left .jsg-hero__content {
        bottom: clamp(80px, 12vh, 140px);
        left: clamp(48px, 8vw, 96px);
        right: auto;
        top: auto;
        max-width: 50%;
    }
    .jsg-pos-bottom-right .jsg-hero__content {
        bottom: clamp(80px, 12vh, 140px);
        right: clamp(48px, 8vw, 96px);
        left: auto;
        top: auto;
        max-width: 50%;
    }

    .jsg-hero__title    { font-size: var(--jsg-hero-title-size, clamp(40px, 5vw, 64px)); }
    .jsg-hero__subtitle { font-size: var(--jsg-hero-subtitle-size, clamp(15px, 1.3vw, 18px)); }
    .jsg-hero__cta {
        width: 60px;
        height: 60px;
        margin-top: 18px;
    }

    .jsg-hero__overlay {
        background:
            linear-gradient(135deg,
                rgba(0, 18, 38, 0.65) 0%,
                rgba(0, 18, 38, 0.2)  55%,
                rgba(0, 18, 38, 0)   85%);
    }

    .jsg-hero__dots {
        position: absolute;
        bottom: 32px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 10px;
        z-index: 20;
        padding: 10px 16px;
        background: rgba(0, 18, 38, 0.5);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        border-radius: 999px;
    }
    .jsg-hero__dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.45);
        border: 0;
        cursor: pointer;
        padding: 0;
        transition: background 0.15s ease, transform 0.15s ease;
    }
    .jsg-hero__dot:hover {
        background: rgba(255, 255, 255, 0.7);
    }
    .jsg-hero__dot.is-active {
        background: var(--jsg-yellow);
        transform: scale(1.3);
    }
}

/* ====================
 * Mobile Bottom Navigation ([jsg_mobile_nav])  —  Sports-Tech Edition
 *
 * Sticky tab-bar at the viewport bottom on mobile (≤ 767px). Aesthetic:
 * near-black navy with a layered radial glow, neon "horizon" line across
 * the top edge, and glowing diagonal separators between items in the
 * three brand colors (blue → yellow → red). Active item gets a strong
 * neon top-bar + drop-shadow on the icon (eSports/streaming-app vibe).
 *
 * The bar lives outside the .jsg-team-page wrapper when auto-injected
 * via wp_footer, so every var is defined locally on .jsg-mobile-nav.
 *
 * z-index: 90 — deliberately below .jsg-filter-bar__drawer (200) so the
 * filter modal can fully cover the nav when open.
 * ==================== */

.jsg-mobile-nav-wrap,
.jsg-mobile-nav {
    --jsg-mn-bg-1:        #00040c;  /* near-black */
    --jsg-mn-bg-2:        #00132a;  /* deep navy */
    --jsg-mn-border:      rgba(0, 130, 255, 0.18);
    --jsg-mn-text:        rgba(220, 230, 245, 0.62);
    --jsg-mn-text-on:     #ffffff;
    --jsg-mn-accent:      #FFD000;  /* primary neon = yellow */
    --jsg-mn-blue:        #0077FF;  /* neon blue */
    --jsg-mn-red:         #E30613;  /* accent red */
}

/* Desktop default — both wrap and standalone nav stay hidden. */
.jsg-mobile-nav-wrap,
.jsg-mobile-nav { display: none; }

@media (max-width: 767px) {
    /* WRAP — fixed container at the bottom, hosts the glassmorph + horizon
       glow + optional footer-strip below the icons. */
    .jsg-mobile-nav-wrap {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 90;
        background:
            radial-gradient(ellipse 70% 60% at 50% 0%,
                rgba(0, 120, 255, 0.22) 0%,
                rgba(0, 120, 255, 0.06) 35%,
                transparent 75%),
            linear-gradient(180deg,
                var(--jsg-mn-bg-1) 0%,
                var(--jsg-mn-bg-2) 100%);
        -webkit-backdrop-filter: blur(22px) saturate(180%);
        backdrop-filter: blur(22px) saturate(180%);
        border-top: 1px solid var(--jsg-mn-border);
        box-shadow:
            0 -12px 36px rgba(0, 0, 0, 0.7),
            0 -1px 0 rgba(255, 193, 7, 0.10),
            inset 0 1px 0 rgba(0, 120, 255, 0.22);
        padding: 0 0 env(safe-area-inset-bottom);
        margin: 0;
        overflow: hidden;
        color: var(--jsg-mn-text);
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    }

    /* Inner items row — flex layout for the up-to-4 icons. */
    .jsg-mobile-nav {
        display: flex;
        position: relative;
    }

    /* Top "horizon" — sweeping multi-color glow line across the bar's top edge */
    .jsg-mobile-nav-wrap::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg,
            transparent 0%,
            rgba(0, 120, 255, 0.7)   18%,
            rgba(255, 193, 7, 0.95)  50%,
            rgba(227, 6, 19, 0.7)    82%,
            transparent 100%);
        filter: blur(0.5px);
        box-shadow:
            0 0 14px rgba(255, 193, 7, 0.40),
            0 0 28px rgba(0, 120, 255, 0.25);
        pointer-events: none;
        z-index: 1;
    }

    .jsg-mobile-nav__item {
        position: relative;
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 12px 4px 14px;
        color: var(--jsg-mn-text);
        text-decoration: none;
        font-size: 10.5px;
        line-height: 1.2;
        text-align: center;
        min-height: 60px;
        transition: color 0.18s ease, transform 0.1s ease;
    }

    /* Glowing diagonal separators between items.
       ::after sits at the LEFT edge of every item except the first,
       skewed 22° for the dynamic "motion line" feel. Colors cycle
       through the brand palette: blue → yellow → red. */
    .jsg-mobile-nav__item + .jsg-mobile-nav__item::after {
        content: "";
        position: absolute;
        top: 12%;
        bottom: 12%;
        left: 0;
        width: 1.5px;
        background: linear-gradient(180deg,
            transparent 0%,
            currentColor 45%,
            currentColor 55%,
            transparent 100%);
        transform: skewX(-22deg);
        opacity: 0.95;
        pointer-events: none;
    }
    .jsg-mobile-nav__item:nth-child(2)::after {
        color: var(--jsg-mn-blue);
        box-shadow: 0 0 14px 1px rgba(0, 120, 255, 0.55);
    }
    .jsg-mobile-nav__item:nth-child(3)::after {
        color: var(--jsg-mn-accent);
        box-shadow: 0 0 14px 1px rgba(255, 193, 7, 0.55);
    }
    .jsg-mobile-nav__item:nth-child(4)::after {
        color: var(--jsg-mn-red);
        box-shadow: 0 0 14px 1px rgba(227, 6, 19, 0.50);
    }

    .jsg-mobile-nav__item .dashicons {
        font-size: 24px;
        width: 24px;
        height: 24px;
        line-height: 24px;
        transition: transform 0.18s ease, filter 0.18s ease;
    }

    .jsg-mobile-nav__label {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 0 2px;
    }

    .jsg-mobile-nav__item:hover,
    .jsg-mobile-nav__item:focus-visible {
        color: var(--jsg-mn-text-on);
        outline: none;
    }
    .jsg-mobile-nav__item:hover .dashicons {
        transform: translateY(-1px);
        filter: drop-shadow(0 0 6px rgba(0, 120, 255, 0.45));
    }
    .jsg-mobile-nav__item:active {
        transform: scale(0.94);
    }

    /* ---------- Active state ---------- */

    .jsg-mobile-nav__item.is-active {
        color: var(--jsg-mn-accent);
        background: radial-gradient(ellipse 80% 55% at 50% 100%,
            rgba(255, 193, 7, 0.14) 0%,
            transparent 70%);
    }
    .jsg-mobile-nav__item.is-active .dashicons {
        filter:
            drop-shadow(0 0 4px rgba(255, 193, 7, 0.95))
            drop-shadow(0 0 12px rgba(255, 193, 7, 0.55));
        transform: translateY(-1px);
    }
    .jsg-mobile-nav__item.is-active .jsg-mobile-nav__label {
        text-shadow: 0 0 14px rgba(255, 193, 7, 0.45);
    }
    /* Top neon accent bar — bright yellow line with multi-layered glow */
    .jsg-mobile-nav__item.is-active::before {
        content: "";
        position: absolute;
        top: 0;
        left: 22%;
        right: 22%;
        height: 3px;
        background: linear-gradient(90deg,
            transparent 0%,
            var(--jsg-mn-accent) 18%,
            #fff 50%,
            var(--jsg-mn-accent) 82%,
            transparent 100%);
        border-radius: 0 0 4px 4px;
        box-shadow:
            0 0 14px rgba(255, 193, 7, 0.95),
            0 2px 24px rgba(255, 193, 7, 0.55),
            0 4px 32px rgba(255, 193, 7, 0.30);
        z-index: 2;
    }

    /* Footer-strip — dezent unter den Nav-Icons (Impressum / Datenschutz).
       Sits inside .jsg-mobile-nav-wrap below the icons. Renders only when
       the admin has configured at least one link (.has-footer class is
       added by MobileNav::render_bar()). */
    .jsg-mobile-nav-wrap.has-footer .jsg-mobile-nav-footer {
        display: flex;
    }
    .jsg-mobile-nav-footer {
        display: none;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 6px 16px 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        background: rgba(0, 0, 0, 0.18);
        font-size: 10.5px;
        letter-spacing: 0.04em;
    }
    .jsg-mobile-nav-footer__link {
        color: rgba(220, 230, 245, 0.55);
        text-decoration: none;
        transition: color 0.15s ease;
        padding: 2px 4px;
    }
    .jsg-mobile-nav-footer__link:hover,
    .jsg-mobile-nav-footer__link:focus-visible {
        color: var(--jsg-mn-accent);
        outline: none;
    }
    .jsg-mobile-nav-footer__sep {
        color: rgba(220, 230, 245, 0.25);
        font-weight: 700;
    }

    /* Bottom-nav height as a single source of truth — used both for
       body padding (so fixed bar doesn't cover the last content row)
       and for clamping full-viewport-height elements (e.g. the
       diagonal hero) so they fit exactly between top and nav. */
    body.jsg-has-mobile-nav {
        --jsg-nav-height: calc(68px + env(safe-area-inset-bottom));
    }
    body.jsg-has-mobile-nav.jsg-has-nav-footer {
        --jsg-nav-height: calc(96px + env(safe-area-inset-bottom));
    }
    body.jsg-has-mobile-nav {
        padding-bottom: var(--jsg-nav-height);
    }

    /* Diagonal hero shortcode would otherwise be 100vh and the nav
       overlaps its bottom third. Clamp to viewport minus nav height
       so the two together perfectly fill the screen. */
    body.jsg-has-mobile-nav .jsg-team-page.jsg-shortcode.jsg-hero {
        height: calc(100vh - var(--jsg-nav-height));
        min-height: 0;
    }
    /* Same for the diagonal-hero on dvh-capable browsers — uses the
       real visible viewport on iOS Safari (excludes the URL bar). */
    @supports (height: 100dvh) {
        body.jsg-has-mobile-nav .jsg-team-page.jsg-shortcode.jsg-hero {
            height: calc(100dvh - var(--jsg-nav-height));
        }
    }

    /* Theme-chrome hide-on-mobile is handled by the jsg-handball-theme
       (assets/style.css) — body.jsg-has-mobile-nav .jsg-site-header /
       .jsg-site-footer get display:none. No plugin-side overrides needed. */
}

/* ====================
 * Blog archive — Hero + Listing layout (used by /home, [jsg_posts])
 *
 * Mobile-first design inspired by sports/streaming apps:
 *   - Top: full-bleed featured-image hero (no card border, no gutter)
 *   - Chips overlaid on image bottom: category (yellow neon) + reading time
 *   - Title / excerpt / date / author below the image on dark page bg
 *   - "Weitere News" section heading with bottom-bar accent
 *   - Horizontal list items: 120px image left, content right, arrow far right
 *   - Pagination at the bottom
 * ==================== */

/* ---------- Featured-Post Hero (mirrors .jsg-team-hero) ----------
 * The featured post on the blog archive uses the same Sports-Tech hero
 * pattern as the team-single page: full-bleed image → dark band with
 * title + meta + category badge → diagonal tri-color glow stripe →
 * separate excerpt section below.
 *
 * Most layout/background/stripe styling comes from the shared
 * .jsg-team-hero rules above. The blocks below only adjust what the
 * post variant needs to differ (clickable title, slimmer media height,
 * separate excerpt block). */

.jsg-post-hero {
    /* Hero block itself inherits .jsg-team-hero styles */
}

.jsg-post-hero__media-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.jsg-post-hero__title a {
    color: inherit;
    text-decoration: none;
    background-image: linear-gradient(180deg, transparent 70%, var(--jsg-yellow-glow) 70%, transparent 95%);
    background-size: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease, color 0.18s ease;
}
.jsg-post-hero__title a:hover {
    background-size: 100% 100%;
    color: var(--jsg-yellow);
}

/* Meta line: date · author · reading time (inline, separators between) */
.jsg-post-hero__meta {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
}
.jsg-post-hero__sep {
    opacity: 0.55;
}
.jsg-post-hero__author {
    color: var(--jsg-text-muted);
}
.jsg-post-hero__reading {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--jsg-text-muted);
}
.jsg-post-hero__reading .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 13px;
    opacity: 0.8;
}

/* Excerpt block sits below the hero's diagonal glow stripe — same
   Sports-Tech "section under the stripe" pattern as .jsg-team-section. */
.jsg-post-hero-excerpt {
    padding-top: 20px;
}
.jsg-post-hero-excerpt__text {
    margin: 0 0 14px;
    max-width: 720px;
    color: var(--jsg-text);
    font-size: 16px;
    line-height: 1.65;
}
.jsg-post-hero-excerpt__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--jsg-yellow);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: gap 0.2s ease, text-shadow 0.2s ease;
}
.jsg-post-hero-excerpt__more:hover {
    gap: 12px;
    text-shadow: 0 0 12px var(--jsg-yellow-glow);
}

/* ---------- Section Header — "Weitere News" ---------- */

.jsg-post-section-header {
    position: relative;
    padding-bottom: 14px;
    margin: 16px 0 18px;
}

.jsg-post-section-header::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, var(--jsg-yellow) 0%, var(--jsg-yellow-strong) 100%);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 14px var(--jsg-yellow-glow);
}

.jsg-section-title {
    margin: 0;
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 900;
    color: var(--jsg-text-strong);
    letter-spacing: -0.018em;
}

/* ---------- News Cards — horizontal, uniform ----------
 * Every post below the hero on the news archive. Image on the left
 * with the category badge overlaid top-left; date, title and a yellow
 * arrow on the right. The image column fills the full card height via
 * grid stretch. */

.jsg-post-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.jsg-post-list-item {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(120px, 42%) 1fr;
    min-height: 150px;
    background: var(--jsg-surface-glass);
    -webkit-backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    border: 1px solid var(--jsg-border);
    border-radius: var(--jsg-radius);
    color: var(--jsg-text);
    text-decoration: none;
    overflow: hidden;
    box-shadow: var(--jsg-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

/* Diagonal yellow shimmer on hover */
.jsg-post-list-item::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 35%;
    background: linear-gradient(115deg,
        transparent 0%,
        rgba(255, 193, 7, 0.10) 50%,
        transparent 100%);
    transform: skewX(-18deg);
    transition: left 0.7s ease;
    pointer-events: none;
    z-index: 0;
}

@media (hover: hover) {
    .jsg-post-list-item:hover {
        transform: translateY(-3px);
        border-color: var(--jsg-border-accent);
        box-shadow: var(--jsg-shadow-strong), 0 0 24px var(--jsg-yellow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    }
    .jsg-post-list-item:hover::after {
        left: 130%;
    }
    .jsg-post-list-item:hover .jsg-post-list-item__arrow {
        transform: translateX(4px);
        text-shadow: 0 0 16px var(--jsg-yellow-glow);
    }
}

/* Image column — stretches to the full card height. */
.jsg-post-list-item__media {
    position: relative;
    background: var(--jsg-bg-elev) center / cover no-repeat;
}
.jsg-post-list-item__media.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--jsg-text-dim);
    background:
        radial-gradient(circle at 70% 30%, var(--jsg-blue-soft) 0%, transparent 60%),
        linear-gradient(135deg, var(--jsg-blue) 0%, var(--jsg-bg-base) 75%);
}
.jsg-post-list-item__media.no-image .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    line-height: 32px;
    opacity: 0.6;
}

/* Category badge — overlaid top-left on the image. Colour comes from a
   --blue / --yellow / --red modifier derived from the category slug, so
   the same category always reads in the same brand colour. */
.jsg-post-list-item__category {
    position: absolute;
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 11px;
    border-radius: var(--jsg-radius-pill);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 1;
}
.jsg-post-list-item__category--blue {
    background: var(--jsg-blue-neon);
    color: #fff;
    box-shadow: 0 4px 14px var(--jsg-blue-glow), 0 0 0 1px rgba(0, 119, 255, 0.45);
}
.jsg-post-list-item__category--yellow {
    background: var(--jsg-yellow);
    color: var(--jsg-accent-on-yellow);
    box-shadow: 0 4px 14px var(--jsg-yellow-glow), 0 0 0 1px rgba(255, 213, 79, 0.5);
}
.jsg-post-list-item__category--red {
    background: var(--jsg-red);
    color: #fff;
    box-shadow: 0 4px 14px var(--jsg-red-glow), 0 0 0 1px rgba(227, 6, 19, 0.45);
}

.jsg-post-list-item__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px;
    position: relative;
    z-index: 1;
}

.jsg-post-list-item__date {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--jsg-yellow);
}

.jsg-post-list-item__title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--jsg-text-strong);
    line-height: 1.3;
    letter-spacing: -0.012em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.jsg-post-list-item__arrow {
    margin-top: auto;
    align-self: flex-end;
    font-size: 22px;
    line-height: 1;
    color: var(--jsg-yellow);
    transition: transform 0.18s ease, text-shadow 0.18s ease;
}

/* ---------- Tablet + Desktop tweaks ---------- */

@media (min-width: 768px) {
    .jsg-post-list {
        gap: 18px;
    }
    .jsg-post-list-item {
        grid-template-columns: minmax(220px, 38%) 1fr;
        min-height: 200px;
    }
    .jsg-post-list-item__body {
        padding: 22px 26px;
        gap: 10px;
    }
    .jsg-post-list-item__date {
        font-size: 12px;
    }
    .jsg-post-list-item__title {
        font-size: 20px;
    }
}

/* ====================
 * Pagination (used by [jsg_posts] and any other paginated lists)
 * ==================== */

.jsg-pagination {
    margin: 32px auto 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.jsg-pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--jsg-surface-glass);
    -webkit-backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    border: 1px solid var(--jsg-border);
    border-radius: var(--jsg-radius-sm);
    color: var(--jsg-text);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: transform 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.jsg-pagination .page-numbers:hover {
    border-color: var(--jsg-border-accent);
    color: var(--jsg-yellow);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--jsg-yellow-glow);
}

.jsg-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--jsg-yellow-strong) 0%, var(--jsg-yellow) 100%);
    color: var(--jsg-accent-on-yellow);
    border-color: var(--jsg-yellow);
    box-shadow:
        0 6px 18px var(--jsg-yellow-glow),
        0 0 0 1px rgba(255, 213, 79, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.jsg-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
}
.jsg-pagination .page-numbers.dots:hover {
    transform: none;
    box-shadow: none;
    color: var(--jsg-text-dim);
}

.jsg-pagination .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

/* =================================================================
 * Team single-view — section labels, staff grid, info cards,
 * related-posts mosaic. Shared building blocks for the Sports-Tech
 * single-team layout.
 * ================================================================= */

/* Section header label: small uppercase muted ("TRAINERTEAM", "LETZTE BERICHTE")
   with a glowing yellow underline accent below. */
.jsg-section-label {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--jsg-text-muted);
    display: inline-block;
    position: relative;
    padding-bottom: 6px;
}
.jsg-section-label::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--jsg-yellow);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--jsg-yellow-glow);
}

/* --------------- Trainer Team grid + cards --------------- */

.jsg-staff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 700px) {
    .jsg-staff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

.jsg-staff-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 14px;
    align-items: center;
    padding: 14px;
    background: var(--jsg-surface-glass);
    -webkit-backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    border: 1px solid var(--jsg-border);
    border-radius: var(--jsg-radius);
    box-shadow: var(--jsg-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
@media (hover: hover) {
    .jsg-staff-card:hover {
        transform: translateY(-2px);
        border-color: var(--jsg-border-accent);
        box-shadow: var(--jsg-shadow), 0 0 22px var(--jsg-yellow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    }
}

.jsg-staff-card__photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background-size: cover;
    background-position: center top;
    background-color: var(--jsg-bg-elev);
    border: 2px solid rgba(0, 119, 255, 0.30);
    box-shadow: 0 0 18px rgba(0, 119, 255, 0.30);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    overflow: hidden;
}
.jsg-staff-card__initials {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.jsg-staff-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.jsg-staff-card__name {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--jsg-text-strong);
    line-height: 1.2;
}
.jsg-staff-card__role {
    margin: 0;
    font-size: 13px;
    color: var(--jsg-yellow);
    font-weight: 700;
}

.jsg-staff-card__actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

/* Round neon-outlined contact action buttons (phone, email, whatsapp) */
.jsg-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(8, 14, 32, 0.65);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 1.5px solid var(--jsg-blue-neon);
    color: var(--jsg-blue-neon);
    text-decoration: none;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.40),
        0 0 12px rgba(0, 119, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transition: transform 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}
.jsg-action-btn .dashicons {
    font-size: 18px; width: 18px; height: 18px; line-height: 18px;
}
.jsg-action-btn svg { display: block; }
.jsg-action-btn:hover,
.jsg-action-btn:focus-visible {
    transform: translateY(-2px);
    color: #fff;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.55),
        0 0 22px var(--jsg-blue-glow),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    outline: none;
}
.jsg-action-btn--whatsapp {
    border-color: #25d366;
    color: #25d366;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.40),
        0 0 12px rgba(37, 211, 102, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.jsg-action-btn--whatsapp:hover,
.jsg-action-btn--whatsapp:focus-visible {
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.55),
        0 0 22px rgba(37, 211, 102, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* --------------- Info cards (Trainingszeiten / Nächstes Spiel) --------------- */

.jsg-team-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 768px) {
    .jsg-team-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

.jsg-info-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
    background: var(--jsg-surface-glass);
    -webkit-backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    border: 1px solid var(--jsg-border);
    border-radius: var(--jsg-radius);
    box-shadow: var(--jsg-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.jsg-info-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--jsg-border);
}
.jsg-info-card__head-icon {
    color: var(--jsg-yellow);
    text-shadow: 0 0 10px var(--jsg-yellow-glow);
    font-size: 18px; width: 18px; height: 18px; line-height: 18px;
}
.jsg-info-card__head-label {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--jsg-text);
}

.jsg-info-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 0;
    margin-top: 4px;
    border-top: 1px solid var(--jsg-border);
    color: var(--jsg-blue-neon);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.02em;
    transition: color 0.15s ease, transform 0.15s ease;
}
.jsg-info-card__cta:hover,
.jsg-info-card__cta:focus-visible {
    color: var(--jsg-yellow);
    transform: translateX(2px);
    outline: none;
}
.jsg-info-card__cta .dashicons {
    font-size: 16px; width: 16px; height: 16px; line-height: 16px;
}

/* Trainings list inside the info card */
.jsg-trainings-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.jsg-trainings-list__item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: flex-start;
}
.jsg-trainings-list__icon {
    color: var(--jsg-text-dim);
    font-size: 16px; width: 16px; height: 16px; line-height: 18px;
}
.jsg-trainings-list__body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.jsg-trainings-list__weekday {
    font-size: 14px;
    font-weight: 800;
    color: var(--jsg-yellow);
    letter-spacing: 0.02em;
}
.jsg-trainings-list__time {
    font-size: 14px;
    color: var(--jsg-text-strong);
    font-weight: 600;
}
.jsg-trainings-list__venue {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--jsg-text-muted);
    margin-top: 2px;
}
.jsg-trainings-list__venue .dashicons {
    font-size: 13px; width: 13px; height: 13px; line-height: 13px;
    color: var(--jsg-text-dim);
}
.jsg-trainings-list__venue a {
    color: var(--jsg-text-muted);
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.18);
}
.jsg-trainings-list__venue a:hover {
    color: var(--jsg-yellow);
    border-bottom-color: var(--jsg-yellow);
}

/* --------------- Related posts mosaic --------------- */

.jsg-related-posts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 768px) {
    .jsg-related-posts {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
        gap: 20px;
        align-items: start;
    }
}

.jsg-related-posts__featured {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    background: var(--jsg-surface-glass);
    border: 1px solid var(--jsg-border);
    border-radius: var(--jsg-radius);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--jsg-shadow);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
@media (hover: hover) {
    .jsg-related-posts__featured:hover {
        transform: translateY(-3px);
        border-color: var(--jsg-border-accent);
        box-shadow: var(--jsg-shadow-glow);
    }
}
.jsg-related-posts__featured-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: var(--jsg-bg-elev);
}
.jsg-related-posts__featured-media.no-image {
    background:
        radial-gradient(circle at 70% 30%, var(--jsg-blue-soft) 0%, transparent 60%),
        linear-gradient(135deg, var(--jsg-blue) 0%, var(--jsg-bg-base) 75%);
}
.jsg-related-posts__featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(3, 8, 20, 0.10) 0%,
        rgba(3, 8, 20, 0.40) 60%,
        rgba(3, 8, 20, 0.95) 100%);
    pointer-events: none;
}
.jsg-related-posts__featured-cat {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 5px 12px;
    background: var(--jsg-yellow);
    color: var(--jsg-accent-on-yellow);
    border-radius: var(--jsg-radius-pill);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 14px var(--jsg-yellow-glow);
    z-index: 1;
}
.jsg-related-posts__featured-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.jsg-related-posts__featured-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--jsg-text-strong);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.jsg-related-posts__featured-meta {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--jsg-text-muted);
    font-weight: 600;
}
.jsg-related-posts__featured-meta .dashicons {
    font-size: 13px; width: 13px; height: 13px; line-height: 13px;
}

.jsg-related-posts__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.jsg-related-posts__row {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 12px;
    padding: 12px;
    background: var(--jsg-surface-glass);
    -webkit-backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    backdrop-filter: blur(var(--jsg-blur)) saturate(180%);
    border: 1px solid var(--jsg-border);
    border-radius: var(--jsg-radius);
    color: var(--jsg-text);
    text-decoration: none;
    box-shadow: var(--jsg-shadow);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
@media (hover: hover) {
    .jsg-related-posts__row:hover {
        transform: translateY(-2px);
        border-color: var(--jsg-border-accent);
        box-shadow: var(--jsg-shadow), 0 0 20px var(--jsg-yellow-glow);
    }
    .jsg-related-posts__row:hover .jsg-related-posts__row-arrow {
        color: var(--jsg-yellow);
        transform: translateX(3px);
    }
}

.jsg-related-posts__row-media {
    width: 100px;
    height: 100px;
    background-size: cover;
    background-position: center;
    background-color: var(--jsg-bg-elev);
    border-radius: var(--jsg-radius-sm);
}
.jsg-related-posts__row-media.no-image {
    background:
        radial-gradient(circle at 70% 30%, var(--jsg-blue-soft) 0%, transparent 60%),
        linear-gradient(135deg, var(--jsg-blue) 0%, var(--jsg-bg-base) 75%);
}

.jsg-related-posts__row-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.jsg-related-posts__row-cat {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: var(--jsg-blue-neon);
    text-shadow: 0 0 8px rgba(0, 119, 255, 0.40);
    align-self: flex-start;
    padding: 3px 8px;
    background: rgba(0, 119, 255, 0.10);
    border-radius: var(--jsg-radius-sm);
}
.jsg-related-posts__row:nth-child(2n) .jsg-related-posts__row-cat {
    color: var(--jsg-red);
    background: rgba(227, 6, 19, 0.10);
    text-shadow: 0 0 8px rgba(227, 6, 19, 0.40);
}
.jsg-related-posts__row-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--jsg-text-strong);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.jsg-related-posts__row-meta {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--jsg-text-muted);
}
.jsg-related-posts__row-meta .dashicons {
    font-size: 12px; width: 12px; height: 12px; line-height: 12px;
}
.jsg-related-posts__row-arrow {
    align-self: center;
    font-size: 20px;
    color: var(--jsg-text-dim);
    transition: color 0.18s ease, transform 0.18s ease;
}

.jsg-related-posts__all {
    grid-column: 1 / -1;
    margin-top: 6px;
    border-top: none;
    padding: 12px 14px;
    background: var(--jsg-surface-glass);
    border: 1px solid var(--jsg-border);
    border-radius: var(--jsg-radius-sm);
}

/* =================================================================
 * Venue (Halle) single view — Sports-Tech detail page
 *
 * Mirrors the team-hero pattern: full-bleed featured image with a
 * cinematic dark overlay, then a dark text band carrying the venue
 * name, address and the Google-Maps CTA. Sections below reuse the
 * existing .jsg-info-card, .jsg-section-label, .jsg-card-grid and
 * .jsg-schedule blocks — no new component primitives.
 * ================================================================= */

.jsg-venue-hero {
    position: relative;
    isolation: isolate;
    background-color: var(--jsg-bg-base);
    color: var(--jsg-text-strong);
    overflow: hidden;
    margin: 0 0 8px;
}

.jsg-venue-hero__media {
    position: relative;
    width: 100%;
    height: 280px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.jsg-venue-hero__overlay {
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 280px;
    background:
        radial-gradient(60% 70% at 25% 20%, rgba(0, 119, 255, 0.18) 0%, transparent 60%),
        linear-gradient(180deg,
            rgba(3, 8, 20, 0.25) 0%,
            rgba(3, 8, 20, 0.10) 35%,
            rgba(3, 8, 20, 0.85) 88%,
            var(--jsg-bg-base) 100%);
    pointer-events: none;
    z-index: 1;
}

.jsg-venue-hero.no-image .jsg-venue-hero__media,
.jsg-venue-hero.no-image .jsg-venue-hero__overlay {
    display: none;
}

.jsg-venue-hero__bottom {
    position: relative;
    z-index: 2;
    padding: 18px 0 26px;
    background: var(--jsg-bg-base);
}

.jsg-venue-hero__kicker {
    margin: 0 0 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--jsg-blue-neon);
}
.jsg-venue-hero__kicker .dashicons {
    font-size: 14px; width: 14px; height: 14px; line-height: 14px;
    text-shadow: 0 0 10px var(--jsg-blue-glow);
}

.jsg-venue-hero__title {
    margin: 0 0 12px;
    font-size: clamp(26px, 7vw, 42px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -0.028em;
    color: var(--jsg-text-strong);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.jsg-venue-hero__address {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-style: normal;
    color: var(--jsg-text);
    font-size: 14px;
    margin-bottom: 16px;
}
.jsg-venue-hero__address-street { font-weight: 600; }
.jsg-venue-hero__address-city   { color: var(--jsg-text-muted); }
.jsg-venue-hero__address-zip {
    display: inline-block;
    margin-right: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0, 119, 255, 0.12);
    color: var(--jsg-blue-neon);
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Glassmorph Maps CTA — primary action on the venue page */
.jsg-venue-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(8, 14, 32, 0.55);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
    color: #fff;
    border: 1.5px solid var(--jsg-blue-neon);
    border-radius: var(--jsg-radius-pill);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.45),
        0 0 14px rgba(0, 119, 255, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    transition: transform 0.20s ease, background 0.20s ease, box-shadow 0.20s ease;
}
.jsg-venue-hero__cta .dashicons {
    font-size: 16px; width: 16px; height: 16px; line-height: 16px;
    color: var(--jsg-blue-neon);
    transition: color 0.20s ease;
}
.jsg-venue-hero__cta:hover,
.jsg-venue-hero__cta:focus-visible {
    transform: translateY(-2px);
    background: color-mix(in oklab, var(--jsg-blue-neon) 18%, rgba(8, 14, 32, 0.55));
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.55),
        0 0 22px rgba(0, 119, 255, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    outline: none;
}
.jsg-venue-hero__cta:hover .dashicons,
.jsg-venue-hero__cta:focus-visible .dashicons {
    color: #fff;
}

/* Parking info — render any line-breaks the admin entered cleanly */
.jsg-venue-parking p {
    margin: 0 0 8px;
    color: var(--jsg-text);
    line-height: 1.55;
}
.jsg-venue-parking p:last-child { margin-bottom: 0; }

/* Tablet+ — larger hero image */
@media (min-width: 768px) {
    .jsg-venue-hero__media,
    .jsg-venue-hero__overlay {
        height: 380px;
    }
}
