/**
 * Bega — brand-specific CSS overrides.
 * Hand-written, never touched by poc_tokens/compile.php.
 * Loaded AFTER theme-bega.css (generated tokens), global.css and the shared component
 * stylesheets, so these rules win by order (no !important).
 *
 * Live breakpoints (bega.net.au): 992 / 1250 / 1550; container = 90% + 15px padding.
 * Everything here is what the shared components have no token for (structure live needs:
 * the search field over the nav, the logo at the end of the footer row, the recipe card's
 * category line above its title, the phone recipe sliders) or a value live steps per breakpoint.
 */

/* Live text-wrap: the shared reset balances/pretties headings; live wraps plainly. */
h1, h2, h3, h4, p { text-wrap: initial; }

/* ---------- Page offset under the fixed header ---------- */

/* Desktop: the header sits over the home hero slider and the recipe hero (as on live);
   every other page starts below it. */
.pageGeneric:not(.page-home) {
    padding-top: calc(var(--header-height, 100px) + 15px);
}

main:not(.pageGeneric):not(.page-recipe) {
    padding-top: var(--header-height, 100px);
}

/* A page opening with a banner puts it under the header too (Bega Heritage). */
.pageGeneric:not(.page-home):has(> .hero-section:first-child) {
    padding-top: 0;
}

@media (min-width: 992px) {
    .pageGeneric > .hero-section--img-tag .hero-img-element {
        height: 36.1111vw;
        object-fit: cover;
    }
}

/* Mobile and tablet (below 992px): the 80px header is fixed too and every page starts below it. */
@media (max-width: 991px) {
    body {
        padding-top: 80px;
    }

    .pageGeneric:not(.page-home),
    main:not(.pageGeneric):not(.page-recipe) {
        padding-top: 0;
    }
}

/* ---------- Header (shared header-extended) ---------- */

/* The red rule is drawn over the bottom of the bar, on top of the nav items' red
   hover/active background (live draws it with :after rather than a border). */
.site-header::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: 4px;
    background: var(--color-primary);
    pointer-events: none;
}

/* Logo top-left, nav pushed to the end of the bar, the search icon after it (live). */
.site-header--extended .site-header__container {
    position: relative;
    align-items: flex-start;
}

.site-header--extended .logo-wrapper {
    margin-top: 14px;
}

.site-header--extended nav#site-nav {
    margin-left: auto;
}

.site-header--extended .header-right {
    margin-left: 16px;
    margin-top: 28px;
}

/* Past its 1917px cap the bar stays centred (live). */
@media (min-width: 1917px) {
    .site-header--extended {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* The phone and tablet menu lists every item the same way (live): the last one carries no extra room */
@media (max-width: 991px) {
    .site-header--burger-tablet .nav-menu li:last-child .nav-item {
        padding-bottom: 0;
    }
}

/* Current section and hover: a red block behind the label (live's desktop bar only — the phone and
   tablet menu lists every item the same way). */
@media (min-width: 992px) {
    .site-header--extended .nav-item.is-active,
    .site-header--extended .nav-item:hover {
        background: var(--color-primary);
    }
}

/* Narrower desktops: smaller nav type and a shorter search field (live's 992–1249px step). */
@media (min-width: 992px) and (max-width: 1249px) {
    .site-header--extended {
        --font-size-nav-item: 13px;
    }

    /* 13px labels are 19.5px tall: the red block stays the full 100px of the bar. */
    .site-header--extended {
        --nav-item-padding: 35px 20px 45.5px;
    }
}

/* The search box slides open OVER the nav, inside the bar (live), not in a band under the
   header: the shared panel is re-anchored to the top-right of the bar. */
.site-header--extended .header-search-panel {
    position: absolute;
    top: 8px;
    right: 11px;
    left: auto;
    bottom: auto;
    z-index: 2;
    display: flex;
    align-items: center;
    width: calc(100% - 355px);
    height: 80px;
}

.site-header--extended .header-search-panel[hidden] {
    display: none;
}

/* The box is its own focus mark (live shows no ring inside it). */
.site-header--extended .header-search-panel__input:focus,
.site-header--extended .header-search-panel__input:focus-visible {
    outline: none;
}

/* Narrower desktops: the box starts closer to the logo (live's 992–1249px step). */
@media (min-width: 992px) and (max-width: 1249px) {
    .site-header--extended .header-search-panel {
        width: calc(100% - 285px);
    }
}

.site-header--extended .header-search-panel__form {
    width: 100%;
    margin: 0;
}

.site-header--extended .header-search-panel__input {
    padding-right: 40px;
}

/* Mobile and tablet (≤991px, header-extended's burgerUpTo: 'tablet'): the 80px fixed black bar,
   the logo top-left, the search icon then the burger on the right. */
@media (max-width: 991px) {
    .site-header--extended,
    .site-header--extended.site-header--burger-tablet {
        position: fixed;
        min-height: 80px;
        background: var(--color-bg-dark, #000000);
    }

    .site-header--extended .site-header__container {
        min-height: 80px;
    }

    /* The open menu keeps the bar (logo, search, close) and its red rule on top. */
    .site-header::after {
        height: 2px;
        z-index: 96;
    }

    .site-header--extended .logo-wrapper {
        margin-top: 5px;
    }

    .site-header--extended .nav-burger {
        /* the lines centred on the search glass (its 26px box sits at 24px) */
        margin-top: 17px;
        margin-right: -5px;
    }

    .site-header--extended .header-right {
        position: relative;
        z-index: 95;
        margin-top: 24px;
        margin-left: auto;
        margin-right: 25px;
        --header-search-size: 26px;
    }

    .site-header--extended .header-search-panel {
        top: 4px;
        right: 66px;
        z-index: 97;
        width: calc(100vw - 85px);
        height: 70px;
        --header-search-panel-icon-size: 28px;
        --header-search-panel-icon-left: 9px;
        --header-search-panel-input-padding-left: 48px;
    }

    .site-header--extended .header-search-panel__input {
        padding-right: 12px;
    }

    /* The overlay menu: centred items, the burger turning into a cross while it is open. */
    .site-header--extended .nav-menu {
        align-items: center;
    }

    .site-header--extended .nav-menu-item {
        justify-content: center;
    }

    .site-header--extended .nav-item {
        flex: 0 1 auto;
        justify-content: center;
        padding: 0;
        line-height: 1.2;
        background: none;
    }

    .nav-burger-line {
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .site-header.menu-open .nav-burger-line:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .site-header.menu-open .nav-burger-line:nth-child(2) {
        opacity: 0;
    }

    .site-header.menu-open .nav-burger-line:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
}

/* ---------- Home slider (shared hero-carousel-extended) ---------- */

/* The slide scales with its image (live: the picture sets the height). */
.hero-carousel-slide {
    aspect-ratio: 1920 / 1160;
}

.hero-carousel {
    border-bottom: 6px solid var(--color-primary);
}

/* The dots sit over the bottom of the picture: red bars (live). */
.hero-carousel .carousel-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    padding: 0;
    z-index: 1;
}

.hero-carousel .carousel-indicator {
    width: 25px;
    height: 5px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.8);
}

.hero-carousel .carousel-indicator.current-indicator {
    background: var(--color-primary);
}

/* Dark fade along the bottom of every slide (live's .dark-shadow), under the CTA. */
.hero-carousel-slide::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
    z-index: 1;
}

/* A slide's caption (live's h4.title): a black box right above the button. */
.hero-carousel-slide__content {
    gap: 2px;
}

.hero-carousel-slide__subtitle {
    padding: 9px 10px;
    background: var(--color-bg-dark, #000000);
    color: var(--color-text-light);
    text-transform: uppercase;
}

/* The slide button: live's red button in the heading font (no shared token above 768px). */
.hero-carousel-slide__cta {
    background: var(--color-button-primary-bg);
    color: var(--color-button-primary-text);
    border: var(--color-button-primary-border);
    border-radius: 0;
    padding: 9px 10px;
    font-family: var(--font-family-heading);
    font-weight: 400;
    font-size: 24px;
    line-height: 24px;
    text-decoration: none;
    opacity: 0.8;
}

.hero-carousel-slide__cta:hover {
    background: var(--color-button-primary-hover-bg, #E00F21);
    opacity: 0.8;
}

@media (max-width: 1249px) {
    .hero-carousel .carousel-nav {
        bottom: 14px;
    }

    .hero-carousel-slide {
        padding-bottom: 50px;
    }
}

@media (max-width: 991px) {
    .hero-carousel {
        border-bottom: 0;
    }

    .hero-carousel-slide {
        padding: 0 0 40px 15px;
    }

    .hero-carousel-slide__subtitle {
        font-size: 18px;
        line-height: 18px;
    }

    .hero-carousel-slide__cta {
        font-size: 16px;
        line-height: 16px;
    }
}

/* Phones only: the portrait picture (live switches pictures at 768px). */
@media (max-width: 767px) {
    .hero-carousel-slide {
        aspect-ratio: 768 / 941;
    }
}

/* ---------- Headings, intros and buttons (shared rich-text / button-row) ---------- */

.rich-text h1,
.rich-text h2,
.rich-text h3 {
    font-family: var(--font-family-heading);
    text-transform: uppercase;
}

/* Section intros: the description under a heading at live's 18px / 1.5, in live's 840px column. */
.rich-text--title p,
.content-band .rich-text--center p {
    margin-bottom: 0;
}

/* A section heading: live's 840px column inside the container (no gutter of its own); a
   heading with no intro under it leaves no space of its own. */
.rich-text--title {
    --rich-text-gutter: 0;
}

.rich-text--title .rich-text__inner > :last-child {
    margin-bottom: 0;
}

/* Section-closing buttons are live's large button (btn-lg) in the heading font. */
.button-row__btn,
.content-cards__cta--button,
.product-list__btn {
    font-family: var(--font-family-heading);
    font-weight: 400;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.button-row__btn {
    padding: 14px 21px;
}

.button-row__btn:hover,
.content-cards__cta--button:hover,
.product-list__btn:hover {
    background: var(--color-button-primary-hover-bg, #E00F21);
    color: var(--color-button-primary-text);
}

@media (max-width: 991px) {
    .rich-text h2 {
        font-size: 26px;
        line-height: 1;
        margin-bottom: 9.5px;
    }

    .rich-text--title p,
    .content-band .rich-text--center p {
        font-size: 14px;
        line-height: 21px;
    }

    .button-row__btn {
        padding: 9px 21px;
        font-size: 16px;
        line-height: 16px;
    }
}

/* ---------- Recipe cards (shared content-cards, variant "recipes") ---------- */

/* The card's category line (the item's text) sits above the title (live's tile label). */
.content-cards--recipes .content-cards__text {
    order: -1;
    font-weight: 700;
    text-transform: uppercase;
}

.content-cards--recipes .content-cards__card-title,
.content-cards--ranges .content-cards__card-title {
    font-family: var(--font-family-heading);
    text-transform: uppercase;
    margin-bottom: 9.5px;
}

/* Live keeps 20px between the title and the button pinned to the card's foot. */
.content-cards--recipes .content-cards__card-title {
    margin-bottom: 29.5px;
}

.content-cards--recipes .content-cards__card:hover .content-cards__card-title,
.content-cards--ranges .content-cards__card:hover .content-cards__card-title {
    color: var(--color-primary);
}

.content-cards--recipes .content-cards__cta--button {
    padding: 5px 10px;
    line-height: 24px;
}

/* Live's tiles are one link: the whole card opens the page (the button's box stretches over the
   card), the picture zooms a little while the pointer is on it. */
.content-cards--recipes .content-cards__card,
.content-cards--ranges .content-cards__card {
    position: relative;
}

.content-cards--recipes .content-cards__cta--button::after,
.content-cards--ranges .content-cards__cta--button::after {
    content: '';
    position: absolute;
    inset: 0;
}

.content-cards--recipes .content-cards__media {
    overflow: hidden;
}

.content-cards--recipes .content-cards__media img {
    transition: transform 0.3s ease;
}

.content-cards--recipes .content-cards__card:hover .content-cards__media img {
    transform: scale(1.05);
}

/* A teaser block: heading (rich-text), cards, button — on the cream band on range/recipe pages.
   The cards sit 15px further in than the container (live's half-gutter row). */
.recipes-teaser .rich-text--title {
    padding: 100px calc(5% + 15px) 0;
}

.recipes-teaser {
    padding-bottom: 80px;
}

.recipes-teaser .content-cards--grid {
    --content-cards-grid-padding: 67.5px calc(5% + 30px) 7.5px;
}

.recipes-teaser .button-row {
    padding: 20px 0 0;
}

.recipes-teaser--alt,
.recipes-teaser--alt .content-cards {
    background: var(--band-bg);
}

.recipes-teaser--alt .content-cards--recipes {
    --content-cards-grid-card-bg: var(--color-bg, #FFFFFF);
}

.recipes-teaser--alt .rich-text--title {
    --rich-text-heading-color: var(--title-color);
    --rich-text-color: var(--title-color);
}

/* Tablet and phones: the 15px container, a 26px heading. Above 768px the cards stay four
   across (30px edges). */
@media (max-width: 991px) {
    .recipes-teaser .rich-text--title {
        padding: 40px 15px 0;
    }

    .recipes-teaser {
        padding-bottom: 40px;
    }

    .recipes-teaser .content-cards--grid {
        --content-cards-grid-padding: 27.5px 30px 7.5px;
    }
}

/* Up to 768px (live's own step): the recipe slider — a swipeable row, 50px of the neighbouring
   cards showing on each side; two cards per view at 768px, one on phones. 30px under the row is
   the room live keeps for the slider's dots. */
@media (max-width: 768px) {
    .recipes-teaser .content-cards--grid {
        --content-cards-grid-padding: 27.5px 0 37.5px;
        --content-cards-grid-padding-mobile: 27.5px 0 37.5px;
    }

    .recipes-teaser .content-cards--recipes .content-cards__list {
        display: flex;
        gap: 15px;
        margin: 0 22.5px;
        padding: 0 57.5px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 57.5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .recipes-teaser .content-cards--recipes .content-cards__list::-webkit-scrollbar {
        display: none;
    }

    .recipes-teaser .content-cards--recipes .content-cards__item {
        flex: 0 0 calc((100% - 15px) / 2);
        scroll-snap-align: start;
    }
}

@media (max-width: 767px) {
    .recipes-teaser .content-cards--recipes .content-cards__list {
        margin: 0 15px;
    }

    .recipes-teaser .content-cards--recipes .content-cards__item {
        flex-basis: 100%;
    }
}

/* ---------- Product range listing (shared content-cards, variant "ranges") ---------- */

/* Live: three tiles across the 90% container; pack shots in a square of at most 430px at the
   tile's left with 15px breathing room, 30px titles, 16px teasers under them, larger
   "View range" buttons pinned 10px from the tile's foot. */
.page-range--listing > .rich-text--title {
    padding: 115px calc(5% + 15px) 0;
}

.content-cards--ranges {
    --content-cards-grid-padding: 67.5px calc(5% + 15px) 90px;
    --content-cards-grid-gap: 47.5px 7.5px;
    --content-cards-grid-image-aspect-ratio: 1;
    --content-cards-card-title-size: 30px;
    --content-cards-card-title-line-height: 30px;
    --content-cards-text-size: 16px;
    --content-cards-text-line-height: 1.5;
    --content-cards-grid-text-color: var(--color-text-dark);
    --content-cards-grid-text-margin: 14.5px 0 26px;
    --content-cards-grid-body-padding: 20px 15px 10px;
    --content-cards-grid-media-gap: 0;
    --content-cards-grid-cta-margin: auto;
}

/* The range picture exactly as live draws it: the 400px file at its natural size, never wider than the
   column, at least 75% of it, with 15px around it (content-box), on the left. */
.content-cards--ranges .content-cards__media {
    display: block;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    line-height: 0;
}

.content-cards--ranges .content-cards__media img {
    box-sizing: border-box;
    display: inline-block;
    width: auto;
    min-width: 75%;
    max-width: min(100%, 430px);
    height: auto;
    aspect-ratio: auto;
    padding: 15px;
    object-fit: fill;
    object-position: left center;
    transition: transform 0.3s ease;
}

/* live serves the same 400px file as its "2x" candidate, so on retina screens (and on phones) the picture's
   natural size is 200px — at least 75% of the column, as there */
@media (min-resolution: 1.5dppx) {
    .content-cards--ranges .content-cards__media img {
        width: 230px;
    }
}

/* live caps its 90% container at 1728px on the widest screens */
@media (min-width: 1920px) {
    .content-cards--ranges {
        --content-cards-grid-padding: 67.5px calc((100% - 1683px) / 2) 90px;
    }
}

.content-cards--ranges .content-cards__card:hover .content-cards__media img {
    transform: scale(1.05);
}

.content-cards--ranges .content-cards__cta--button {
    padding: 12px;
    line-height: 24px;
}

/* Tablet and phones: centred tiles, the button right under the teaser, a 30px heading right
   under the header and live's 12.8px teasers. Tablet: still three across the full width
   (15px edges and gutters). Phones: one tile per row. */
@media (max-width: 991px) {
    .page-range--listing > .rich-text--title {
        padding: 20px 15px 0;
    }

    .page-range--listing > .rich-text h1 {
        font-size: 30px;
        line-height: 30px;
    }

    .content-cards--ranges {
        --content-cards-grid-padding: 27.5px 15px 60px;
        --content-cards-grid-padding-mobile: 27.5px 15px 27.5px;
        --content-cards-grid-gap-mobile: 7.5px;
        --content-cards-grid-card-title-size-mobile: 30px;
        --content-cards-text-size: 12.8px;
        --content-cards-text-line-height: 19.2px;
        --content-cards-grid-text-margin: 14.5px 0 0;
        --content-cards-grid-body-padding: 20px 15px;
        --content-cards-grid-cta-margin: 19.5px;
    }

    .content-cards--ranges .content-cards__media img {
        object-position: center;
    }
}

/* Tablets (769–991px): live keeps the texts on the left and every "View range" button on the same
   line at the foot of the row (its tiles are equal-height); only phones centre the tile. */


@media (max-width: 768px) {
    .content-cards--ranges .content-cards__body {
        align-items: center;
        text-align: center;
    }
}

/* ---------- Range of products (shared product-list) ---------- */

/* Live's product intros: two per row across the 90% container. From 1250px the pack shot (half
   the card) sits beside a 42px title, an 80px red rule, 20px size details and an 18px button;
   below that the card is stacked and centred (a pack shot of at most 400px above the texts). */
.page-range--products > .rich-text--title {
    padding: 115px calc(5% + 30px) 0;
}

/* The rows stay inside the 90% container (the shared list pulls them out by the gutter) and
   a card alone on the last row keeps its column (live), instead of the shared centring. */
.product-list__items {
    justify-content: flex-start;
    margin: 0 -15px;
}

/* A range with a single product: live's intro spans the whole row — the pack shot centred in the left
   half, the texts in the right half (stacked and centred below 992px, like every card there). */
.product-list__item:only-child {
    flex-basis: 100%;
    max-width: 100%;
}

.product-list__item:only-child .product-list__image {
    max-width: min(100%, 400px);
    max-height: 400px;
}

@media (min-width: 992px) {
    .product-list__item:only-child .product-list__media {
        flex-basis: 50%;
        max-width: 50%;
    }
}

/* The pack shot at its own size and ratio, never wider than its column (live). */
.product-list__image {
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.product-list__body {
    padding-top: 20px;
}

.product-list__title {
    font-family: var(--font-family-heading);
    text-transform: uppercase;
}

.product-list__title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    margin-top: 30px;
    background: var(--color-primary, #E30613);
}

.product-list__text p {
    margin: 0;
}

.product-list__text strong {
    display: block;
    line-height: 20px;
    margin-bottom: 2px;
}

.product-list__btn {
    padding-top: 12px;
    padding-bottom: 12px;
}

@media (max-width: 1249px) {
    .product-list {
        --product-list-row-gap: 60px;
        --product-list-text-size: 16px;
        --product-list-text-line-height: 24px;
        --product-list-ctas-padding-top: 15px;
        --product-list-btn-padding-x: 10px;
        --product-list-btn-size: 16px;
        --product-list-btn-line-height: 24px;
    }

    .product-list__card {
        display: block;
    }

    .product-list__body {
        padding-top: 0;
        margin-top: 20px;
        text-align: center;
    }

    .product-list__title::after {
        margin: 25px auto 0;
    }

    .product-list__text strong {
        line-height: 16px;
    }

    .product-list__ctas {
        justify-content: center;
    }

    .product-list__btn {
        padding-top: 5px;
        padding-bottom: 5px;
    }
}

/* Tablet and phones: 15px edges and gutters, a 30px page heading, 24px product names. */
@media (max-width: 991px) {
    .page-range--products > .rich-text--title {
        padding: 20px 30px 0;
    }

    .page-range--products > .rich-text h1 {
        font-size: 30px;
        line-height: 30px;
    }

    .product-list {
        --product-list-padding-tablet: 60px 0 20px;
        --product-list-padding-mobile: 60px 0 20px;
        --product-list-gutter: 30px;
        --product-list-row-gap-tablet: 40px;
        --product-list-row-gap-mobile: 20px;
        --product-list-card-display-tablet: block;
        --product-list-title-size-tablet: 24px;
        --product-list-title-line-height-tablet: 30px;
        --product-list-title-margin-bottom: 15px;
        --product-list-text-size-tablet: 14px;
        --product-list-text-line-height-tablet: 21px;
        --product-list-ctas-padding-top-tablet: 15px;
        --product-list-btn-padding-x-tablet: 10px;
        --product-list-btn-size-tablet: 16px;
        --product-list-btn-line-height-tablet: 24px;
    }

    .product-list__title::after {
        margin: 10px auto 0;
    }

    .product-list__text strong {
        font-size: 14px;
        line-height: 14px;
    }
}

@media (max-width: 767px) {
    .product-list {
        --product-list-gutter: 15px;
    }

    .product-list__items {
        margin: 0;
    }
}

/* ---------- Content band: title + picture + button (home "Our products") ---------- */

.content-band {
    background: var(--band-bg);
    padding: 70px 0 80px;
}

/* Live: the heading 30px into the band in an 840px column of the 90% container, 60px above the
   picture (full width up to 1220px); 64px between the picture and the button. */
.content-band .rich-text--center {
    padding: 30px calc(5% + 15px) 0;
    --rich-text-center-gutter: 0;
    --rich-text-color: var(--title-color);
    --rich-text-heading-color: var(--title-color);
}

.content-band .image-row__image {
    display: block;
    max-width: 1220px;
    margin: 60px auto 64px;
    background: var(--color-bg, #FFFFFF);
}

@media (max-width: 991px) {
    .content-band {
        padding: 40px 0;
    }

    .content-band .rich-text--center {
        padding: 0 15px;
        --rich-text-center-gutter-mobile: 0;
    }

    .content-band .image-row__image {
        margin: 20px 0 59px;
    }
}

/* ---------- Text pages (shared rich-text, e.g. Contact) ---------- */

.page-heading + .rich-text {
    margin-top: 60px;
}

.pageGeneric > .rich-text p,
.pageGeneric > .rich-text li {
    font-size: 16px;
    line-height: 24px;
}

.pageGeneric .rich-text--wide h3 {
    margin-bottom: 9.5px;
}

/* Live leaves an empty line between the groups (43px from a paragraph to the next heading). */
.pageGeneric .rich-text--wide h3:not(:first-child) {
    margin-top: 43px;
}

/* A centred intro on a text page spans the container (live), not the 840px column. */
.pageGeneric > .rich-text--center {
    --rich-text-center-max-width: none;
    --rich-text-center-gutter: calc(5% + 15px);
    --rich-text-center-gutter-mobile: 15px;
}

.pageGeneric > .rich-text:last-child {
    padding-bottom: 80px;
}

@media (max-width: 991px) {
    .page-heading + .rich-text {
        margin-top: 20px;
    }

    .pageGeneric .rich-text--wide .rich-text__inner {
        padding: 0 15px;
    }

    .pageGeneric > .rich-text--center {
        --rich-text-center-gutter: 15px;
    }

    .pageGeneric .rich-text--wide h3:not(:first-child) {
        margin-top: 38.2px;
    }

    .pageGeneric > .rich-text p,
    .pageGeneric > .rich-text li {
        font-size: 12.8px;
        line-height: 19.2px;
    }
}

/* ---------- Text columns (Bega Heritage, shared feature-columns) ---------- */

/* Live: two columns, titles and text left aligned, a red rule under each title. */
.feature-columns-container {
    max-width: none;
}

.feature-columns-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-column {
    align-items: stretch;
    text-align: left;
}

.feature-column-title {
    font-family: var(--font-family-heading);
    color: var(--color-text-dark);
    line-height: 26px;
    margin: 0 0 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--color-primary, #E30613);
}

.feature-column-description p + p {
    margin-top: 9.5px;
}

@media (max-width: 991px) {
    .feature-columns-section {
        padding: 20px 30px 40px;
        --spacing-grid-gap: 10px;
        --feature-columns-item-text-size: 12.8px;
    }

    .feature-column-title {
        line-height: 24px;
        padding-bottom: 10px;
        margin-bottom: 15px;
    }

    .feature-column-description p {
        line-height: 19.2px;
    }
}

/* Tablet: the two text columns keep live's 30px gutter and 49.5px between rows. */
@media (min-width: 768px) and (max-width: 991px) {
    .feature-columns-section {
        padding: 20px 30px 89.5px;
        --spacing-grid-gap: 49.5px 30px;
    }
}

/* Phones: one column; live keeps its pairs — 24.5px inside a pair, 49.5px between pairs. */
@media (max-width: 767px) {
    .feature-columns-section {
        padding: 20px 30px 89.5px;
    }

    .feature-columns-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 24.5px;
    }

    .feature-column:nth-child(even):not(:last-child) {
        margin-bottom: 25px;
    }
}

/* ---------- Recipe page (shared hero-caption + recipe-content-extended + share-bar) ---------- */

/* The facts' icons keep their own width (live's are 30, 19 and 27px wide, 30px tall). */
.page-recipe .hero-caption__icon {
    width: auto;
}

/* Desktop: the hero fills the viewport and the caption blocks are live's 80% black. */
@media (min-width: 992px) {
    .page-recipe .hero-caption__image {
        height: 100vh;
    }

    .page-recipe .hero-caption__title,
    .page-recipe .hero-caption__meta {
        opacity: 0.8;
    }
}

@media (max-width: 1249px) {
    .page-recipe .hero-caption__box {
        bottom: 40px;
    }
}

/* Live's heading rule sits inside the h2 (inline ::after with 40px under it), so the lists start
   111/115px below the heading top: the column gap (40px) plus these margins. */
.recipe-ingredients-list {
    margin-top: 16px;
}

.recipe-instructions-list {
    margin-top: 20px;
}

/* Tips: 50px under the steps (the column gap plus this margin), a bulleted list set in like
   the steps; its heading is live's 40px title (30px on phones), the other headings keep 28px. */
.recipe-content--extended .recipe-tips {
    margin-top: 10px;
}

.recipe-content--extended .recipe-tips .recipe-content-heading {
    margin-bottom: 60px;
    font-size: var(--recipe-tips-heading-size, 40px);
    line-height: var(--recipe-tips-heading-line-height, 39px);
}

.recipe-content--extended .recipe-tips-body ul {
    padding-left: 40px;
}

.recipe-content--extended .recipe-tips-body li {
    padding-left: var(--recipe-content-ext-instruction-padding-left, 30px);
}

/* A video block in the tips column: the thumbnail is the button that opens the video (shared
   dialog), its caption in live's small light type. */
.recipe-content--extended .recipe-video {
    margin: 20px 0 0;
}

.recipe-video__open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.recipe-content--extended .recipe-tips-body .recipe-video figcaption {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.43;
    font-weight: 300;
}

.recipe-video__frame {
    aspect-ratio: 16 / 9;
    background: var(--color-bg-dark, #000000);
}

.recipe-video__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* "I like this recipe" (likebtn.com) sits at the right end of the share row (live), under it on
   tablets and phones. */
.recipe-actions {
    position: relative;
}

.recipe-like {
    position: absolute;
    top: 67px;
    right: calc(5% + 30px);
    display: flex;
    align-items: center;
}

/* live's "18 people like this recipe": light red copy, 30px before the button; empty without likes */
.recipe-like__count {
    margin: 0 30px 0 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 27px;
    color: var(--color-primary);
}

.recipe-like__count:empty {
    display: none;
}

.recipe-like__btn {
    display: inline-block;
    padding: 14px 21px;
    border: 1px solid var(--color-button-primary-bg);
    background: var(--color-button-primary-bg);
    color: var(--color-button-primary-text);
    font-family: var(--font-family-heading);
    font-size: 16px;
    line-height: 27px;
    font-weight: 400;
    text-transform: uppercase;
    cursor: pointer;
}

/* The widget's own markup arrives with inline styles (height, colours, Arial): the box stays
   ours, so these few values need !important, as on live. */
.recipe-like .likebtn-wrapper .likebtn-button {
    display: inline;
    height: auto !important;
    padding: 0;
    border: 0 !important;
    border-radius: 0;
    background: transparent !important;
}

.recipe-like .likebtn-wrapper .likebtn-label {
    font-family: var(--font-family-heading) !important;
    font-weight: 400 !important;
    text-transform: uppercase;
}

/* Share / print / bookmark bar: live's inline SVG boxes (the drawings keep their ratio inside). */
.share-bar-item--share .share-bar-icon {
    width: 32px;
}

.share-bar-item--print .share-bar-icon {
    width: 38px;
}

.share-bar-item--bookmark .share-bar-icon {
    width: 27px;
}

/* The "similar recipes" row spans the whole container on this page, its button 60px below. */
.page-recipe .recipes-teaser .content-cards--grid {
    --content-cards-grid-padding: 67.5px calc(5% + 15px) 7.5px;
}

.page-recipe .recipes-teaser .button-row {
    padding-top: 60px;
}

/* Below 1250px live keeps only "Share via..." and drops the bottom rule. */
@media (max-width: 1249px) {
    .share-bar {
        --share-bar-padding: 35px calc(5% + 30px) 80px;
        --share-bar-inner-padding: 30px 0 2px;
        --share-bar-rule-bottom: none;
        --share-bar-item-width: auto;
    }

    .share-bar-item--print,
    .share-bar-item--bookmark {
        display: none;
    }
}

@media (max-width: 991px) {
    .share-bar {
        --share-bar-padding: 25.5px 30px 40px;
        --share-bar-inner-padding: 15px 0 0;
        --share-bar-item-width: 100%;
        --share-bar-item-margin-top: 0;
        --share-bar-item-align: center;
        --share-bar-popover-left: 50%;
    }

    .page-recipe .hero-caption {
        border-bottom: 0;
    }

    .recipe-actions .share-bar {
        padding-bottom: 0;
    }

    .recipe-like {
        position: static;
        justify-content: center;
        margin-top: -9px;
        padding: 0 0 22px;
        text-align: center;
    }

    .recipe-like__count {
        margin-right: 16px;
    }

    .recipe-like__btn {
        padding: 9px 21px;
    }

    .recipe-content--extended .recipe-tips-body .recipe-video figcaption {
        margin-top: 8px;
        font-size: 12px;
    }

    .page-recipe .hero-caption__image {
        height: 48.32vw;
    }

    .page-recipe .hero-caption__title {
        font-size: 18px;
        line-height: 18px;
        padding: 9px 10px;
        opacity: 0.8;
    }

    .page-recipe .hero-caption__meta {
        padding: 13px 20px;
        opacity: 0.8;
    }

    /* Live's 12.8px copy on tablet too (the shared -mobile tokens start below 768px). */
    .recipe-content--extended {
        flex-direction: column;
        padding: 40px 30px 0;
        line-height: 19.2px;
        --recipe-ingredients-gap: 8px;
        --recipe-content-ext-column-gap: 15px;
        --recipe-content-heading-size: 26px;
        --recipe-content-heading-size-mobile: 26px;
        --recipe-content-ext-heading-line-height: 26px;
        --recipe-content-ext-heading-rule-gap: 10px;
        --recipe-ingredient-measurement-size: 12.8px;
        --recipe-ingredient-measurement-size-mobile: 12.8px;
        --recipe-ingredient-name-size: 12.8px;
        --recipe-ingredient-name-size-mobile: 12.8px;
        --recipe-instruction-size: 12.8px;
        --recipe-instruction-size-mobile: 12.8px;
        --recipe-instructions-gap: 19.2px;
        --recipe-content-ext-instruction-padding-left: 10px;
    }

    .recipe-content--extended .recipe-content-ingredients {
        flex-basis: auto;
        width: 100%;
    }

    /* Live's checklist is as wide as its longest line, centred under the heading, on 24px lines. */
    .recipe-ingredients-list {
        width: fit-content;
        max-width: 100%;
        margin: 14px auto 0;
        line-height: 24px;
    }

    .recipe-instructions-list {
        margin-top: 17px;
    }

    .recipe-content--extended .recipe-tips {
        margin-top: 5px;
    }

    .recipe-content--extended .recipe-tips .recipe-content-heading {
        margin-bottom: 32px;
    }

    .page-recipe .recipes-teaser .content-cards--grid {
        --content-cards-grid-padding: 27.5px 15px 7.5px;
    }

    .page-recipe .recipes-teaser .button-row {
        padding-top: 20px;
    }
}

/* Tablet above 768px: the title and facts stay over the image, 30px from its bottom-left corner. */
@media (min-width: 769px) and (max-width: 991px) {
    .page-recipe .hero-caption__box {
        bottom: 30px;
    }
}

/* Up to 768px (live's own step): the caption drops below the image on black — the title, then
   the facts as a centred column. */
@media (max-width: 768px) {
    .page-recipe .hero-caption__box {
        position: static;
        max-width: none;
        align-items: center;
        padding: 10px 30px 0;
        background: var(--hero-caption-bg);
        text-align: center;
    }

    .page-recipe .hero-caption__title,
    .page-recipe .hero-caption__meta {
        background: transparent;
    }

    .page-recipe .hero-caption__meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-top: 23px;
    }

    .page-recipe .recipes-teaser .content-cards--grid {
        --content-cards-grid-padding: 27.5px 0 37.5px;
    }

    .page-recipe .recipes-teaser .content-cards--recipes .content-cards__list {
        margin: 0 7.5px;
    }
}

/* Phones: a short red rule closes the title. */
@media (max-width: 767px) {
    .page-recipe .hero-caption__title {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .page-recipe .hero-caption__title::after {
        margin: 21px auto 0;
    }

    .page-recipe .recipes-teaser .content-cards--recipes .content-cards__list {
        margin: 0;
    }
}

/* ---------- Footer (shared footer-extended) ---------- */

.site-footer::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: var(--color-primary);
}

/* The primary links are one column laid out as a row; the logo sits at the end of the row,
   beside the links and the bottom bar (live). */
.site-footer--extended .footer-col-links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.site-footer--extended .footer-link {
    font-weight: 700;
    text-transform: uppercase;
}

.site-footer--extended .footer-top-logo {
    display: block;
    width: 138px;
    height: auto;
}

/* Legal links flow like running text with "|" separators; a wrapped link carries its
   separator onto the next line (as on live). */
.footer-legal-links,
.footer-copyright,
.footer-copyright p {
    line-height: 18px;
}

/* The spaces between the links are the links' own size (12px). */
.footer-legal-links {
    font-size: var(--footer-legal-size, 12px);
}

.site-footer--extended .footer-legal-links {
    display: block;
}

.footer-legal-link {
    display: inline-block;
    line-height: 18px;
}

.footer-legal-link + .footer-legal-link::before {
    content: '|';
    padding: 0 10px;
    color: var(--color-text-light);
}

/* Live's grid: the link row fills the content column (8/12, 6/12, 5/12 of the container as
   the screen grows) with the links spread across it; below it the copyright takes 5/12 of
   that column and the legal links the rest (after a 20px indent); the logo at the far end. */
@media (min-width: 992px) {
    .site-footer--extended .footer-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto;
        align-items: start;
    }

    .site-footer--extended .footer-logo-wrapper {
        grid-column: 2;
        grid-row: 1 / 3;
        margin: 0;
        justify-self: end;
    }

    /* The widths are shares of the whole container (links column + 138px logo column). */
    .site-footer--extended .footer-grid,
    .site-footer--extended .footer-bottom {
        grid-column: 1;
        width: calc((100% + 138px) * 0.666667 - 10px);
    }

    .site-footer--extended .footer-col-links {
        flex-wrap: nowrap;
    }

    .site-footer--extended .footer-bottom {
        flex-wrap: nowrap;
        padding-bottom: 15px;
    }

    .footer-copyright {
        flex: 0 0 calc(41.6667% + 32.5px);
    }

    .footer-legal-links {
        flex: 0 0 calc(58.3333% - 32.5px);
    }
}

@media (min-width: 1250px) {
    .site-footer--extended .footer-grid,
    .site-footer--extended .footer-bottom {
        width: calc((100% + 138px) * 0.5 - 15px);
    }
}

@media (min-width: 1550px) {
    .site-footer--extended .footer-grid,
    .site-footer--extended .footer-bottom {
        width: calc((100% + 138px) * 0.416667 - 17.5px);
    }
}

@media (max-width: 1249px) {
    .site-footer--extended .footer-link {
        font-size: 13px;
    }
}

/* Tablet and phones: centred and without the logo. */
@media (max-width: 991px) {
    .site-footer--extended .footer-logo-wrapper {
        display: none;
    }

    /* Live's inline links: 15px after each but the last, plus the space between words. */
    .site-footer--extended .footer-col-links {
        justify-content: center;
        gap: 0 3.5px;
        line-height: 19.5px;
    }

    .site-footer--extended .footer-col-links > li:not(:last-child) {
        margin-right: 15px;
    }

    /* Copyright above the legal links, which sit 20px in from the left (live's offset). */
    .site-footer--extended .footer-bottom {
        flex-direction: column-reverse;
        align-items: center;
        gap: 9.5px;
    }

    .footer-legal-links {
        margin-left: 20px;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .site-footer::before {
        height: 2px;
    }

    .footer-legal-links {
        margin-left: 0;
    }
}

/* ---------- Product information (shared dialog + nutritional-table) ---------- */

.product-info-row {
    display: grid;
    grid-template-columns: calc(58.3333% - 12.5px) 1fr;
    gap: 30px;
}

.product-info-heading {
    font-family: var(--font-family-heading);
    font-size: 18px;
    line-height: 26px;
    text-transform: uppercase;
    margin: 0 0 9.5px;
}

.product-info-heading--ruled {
    line-height: 27px;
    padding-bottom: 19px;
    border-bottom: 1px solid #EEEEEE;
    margin-bottom: 19px;
}

.product-info-text p,
.product-info-servings {
    margin: 0 0 9.5px;
    line-height: 24px;
}

/* Live's nutrition table: content-sized columns, a grey header row, zebra rows, 16px cells. */
.product-info .nutritional-table {
    border: 1px solid #DDDDDD;
}

.product-info .nutritional-table:not(.nutritional-table--allergens) {
    table-layout: auto;
    margin-bottom: 19px;
}

/* (min-width: the socle gives every table cell a 10rem floor; live's cells shrink to fit.) */
.product-info .nutritional-table td {
    min-width: 0;
    padding: 5px;
    font-size: 16px;
    line-height: 24px;
    border-right: 1px solid #DDDDDD;
}

.product-info .nutritional-table:not(.nutritional-table--allergens) td:first-child,
.product-info .nutritional-table:not(.nutritional-table--allergens) td:not(:first-child) {
    width: auto;
}

.product-info .product-data-naehrwerte {
    padding-top: 0;
}

/* The note under the table is live's <small> (85%). */
.product-info .nutritional-table-disclaimer {
    margin: 3px 0 0;
    font-size: 13.6px;
    line-height: 20.4px;
}

.product-info .nutritional-table td:last-child {
    border-right: 0;
}

.product-info .nutritional-table td.header-cell {
    height: 60px;
    background: #EEEEEE;
    color: var(--color-text-dark);
    font-weight: 700;
    text-align: left;
    vertical-align: bottom;
    border-bottom-width: 2px;
}

/* Zebra from the first data row (the header is the table's first row here). */
.product-info .nutritional-table tr:nth-child(even) td:not(.header-cell) {
    background: #F9F9F9;
}

.product-info .nutritional-table td.label-cell {
    font-weight: 400;
}

.product-info .nutritional-table td.value-cell {
    text-align: left;
}

.dialog-header {
    padding-bottom: 19px;
    margin-bottom: 19px;
}

.dialog-title {
    line-height: 27px;
}

.page-product-info {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px 80px;
}

/* The dialog keeps 16px copy on every screen (live's modal); tighter headings and a smaller
   note below 992px, and the table's cells wrap to fit. */
.product-info-text p,
.product-info-servings {
    font-size: 16px;
}

@media (max-width: 991px) {
    .product-info-heading:not(.product-info-heading--ruled) {
        line-height: 18px;
    }

    .product-info .nutritional-table td {
        white-space: normal;
        overflow-wrap: normal;
        vertical-align: bottom;
    }

    .product-info .nutritional-table-disclaimer {
        font-size: 10.88px;
        line-height: 16.32px;
    }
}

/* Phones: the dialog takes the whole screen, its two top columns stack. */
@media (max-width: 767px) {
    .dialog-component {
        --dialog-margin: 0 auto;
        --dialog-max-height: 100vh;
    }

    .product-info-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ---------- Page headings (generic pages, search) ---------- */

.page-heading {
    text-align: center;
    padding: 100px 15px 0;
}

.page-title {
    font-family: var(--font-family-heading);
    font-size: 40px;
    line-height: 39px;
    text-transform: uppercase;
    color: var(--color-text-dark);
}

.page-subtitle {
    margin-top: 10px;
    font-size: 18px;
    line-height: 27px;
}

/* Search results: the whole page on the cream band — the title with a short red rule, the
   "We found…" sentence, then the cards four across (30px gutters). */
.page-search {
    background: var(--band-bg);
}

.page-heading--band {
    padding: 85px 15px 0;
}

.page-heading--band .page-title {
    color: var(--title-color);
}

.page-search-count {
    margin-top: 30px;
    padding: 0 calc(5% + 15px);
    text-align: center;
    font-size: 16px;
    line-height: 24px;
    color: var(--title-color);
}

.page-search-results {
    min-height: 79.5px;
}

.page-search-results .content-cards--recipes {
    --content-cards-grid-padding: 87px calc(5% + 15px) 57.5px;
    --content-cards-grid-gap: 15px 30px;
    --content-cards-grid-card-bg: var(--color-bg, #FFFFFF);
}

.page-title--ruled::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    margin: 25px auto 0;
    background: var(--color-primary);
}

/* 404: the title/text topic and the "Back to home" button, centred. */
.page-404-content {
    padding: 165px 0 0;
    text-align: center;
}

.page-404-content .rich-text h1,
.page-404-content .rich-text h2 {
    font-size: 40px;
    line-height: 39px;
}

.page-404-content .button-row {
    padding-top: 70.5px;
}

/* Tablet and phones: right under the header, a 30px title. */
@media (max-width: 991px) {
    .page-404-content {
        padding-top: 20px;
    }

    .page-404-content .rich-text h1,
    .page-404-content .rich-text h2 {
        font-size: 30px;
        line-height: 30px;
    }

    .page-404-content .button-row {
        padding-top: 30.5px;
    }
}

@media (max-width: 991px) {
    :root {
        --p-size: 0.8rem;
    }

    .pageGeneric > .hero-section {
        border-bottom: 0;
    }

    .page-heading {
        padding: 20px 15px 0;
    }

    .hero-section + .page-heading {
        padding-top: 40px;
    }

    .page-title--ruled::after {
        margin-top: 10px;
    }

    .page-search-count {
        margin-top: 15px;
        padding: 0 15px;
        font-size: 12.8px;
        line-height: 19.2px;
    }

    .page-search-results .content-cards--recipes {
        --content-cards-grid-padding: 56.5px 15px 27.5px;
        --content-cards-grid-padding-mobile: 56.5px 15px 27.5px;
        --content-cards-grid-gap-mobile: 7.5px;
    }

    .page-title {
        font-size: 30px;
        line-height: 30px;
    }

    .page-subtitle {
        margin-top: 9.5px;
        font-size: 14px;
        line-height: 21px;
    }
}

/* ---------- Recipes listing (/recipes): category dropdown + grid + pagination ---------- */

/* Live: the whole page on the cream band; a centred "ALL RECIPES ▾" dropdown 121px under the
   header's top and 67.5px above the first row of cards. */
.page-recipes-range-filters {
    text-align: center;
    padding: 121px calc(5% + 15px) 0;
    background: var(--band-bg);
}

.recipes-filter {
    display: inline-block;
    position: relative;
}

.recipes-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    font-family: var(--font-family-heading);
    font-size: 30px;
    font-weight: 400;
    line-height: 47px;
    text-transform: uppercase;
    color: var(--color-primary);
}

.recipes-filter-toggle::-webkit-details-marker {
    display: none;
}

.recipes-filter-caret {
    width: 20px;
    height: 13px;
    transition: transform 0.2s;
}

.recipes-filter[open] .recipes-filter-caret {
    transform: rotate(180deg);
}

/* "Sorted by" beside the category dropdown: a light 30px label, the chosen order and a red caret (live). */
.recipes-filter--sort .recipes-filter-caret {
    color: var(--color-primary);
}

/* the chosen order: live shows it like the category toggle (red, the display face, upper case) */
.recipes-sort-current {
    margin-right: 0;
}

.recipes-filters {
    display: inline;
}

.recipes-filters-break {
    display: none;
}

.recipes-sort-label {
    margin: 0 6px 0 40px;
    font-size: 30px;
    font-weight: 300;
    line-height: 45px;
    color: var(--title-color);
    vertical-align: top;
}

.recipes-filter--sort .recipes-filter-toggle {
    width: auto;
    padding-left: 6px;
}

/* The menu: live's white popover (270px) centred under the toggle, with a little arrow. */
.recipes-filter-list {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translate(-50%, 15px);
    z-index: 10;
    width: 270px;
    margin: 0;
    /* live: 12px over and under the list, 15px at the sides */
    padding: 12px 15px;
    list-style: none;
    text-align: left;
    background: var(--color-bg, #FFFFFF);
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}

.recipes-filter-list::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-style: solid;
    border-width: 0 15px 15px 15px;
    border-color: transparent transparent var(--color-bg, #FFFFFF) transparent;
}

.recipes-filter-list li {
    border-bottom: 1px solid var(--color-primary);
}

.recipes-filter-list li:last-child {
    border-bottom: 0;
}

.recipes-filter-link {
    display: block;
    padding: 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-dark);
    text-decoration: none;
}

.recipes-filter-link:hover,
.recipes-filter-link.is-active {
    color: var(--color-primary);
}

/* The grid sits on live's cream band, four across the 90% container (15px further in, like the
   teasers), white cards. */
.page-recipes-range-results .content-cards--recipes {
    --content-cards-grid-padding: 67.5px calc(5% + 30px) 57.5px;
    --content-cards-grid-card-bg: var(--color-bg, #FFFFFF);
    background: var(--band-bg);
}

/* Tablet and phones: right under the header, a 20px toggle, 30px edges; still four across on
   tablet, one card per row on phones (7.5px apart). The space under the toggle is live's (it
   holds the "Sorted by" line on phones). */
@media (max-width: 991px) {
    .page-recipes-range-filters {
        padding: 20px 30px 0;
    }

    .recipes-filter-toggle {
        gap: 6px;
        font-size: 20px;
        line-height: 23.3px;
    }

    .recipes-filter-caret {
        width: 14px;
        height: 9px;
    }

    .recipes-sort-label {
        margin: 0;
        font-size: 14px;
        line-height: 21px;
    }

    .recipes-filter--sort .recipes-filter-toggle {
        width: auto;
        padding-left: 6px;
    }


    .page-recipes-range-results .content-cards--recipes {
        --content-cards-grid-padding: 57.5px 30px 27.5px;
        --content-cards-grid-padding-mobile: 36px 30px 27.5px;
        --content-cards-grid-gap-mobile: 7.5px;
    }
}

/* Phones: "Sorted by" on its own line under the category dropdown (live). */
@media (max-width: 767px) {
    .recipes-filters-break {
        display: block;
    }

    .recipes-filter {
        margin-bottom: 10px;
    }
}

.page-recipes-range-no-result {
    text-align: center;
    padding: 40px calc(5% + 15px);
}

/* Shared pagination (common/algolia/pagination.css, loaded in base.html.twig) — it reads its
   own token names, mapped here onto Bega's; shown only when there is more than one page. */
.pagination {
    --primary: var(--color-primary);
    --white: var(--color-bg, #FFFFFF);
    --padding-y: 0;
    --button-radius: 0;
    --p-weight: 700;
    padding-bottom: 60px;
    background: var(--band-bg);
}

/* ---------- Short pages (the contact page has no form): the footer stays at the foot of the screen ---------- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

body > main {
    flex: 1 0 auto;
}

/* in the column the footer (auto side margins, a max-width) would shrink to its content: keep it full width */
body > .site-footer {
    width: 100%;
}

/* ---------- Product information: the packaging labels (health star rating, recycling marks) under the table, as live ---------- */
.product-info-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.product-info-badges img {
    display: block;
    width: auto;
    max-width: 100px;
    max-height: 125px;
}

/* phones: live's 30px tips title */
@media (max-width: 767px) {
    .recipe-content--extended .recipe-tips .recipe-content-heading {
        font-size: var(--recipe-tips-heading-size-mobile, 30px);
        line-height: var(--recipe-tips-heading-line-height-mobile, 30px);
    }
}

/* ---------- Range tiles on tablets and phones (after the generic tablet rules above, so they win) ---------- */

/* Tablets (769–991px): live keeps the texts on the left (24px under the title) and every "View range"
   button on the same line, 10px over the foot of the equal-height tiles; only phones centre the tile. */
@media (min-width: 769px) and (max-width: 991px) {
    .content-cards--ranges {
        --content-cards-grid-cta-margin: auto;
        --content-cards-grid-body-padding: 20px 15px 10px;
        --content-cards-grid-text-margin: 12px 0 27px;
    }

    .content-cards--ranges .content-cards__body {
        flex: 1 1 auto;
        align-items: flex-start;
        text-align: left;
    }

    .content-cards--ranges .content-cards__card {
        height: 100%;
    }
}

/* Phones: live's column is 360px at 15px (no right gutter), the heading too; the picture centred. */
@media (max-width: 767px) {
    .content-cards--ranges {
        --content-cards-grid-padding-mobile: 27.5px 0 27.5px 15px;
    }

    .page-range--listing > .rich-text--title {
        padding: 20px 0 0 15px;
    }

    .content-cards--ranges .content-cards__media img {
        display: block;
        margin: 0 auto;
    }
}

/* ---------- Range page footnote and the lone product's column, as live ---------- */

/* the footnote under the product intros (live: a centred italic line 60px under the intro — 40px on tablets,
   20px on phones — and 59px over the Recipes band, 29px there) */
.page-range--products .product-list:has(~ .topic-text.footnote) {
    padding-bottom: 0;
}

.page-range--products .product-list:has(~ .topic-text.footnote) .product-list__item:last-child {
    margin-bottom: 60px;
}

.page-range--products .topic-text.footnote {
    padding: 0 calc(5% + 15px) 59px;
    text-align: center;
}

@media (max-width: 991px) {
    .page-range--products .product-list:has(~ .topic-text.footnote) .product-list__item:last-child {
        margin-bottom: 40px;
    }
    .page-range--products .topic-text.footnote {
        padding: 0 15px 29px;
    }
    /* a lone product keeps live's full column (15px edges) */
    .product-list__inner:has(.product-list__item:only-child) {
        padding: 0 15px;
    }
    .product-list__item:only-child {
        padding: 0;
    }
    .product-list__items:has(> .product-list__item:only-child) {
        margin: 0;
    }
}

@media (max-width: 767px) {
    .page-range--products .product-list:has(~ .topic-text.footnote) .product-list__item:last-child {
        margin-bottom: 20px;
    }
    .product-list__inner:has(.product-list__item:only-child) {
        padding: 0 0 0 15px;
    }
}
