/* ==========================================================
   CITAVERSO RECIPE — EDITORIAL LAYOUT
   Scoped to recipe pages only.
   ========================================================== */

.cv-recipe {
    width: 100%;
    padding: 30px 20px 70px;
    color: var(--cv-text, #e8edf8);
}

.cv-recipe-inner {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
}

.cv-recipe-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--cv-muted, #929db4);
}

.cv-recipe-breadcrumb a {
    color: #61c9ef;
    text-decoration: none;
}

.cv-recipe-breadcrumb a:hover {
    color: #b77cff;
}

/* HERO */

.cv-recipe-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 370px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid var(--cv-line, #1b344b);
    border-radius: 13px;
    background: linear-gradient(135deg, #111b35, #07111e);
}

.cv-recipe-hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.cv-recipe-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 370px;
    object-fit: cover;
    object-position: center;
}

.cv-recipe-hero:after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, #020917f5 0%, #020917c9 34%, #02091720 100%),
        linear-gradient(90deg, #020917a0, transparent 85%);
}

.cv-recipe-hero-copy {
    width: 100%;
    max-width: 780px;
    padding: 38px;
}

.cv-recipe-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 6px 11px;
    border: 1px solid #a855f777;
    border-radius: 5px;
    background: #7928ca33;
    color: #d3a0ff;
    font-weight: 800;
    letter-spacing: .12em;
}

.cv-recipe-hero h1 {
    max-width: 780px;
    margin: 0 0 15px;
    color: #fff;
    font-family: Georgia, serif;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.cv-recipe-intro {
    max-width: 720px;
    color: #d5dced;
    line-height: 1.7;
}

.cv-recipe-intro p:last-child {
    margin-bottom: 0;
}

/* METADATA */

.cv-recipe-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 28px;
}

.cv-recipe-meta-item {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--cv-line, #1b344b);
    border-radius: 10px;
    background: var(--cv-panel, #061421);
}

.cv-recipe-meta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: 1px solid #9650e855;
    border-radius: 10px;
    background: #8b5cf61a;
    color: #c28aff;
    font-weight: 800;
}

.cv-recipe-meta-item > div {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 4px;
}

.cv-recipe-meta-item > div > span {
    color: var(--cv-muted, #929db4);
}

.cv-recipe-meta-item strong {
    color: var(--cv-text, #e8edf8);
}

/* MAIN CONTENT */

.cv-recipe-layout {
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(0, 1.55fr);
    align-items: start;
    gap: 22px;
}

.cv-recipe-ingredients-panel,
.cv-recipe-preparation {
    min-width: 0;
    padding: 25px;
    border: 1px solid var(--cv-line, #1b344b);
    border-radius: 12px;
    background: var(--cv-panel, #061421);
}

.cv-recipe-section-heading {
    margin-bottom: 23px;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--cv-line, #1b344b);
}

.cv-recipe-section-heading > span {
    color: #b77cff;
    font-weight: 800;
    letter-spacing: .1em;
}

.cv-recipe-section-heading h2 {
    margin: 8px 0;
    color: var(--cv-text, #e8edf8);
    font-family: Georgia, serif;
    font-weight: 700;
}

.cv-recipe-section-heading p {
    margin: 0;
    color: var(--cv-muted, #929db4);
    line-height: 1.6;
}

/* INGREDIENTS */

.cv-recipe-ingredients {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cv-recipe-ingredients li {
    padding: 13px 0;
    border-bottom: 1px solid var(--cv-line, #1b344b);
}

.cv-recipe-ingredients li:last-child {
    border-bottom: 0;
}

.cv-recipe-ingredients label {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    cursor: pointer;
}

.cv-recipe-check {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
    margin-top: 3px;
    accent-color: #a855f7;
    cursor: pointer;
}

.cv-recipe-ingredient-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.cv-recipe-ingredient-copy strong {
    color: var(--cv-text, #e8edf8);
    font-weight: 600;
}

.cv-recipe-ingredient-copy small {
    color: var(--cv-muted, #929db4);
}

.cv-recipe-check:checked + .cv-recipe-ingredient-copy strong {
    opacity: .55;
    text-decoration: line-through;
}

.cv-recipe-ingredient-hint {
    margin-top: 18px;
    padding: 13px;
    border: 1px solid #8950d633;
    border-radius: 8px;
    background: #8950d611;
    color: var(--cv-muted, #929db4);
    line-height: 1.5;
}

/* PREPARATION */

.cv-recipe-instructions {
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: recipe-step;
}

.cv-recipe-instructions > li {
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 17px 0;
    border-bottom: 1px solid var(--cv-line, #1b344b);
}

.cv-recipe-instructions > li:last-child {
    border-bottom: 0;
}

.cv-recipe-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border: 1px solid #a855f766;
    border-radius: 10px;
    background: #8b5cf61a;
    color: #c28aff;
    font-weight: 800;
}

.cv-recipe-step-content {
    min-width: 0;
    color: var(--cv-text, #e8edf8);
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.cv-recipe-step-content p:first-child {
    margin-top: 0;
}

.cv-recipe-step-content p:last-child {
    margin-bottom: 0;
}

.cv-recipe-step-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 9px;
}

/* EDITORIAL NOTE */

.cv-recipe-note {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 17px;
    margin-top: 24px;
    padding: 25px;
    border: 1px solid #9957df66;
    border-radius: 12px;
    background: linear-gradient(120deg, #49207522, var(--cv-panel, #061421));
}

.cv-recipe-note-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: #8b5cf629;
    color: #c28aff;
    font-weight: 800;
}

.cv-recipe-note > div:last-child > span {
    color: #b77cff;
    font-weight: 800;
    letter-spacing: .1em;
}

.cv-recipe-note h2 {
    margin: 8px 0 12px;
    color: var(--cv-text, #e8edf8);
    font-family: Georgia, serif;
}

.cv-recipe-note p {
    color: var(--cv-text, #e8edf8);
    line-height: 1.7;
}

.cv-recipe-note p:last-child {
    margin-bottom: 0;
}

/* RESPONSIVE */

@media (max-width: 900px) {
    .cv-recipe-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
        gap: 14px;
    }

    .cv-recipe-ingredients-panel,
    .cv-recipe-preparation {
        padding: 18px;
    }

    .cv-recipe-meta-item {
        padding: 12px;
        gap: 9px;
    }
}

@media (max-width: 700px) {
    .cv-recipe {
        padding: 20px 14px 45px;
    }

    .cv-recipe-breadcrumb {
        margin-bottom: 15px;
    }

    .cv-recipe-hero {
        min-height: 350px;
        border-radius: 10px;
    }

    .cv-recipe-hero-media img {
        min-height: 350px;
    }

    .cv-recipe-hero-copy {
        padding: 23px 18px;
    }

    .cv-recipe-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin: 12px 0 18px;
    }

    .cv-recipe-meta-item {
        padding: 11px;
    }

    .cv-recipe-meta-icon {
        width: 32px;
        height: 32px;
    }

    .cv-recipe-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .cv-recipe-ingredients-panel,
    .cv-recipe-preparation {
        padding: 18px;
    }

    .cv-recipe-section-heading {
        margin-bottom: 14px;
    }

    .cv-recipe-instructions > li {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 11px;
        padding: 13px 0;
    }

    .cv-recipe-step-number {
        width: 34px;
        height: 34px;
    }

    .cv-recipe-note {
        grid-template-columns: 35px minmax(0, 1fr);
        gap: 11px;
        padding: 17px;
    }

    .cv-recipe-note-icon {
        width: 34px;
        height: 34px;
    }
}

/* ==========================================================
   01C46A RECIPE EDITORIAL POLISH
   Scoped overrides - no font-size modifications.
   ========================================================== */

.cv-site .cv-recipe-hero {
    border-color: color-mix(in srgb, var(--cv-accent) 25%, var(--cv-line));
    border-radius: 15px;
    box-shadow: 0 18px 45px #00000020;
}

.cv-site .cv-recipe-hero-media img {
    transition: transform .7s ease, filter .7s ease;
}

.cv-site .cv-recipe-hero:after {
    background:
        linear-gradient(0deg, #020917fa 0%, #020917dc 34%, #02091735 100%),
        linear-gradient(90deg, #020917b0, transparent 90%);
}

.cv-site .cv-recipe-eyebrow {
    background: color-mix(in srgb, var(--cv-accent) 16%, transparent);
    border-color: color-mix(in srgb, var(--cv-accent) 45%, transparent);
    box-shadow: inset 0 1px 0 #ffffff12;
}

.cv-site .cv-recipe-meta-item {
    position: relative;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--cv-accent) 13%, var(--cv-line));
    box-shadow: inset 0 1px 0 #ffffff08;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.cv-site .cv-recipe-meta-icon {
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--cv-accent) 20%, var(--cv-panel)),
        var(--cv-soft)
    );
    border-color: color-mix(in srgb, var(--cv-accent) 35%, var(--cv-line));
}

.cv-site .cv-recipe-layout > :is(
    .cv-recipe-ingredients-panel,
    .cv-recipe-preparation
) {
    box-shadow: inset 0 1px 0 #ffffff08;
    transition: border-color .2s ease;
}

.cv-site .cv-recipe-section-heading {
    position: relative;
}

.cv-site .cv-recipe-section-heading > span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cv-site .cv-recipe-section-heading > span:before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--cv-accent);
}

.cv-site .cv-recipe-ingredients li {
    transition: background .18s ease, padding .18s ease;
}

.cv-site .cv-recipe-ingredients label {
    align-items: center;
    border-radius: 7px;
    transition: color .18s ease;
}

.cv-site .cv-recipe-check {
    accent-color: var(--cv-accent);
}

.cv-site .cv-recipe-check:focus-visible {
    outline: 2px solid var(--cv-accent);
    outline-offset: 3px;
}

.cv-site .cv-recipe-ingredient-copy strong {
    line-height: 1.5;
}

.cv-site .cv-recipe-ingredient-hint {
    border-color: color-mix(in srgb, var(--cv-accent) 25%, var(--cv-line));
    background: color-mix(in srgb, var(--cv-accent) 7%, var(--cv-panel));
}

.cv-site .cv-recipe-instructions > li {
    position: relative;
    border-radius: 9px;
    transition: background .2s ease, padding .2s ease;
}

.cv-site .cv-recipe-step-number {
    background: linear-gradient(
        145deg,
        color-mix(in srgb, var(--cv-accent) 20%, var(--cv-panel)),
        var(--cv-soft)
    );
    border-color: color-mix(in srgb, var(--cv-accent) 45%, var(--cv-line));
    box-shadow: inset 0 1px 0 #ffffff12;
}

.cv-site .cv-recipe-note {
    border-color: color-mix(in srgb, var(--cv-accent) 42%, var(--cv-line));
    background:
        radial-gradient(
            ellipse at 0 0,
            color-mix(in srgb, var(--cv-accent) 12%, transparent),
            transparent 65%
        ),
        var(--cv-panel);
    box-shadow: inset 0 1px 0 #ffffff0a;
}

.cv-site .cv-recipe-note-icon {
    background: color-mix(in srgb, var(--cv-accent) 20%, var(--cv-panel));
    border: 1px solid color-mix(in srgb, var(--cv-accent) 30%, var(--cv-line));
}

@media (hover: hover) {
    .cv-site .cv-recipe-meta-item:hover {
        border-color: var(--cv-accent);
        transform: translateY(-2px);
    }

    .cv-site .cv-recipe-layout > :is(
        .cv-recipe-ingredients-panel,
        .cv-recipe-preparation
    ):hover {
        border-color: color-mix(in srgb, var(--cv-accent) 35%, var(--cv-line));
    }

    .cv-site .cv-recipe-ingredients li:hover {
        background: color-mix(in srgb, var(--cv-accent) 5%, transparent);
    }

    .cv-site .cv-recipe-instructions > li:hover {
        background: color-mix(in srgb, var(--cv-accent) 5%, transparent);
    }
}

@media (max-width: 700px) {
    .cv-site .cv-recipe-hero {
        border-radius: 11px;
    }

    .cv-site .cv-recipe-layout > :is(
        .cv-recipe-ingredients-panel,
        .cv-recipe-preparation
    ) {
        border-radius: 11px;
    }

    .cv-site .cv-recipe-instructions > li {
        border-radius: 7px;
    }

    .cv-site .cv-recipe-note {
        border-radius: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cv-site .cv-recipe-meta-item,
    .cv-site .cv-recipe-instructions > li,
    .cv-site .cv-recipe-ingredients li,
    .cv-site .cv-recipe-hero-media img {
        transition: none;
    }
}

/* END 01C46A */
