/* ============================================================
   LA Sol — Site tweaks
   Staff bios modal (technical-staff page) + parking layout fix
   ============================================================ */

/* ───────────────────────────────────────────────────────────
   STAFF PAGE — unify dark theme + Read Bio button + modal
   ─────────────────────────────────────────────────────────── */

/* Unify the white-bg "Technical Staff" section onto the dark theme.
   The Elementor section ID (293d63f) is the e-parent that wraps the
   Technical Staff heading + card grid, and currently has bg:#fff inline. */
.la-sol-staff-page .elementor-element-293d63f {
    background-color: #03203E !important;
}

/* Page background remains dark navy. */
.la-sol-staff-page {
    background-color: #03203E;
}

/* The "TECHNICAL STAFF" heading + any preheader inside the unified
   section was originally styled for a white background (dark text).
   Re-paint to white for the dark BG. */
.la-sol-staff-page .elementor-element-293d63f h1,
.la-sol-staff-page .elementor-element-293d63f h2,
.la-sol-staff-page .elementor-element-293d63f h3,
.la-sol-staff-page .elementor-element-293d63f h4,
.la-sol-staff-page .elementor-element-293d63f p {
    color: #FFFFFF !important;
}

/* ─── Card hover affordance (existing FIFA-style cards) ─── */

.la-sol-staff-page .lss-staff-card {
    position: relative;
    transition: transform 0.25s ease, filter 0.25s ease;
}
.la-sol-staff-page .lss-staff-card:hover {
    transform: translateY(-4px);
    filter: brightness(1.06);
}
.la-sol-staff-page .lss-staff-card:focus-visible {
    outline: 2px solid #94DFFF;
    outline-offset: 4px;
    border-radius: 8px;
}

/* ─── Read Bio button — anchored to the bottom of each FIFA card ─── */

.la-sol-staff-page .lss-staff-card { position: relative; }

.la-sol-staff-page .lss-bio-btn {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px 8px 16px;
    background: rgba(3, 32, 62, 0.85);
    color: #94DFFF;
    border: 1.5px solid rgba(148, 223, 255, 0.55);
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    line-height: 1;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
    z-index: 4;
    white-space: nowrap;
}

.la-sol-staff-page .lss-bio-btn:hover {
    background: #94DFFF;
    color: #03203E;
    border-color: #94DFFF;
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 6px 20px rgba(148, 223, 255, 0.35);
}

.la-sol-staff-page .lss-bio-btn svg {
    width: 12px;
    height: 12px;
}

.la-sol-staff-page .lss-bio-btn:focus-visible {
    outline: 2px solid #94DFFF;
    outline-offset: 2px;
}

/* ───────────────────────────────────────────────────────────
   STAFF CARDS — stacked layout (all viewports)
   FIFA-style card-shield artwork is replaced by a clean vertical stack:
   photo on top with rounded corners, then a navy gradient panel for
   name + role + Read Bio. Mirrors the bio modal aesthetic.
   ─────────────────────────────────────────────────────────── */

/* Free the cards from Elementor's grid which hard-codes grid-template-rows
   to a fixed pixel height per row (sized for the original FIFA artwork).
   Collapsing to grid-auto-rows:auto lets each card size to its own content
   while preserving the responsive column count Elementor sets. */
.la-sol-staff-page .e-grid:has(.lss-staff-card) > .e-con-inner,
.la-sol-staff-page .e-grid:has(.player-card) > .e-con-inner {
    grid-template-rows: none !important;
    grid-auto-rows: auto !important;
    align-items: start !important;
}

/* Hide the FIFA card-shield artwork everywhere. */
.la-sol-staff-page .lss-staff-card .card-shield {
    display: none !important;
}

/* Card becomes a vertical flex container with natural document flow.
   Elementor sets aspect-ratio:400/520 on the card to match the FIFA
   card-shield artwork — must be cleared so the card sizes to content. */
.la-sol-staff-page .lss-staff-card,
.la-sol-staff-page .player-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    aspect-ratio: auto !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    background: linear-gradient(180deg, #0A2F50 0%, #03203E 100%) !important;
    border: 1px solid rgba(148, 223, 255, 0.18) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35) !important;
}
.la-sol-staff-page .lss-staff-card:hover {
    transform: translateY(-3px);
    filter: none;
}

/* Photo flows at top of card, full width, square frame.
   The img is positioned absolutely inside so the wrapper's aspect-ratio:1
   isn't overridden by the img's intrinsic dimensions (otherwise tall
   portraits like Georgi/Nastia would push the wrapper to their natural
   3:4 / 3:4.6 height instead of staying square). */
.la-sol-staff-page .lss-staff-card .card-player {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    filter: none !important;
    overflow: hidden !important;
    background:
        radial-gradient(80% 50% at 50% 30%, rgba(148, 223, 255, 0.18), transparent 70%),
        linear-gradient(180deg, #042040 0%, #021425 100%);
    flex: 0 0 auto !important;
}
.la-sol-staff-page .lss-staff-card .card-player img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    /* center 15% — anchors near the top so heads stay visible regardless of
       source aspect ratio. Cropping happens from the bottom only, so even very
       tall portraits still show forehead-down. Square sources show full frame. */
    object-position: center 15% !important;
    border: 0 !important;
    border-radius: 0 !important;
    display: block !important;
}

/* Info panel flows below the photo. Min-height keeps card heights uniform
   across the grid even when names wrap to 2 lines or roles wrap to 2 lines. */
.la-sol-staff-page .player-card .card-info,
.la-sol-staff-page .lss-staff-card .card-info {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 180px !important;
    padding: 22px 20px 70px !important;
    text-align: center !important;
    background: transparent !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
}

/* Name */
.la-sol-staff-page .lss-staff-card .card-info .elementor-heading-title {
    color: #FFFFFF !important;
    font-size: 24px !important;
    line-height: 1.1 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    margin: 0 0 10px !important;
}

/* Role */
.la-sol-staff-page .lss-staff-card .card-info .elementor-widget-text-editor,
.la-sol-staff-page .lss-staff-card .card-info .elementor-widget-text-editor p {
    color: #94DFFF !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1.8px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}

/* Read Bio button anchored to bottom of card */
.la-sol-staff-page .lss-bio-btn {
    bottom: 18px !important;
}

/* Mobile typography tweak */
@media (max-width: 600px) {
    .la-sol-staff-page .lss-staff-card .card-info .elementor-heading-title {
        font-size: 22px !important;
    }
    .la-sol-staff-page .lss-staff-card .card-info .elementor-widget-text-editor,
    .la-sol-staff-page .lss-staff-card .card-info .elementor-widget-text-editor p {
        font-size: 12px !important;
        letter-spacing: 1.6px !important;
    }
}

/* ─── Modal ─── */

html.lss-no-scroll, html.lss-no-scroll body { overflow: hidden; }

.lss-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    visibility: hidden;
    opacity: 0;
    transition: opacity .22s ease, visibility .22s ease;
    font-family: 'Inter', sans-serif;
}
.lss-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.lss-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 16, 31, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lss-modal-panel:focus { outline: none; }
.lss-modal-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, 360px) 1fr;
    gap: 0;
    width: min(960px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    top: 50%;
    transform: translateY(-50%) scale(0.96);
    background: linear-gradient(180deg, #0A2F50 0%, #03203E 100%);
    border: 1px solid rgba(148, 223, 255, 0.18);
    border-radius: 14px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(148, 223, 255, 0.08);
    overflow: hidden;
    transition: transform .26s cubic-bezier(.2, .9, .25, 1.05);
    color: #fff;
}
.lss-modal.is-open .lss-modal-panel {
    transform: translateY(-50%) scale(1);
}

.lss-modal-photo-wrap {
    position: relative;
    background:
        radial-gradient(80% 50% at 50% 30%, rgba(148, 223, 255, 0.18), transparent 70%),
        linear-gradient(180deg, #042040 0%, #021425 100%);
    overflow: hidden;
}
.lss-modal-photo-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.45) 100%);
    pointer-events: none;
}
.lss-modal-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    min-height: 360px;
}

.lss-modal-content {
    padding: 36px 40px 36px 36px;
    overflow-y: auto;
    max-height: calc(100vh - 48px);
    scrollbar-width: thin;
    scrollbar-color: rgba(148,223,255,0.4) transparent;
}
.lss-modal-content::-webkit-scrollbar { width: 6px; }
.lss-modal-content::-webkit-scrollbar-thumb { background: rgba(148,223,255,0.4); border-radius: 3px; }

.lss-modal-role {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 10px;
    background: rgba(148, 223, 255, 0.12);
    border: 1px solid rgba(148, 223, 255, 0.28);
    border-radius: 999px;
    color: #94DFFF;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.2;
}

.lss-modal-name {
    margin: 0 0 18px;
    font-family: 'ROG LyonsType', 'Bebas Neue', 'Inter', sans-serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ffffff;
}

.lss-modal-divider {
    width: 56px;
    height: 3px;
    background: linear-gradient(90deg, #94DFFF 0%, rgba(148, 223, 255, 0) 100%);
    margin: 0 0 22px;
    border-radius: 2px;
}

.lss-modal-bio {
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    white-space: pre-wrap;
}

/* Hard reset against Elementor's site-wide button skin (which paints
   bg:#03203E + cyan border on every <button>). The close X must be a
   pure white glyph with no background and no chrome. */
.lss-modal .lss-modal-close,
.lss-modal .lss-modal-close[type="button"] {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    cursor: pointer !important;
    z-index: 3;
    opacity: 0.85;
    transition: opacity .18s ease;
}
.lss-modal .lss-modal-close:hover { opacity: 1 !important; }
.lss-modal .lss-modal-close svg {
    width: 22px !important;
    height: 22px !important;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.55));
}
.lss-modal .lss-modal-close:focus { outline: none !important; }
.lss-modal .lss-modal-close:focus-visible {
    outline: 2px solid #94DFFF !important;
    outline-offset: 3px !important;
}

/* Modal — mobile */
@media (max-width: 760px) {
    .lss-modal-panel {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 24px);
        margin: 12px auto;
        width: calc(100vw - 16px);
    }
    .lss-modal-photo {
        min-height: 240px;
        max-height: 38vh;
    }
    .lss-modal-content {
        padding: 24px 22px 28px;
        max-height: none;
    }
    .lss-modal-name { font-size: 30px; }
    .lss-modal-bio  { font-size: 14.5px; line-height: 1.65; }
}

@media (prefers-reduced-motion: reduce) {
    .lss-modal,
    .lss-modal-panel,
    .lss-modal-close,
    .la-sol-staff-page .lss-staff-card,
    .la-sol-staff-page .lss-bio-btn { transition: none !important; }
}

/* ───────────────────────────────────────────────────────────
   PARKING PAGE — hide "01"/"03" numbers, close the gap
   ─────────────────────────────────────────────────────────── */

/* The two big number labels live in the first text-editor widget of each tip column.
   Their content is just "01" or "03". Targeting by Elementor element IDs (stable). */
.la-sol-parking-page .elementor-element-41f70196,
.la-sol-parking-page .elementor-element-6fd3b6b4 {
    display: none !important;
}

/* The grid that holds the two tips. Repack tightly to the left with a sensible gap. */
.la-sol-parking-page .elementor-element-456712b6 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 48px !important;
    align-items: flex-start !important;
}

/* Each tip gets a comfortable max-width so they read like cards, not full-bleed columns. */
.la-sol-parking-page .elementor-element-a846a1b1,
.la-sol-parking-page .elementor-element-5aa5aec3 {
    flex: 0 1 360px !important;
    max-width: 100% !important;
    width: auto !important;
}

/* Mobile: stack */
@media (max-width: 640px) {
    .la-sol-parking-page .elementor-element-456712b6 {
        flex-direction: column !important;
        gap: 28px !important;
    }
    .la-sol-parking-page .elementor-element-a846a1b1,
    .la-sol-parking-page .elementor-element-5aa5aec3 {
        flex: 1 1 100% !important;
    }
}
