/* BookMyFighter pages: scroll layout of rounded section blocks (layout taken over from the MitterClient
   static site, colors and images of the standalone bookmyfighter project). Mobile first: blocks stack on
   small screens, text and image sit side by side from 992px. The page body is black (body.dark-mode, see site.css). */

/* overflow-x:hidden !important on html/body (_Layout) makes body a scroll container and breaks position:sticky
   of header and jump bar; clip also prevents horizontal scrolling without that side effect */
html, body {
    overflow-x: clip !important;
}

.bmf-page {
    --bmf-red: #ff4d4d;
    --bmf-red-dark: #8B0000;
    --bmf-red-deep: #c21f1f;
    --bmf-rose: #ff7f7f;
    --bmf-red-light: #ffd6d6;
    --bmf-red-bg: #fff0f0;
    --bmf-coal-950: #0b0b0d;
    --bmf-coal-900: #161214;
    --bmf-coal-800: #2a1416;
    --bmf-ink: #241417;
    --bmf-ink-muted: #6b4a4f;
    --bmf-on-dark: #f8eeee;
    --bmf-on-dark-muted: #cdb5b7;
    /* Colors of jump bar, blocks and tiles as tokens: a .bmf-theme-* class (end of file) swaps them for other services */
    --bmf-accent-rgb: 255, 77, 77;
    --bmf-accent-2-rgb: 255, 127, 127;
    --bmf-deep-rgb: 139, 0, 0;
    --bmf-subnav-bg: rgba(11, 11, 13, 0.84);
    --bmf-subnav-hover: #fff;
    --bmf-light-bg: linear-gradient(135deg, #fff8f8, #ffdede);
    --bmf-dark-tile-bg: linear-gradient(180deg, rgba(60, 24, 28, 0.7), rgba(20, 12, 14, 0.55));
    --bmf-radius: 24px;
    --bmf-subnav-h: 52px;
    --bmf-max-w: 1680px;
    /* The page spans the whole width: cancel the padding of the surrounding container */
    margin: 0 calc(var(--bs-gutter-x, 1.5rem) * -0.5);
    padding-bottom: 8px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===== Jump bar (sticky below the header, built by bookmyfighter.js from [data-bmf-nav]) ===== */
.bmf-subnav {
    position: sticky;
    top: var(--bmf-subnav-top, 0px);
    z-index: 900;
    background: var(--bmf-subnav-bg);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid rgba(var(--bmf-accent-2-rgb), 0.16);
}

.bmf-subnav-inner {
    display: flex;
    gap: 6px;
    max-width: var(--bmf-max-w);
    margin: 0 auto;
    padding: 9px 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .bmf-subnav-inner::-webkit-scrollbar {
        display: none;
    }

.bmf-subnav-link {
    flex: 0 0 auto;
    padding: 7px 15px;
    border-radius: 999px;
    color: var(--bmf-on-dark-muted);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    /* Centered while they fit; auto margins (unlike justify-content:center) keep the first pills reachable when the bar scrolls */
    .bmf-subnav-link:first-child {
        margin-left: auto;
    }

    .bmf-subnav-link:last-child {
        margin-right: auto;
    }

    .bmf-subnav-link:hover {
        color: var(--bmf-subnav-hover);
        background: rgba(var(--bmf-accent-2-rgb), 0.12);
    }

    .bmf-subnav-link.is-active {
        color: var(--bmf-subnav-hover);
        background: rgba(var(--bmf-accent-rgb), 0.3);
        box-shadow: inset 0 0 0 1px rgba(var(--bmf-accent-2-rgb), 0.5);
    }

/* ===== Section blocks ===== */
.bmf-wrap {
    max-width: var(--bmf-max-w);
    margin: 0 auto;
    padding: 12px 10px 0;
}

.bmf-block {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: clamp(22px, 4vw, 56px);
    margin-bottom: 12px;
    scroll-margin-top: calc(var(--bmf-subnav-top, 0px) + var(--bmf-subnav-h) + 14px);
}

.bmf-dark {
    color: var(--bmf-on-dark);
    background:
        radial-gradient(circle at 88% 8%, rgba(var(--bmf-accent-rgb), 0.3), transparent 46%),
        radial-gradient(circle at 4% 96%, rgba(var(--bmf-deep-rgb), 0.4), transparent 50%),
        linear-gradient(160deg, var(--bmf-coal-800), var(--bmf-coal-950));
    box-shadow: inset 0 0 0 1px rgba(var(--bmf-accent-2-rgb), 0.14);
}

.bmf-light {
    color: var(--bmf-ink);
    background: var(--bmf-light-bg);
    box-shadow: inset 0 0 0 1px rgba(var(--bmf-accent-rgb), 0.16);
}

/* Title block of every page: random slide photo behind a dark gradient */
.bmf-hero {
    min-height: clamp(200px, 30vw, 340px);
    display: flex;
    align-items: flex-end;
}

    .bmf-hero > .bmf-stage-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(100deg, color-mix(in srgb, var(--bmf-coal-950) 92%, transparent) 0%,
            color-mix(in srgb, var(--bmf-coal-950) 70%, transparent) 50%, color-mix(in srgb, var(--bmf-coal-800) 25%, transparent) 100%);
    }

.bmf-stage-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bmf-block > *:not(.bmf-stage-bg) {
    position: relative;
    z-index: 1;
}

.bmf-grid-media {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: center;
}

.bmf-block h1,
.bmf-block h2 {
    margin: 0;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
    text-wrap: balance;
}

.bmf-block h1 {
    font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.bmf-block h2 {
    font-size: clamp(1.7rem, 3.6vw, 2.6rem);
}

.bmf-hero h1::after,
.bmf-accent::after {
    content: "";
    display: block;
    width: 72px;
    height: 5px;
    margin-top: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--bmf-rose), var(--bmf-red-deep));
}

.bmf-sub {
    margin: 18px 0 0;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.65;
    max-width: 70ch;
    color: var(--bmf-ink-muted);
}

.bmf-dark .bmf-sub {
    color: var(--bmf-on-dark-muted);
}

.bmf-sub a,
.bmf-tile p a {
    color: var(--bmf-red-deep);
    font-weight: 600;
}

/* Long text over the whole width, in two columns on wide screens (Privacy appendices) */
.bmf-columns {
    max-width: none;
    column-gap: 48px;
}

    .bmf-columns p {
        break-inside: avoid;
    }

.bmf-dark .bmf-sub a,
.bmf-dark .bmf-tile p a {
    color: var(--bmf-rose);
}

/* Small label above a heading */
.bmf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--bmf-rose);
    background: rgba(255, 127, 127, 0.12);
    box-shadow: inset 0 0 0 1px rgba(255, 127, 127, 0.3);
}

.bmf-light .bmf-eyebrow {
    color: var(--bmf-red-deep);
    background: rgba(255, 77, 77, 0.1);
}

/* ===== Buttons ===== */
.bmf-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.bmf-btn {
    flex: 1 1 auto;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.5;
    cursor: pointer;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

    .bmf-btn:hover {
        transform: translateY(-2px);
    }

.bmf-btn-primary {
    color: #fff !important;
    background: linear-gradient(110deg, var(--bmf-rose) 0%, var(--bmf-red) 45%, var(--bmf-red-deep) 100%);
    box-shadow: 0 10px 28px -12px rgba(255, 77, 77, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.bmf-btn-ghost {
    color: var(--bmf-ink) !important;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 0 0 1px rgba(36, 20, 23, 0.18);
}

.bmf-dark .bmf-btn-ghost {
    color: var(--bmf-on-dark) !important;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(248, 238, 238, 0.28);
}

/* ===== Image of a section (square type images, rotating slides on the landing page) ===== */
.bmf-media {
    position: relative;
    width: 100%;
    max-width: 340px;
    justify-self: center;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.9);
}

.bmf-media-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bmf-media-logo .bmf-media-item {
    padding: 14%;
    object-fit: contain;
}

/* Slides switch instantly, hidden by the flash (.bmf-flash, landing page) */
.bmf-media-rotate .bmf-media-item {
    opacity: 0;
}

    .bmf-media-rotate .bmf-media-item.is-shown {
        opacity: 1;
    }

/* ===== Tiles inside a block (Imprint, Privacy, Join) ===== */
.bmf-tiles {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: clamp(24px, 4vw, 40px);
}

    .bmf-tiles:first-child {
        margin-top: 0;
    }

.bmf-tile {
    --bmf-tile-pad: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: var(--bmf-tile-pad);
    overflow: hidden;
    border-radius: 18px;
    color: var(--bmf-ink);
    background: #fff;
    box-shadow: 0 1px 0 rgba(36, 20, 23, 0.04), 0 14px 30px -22px rgba(36, 20, 23, 0.45);
    scroll-margin-top: calc(var(--bmf-subnav-top, 0px) + var(--bmf-subnav-h) + 14px);
}

.bmf-dark .bmf-tile {
    color: var(--bmf-on-dark);
    background:
        radial-gradient(120% 60% at 100% 0%, rgba(var(--bmf-accent-rgb), 0.16), transparent 60%),
        var(--bmf-dark-tile-bg);
    box-shadow: inset 0 0 0 1px rgba(var(--bmf-accent-2-rgb), 0.22);
}

.bmf-tile-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--bmf-red-deep);
    background: rgba(255, 77, 77, 0.12);
}

.bmf-dark .bmf-tile-icon {
    color: var(--bmf-rose);
    background: rgba(255, 127, 127, 0.12);
}

.bmf-tile h3 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.bmf-tile p,
.bmf-tile li {
    line-height: 1.6;
    color: var(--bmf-ink-muted);
}

.bmf-tile p {
    margin: 0 0 .6rem;
}

    .bmf-tile p:last-child {
        margin-bottom: 0;
    }

.bmf-dark .bmf-tile p,
.bmf-dark .bmf-tile li {
    color: var(--bmf-on-dark-muted);
}

/* Image on top, edge to edge over the whole tile width */
.bmf-tile-media {
    margin: calc(var(--bmf-tile-pad) * -1) calc(var(--bmf-tile-pad) * -1) 4px;
    overflow: hidden;
}

    .bmf-tile-media img {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

a.bmf-tile {
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    a.bmf-tile:hover {
        transform: translateY(-4px);
        box-shadow: 0 1px 0 rgba(36, 20, 23, 0.04), 0 22px 40px -22px rgba(255, 77, 77, 0.7);
    }

        a.bmf-tile:hover .bmf-tile-media img {
            transform: scale(1.04);
        }

.bmf-tile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: auto;
    padding-top: 6px;
    font-weight: 700;
    color: var(--bmf-red-deep);
}

    .bmf-tile-actions a {
        color: inherit !important;
        text-decoration: none !important;
    }

    .bmf-tile-actions i {
        margin-left: 4px;
        transition: transform 0.2s ease;
    }

a.bmf-tile:hover .bmf-tile-actions i,
.bmf-tile-actions a:hover i {
    transform: translateX(3px);
}

.bmf-dark .bmf-tile-actions {
    color: var(--bmf-rose);
}

.bmf-table {
    width: 100%;
    font-size: .9rem;
    color: inherit;
}

    .bmf-table th,
    .bmf-table td {
        padding: .4rem .6rem .4rem 0;
        vertical-align: top;
        border-bottom: 1px solid rgba(36, 20, 23, 0.1);
    }

/* ===== Panels: white cards of forms and account pages (Account, Membership) ===== */
.bmf-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
}

.bmf-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 18px;
    color: var(--bmf-ink);
    background: #fff;
    box-shadow: 0 1px 0 rgba(36, 20, 23, 0.04), 0 18px 40px -26px rgba(36, 20, 23, 0.55);
}

.bmf-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    padding: clamp(18px, 2.5vw, 26px) clamp(18px, 3vw, 32px) 0;
    font-size: clamp(1.2rem, 2.2vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

    .bmf-card-header::before {
        content: "";
        flex: 0 0 auto;
        width: 6px;
        height: 1.3em;
        border-radius: 999px;
        background: linear-gradient(180deg, var(--bmf-rose), var(--bmf-red-deep));
    }

    .bmf-card-header .bmf-card-header-actions {
        margin-left: auto;
        font-size: 1rem;
        font-weight: 400;
    }

.bmf-card-body {
    flex: 1;
    padding: clamp(16px, 2.5vw, 24px) clamp(18px, 3vw, 32px) clamp(18px, 3vw, 30px);
}

    .bmf-card-body p:last-child {
        margin-bottom: 0;
    }

.bmf-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.bmf-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 14px clamp(18px, 3vw, 32px);
    text-align: center;
    color: var(--bmf-ink);
    background: var(--bmf-red-bg);
    border-top: 1px solid var(--bmf-red-light);
}

/* ===== Landing page ===== */
.bmf-landing {
    min-height: calc(100vh - 230px);
}

.bmf-brand {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: clamp(2.3rem, 6vw, 4.4rem);
    font-weight: 900;
    color: var(--bmf-rose);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    text-shadow: -2px -2px 0 var(--bmf-red-dark), 2px -2px 0 var(--bmf-red-dark), -2px 2px 0 var(--bmf-red-dark), 2px 2px 0 var(--bmf-red-dark);
}

.bmf-brand-row {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 20px);
}

    .bmf-brand-row img {
        width: clamp(64px, 9vw, 104px);
        height: auto;
        flex: 0 0 auto;
    }

/* The dark logo needs a light ground on the dark block (like the white image frames of the other pages) */
.bmf-logo-badge {
    padding: clamp(6px, 0.8vw, 10px);
    border-radius: clamp(14px, 1.6vw, 22px);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 127, 127, 0.35), 0 14px 30px -12px rgba(0, 0, 0, 0.8);
}

/* Flashlight of the slideshow: white flash over the slide frame only */
.bmf-media > .bmf-flash {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s;
}

    .bmf-media > .bmf-flash.is-on {
        opacity: 1;
    }

.bmf-slogan {
    min-height: 3.3em;
}

.bmf-landing .bmf-media {
    max-width: none;
    aspect-ratio: 16 / 10;
    background: var(--bmf-coal-950);
    cursor: pointer;
}

.bmf-tachos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.bmf-tacho {
    flex: 1 1 130px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 10px 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 127, 127, 0.22);
}

    .bmf-tacho svg {
        width: 120px;
        height: 80px;
    }

.bmf-tacho-label {
    font-weight: 700;
    color: var(--bmf-on-dark-muted);
    font-size: .75rem;
    text-align: center;
}

.bmf-tacho-value {
    font-size: 1.5rem;
    font-weight: 800;
}

/* ===== Forms ===== */
.bmf-form {
    gap: 0;
}

    .bmf-form .form-label {
        margin-bottom: .3rem;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--bmf-ink-muted);
    }

    .bmf-form .form-control,
    .bmf-form .form-select {
        min-height: 44px;
        border: 1px solid rgba(36, 20, 23, 0.16);
        border-radius: 12px;
        color: var(--bmf-ink);
        background-color: #fbf8f8;
        transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    }

        .bmf-form .form-control:focus,
        .bmf-form .form-select:focus {
            border-color: var(--bmf-red);
            background-color: #fff;
            box-shadow: 0 0 0 4px rgba(255, 77, 77, 0.18);
        }

    .bmf-form .form-check-input:checked {
        background-color: var(--bmf-red-deep);
        border-color: var(--bmf-red-deep);
    }

.bmf-photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 260px;
    margin: 0 auto;
    border: 2px dashed #e3c9cb;
    border-radius: 18px;
    background: var(--bmf-red-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    color: var(--bmf-ink-muted);
    text-align: center;
    padding: .5rem;
}

    .bmf-photo-frame img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.bmf-readonly {
    background: #f4eeee !important;
}

.bmf-highlight {
    background: var(--bmf-red-bg);
    border: 1px solid var(--bmf-red-light);
    border-radius: 12px;
    padding: .75rem 1rem;
}

.bmf-account-table td {
    padding: .35rem .75rem .35rem 0;
    vertical-align: top;
}

.bmf-membership-photo {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 18px;
    border: 3px solid #fff;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.45);
}

/* ===== Fade in while scrolling (only with JS and without reduced motion) ===== */
.bmf-js .bmf-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .bmf-js .bmf-reveal.is-visible {
        opacity: 1;
        transform: none;
    }

@media (prefers-reduced-motion: reduce) {
    .bmf-btn,
    a.bmf-tile,
    .bmf-tile-media img {
        transition: none;
    }
}

/* ===== Larger screens ===== */
@media (min-width: 576px) {
    .bmf-wrap {
        padding: 18px 16px 0;
    }

    .bmf-block {
        border-radius: var(--bmf-radius);
        margin-bottom: 18px;
    }

    .bmf-btn {
        flex: 0 0 auto;
    }

    .bmf-tile {
        --bmf-tile-pad: 22px;
    }

    .bmf-tiles,
    .bmf-tiles-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .bmf-grid-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    /* Text and image side by side, every second block mirrored */
    .bmf-grid-media {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }

        .bmf-grid-media.bmf-flip {
            grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        }

            .bmf-grid-media.bmf-flip .bmf-media {
                order: -1;
            }

    .bmf-media {
        max-width: 440px;
    }

    .bmf-tiles-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bmf-columns {
        columns: 2;
    }
}

@media (min-width: 1400px) {
    .bmf-tiles-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .bmf-tiles-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* ===== Themes: the same scroll layout in the colors of other services (/Home/Privacy picks the class
   from the current service, ServicePageTheme). Without a theme the page keeps the BookMyFighter colors. ===== */
.bmf-page.bmf-theme-abholondo {
    --bmf-red-deep: #146c43;
    --bmf-rose: #75b798;
    --bmf-coal-950: #0a130e;
    --bmf-coal-800: #15271d;
    --bmf-ink: #1c3328;
    --bmf-ink-muted: #5d7568;
    --bmf-on-dark: #e4efe8;
    --bmf-on-dark-muted: #9fb8aa;
    --bmf-accent-rgb: 25, 135, 84;
    --bmf-accent-2-rgb: 117, 183, 152;
    --bmf-deep-rgb: 20, 108, 67;
    --bmf-subnav-bg: rgba(10, 19, 14, 0.86);
    --bmf-light-bg: linear-gradient(135deg, #f4f8f5, #e3f1e9);
    --bmf-dark-tile-bg: linear-gradient(180deg, rgba(28, 58, 42, 0.7), rgba(10, 19, 14, 0.55));
}

.bmf-page.bmf-theme-menu {
    --bmf-red-deep: #d9480f;
    --bmf-rose: #ffa94d;
    --bmf-coal-950: #1b1410;
    --bmf-coal-800: #2e1d12;
    --bmf-ink: #2b1d12;
    --bmf-ink-muted: #7a5a44;
    --bmf-on-dark: #fff4e6;
    --bmf-on-dark-muted: #e0c4a8;
    --bmf-accent-rgb: 232, 89, 12;
    --bmf-accent-2-rgb: 255, 169, 77;
    --bmf-deep-rgb: 247, 103, 7;
    --bmf-subnav-bg: rgba(27, 20, 16, 0.88);
    --bmf-light-bg: linear-gradient(135deg, #fff4e6, #ffe8cc);
    --bmf-dark-tile-bg: linear-gradient(180deg, rgba(70, 40, 20, 0.7), rgba(27, 20, 16, 0.55));
}

.bmf-page.bmf-theme-dressmate {
    --bmf-red-deep: #a61e4d;
    --bmf-rose: #f06595;
    --bmf-coal-950: #1a0f17;
    --bmf-coal-800: #3a1a2c;
    --bmf-ink: #2b1a2f;
    --bmf-ink-muted: #6e5470;
    --bmf-on-dark: #fff0f6;
    --bmf-on-dark-muted: #dcb8c8;
    --bmf-accent-rgb: 194, 37, 92;
    --bmf-accent-2-rgb: 240, 101, 149;
    --bmf-deep-rgb: 166, 30, 77;
    --bmf-subnav-bg: rgba(26, 15, 23, 0.86);
    --bmf-light-bg: linear-gradient(135deg, #fff0f6, #ffdeeb);
    --bmf-dark-tile-bg: linear-gradient(180deg, rgba(70, 26, 48, 0.7), rgba(26, 15, 23, 0.55));
}

.bmf-page.bmf-theme-sexyguide {
    --bmf-red-deep: #b00b15;
    --bmf-rose: #ff5c66;
    --bmf-coal-950: #070708;
    --bmf-coal-800: #1b1b20;
    --bmf-ink: #1b1b20;
    --bmf-ink-muted: #5c5c66;
    --bmf-on-dark: #f1f1f3;
    --bmf-on-dark-muted: #9a9aa3;
    --bmf-accent-rgb: 229, 16, 29;
    --bmf-accent-2-rgb: 255, 92, 102;
    --bmf-deep-rgb: 176, 11, 21;
    --bmf-subnav-bg: rgba(7, 7, 8, 0.86);
    --bmf-light-bg: linear-gradient(135deg, #fafafa, #ffe3e5);
    --bmf-dark-tile-bg: linear-gradient(180deg, rgba(38, 38, 45, 0.7), rgba(17, 17, 20, 0.55));
}

.bmf-page.bmf-theme-labgate {
    --bmf-red-deep: #0f7d91;
    --bmf-rose: #66c6d6;
    --bmf-coal-950: #0c1d29;
    --bmf-coal-800: #163447;
    --bmf-ink: #1d3445;
    --bmf-ink-muted: #5f7686;
    --bmf-on-dark: #e8f6f9;
    --bmf-on-dark-muted: #a9c6d1;
    --bmf-accent-rgb: 21, 146, 168;
    --bmf-accent-2-rgb: 102, 198, 214;
    --bmf-deep-rgb: 30, 95, 153;
    --bmf-subnav-bg: rgba(12, 29, 41, 0.86);
    --bmf-light-bg: linear-gradient(135deg, #f4fbfd, #d3eef4);
    --bmf-dark-tile-bg: linear-gradient(180deg, rgba(30, 70, 90, 0.7), rgba(12, 29, 41, 0.55));
}

.bmf-page.bmf-theme-babel {
    --bmf-red-deep: #5a6fd6;
    --bmf-rose: #a3b1f5;
    --bmf-coal-950: #14122b;
    --bmf-coal-800: #2a2350;
    --bmf-ink: #23264a;
    --bmf-ink-muted: #6b6f8e;
    --bmf-on-dark: #eef0ff;
    --bmf-on-dark-muted: #b7bbe0;
    --bmf-accent-rgb: 102, 126, 234;
    --bmf-accent-2-rgb: 163, 177, 245;
    --bmf-deep-rgb: 118, 75, 162;
    --bmf-subnav-bg: rgba(20, 18, 43, 0.86);
    --bmf-light-bg: linear-gradient(135deg, #f6f7ff, #dfe3fb);
    --bmf-dark-tile-bg: linear-gradient(180deg, rgba(50, 44, 100, 0.7), rgba(20, 18, 43, 0.55));
}

/* Vadis (association VADIS, /NovaVadis): navy and sky blue of its statutes document */
.bmf-page.bmf-theme-vadis {
    --bmf-red-deep: #0369a1;
    --bmf-rose: #7dd3fc;
    --bmf-coal-950: #0b1220;
    --bmf-coal-800: #16233b;
    --bmf-ink: #0f172a;
    --bmf-ink-muted: #56657d;
    --bmf-on-dark: #e8f1fb;
    --bmf-on-dark-muted: #a3b6cf;
    --bmf-accent-rgb: 2, 132, 199;
    --bmf-accent-2-rgb: 125, 211, 252;
    --bmf-deep-rgb: 3, 105, 161;
    --bmf-subnav-bg: rgba(11, 18, 32, 0.88);
    --bmf-light-bg: linear-gradient(135deg, #f6fafe, #dcedfa);
    --bmf-dark-tile-bg: linear-gradient(180deg, rgba(28, 48, 82, 0.7), rgba(11, 18, 32, 0.55));
}

    /* Eyebrow labels in the accent color instead of the red tint of the default look */
    .bmf-theme-vadis .bmf-eyebrow {
        background: rgba(var(--bmf-accent-2-rgb), 0.12);
        box-shadow: inset 0 0 0 1px rgba(var(--bmf-accent-2-rgb), 0.3);
    }

    .bmf-theme-vadis .bmf-light .bmf-eyebrow {
        background: rgba(var(--bmf-accent-rgb), 0.1);
        box-shadow: inset 0 0 0 1px rgba(var(--bmf-accent-rgb), 0.25);
    }

    /* Tile icons and primary button in the accent color as well */
    .bmf-theme-vadis .bmf-tile-icon {
        background: rgba(var(--bmf-accent-rgb), 0.12);
    }

    .bmf-theme-vadis .bmf-btn-primary {
        background: linear-gradient(110deg, #38bdf8 0%, #0284c7 45%, var(--bmf-red-deep) 100%);
        box-shadow: 0 10px 28px -12px rgba(var(--bmf-accent-rgb), 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

/* Welcome block with the service logo (/NovaVadis): logo and lead centered in a white box like the home page of
   LabGate (.lab-home-brand) - logos are made for a white background */
.bmf-brand-hero {
    text-align: center;
}

.bmf-brand-box {
    margin: 0 auto;
    max-width: 760px;
    padding: clamp(18px, 3vw, 28px) clamp(16px, 4vw, 40px);
    border-radius: 22px;
    background: #fff;
    color: var(--bmf-ink);
    box-shadow: 0 18px 40px -26px rgba(0, 0, 0, 0.9);
}

    .bmf-brand-box img {
        display: block;
        margin: 0 auto;
        width: auto;
        height: auto;
        max-height: clamp(96px, 16vw, 190px);
        max-width: min(100%, 480px);
    }

    .bmf-brand-box .bmf-sub {
        margin: 14px auto 0;
        color: var(--bmf-ink-muted);
    }

.bmf-brand-hero .bmf-actions {
    justify-content: center;
}

/* Text beside its tiles: one column on phones, side by side on wide screens so the whole width is used */
.bmf-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(20px, 3vw, 48px);
    align-items: center;
}

    .bmf-split .bmf-tiles {
        margin-top: 0;
    }

@media (min-width: 992px) {
    .bmf-split {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }

        .bmf-split .bmf-tiles {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
}

@media (min-width: 1200px) {
    .bmf-tiles-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Neutral (service without own design): white blocks, the "dark" blocks and the jump bar in a soft baby blue */
.bmf-page.bmf-theme-neutral {
    --bmf-red-deep: #2f7fc4;
    --bmf-rose: #8cc4f0;
    --bmf-coal-950: #e1effb;
    --bmf-coal-800: #f3f9fe;
    --bmf-ink: #1f2937;
    --bmf-ink-muted: #4b5563;
    --bmf-on-dark: #1f2937;
    --bmf-on-dark-muted: #4b5563;
    --bmf-accent-rgb: 116, 180, 232;
    --bmf-accent-2-rgb: 168, 210, 245;
    --bmf-deep-rgb: 200, 225, 248;
    --bmf-subnav-bg: rgba(255, 255, 255, 0.9);
    --bmf-subnav-hover: #1f2937;
    --bmf-light-bg: linear-gradient(135deg, #ffffff, #f7fbff);
    --bmf-dark-tile-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.75));}

    .bmf-theme-neutral .bmf-dark .bmf-sub a,
    .bmf-theme-neutral .bmf-dark .bmf-tile p a {
        color: var(--bmf-red-deep);
    }
