/* ==========================================================================
 * Dish-submission entry CTAs (pv/recipe-archive-cta + pv/recipe-single-cta).
 * Loaded on recipe archive and single-recipe pages.
 * Tokens only — no hardcoded colors.
 * ========================================================================== */

/* ── Archive CTA card — brand-green color block in the recipe grid ───────── */

.pv-dish-archive-cta {
    background: var(--wp--custom--accent);
    color: var(--wp--custom--on-accent);
    border-radius: var(--wp--custom--radius--lg);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    margin-top: 24px;
}

.pv-dish-archive-cta__text {
    margin: 0;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.55;
    color: inherit;
}

.pv-dish-archive-cta__text strong {
    color: inherit;
}

.pv-dish-archive-cta__btn {
    align-self: flex-start;
    background: var(--wp--custom--on-accent);
    color: var(--wp--custom--accent) !important;
    border-radius: var(--wp--custom--radius--sm);
    padding: 10px 22px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none !important;
    white-space: nowrap;
}

.pv-dish-archive-cta__btn:hover {
    opacity: 0.88;
}

/* When JS inserts the CTA into the recipe grid as a <li> */
.pv-dish-archive-cta-cell {
    grid-column: 1 / -1;
    list-style: none;
}

.pv-dish-archive-cta-cell .pv-dish-archive-cta {
    margin-top: 0;
}

/* ── Single-recipe end CTA — slim band before related recipes ────────────── */

.pv-dish-single-cta {
    border-top: 1px solid var(--wp--custom--border);
    border-bottom: 1px solid var(--wp--custom--border);
    padding: 20px 0;
    margin: 32px auto;
    max-width: var(--wp--style--global--content-size, 680px);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    font-size: 16px;
}

.pv-dish-single-cta__text {
    margin: 0;
    flex: 1 1 200px;
    color: var(--wp--custom--text-soft);
}

.pv-dish-single-cta__link {
    color: var(--wp--custom--accent-strong);
    font-weight: 600;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.pv-dish-single-cta__link:hover {
    opacity: 0.8;
}
