/* ============================================================
   WP Recipe Maker — visual overrides
   Goal: make WPRM cards look like editorial inset boxes, not
   default rounded-pink AI-slop. Targets the public-facing classes.
   ============================================================ */

.wprm-recipe-container {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    margin: 2rem 0 !important;
}
.wprm-recipe:not(.wprm-recipe-snippet) {
    background: var(--wp--preset--color--bg-2, #f7f7f5) !important;
    border: 1px solid var(--wp--preset--color--line, #e6e6e3) !important;
    border-radius: 6px !important;
    padding: clamp(16px, 3vw, 28px) !important;
    margin: 0 !important;
    box-shadow: none !important;
}
@media (max-width: 600px) {
    .wprm-recipe .wprm-padding-40 { padding: 16px !important; }
    .wprm-recipe { overflow-wrap: anywhere; }
}
.wprm-recipe-name,
.wprm-recipe h2.wprm-recipe-name {
    font-family: "Schibsted Grotesk", system-ui, sans-serif !important;
    font-weight: 900 !important;
    font-size: clamp(1.6rem, 2.4vw, 2rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -.03em !important;
    color: var(--wp--preset--color--ink, #0a0a0a) !important;
    margin: 0 0 1rem !important;
}
.wprm-recipe-summary,
.wprm-recipe-summary p {
    font-size: 15.5px !important;
    line-height: 1.5 !important;
    color: var(--wp--preset--color--ink-soft, #2a2a2a) !important;
}

/* Time / yield row */
.wprm-recipe-times-container,
.wprm-recipe-meta-container {
    border-top: 1px solid var(--wp--preset--color--line, #e6e6e3) !important;
    border-bottom: 1px solid var(--wp--preset--color--line, #e6e6e3) !important;
    padding: .85rem 0 !important;
    margin: 1rem 0 1.25rem !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) !important;
    gap: .75rem 1rem !important;
}
.wprm-recipe-time-container,
.wprm-recipe-meta-container > div {
    display: flex !important;
    flex-direction: column !important;
    gap: .15rem !important;
}
.wprm-recipe-time-label,
.wprm-recipe-meta-label {
    font-family: "Schibsted Grotesk", system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: 10.5px !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    color: var(--wp--preset--color--muted, #6e6e6e) !important;
}
.wprm-recipe-time,
.wprm-recipe-meta {
    font-family: "Schibsted Grotesk", system-ui, sans-serif !important;
    font-weight: 800 !important;
    font-size: 14px !important;
    color: var(--wp--preset--color--ink, #0a0a0a) !important;
}

/* Section headers (Ingredients / Instructions / Notes) */
.wprm-recipe-header,
.wprm-recipe-ingredients-header,
.wprm-recipe-instructions-header,
.wprm-recipe-notes-header {
    font-family: "Schibsted Grotesk", system-ui, sans-serif !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    color: var(--wp--preset--color--pink-deep, #cc1e62) !important;
    padding-bottom: .5rem !important;
    margin: 1.25rem 0 1rem !important;
    border-bottom: 1.5px solid var(--wp--preset--color--ink, #0a0a0a) !important;
}

/* Ingredients */
.wprm-recipe-ingredient { font-size: 15px !important; line-height: 1.55 !important; padding: .35rem 0 !important; }
.wprm-recipe-ingredient-amount,
.wprm-recipe-ingredient-unit { font-weight: 800 !important; color: var(--wp--preset--color--ink, #0a0a0a) !important; }

/* Instructions */
/* Keep method steps below preceding floated placements, with ads untouched. */
.wprm-recipe .wprm-recipe-instructions > .wprm-recipe-instruction { clear: both !important; }
.wprm-recipe-instruction { font-size: 15.5px !important; line-height: 1.6 !important; padding: .4rem 0 !important; }
.wprm-recipe-instructions-name { font-weight: 800 !important; }

/* Notes */
.wprm-recipe-notes {
    background: #fff !important;
    border-left: 3px solid var(--wp--preset--color--pink, #ff2d7f) !important;
    padding: 1rem 1.25rem !important;
    margin: 1.25rem 0 !important;
    font-size: 14.5px !important;
    line-height: 1.55 !important;
    color: var(--wp--preset--color--ink-soft, #2a2a2a) !important;
}

/* Buttons (Print / Pin / Save) — black pill */
.wprm-recipe-print,
.wprm-recipe-print-link,
.wprm-print-recipe-shortcode,
.wprm-recipe-shop {
    background: var(--wp--preset--color--ink, #0a0a0a) !important;
    color: #fff !important;
    font-family: "Schibsted Grotesk", system-ui, sans-serif !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    border: none !important;
    border-radius: 2px !important;
    padding: .85rem 1.4rem !important;
    transition: background-color .2s ease !important;
}
.wprm-recipe-print:hover,
.wprm-recipe-print-link:hover { background: var(--wp--preset--color--pink-deep, #cc1e62) !important; color: #fff !important; }

/* Hide user-rating prompt (we kill it via PHP, this is the belt) */
.wprm-recipe-rating-container .wprm-comment-rating { display: none !important; }

/* Accessible recipe labels: 4.5:1 minimum for normal text. */
.wprm-recipe .wprm-recipe-author { color: #555e20 !important; }
.wprm-recipe-jump-inline-button { background: #b51b52 !important; color: #fff !important; }

/* Small phones: give embedded standard-width placements room in the card.
   Adjust only the recipe layout, preserving ad nodes and their runtime. */
@media (max-width: 359px) {
    .single-post .entry-content .wprm-recipe-container,
    .single-post .entry-content > .adthrive-content {
        width: 100vw;
        max-width: none;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }
    .wprm-recipe-container > .wprm-recipe { box-sizing: border-box; width: 100%; padding: 8px !important; }
    .wprm-recipe .meadow-main.wprm-padding-40 { padding: 0 !important; }
}
