/**
 * single-recipe.css
 * Redesigned public recipe page (single-recipe.php).
 * Implements the "Recipe Page Redesign" Claude Design + client feedback.
 *
 * Loaded only on is_singular('recipe'), after style.css, so rules here win.
 * Everything is scoped under .recipe-redesign to avoid touching other pages.
 *
 * Tokens: teal #0EA4B0 / #0b8893 · pink #F24566 · mint #E5F5F7 · ink #163A3E
 *         body #3c5256 · muted #7a8c8f/#9aa9ab · sand #eceae5 · hairline #eef0ef
 */

/* ============================ Base / layout ============================ */
.recipe-redesign,
.recipe-redesign * {
    box-sizing: border-box;
}

.recipe-redesign {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #163a3e;
    -webkit-font-smoothing: antialiased;
    background: #fff;
}

.recipe-redesign .rr-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px;
}

.recipe-redesign img {
    max-width: 100%;
    height: auto;
}

.recipe-redesign h1,
.recipe-redesign h2,
.recipe-redesign h3,
.recipe-redesign h4 {
    font-family: inherit;
    color: #163a3e;
}

/* ============================ Buttons ============================ */
.recipe-redesign .rr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 999px;
    padding: 13px 26px;
    text-decoration: none;
    transition: filter .15s ease, background .15s ease, color .15s ease;
    text-align: center;
}
.recipe-redesign .rr-btn:hover { filter: brightness(1.06); text-decoration: none; }

.recipe-redesign .rr-btn-pink { background: #F24566; color: #fff; }
.recipe-redesign .rr-btn-pink:hover { color: #fff; }
.recipe-redesign .rr-btn-teal { background: #0EA4B0; color: #fff; }
.recipe-redesign .rr-btn-teal:hover { color: #fff; }

.recipe-redesign .rr-btn-link {
    color: #dff4f6;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.recipe-redesign .rr-btn-link:hover { text-decoration: underline; color: #fff; }

.recipe-redesign .rr-btn-outline-light {
    display: inline-flex;
    align-items: center;
    color: #fff;
    border: 1.5px solid #3b5d61;
    border-radius: 999px;
    padding: 13px 26px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}
.recipe-redesign .rr-btn-outline-light:hover { border-color: #5fd3dc; color: #fff; }

/* ============================ Breadcrumbs ============================ */
.recipe-redesign .rr-breadcrumbs {
    font-size: 12px;
    color: #9aa9ab;
    font-weight: 600;
    margin: 24px 0 18px;
}
.recipe-redesign .rr-breadcrumbs a { color: #0EA4B0; text-decoration: none; }
.recipe-redesign .rr-breadcrumbs a:hover { text-decoration: underline; }
.recipe-redesign .rr-breadcrumbs .sep { margin: 0 8px; color: #c9cdc9; }

/* ============================ Titles ============================ */
.recipe-redesign .recipe-mobile-title {
    display: none;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.02em;
    text-align: left;
    margin: 0 0 14px;
}
.recipe-redesign .recipe-desktop-title {
    font-size: 38px;
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 16px;
}

/* ============================ Hero ============================ */
.recipe-redesign .rr-hero {
    display: grid;
    grid-template-columns: 0.82fr 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 34px;
    border-bottom: 1px solid #eef0ef;
}
.recipe-redesign .rr-hero-image {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #e7f4f5;
    aspect-ratio: 4 / 5;
    border: 1px solid #eef0ef;
}
.recipe-redesign .rr-hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dietitian reviewed badge (tappable) */
.recipe-redesign .rr-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #163a3e;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 7px 14px 7px 9px;
    font-size: 11.5px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    transition: filter .15s ease;
}
.recipe-redesign .rr-badge:hover { filter: brightness(1.12); color: #fff; }
.recipe-redesign .rr-badge .rr-badge-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0EA4B0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Action bar: favourite / share / print / email */
.recipe-redesign .rr-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.recipe-redesign .rr-actions .rr-action {
    flex: 1;
    background: #fff;
    border: 1.5px solid #ececec;
    border-radius: 12px;
    padding: 12px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: #163a3e;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.recipe-redesign .rr-actions .rr-action:hover {
    border-color: #0EA4B0;
    box-shadow: 0 6px 18px -12px rgba(20,54,58,.5);
    color: #0EA4B0;
}
.recipe-redesign .rr-actions .rr-action .rr-action-icon {
    width: 22px;
    height: 22px;
    display: block;
    color: inherit;
}

/* Hero content column */
.recipe-redesign .rr-hero-content { min-width: 0; }

/* Dietary chips — coloured chips overlaid on the hero image, matching the app.
   Collapsed = circle with 2-letter abbreviation; expands to full label on hover/focus. */
.recipe-redesign .rr-hero-tags {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 2;
}
.recipe-redesign .dietary-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    min-width: 30px;
    padding: 0;
    border: none;
    border-radius: 999px;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .3px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    transition: padding .3s ease;
}
.recipe-redesign .dietary-chip__label { display: none; }
/* Desktop: expand on hover. All devices: expand on tap/click (.--expanded, toggled by JS). */
.recipe-redesign .dietary-chip:hover,
.recipe-redesign .dietary-chip.dietary-chip--expanded {
    padding: 0 12px;
    outline: none;
}
.recipe-redesign .dietary-chip:hover .dietary-chip__abbr,
.recipe-redesign .dietary-chip.dietary-chip--expanded .dietary-chip__abbr { display: none; }
.recipe-redesign .dietary-chip:hover .dietary-chip__label,
.recipe-redesign .dietary-chip.dietary-chip--expanded .dietary-chip__label { display: inline; }

/* Meta row: prep / cook / serves */
.recipe-redesign .rr-meta {
    display: flex;
    gap: 26px;
    flex-wrap: wrap;
    padding: 16px 0;
    border-top: 1px solid #eef0ef;
    border-bottom: 1px solid #eef0ef;
    margin-bottom: 18px;
}
.recipe-redesign .rr-meta .rr-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.recipe-redesign .rr-meta .rr-meta-item img { width: 26px; height: 26px; }
.recipe-redesign .rr-meta .rr-meta-icon { font-size: 22px; line-height: 1; }
.recipe-redesign .rr-meta .rr-meta-label {
    font-size: 10.5px;
    letter-spacing: .1em;
    color: #9aa9ab;
    font-weight: 700;
    text-transform: uppercase;
}
.recipe-redesign .rr-meta .rr-meta-value {
    font-size: 15px;
    font-weight: 700;
    color: #0EA4B0;
}

/* Byline */
.recipe-redesign .rr-byline {
    font-size: 12.5px;
    color: #7a8c8f;
    line-height: 1.9;
    margin-bottom: 18px;
}
.recipe-redesign .rr-byline a { color: #0EA4B0; text-decoration: none; font-weight: 600; }
.recipe-redesign .rr-byline a:hover { text-decoration: underline; }

/* Intro */
.recipe-redesign .rr-intro {
    font-size: 15.5px;
    line-height: 1.72;
    color: #3c5256;
}
.recipe-redesign .rr-intro p { margin: 0 0 12px; }

/* ============================ Main grid ============================ */
.recipe-redesign .rr-main {
    display: grid;
    grid-template-columns: 0.78fr 1fr;
    gap: 44px;
    padding-top: 34px;
}

/* ---- Ingredients column ---- */
.recipe-redesign .rr-ingredients { min-width: 0; }
.recipe-redesign .rr-ing-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.recipe-redesign .rr-ing-head h2,
.recipe-redesign .rr-ingredients > h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}

/* Make gluten free button */
.recipe-redesign .rr-gf-btn {
    background: #fff;
    color: #F24566;
    border: 1.5px solid #F24566;
    font-weight: 700;
    font-size: 12px;
    border-radius: 999px;
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.recipe-redesign .rr-gf-btn:hover { background: #F24566; color: #fff; text-decoration: none; }
.recipe-redesign .rr-gf-btn.active { background: #d63f60; color: #fff; border-color: #d63f60; }

/* Unit segmented toggle */
.recipe-redesign .rr-unit-toggle {
    display: inline-flex;
    background: #f1f3f2;
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 16px;
}
.recipe-redesign .rr-unit-toggle .ingredient-button-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    color: #7a8c8f;
    font-weight: 600;
    font-size: 13px;
    border-radius: 8px;
    padding: 8px 18px;
    transition: .15s ease;
}
.recipe-redesign .rr-unit-toggle .ingredient-button-toggle.active {
    background: #0EA4B0;
    color: #fff;
    font-weight: 700;
}

.recipe-redesign .ingredient-button-divider { display: none; }

/* Ingredient controls: type select + serves box */
.recipe-redesign .rr-ing-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.recipe-redesign .ingredients-type {
    flex: 1;
    min-width: 150px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #163a3e;
    border: 1.5px solid #e6e8e7;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
    height: auto;
}
.recipe-redesign .rr-serves-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #e6e8e7;
    border-radius: 10px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 14px;
    color: #163a3e;
}
.recipe-redesign .rr-serves-box label { margin: 0; font-weight: 700; font-size: 13px; }
.recipe-redesign .rr-serves-box .rr-makes { color: #0EA4B0; }

/* +/- servings stepper */
.recipe-redesign .rr-serves-stepper {
    padding: 4px;
    gap: 2px;
}
.recipe-redesign .rr-serve-btn {
    width: 34px;
    height: 40px;
    border: none;
    background: #fff;
    color: #0EA4B0 !important;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
    font-family: inherit;
    transition: background .15s ease;
    padding: 0 !important;
}
.recipe-redesign .rr-serve-btn:hover { background: #E5F5F7; }
.recipe-redesign .rr-serve-mid {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 54px;
}
.recipe-redesign .rr-serve-label {
    order: 2;
    margin: 0;
    font-size: 9px;
    letter-spacing: .06em;
    color: #9aa9ab;
    font-weight: 700;
    text-transform: uppercase;
}
.recipe-redesign .rr-serves-stepper .ingredient-scalar {
    order: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    color: #163a3e;
    padding: 0;
    height: auto;
    width: auto;
    text-align: center;
    text-align-last: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

/* Clarifying serve note (e.g. "1 cup soup per serve") */
.recipe-redesign .rr-serve-note {
    font-size: 13px;
    color: #4a6064;
    font-style: italic;
    line-height: 1.5;
    margin: 10px 0 18px;
}

/* Ingredient list */
.recipe-redesign .ingredients-tab-content { margin-top: 6px; }
.recipe-redesign .ingredients-tab-content h4.highlighted {
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #F24566;
    font-weight: 700;
    margin: 18px 0 10px;
}
.recipe-redesign .ingredients-tab-content > div {
    padding: 9px 0;
    border-bottom: 1px solid #f4f6f5;
    font-size: 14.5px;
    line-height: 1.45;
    color: #2d4448;
}
.recipe-redesign .ingredient-unit-display {
    color: #0EA4B0;
    font-weight: 700;
    margin-right: 4px;
}
.recipe-redesign .ingredient-name-display { color: #2d4448; font-weight: 500; }

.recipe-redesign .rr-tips-note {
    font-size: 12px;
    color: #9aa9ab;
    line-height: 1.6;
    margin: 16px 0 22px;
}

/* Widget ad area (kept, unobtrusive) */
.recipe-redesign .rr-ad { margin: 22px 0; }
.recipe-redesign .rr-ad:empty { display: none; }

/* ---- CTA boxes ---- */
.recipe-redesign .rr-cta-box {
    border-radius: 16px;
    padding: 22px 24px;
    margin-top: 24px;
}
.recipe-redesign .rr-cta-box h3 {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.18;
}
.recipe-redesign .rr-cta-box p {
    font-size: 14px;
    color: #4a6064;
    line-height: 1.6;
    margin: 0 0 16px;
}
.recipe-redesign .rr-eyebrow {
    font-size: 11px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #0b8893;
    font-weight: 700;
    margin-bottom: 8px;
}
.recipe-redesign .rr-cta-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
}
.recipe-redesign .rr-cta-head .rr-emoji { font-size: 18px; }

/* Shopping list box — dashed teal */
.recipe-redesign .rr-cta-shop {
    border: 1.5px dashed #0EA4B0;
    background: #f4fbfb;
}

/* Meal plan box — mint gradient */
.recipe-redesign .rr-cta-mealplan {
    background: linear-gradient(115deg, #E5F5F7, #d3eef1);
}

/* Personalise your gut box */
.recipe-redesign .rr-cta-gut {
    background: #fafbfb;
    border: 1px solid #eef0ef;
    text-align: center;
}
.recipe-redesign .rr-cta-gut .rr-lock-icon {
    width: 46px;
    height: 46px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #163a3e;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}
.recipe-redesign .rr-cta-gut p { max-width: 420px; margin-left: auto; margin-right: auto; }

/* ---- Method column ---- */
.recipe-redesign .rr-method {
    min-width: 0;
    border-left: 1px solid #eef0ef;
    padding-left: 44px;
}

/* Method / tips tabs */
.recipe-redesign .recipe-tabs {
    list-style: none;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1.5px solid #eef0ef;
    margin: 0 0 24px;
    padding: 0;
}
.recipe-redesign .recipe-tabs .sep { display: none; }
.recipe-redesign .recipe-tabs .tab-link {
    list-style: none;
    background: none;
    color: #9aa9ab;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 4px;
    border-bottom: 3px solid transparent;
    margin-bottom: -1.5px;
    cursor: pointer;
    transition: .15s ease;
}
.recipe-redesign .recipe-tabs .tab-link.current {
    color: #163a3e;
    font-weight: 800;
    border-bottom-color: #0EA4B0;
}
.recipe-redesign .recipe-tab-content { display: none; }
.recipe-redesign .recipe-tab-content.current { display: block; }
.recipe-redesign .recipe-tab-content h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 14px;
}

/* Method heading (tip tabs removed — tips now live beside each ingredient) */
.recipe-redesign .rr-method-title {
    font-size: 22px;
    font-weight: 800;
    color: #163a3e;
    margin: 0 0 20px;
    padding-bottom: 14px;
}

/* ---- Per-ingredient tip popover (info circle icon) ---- */
.recipe-redesign .rr-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 5px;
    vertical-align: middle;
}
.recipe-redesign .rr-tip__trigger {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: transparent;
    color: #0EA4B0 !important;
    padding: 1px !important;
    margin: 0;
    cursor: pointer;
    line-height: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}
.recipe-redesign .rr-tip__trigger:hover { color: #0b8893; }
.recipe-redesign .rr-tip__trigger svg { display: block; }

/* Card is position:fixed so it escapes the ingredient column and never clips.
   Position + max-height are computed in JS from the trigger's bounding rect. */
.recipe-redesign .rr-tip__card {
    position: fixed;
    display: flex;
    flex-direction: column;
    padding: 14px 14px 12px;
    background: #fff;
    border: 1px solid #eef0ef;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
    z-index: 1000;
    text-align: left;
    color: #163a3e;
}
.recipe-redesign .rr-tip__card[hidden] { display: none; }
.recipe-redesign .rr-tip__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.recipe-redesign .rr-tip__close {
    position: absolute;
    top: 6px;
    right: 8px;
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: #9aa9ab;
    cursor: pointer;
    padding: 2px 6px;
    z-index: 1;
}
/* Desktop (hover) shows the card on hover, so the close button is redundant. */
.recipe-redesign .rr-tip--hover .rr-tip__close { display: none; }
.recipe-redesign .rr-tip__name {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 800;
    color: #163a3e;
    padding-right: 18px;
}
.recipe-redesign .rr-tip__block + .rr-tip__block { margin-top: 12px; }
.recipe-redesign .rr-tip__type {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 700;
    color: #0EA4B0;
    letter-spacing: .4px;
    text-transform: uppercase;
}
.recipe-redesign .rr-tip__content {
    font-size: 13px;
    color: #3c5256;
    line-height: 1.5;
}
.recipe-redesign .rr-tip__content p { margin: 4px 0; }
.recipe-redesign .rr-tip__content p:first-child { margin-top: 0; }
.recipe-redesign .rr-tip__content p:last-child { margin-bottom: 0; }
.recipe-redesign .rr-tip__content a { color: #0EA4B0; text-decoration: underline; }
.recipe-redesign .rr-tip__content strong,
.recipe-redesign .rr-tip__content b { font-weight: 700; color: #163a3e; }

/* Info icon inline in the "look for the ⓘ" hint note */
.recipe-redesign .rr-tips-note-icon {
    color: #0EA4B0;
    vertical-align: -2px;
    margin: 0 1px;
}

/* Method steps (WYSIWYG from $data->old_method — style ordered lists nicely).
   The number is absolutely positioned (not a grid column) so steps whose <li>
   contains multiple block children don't collapse into the number column. */
.recipe-redesign #method { font-size: 15px; line-height: 1.62; color: #2d4448; }
.recipe-redesign #method p { margin: 0 0 16px; }
.recipe-redesign #method ol {
    padding-left: 0;
    list-style: none;
    counter-reset: rr-step;
    margin: 0;
}
.recipe-redesign #method ol > li {
    position: relative;
    padding-left: 50px;
    min-height: 32px;
    margin-bottom: 20px;
    list-style: none;
}
.recipe-redesign #method ol > li::before {
    counter-increment: rr-step;
    content: counter(rr-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E5F5F7;
    color: #0b8893;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.recipe-redesign #method ol > li > *:last-child { margin-bottom: 0; }
.recipe-redesign #method ul { padding-left: 20px; }

.recipe-redesign .recipe-tab-content p { font-size: 14.5px; line-height: 1.6; color: #3c5256; }

/* Nutrition panel */
.recipe-redesign .nutrition-btn { display: none; }
.recipe-redesign .recipe-nutrition {
    display: block;
    /* Always open in the redesign (button hidden). Override style.css's
       mobile @media rule that clamps this to max-height:0;overflow:hidden. */
    max-height: none;
    overflow: visible;
    background: #fafbfb;
    border: 1px solid #eef0ef;
    border-radius: 16px;
    padding: 22px 24px;
    margin-top: 30px;
}
.recipe-redesign .recipe-nutrition > h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 16px;
    display: inline-block;
}
.recipe-redesign .recipe-nutrition > h3 small {
    font-size: 13px;
    font-weight: 500;
    color: #9aa9ab;
}
.recipe-redesign .nutrition-tabs {
    list-style: none;
    display: inline-flex;
    gap: 4px;
    background: #fff;
    border: 1px solid #eef0ef;
    border-radius: 8px;
    padding: 3px;
    margin: 0 0 16px;
    float: right;
}
.recipe-redesign .nutrition-tabs .sep { display: none; }
.recipe-redesign .nutrition-tabs .tab-link {
    list-style: none;
    background: transparent;
    color: #7a8c8f;
    font-weight: 600;
    font-size: 12px;
    border-radius: 6px;
    padding: 7px 12px;
    cursor: pointer;
    transition: .15s ease;
    text-transform: none;
}
.recipe-redesign .nutrition-tabs .tab-link.current {
    background: #0EA4B0;
    color: #fff;
    font-weight: 700;
}
.recipe-redesign .nutrition-tab-content { display: none; clear: both; }
.recipe-redesign .nutrition-tab-content.current {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.recipe-redesign .nutrition-block {
    background: #fff;
    border: 1px solid #eef0ef;
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
}
.recipe-redesign .nutrition-inner { display: flex; flex-direction: column; gap: 3px; }
.recipe-redesign .nutrition-weight {
    font-size: 18px;
    font-weight: 800;
    color: #0EA4B0;
    order: 1;
}
.recipe-redesign .nutrition-name {
    font-size: 11px;
    color: #7a8c8f;
    font-weight: 600;
    order: 2;
}
.recipe-redesign .nutrition-percent { display: none; }

/* ============================ Author + reviewer ============================ */
.recipe-redesign .rr-people {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}
.recipe-redesign .blurb-container {
    background: #E5F5F7;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    gap: 18px;
    align-items: center;
    margin: 0;
}
.recipe-redesign .blurb-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}
.recipe-redesign .blurb-content .rr-role {
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #0b8893;
    font-weight: 700;
    margin-bottom: 4px;
}
.recipe-redesign .blurb-content h4 {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 5px;
}
.recipe-redesign .blurb-content p {
    font-size: 12.5px;
    color: #3c5256;
    line-height: 1.55;
    margin: 0;
}
.recipe-redesign .blurb-content .blurb-link {
    color: #0EA4B0;
    font-weight: 600;
    text-decoration: none;
}
.recipe-redesign .blurb-content .blurb-link:hover { text-decoration: underline; }

/* ============================ More recipes carousel ============================ */
.recipe-redesign .rr-more { margin-top: 48px; }
.recipe-redesign .rr-more-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.recipe-redesign .rr-more-head h2 {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
}
.recipe-redesign .rr-more-head .view-all-link {
    font-size: 13px;
    font-weight: 700;
    color: #0EA4B0;
    text-decoration: none;
    white-space: nowrap;
}
.recipe-redesign .rr-more-head .view-all-link:hover { text-decoration: underline; }

.recipe-redesign .rr-carousel { position: relative; }
.recipe-redesign .rr-carousel-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.recipe-redesign .rr-carousel-card {
    flex: 0 0 280px;
    width: 280px;
    background: #fff;
    border: 1px solid #eef0ef;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #163a3e;
    transition: box-shadow .15s ease, transform .15s ease;
}
.recipe-redesign .rr-carousel-card:hover {
    box-shadow: 0 20px 44px -28px rgba(20,54,58,.5);
    transform: translateY(-2px);
    color: #163a3e;
}
.recipe-redesign .rr-carousel-card .rr-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #e7f4f5;
}
.recipe-redesign .rr-carousel-card .rr-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.recipe-redesign .rr-carousel-card .rr-card-body { padding: 14px 16px 18px; }
.recipe-redesign .rr-carousel-card h4 {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 6px;
}
.recipe-redesign .rr-carousel-card .rr-card-cat {
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #0b8893;
    font-weight: 700;
    margin: 0;
}

/* Carousel arrows (own controller — see inline script). Hidden at each end via .is-hidden. */
.recipe-redesign .rr-carousel-arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #163a3e !important;
    box-shadow: 0 8px 22px -8px rgba(20,54,58,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: background .15s ease, color .15s ease, opacity .15s ease;
}
.recipe-redesign .rr-carousel-arrow svg {
    overflow: visible;
}
.recipe-redesign .rr-carousel-arrow:hover { background: #0EA4B0 !important; color: #fff !important; }
.recipe-redesign .rr-carousel-prev { left: -14px; }
.recipe-redesign .rr-carousel-next { right: -14px; }
.recipe-redesign .rr-carousel-arrow.is-hidden { display: none; }

/* ============================ Bottom membership band ============================ */
.recipe-redesign .rr-band {
    margin-top: 56px;
    background: #163a3e;
    color: #fff;
}
.recipe-redesign .rr-band-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 48px 28px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
}
.recipe-redesign .rr-band .rr-eyebrow-light {
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #5fd3dc;
    font-weight: 700;
    margin-bottom: 12px;
}
.recipe-redesign .rr-band h2 {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.12;
    margin: 0 0 14px;
    color: #fff;
}
.recipe-redesign .rr-band p {
    font-size: 15px;
    line-height: 1.6;
    color: #cfe6e8;
    margin: 0 0 22px;
    max-width: 520px;
}
.recipe-redesign .rr-band-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.recipe-redesign .rr-band-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 0;
    padding: 0;
}
.recipe-redesign .rr-band-features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 1.45;
    color: #cfe6e8;
}
.recipe-redesign .rr-band-features li .rr-tick { color: #5fd3dc; font-size: 18px; line-height: 1.2; }

/* ============================ Brand modal (reusable template) ============================
   Rendered by alby_render_modal() in functions.php. The modal sits outside
   .recipe-redesign, so everything (including buttons) is scoped to .rr-modal. */
.rr-modal .modal-dialog { max-width: 400px; }
.rr-modal .modal-content {
    border: none;
    border-radius: 18px;
    padding: 36px 30px 28px;
    text-align: center;
    box-shadow: 0 24px 60px -12px rgba(20, 54, 58, .35);
}
.rr-modal .rr-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #163a3e;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: .7;
    transition: opacity .15s ease;
}
.rr-modal .rr-modal-close:hover { opacity: 1; }
.rr-modal .rr-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e7f4f5;
    color: #0EA4B0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.rr-modal .rr-modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #163a3e;
    margin: 0 0 14px;
    line-height: 1.2;
}
.rr-modal .rr-modal-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4a6064;
    margin: 0 0 14px;
}
.rr-modal .rr-modal-list {
    text-align: left;
    border-top: 1px solid #eef0ef;
    padding-top: 16px;
    margin: 4px 0 6px;
}
.rr-modal .rr-modal-list-heading {
    font-size: 13.5px;
    font-weight: 700;
    color: #163a3e;
    margin-bottom: 10px;
}
.rr-modal .rr-modal-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rr-modal .rr-modal-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13.5px;
    line-height: 1.5;
    color: #4a6064;
    margin-bottom: 8px;
}
.rr-modal .rr-modal-tick { color: #0EA4B0; font-weight: 700; }
.rr-modal .rr-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 999px;
    padding: 14px 26px;
    margin-top: 12px;
    text-decoration: none;
    text-align: center;
    transition: filter .15s ease;
}
.rr-modal .rr-btn:hover { filter: brightness(1.06); text-decoration: none; }
.rr-modal .rr-btn-teal { background: #0EA4B0; color: #fff; }
.rr-modal .rr-btn-teal:hover, .rr-modal .rr-btn-teal:focus { color: #fff; }
.rr-modal .rr-btn-pink { background: #F24566; color: #fff; }
.rr-modal .rr-btn-pink:hover, .rr-modal .rr-btn-pink:focus { color: #fff; }
.rr-modal .rr-modal-dismiss {
    display: inline-block;
    margin-top: 16px;
    font-size: 13.5px;
    font-weight: 700;
    color: #0b8893;
    text-decoration: none;
}
.rr-modal .rr-modal-dismiss:hover { text-decoration: underline; color: #0b8893; }

/* ============================ Responsive ============================ */
@media (max-width: 980px) {
    .recipe-redesign .rr-hero { grid-template-columns: 1fr; gap: 26px; }
    .recipe-redesign .rr-main { grid-template-columns: 1fr; gap: 34px; }
    .recipe-redesign .rr-method { border-left: none; padding-left: 0; }
    .recipe-redesign .rr-people { grid-template-columns: 1fr; }
    .recipe-redesign .rr-band-inner { grid-template-columns: 1fr; gap: 26px; padding: 40px 24px; }
    .recipe-redesign .recipe-desktop-title { display: none; }
    .recipe-redesign .recipe-mobile-title { display: block; }
    .recipe-redesign .rr-carousel-arrow { display: none; }
}

@media (max-width: 680px) {
    .recipe-redesign .rr-container { padding: 0 16px; }
    .recipe-redesign .rr-sticky-inner { padding: 10px 16px; gap: 10px; }
    .recipe-redesign .rr-sticky-text { font-size: 13px; }
    .recipe-redesign .rr-sticky-actions { width: 100%; }
    .recipe-redesign .rr-sticky-actions .rr-btn { flex: 1; }
    .recipe-redesign .recipe-mobile-title { font-size: 24px; }
    .recipe-redesign .nutrition-tab-content.current { grid-template-columns: repeat(2, 1fr); }
    .recipe-redesign .nutrition-tabs { float: none; display: inline-flex; margin-top: 8px; }
    .recipe-redesign .rr-band h2 { font-size: 24px; }
    .recipe-redesign .rr-band-features { grid-template-columns: 1fr; }
    .recipe-redesign .rr-carousel-card { flex-basis: 78vw; width: 78vw; }
}

/* ============================ Print ============================ */
@media print {
    .recipe-redesign .rr-sticky-banner,
    .recipe-redesign .rr-actions,
    .recipe-redesign .rr-cta-box,
    .recipe-redesign .rr-band,
    .recipe-redesign .rr-more,
    .recipe-redesign .rr-badge { display: none !important; }
}
