/* Shared mobile application layer. Desktop styles remain owned by style.css. */
.mobile-tab-bar,
.mobile-disclosure-trigger,
.mobile-sheet-header,
.mobile-menu-header,
.mobile-auth-slot,
.mobile-account-sheet {
    display: none;
}

@media (max-width: 767.98px) {
    :root {
        --mobile-gutter: 16px;
        --mobile-nav-height: 66px;
        --mobile-radius: 12px;
    }

    html {
        scroll-padding-top: 72px;
    }

    body {
        padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
        font-size: 14px;
        line-height: 1.43;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    body.mobile-account-open { overflow: hidden; }

    h1 { font-size: clamp(1.55rem, 7vw, 1.8rem); line-height: 1.12; }
    h2 { font-size: clamp(1.25rem, 5.8vw, 1.5rem); line-height: 1.18; }
    h3 { font-size: 1.08rem; line-height: 1.25; }
    p, li, label, input, select, textarea, button { line-height: 1.45; }

    .container,
    .container-fluid {
        width: 100%;
        padding-left: var(--mobile-gutter);
        padding-right: var(--mobile-gutter);
    }

    .navbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 1035;
        min-height: 58px;
        padding: 7px var(--mobile-gutter) !important;
        box-shadow: 0 2px 14px rgba(7, 17, 29, .16);
    }

    .navbar .container-fluid { flex-wrap: nowrap; padding: 0; }
    .navbar .site-logo-brand {
        min-width: 88px;
        max-width: none;
        flex: 1 1 auto;
        margin-right: 10px;
        overflow: hidden;
    }
    .navbar .site-logo-brand img { width: auto; max-width: min(180px, 100%); height: auto; max-height: 42px; }
    .navbar-toggler { display: none; }

    .mobile-auth-slot {
        display: flex;
        flex: 0 0 auto;
        align-items: center;
        gap: 7px;
        margin-left: auto;
    }
    .mobile-login-button {
        display: inline-flex;
        min-width: 72px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 8px 12px;
        color: #fff !important;
        background: rgba(255,255,255,.09);
        border: 1px solid rgba(255,255,255,.28);
        border-radius: 999px;
        font-size: .86rem;
        font-weight: 800;
    }
    .mobile-login-button:focus,
    .mobile-login-button:hover { color: #111820 !important; background: #fff; }
    .mobile-avatar-button {
        position: relative;
        display: inline-flex;
        width: auto;
        height: 46px;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 3px 12px 3px 3px;
        color: #fff;
        background: rgba(8,17,28,.92);
        border: 1px solid rgba(255,255,255,.3);
        border-radius: 999px;
        box-shadow: 0 0 0 3px rgba(20,121,212,.25);
        font-size: .78rem;
        font-weight: 900;
        letter-spacing: .03em;
    }
    .mobile-avatar-button::after {
        position: absolute;
        left: 34px;
        bottom: 1px;
        width: 12px;
        height: 12px;
        content: '';
        background: #22a06b;
        border: 2px solid #111b27;
        border-radius: 50%;
    }
    .mobile-avatar-initials {
        display: inline-flex;
        width: 38px;
        height: 38px;
        flex: 0 0 38px;
        align-items: center;
        justify-content: center;
        background: #1479d4;
        border-radius: 50%;
    }
    .mobile-avatar-button .account-name {
        display: inline-block !important;
        max-width: none;
        overflow: visible;
        color: #fff;
        font-size: .78rem;
        font-weight: 900;
        white-space: nowrap;
    }
    .mobile-avatar-button em {
        position: absolute;
        top: -6px;
        right: -7px;
        z-index: 1;
        min-width: 18px;
        height: 18px;
        padding: 0 4px;
        color: #fff;
        background: #b42318;
        border: 2px solid #111b27;
        border-radius: 999px;
        font-size: 9px;
        font-style: normal;
        line-height: 14px;
    }

    @media (max-width: 380px) {
        .mobile-avatar-button {
            height: 40px;
            padding: 0 10px;
        }
        .mobile-avatar-button .mobile-avatar-initials {
            display: none;
        }
        .mobile-avatar-button::after {
            display: none;
        }
        .mobile-notification-centre .notification-bell {
            width: 38px;
            height: 38px;
        }
    }

    .mobile-account-sheet:not([hidden]) {
        position: fixed;
        z-index: 1070;
        inset: 0;
        display: block;
    }
    .mobile-account-backdrop {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        padding: 0;
        background: rgba(7,17,29,.58);
        border: 0;
    }
    .mobile-account-panel {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        max-height: min(82dvh, 640px);
        padding: 0 16px calc(16px + env(safe-area-inset-bottom));
        overflow-y: auto;
        background: #fff;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -24px 70px rgba(7,17,29,.3);
    }
    .mobile-account-header {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        min-height: 88px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        background: #fff;
        border-bottom: 1px solid #e3e9ef;
    }
    #mobileAccountIdentity { display: flex; min-width: 0; align-items: center; gap: 11px; }
    #mobileAccountIdentity > div { min-width: 0; }
    #mobileAccountIdentity strong,
    #mobileAccountIdentity small,
    .mobile-session-status { display: block; }
    #mobileAccountIdentity strong { overflow: hidden; color: #111820; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
    #mobileAccountIdentity small { overflow: hidden; color: #667085; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
    .mobile-account-avatar {
        display: inline-flex;
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
        align-items: center;
        justify-content: center;
        color: #fff;
        background: #1479d4;
        border-radius: 50%;
        font-weight: 900;
    }
    .mobile-session-status { margin-top: 2px; color: #087443; font-size: .7rem; font-weight: 800; }
    .mobile-session-status i { display: inline-block; width: 7px; height: 7px; background: #22a06b; border-radius: 50%; }
    .mobile-account-close {
        width: 44px;
        height: 44px;
        flex: 0 0 44px;
        color: #344054;
        background: #eef3f8;
        border: 0;
        border-radius: 50%;
    }
    .mobile-account-links { display: grid; gap: 7px; padding-top: 12px; }
    .mobile-account-links a,
    .mobile-account-links button {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) 18px;
        min-height: 58px;
        align-items: center;
        gap: 9px;
        width: 100%;
        padding: 8px 10px;
        color: #1d2939;
        background: #fff;
        border: 1px solid #e3e9ef;
        border-radius: 11px;
        text-align: left;
    }
    .mobile-account-links > * > i:first-child { color: #1479d4; text-align: center; }
    .mobile-account-links > * > i:last-child { color: #98a2b3; font-size: .7rem; }
    .mobile-account-links strong,
    .mobile-account-links small { display: block; }
    .mobile-account-links strong { color: inherit; font-size: .88rem; }
    .mobile-account-links small { color: #667085; font-size: .71rem; }
    .mobile-account-links .mobile-account-logout { color: #b42318; }
    .mobile-account-links .mobile-account-logout:disabled { opacity: .65; }

    .navbar-collapse {
        position: fixed;
        z-index: 1045;
        right: 0;
        bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
        left: 0;
        display: block !important;
        height: min(78dvh, calc(100dvh - var(--mobile-nav-height) - 24px - env(safe-area-inset-bottom)));
        max-height: calc(100dvh - var(--mobile-nav-height) - 24px);
        padding: 0 var(--mobile-gutter) 18px;
        overflow-y: auto;
        background: #111b27;
        border-top: 1px solid rgba(255,255,255,.12);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -18px 50px rgba(7,17,29,.32);
        opacity: 0;
        pointer-events: none;
        transform: translateY(calc(100% + var(--mobile-nav-height)));
        transition: transform 220ms ease, opacity 180ms ease;
    }

    body.mobile-menu-open .navbar-collapse,
    .navbar-collapse.show {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }
    .navbar-collapse.collapsing {
        display: block !important;
        height: min(78dvh, calc(100dvh - var(--mobile-nav-height) - 24px - env(safe-area-inset-bottom))) !important;
        transition: transform 220ms ease, opacity 180ms ease !important;
    }
    .mobile-menu-header {
        position: sticky;
        top: 0;
        z-index: 3;
        display: flex;
        min-height: 62px;
        align-items: center;
        justify-content: space-between;
        margin: 0 calc(-1 * var(--mobile-gutter)) 10px;
        padding: 9px var(--mobile-gutter);
        color: #fff;
        background: #111b27;
        border-bottom: 1px solid rgba(255,255,255,.12);
    }
    .mobile-menu-header strong,
    .mobile-menu-header small { display: block; }
    .mobile-menu-header strong { font-size: 1.08rem; }
    .mobile-menu-header small { color: rgba(255,255,255,.65); font-size: .76rem; }
    .mobile-menu-header button {
        width: 44px;
        height: 44px;
        color: #fff;
        background: rgba(255,255,255,.1);
        border: 1px solid rgba(255,255,255,.15);
        border-radius: 50%;
    }
    .site-translate-mobile {
        display: flex;
        width: 100%;
        height: auto;
        margin: 0 0 10px;
        padding: 10px 12px;
        color: #fff;
        background: rgba(255,255,255,.055);
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 9px;
    }
    .site-translate-mobile select {
        flex: 1;
        width: 100%;
        height: 38px;
        color: #111820;
        background: #fff;
        border-color: rgba(255,255,255,.35);
    }
    .navbar-collapse .navbar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        width: 100%;
        margin: 0 !important;
    }
    .navbar-collapse .nav-link,
    .navbar-collapse .account-toggle {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 46px;
        padding: 10px 12px !important;
        justify-content: flex-start;
        color: #fff !important;
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 9px;
        background: rgba(255,255,255,.055);
    }
    .navbar .dropdown-menu {
        position: static !important;
        width: 100% !important;
        max-height: none !important;
        margin: 4px 0 8px !important;
        transform: none !important;
        box-shadow: none !important;
    }
    .site-menu-dropdown { grid-column: 1 / -1; }
    .site-menu-dropdown > .nav-link { display: none !important; }
    .site-menu-dropdown > .site-mega-menu {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 7px;
        padding: 0 !important;
        background: transparent !important;
        border: 0 !important;
    }
    .site-mega-menu .dropdown-item {
        display: flex !important;
        min-width: 0;
        min-height: 52px;
        align-items: center;
        gap: 9px;
        padding: 8px 9px;
        color: #fff !important;
        background: rgba(255,255,255,.055);
        border: 1px solid rgba(255,255,255,.1);
        border-radius: 9px;
        white-space: normal;
    }
    .site-mega-menu .dropdown-item i { flex: 0 0 20px; color: var(--ca-amber); text-align: center; }
    .site-mega-menu .dropdown-item strong { color: inherit; font-size: .84rem; line-height: 1.2; }
    .site-mega-menu .dropdown-item small { display: none; }
    .navbar-collapse #userArea { display: none !important; }
    .navbar-collapse #userArea > li { grid-column: 1 / -1; }
    .navbar-collapse .auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
    .navbar-collapse .auth-actions a { display: flex; align-items: center; justify-content: center; min-height: 46px; margin: 0 !important; }

    .mobile-tab-bar {
        position: fixed;
        z-index: 1050;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        min-height: var(--mobile-nav-height);
        padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
        background: rgba(255,255,255,.98);
        border-top: 1px solid #d9e2ec;
        box-shadow: 0 -6px 22px rgba(7,17,29,.1);
    }
    .mobile-tab-bar a,
    .mobile-tab-bar button {
        display: flex;
        min-width: 0;
        min-height: 52px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 3px;
        color: #536174;
        background: transparent;
        border: 0;
        border-radius: 9px;
        font-size: 11px;
        font-weight: 800;
    }
    .mobile-tab-bar i { font-size: 18px; }
    .mobile-tab-bar .active,
    .mobile-tab-bar [aria-expanded="true"] { color: var(--ca-blue-dark); background: #eaf4fd; }

    .page-header {
        margin: 0 !important;
        padding: 44px 0 40px !important;
        min-height: 0 !important;
        text-align: left !important;
        background-position: center !important;
    }
    .page-header .container { padding-right: 22px !important; padding-left: 22px !important; }
    .page-header h2 { margin: 0 0 10px !important; font-size: clamp(2rem, 10vw, 3rem) !important; line-height: 1.06; overflow-wrap: anywhere; }
    .page-header h2::after { display: none; }
    .page-header p { margin: 5px 0 0 !important; font-size: .9rem !important; line-height: 1.35; }

    section,
    .auto-section,
    .auto-live-section,
    .home-cta,
    .latest-updates { scroll-margin-top: 64px; }

    .form-control,
    input.form-control,
    select.form-control,
    textarea.form-control,
    .form-container input:not([type="checkbox"]),
    .form-container select,
    .form-container textarea {
        min-height: 44px;
        padding: 9px 11px;
        font-size: 16px;
        border-radius: 9px;
    }
    textarea.form-control,
    .form-container textarea { min-height: 88px; }
    .btn,
    .btn.btn-custom { min-height: var(--ca-btn-height); padding: var(--ca-btn-padding-y) var(--ca-btn-padding-x); border-radius: var(--ca-button-radius); }

    .auth-page { padding: 18px 0 24px; }
    .auth-page-header { display: none; }
    .auth-layout { gap: 12px !important; margin: 0 auto !important; }
    .auth-choice-panel { padding: 16px !important; border-radius: var(--mobile-radius) !important; }
    .auth-choice-panel > p:not(.auto-eyebrow) { display: none; }
    .onboarding-path > p:not(.auto-eyebrow) { display: block !important; margin: 3px 0 8px; font-size: .82rem; }
    .auth-choice-panel h2 { margin-bottom: 10px !important; font-size: 1.35rem !important; }
    .onboarding-progress { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; color: rgba(255,255,255,.78); font-size: .72rem; font-weight: 800; }
    .onboarding-progress > div { display: flex; gap: 5px; }
    .onboarding-progress i { display: block; width: 30px; height: 4px; background: rgba(255,255,255,.28); border-radius: 99px; }
    .onboarding-progress i.is-complete { background: var(--ca-amber); }
    .auth-route-switcher { margin-top: 8px; }
    .auth-route-switcher summary { min-height: 40px; padding: 9px 0; color: #fff; cursor: pointer; font-size: .78rem; font-weight: 800; text-decoration: underline; }
    .auth-route-list { display: flex !important; gap: 8px !important; margin-top: 10px !important; overflow-x: auto; scroll-snap-type: x mandatory; }
    .auth-route-list a { min-width: 155px; grid-template-columns: 34px 1fr !important; padding: 9px !important; scroll-snap-align: start; }
    .auth-route-list i { width: 34px !important; height: 34px !important; }
    .auth-route-list small { display: none !important; }
    .form-container { width: 100%; max-width: none !important; margin: 0 auto !important; padding: 16px !important; gap: 10px !important; box-shadow: none !important; }
    #memberRegisterPanel, .club-setup-panel { gap: 10px !important; }
    .register-intro { font-size: .9rem; }
    .auth-form-heading { margin-bottom: 3px; }
    .auth-form-heading .auto-eyebrow { margin-bottom: 2px; }
    .auth-form-heading h1 { margin: 0 0 3px; }
    .auth-form-heading span { color: #667085; font-size: .82rem; }

    .mobile-disclosure-trigger {
        display: flex;
        width: 100%;
        min-height: 46px;
        align-items: center;
        gap: 10px;
        margin: 10px 0;
        padding: 10px 13px;
        color: var(--ca-ink);
        background: #fff;
        border: 1px solid #cfd8e3;
        border-radius: 10px;
        font-weight: 800;
        text-align: left;
    }
    .mobile-filter-trigger {
        position: sticky;
        top: 64px;
        z-index: 24;
        box-shadow: 0 5px 14px rgba(7,17,29,.08);
    }
    .mobile-disclosure-trigger span { flex: 1; }
    .mobile-filter-count {
        display: inline-flex;
        min-width: 20px;
        height: 20px;
        align-items: center;
        justify-content: center;
        color: #fff;
        background: #1479d4;
        border-radius: 999px;
        font-size: .68rem;
    }
    .mobile-filter-count[hidden] { display: none; }
    .mobile-disclosure-chevron { transition: transform .2s ease; }
    .mobile-disclosure-trigger[aria-expanded="true"] .mobile-disclosure-chevron { transform: rotate(180deg); }
    .mobile-disclosure:not(.is-open) { display: none !important; }

    .mobile-sheet {
        position: fixed !important;
        z-index: 1060 !important;
        right: 0 !important;
        bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)) !important;
        left: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-height: min(72dvh, 620px) !important;
        margin: 0 !important;
        padding: 0 var(--mobile-gutter) 18px !important;
        overflow-y: auto !important;
        background: #fff !important;
        border: 0 !important;
        border-radius: 18px 18px 0 0 !important;
        box-shadow: 0 -20px 60px rgba(7,17,29,.28) !important;
    }
    .mobile-sheet-header {
        position: sticky;
        top: 0;
        z-index: 2;
        display: flex;
        min-height: 54px;
        align-items: center;
        justify-content: space-between;
        margin: 0 calc(-1 * var(--mobile-gutter)) 12px;
        padding: 10px var(--mobile-gutter);
        background: #fff;
        border-bottom: 1px solid #e3e9ef;
    }
    .mobile-sheet-header button { width: 44px; height: 44px; background: #eef3f8; border: 0; border-radius: 50%; }
    .listing-toolbar,
    .jobs-toolbar { gap: 10px !important; }
    .listing-search,
    .listing-filter-group,
    .listing-toolbar > *,
    .jobs-toolbar > * { width: 100% !important; max-width: none !important; }
    .listing-filter-group { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }
    .listing-filter-group .btn { width: 100%; margin: 0 !important; }
    .event-refine-bar,
    .club-refine-bar {
        display: grid !important;
        grid-template-columns: 1fr !important;
        width: 100% !important;
        margin: 4px 0 0 !important;
        padding: 10px !important;
        gap: 9px !important;
    }
    .event-segmented { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
    .event-segmented button { min-width: 0; min-height: 40px; padding: 7px 5px; font-size: .76rem; }

    .listing-heading { margin: 18px 0 10px !important; text-align: left !important; }
    .listing-heading p { margin-bottom: 3px !important; font-size: .72rem !important; }
    .listing-heading h2 { margin-bottom: 4px !important; font-size: 1.28rem !important; }
    .listing-heading span { display: none; }
    .listing-guide { margin: 0 !important; padding: 12px !important; }
    .listing-guide h3 { margin-bottom: 4px; }
    .listing-guide p { margin-bottom: 9px; font-size: .82rem; }
    .listing-guide-actions { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; }
    .clubs-listing-page .listing-guide p {
        display: -webkit-box;
        overflow: hidden;
        line-height: 1.38;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .clubs-listing-page .club-tiers-disclosure summary small { display: none; }

    .event-insight-strip,
    .club-insight-strip {
        display: grid !important;
        grid-auto-columns: minmax(94px, 1fr);
        grid-auto-flow: column;
        grid-template-columns: none !important;
        gap: 7px !important;
        margin: 8px 0 10px !important;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .event-insight-strip::-webkit-scrollbar,
    .club-insight-strip::-webkit-scrollbar { display: none; }
    .event-insight-strip div,
    .club-insight-strip div { min-width: 94px; padding: 8px 9px !important; box-shadow: none !important; }
    .event-insight-strip span,
    .club-insight-strip span { font-size: .61rem !important; white-space: nowrap; }
    .event-insight-strip strong,
    .club-insight-strip strong { font-size: 1.18rem !important; }

    .portal-layout,
    .community-layout,
    .market-layout,
    .messages-layout { gap: 12px !important; }
    .portal-sidebar,
    .community-sidebar,
    .market-panel,
    .messages-sidebar { margin: 0 0 10px !important; }

    .card,
    .community-card,
    .update-card,
    .event-item,
    .service-item { border-radius: var(--mobile-radius) !important; }
    .card-body { padding: 14px; }
    .row { margin-right: -8px; margin-left: -8px; }
    .row > [class*="col-"] { padding-right: 8px; padding-left: 8px; }
    .clubs-listing-page .community-card-img,
    .clubs-listing-page .community-card-img img {
        height: 128px !important;
        min-height: 128px !important;
        max-height: 128px !important;
    }
    .clubs-listing-page .community-card-body {
        padding: 12px !important;
    }
    .clubs-listing-page .club-logo-row {
        margin-top: -34px;
        margin-bottom: 9px;
        align-items: end;
    }
    .clubs-listing-page .club-logo-row img {
        width: 54px;
        height: 54px;
        border-width: 3px;
    }
    .clubs-listing-page .club-logo-row span {
        max-width: calc(100% - 66px);
        padding: 5px 8px;
        overflow: hidden;
        font-size: .68rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .clubs-listing-page .club-card h3 {
        display: -webkit-box;
        margin: 6px 0 6px !important;
        overflow: hidden;
        color: #111820;
        font-size: 1.02rem !important;
        line-height: 1.16 !important;
        overflow-wrap: anywhere;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
    .clubs-listing-page .club-card > .community-card-body > p {
        display: -webkit-box;
        min-height: 0;
        margin: 0 0 9px !important;
        overflow: hidden;
        color: #5f6f7f;
        font-size: .78rem !important;
        line-height: 1.36 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .clubs-listing-page .club-fit-row {
        gap: 5px;
        margin-bottom: 9px;
    }
    .clubs-listing-page .club-fit-row span {
        min-height: 28px;
        padding: 5px 7px;
        font-size: .68rem;
        line-height: 1.2;
    }
    .clubs-listing-page .listing-card-facts {
        gap: 5px;
        margin-bottom: 9px;
    }
    .clubs-listing-page .community-card-foot span {
        display: -webkit-box;
        overflow: hidden;
        line-height: 1.28;
        overflow-wrap: anywhere;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .clubs-listing-page .community-card-foot {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        margin-top: 8px;
    }
    .clubs-listing-page .community-card-foot .btn {
        min-height: 38px;
        padding: 7px 10px;
        white-space: nowrap;
    }

    .club-portal-shell { gap: 12px !important; }
    .club-hero-panel {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 0 !important;
        align-items: end !important;
        gap: 10px !important;
        padding: 14px !important;
        border-radius: 12px !important;
    }
    .club-identity { display: grid !important; grid-template-columns: 48px minmax(0, 1fr); align-items: center !important; gap: 9px !important; }
    .club-identity img { width: 48px !important; height: 48px !important; border-width: 2px !important; }
    .club-identity h1 { margin: 0 0 2px !important; font-size: 1.35rem !important; }
    .club-identity .detail-eyebrow { margin: 0 0 1px; font-size: .64rem; }
    .club-identity span { font-size: .72rem; }
    .club-hero-panel > .btn { min-width: 92px; padding: 8px 9px; font-size: .75rem; }
    .event-details-page { padding: 16px 0 28px !important; }
    .event-detail-shell { gap: 12px !important; }
    .event-description { margin-bottom: 10px !important; }
    .event-description p { margin: 0; font-size: .86rem; }
    .detail-info-grid { gap: 8px !important; margin-top: 10px !important; }
    .detail-info-grid section { padding: 12px !important; }
    .detail-info-grid h2 { margin-bottom: 6px !important; font-size: 1rem !important; }
    .club-panel { margin-top: 10px !important; }
    .club-news-list { gap: 5px !important; }
    .club-news-list article { padding: 8px 0 !important; }
    .club-news-list article p { margin: 3px 0 0; font-size: .8rem; }
    .booking-panel { position: static !important; padding: 12px !important; box-shadow: none !important; }
    .booking-panel h2 { margin-bottom: 7px; font-size: 1.05rem; }
    .booking-panel .portal-list-item { min-height: 48px; padding: 7px 4px !important; }
    .booking-panel .portal-list-item span { font-size: .7rem; }

    .auto-live-section #eventsGrid,
    .auto-live-section #coursesGridHome {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 10px;
        margin-right: calc(-1 * var(--mobile-gutter));
        overflow-x: auto;
        scroll-padding-left: var(--mobile-gutter);
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .auto-live-section #eventsGrid::-webkit-scrollbar,
    .auto-live-section #coursesGridHome::-webkit-scrollbar { display: none; }
    .auto-live-section #eventsGrid > *,
    .auto-live-section #coursesGridHome > * { min-width: min(82vw, 310px); flex: 0 0 min(82vw, 310px); scroll-snap-align: start; }
    .auto-live-section .text-center.mb-4 { display: flex; gap: 6px; margin-bottom: 10px !important; overflow-x: auto; text-align: left !important; }
    .auto-live-section .text-center.mb-4 .filter-btn { flex: 0 0 auto; margin: 0; }
    .auto-section,
    .auto-live-section,
    .home-cta { padding-top: 36px !important; padding-bottom: 36px !important; }
    .auto-section-heading { margin-bottom: 14px !important; text-align: left !important; }
    .auto-section-heading .auto-eyebrow { justify-content: flex-start !important; }
    .auto-section-heading h2 { font-size: 1.35rem !important; }

    /* Homepage app dashboard */
    .auto-hero-content {
        padding-top: 28px !important;
        padding-bottom: 108px !important;
    }
    .home-photo-competition-ad {
        width: 100% !important;
        margin: -82px 0 42px !important;
    }
    .home-hero-ad-stack {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .home-hero-ad-stack > .home-photo-competition-ad {
        margin: 0 !important;
    }
    .home-photo-competition-card {
        grid-template-columns: 86px minmax(0, 1fr) !important;
        min-height: 112px !important;
        padding: 9px !important;
    }
    .home-photo-competition-media img {
        min-height: 94px !important;
    }
    .home-photo-competition-copy small {
        font-size: .62rem !important;
    }
    .home-photo-competition-copy b {
        font-size: .9rem !important;
    }
    .home-photo-competition-copy em,
    .home-photo-competition-copy span {
        font-size: .72rem !important;
    }
    .auto-hero h1 {
        max-width: 330px;
        margin-bottom: 9px !important;
        font-size: 1.9rem !important;
        line-height: 1 !important;
    }
    .auto-hero-copy {
        display: -webkit-box;
        margin-bottom: 14px !important;
        overflow: hidden;
        font-size: .84rem !important;
        line-height: 1.4;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
    .auto-hero-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 7px !important; }
    .auto-hero-actions .btn { min-width: 0; min-height: 44px; padding: 8px !important; font-size: .76rem !important; }
    .auto-hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 1px !important;
        margin-top: 14px !important;
    }
    .auto-hero-stats span { min-height: 0 !important; padding: 7px !important; font-size: .59rem; line-height: 1.25; }
    .auto-hero-stats strong { font-size: .68rem; }

    .auto-quick-paths { margin-top: -28px !important; padding-bottom: 14px !important; }
    .auto-path-grid { grid-template-columns: 1fr !important; gap: 6px !important; }
    .auto-path-card {
        display: grid !important;
        grid-template-columns: 40px minmax(0, 1fr);
        grid-template-rows: auto auto;
        min-height: 64px !important;
        gap: 0 10px !important;
        align-items: center;
        padding: 9px 11px !important;
        border-radius: 11px !important;
        box-shadow: 0 6px 16px rgba(7,17,29,.1) !important;
    }
    .auto-path-card i { grid-row: 1 / 3; width: 38px !important; height: 38px !important; }
    .auto-path-card span { align-self: end; font-size: .68rem !important; }
    .auto-path-card strong { align-self: start; font-size: .78rem !important; line-height: 1.22 !important; }

    .auto-persona-grid,
    .auto-capability-grid,
    .auto-event-type-grid { grid-template-columns: 1fr !important; gap: 7px !important; }
    .auto-persona-card {
        display: grid !important;
        grid-template-columns: 40px minmax(0, 1fr);
        min-height: 0 !important;
        gap: 2px 10px !important;
        padding: 10px 11px !important;
        border-radius: 11px !important;
        box-shadow: none !important;
    }
    .auto-persona-icon {
        grid-row: 1 / 4;
        width: 38px !important;
        height: 38px !important;
        margin: 0 !important;
        border-radius: 9px !important;
    }
    .auto-persona-card h3 { margin: 0 !important; font-size: .92rem !important; }
    .auto-persona-card p {
        display: -webkit-box;
        margin: 0 !important;
        overflow: hidden;
        font-size: .73rem;
        line-height: 1.32;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .auto-persona-card a { margin-top: 3px !important; font-size: .73rem; }

    .auto-capability-grid article {
        display: grid !important;
        grid-template-columns: 40px minmax(0, 1fr) auto;
        min-height: 0 !important;
        align-items: center;
        gap: 2px 10px !important;
        padding: 10px 11px !important;
        border-radius: 11px !important;
    }
    .auto-module-icon {
        display: inline-flex;
        grid-row: 1 / 3;
        width: 38px;
        height: 38px;
        align-items: center;
        justify-content: center;
        color: var(--ca-track);
        background: var(--ca-amber);
        border-radius: 9px;
    }
    .auto-capability-grid h3 { grid-column: 2; margin: 0 !important; font-size: .92rem !important; }
    .auto-capability-summary { display: block; grid-column: 2; margin: 0; color: rgba(255,255,255,.72); font-size: .7rem; line-height: 1.28; }
    .auto-capability-grid ul { display: none !important; }
    .auto-capability-grid a {
        grid-column: 3;
        grid-row: 1 / 3;
        width: 44px !important;
        height: 44px;
        min-height: 44px;
        overflow: hidden;
        padding: 0 !important;
        color: transparent !important;
        font-size: 0;
        border-radius: 50% !important;
    }
    .auto-capability-grid a::after { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ca-track); content: '\2192'; font-size: 1rem; }

    .auto-split-grid { gap: 14px !important; }
    .auto-split h2,
    .auto-organiser h2 { margin-bottom: 7px !important; font-size: 1.3rem !important; }
    .auto-split p,
    .auto-organiser p { margin-bottom: 9px; font-size: .8rem !important; }
    .auto-feature-list { gap: 5px !important; margin: 10px 0 12px !important; font-size: .76rem; }
    .auto-showcase-panel { padding: 11px !important; border-radius: 11px !important; box-shadow: none !important; }
    .auto-showcase-header { margin-bottom: 7px !important; padding-bottom: 7px !important; font-size: .74rem; }
    .auto-flow-list { gap: 5px !important; }
    .auto-flow-list li { grid-template-columns: 25px minmax(0, 1fr) !important; gap: 4px 7px !important; padding: 7px 8px !important; }
    .auto-flow-list strong { font-size: .78rem !important; }
    .auto-flow-list small { font-size: .67rem !important; }

    .auto-event-type-grid article {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        min-height: 0 !important;
        gap: 1px 10px;
        align-items: center;
        padding: 9px 10px !important;
        border-radius: 11px !important;
    }
    .auto-event-type-grid i { grid-row: 1 / 3; margin: 0 !important; font-size: 1.25rem !important; text-align: center; }
    .auto-event-type-grid h3 { margin: 0 !important; font-size: .9rem !important; }
    .auto-event-type-grid p { font-size: .71rem; line-height: 1.3; }

    .auto-organiser-inner { gap: 8px !important; padding: 12px !important; border-radius: 11px !important; box-shadow: none !important; }
    .auto-organiser-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 7px !important; }
    .auto-organiser-actions .btn { min-width: 0; padding: 8px !important; font-size: .72rem !important; }

    .home-event-filter-buttons { display: none !important; }
    .home-event-filter {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        margin: 0 0 10px;
        color: #344054;
        font-size: .72rem;
        font-weight: 800;
    }
    .home-event-filter .form-control { min-height: 44px; padding: 6px 30px 6px 10px; font-size: 14px; }

    .auto-live-section #eventsGrid > *,
    .auto-live-section #coursesGridHome > * { min-width: min(76vw, 285px); flex-basis: min(76vw, 285px); margin-bottom: 0 !important; }
    .auto-live-section .community-card-img,
    .auto-live-section .community-card-img img { height: 96px !important; min-height: 96px !important; }
    .auto-live-section .community-card-body { padding: 9px !important; }
    .auto-live-section .community-card-meta { margin-bottom: 4px; font-size: .62rem; }
    .auto-live-section .community-card-body h3 { margin-bottom: 5px; font-size: .9rem; }
    .auto-live-section .community-card-body > p { display: none; }
    .auto-live-section .community-card-foot { margin-top: 6px; }
    .auto-live-section .community-card-foot .btn { min-height: 44px; padding: 6px 10px; font-size: .7rem; }
    .auto-live-section .section-action { margin-top: 10px; text-align: left !important; }
    .auto-live-section .section-action .btn { min-height: 44px; padding: 7px 12px; font-size: .74rem; }

    .home-cta { padding: 24px 0 !important; }
    .home-cta-inner { padding: 14px !important; }
    .home-cta-inner h2 { margin-bottom: 8px !important; font-size: 1.2rem !important; }
    .home-cta-actions { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; gap: 7px !important; }
    .latest-updates { padding-top: 30px !important; }
    .updates-feature { padding: 14px !important; }

    .modal,
    .community-modal,
    .market-modal,
    .message-modal { padding: 0 !important; }
    .modal-dialog,
    .community-modal-dialog,
    .market-modal-dialog,
    .message-modal-dialog {
        position: absolute !important;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100% !important;
        max-width: none !important;
        max-height: 88dvh !important;
        margin: 0 !important;
        overflow-y: auto;
        border-radius: 18px 18px 0 0 !important;
    }
    .modal-header,
    .community-modal-header,
    .market-modal-header { padding: 14px 16px 10px !important; }
    .modal-body,
    .community-modal-body,
    .market-modal-body { padding: 14px 16px !important; }
    .modal-footer { position: sticky; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; }

    .footer { padding: 24px 0 12px !important; }
    .footer h2 { margin: 0 0 8px !important; font-size: 1.05rem !important; }
    .footer-contact,
    .footer-link { margin-bottom: 16px !important; }
    .footer-link a { display: inline-flex !important; margin: 0 14px 7px 0 !important; font-size: .88rem; }
    .footer-social { display: none; }
    .copyright { padding-top: 10px !important; }
    .copyright p { margin: 3px 0 !important; font-size: .78rem !important; text-align: left !important; }
    .back-to-top { display: none !important; }
    .accessibility-panel { right: 10px !important; bottom: calc(var(--mobile-nav-height) + 10px + env(safe-area-inset-bottom)) !important; }
    .accessibility-toggle span { display: none; }

    .cookie-consent { bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)) !important; padding: 10px !important; }
    .cookie-consent-inner { width: 100%; max-width: 100%; max-height: 58dvh; padding: 14px !important; overflow-x: hidden; overflow-y: auto; box-sizing: border-box; }
    .cookie-consent-options { display: flex; flex-wrap: wrap; gap: 8px 14px; }
    .cookie-consent-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
    .cookie-consent-actions .btn { min-width: 0 !important; white-space: normal; }
    .cookie-consent-actions .btn:last-child { grid-column: 1 / -1; }
}

@media (max-width: 374.98px) {
    :root { --mobile-gutter: 12px; }
    .mobile-tab-bar a, .mobile-tab-bar button { font-size: 10px; }
    .mobile-tab-bar i { font-size: 16px; }
}

@media (max-width: 767.98px) and (orientation: landscape) {
    .mobile-account-panel {
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(390px, 82vw);
        max-height: 100dvh;
        border-radius: 18px 0 0 18px;
    }

    .mobile-account-header { min-height: 76px; }
    .mobile-account-links { grid-template-columns: 1fr 1fr; }
    .mobile-account-links .mobile-account-logout { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-disclosure-chevron { transition: none; }
}
