/* Tablet audit 18.11.2026 — home page (#05 banner, #06 Real Stories) and the burger menu (#07). See inc/tablet-audit.php. */

/* ---------------------------------------------------------------------------------------------
 * #07 Burger menu, tablet portrait (768–990px: the full-screen burger panel .header__inner-aside).
 * Bug: a submenu (Shop / Personalized) opened with the chevron used the DESKTOP dropdown position
 * (top:45px, width:fit-content), so its "‹ SHOP" back row sat under the header (unreachable) and
 * the first-level items + their chevrons kept showing around and below the short submenu panel —
 * e.g. Personalized gave "PRINCIPLE / 8 WEEK PROGRAM / SIGNATURE SHOTS ⌄ / PERSONALIZED ⌄ /
 * PHILOSOPHY…". Fix (no size changes): put the submenu where the first-level list starts (the
 * panel's padding-top is 148px at these widths, under the 108px header) and hide — visibility
 * only, layout untouched — the first-level items while a submenu is open. Phones (≤767px) have
 * their own rule in main.css and are not touched.
 * ------------------------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 990px) {
    .header__inner-aside .new-dropdown-burger.is-active .new-dropdown-burger-list {
        top: 148px;
    }

    .header__inner-aside .navigation__list:has(> .navigation__item.is-active) > li:not(.is-active),
    .header__inner-aside .navigation__list > .navigation__item.is-active > [data-navigation-trigger] {
        visibility: hidden;
    }
}

/* ---------------------------------------------------------------------------------------------
 * #07 "☰" menu, tablet landscape / small laptop (991–1300px: custom.css turns the nav into a
 * dropdown list under a ☰ button). Bug: a submenu opened 45px below its trigger, i.e. ON TOP of
 * the next first-level items (Shop's list covered "PERSONALIZED ⌄" and the rest; Personalized's
 * left the tail "E" of "PHILOSOPHY & SCIENCE" sticking out). Fix (position only, same widths and
 * rows): open the submenu as a fly-out to the right of the white list panel, its first row level
 * with the trigger (−12px = the submenu rows' top padding; +10px = the list panel's padding);
 * left+right are shifted by the same amount so the submenu keeps exactly its old width.
 * ------------------------------------------------------------------------------------------- */
@media (min-width: 991px) and (max-width: 1300px) {
    .navigation__list.active .new-dropdown-burger.is-active .new-dropdown-burger-list {
        top: -12px;
        left: calc(100% + 10px);
        right: calc(-100% - 10px); /* keeps the same available width, so fit-content gives the same width as before */
    }
}

/* ---------------------------------------------------------------------------------------------
 * #06 Real Stories (home .community) slider dots, 769–1300px. Swiper's "dynamic bullets" CSS
 * centres the dots box with left:50% + translateX(-50%); the theme makes the box position:static,
 * so left:50% is ignored but the −50% shift stays: the box sat 112px to the left of its place and
 * the active (long) dot was cut off outside the section — only grey dots were visible. Fix: drop
 * the stray shift (position only; dot sizes unchanged). Desktop ≥1301px lays this row out
 * differently and is not touched.
 * ------------------------------------------------------------------------------------------- */
@media (min-width: 769px) and (max-width: 1300px) {
    .home .community .js-mobile-slider .swiper-pagination.swiper-pagination-bullets-dynamic {
        transform: none;
    }
}


/* =============================================================================================
 * HOME PAGE, TABLETS 768–1199px — deep pass 18.11.2026 (owner: "on tablet halve the spacing",
 * "space above = space below", one pagination style, equal gutters).
 * The system enforced below, all measured on the rendered page (EN, DE, AR):
 *   - 32px of empty space between two blocks: from the last visible thing of one block (text,
 *     picture, button, card, slider dot) to the first visible thing of the next; a block with its
 *     own background counts by its background edge. Hero → Festive Favourites stays flush.
 *   - 32px inside every block with its own background, top = bottom.
 *   - 24px side gutters everywhere (was 16px on the festive block at 768 and the approaches block
 *     at 768–890, 48–59px on the festive block at 1025–1199).
 *   - heading → content 24px in every block; slider content → its pagination 24px.
 *   - one pagination: 8px squares 8px apart, left-aligned on the gutter, every dot a 24px tap target.
 * Phones (≤767px) and desktop (≥1200px) are not touched: every rule is inside a 768–1199px query
 * (or a narrower one).
 * ============================================================================================= */

/* ---------------------------------------------------------------------------------------------
 * FESTIVE FAVOURITES (.duo-section--festive) — one tablet layout for 768–1199px.
 * Before: three different layouts — 768px got the PHONE layout (homepage.css ≤768px: the velvet
 * copy "Be ready for every celebration / SHOP FESTIVE EDIT" hidden, 16px gutters, 10px type);
 * 769–1024px the tablet one; 1025–1199px the DESKTOP frame (5 narrow cards in one row, 48–59px
 * gutters, a fixed-height frame scaled to the viewport). js/homepage.js now runs the slider up to
 * 1199px for this layout (3 cards per view from 768px, 20px apart), so these rules give
 * 768–1199px the tablet look of 769–1024px.
 * Spacing: band top → "SHOP FESTIVE FAVOURITES" 31–26px → 32px; title → cards 16px → 24px;
 * cards → dots 12px → 24px; dots → velvet copy 32px; velvet top → eyebrow 64px → 32px;
 * button → band bottom 40px → 32px.
 * ------------------------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
    /* the frame: auto height, the cream gradient (was: the fixed-height picture frame ≥1025px, the
       cream picture at 768px) */
    .duo-section--festive .duo-festive {
        height: auto;
        background: linear-gradient(180deg, #efe9db 0%, #ece5d5 60%, #e7dfcc 100%);
    }

    .duo-section--festive .duo-festive::after {
        content: none;
    }

    /* eyebrow + cards: 24px gutters, 32px from the band top (was 32/24 at 769–1024, 10/16 at 768,
       44 mock px / 48–59px at 1025–1199) */
    .duo-section--festive .duo-section__inner {
        padding: 33px 24px 24px;
    }

    .duo-section--festive .duo-head {
        margin-bottom: 23px; /* title text → card picture 24px (was 16px + 3px picture inset; 10px at 768) */
    }

    .duo-section--festive .duo-title {
        font-size: 14px;
    }

    /* the slider (was a 5-column grid ≥1025px) */
    .duo-section--festive .duo-grid {
        overflow: hidden;
    }

    /* The slider takes the height of the 3 cards in view (Swiper autoHeight, js/homepage.js) and
       the price follows its description, as on phones (user, 13.11.2026). Before: every card was
       stretched to the tallest of ALL five (the gift certificates' 2–4-line names and 2-line
       descriptions), leaving an 18–50px hole above the prices of the Edit cards in the first view. */
    .duo-section--festive .duo-grid .swiper-wrapper {
        display: flex;
        gap: 0;
        align-items: flex-start;
        transition-property: transform, height;
    }

    /* cards: the 769–1024px sizes (768px had the phone ones: 10px names, 12px prices) */
    .duo-section--festive .duo-card__top {
        top: 8px;
        left: 8px;
        right: 8px;
    }

    /* picture box: no 3px inset, so the pictures line up with the 24px gutter (were at 27px) and
       the visible gap between two pictures is the slider's 20px (was 26px) */
    .duo-section--festive .duo-card__media {
        aspect-ratio: 1;
        padding: 0;
    }

    .duo-section--festive .duo-card__body {
        padding-top: 14px;
    }

    .duo-section--festive .duo-card__name {
        margin-bottom: 6px;
        font-size: 14px;
        letter-spacing: .08em;
    }

    .duo-section--festive .duo-card__desc {
        font-size: 14px;
    }

    .duo-section--festive .duo-card__footer {
        margin-top: 0;
        padding-top: 12px;
        gap: 8px;
    }

    .duo-section--festive .duo-card__price {
        font-size: 15px;
    }

    .duo-section--festive .duo-card__btn {
        padding: 4px;
        margin: -4px;
        margin-inline-start: auto;
    }

    .duo-section--festive .duo-card__btn svg {
        width: 22px;
        height: 22px;
    }

    /* pagination: the page's one style — 8px squares 8px apart, left on the gutter, 24px under the
       cards (was: 8px squares 16px apart, right-aligned, 12px under the cards; hidden ≥1025px).
       Colours stay the festive ones (wine / white) on the cream. */
    .duo-section--festive .duo-grid__nav {
        display: flex;
        justify-content: flex-start;
        margin-top: 16px; /* + the dot's 8px tap padding = 24px from the prices */
    }

    .duo-section--festive .duo-grid__pagination {
        justify-content: flex-start;
        margin-inline-start: -4px;
    }

    .duo-section--festive .duo-grid__pagination .swiper-pagination-bullet {
        margin: 0 -4px !important;
    }

    /* the velvet copy under the cards — visible at 768px too (was hidden there: the phone layout) */
    .duo-section--festive .duo-copy {
        display: block;
        margin-top: 0;
        height: auto;
        padding: 33px 46% 32px 24px; /* 33: the Jost eyebrow's text box starts 1px above its line box */
        background: var(--fk-bg) 100% 100% / auto 250% no-repeat, #4a0d0d;
    }

    .duo-section--festive .duo-copy::after {
        content: "";
        height: 24px; /* the cream → velvet melt 40px → 24px, so the eyebrow 32px down sits on the velvet */
    }

    .duo-section--festive .duo-copy__eyebrow {
        font-size: 12px;
        color: #ddc7a1;
    }

    .duo-section--festive .duo-copy__title {
        margin-top: 14px;
        font-size: 36px;
        line-height: 1;
        white-space: normal;
        color: #fbf3e6;
    }

    .duo-section--festive .duo-copy__title--long {
        font-size: 30px;
    }

    .duo-section--festive .duo-copy__text {
        margin-top: 14px;
        font-size: 17px;
        color: #fbf3e6;
    }

    .duo-section--festive .duo-copy__btn {
        margin-top: 20px;
        min-width: 0;
        height: 48px;
        padding: 0 24px;
        border-radius: 4px;
        background: var(--fk-plate);
        color: var(--fk-ink);
        box-shadow: 0 4px 10px rgba(26, 0, 0, .45);
        font-size: 17px;
    }

    /* «NEW · FESTIVE EDIT» strip on white under the velvet: 24px gutter (was 48px, off the grid),
       32px of white above and below its text (was 12px: the label stuck to both dark bands). */
    .duo-section--festive > .duo-section__top {
        padding: 34px 24px 33px; /* = 32px of white from the velvet to the label's text and from it to the dark block */
    }

    .duo-section--festive > .duo-section__top .duo-overline {
        display: block; /* no inline-block line strut under the label (was +10px) */
        font-size: 12px; /* 768px had the phone 10px */
    }
}

/* The descriptions take 1 or 2 lines (EN at 768–1023px, DE/AR at every tablet width) — they
   reserve 2 lines so the three prices of a view stay on one line. */
@media (min-width: 768px) and (max-width: 1199px) {
    .duo-section--festive .duo-card__desc {
        min-height: 2.84em;
    }
}

/* ---------------------------------------------------------------------------------------------
 * APPROACHES (dark block), 768–890px (the existing one-card carousel layout).
 * Before: 24px band padding, 16px side gutters (other blocks 24px), cards 24/16px inside.
 * After: 32px top = bottom, 24px gutters, cards 24px inside on every side.
 * ------------------------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 890px) {
    .home .approaches {
        padding: 32px 24px;
    }

    .home .approaches .left-banner,
    .home .approaches .right-banner {
        padding: 24px;
    }

    /* the eyebrow "YOUR FORMULA. YOUR NAME" was centred over a left-aligned heading */
    .home .approaches .mobile-approaches .general-banner .badge {
        text-align: start;
    }
}

/* ---------------------------------------------------------------------------------------------
 * APPROACHES, 891–1199px — decision #05b: the stacked layout with BOTH programme cards side by side.
 * Before: three 317–413px columns; the middle copy wrapped 2–4 words a line, an opened side panel
 * ran its copy over the photo and pushed the middle heading out ("SWITZERLAND'S" clipped); the
 * 1px gold frames touched the block edges (no inner spacing).
 * After: the copy block full width (badge, heading, text, full-width START NOW), the DECODE /
 * UNLOCK / EVOLVE switchers under it (they switch both cards), then the two cards side by side
 * (16px apart) — each card = copy over its photo (photo ≤300px high). Font sizes unchanged.
 * js/home/approaches.js no longer starts the carousel above 890px, so both cards are real,
 * focusable content (no slick clones, no aria-hidden second card).
 * Band: 32px top = bottom, 24px gutters.
 * ------------------------------------------------------------------------------------------- */
@media (min-width: 891px) and (max-width: 1199px) {
    .home .approaches {
        padding: 32px 24px;
    }

    .home .approaches .general.hidden-mobile {
        display: none;
    }

    .home .approaches .general.mobile-approaches {
        display: flex;
        flex-direction: column;
        gap: 24px;
        height: auto !important; /* approaches.js pins the desktop height inline */
    }

    .home .approaches .general-banner {
        width: 100%;
        order: 0;
        overflow: unset;
        padding: 0;
        text-align: start;
    }

    .home .approaches .general-banner h3,
    .home .approaches .general-banner .badge {
        text-align: start;
    }

    .home .approaches .general-banner .insights-hero__btn {
        width: 100%;
        text-align: center;
    }

    .home .approaches .mobile-approaches > .switchers {
        display: flex !important;
        flex-direction: row;
        justify-content: start;
        padding: 6px 0 0 7px;
    }

    .home .approaches .switcher__circle {
        width: 60px;
        height: 60px;
    }

    .home .approaches .switcher.active .switcher__circle {
        width: 80px;
        height: 80px;
    }

    /* the two cards: a 2-column grid (no carousel here) */
    .home .approaches .general.mobile-approaches.swiper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .home .approaches .mobile-approaches .left-banner,
    .home .approaches .mobile-approaches .right-banner {
        width: auto;
        padding: 24px;
    }

    .home .approaches .mobile-approaches .banner-head {
        cursor: default;
        pointer-events: none;
    }

    .home .approaches .mobile-approaches .banner-head img {
        display: none;
    }

    .home .approaches .mobile-approaches .banner-head .banner-title {
        display: block;
        max-width: none;
        font-size: 24px;
        line-height: 28px;
    }

    /* the card's second copy of its title (shown only on the old desktop panels) */
    .home .approaches .mobile-approaches .banner-content .banner-title {
        display: none;
    }

    .home .approaches .mobile-approaches .banner-content {
        flex-direction: column;
        gap: 16px;
    }

    .home .approaches .mobile-approaches .banner-content .content {
        opacity: 1;
        width: 100%;
        padding-bottom: 0;
        order: 1;
    }

    .home .approaches .mobile-approaches .banner-content .content .banner-footer {
        margin-top: 24px;
    }

    .home .approaches .mobile-approaches .banner-content > img {
        position: static;
        order: 2;
        width: auto;
        max-width: 100%;
        height: auto;
        max-height: 300px;
        object-fit: contain;
        align-self: flex-start;
    }
}

/* 991–1199px: the badge is 14px here (12px ≤990px) — its text box starts 1px higher, so 31px
   puts its text 32px under the band's top edge (was 33px). */
@media (min-width: 991px) and (max-width: 1199px) {
    .home .approaches {
        padding-top: 31px;
    }
}

/* ---------------------------------------------------------------------------------------------
 * PERSONALISED PLAN (.prog-split, the dark block DE/FR show instead of the approaches block),
 * 768–1199px. Before: 40px band padding with 20px gutters (768–980), 64px (981–1199).
 * After: 32px from the band edges to the copy / the cards / the button, top = bottom; 24px gutters.
 * ------------------------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
    .home .prog__inner {
        padding: 20px 24px 32px; /* top: + 12px above the overline's text = 32px */
    }
}

/* ---------------------------------------------------------------------------------------------
 * SHOP BY OBJECTIVE (.solutions-v2), 768–1199px.
 * Before: 64px padding top and bottom (dark block → "ALL CATEGORIES" 64px; arrows → the badges
 * strip 94px together with the strip's own 24px), title → cards 30px, round 8px dots 10px apart.
 * After: 32px from the dark block; title → cards 24px; the bottom spacing is made by the next
 * block; square dots like every other slider (8px squares 8px apart, navy / pale navy).
 * ------------------------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
    .home .solutions-v2 {
        padding: 32px 0 0;
    }

    .home .sv2__head {
        margin-bottom: 12px; /* + the cards' 16px top margin = 24px from the title's text (was 30px) */
    }

    /* cards → dots/arrows row: the dots sit in the middle of the 36px arrow row, 14px down;
       10px + 14px = 24px from the cards (was 32px + 14px = 46px; 64px + 14px at 1025–1199) */
    .home .solutions-v2 .sv2__controls {
        margin-top: 10px;
    }

    /* 4 whole cards per view (8 categories = 2 pages). Before: fixed 150px cards → the 5th (at
       768–1023) / 7th (1024–1199) card was cut at the gutter mid-label ("BEAUTY BOO…"), and the
       arrows scrolled by the row width, not by whole cards. Each grid column is exactly 1/4 of the
       row (so a page = the row width, as the script scrolls), the card inside is (row − 3×20px)/4
       and shifted 0/5/10/15px, giving 20px gaps and flush gutters on both sides of every page.
       Cards: 165px @768, 178px @820, 229px @1024, 268px @1180 (were 150px). */
    .home .sv2__track {
        grid-auto-columns: 25%;
        gap: 0;
    }

    .home #sv2__track {
        scroll-padding-inline: 0;
    }

    .home .sv2__card {
        width: calc(100% - 15px);
        height: auto;
        aspect-ratio: 1;
    }

    .home .sv2__item:nth-child(4n+2) .sv2__card {
        margin-inline-start: 5px;
    }

    .home .sv2__item:nth-child(4n+3) .sv2__card {
        margin-inline-start: 10px;
    }

    .home .sv2__item:nth-child(4n+4) .sv2__card {
        margin-inline-start: 15px;
    }

    .home .sv2__dots {
        gap: 8px;
    }

    .home .sv2__dot,
    .home .sv2__dot.is-active {
        border-radius: 0;
        transform: none;
        opacity: 1;
    }

    .home .sv2__dot {
        background: rgba(31, 51, 87, .25);
    }

    .home .sv2__dot.is-active {
        background: #1f3357;
    }
}

/* 901–1199px: the title is 48px (36px ≤900px), its text box ends 1px lower */
@media (min-width: 901px) and (max-width: 1199px) {
    .home .sv2__head {
        margin-bottom: 13px;
    }
}

/* ---------------------------------------------------------------------------------------------
 * BADGES STRIP (.icons-strip: LACTOSE FREE / NO NUTS …), 768–1199px.
 * Before: 24px <ul> margins + the neighbours' 64px paddings → 94px above, 36–68px below.
 * After: no own spacing; 32px above and below set by the paddings around it.
 * ------------------------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
    .home .icons-strip {
        padding: 26px 0 0; /* + the arrows' 6px under their chevrons = 32px */
    }

    /* no badges strip between Shop by objective and the Advisory Board (DE, FR, AR): 14px + the
       arrows' 6px + the 12px above the overline's text = 32px */
    .home .sab-v2 {
        padding-top: 14px;
    }

    .home .icons-strip ~ .sab-v2 {
        padding-top: 20px;
    }

    .home .icons-strip__track {
        margin: 0;
    }
}

/* ---------------------------------------------------------------------------------------------
 * SCIENTIFIC ADVISORY BOARD (.sab-v2), 768–1199px.
 * Before: 44px under the badges; title → text 27px, text → photos 33px. 4 doctors in a slider of
 * 2 per view (3 at 1024+) but at 769–1199px its dots and arrows were hidden (homepage.css ≥769px)
 * → doctors 3 and 4 were unreachable, nothing showed there were more.
 * After: 32px under the badges; 24px heading → text → photos; the slider's dots + arrows shown at
 * 769–1199px too (as at 768px), in the page's one dot style; 24px from the names to the dots.
 * ------------------------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
    .home .sabv2__head {
        margin-bottom: 21px; /* title text → description text 24px (was 27px) */
    }

    .home .sabv2__grid {
        margin-top: 19px; /* description → photo frames 24px (was 33px) */
        gap: 0; /* the grid's 8px (24px at 1101+) CSS gap was added to Swiper's spacing: the last doctor
                   in view was pushed 8–48px past the right gutter */
    }

    /* the slides' height is their content's: Swiper's start-up autoHeight (1 per view) can leave an
       inline height on the list that cut the 3rd line of a doctor's role */
    .home .sab-v2 .swiper-wrapper,
    .home .community .swiper-wrapper {
        height: auto !important;
    }

    .home .sab-v2 .wcps-bottom {
        display: flex;
        float: none;
        width: 100%;
        margin: 9px 0 0; /* names → the arrow's chevron (the row's first visible thing) 24px */
        padding: 0;
    }

    .home .sab-v2 .js-mobile-slider .swiper-pagination {
        display: flex;
    }

    .home .sabv2__inner .wcps-nav {
        display: grid;
    }
}

/* 1101–1199px: the title is 44px (24px ≤1100px) */
@media (min-width: 1101px) and (max-width: 1199px) {
    .home .sabv2__head {
        margin-bottom: 22px;
    }
}

/* ---------------------------------------------------------------------------------------------
 * ONE PAGINATION STYLE (Advisory Board, Real Stories), 768–1199px — the one already used by the
 * sliders on /personalised/ and the Advisory Board on phones (homepage.css, 17.11.2026): 8px
 * squares 8px apart, navy #1f3357 active / pale navy idle, left-aligned on the 24px gutter, each
 * dot a 24px tap target (8px padding; the −4px margins overlap the targets, not the squares).
 * Real Stories before: a 38×10px pill + round 10px dots, Swiper's "dynamic" window centred so the
 * first dot started 68px right of the gutter. After: the same squares; the window (31 posts → 30
 * dots) stays, but it is anchored on the gutter: Swiper centres its window by shifting every dot
 * 2 slots (32px) right at the start — the box is moved 32px left (+4px for the tap padding) and
 * those 2 slots are clipped, so 5 squares show from the gutter and the window scrolls as before.
 * ------------------------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
    .home .sab-v2 .wcps-pagination,
    .home .community .wcps-pagination {
        gap: 0;
        margin-inline-start: -4px;
        transform: none !important;
    }

    .home .sab-v2 .wcps-pagination .swiper-pagination-bullet,
    .home .community .wcps-pagination .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        padding: 8px;
        margin: 0 -4px !important;
        border-radius: 0;
        background: rgba(31, 51, 87, .25);
        background-clip: content-box;
        opacity: 1;
        transform: none !important; /* no shrinking side dots (Swiper's dynamic scale .33/.66) */
    }

    .home .sab-v2 .wcps-pagination .swiper-pagination-bullet-active,
    .home .community .wcps-pagination .swiper-pagination-bullet-active {
        background: #1f3357;
        background-clip: content-box;
    }

    .home .community .wcps-pagination.swiper-pagination-bullets-dynamic {
        margin-inline-start: -36px;
        clip-path: inset(0 0 0 32px);
    }

    .rtl.home .community .wcps-pagination.swiper-pagination-bullets-dynamic {
        clip-path: inset(0 32px 0 0);
    }
}

/* ---------------------------------------------------------------------------------------------
 * LOGO STRIP (partners' logos marquee), 768–1199px.
 * Before: 64px padding top and bottom (0/42 at 768) → 67px from the doctors, 64px to the image block.
 * After: 32px above; the image block below starts 32px under the logos.
 * ------------------------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
    .home .logo-strip {
        padding: 20px 0 32px; /* top: + 12px left under the doctors' dots/arrows = 32px */
    }

    /* no logo strip (AR): the image block starts 32px under the doctors' dots/arrows (20 + 12) */
    .home main.content:not(:has(> .logo-strip)) > .container:has(> .insights-hero) {
        margin-top: 20px;
    }
}

/* ---------------------------------------------------------------------------------------------
 * OUR INSIGHTS image block (.insights-hero), 768–1199px.
 * Before: min-height clamp(420px, 70vh, 720px) with the copy at the bottom: 273–438px of picture
 * above the copy, 64px under the button.
 * After: 32px from the picture's top and bottom edges to the copy (top = bottom).
 * ------------------------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
    .home .insights-hero {
        min-height: 0;
    }

    .home .insights-hero__inner {
        min-height: 0;
        padding: 32px 24px;
    }

    /* 953–1199px: the title grew to 48px in its 760px column and broke as "AND EXERTS OPINIONS /
       - TO IMPROVE YOUR" (a line starting with the dash, 5 lines at 1180). Capped at 40px → 4 lines,
       the dash stays after "OPINIONS". ≤952px (4.2vw < 40px) unchanged. */
    .home .insights-hero__title {
        font-size: min(4.2vw, 40px);
    }
}

/* ---------------------------------------------------------------------------------------------
 * REAL STORIES (.community), 768–1199px.
 * Before: 64px margin (+12px) → 76px under the image block; cards 320px wide in 352–378px
 * slider columns (2 per view) → 32–58px holes after each card; at 1024 the 320px cards were
 * wider than their 314px columns (cards touching, the 3rd clipped); the card foot (@name) hung
 * 36px below the list box, so the dots sat 8px under it; dots = a 38px pill + round dots in a
 * box shifted 68px right of the gutter ("not our pagination").
 * After: 32px under the image block; title → videos 24px; each card fills its column (decision
 * #06a) and the columns are 16px apart at every width (js/homepage.js: 16px at 1024–1199 too,
 * was 10px); videos → dots 24px; the dots = the page's square dots.
 * ------------------------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
    .home .community {
        margin-top: 0;
        padding-top: 20px; /* + 12px above the overline's text = 32px (was 64 + 12 = 76px) */
    }

    .home .community__top {
        margin-bottom: 6px; /* + the list's 12px top margin + the title's 6px = 24px to the videos (was 30px) */
    }

    .home .community__list {
        max-height: none;
        gap: 0; /* 1025–1199px: the list's 22px CSS gap was added to Swiper's own spacing → 32px between
                   cards and the 3rd card cut at the right edge; Swiper alone spaces them now */
    }

    .home .community .post__card {
        width: 100%;
    }

    /* card foot (@name) → the arrow's chevron 24px (was 58px to the dots, 8px of it under the
       list box). Negative: the foot's white bottom padding is not visible on the white page. */
    .home .community .wcps-bottom {
        margin-top: -3px;
        justify-content: space-between; /* 768px: centred (phone rule) → dots left, arrows right */
        float: none;
        width: 100%; /* 1025–1199px: 50% wide → the arrow sat in the middle of the row (x≈565 @1180) */
    }

    .home .community .wcps-pagination {
        display: flex; /* 768px: hidden by the phone rule */
    }
}

/* ---------------------------------------------------------------------------------------------
 * LATEST HIGHLIGHTS (.press-split), 768–1199px.
 * Before: title → feature 13px; 64px under the last READ MORE + the footer's own spacing.
 * After: title → feature 24px; 32px from the last READ MORE to the footer.
 * ------------------------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) {
    .home .press-split {
        padding-top: 8px; /* + 24px left under the Real Stories dots/arrow = 32px (was 56px) */
    }

    .home .press-split__title {
        margin-bottom: 24px; /* title text → the feature picture 24px (was 13px) */
    }

    .home .press-split__inner {
        padding-bottom: 32px;
    }

    /* The feature picture at its own proportions. Before: a 16:15 box with the picture forced to
       648px high and cropped (object-fit: cover) — the 16:9 picture lost 33% of its width at 768–880
       ("NOORIA × LAC": both ends of NOORIA cut) and 59% at 1024 (two columns). */
    .home .press-feature__figure {
        aspect-ratio: auto;
    }

    .home .press-feature__figure img {
        height: auto;
    }

    /* … and the caption under the picture on the overlay's dark navy (it was pulled 100px up over the
       picture — with the whole picture shown it ran over the picture's own logo) */
    .home .press-feature__overlay {
        margin-top: 0;
        background: #081022;
    }

    /* side articles: READ MORE right under the text (was pinned to the bottom of the 200px row,
       leaving a 60–100px hole between the excerpt and the link) */
    .home .press-split:not(.personalized-faq) .press-side__content {
        justify-content: flex-start;
    }

    .home .press-split:not(.personalized-faq) .press-side__meta {
        margin-top: 12px;
    }
}

/* 881–1199px: one column, as at 768–880px. Before: two columns — the feature card (446px @1024,
   519px @1180) next to the 636px list of 3 articles left a 117–190px empty hole under the
   feature, and the feature picture was cropped to 41–48% of its width. */
@media (min-width: 881px) and (max-width: 1199px) {
    .home .press-split__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .home .press-side__link {
        grid-template-columns: 140px 1fr;
        height: auto;
    }
}

/* 1025–1199px: the title is bigger, its text box ends 1px higher */
@media (min-width: 1025px) and (max-width: 1199px) {
    .home .press-split__title {
        margin-bottom: 25px;
    }
}

/* Owner 16:34 (Shop by objective, 1024): cards → dots was 24px, dots → badges strip 40px — both 32px now
   (measured to the visible dot squares and the strip's icons, not to the arrows). */
@media (min-width: 768px) and (max-width: 1199px) {
    .home .sv2__dots { margin-top: 16px; }
    .home .icons-strip { padding-top: 26px; }
}


/* =============================================================================================
 * EYE-LEVEL PASS 18.11.2026 (evening) — measured with the whitespace tool (ws.cjs v2: only painted
 * things count — the visible dot square, not its 24px tap box; a chevron's strokes, not its 24px
 * svg box; a frame's 1px line; a white box on white = invisible). The earlier "32px" values were
 * measured to invisible boxes; these rules correct them so the eye sees: 32px between blocks,
 * equal space above and below every separator row (dots, arrows, buttons, frame edges), 32px
 * inside framed / coloured blocks. Tablet part: 768–1199px (the layouts set above).
 * ============================================================================================= */
@media (min-width: 768px) and (max-width: 1199px) {
    /* Festive favourites: prices → visible dot squares 24px, dots → velvet block 32px (uneven).
       Now 32 = 32: the dots row sits 8px lower. */
    .duo-section--festive .duo-grid__nav {
        margin-top: 24px; /* 16 → 24 */
    }

    /* Approaches (navy): "EVERY FORMULA…" → START NOW 41–43px, START NOW → circles 30px,
       circles → card frames 24px, frame line → card copy 24px, picture → frame line 24px, frame
       line → band edge 32px. Now every one of them 32px. */
    .home .approaches .general-banner .insights-hero__btn {
        margin-top: 31px; /* 40 → 31 (text → button 41 → 32) */
    }

    .home .approaches .mobile-approaches > .switchers,
    .home .approaches .switchers {
        padding-top: 8px; /* 6 → 8 (button → circles 30 → 32) */
        margin-bottom: 8px; /* 0 → 8 (circles → frame 24 → 32) */
    }

    .home .approaches .left-banner,
    .home .approaches .right-banner,
    .home .approaches .mobile-approaches .left-banner,
    .home .approaches .mobile-approaches .right-banner {
        padding-top: 32px; /* 24 → 32: frame line → title */
        padding-bottom: 32px; /* 24 → 32: picture → frame line */
    }

    /* card copy → "From … CHF" 41–43px (the last paragraph's 17px margin + 24px) → 24px */
    .home .approaches .banner-content .content .body-text > p:last-child {
        margin-bottom: 0; /* 17 → 0 */
    }

    /* Real Stories: JOIN US button → videos 18px (title text → videos was 24, but the button's box
       hangs 6px lower and is the lowest visible thing) → 24px, heading → content as everywhere. */
    .home .community__top {
        margin-bottom: 12px; /* 6 → 12 */
    }

    /* Latest highlights: the feature caption is a navy panel — copy 18/19px from its edges → 32px
       (top = bottom, like every coloured block); feature → list 20px, list rows 18px → 24px. */
    .home .press-feature__overlay {
        padding-top: 32px; /* 18 → 32 */
        padding-bottom: 31px; /* 18 → 31 (READ MORE's text box ends 1px lower: 32px seen) */
    }

    .home .press-split__grid {
        gap: 32px; /* 20 → 32: the feature panel's edge has 32px on both sides (copy inside, list outside) */
    }

    .home .press-side {
        row-gap: 24px; /* 18 → 24 */
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    /* Shop by objective: cards → the arrows' chevrons 19px, dots → badges strip 32px. The whole
       dots/arrows row moves 13px down: 32 = 32 (the strip follows the row, so its 32px stays). */
    .home .solutions-v2 .sv2__controls {
        margin-top: 23px; /* 10 → 23 */
    }

    /* Advisory board: roles → the arrow's chevron 28px, chevron → logos 36px → 32 = 32. */
    .home .sab-v2 .wcps-bottom {
        margin-top: 13px; /* 9 → 13 */
    }

    .home .logo-strip {
        padding-top: 16px; /* 20 → 16 */
    }

    /* Real Stories: @name row → the arrow's chevron 27px, chevron → NOORIA DIGEST 36px → 32 = 32. */
    .home .community .wcps-bottom {
        margin-top: 2px; /* −3 → 2 */
    }

    .home .press-split {
        padding-top: 4px; /* 8 → 4 */
    }
}

/* 768–890px: the approaches copy's text box ends 3px higher than at 891+ (text → button 43px) */
@media (min-width: 768px) and (max-width: 890px) {
    .home .approaches .general-banner .insights-hero__btn {
        margin-top: 29px; /* 40 → 29 (43 → 32) */
    }
}

/* Personalised plan (.prog-split, DE/FR instead of the approaches block), 768–1199px.
   Before: lead → Damen/Herren 25px, Damen/Herren → Jetzt Starten 18px, Jetzt Starten → cards
   24px (≤980) / → band edge 32px (981+); the cards column started 19px under the band edge while
   the copy column started 32px under it. After: 32px every time (each button row 32 = 32). */
@media (min-width: 768px) and (max-width: 1199px) {
    .home .prog__lead {
        margin-bottom: 27px; /* 20 → 27 (text → buttons 25 → 32) */
    }

    .home .prog__choices {
        margin-bottom: 32px; /* 18 → 32 */
    }
}

@media (min-width: 768px) and (max-width: 980px) {
    .home .prog__inner {
        gap: 32px; /* 24 → 32: Jetzt Starten → the cards */
    }
}

@media (min-width: 981px) and (max-width: 1199px) {
    .home .prog__right {
        padding-top: 12px; /* 0 → 12: the cards' frame 20 → 32px under the band edge, level with the copy */
    }
}

/* 981–1199px: the cards' scroll window ran 330px high whatever the copy's height — at 1180 it ended
   58px above the copy's Jetzt Starten button (the cut card and the button made two uneven rows).
   Now the window fills the column from 32px under the band edge down to the button's bottom line,
   so both columns start and end on the same lines (32px from the band edges). */
@media (min-width: 981px) and (max-width: 1199px) {
    .home .prog__right {
        position: relative;
    }

    .home .prog__right .vscroll {
        position: absolute;
        top: 12px; /* = the column's 12px padding above */
        bottom: 0;
        left: 0;
        height: auto; /* was 330px */
    }
}


/* =============================================================================================
 * EYE-LEVEL PASS — iPad Pro landscape / small laptops, 1200–1366px (the DESKTOP layout of every
 * block; ≥1367px untouched). Owner: "on tablet halve the spacing" — the desktop 64px paddings
 * gave 52–98px of empty space between and inside blocks here. Measured to the painted things.
 * ============================================================================================= */
@media (min-width: 1200px) and (max-width: 1366px) {
    /* «NEW · FESTIVE EDIT» strip: velvet → label 24px, label → navy block 17px → 32 = 32 */
    .duo-section--festive > .duo-section__top {
        padding-top: 22px; /* 12 → 22 (text 24 → 32px under the velvet) */
        padding-bottom: 27px; /* 12 → 27 (text → navy block 17 → 31px; the label's line box adds 1px) */
    }

    /* Approaches (3 panels): band edge → "PERSONALISED 8-WEEK PROGRAM" / "MY SIGNATURE SHOTS" 52px → 32px */
    .home .approaches .hidden-mobile .left-banner,
    .home .approaches .hidden-mobile .right-banner {
        padding-top: 32px; /* 52 → 32 */
    }

    /* Shop by objective: navy block → ALL CATEGORIES 64px → 32; cards → arrows/dots row 73px → 32;
       row → badges strip 98px → 32 (the section's 64px bottom padding + the strip's 24px margin) */
    .home .solutions-v2 {
        padding-top: 32px; /* 64 → 32 */
        padding-bottom: 0; /* 64 → 0: the strip below makes the 32px */
    }

    .home .solutions-v2 .sv2__controls {
        margin-top: 23px; /* 64 → 23 (+ the cards' 9px under the row top to the chevrons = 32px) */
    }

    /* badges strip: 32px above (from the dots/arrows row) and 32px below (to SCIENCE AND INNOVATION) */
    .home .icons-strip__track {
        margin-top: 22px; /* 24 → 22 (+ 10px from the chevrons' bottom to the row's edge) */
        margin-bottom: 20px; /* 24 → 20 (+ 12px above the overline's text) */
    }

    /* Advisory board → partner logos 67px → 32; logos → the OUR INSIGHTS picture 64px → 32 */
    .home .logo-strip {
        padding-top: 29px; /* 64 → 29 (+ 3px under the roles' last line) */
        padding-bottom: 32px; /* 64 → 32 */
    }

    /* OUR INSIGHTS picture → NOORIA LIFE 76px → 32 */
    .home .community {
        margin-top: 20px; /* 64 → 20 (+ 12px above the overline's text) */
    }

    /* JOIN US → videos 30px → 24 (heading → content) */
    .home .community__top {
        margin-bottom: 12px; /* 18 → 12 */
    }

    /* @name row → the dots/arrow row 38px → 32; the row → NOORIA DIGEST 28px → 32 */
    .home .community .wcps-bottom {
        margin-top: 38px; /* 44 → 38 */
    }

    .home .press-split {
        padding-top: 4px; /* 0 → 4 */
    }

    /* LATEST HIGHLIGHTS → the articles 13px → 24 (heading → content); last article → footer 64px → 32 */
    .home .press-split__title {
        margin-bottom: 25px; /* 14 → 25 */
    }

    .home .press-split__inner {
        padding-bottom: 32px; /* 64 → 32 */
    }
}

@media (min-width: 1200px) and (max-width: 1366px) {
    /* no badges strip (DE, FR, AR): Shop by objective's dots/arrows row → the Advisory Board's
       overline 22px → 32 */
    .home .sab-v2 {
        padding-top: 10px; /* 0 → 10 */
    }

    .home .icons-strip ~ .sab-v2 {
        padding-top: 0; /* with the strip (EN): unchanged, the strip makes the 32px */
    }

    /* Personalised plan (DE/FR): 64px band padding → the cards' frame / Jetzt Starten 63px from
       the band edges → 32 = 32 */
    .home .prog__inner {
        padding-top: 32px; /* 64 → 32 */
        padding-bottom: 32px; /* 64 → 32 */
    }
}

/* No partner-logo strip (the DE/AR home): the OUR INSIGHTS picture follows the Advisory Board directly.
   768–1199: the arrows' chevron → picture 36px → 32 (the row moved 4px down above, see .wcps-bottom).
   1200–1366: the doctors' last role line → picture 4px (touching) → 32. */
@media (min-width: 768px) and (max-width: 1199px) {
    .home main.content:not(:has(> .logo-strip)) > .container:has(> .insights-hero) {
        margin-top: 16px; /* 20 → 16 */
    }
}

@media (min-width: 1200px) and (max-width: 1366px) {
    .home main.content:not(:has(> .logo-strip)) > .container:has(> .insights-hero) {
        margin-top: 28px; /* 0 → 28 */
    }
}
