/* Zapechka recipe experience: portions, step photos and author postscript. */

.recipe-servings-control {
    margin: 0 0 18px;
    padding: 15px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 15px;
}

.recipe-servings-control > div:first-child {
    display: grid;
    gap: 3px;
}

.recipe-servings-control span {
    color: var(--muted);
    font-size: 12px;
}

.recipe-servings-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recipe-servings-buttons button {
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 11px;
    font: inherit;
    font-size: 21px;
    font-weight: 800;
    cursor: pointer;
}

.recipe-servings-buttons button:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.recipe-servings-buttons output {
    min-width: 38px;
    text-align: center;
    font-size: 18px;
    font-weight: 850;
}

.recipe-step-image {
    width: min(100%, 760px);
    max-height: 520px;
    margin-top: 16px;
    display: block;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(70, 44, 25, .07);
}

.recipe-author-note {
    margin-top: 24px;
    padding: clamp(24px, 4vw, 38px);
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 95% 0%, rgba(255, 215, 188, .75), transparent 34%),
        linear-gradient(145deg, #fff8f2, #fff);
    border: 1px solid #ead7ca;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow);
}

.recipe-author-note::before {
    content: "P.S.";
    position: absolute;
    right: 24px;
    top: 8px;
    color: rgba(232, 100, 61, .10);
    font-size: clamp(60px, 10vw, 110px);
    font-weight: 900;
    line-height: 1;
}

.recipe-author-note h2,
.recipe-author-note p {
    position: relative;
    z-index: 1;
}

.recipe-author-note h2 {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 14px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.recipe-author-note p {
    max-width: 820px;
    margin: 0;
    font-size: 17px;
    line-height: 1.7;
    white-space: pre-line;
}

.recipe-extra-editor-note {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.step-image-field {
    grid-column: 1 / -1;
    padding: 12px;
    display: grid;
    gap: 6px;
    color: var(--muted);
    background: var(--surface-soft);
    border: 1px dashed #dfc7b8;
    border-radius: 12px;
    font-size: 12px;
}

.step-image-field input {
    width: 100%;
}

.step-image-preview {
    width: min(100%, 360px);
    max-height: 230px;
    margin-top: 7px;
    object-fit: cover;
    border-radius: 12px;
}

@media (max-width: 560px) {
    .recipe-servings-control {
        align-items: flex-start;
        flex-direction: column;
    }
}
