/* --- RECIPE BAND (recipe-band.html.twig) ---
   A full-width band of a recipe page: a centred title over a short rule, then lines or titled steps with an aside (a
   card or a tip box) floated on the right from 992px; below 992px the title is a toggle and the aside stacks with
   the content (js/recipe-band.js). Every rule is scoped to .recipe-band. */

.recipe-band {
    padding: var(--recipe-band-padding, 40px 0);
    background: var(--recipe-band-bg, transparent);
    color: var(--recipe-band-color, var(--color-primary));
}
.recipe-band--alt {
    background: var(--recipe-band-alt-bg, #EDECE9);
}

.recipe-band__title {
    margin: 0;
    padding: var(--recipe-band-title-padding, 0 0 15px);
    font-family: var(--recipe-band-title-font, inherit);
    font-size: var(--recipe-band-title-size, 32px);
    font-weight: var(--recipe-band-title-weight, 400);
    line-height: var(--recipe-band-title-line-height, 35px);
    color: var(--recipe-band-title-color, var(--color-text-dark, inherit));
    text-align: center;
}
.recipe-band__title-light {
    font-weight: var(--recipe-band-title-light-weight, 300);
}
.recipe-band__toggle {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: inherit;
    cursor: default;
}
.recipe-band__chevron {
    display: none;
}
.recipe-band__divider {
    width: var(--recipe-band-rule-width, 32px);
    height: var(--recipe-band-rule-height, 3px);
    margin: 0 auto;
    border: 0;
    background: var(--recipe-band-rule-color, var(--color-primary));
}

/* The body: the aside floats on the right, the content flows beside and under it. */
.recipe-band__body {
    display: flow-root;
    padding: var(--recipe-band-body-padding, 50px 50px 0 120px);
}
.recipe-band__aside {
    float: right;
}
.recipe-band__aside--card {
    width: var(--recipe-band-card-width, 411px);
    margin: var(--recipe-band-card-margin, 0 101px 0 61px);
}
.recipe-band__aside--tip {
    width: var(--recipe-band-tip-width, 414px);
    margin: var(--recipe-band-tip-margin, 0 0 30px 61px);
}

/* The content starts a little under the aside's top. */
.recipe-band__main {
    padding: var(--recipe-band-main-padding, 5px 0 0);
}
/* From 992px the content can keep to a column (--recipe-band-main-max-width), the aside or nothing beside it. */
@media (min-width: 992px) {
    .recipe-band__main {
        max-width: var(--recipe-band-main-max-width, none);
    }
}

/* Lines with a bullet */
.recipe-band__list {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--recipe-band-text-size, 20px);
    line-height: var(--recipe-band-text-line-height, 24px);
}
.recipe-band__item::before {
    content: var(--recipe-band-list-marker, '• ');
}

/* groups: titled groups of lines, each line after a hanging bullet */
.recipe-band__group + .recipe-band__group {
    margin-top: var(--recipe-band-group-gap, 15px);
}
.recipe-band__group-title {
    margin: 0;
    font-family: var(--recipe-band-group-title-font, inherit);
    font-size: var(--recipe-band-group-title-size, 33px);
    font-weight: var(--recipe-band-group-title-weight, 400);
    line-height: var(--recipe-band-group-title-line-height, 43px);
    color: var(--recipe-band-group-title-color, var(--recipe-band-title-color, var(--color-text-dark, inherit)));
}
.recipe-band__group-list {
    margin: var(--recipe-band-group-list-margin, 5px 0 0);
    padding: 0;
    list-style: none;
    font-size: var(--recipe-band-text-size, 20px);
    line-height: var(--recipe-band-text-line-height, 24px);
}
.recipe-band__group-item {
    position: relative;
    padding: var(--recipe-band-group-item-padding, 0 0 0 26px);
}
.recipe-band__group-item::before {
    content: var(--recipe-band-group-marker, '●');
    position: absolute;
    top: 0;
    left: 0;
}

/* Titled steps */
.recipe-band__steps {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--recipe-band-text-size, 20px);
    line-height: var(--recipe-band-text-line-height, 24px);
}
.recipe-band__step + .recipe-band__step {
    margin-top: var(--recipe-band-step-gap, 24px);
}
.recipe-band__step-title {
    margin: 0;
    font: inherit;
    color: inherit;
    text-transform: var(--recipe-band-step-title-transform, uppercase);
}
.recipe-band__step-title strong {
    font-weight: var(--recipe-band-step-number-weight, inherit);
}
/* steps[].heading: the title, number and heading as one large line, the heading stronger */
.recipe-band__step-title--heading {
    font-family: var(--recipe-band-step-heading-font, inherit);
    font-size: var(--recipe-band-step-heading-size, 33px);
    font-weight: var(--recipe-band-step-heading-light-weight, 300);
    line-height: var(--recipe-band-step-heading-line-height, 43px);
    color: var(--recipe-band-step-heading-color, var(--recipe-band-title-color, var(--color-text-dark, inherit)));
    text-transform: none;
}
.recipe-band__step-title--heading strong {
    font-weight: var(--recipe-band-step-heading-weight, 400);
}
.recipe-band__step-title--heading + .recipe-band__step-text {
    margin-top: var(--recipe-band-step-heading-gap, 5px);
}
.recipe-band__step:has(.recipe-band__step-title--heading) + .recipe-band__step {
    margin-top: var(--recipe-band-step-heading-step-gap, 40px);
}
.recipe-band__step-text p,
.recipe-band__step-text ul,
.recipe-band__step-text ol {
    margin: 0;
    font: inherit;
    color: inherit;
}
.recipe-band__step-text ul {
    padding: 0;
    list-style: none;
}
.recipe-band__step-text ul li {
    position: relative;
    margin: var(--recipe-band-step-item-margin, 0 40px 0 5px);
    padding: var(--recipe-band-step-item-padding, 10px 0 10px 26px);
}
.recipe-band__step-text ul li::before {
    content: var(--recipe-band-step-marker, '●');
    position: absolute;
    top: var(--recipe-band-step-marker-top, 10px);
    left: 0;
    color: var(--recipe-band-step-marker-color, currentColor);
}

/* The card aside: one card, or a row of cards moved by arrows (the next one peeks past the aside) */
.recipe-band:has(.recipe-band__aside--cards) {
    overflow-x: clip;
}
.recipe-band__aside--cards {
    position: relative;
}
.recipe-band__cards {
    display: flex;
    gap: var(--recipe-band-cards-gap, 25px);
    margin: 0;
    padding: 0;
    list-style: none;
    transition: transform var(--recipe-band-cards-speed, 0.8s) ease;
}
.recipe-band__card {
    flex: 0 0 100%;
    position: relative;
    background: var(--recipe-band-card-bg, #FFFFFF);
    box-shadow: var(--recipe-band-card-shadow, 0 2px 10px -4px #4A4A4A);
}
.recipe-band__card-image {
    display: block;
    width: 100%;
    aspect-ratio: var(--recipe-band-card-image-ratio, 411 / 312);
    object-fit: var(--recipe-band-card-image-fit, cover);
}
.recipe-band__card-title {
    margin: 0;
    padding: var(--recipe-band-card-text-padding, 20px);
    font-size: var(--recipe-band-card-title-size, 16px);
    line-height: var(--recipe-band-card-title-line-height, 17px);
    color: var(--recipe-band-card-title-color, #000000);
}
.recipe-band__card-link {
    color: inherit;
    text-decoration: none;
}
.recipe-band__card-link::after {
    content: '';
    position: absolute;
    inset: 0;
}

.recipe-band__arrow {
    position: absolute;
    top: var(--recipe-band-arrow-top, 156px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--recipe-band-arrow-size, 40px);
    height: var(--recipe-band-arrow-size, 40px);
    padding: 0;
    border: 0;
    background: var(--recipe-band-arrow-bg, transparent);
    color: var(--recipe-band-arrow-color, #000000);
    transform: translateY(-50%);
    cursor: pointer;
}
.recipe-band__arrow[hidden] {
    display: none;
}
.recipe-band__arrow svg {
    width: 12px;
    height: 19px;
}
.recipe-band__arrow--prev {
    right: calc(100% + var(--recipe-band-arrow-offset, 10px));
}
.recipe-band__arrow--next {
    left: calc(100% + var(--recipe-band-arrow-offset, 10px));
}

/* A free text */
.recipe-band__text {
    font-size: var(--recipe-band-html-size, 16px);
    line-height: var(--recipe-band-html-line-height, 28px);
}
.recipe-band__text p,
.recipe-band__text blockquote {
    margin: 0;
    font: inherit;
    color: inherit;
}
.recipe-band__text > * + * {
    margin-top: var(--recipe-band-html-gap, 28px);
}
.recipe-band__text blockquote {
    padding: 0;
    border: 0;
    color: var(--recipe-band-quote-color, inherit);
}

/* The tip aside */
.recipe-band__tip {
    padding: var(--recipe-band-tip-padding, 26px 30px 46px 42px);
    background: var(--recipe-band-tip-bg, var(--color-primary));
    color: var(--recipe-band-tip-color, #FFFFFF);
}
.recipe-band__tip-title {
    margin: 0;
    font-size: var(--recipe-band-tip-title-size, 33px);
    line-height: var(--recipe-band-tip-title-line-height, 43px);
}
.recipe-band__tip-text {
    margin: var(--recipe-band-tip-text-margin, 33px 0 0);
    padding: var(--recipe-band-tip-text-padding, 0 0 0 18px);
    font-size: var(--recipe-band-tip-text-size, 20px);
    line-height: var(--recipe-band-tip-text-line-height, 24px);
}
.recipe-band__tip-text p {
    margin: 0;
    font: inherit;
    color: inherit;
}

/* --- Below 992px: the title is a toggle, the rule is hidden, the aside stacks with the content --- */
@media (max-width: 991px) {
    .recipe-band {
        padding: var(--recipe-band-padding-narrow, 0);
    }
    .recipe-band__title {
        padding: var(--recipe-band-title-padding-narrow, 40px 0 60px);
    }
    .recipe-band__toggle {
        padding: var(--recipe-band-toggle-padding-narrow, 0 40px);
        cursor: pointer;
    }
    .recipe-band__chevron {
        position: absolute;
        top: 50%;
        right: var(--recipe-band-chevron-inset, 10px);
        display: block;
        width: var(--recipe-band-chevron-size, 12px);
        height: var(--recipe-band-chevron-size, 12px);
        border-top: 1px solid var(--recipe-band-chevron-color, var(--color-primary));
        border-right: 1px solid var(--recipe-band-chevron-color, var(--color-primary));
        transform: translateY(-50%) rotate(45deg);
        transition: transform 0.2s ease;
    }
    .recipe-band.is-open .recipe-band__chevron {
        transform: translateY(-75%) rotate(135deg);
    }
    .recipe-band__divider {
        display: none;
    }
    .recipe-band__body {
        display: flex;
        flex-direction: column;
        padding: var(--recipe-band-body-padding-narrow, 0 20px 40px);
    }
    .recipe-band--js:not(.is-open) .recipe-band__body {
        display: none;
    }
    .recipe-band__aside {
        float: none;
        order: 1;
    }
    .recipe-band--aside-first .recipe-band__aside {
        order: -1;
    }
    .recipe-band__aside--card {
        width: auto;
        max-width: var(--recipe-band-card-width-narrow, 292px);
        margin: var(--recipe-band-card-margin-narrow, 35px auto 0);
    }
    .recipe-band__aside--tip {
        width: auto;
        margin: var(--recipe-band-tip-margin-narrow, 0 0 30px);
    }
    .recipe-band__main {
        padding: var(--recipe-band-main-padding-narrow, 0 0 0 20px);
    }
    .recipe-band__list,
    .recipe-band__steps {
        font-size: var(--recipe-band-text-size-narrow, 16px);
    }
    .recipe-band__group-list {
        font-size: var(--recipe-band-text-size-narrow, 16px);
    }
    .recipe-band__group-title {
        font-size: var(--recipe-band-group-title-size-narrow, 23px);
    }
    .recipe-band__step-title--heading {
        font-size: var(--recipe-band-step-heading-size-narrow, 23px);
    }
    .recipe-band__step-text ul li {
        margin: var(--recipe-band-step-item-margin-narrow, 0 42px 0 13px);
    }
    .recipe-band__tip-title {
        font-size: var(--recipe-band-tip-title-size-narrow, var(--recipe-band-tip-title-size, 33px));
    }
    .recipe-band__tip-text {
        font-size: var(--recipe-band-tip-text-size-narrow, 16px);
    }
}

/* Opt-in (data.asideTitle): a title over the cards, shown only when the page is printed — the page's bands then print
   their content even when closed below 992px (a printed page is often narrower). */
.recipe-band__aside-title {
    display: none;
}
@media print {
    .recipe-band__aside-title {
        display: block;
    }
}
@media print and (max-width: 991px) {
    body:has(.recipe-band__aside-title) .recipe-band--js:not(.is-open) .recipe-band__body {
        display: flex;
    }
}
