/*
 * Sportspal website v2 (web UX v2, 7 Oct 2026) — the website's own chrome and pages, on the app's
 * visual language (the --spx-* tokens from app-explore.css, loaded before this file by
 * partials/app-head).
 *
 *   1. Header (partials/site-header)          5. Place sheet (partials/place-sheet)
 *   2. Phone web: tab bar + bottom edge        6. Explore lists on the web (desktop layer)
 *   3. Sign-in sheet (partials/signin-sheet)   7. Home (landing/landing-page)
 *   4. Search palette (partials/search-palette) 8. Race page head (category/partials/web-event-head)
 *
 * The apps are untouched: everything here either styles markup the apps never render (.sh, .sps,
 * .spp, .spl, .swh, .spw) or is scoped to html:not(.is-app). Breakpoints: phone < 768 px,
 * tablet 768–1023, laptop 1024–1199, desktop 1200+.
 */

[x-cloak] {
    display: none !important;
}

/* ==== 1. Header =========================================================================== */
html:not(.is-app) body > header {
    padding: 0;
}
html.is-app .sh {
    display: none !important;
}
.sh {
    background: var(--spx-black);
    color: #fff;
    font-family: var(--spx-body);
}
.sh__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 1320px;
    height: 64px;
    margin: 0 auto;
    padding: 0 24px;
}
.sh__logo {
    flex: 0 0 auto;
    margin-right: 20px;
    line-height: 0;
}
.sh__logo img {
    width: auto;
    height: 36px;
}
.sh__nav {
    display: flex;
    align-self: stretch;
    gap: 2px;
    margin-right: auto;
}
.sh__navlink {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 12px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
}
.sh__navlink:hover,
.sh__navlink:focus-visible {
    color: #fff;
}
.sh__navlink.is-active {
    color: #fff;
    font-weight: 600;
}
.sh__navlink.is-active::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--spx-teal);
}
.sh__search {
    flex: 0 1 300px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    height: 40px;
    padding: 0 10px 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.62);
    font-size: 14px;
    cursor: text;
}
.sh__search:hover {
    background: rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.82);
}
.sh__search svg {
    flex: 0 0 auto;
}
.sh__searchtext {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sh__kbd {
    flex: 0 0 auto;
    padding: 3px 7px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    color: rgba(255, 255, 255, 0.55);
    font: 600 11px/1 var(--spx-body);
}
.sh__place {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 200px;
    height: 40px;
    padding: 0 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}
.sh__place:hover {
    border-color: rgba(255, 255, 255, 0.6);
}
.sh__place svg {
    flex: 0 0 auto;
}
.sh__placetext {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sh__link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 11px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
}
.sh__link:hover,
.sh__link:focus-visible,
.sh__link.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.sh__signin {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 40px;
    margin-left: 4px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--spx-teal);
    color: #fff;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
}
.sh__signin:hover,
.sh__signin:focus-visible {
    background: #00968B;
    color: #fff;
}
.sh__account {
    flex: 0 0 auto;
    margin-left: 4px;
}
.sh__avatar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 9px 0 3px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: transparent;
    color: #fff;
}
.sh__avatar:hover,
.sh__avatar[aria-expanded="true"] {
    border-color: rgba(255, 255, 255, 0.6);
}
.sh__avatar img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.sh__menulabel {
    font-size: 14px;
    font-weight: 500;
}
.sh__avatar[aria-expanded="true"] .sh__chev {
    transform: rotate(180deg);
}
.sh__menu {
    min-width: 270px;
    margin-top: 8px !important;
    padding: 8px;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.26);
    font-family: var(--spx-body);
}
.sh__menu .dropdown-item {
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--spx-ink);
    font-size: 15px;
}
.sh__menu .dropdown-item:hover,
.sh__menu .dropdown-item:focus {
    background: var(--spx-ground);
    color: var(--spx-ink);
}
.sh__menu .dropdown-divider {
    margin: 6px 4px;
    border-color: var(--spx-line);
}
.sh__menu .sh__logout {
    color: var(--spx-bad-ink);
}
.sh__who {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 6px;
    padding: 8px 10px 12px;
    border-bottom: 1px solid var(--spx-line);
}
.sh__who img {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.sh__who span {
    min-width: 0;
}
.sh__who b,
.sh__who small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sh__who b {
    color: var(--spx-ink);
    font-size: 15px;
    font-weight: 600;
}
.sh__who small {
    max-width: 200px;
    color: var(--spx-mute);
    font-size: 13px;
}

@media (max-width: 1199.98px) {
    .sh__link span {
        display: none;
    }
    .sh__link {
        padding: 0 10px;
    }
    .sh__navlink {
        padding: 0 9px;
    }
    .sh__navlink.is-active::after {
        left: 9px;
        right: 9px;
    }
    .sh__search {
        flex-basis: 230px;
    }
}
@media (max-width: 1099.98px) {
    .sh__bar {
        gap: 6px;
        padding: 0 16px;
    }
    .sh__logo {
        margin-right: 8px;
    }
    .sh__searchtext,
    .sh__kbd,
    .sh__placetext,
    .sh__place .sh__chev,
    .sh__menulabel {
        display: none;
    }
    .sh__search,
    .sh__place {
        flex: 0 0 40px;
        justify-content: center;
        width: 40px;
        padding: 0;
    }
}

/* ==== 2. Phone web: the app's chrome below 768 px ======================================== */
@media (max-width: 767.98px) {
    .sh__bar {
        gap: 4px;
        height: 56px;
        padding: 0 8px 0 16px;
    }
    .sh__logo {
        margin-right: auto;
    }
    .sh__logo img {
        height: 30px;
    }
    .sh__nav,
    .sh__link,
    .sh__account,
    .sh__signin {
        display: none !important;
    }
    .sh__place {
        flex: 0 1 auto;
        width: auto;
        max-width: 160px;
        height: 36px;
        padding: 0 11px 0 10px;
    }
    .sh__placetext {
        display: inline;
    }
    .sh__search {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        border: 0;
        background: transparent;
        color: #fff;
    }
    .sh__search:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    /* The tab bar (partials/app-tabbar): Home · Explore · Plan · Ask · More, as in the apps. */
    html:not(.is-app) .sp-tabbar,
    html:not(.is-app) .sp-tabbar[hidden] {
        display: flex !important;
    }
    html:not(.is-app) .sp-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        box-sizing: border-box;
        height: 56px;
        margin: 0;
        padding: 0;
        align-items: stretch;
        justify-content: space-around;
        background: #fff;
        border-top: 1px solid #DDDDDD;
    }
    html:not(.is-app) .sp-tabbar__tab {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 0 4px;
        color: var(--gray-58, #585858);
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    html:not(.is-app) .sp-tabbar__tab.is-active {
        color: var(--theme-clr, #00A99D);
    }
    html:not(.is-app) .sp-tabbar__tab svg {
        display: block;
        width: 24px;
        height: 24px;
    }
    html:not(.is-app) .sp-tabbar__label {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-family: var(--spx-body);
        font-size: 11px;
        line-height: 13px;
        font-weight: 500;
    }
    html:not(.is-app) .sp-tabbar__tab.is-active .sp-tabbar__label {
        font-weight: 600;
    }
    html:not(.is-app) body {
        padding-bottom: 64px;
    }

    /* One thing on the bottom edge: the bar. The floating Ask button, the floating category nav and
       the guest sign-in bar give way (Ask is a tab; the types are Explore's tabs; Sign in is in More
       and in every gate's sheet). The cookie bar, while it is due, stands on the tab bar. */
    html:not(.is-app) .offering_nav,
    html:not(.is-app) .sp-ask,
    html:not(.is-app) #contact-signin-bar {
        display: none !important;
    }
    html:not(.is-app) .cc-bar {
        bottom: 56px;
    }
    /* The race page: its own Register bar takes the tab bar's place, as in the apps. */
    html:not(.is-app) body[data-page="website.event.preview"] .sp-tabbar {
        display: none !important;
    }
    html:not(.is-app) body[data-page="website.event.preview"] {
        padding-bottom: 84px;
    }
    html:not(.is-app) body[data-page="website.event.preview"] .cc-bar {
        bottom: 72px;
    }
    /* Ask fills the screen between the header and the tab bar. */
    html:not(.is-app) .ask-app {
        height: calc(100dvh - var(--ask-top, 56px) - 56px);
        min-height: 0;
    }
    html:not(.is-app) body[data-page="website.ask"] {
        padding-bottom: 56px;
    }
    html:not(.is-app) .ask-side {
        bottom: 56px;
    }
    html:not(.is-app) .sp-place-confirm {
        top: 64px;
    }
}

/* ==== 3. Sign-in sheet ==================================================================== */
.sps,
.spp,
.spl {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: var(--spx-body);
}
.sps__backdrop,
.spp__backdrop,
.spl__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 5, 5, 0.55);
}
.sps__panel {
    position: relative;
    width: min(420px, 100%);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 30px 28px 22px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    color: var(--spx-ink);
    text-align: center;
}
.sps__close,
.spl__close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--spx-mute);
}
.sps__close:hover,
.spl__close:hover {
    background: var(--spx-ground);
    color: var(--spx-ink);
}
.sps__mark {
    display: block;
    width: 48px;
    height: 48px;
    margin: 0 auto 14px;
    border-radius: 12px;
}
.sps__title {
    margin: 0 0 8px;
    color: var(--spx-ink);
    font-family: var(--spx-head);
    font-size: 23px;
    font-weight: 600;
    line-height: 1.2;
    text-wrap: balance;
}
.sps__text {
    margin: 0 auto 22px;
    max-width: 34ch;
    color: var(--spx-mute);
    font-size: 15px;
    line-height: 1.5;
}
.sps__opts {
    display: grid;
    gap: 10px;
}
.sps__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 1.5px solid var(--spx-line);
    border-radius: 14px;
    background: #fff;
    color: var(--spx-ink);
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
}
.sps__btn:hover,
.sps__btn:focus-visible {
    border-color: var(--spx-ink);
    color: var(--spx-ink);
}
.sps__btn--apple,
.sps__btn--apple:hover,
.sps__btn--apple:focus-visible {
    border-color: #000;
    background: #000;
    color: #fff;
}
.sps__btn--strava,
.sps__btn--strava:hover {
    border-color: #FC4C02;
    background: #FC4C02;
    color: #fff;
}
.sps__btn--email,
.sps__btn--email:hover,
.sps__btn--email:focus-visible {
    border-color: var(--spx-teal);
    background: var(--spx-teal);
    color: #fff;
}
.sps__or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0;
    color: var(--spx-mute);
    font-size: 13px;
}
.sps__or::before,
.sps__or::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--spx-line);
}
.sps__new {
    margin: 18px 0 0;
    color: var(--spx-mute);
    font-size: 14.5px;
}
.sps__new a {
    color: var(--spx-teal-deep);
    font-weight: 600;
}

/* ==== 4. Search palette =================================================================== */
.spp {
    align-items: flex-start;
    padding-top: min(12vh, 110px);
}
.spp__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(640px, 100%);
    max-height: min(72vh, 640px);
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    color: var(--spx-ink);
}
.spp__field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    margin: 0;
    padding: 0 12px 0 18px;
    height: 62px;
    border-bottom: 1px solid var(--spx-line);
    color: var(--spx-mute);
}
.spp__field input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--spx-ink);
    font-size: 17px;
    -webkit-appearance: none;
    appearance: none;
}
.spp__field input::-webkit-search-cancel-button {
    display: none;
}
.spp__cancel {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--spx-teal-deep);
    font-size: 14px;
    font-weight: 600;
}
.spp__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 8px 12px;
}
.spp__start {
    padding: 8px 10px;
}
.spp__label {
    margin: 10px 10px 6px;
    color: var(--spx-mute);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.spp__start .spp__label {
    margin: 4px 0 10px;
}
.spp__shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.spp__shortcut {
    display: inline-flex;
    align-items: center;
    height: 36px;
    padding: 0 14px;
    border: 1.5px solid var(--spx-line);
    border-radius: 999px;
    color: var(--spx-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.spp__shortcut:hover {
    border-color: var(--spx-ink);
    color: var(--spx-ink);
}
.spp__hint {
    margin: 16px 0 0;
    color: var(--spx-mute);
    font-size: 14px;
    line-height: 1.5;
}
.spp__list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.spp__row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 7px 10px;
    border-radius: 12px;
    color: var(--spx-ink);
    text-decoration: none;
}
.spp__row:hover,
.spp__row.is-active {
    background: var(--spx-ground);
    color: var(--spx-ink);
}
.spp__row--action {
    color: var(--spx-teal-deep);
}
.spp__row--action:hover,
.spp__row--action.is-active {
    color: var(--spx-teal-deep);
}
.spp__img {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--spx-ground);
}
.spp__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.spp__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--spx-teal-soft);
    color: var(--spx-teal-deep);
}
.spp__text {
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.spp__name {
    overflow: hidden;
    font-size: 15px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.spp__sub {
    overflow: hidden;
    color: var(--spx-mute);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.spp__busy {
    padding: 12px 10px;
    color: var(--spx-mute);
    font-size: 14px;
}

/* ==== 5. Place sheet ====================================================================== */
.spl__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(560px, 100%);
    max-height: min(80vh, 720px);
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    color: var(--spx-ink);
}
.spl__head {
    flex: 0 0 auto;
    padding: 20px 60px 14px 22px;
    border-bottom: 1px solid var(--spx-line);
}
.spl__head h2 {
    margin: 0;
    font-family: var(--spx-head);
    font-size: 21px;
    font-weight: 600;
}
.spl__body {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 16px 22px 22px;
}
.spl__near {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--spx-teal);
    border-radius: 14px;
    background: var(--spx-teal-soft);
    color: var(--spx-teal-deep);
    text-align: left;
}
.spl__near:disabled {
    opacity: 0.7;
}
.spl__nearic {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
}
.spl__neartext b,
.spl__neartext small {
    display: block;
}
.spl__neartext b {
    font-size: 15.5px;
    font-weight: 700;
}
.spl__neartext small {
    color: var(--spx-ink-2);
    font-size: 13px;
}
.spl__note {
    margin: 10px 0 0;
    color: var(--spx-warn-ink);
    font-size: 13.5px;
}
.spl__label {
    margin: 20px 0 8px;
    color: var(--spx-mute);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.spl__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.spl__chip {
    height: 36px;
    padding: 0 14px;
    border: 1.5px solid var(--spx-line);
    border-radius: 999px;
    background: #fff;
    color: var(--spx-ink);
    font-size: 14px;
    font-weight: 600;
}
.spl__chip--sm {
    height: 32px;
    padding: 0 12px;
    font-size: 13.5px;
    font-weight: 500;
}
.spl__chip:hover {
    border-color: var(--spx-ink);
}
.spl__chip.is-on {
    border-color: var(--spx-ink);
    background: var(--spx-ink);
    color: #fff;
}

/* Phones: the three overlays are bottom sheets (the palette fills the screen). */
@media (max-width: 767.98px) {
    .sps,
    .spl {
        align-items: flex-end;
        padding: 0;
    }
    .sps__panel,
    .spl__panel {
        width: 100%;
        max-height: 88vh;
        border-radius: 22px 22px 0 0;
    }
    .sps__panel {
        padding: 28px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    }
    .spl__body {
        padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    }
    .spp {
        padding: 0;
    }
    .spp__panel {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }
    .spp__field {
        height: 58px;
        padding-left: 16px;
    }
    .spp__field input {
        font-size: 16px;
    }
}

/* ==== 6. Explore lists on the web (category/category + partials/app-events, app-org-types) ==== */
/* The same list as the apps (app-explore.css styles it at phone width); here the website's page
   heading, its ground, and — from 768 px — a centred grid with the sheets as side panels. */
html:not(.is-app) body[data-page="website.category.organization"] {
    background: var(--spx-ground);
}
html:not(.is-app) {
    --spx-hdr: 64px;
    --spx-gutter: max(24px, calc((100% - 1240px) / 2));
}
.spx-whead {
    padding: 18px 16px 2px;
    background: var(--spx-ground);
    font-family: var(--spx-body);
}
.spx-whead__h1 {
    margin: 0;
    color: var(--spx-ink);
    font-family: var(--spx-head);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
    text-wrap: balance;
}
.spx-whead__sub {
    margin: 4px 0 0;
    color: var(--spx-mute);
    font-size: 15px;
}
/* The landing-page links under a list. Their Bootstrap .row carries negative side margins that a
   .container used to absorb; the page gutter does that now (without it the page was 12 px wider
   than the screen and slid sideways). */
.spx-web-after {
    padding: 8px 16px 28px;
    background: var(--spx-ground);
}
.spx-askrow__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid var(--spx-teal);
    border-radius: 14px;
    background: var(--spx-teal-soft);
    color: var(--spx-teal-deep);
    text-decoration: none;
}
.spx-askrow__link:hover {
    color: var(--spx-teal-deep);
}
.spx-askrow__link svg {
    flex: 0 0 auto;
}
.spx-askrow__link b,
.spx-askrow__link small {
    display: block;
}
.spx-askrow__link b {
    font-size: 15px;
}
.spx-askrow__link small {
    color: var(--spx-ink-2);
    font-size: 13px;
}
.spx-map {
    margin: 4px 16px 0;
    height: 62vh;
    min-height: 380px;
    overflow: hidden;
    border-radius: 16px;
    background: #DADFDF;
}
.spx-map .map-container {
    height: 100% !important;
}

@media (max-width: 767.98px) {
    html:not(.is-app) {
        --spx-hdr: 56px;
    }
    .spx-whead__sub {
        display: none;
    }
}

@media (min-width: 768px) {
    .spx-web-types {
        display: none;
    }
    .spx-whead {
        padding: 30px var(--spx-gutter) 4px;
    }
    .spx-web-after {
        padding-left: var(--spx-gutter);
        padding-right: var(--spx-gutter);
    }
    .spx-whead__h1 {
        font-size: 34px;
    }
    html:not(.is-app) .spx-sports {
        padding: 14px var(--spx-gutter) 10px;
    }
    html:not(.is-app) .spx {
        padding-left: var(--spx-gutter);
        padding-right: var(--spx-gutter);
        padding-bottom: 28px;
    }
    html:not(.is-app) .spx-search,
    html:not(.is-app) .spx-map {
        margin-left: 0;
        margin-right: 0;
    }
    html:not(.is-app) .spx-toolbar,
    html:not(.is-app) .spx-chips,
    html:not(.is-app) .spx-quick,
    html:not(.is-app) .spx-count,
    html:not(.is-app) .spx-list,
    html:not(.is-app) .spx-more,
    html:not(.is-app) .spx-cal {
        padding-left: 0;
        padding-right: 0;
    }
    html:not(.is-app) .spx-toolbar {
        padding-top: 4px;
    }
    html:not(.is-app) .spx-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 14px;
    }
    html:not(.is-app) .spx-list > .spx-empty,
    html:not(.is-app) .spx-list > div:has(> .spx-empty) {
        grid-column: 1 / -1;
    }
    html:not(.is-app) .spx-card {
        height: 100%;
        transition: box-shadow 0.15s ease, transform 0.15s ease;
    }
    html:not(.is-app) .spx-card:hover {
        box-shadow: 0 8px 24px rgba(4, 5, 5, 0.1);
        transform: translateY(-1px);
    }
    html:not(.is-app) .spx-card__link {
        padding: 10px 44px 10px 10px;
    }
    html:not(.is-app) .spx-card__thumb {
        flex-basis: 128px;
        width: 128px;
        height: 104px;
    }
    html:not(.is-app) .spx-card__name {
        font-size: 16px;
    }
    html:not(.is-app) .spx-cal {
        max-width: 880px;
    }
    html:not(.is-app) .spx-map {
        height: 600px;
    }

    /* Filters and Sort: a panel from the right instead of a bottom sheet. */
    html:not(.is-app) .spx-sheet__panel {
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: min(440px, 100vw);
        max-height: none;
        border-radius: 22px 0 0 22px;
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18);
        transform: translateX(105%);
    }
    html:not(.is-app) .spx-sheet.is-open .spx-sheet__panel {
        transform: translateX(0);
    }
    html:not(.is-app) .spx-sheet__grab {
        display: none;
    }
    html:not(.is-app) .spx-sheet__head {
        padding-top: 20px;
    }
    html:not(.is-app) .spx-sheet__panel--short {
        top: 0;
        bottom: auto;
        max-height: 100%;
        border-radius: 0 0 0 22px;
    }
}

/* ==== 7. Home (landing/landing-page, web UX v2 D4) ======================================== */
.swh {
    --swh-gutter: max(16px, calc((100% - 1240px) / 2));
    font-family: var(--spx-body);
}
/* style.css gives every <section> a white background and a 1510-px cap; these sections own theirs. */
.swh section.swh-hero,
.swh section.swh-sec {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}
.swh section.swh-sec {
    background: transparent;
}
.swh-hero {
    position: relative;
    overflow: hidden;
    background: var(--spx-black);
    color: #fff;
}
.swh-hero__art {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(58%, 820px);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
    mask-image: linear-gradient(to right, transparent 0%, #000 45%);
}
.swh-hero__art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}
.swh-hero__in {
    position: relative;
    padding: 64px var(--swh-gutter) 52px;
}
.swh-hero__h1 {
    max-width: 780px;
    margin: 0 0 28px;
    color: #fff;
    font-family: var(--spx-head);
    font-size: clamp(32px, 4.6vw, 56px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -0.01em;
    text-wrap: balance;
}
.swh-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(640px, 100%);
    height: 60px;
    padding: 0 7px 0 22px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    color: var(--spx-mute);
    font-size: 17px;
    text-align: left;
    cursor: text;
}
.swh-search svg {
    flex: 0 0 auto;
}
.swh-search__text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.swh-search__go {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    background: var(--spx-teal);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}
.swh-sports {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.swh-sport {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 46px;
    padding: 0 18px 0 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.swh-sport:hover,
.swh-sport:focus-visible {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}
.swh-sport__c {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
}
.swh-sport__c img {
    width: 22px;
    height: 22px;
}
.swh-wrap {
    padding: 28px var(--swh-gutter) 36px;
    background: var(--spx-ground);
    color: var(--spx-ink);
}
.swh-sec + .swh-sec,
.swh-next + .swh-sec {
    margin-top: 34px;
}
.swh-sec__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.swh-h2 {
    margin: 0;
    color: var(--spx-ink);
    font-family: var(--spx-head);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.15;
}
.swh-scope {
    margin: 3px 0 0;
    color: var(--spx-mute);
    font-size: 14.5px;
}
.swh-all {
    flex: 0 0 auto;
    color: var(--spx-teal-deep);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}
.swh-all:hover {
    color: var(--spx-teal-deep);
}
.swh-next {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 150px;
    padding: 22px 26px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--spx-black);
    color: #fff;
    text-decoration: none;
}
.swh-next:hover {
    color: #fff;
}
.swh-next--plain {
    min-height: 0;
    border: 1.5px solid var(--spx-line);
    background: var(--spx-card);
    color: var(--spx-ink);
}
.swh-next--plain:hover {
    color: var(--spx-ink);
}
.swh-next__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}
.swh-next__body {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.swh-next__eyebrow {
    color: #5FE0D5;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.swh-next--plain .swh-next__eyebrow {
    color: var(--spx-teal-deep);
}
.swh-next__title {
    font-family: var(--spx-head);
    font-size: 26px;
    font-weight: 600;
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.swh-next__meta {
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
}
.swh-next--plain .swh-next__meta {
    color: var(--spx-mute);
}
.swh-next__count {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: 20px;
    background: #fff;
    color: var(--spx-ink);
}
.swh-next__count b {
    font-family: var(--spx-head);
    font-size: 34px;
    line-height: 1;
}
.swh-next__count small {
    color: var(--spx-mute);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.swh-next__go {
    position: absolute;
    right: 26px;
    bottom: 16px;
    color: #5FE0D5;
    font-size: 14px;
    font-weight: 600;
}
.swh-next--plain .swh-next__go {
    position: static;
    flex: 0 0 auto;
    color: var(--spx-teal-deep);
}
.swh-next:has(.swh-next__count) .swh-next__go {
    display: none;
}
.swh-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.swh-tile {
    position: relative;
    height: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: var(--spx-card);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.swh-tile:hover {
    box-shadow: 0 8px 24px rgba(4, 5, 5, 0.1);
    transform: translateY(-1px);
}
.swh-tile__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}
.swh-tile__link:hover {
    color: inherit;
}
.swh-tile__im {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #DADFDF;
}
.swh-tile__im > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swh-tile__sport {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
}
.swh-tile__sport img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}
.swh-tile__soon {
    position: absolute;
    left: 8px;
    bottom: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(4, 5, 5, 0.78);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}
.swh-tile__b {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 14px 14px;
}
.swh-tile__when {
    color: var(--spx-teal-deep);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.swh-tile__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    color: var(--spx-ink);
    font-family: var(--spx-head);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.22;
    overflow-wrap: anywhere;
}
.swh-tile__where {
    overflow: hidden;
    color: var(--spx-mute);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.swh-tile__heart {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #6B7676;
}
.swh-tile__heart.is-on {
    color: #E0245E;
}
.swh-join {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    margin-top: 24px;
    padding: 18px 22px;
    border: 1.5px solid var(--spx-line);
    border-radius: 18px;
    background: var(--spx-card);
}
.swh-join__text {
    flex: 1 1 360px;
    min-width: 0;
}
.swh-join__text b {
    display: block;
    color: var(--spx-ink);
    font-size: 16px;
    font-weight: 700;
}
.swh-join__text span {
    display: block;
    margin-top: 2px;
    color: var(--spx-mute);
    font-size: 14.5px;
}
.swh-join__acts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.swh-btn {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 20px;
    border: 1.5px solid var(--spx-teal);
    border-radius: 999px;
    background: var(--spx-teal);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.swh-btn:hover {
    color: #fff;
}
.swh-btn--ghost {
    border-color: var(--spx-ink);
    background: transparent;
    color: var(--spx-ink);
}
.swh-btn--ghost:hover {
    color: var(--spx-ink);
}
.swh-types {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}
.swh-type {
    position: relative;
    display: block;
    height: 230px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--spx-black);
    color: #fff;
    text-decoration: none;
}
.swh-type img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.78;
    transition: transform 0.3s ease;
}
.swh-type:hover img {
    transform: scale(1.04);
}
.swh-type::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(4, 5, 5, 0.85) 0%, rgba(4, 5, 5, 0) 60%);
}
.swh-type__t {
    position: absolute;
    left: 16px;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.swh-type__t b {
    font-family: var(--spx-head);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.1;
}
.swh-type__t small {
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    line-height: 1.35;
}
.swh-type:hover,
.swh-type:focus-visible {
    color: #fff;
}
.swh-months {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.swh-month {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 12px 18px;
    border: 1.5px solid var(--spx-line);
    border-radius: 14px;
    background: var(--spx-card);
    color: var(--spx-ink);
    text-decoration: none;
}
.swh-month:hover {
    border-color: var(--spx-ink);
    color: var(--spx-ink);
}
.swh-month b {
    font-size: 16px;
}
.swh-month small {
    color: var(--spx-mute);
    font-size: 13px;
}
.swh-month--mine {
    border-color: var(--spx-teal);
    background: var(--spx-teal-soft);
}

@media (max-width: 1099.98px) {
    .swh-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .swh-strip__item:nth-child(n+7) {
        display: none;
    }
    .swh-types {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .swh-type {
        grid-column: span 2;
        height: 190px;
    }
    .swh-type--event,
    .swh-type--training {
        grid-column: span 3;
    }
}
@media (max-width: 767.98px) {
    .swh-hero__art {
        width: 100%;
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
        mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
    }
    .swh-hero__art img {
        opacity: 0.38;
    }
    .swh-hero__in {
        padding: 30px 16px 26px;
    }
    .swh-hero__h1 {
        margin-bottom: 20px;
        font-size: 34px;
    }
    .swh-search {
        height: 54px;
        padding-left: 16px;
        font-size: 16px;
    }
    .swh-search__go {
        display: none;
    }
    .swh-sports {
        flex-wrap: nowrap;
        margin: 18px -16px 0;
        padding: 0 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .swh-sports::-webkit-scrollbar {
        display: none;
    }
    .swh-sport {
        flex: 0 0 auto;
    }
    .swh-wrap {
        padding-top: 22px;
        padding-bottom: 28px;
    }
    .swh-h2 {
        font-size: 23px;
    }
    .swh-next {
        min-height: 128px;
        padding: 18px;
    }
    .swh-next__title {
        font-size: 21px;
    }
    .swh-next__count {
        width: 68px;
        height: 68px;
        border-radius: 16px;
    }
    .swh-next__count b {
        font-size: 26px;
    }
    .swh-strip {
        display: flex;
        gap: 12px;
        margin: 0 -16px;
        padding: 0 16px 4px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }
    .swh-strip::-webkit-scrollbar {
        display: none;
    }
    .swh-strip__item {
        flex: 0 0 74%;
        scroll-snap-align: start;
    }
    .swh-strip__item:nth-child(n+7) {
        display: block;
    }
    .swh-types {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .swh-type,
    .swh-type--event,
    .swh-type--training {
        grid-column: auto;
        height: 150px;
    }
    .swh-type--event {
        grid-column: 1 / -1;
    }
    .swh-type__t b {
        font-size: 20px;
    }
    .swh-type__t small {
        display: none;
    }
    .swh-type--event .swh-type__t small {
        display: block;
    }
    .swh-join__acts,
    .swh-join__acts .swh-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* ==== 8. Race page head (category/partials/web-event-head, web UX v2 D5) ================== */
html:not(.is-app) body[data-page="website.event.preview"] {
    background: var(--spx-ground);
}
section.spw {
    max-width: none;
    margin: 0;
    padding: 24px max(16px, calc((100% - 1240px) / 2)) 30px;
    background: var(--spx-ground);
    font-family: var(--spx-body);
    color: var(--spx-ink);
}
.spw__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
    gap: 28px;
    align-items: start;
}
.spw-media__main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    background: var(--spx-black);
    cursor: zoom-in;
}
/* The whole banner, never cropped: organisers put their logos and dates in it. */
.spw-media__main > img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
}
.spw-media__count {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(4, 5, 5, 0.82);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.spw-media__count--past {
    background: rgba(255, 255, 255, 0.92);
    color: var(--spx-ink);
}
.spw-thumbs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}
.spw-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #DADFDF;
}
.spw-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.spw-thumb__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 5, 5, 0.55);
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}
.spw-panel {
    position: sticky;
    top: calc(var(--header-height, 64px) + 16px);
    padding: 24px 26px 22px;
    border-radius: 20px;
    background: var(--spx-card);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.spw-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--spx-ink-2);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.spw-status {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--spx-warn-soft);
    color: var(--spx-warn-ink);
    font-size: 12px;
    letter-spacing: 0.02em;
}
.spw-status--ok {
    background: var(--spx-teal-soft);
    color: var(--spx-teal-deep);
}
.spw-status--bad {
    background: var(--spx-bad-soft);
    color: var(--spx-bad-ink);
}
.spw-status--past {
    background: var(--spx-ground);
    color: var(--spx-mute);
}
.spw-title {
    margin: 0 0 16px;
    color: var(--spx-ink);
    font-family: var(--spx-head);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.12;
    overflow-wrap: anywhere;
    text-wrap: balance;
}
.spw-lines {
    display: grid;
    gap: 12px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.spw-lines li {
    display: flex;
    gap: 12px;
}
.spw-lines svg {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--spx-teal-deep);
}
.spw-lines b {
    display: block;
    color: var(--spx-ink);
    font-size: 15.5px;
    font-weight: 600;
}
.spw-lines small {
    display: block;
    color: var(--spx-mute);
    font-size: 13.5px;
}
.spw-lines a {
    color: var(--spx-teal-deep);
    font-weight: 600;
}
.spw-org b {
    color: var(--spx-ink);
}
.spw-org:hover b {
    text-decoration: underline;
}
.spw-facts,
.spw-dists {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 16px;
}
.spw-fact {
    padding: 7px 12px;
    border-radius: 12px;
    background: var(--spx-ground);
}
.spw-fact small {
    display: block;
    color: var(--spx-mute);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.spw-fact b {
    font-size: 14.5px;
    font-weight: 600;
}
.spw-dist {
    padding: 7px 12px;
    border: 1.5px solid var(--spx-line);
    border-radius: 12px;
    color: var(--spx-ink);
    text-decoration: none;
}
.spw-dist b {
    display: block;
    font-size: 14px;
    font-weight: 700;
}
.spw-dist small {
    display: block;
    color: var(--spx-mute);
    font-size: 12px;
}
.spw-dist__price {
    color: var(--spx-teal-deep) !important;
    font-weight: 600;
}
.spw-dist--more:hover {
    border-color: var(--spx-ink);
    color: var(--spx-ink);
}
.spw-actions {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}
.spw-register {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 6px 18px;
    border: 0;
    border-radius: 14px;
    background: var(--spx-teal);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}
.spw-register:hover {
    background: #00968B;
}
.spw-register small {
    font-size: 12.5px;
    font-weight: 600;
    opacity: 0.9;
}
.spw-actions__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.spw-actions__row .sp-shortlist-btn {
    min-height: 44px;
}
.spw-more {
    display: grid;
    gap: 6px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--spx-line);
}
.spw-more a {
    color: var(--spx-teal-deep);
    font-size: 14.5px;
    font-weight: 600;
}
.spw-slim {
    position: fixed;
    top: var(--header-height, 64px);
    left: 0;
    right: 0;
    z-index: 4;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--spx-line);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
    font-family: var(--spx-body);
}
.spw-slim.is-on {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.spw-slim__in {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 1240px;
    height: 58px;
    margin: 0 auto;
    padding: 0 16px;
}
.spw-slim__name {
    min-width: 0;
    overflow: hidden;
    color: var(--spx-ink);
    font-family: var(--spx-head);
    font-size: 17px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.spw-slim__when {
    flex: 0 0 auto;
    margin-right: auto;
    color: var(--spx-mute);
    font-size: 14px;
}
.spw-slim__go {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 12px;
    background: var(--spx-teal);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}
.spw-bar {
    display: none;
}
/* The contact-details gate on race and organisation pages (D6). */
.sp-contact-gate p {
    color: var(--spx-mute, #5B6565);
    font-size: 14.5px;
}
.sp-contact-gate__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--spx-teal, #00A99D);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}
.sp-contact-gate__btn:hover {
    color: #fff;
}

@media (max-width: 991.98px) {
    .spw__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }
    .spw-panel {
        position: static;
    }
}
@media (max-width: 767.98px) {
    section.spw {
        padding: 0 0 8px;
    }
    .spw__grid {
        gap: 0;
    }
    .spw-media__main {
        border-radius: 0;
    }
    .spw-actions {
        margin-bottom: 12px;
    }
    .spw-thumbs {
        margin: 8px 16px 0;
    }
    .spw-panel {
        padding: 18px 16px 8px;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .spw-title {
        font-size: 25px;
    }
    .spw-actions .spw-register,
    .spw-actions .sp-shortlist-btn,
    .spw-slim {
        display: none !important;
    }
    .spw-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1030;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) 16px;
        border-top: 1px solid var(--spx-line);
        background: #fff;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.06);
        font-family: var(--spx-body);
    }
    .spw-bar__info {
        flex: 1 1 auto;
        min-width: 0;
    }
    .spw-bar__info b,
    .spw-bar__info small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .spw-bar__info b {
        color: var(--spx-ink);
        font-size: 16px;
        font-weight: 700;
    }
    .spw-bar__info small {
        color: var(--spx-mute);
        font-size: 12.5px;
    }
    .spw-bar__heart {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        padding: 0;
        border: 1.5px solid var(--spx-line);
        border-radius: 14px;
        background: #fff;
        color: #6B7676;
    }
    .spw-bar__heart.is-on {
        color: #E0245E;
    }
    .spw-bar__cta {
        flex: 0 0 auto;
        height: 48px;
        padding: 0 26px;
        border: 0;
        border-radius: 14px;
        background: var(--spx-teal);
        color: #fff;
        font-size: 16px;
        font-weight: 700;
    }
}
/* While the slim Register bar is down, the race page's sticky tab row sits under it, not behind it. */
@media (min-width: 768px) {
    body:has(.spw-slim.is-on) .tab_line_style_blk .top-header-height {
        top: calc(var(--header-height, 64px) + 58px);
        transition: top 0.2s ease;
    }
}
/* The results pages' "search again" field (search, view-more-results). */
.sp-results-search {
    margin: 18px auto 0;
}

/* City/sport landing pages (seo/landing): the intro folds to two lines on phones (F10). */
.sp-intro__more {
    display: none;
}
@media (max-width: 767.98px) {
    .sp-intro__text {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        margin-bottom: 6px !important;
        font-size: 16px !important;
    }
    .sp-intro.is-open .sp-intro__text {
        display: block;
    }
    .sp-intro__more {
        display: inline-block;
        margin: 0 0 14px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #5FE0D5;
        font-size: 15px;
        font-weight: 600;
        text-decoration: underline;
    }
}
/* The agenda (calendar view) at a readable measure on wide screens. */
@media (min-width: 768px) {
    html:not(.is-app) .spx-agenda {
        max-width: 920px;
    }
}
/* Create account, step 1: the heading now leads the page (above the sign-up options), so the form
   under "or" no longer needs the room the heading took. */
.register_section:not(.is-step) #regForm .credential-form-blk {
    margin-top: 8px;
}

/* ==== 9. Landing-page links under the lists (partials/browse-landing-links, 7 Oct 2026) ===== */
/* The 8 most relevant as chips; the rest in a collapsed "More places and distances". */
.browse_landing_links {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--spx-line);
    font-family: var(--spx-body);
}
.browse_landing_links__h {
    margin: 0 0 2px;
    color: var(--spx-ink);
    font-family: var(--spx-head);
    font-size: 18px;
    font-weight: 600;
}
.browse_landing_links__sub {
    margin: 0 0 14px;
    color: var(--spx-mute);
    font-size: 14px;
}
.browse_top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}
.browse_chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 6px 14px;
    border: 1.5px solid var(--spx-line);
    border-radius: 999px;
    background: var(--spx-card);
    color: var(--spx-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
}
.browse_chip:hover,
.browse_chip:focus-visible {
    border-color: var(--spx-ink);
    color: var(--spx-ink);
}
.browse_more {
    margin-top: 14px;
}
.browse_more > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 4px;
    color: var(--spx-teal-deep);
    font-size: 14.5px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}
.browse_more > summary::-webkit-details-marker {
    display: none;
}
.browse_more > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-left: 2px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.15s ease;
}
.browse_more[open] > summary::after {
    transform: rotate(-135deg) translateY(-2px);
}
.browse_more > summary small {
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--spx-teal-soft);
    color: var(--spx-teal-deep);
    font-size: 12px;
    font-weight: 700;
}
.browse_more > .row {
    margin-top: 6px;
}
.browse_more__h {
    margin: 0 0 8px;
    color: var(--spx-mute);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.browse_more__list {
    font-size: 14px;
    line-height: 1.9;
}
.browse_more__list a {
    color: var(--spx-ink-2);
    text-decoration: none;
}
.browse_more__list a:hover {
    color: var(--spx-ink);
    text-decoration: underline;
}

/* Search palette: the row Enter will run is marked ↵; Ask stands out when it is the answer. */
.spp__enter {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 3px 8px;
    border: 1px solid var(--spx-line);
    border-radius: 6px;
    background: var(--spx-card);
    box-shadow: none;
    color: var(--spx-mute);
    font: 600 12px/1 var(--spx-body);
}
.spp__row--ask.is-active {
    background: var(--spx-teal-soft);
}
.spp__row--ask.is-active .spp__icon {
    background: var(--spx-teal);
    color: #fff;
}
/* An empty name search on the races list offers Ask. */
.spx-empty__acts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
/* The Ask row shows the whole question (it is the athlete's own words), up to three lines. */
.spp__row--ask .spp__name,
.spp__row--ask .spp__sub {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    white-space: normal;
}
@media (max-width: 767.98px) {
    .spp__enter {
        display: none !important;   /* the phone keyboard's own Search key */
    }
}
