/* =================================================
   HCCR SINGLE RECIPE
   ================================================= */

.hccr-single-recipe {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    background: #f9f6ed;
}

.hccr-single-recipe__container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 28px;
    padding-right: 24px;
    padding-bottom: 72px;
    padding-left: 24px;
    box-sizing: border-box;
}

.hccr-recipe-article {
    width: 100%;
    max-width: 100%;
    margin: 0;
}


/* =================================================
   BREADCRUMBS
   ================================================= */

.hccr-recipe-breadcrumbs {
    margin-bottom: 24px;
}

.hccr-recipe-breadcrumbs__list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    list-style: none;
    color: #66705d;
    font-size: 14px;
    line-height: 1.5;
}

.hccr-recipe-breadcrumbs__list li {
    margin: 0;
}

.hccr-recipe-breadcrumbs__list a {
    color: #66705d;
    text-decoration: none;
}

.hccr-recipe-breadcrumbs__list a:hover {
    color: #4c6041;
    text-decoration: underline;
}


/* =================================================
   HERO
   ================================================= */

.hccr-recipe-hero {
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(320px, 0.95fr);

    gap: 40px;
    align-items: center;

    margin-bottom: 44px;
}

.hccr-recipe-hero__content {
    min-width: 0;
}

.hccr-recipe-hero__title {
    margin: 0;

    color: #2b3b2b;

    font-size:
        clamp(36px, 5vw, 58px);

    line-height: 1.04;

    letter-spacing: -0.03em;
}

.hccr-recipe-hero__intro {
    margin-top: 18px;

    max-width: 760px;

    color: #66705d;

    font-size: 18px;

    line-height: 1.72;
}

.hccr-recipe-hero__intro p:last-child {
    margin-bottom: 0;
}

.hccr-recipe-hero__media {
    margin: 0;

    overflow: hidden;

    border-radius: 20px;

    background: #edf0e2;

    aspect-ratio: 4 / 3;
}

.hccr-recipe-hero__image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =================================================
   ACTIONS
   ================================================= */

.hccr-recipe-actions {
    margin-top: 24px;

    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.hccr-recipe-action {
    min-height: 46px;

    padding: 11px 17px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #dce0d2;

    border-radius: 12px;

    background: #f9f6ed;

    color: #2b3b2b;

    font: inherit;

    font-size: 15px;

    font-weight: 700;

    line-height: 1.25;

    text-decoration: none;

    cursor: pointer;
}

.hccr-recipe-action:hover {
    border-color: #4c6041;

    background: #edf0e2;

    color: #4c6041;
}

.hccr-recipe-action--primary {
    border-color: #4c6041;

    background: #4c6041;

    color: #f9f6ed;
}

.hccr-recipe-action--primary:hover {
    background: #4c6041;

    border-color: #4c6041;

    color: #f9f6ed;
}

.hccr-recipe-action:focus-visible {
    outline: 3px solid #74805b;

    outline-offset: 3px;
}


/* =================================================
   FIVE-IMAGE RECIPE CAROUSEL
   ================================================= */

.hccr-recipe-gallery {
    width: 100%;
    max-width: 1000px;

    margin: 0 auto 50px;
}

.hccr-recipe-gallery__header {
    margin-bottom: 18px;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;
}

.hccr-recipe-carousel__controls {
    display: flex;

    gap: 8px;
}

.hccr-recipe-carousel__button {
    width: 44px;
    height: 44px;

    padding: 0;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 1px solid #dce0d2;

    border-radius: 999px;

    background: #f9f6ed;

    color: #2b3b2b;

    font-size: 19px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;
}

.hccr-recipe-carousel__button:hover:not(:disabled) {
    border-color: #4c6041;

    background: #edf0e2;

    color: #4c6041;
}

.hccr-recipe-carousel__button:disabled {
    opacity: 0.4;

    cursor: default;
}

.hccr-recipe-carousel__button:focus-visible,
.hccr-recipe-carousel__track:focus-visible {
    outline: 3px solid #74805b;

    outline-offset: 3px;
}

.hccr-recipe-carousel__track {
    width: 100%;

    padding: 2px 2px 12px;

    display: grid;

    grid-auto-flow: column;

    grid-auto-columns:
        min(82%, 760px);

    gap: 16px;

    overflow-x: auto;

    overscroll-behavior-inline: contain;

    scroll-behavior: smooth;

    scroll-snap-type: inline mandatory;

    scrollbar-width: thin;

    scrollbar-color:
        #D1D5DB transparent;
}

.hccr-recipe-carousel__track::-webkit-scrollbar {
    height: 8px;
}

.hccr-recipe-carousel__track::-webkit-scrollbar-track {
    background: transparent;
}

.hccr-recipe-carousel__track::-webkit-scrollbar-thumb {
    border-radius: 999px;

    background: #D1D5DB;
}

.hccr-recipe-carousel__slide {
    margin: 0;

    overflow: hidden;

    scroll-snap-align: start;

    scroll-snap-stop: always;

    border: 1px solid #dce0d2;

    border-radius: 18px;

    background: #f9f6ed;
}

.hccr-recipe-carousel__media {
    width: 100%;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: #edf0e2;
}

.hccr-recipe-carousel__image {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.hccr-recipe-carousel__caption {
    padding: 14px 16px 16px;

    display: grid;

    gap: 4px;

    color: #66705d;

    font-size: 14px;

    line-height: 1.5;
}

.hccr-recipe-carousel__caption strong {
    color: #2b3b2b;

    font-size: 16px;
}

.hccr-recipe-carousel__step {
    color: #4c6041;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.05em;

    text-transform: uppercase;
}

.hccr-recipe-carousel__status {
    margin: 10px 0 0;

    color: #66705d;

    font-size: 13px;

    text-align: right;
}


/* =================================================
   RECIPE CARD
   ================================================= */

.hccr-recipe-card-detail {
    scroll-margin-top: 24px;

    margin: 0 auto;

    padding: 30px;

    width: 100%;
    max-width: 900px;

    box-sizing: border-box;

    border: 1px solid #dce0d2;

    border-radius: 20px;

    background: #edf0e2;
}

.hccr-recipe-card-detail__header {
    display: grid;

    gap: 22px;

    margin-bottom: 28px;
}

.hccr-recipe-kicker {
    margin: 0 0 5px;

    color: #4c6041;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}

.hccr-recipe-section-title {
    margin: 0;

    color: #2b3b2b;

    font-size:
        clamp(26px, 3.4vw, 36px);

    line-height: 1.18;

    letter-spacing: -0.018em;
}


/* =================================================
   QUICK FACTS
   ================================================= */

.hccr-recipe-facts {
    margin: 0;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 10px;
}

.hccr-recipe-facts__item {
    min-width: 0;

    padding: 12px;

    border: 1px solid #dce0d2;

    border-radius: 12px;

    background: #f9f6ed;
}

.hccr-recipe-facts dt {
    margin: 0 0 4px;

    color: #66705d;

    font-size: 12px;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.04em;
}

.hccr-recipe-facts dd {
    margin: 0;

    color: #2b3b2b;

    font-size: 15px;

    font-weight: 700;

    line-height: 1.35;
}


/* =================================================
   RECIPE CONTENT
   ================================================= */

.hccr-recipe-content-section
+
.hccr-recipe-content-section {
    margin-top: 30px;

    padding-top: 28px;

    border-top: 1px solid #dce0d2;
}

.hccr-recipe-content-section h3 {
    margin: 0 0 14px;

    color: #2b3b2b;

    font-size: 22px;

    line-height: 1.25;
}

.hccr-recipe-content-section h4 {
    margin: 20px 0 10px;

    color: #2b3b2b;

    font-size: 17px;

    line-height: 1.35;
}

.hccr-recipe-content-section p {
    color: #66705d;

    line-height: 1.7;
}

.hccr-recipe-content-section p:last-child {
    margin-bottom: 0;
}

.hccr-recipe-list {
    margin: 0;

    padding-left: 22px;

    color: #2b3b2b;
}

.hccr-recipe-list li {
    margin-bottom: 9px;

    line-height: 1.65;
}

.hccr-recipe-list li:last-child {
    margin-bottom: 0;
}

.hccr-recipe-steps {
    margin: 0;

    padding-left: 24px;

    color: #2b3b2b;
}

.hccr-recipe-steps li {
    margin-bottom: 16px;

    padding-left: 7px;

    line-height: 1.7;
}

.hccr-recipe-safety {
    padding: 18px;

    border: 1px solid #dce0d2;

    border-radius: 14px;

    background: #f9f6ed;
}


/* =================================================
   STANDARD PAGE SECTIONS
   ================================================= */

.hccr-recipe-page-section {
    width: 100%;
    max-width: 900px;

    margin: 54px auto 0;

    box-sizing: border-box;
}

.hccr-recipe-page-section
>
.hccr-recipe-section-title {
    margin-bottom: 20px;
}


/* =================================================
   SERVING / STORAGE
   ================================================= */

.hccr-recipe-info-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}

.hccr-recipe-info-card {
    padding: 20px;

    border: 1px solid #dce0d2;

    border-radius: 15px;

    background: #f9f6ed;
}

.hccr-recipe-info-card h3 {
    margin: 0 0 9px;

    color: #2b3b2b;

    font-size: 18px;
}

.hccr-recipe-info-card p {
    margin-top: 0;

    color: #66705d;

    line-height: 1.65;
}

.hccr-recipe-info-card p:last-child {
    margin-bottom: 0;
}


/* =================================================
   VIDEO
   ================================================= */

.hccr-video-embed {
    position: relative;

    overflow: hidden;

    width: 100%;

    aspect-ratio: 16 / 9;

    border-radius: 18px;

    background: #2b3b2b;
}

.hccr-video-embed iframe {
    width: 100%;
    height: 100%;

    display: block;

    border: 0;
}

.hccr-video-credit {
    margin: 12px 0 0;

    color: #66705d;

    font-size: 14px;
}

.hccr-video-credit a {
    color: #4c6041;
}


/* =================================================
   FAQ
   ================================================= */

.hccr-recipe-faq {
    display: grid;

    gap: 10px;
}

.hccr-recipe-faq__item {
    border: 1px solid #dce0d2;

    border-radius: 14px;

    background: #f9f6ed;
}

.hccr-recipe-faq__item summary {
    min-height: 50px;

    padding: 14px 16px;

    cursor: pointer;

    color: #2b3b2b;

    font-weight: 700;

    line-height: 1.45;
}

.hccr-recipe-faq__item summary:focus-visible {
    outline: 3px solid #74805b;

    outline-offset: 3px;
}

.hccr-recipe-faq__answer {
    padding:
        0 16px 16px;

    color: #66705d;

    line-height: 1.7;
}

.hccr-recipe-faq__answer p:last-child {
    margin-bottom: 0;
}


/* =================================================
   SOURCES
   ================================================= */

.hccr-recipe-sources {
    padding-top: 4px;
}

.hccr-recipe-source-list {
    margin: 0;

    padding-left: 22px;
}

.hccr-recipe-source-list li {
    margin-bottom: 8px;

    color: #2b3b2b;

    line-height: 1.6;
}

.hccr-recipe-source-list a {
    color: #4c6041;

    overflow-wrap: anywhere;
}

.hccr-recipe-source-list a:hover {
    color: #394d32;
}


/* =================================================
   PRINT-ONLY SOURCE
   ================================================= */

.hccr-print-source {
    display: none;
}


/* =================================================
   TABLET
   ================================================= */

@media (max-width: 900px) {

    .hccr-single-recipe__container {
        padding-right: 22px;

        padding-left: 22px;
    }

    .hccr-recipe-hero {
        grid-template-columns: 1fr;

        gap: 26px;
    }

    .hccr-recipe-hero__media {
        width: 100%;

        max-width: 760px;

        margin-left: auto;

        margin-right: auto;
    }

    .hccr-recipe-facts {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .hccr-recipe-carousel__track {
        grid-auto-columns: 86%;
    }

}


/* =================================================
   MOBILE
   ================================================= */

@media (max-width: 600px) {

    .hccr-single-recipe__container {
        width: 100%;

        padding-top: 20px;

        padding-right: 18px;

        padding-bottom: 48px;

        padding-left: 18px;

        box-sizing: border-box;
    }

    .hccr-recipe-breadcrumbs {
        margin-bottom: 18px;
    }

    .hccr-recipe-breadcrumbs__list {
        gap: 5px;

        font-size: 13px;

        line-height: 1.55;
    }

    .hccr-recipe-hero {
        gap: 24px;

        margin-bottom: 32px;
    }

    .hccr-recipe-hero__title {
        font-size: 34px;

        line-height: 1.08;

        letter-spacing: -0.025em;
    }

    .hccr-recipe-hero__intro {
        margin-top: 16px;

        font-size: 16px;

        line-height: 1.65;
    }

    .hccr-recipe-actions {
        display: grid;

        grid-template-columns: 1fr;
    }

    .hccr-recipe-action {
        width: 100%;

        min-height: 48px;

        box-sizing: border-box;
    }

    .hccr-recipe-hero__media {
        width: 100%;

        max-width: none;

        border-radius: 15px;
    }

    .hccr-recipe-gallery {
        margin-bottom: 38px;
    }

    .hccr-recipe-gallery__header {
        align-items: center;
    }

    .hccr-recipe-carousel__track {
        grid-auto-columns: 91%;

        gap: 12px;
    }

    .hccr-recipe-carousel__slide {
        border-radius: 15px;
    }

    .hccr-recipe-carousel__caption {
        padding: 12px 14px 14px;
    }

    .hccr-recipe-card-detail {
        width: 100%;

        padding:
            20px 16px;

        border-radius: 16px;
    }

    .hccr-recipe-facts {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hccr-recipe-info-grid {
        grid-template-columns: 1fr;
    }

    .hccr-recipe-page-section {
        width: 100%;

        margin-top: 42px;
    }

}


/* =================================================
   VERY SMALL PHONES
   ================================================= */

@media (max-width: 380px) {

    .hccr-single-recipe__container {
        padding-right: 14px;

        padding-left: 14px;
    }

    .hccr-recipe-hero__title {
        font-size: 31px;
    }

}


/* =================================================
   PRINT RECIPE
   ================================================= */

@media print {

    @page {
        margin: 12mm;
    }

    html,
    body {
        width: auto !important;

        height: auto !important;

        min-height: 0 !important;

        margin: 0 !important;

        padding: 0 !important;

        overflow: visible !important;

        background: #f9f6ed !important;
    }


    /*
     * IMPORTANT:
     *
     * We deliberately do NOT use:
     *
     * visibility: hidden;
     *
     * Hidden elements still occupy physical print space,
     * which was causing the extra blank pages.
     *
     * Instead we completely remove non-recipe elements
     * from the print layout with display:none.
     */

    #wpadminbar,
    .site-header,
    #masthead,
    .main-navigation,
    #site-navigation,
    .widget-area,
    .site-footer,
    footer,
    .generate-back-to-top,
    .hccr-recipe-breadcrumbs,
    .hccr-recipe-gallery,
    .hccr-recipe-page-section {
        display: none !important;
    }


    .site,
    .site-content,
    .content-area,
    .site-main,
    .hccr-single-recipe,
    .hccr-single-recipe__container,
    .hccr-recipe-article {
        display: block !important;

        position: static !important;

        width: auto !important;

        max-width: none !important;

        min-height: 0 !important;

        height: auto !important;

        margin: 0 !important;

        padding: 0 !important;

        border: 0 !important;

        box-shadow: none !important;

        background: #f9f6ed !important;
    }


    /*
     * PRINT TITLE + FINAL DISH IMAGE
     *
     * We reuse the existing recipe hero.
     *
     * Only the recipe title and featured image print.
     * Introductory paragraphs and buttons are hidden.
     */

    .hccr-recipe-hero {
        display: block !important;

        margin: 0 0 12px !important;

        padding: 0 !important;
    }


    .hccr-recipe-hero__content {
        display: block !important;

        margin: 0 !important;

        padding: 0 !important;
    }


    .hccr-recipe-hero__intro,
    .hccr-recipe-actions {
        display: none !important;
    }


    .hccr-recipe-hero__title {
        display: block !important;

        margin: 0 0 10px !important;

        color: #000000 !important;

        font-size: 20pt !important;

        line-height: 1.15 !important;

        letter-spacing: 0 !important;
    }


    /*
     * Final prepared dish image.
     *
     * This appears directly after the recipe title
     * and before the recipe details / ingredients.
     */

    .hccr-recipe-hero__media {
        display: block !important;

        width: 100% !important;

        max-width: 480px !important;

        height: 250px !important;

        margin: 0 auto 14px !important;

        overflow: hidden !important;

        border: 0 !important;

        border-radius: 8px !important;

        background: #f9f6ed !important;

        break-inside: avoid;

        page-break-inside: avoid;
    }


    .hccr-recipe-hero__image {
        display: block !important;

        width: 100% !important;

        height: 100% !important;

        margin: 0 !important;

        object-fit: cover !important;
    }


    /*
     * RECIPE CARD
     */

    .hccr-print-area {
        display: block !important;

        position: static !important;

        width: auto !important;

        max-width: none !important;

        min-height: 0 !important;

        height: auto !important;

        margin: 0 !important;

        padding: 0 !important;

        border: 0 !important;

        border-radius: 0 !important;

        box-shadow: none !important;

        background: #f9f6ed !important;

        color: #000000 !important;

        font-size: 10.5pt !important;

        line-height: 1.42 !important;
    }


    /*
     * The H1 recipe title already printed above.
     *
     * Hide the duplicate "Recipe / Baked Chicken Breast"
     * title inside the recipe card, but keep quick facts.
     */

    .hccr-recipe-card-detail__header {
        display: block !important;

        margin: 0 0 12px !important;
    }


    .hccr-recipe-card-detail__header
    >
    div:first-child {
        display: none !important;
    }


    /*
     * QUICK FACTS
     */

    .hccr-recipe-facts {
        display: grid !important;

        grid-template-columns:
            repeat(5, minmax(0, 1fr)) !important;

        gap: 6px !important;

        margin: 0 0 12px !important;
    }


    .hccr-recipe-facts__item {
        display: block !important;

        min-width: 0 !important;

        padding: 7px !important;

        border: 1px solid #D8D8D8 !important;

        border-radius: 5px !important;

        background: #f9f6ed !important;

        break-inside: avoid;

        page-break-inside: avoid;
    }


    .hccr-recipe-facts dt {
        margin: 0 0 2px !important;

        color: #555555 !important;

        font-size: 7.5pt !important;
    }


    .hccr-recipe-facts dd {
        margin: 0 !important;

        color: #000000 !important;

        font-size: 9pt !important;
    }


    /*
     * RECIPE CONTENT
     */

    .hccr-recipe-content-section,
    .hccr-recipe-content-section
    +
    .hccr-recipe-content-section {
        display: block !important;

        margin-top: 12px !important;

        padding-top: 10px !important;

        border-top: 1px solid #DDDDDD !important;
    }


    .hccr-recipe-content-section:first-of-type {
        margin-top: 0 !important;
    }


    .hccr-recipe-content-section h3 {
        margin: 0 0 7px !important;

        color: #000000 !important;

        font-size: 13pt !important;

        line-height: 1.2 !important;

        break-after: avoid;

        page-break-after: avoid;
    }


    .hccr-recipe-content-section h4 {
        margin: 10px 0 5px !important;

        color: #000000 !important;

        font-size: 11pt !important;

        line-height: 1.25 !important;

        break-after: avoid;

        page-break-after: avoid;
    }


    .hccr-recipe-content-section p {
        margin-top: 0 !important;

        color: #000000 !important;

        line-height: 1.42 !important;
    }


    .hccr-recipe-list,
    .hccr-recipe-steps {
        margin-top: 0 !important;

        margin-bottom: 0 !important;
    }


    .hccr-recipe-list li {
        margin-bottom: 4px !important;

        color: #000000 !important;

        line-height: 1.4 !important;
    }


    .hccr-recipe-steps li {
        margin-bottom: 7px !important;

        padding-left: 3px !important;

        color: #000000 !important;

        line-height: 1.42 !important;
    }


    /*
     * FOOD SAFETY BOX
     */

    .hccr-recipe-safety {
        padding: 10px !important;

        border: 1px solid #D8D8D8 !important;

        border-radius: 6px !important;

        background: #f9f6ed !important;

        break-inside: avoid;

        page-break-inside: avoid;
    }


    /*
     * WEBSITE SOURCE AT BOTTOM
     */

    .hccr-print-source {
        display: block !important;

        margin-top: 16px !important;

        padding-top: 8px !important;

        border-top:
            1px solid #CCCCCC !important;

        color: #555555 !important;

        font-size: 8pt !important;

        overflow-wrap: anywhere;
    }

}