.pp-recipe {
    --pp-cream: #fff8e8;
    --pp-paper: #fffdf7;
    --pp-cacao: #2c1f20;
    --pp-raspberry: #d9365f;
    --pp-pistachio: #4e8d68;
    --pp-caramel: #d99032;
    --pp-screen-blue: #5067e6;
    --pp-ganache: #201a24;
    --pp-border: 1px solid color-mix(in srgb, var(--pp-cacao) 25%, transparent);
    box-sizing: border-box;
    width: min(100%, 1240px);
    max-width: 1240px;
    margin: 56px auto;
    padding: clamp(20px, 3vw, 38px);
    border: var(--pp-border);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgb(255 248 232 / 72%), transparent 34%),
        var(--pp-paper);
    box-shadow: 0 20px 60px rgb(44 31 32 / 9%);
    color: var(--pp-cacao);
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 18px;
    line-height: 1.65;
}

.pp-recipe *,
.pp-recipe *::before,
.pp-recipe *::after {
    box-sizing: border-box;
}

/* Isole la fiche des styles historiques très spécifiques du thème. */
article.post .pp-recipe :where(h2, h3, h4) {
    clear: none !important;
    display: block !important;
    margin-top: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: var(--pp-cacao) !important;
}

article.post .pp-recipe p,
article.post .pp-recipe p:first-child {
    color: var(--pp-cacao) !important;
    font-size: inherit !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}

article.post .pp-recipe a {
    color: var(--pp-raspberry) !important;
}

.pp-recipe-page .inside-article > .featured-image {
    display: none;
}

.pp-recipe :where(h2, h3, h4, button, .pp-recipe__jump, .pp-recipe__eyebrow) {
    font-family: "Space Grotesk", system-ui, sans-serif;
}

.pp-recipe :where(a, button, input, summary):focus-visible,
.pp-recipe-rating-field input:focus-visible + span {
    outline: 3px solid var(--pp-screen-blue);
    outline-offset: 3px;
}

.pp-recipe__header {
    display: grid;
    grid-template-columns: minmax(260px, 4fr) minmax(400px, 6fr) minmax(230px, 3fr);
    gap: 24px;
    align-items: stretch;
}

.pp-recipe__intro,
.pp-recipe__facts {
    border: var(--pp-border);
    border-radius: 12px;
    background: var(--pp-paper);
    padding: 24px;
}

.pp-recipe__eyebrow {
    margin: 0 0 8px;
    color: var(--pp-raspberry);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

article.post .pp-recipe .pp-recipe__eyebrow {
    color: var(--pp-raspberry) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

article.post .pp-recipe .pp-recipe__intro h2 {
    margin: 0 0 16px !important;
    color: var(--pp-cacao);
    font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
    font-weight: 700 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.035em;
}

article.post .pp-recipe .pp-recipe__steps > h2,
article.post .pp-recipe .pp-recipe__ingredients h2 {
    margin: 0 !important;
    color: var(--pp-cacao);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

article.post .pp-recipe .pp-recipe__callouts > h2,
article.post .pp-recipe .pp-recipe__main-video > h2,
article.post .pp-recipe .pp-recipe__nutrition > h2 {
    margin: 0 0 16px !important;
    color: var(--pp-cacao);
    font-size: clamp(1.55rem, 3vw, 2.2rem) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.025em;
}

.pp-recipe__summary {
    max-width: 42rem;
    margin: 0 !important;
}

.pp-recipe__taxonomy,
.pp-recipe__video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 0;
}

.pp-recipe__taxonomy span,
.pp-recipe__video-meta span {
    padding: 4px 8px;
    border: 1px solid var(--pp-cacao);
    border-radius: 6px;
    background: var(--pp-cream);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
}

.pp-recipe__rating {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 20px 0 0;
    color: var(--pp-caramel);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 14px;
}

article.post .pp-recipe .pp-recipe__rating {
    color: var(--pp-caramel) !important;
    font-size: 14px !important;
}

.pp-recipe__cover {
    min-height: 380px;
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
    background: var(--pp-cream);
}

.pp-recipe__cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-recipe__facts dl,
.pp-recipe__nutrition dl {
    margin: 0;
}

.pp-recipe__facts dl > div,
.pp-recipe__nutrition dl > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: var(--pp-border);
}

.pp-recipe__facts dt,
.pp-recipe__nutrition dt {
    font-size: 14px;
}

.pp-recipe__facts dd,
.pp-recipe__nutrition dd {
    margin: 0;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.pp-recipe__equipment {
    margin-top: 24px;
}

article.post .pp-recipe .pp-recipe__equipment h3 {
    margin: 0 0 8px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

.pp-recipe__equipment ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
}

.pp-recipe__equipment small {
    display: block;
}

.pp-recipe__equipment a,
.pp-recipe__shop {
    color: var(--pp-raspberry);
    font-weight: 700;
}

.pp-recipe__jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin: 28px 0 0;
    padding: 14px 16px;
    border-block: var(--pp-border);
    background: rgb(255 248 232 / 58%);
}

.pp-recipe__jump a {
    color: var(--pp-cacao) !important;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.pp-recipe__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 40px;
}

.pp-recipe-button,
.pp-recipe__share button {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--pp-cacao);
    border-radius: 8px;
    background: var(--pp-paper);
    color: var(--pp-cacao);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 3px 3px 0 rgb(44 31 32 / 14%);
}

.pp-recipe__toolbar .pp-recipe-button:first-child {
    background: var(--pp-cacao);
    color: var(--pp-paper);
}

.pp-recipe__cooking-status {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-left: auto;
    padding: 8px 12px;
    border: 1px solid var(--pp-pistachio);
    border-radius: 999px;
    background: color-mix(in srgb, var(--pp-pistachio) 9%, var(--pp-paper));
    color: var(--pp-cacao);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
}

.pp-recipe__cooking-status[hidden] {
    display: none;
}

.pp-recipe__cooking-status[data-state="warning"] {
    border-color: var(--pp-caramel);
    background: color-mix(in srgb, var(--pp-caramel) 10%, var(--pp-paper));
}

.pp-recipe__cooking-status[data-state="pending"] {
    border-color: var(--pp-screen-blue);
    background: color-mix(in srgb, var(--pp-screen-blue) 8%, var(--pp-paper));
}

.pp-recipe-button:hover,
.pp-recipe-button.is-active,
.pp-recipe__share button:hover {
    background: var(--pp-cacao);
    color: var(--pp-paper);
}

body.pp-cooking-mode {
    overflow: hidden !important;
}

body.pp-cooking-mode .bottom-bar {
    display: none !important;
}

body.pp-cooking-mode .pp-recipe {
    position: fixed;
    z-index: 2147483647;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: clamp(16px, 3vw, 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 0;
    background: var(--pp-paper);
    box-shadow: none;
}

body.pp-cooking-mode .pp-recipe__header,
body.pp-cooking-mode .pp-recipe__jump,
body.pp-cooking-mode .pp-recipe__callouts,
body.pp-cooking-mode .pp-recipe__main-video,
body.pp-cooking-mode .pp-recipe__nutrition,
body.pp-cooking-mode .pp-recipe__footer {
    display: none;
}

body.pp-cooking-mode .pp-recipe__toolbar {
    position: sticky;
    z-index: 10;
    top: 0;
    max-width: 1180px;
    margin: 0 auto 28px;
    padding: 12px 0 16px;
    border-bottom: 2px solid var(--pp-pistachio);
    background: var(--pp-paper);
}

body.pp-cooking-mode .pp-recipe__toolbar [data-recipe-wake] {
    border-color: var(--pp-raspberry);
    background: var(--pp-raspberry);
    color: white;
}

body.pp-cooking-mode .pp-recipe__body {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-bottom: 48px;
}

body.pp-cooking-mode article.post .pp-recipe .pp-recipe__step-text p,
body.pp-cooking-mode article.post .pp-recipe .pp-recipe__step-text p:first-child {
    font-size: clamp(18px, 1.5vw, 21px) !important;
    line-height: 1.75 !important;
}

.pp-recipe__body {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
}

.pp-recipe__ingredients {
    position: sticky;
    top: 24px;
    padding: 22px;
    border: var(--pp-border);
    border-radius: 16px;
    background: var(--pp-cream);
}

.pp-recipe__section-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--pp-pistachio);
}

.pp-recipe__servings {
    display: flex;
    flex: 0 0 auto;
    gap: 6px;
    align-items: center;
    min-height: 44px;
    padding-left: 10px;
    border: 1px solid rgb(44 31 32 / 28%);
    border-radius: 999px;
    background: var(--pp-paper);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

article.post .pp-recipe .pp-recipe__servings input {
    width: 54px;
    min-height: 36px;
    padding: 4px 2px !important;
    border: 0 !important;
    border-left: 1px solid rgb(44 31 32 / 20%) !important;
    border-radius: 0 999px 999px 0 !important;
    background: white !important;
    color: var(--pp-cacao) !important;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    text-align: center !important;
}

.pp-recipe__ingredient-group + .pp-recipe__ingredient-group {
    margin-top: 28px;
}

article.post .pp-recipe .pp-recipe__ingredient-group h3,
article.post .pp-recipe .pp-recipe__step-section > h3 {
    margin: 0 0 12px !important;
    font-size: 18px !important;
    font-weight: 650 !important;
    line-height: 1.3 !important;
}

.pp-recipe__ingredient-group ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pp-recipe__ingredient-group li {
    position: relative;
    padding: 11px 0;
    border-bottom: var(--pp-border);
    color: var(--pp-cacao) !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}

.pp-recipe__ingredient-group label {
    display: grid;
    grid-template-columns: 22px minmax(38px, auto) auto 1fr;
    gap: 6px;
    align-items: baseline;
    cursor: pointer;
}

.pp-recipe__ingredient-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pp-recipe__ingredient-group input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--pp-pistachio);
}

.pp-recipe__ingredient-quantity,
.pp-recipe__ingredient-unit {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    font-weight: 700;
}

.pp-recipe__ingredient-group li.is-checked .pp-recipe__ingredient-name {
    opacity: 0.55;
    text-decoration: line-through;
}

.pp-recipe__ingredient-group small,
.pp-recipe__optional,
.pp-recipe__ingredient-group details,
.pp-recipe__ingredient-group .pp-recipe__links,
.pp-recipe__shop {
    display: block;
    margin: 4px 0 0 28px;
    font-size: 12px;
}

.pp-recipe__links {
    margin-block: 8px;
    padding-left: 20px;
    font-size: 13px;
}

.pp-recipe__optional {
    color: var(--pp-pistachio);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.pp-recipe__step-section + .pp-recipe__step-section {
    margin-top: 48px;
}

article.post .pp-recipe .pp-recipe__steps > h2 {
    margin-bottom: 22px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid var(--pp-pistachio) !important;
}

.pp-recipe__step-section ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: recipe-step;
}

.pp-recipe__step-section > ol > li {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 14px;
    padding: 22px 22px 22px 66px;
    border: var(--pp-border);
    border-radius: 14px;
    background: white;
    box-shadow: 0 8px 24px rgb(44 31 32 / 5%);
    counter-increment: recipe-step;
}

.pp-recipe__step-section > ol > li.pp-recipe__step--has-media {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 38%);
}

.pp-recipe__step-section > ol > li::before {
    content: counter(recipe-step);
    position: absolute;
    top: 24px;
    left: 18px;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: var(--pp-raspberry);
    color: white;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    font-weight: 700;
}

.pp-recipe__step-heading {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
}

article.post .pp-recipe .pp-recipe__step-heading h4 {
    margin: 0 0 10px !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

.pp-recipe__step-heading span,
.pp-recipe__used {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
}

.pp-recipe__step-content {
    min-width: 0;
}

article.post .pp-recipe .pp-recipe__step-text p,
article.post .pp-recipe .pp-recipe__step-text p:first-child {
    margin: 0 0 16px !important;
    color: var(--pp-cacao) !important;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 17px !important;
    font-weight: 400 !important;
    line-height: 1.7 !important;
}

article.post .pp-recipe .pp-recipe__step-text p:last-child {
    margin-bottom: 0 !important;
}

.pp-recipe__step-text > :first-child,
.pp-recipe-callout > :first-child {
    margin-top: 0;
}

.pp-recipe__step-text > :last-child,
.pp-recipe-callout > :last-child {
    margin-bottom: 0;
}

.pp-recipe__step-text img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border-radius: 12px;
}

.pp-recipe__step-media {
    margin: 0;
}

.pp-recipe__step-media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.pp-recipe-video {
    grid-column: 1 / -1;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: var(--pp-ganache);
}

.pp-recipe-video iframe,
.pp-recipe-video video {
    display: block;
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 9;
    height: auto;
}

.pp-recipe-video > a {
    display: block;
    padding: 24px;
    color: white;
    text-align: center;
}

.pp-recipe-callout {
    margin: 20px 0 0;
    padding: 16px 20px;
    border: 1px solid var(--pp-screen-blue);
    border-left-width: 4px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--pp-screen-blue) 7%, var(--pp-paper));
}

.pp-recipe-callout--tip,
.pp-recipe-callout--science {
    border-color: var(--pp-caramel);
    background: color-mix(in srgb, var(--pp-caramel) 8%, var(--pp-paper));
}

.pp-recipe-callout--bug,
.pp-recipe-callout--critical {
    border-color: #b9323e;
    background: color-mix(in srgb, #b9323e 7%, var(--pp-paper));
}

.pp-recipe-callout--substitution,
.pp-recipe-callout--conservation {
    border-color: var(--pp-pistachio);
    background: color-mix(in srgb, var(--pp-pistachio) 8%, var(--pp-paper));
}

.pp-recipe__callouts,
.pp-recipe__main-video,
.pp-recipe__nutrition {
    margin-top: 48px;
    padding-top: 32px;
    border-top: var(--pp-border);
}

.pp-recipe__callout-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.pp-recipe__callout-grid .pp-recipe-callout {
    margin: 0;
}

article.post .pp-recipe .pp-recipe__callout-grid h3 {
    margin: 0 0 8px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.pp-recipe__main-video > p,
.pp-recipe__nutrition > p {
    max-width: 760px;
}

.pp-recipe__main-video details {
    margin-top: 16px;
}

.pp-recipe__nutrition dl {
    display: grid;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 0 24px;
    max-width: 800px;
}

.pp-recipe__nutrition-warning {
    color: #a85f0c;
    font-weight: 700;
}

article.post .pp-recipe .pp-recipe__nutrition-source,
article.post .pp-recipe .pp-recipe__nutrition-note,
article.post .pp-recipe .pp-recipe__affiliate-disclosure {
    font-size: 13px !important;
}

.pp-recipe__footer {
    margin-top: 48px;
    padding: 24px;
    border: var(--pp-border);
    border-radius: 12px;
    background: var(--pp-cream);
}

.pp-recipe__share {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    align-items: center;
}

.pp-recipe__share a {
    color: var(--pp-raspberry);
    font-weight: 700;
    text-decoration-thickness: 2px;
}

.pp-recipe__affiliate-disclosure {
    margin: 16px 0 0;
}

.pp-recipe-rating-field {
    --pp-border: 1px solid rgb(44 31 32 / 25%);
    --pp-caramel: #d99032;
    --pp-raspberry: #d9365f;
    margin: 0;
    padding: 22px;
    background: linear-gradient(135deg, rgb(217 54 95 / 8%), rgb(217 144 50 / 8%));
    border: var(--pp-border);
    border-radius: 12px;
}

.pp-recipe-rating-field__title {
    display: grid;
    gap: 4px;
    margin: 0;
}

.pp-recipe-rating-field__title strong {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 20px;
}

.pp-recipe-rating-field__eyebrow {
    color: var(--pp-raspberry);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pp-recipe-rating-field__help {
    margin: 4px 0 12px;
    font-size: 14px;
}

.pp-recipe-rating-field__help span {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 7px;
    color: var(--pp-raspberry);
    background: #fff;
    border-radius: 999px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.pp-recipe-rating-options {
    display: flex;
    gap: 4px;
}

.pp-recipe-rating-options label {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0;
    place-items: center;
    color: var(--pp-cacao);
    background: rgb(255 255 255 / 72%);
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.pp-recipe-rating-options input {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.pp-recipe-rating-options label:has(input:focus-visible) {
    outline: 3px solid var(--pp-screen-blue, #5067e6);
    outline-offset: 2px;
}

.pp-recipe-rating-star::before {
    content: "☆";
}

.pp-recipe-rating-star {
    display: block;
    font-size: 18px;
}

/* La sélection ne doit pas rester peinte pendant l’aperçu au survol. */
.pp-recipe-rating-options:not(.is-previewing):not(:has(label:hover)) label:has(input:checked),
.pp-recipe-rating-options:not(.is-previewing):not(:has(label:hover)) label:has(~ label input:checked),
.pp-recipe-rating-options:not(.is-previewing):not(:has(label:hover)) label.is-active {
    color: var(--pp-raspberry);
}

.pp-recipe-rating-options:not(.is-previewing):not(:has(label:hover)) label:has(input:checked) .pp-recipe-rating-star::before,
.pp-recipe-rating-options:not(.is-previewing):not(:has(label:hover)) label:has(~ label input:checked) .pp-recipe-rating-star::before,
.pp-recipe-rating-options:not(.is-previewing):not(:has(label:hover)) label.is-active .pp-recipe-rating-star::before {
    content: "★";
}

.pp-recipe-rating-options:not(.is-previewing):has(label:hover) label {
    color: var(--pp-cacao);
}

.pp-recipe-rating-options:not(.is-previewing):has(label:hover) label .pp-recipe-rating-star::before {
    content: "☆";
}

.pp-recipe-rating-options:not(.is-previewing):has(label:hover) label:hover,
.pp-recipe-rating-options:not(.is-previewing):has(label:hover) label:has(~ label:hover) {
    color: var(--pp-raspberry);
}

.pp-recipe-rating-options:not(.is-previewing):has(label:hover) label:hover .pp-recipe-rating-star::before,
.pp-recipe-rating-options:not(.is-previewing):has(label:hover) label:has(~ label:hover) .pp-recipe-rating-star::before {
    content: "★";
}

.pp-recipe-rating-options.is-previewing label {
    color: var(--pp-cacao);
}

.pp-recipe-rating-options.is-previewing label .pp-recipe-rating-star::before {
    content: "☆";
}

.pp-recipe-rating-options.is-previewing label.is-preview-active {
    color: var(--pp-raspberry);
}

.pp-recipe-rating-options.is-previewing label.is-preview-active .pp-recipe-rating-star::before {
    content: "★";
}

.pp-recipe-rating-options label:hover {
    background: #fff;
    border-color: rgb(217 54 95 / 38%);
    transform: translateY(-1px);
}

.pp-recipe-rating-control {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}

.pp-recipe-rating-clear {
    min-height: 44px;
    padding: 0 12px;
    color: rgb(44 31 32 / 72%);
    background: transparent;
    border: 1px solid rgb(44 31 32 / 24%);
    border-radius: 7px;
    cursor: pointer;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 650;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.pp-recipe-rating-clear:hover {
    color: var(--pp-cacao);
    background: #fff;
    border-color: var(--pp-cacao);
}

.pp-recipe-rating-feedback {
    display: block;
    min-height: 20px;
    margin-top: 6px;
    color: rgb(44 31 32 / 72%);
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: 13px;
    font-weight: 650;
}

.pp-recipe-rating-field.is-rating-selected {
    animation: pp-rating-selected 280ms ease-out;
}

@keyframes pp-rating-selected {
    50% {
        transform: scale(1.008);
        border-color: var(--pp-raspberry);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-recipe-rating-field.is-rating-selected {
        animation: none;
    }

    .pp-recipe-rating-options label {
        transition: none;
    }

    .pp-recipe-rating-clear {
        transition: none;
    }
}

.pp-recipe-comment-rating {
    margin: 0 0 8px;
    color: var(--pp-caramel);
    font-size: 16px;
    letter-spacing: 0.08em;
}

.single-post:has(.pp-recipe) .comment-list .children {
    margin-left: 32px;
    padding-left: 20px;
    border-left: 3px solid #d9365f;
}

@media (max-width: 1100px) {
    .pp-recipe__header {
        grid-template-columns: 1fr 1fr;
    }

    .pp-recipe__intro {
        grid-column: 1 / -1;
    }

    .pp-recipe__body {
        grid-template-columns: minmax(240px, 1fr) 2fr;
    }
}

@media (max-width: 980px) {
    .pp-recipe__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .pp-recipe__ingredients {
        position: static;
    }
}

@media (max-width: 767px) {
    .pp-recipe {
        margin: 32px 0;
        padding: 18px;
        border-radius: 16px;
        font-size: 17px;
    }

    .pp-recipe__header,
    .pp-recipe__body,
    .pp-recipe__callout-grid,
    .pp-recipe__nutrition dl {
        grid-template-columns: 1fr;
    }

    .pp-recipe__intro,
    .pp-recipe__cover,
    .pp-recipe__facts {
        grid-column: auto;
    }

    .pp-recipe__cover {
        min-height: 260px;
    }

    .pp-recipe__ingredients {
        position: static;
        padding: 18px;
        border: var(--pp-border);
    }

    .pp-recipe__step-section > ol > li {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 18px 20px 58px;
    }

    .pp-recipe__step-section > ol > li.pp-recipe__step--has-media {
        grid-template-columns: 1fr;
    }

    .pp-recipe__step-section > ol > li::before {
        top: 20px;
        left: 14px;
    }

    .pp-recipe__jump {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .pp-recipe__toolbar .pp-recipe-button {
        flex: 1 1 150px;
    }

    body.pp-cooking-mode .pp-recipe__toolbar {
        gap: 10px;
        padding-top: 6px;
    }

    body.pp-cooking-mode .pp-recipe__cooking-status {
        flex: 1 1 100%;
        order: 3;
        margin-left: 0;
        border-radius: 8px;
    }
}

@media (max-width: 420px) {
    .pp-recipe__section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .pp-recipe__servings {
        align-self: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pp-recipe *,
    .pp-recipe *::before,
    .pp-recipe *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    body * {
        visibility: hidden;
    }

    .pp-recipe,
    .pp-recipe * {
        visibility: visible;
    }

    .pp-recipe {
        position: absolute;
        inset: 0 auto auto 0;
        width: 100%;
        max-width: none;
        margin: 0;
        color: #000;
        font-size: 11pt;
    }

    .pp-recipe__toolbar,
    .pp-recipe__jump,
    .pp-recipe__share,
    .pp-recipe__shop,
    .pp-recipe-video {
        display: none !important;
    }

    .pp-recipe__header,
    .pp-recipe__body,
    .pp-recipe__callout-grid {
        display: block;
    }

    .pp-recipe__ingredients {
        position: static;
        border: 0;
    }

    .pp-recipe__step-section > ol > li {
        break-inside: avoid;
    }
}
