/* ============================================================================
   POLISH — incremental refinement of the existing recipes-modern design.
   No new direction, no new colors, no new fonts. Same Playfair + Inter +
   #dc2626 + #fffefb + #1a1a1a system. Just tighter execution: spacing
   rhythm, micro-interactions, image treatments, hierarchy polish.
   ============================================================================ */

/* ==== Token refinement (warm-up only — same hue, better depth) ==== */
:root {
    --rm-accent-deeper: #b91c1c;
    --rm-shadow-soft: 0 1px 2px rgba(20,15,10,.04), 0 4px 14px rgba(20,15,10,.06);
    --rm-shadow-lift: 0 8px 24px -8px rgba(20,15,10,.18), 0 2px 6px -2px rgba(20,15,10,.06);
    --rm-shadow-press: 0 18px 50px -16px rgba(20,15,10,.22);
    --ease-soft: cubic-bezier(.4,0,.2,1);
    --ease-snap: cubic-bezier(.32,.72,0,1);
}

/* ==== Body smoothing ==== */
body.theme-recipes-modern {
    font-feature-settings: "ss01", "kern";
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   HEADER — tighter, more confident
   ============================================================================ */
.rm-site-header {
    transition: background .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
}
.rm-site-header.is-scrolled,
.rm-site-header[data-scrolled="1"] {
    background: rgba(255, 254, 251, .9);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
    box-shadow: 0 1px 0 rgba(20,15,10,.04);
}
.rm-site-logo,
.rm-footer-logo {
    image-rendering: -webkit-optimize-contrast;
}

.rm-search-btn {
    transition: all .2s var(--ease-soft);
}
.rm-search-btn:hover {
    background: var(--rm-accent);
    color: #fff;
    border-color: var(--rm-accent);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px -4px rgba(220,38,38,.4);
}

.rm-header-cta {
    transition: all .2s var(--ease-soft);
}
.rm-header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -6px rgba(220,38,38,.45);
}

.rm-nav-menu .menu-link {
    position: relative;
    transition: color .2s var(--ease-soft);
}
.rm-nav-menu .menu-link::after {
    content: "";
    position: absolute;
    left: 50%; bottom: -2px;
    width: 0; height: 2px;
    background: var(--rm-accent);
    transform: translateX(-50%);
    transition: width .25s var(--ease-snap);
}
.rm-nav-menu .menu-link:hover::after,
.rm-nav-menu .current-menu-item .menu-link::after { width: 22px; }

/* ============================================================================
   HOMEPAGE HERO — tighter rhythm, refined image treatment
   ============================================================================ */
.rm-home-hero {
    position: relative;
    align-items: center;
    gap: 4rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
}
.rm-home-hero-text h1,
.rm-home-hero h1 {
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.05;
    text-wrap: balance;
}
.rm-home-hero-text p,
.rm-home-hero p {
    color: var(--rm-muted);
    line-height: 1.6;
    max-width: 460px;
}
.rm-home-hero-text .rm-category,
.rm-home-hero .rm-category {
    margin-bottom: 1rem;
}
.rm-home-hero-image {
    position: relative;
    box-shadow: var(--rm-shadow-press);
    border-radius: var(--rm-radius-lg);
    overflow: hidden;
}
.rm-home-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(20,15,10,.04);
    pointer-events: none;
    border-radius: inherit;
}
.rm-home-hero-image img {
    transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.rm-home-hero:hover .rm-home-hero-image img,
.rm-home-hero-image:hover img {
    transform: scale(1.04);
}

/* ============================================================================
   SECTION TITLES — refined hairline rule + tighter kicker
   ============================================================================ */
.rm-section-title {
    margin-top: 5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    position: relative;
}
.rm-section-title::before {
    content: "";
    display: block;
    width: 32px;
    height: 1.5px;
    background: var(--rm-accent);
    margin: 0 auto 1rem;
}
.rm-section-title small {
    font-family: var(--rm-font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rm-muted-2);
}
.rm-section-title h2 {
    font-weight: 600;
    letter-spacing: -0.018em;
    margin-top: .375rem;
    line-height: 1.1;
    text-wrap: balance;
}

/* ============================================================================
   HOMEPAGE GRID — premium card treatment
   ============================================================================ */
.rm-home-grid {
    gap: 3rem 1.75rem;
}
.rm-home-card {
    transition: transform .35s var(--ease-soft);
    will-change: transform;
}
.rm-home-card:hover { transform: translateY(-4px); }
.rm-home-card-img {
    aspect-ratio: 4/5;
    box-shadow: var(--rm-shadow-soft);
    transition: box-shadow .35s var(--ease-soft);
    overflow: hidden;
}
.rm-home-card:hover .rm-home-card-img {
    box-shadow: var(--rm-shadow-lift);
}
.rm-home-card-img img {
    transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.rm-home-card:hover .rm-home-card-img img {
    transform: scale(1.05);
}
.rm-home-card .rm-category {
    margin-bottom: .375rem;
}
.rm-home-card h3 {
    font-weight: 600;
    letter-spacing: -0.012em;
    line-height: 1.2;
    transition: color .2s var(--ease-soft);
    margin-bottom: .375rem;
    text-wrap: balance;
}
.rm-home-card:hover h3 { color: var(--rm-accent); }
.rm-home-card p {
    color: var(--rm-muted);
    line-height: 1.5;
}

/* ============================================================================
   CATEGORY PILL — refined
   ============================================================================ */
.rm-category {
    font-family: var(--rm-font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* ============================================================================
   MISSION BAND — softer card, no boxy feel
   ============================================================================ */
.rm-mission-band {
    margin: 6rem auto;
    padding: 4rem 3rem;
    background:
        radial-gradient(ellipse at top right, rgba(220,38,38,.04), transparent 60%),
        var(--rm-card);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow-soft);
    position: relative;
}
.rm-mission-text small {
    font-family: var(--rm-font-mono);
    font-size: .6875rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rm-muted-2);
}
.rm-mission-text h2 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-wrap: balance;
}
.rm-mission-text p { color: var(--rm-muted); }

.rm-mission-stat {
    background: var(--rm-bg);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius);
    padding: 1.5rem 1.75rem;
    transition: transform .25s var(--ease-soft), box-shadow .25s var(--ease-soft), border-color .25s var(--ease-soft);
}
.rm-mission-stat:hover {
    transform: translateX(4px);
    box-shadow: var(--rm-shadow-lift);
    border-color: var(--rm-accent);
}
.rm-mission-num {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--rm-accent);
}

/* ============================================================================
   NEWSLETTER BAND — MAGAZINE COVER
   Photo backdrop · dark scrim · big editorial title · clean form. Restraint.
   ============================================================================ */
.rm-newsletter-band--cover {
    position: relative;
    max-width: 1100px;
    margin: 6rem auto;
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
    color: #fffefb;
    text-align: center;
    box-shadow: 0 40px 100px -32px rgba(20,15,10,.45), 0 6px 20px -10px rgba(20,15,10,.25);
    /* fallback if no photo */
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2017 100%);
}
.rm-nl-cover-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.rm-nl-cover-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
    filter: saturate(1.05) contrast(.98);
    transform: scale(1.03);
    transition: transform 1.2s cubic-bezier(.2,.7,.3,1);
}
.rm-newsletter-band--cover:hover .rm-nl-cover-bg img {
    transform: scale(1.06);
}
.rm-nl-cover-scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(20,15,10,.30) 0%,
            rgba(20,15,10,.45) 30%,
            rgba(20,15,10,.78) 75%,
            rgba(20,15,10,.92) 100%),
        radial-gradient(ellipse at 50% 70%, rgba(220,38,38,.18), transparent 60%);
}

.rm-nl-cover-inner {
    position: relative;
    z-index: 1;
    padding: 7rem 2rem 3.25rem;
    max-width: 580px;
    margin: 0 auto;
}

.rm-nl-cover-mark {
    display: inline-block;
    font-family: var(--rm-font-mono);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: rgba(255,254,251,.85);
    padding-bottom: .75rem;
    margin-bottom: 1.5rem;
    position: relative;
}
.rm-nl-cover-mark::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 0;
    width: 32px; height: 1.5px;
    background: var(--rm-accent);
    transform: translateX(-50%);
}

.rm-nl-cover-title {
    font-family: var(--rm-font-serif);
    font-weight: 500;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -.025em;
    color: #fffefb;
    margin: 0 0 1rem;
    text-wrap: balance;
}

.rm-nl-cover-sub {
    font-family: var(--rm-font-sans);
    font-size: 1.0625rem;
    line-height: 1.55;
    color: rgba(255,254,251,.78);
    margin: 0 auto 2rem;
    max-width: 440px;
    text-wrap: balance;
}

/* Form on cover */
.rm-newsletter-form--cover {
    display: flex;
    gap: 6px;
    background: rgba(255,254,251,.96);
    border: 1px solid rgba(255,254,251,.35);
    border-radius: 999px;
    padding: 6px;
    max-width: 460px;
    margin: 0 auto 1.25rem;
    transition: box-shadow .25s var(--ease-soft), border-color .25s var(--ease-soft);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.rm-newsletter-form--cover:focus-within {
    border-color: rgba(255,254,251,.7);
    box-shadow: 0 0 0 6px rgba(255,254,251,.12), 0 12px 30px -10px rgba(0,0,0,.5);
}
.rm-newsletter-form--cover input[type="email"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: .75rem 1.125rem;
    font-size: .9375rem;
    font-family: var(--rm-font-sans);
    color: var(--rm-fg);
    outline: none;
}
.rm-newsletter-form--cover input::placeholder {
    color: var(--rm-muted-2);
}
.rm-newsletter-form--cover button {
    background: var(--rm-fg);
    color: #fffefb;
    border: none;
    border-radius: 999px;
    padding: .75rem 1.5rem;
    font-family: var(--rm-font-sans);
    font-weight: 600;
    font-size: .875rem;
    letter-spacing: .01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    transition: all .2s var(--ease-soft);
    white-space: nowrap;
}
.rm-newsletter-form--cover button:hover:not(:disabled) {
    background: var(--rm-accent);
    transform: translateY(-1px);
}
.rm-newsletter-form--cover button:hover svg {
    transform: translateX(2px);
}
.rm-newsletter-form--cover button svg {
    transition: transform .2s var(--ease-soft);
}
.rm-newsletter-form--cover button:disabled {
    opacity: .65;
    cursor: wait;
}

.rm-nl-cover-disclaimer {
    font-family: var(--rm-font-mono);
    font-size: .6875rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255,254,251,.55);
    margin: 0;
    font-weight: 500;
}

/* Inline message override */
.rm-newsletter-band--cover .rm-form-msg {
    margin: 0 auto 1rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    font-size: .8125rem;
    font-weight: 500;
    display: inline-block;
    backdrop-filter: blur(8px);
}
.rm-newsletter-band--cover .rm-form-msg[data-type="success"] {
    background: rgba(16,185,129,.25);
    color: #d1fae5;
    border: 1px solid rgba(16,185,129,.4);
}
.rm-newsletter-band--cover .rm-form-msg[data-type="error"] {
    background: rgba(220,38,38,.25);
    color: #fee2e2;
    border: 1px solid rgba(220,38,38,.4);
}

/* Responsive */
@media (max-width: 720px) {
    .rm-newsletter-band--cover { margin: 4rem 1rem; border-radius: 20px; }
    .rm-nl-cover-inner { padding: 5rem 1.25rem 2.5rem; }
    .rm-nl-cover-title { font-size: 2rem; }
}
@media (max-width: 480px) {
    .rm-newsletter-form--cover {
        flex-direction: column;
        border-radius: 14px;
        padding: 8px;
    }
    .rm-newsletter-form--cover button {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================================
   NEWSLETTER BAND — PREMIUM (legacy) — disabled in favor of --cover
   ============================================================================ */
.rm-newsletter-band--premium-disabled {
    max-width: 1100px;
    margin: 6rem auto;
    padding: 0;
    background: linear-gradient(135deg, #fffefb 0%, #fef6f3 50%, #fffefb 100%);
    border: 1px solid var(--rm-border);
    border-radius: 28px;
    box-shadow:
        0 1px 2px rgba(20,15,10,.04),
        0 24px 64px -28px rgba(220,38,38,.18),
        0 8px 24px -12px rgba(20,15,10,.10);
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: stretch;
    overflow: hidden;
    text-align: left;
    position: relative;
}
.rm-newsletter-band--premium::before {
    content: "";
    position: absolute;
    top: 24px; left: 50%;
    width: 1px; height: calc(100% - 48px);
    background: var(--rm-border);
    transform: translateX(-50%);
    pointer-events: none;
}

/* Visual side */
.rm-nl-visual {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    background: var(--rm-bg);
}
.rm-nl-photo,
.rm-nl-photo img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.rm-nl-photo::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(140deg, rgba(220,38,38,.0), rgba(220,38,38,.06) 60%, rgba(220,38,38,.14)),
        radial-gradient(circle at 20% 90%, rgba(20,15,10,.18), transparent 60%);
    pointer-events: none;
}
.rm-nl-stamp {
    position: absolute;
    bottom: 24px;
    left: 24px;
    z-index: 2;
    background: var(--rm-card);
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 12px 32px -8px rgba(20,15,10,.25);
    display: flex; flex-direction: column;
    border: 1px solid rgba(255,255,255,.6);
}
.rm-nl-stamp-num {
    font-family: var(--rm-font-serif);
    font-weight: 600;
    font-size: 1.875rem;
    line-height: 1;
    color: var(--rm-accent);
    letter-spacing: -.02em;
}
.rm-nl-stamp-lbl {
    font-family: var(--rm-font-mono);
    font-size: .625rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rm-muted);
    margin-top: 2px;
    line-height: 1.3;
}

/* Content side */
.rm-nl-content {
    padding: 3rem 3rem 2.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.rm-nl-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--rm-font-mono);
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--rm-accent);
    margin-bottom: 1.25rem;
    padding: .375rem .75rem;
    background: var(--rm-accent-soft);
    border-radius: 999px;
    align-self: flex-start;
}
.rm-nl-title {
    font-family: var(--rm-font-serif);
    font-weight: 600;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    line-height: 1.08;
    letter-spacing: -.022em;
    margin: 0 0 .875rem;
    color: var(--rm-fg);
    text-wrap: balance;
}
.rm-nl-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--rm-accent);
}
.rm-nl-desc {
    font-family: var(--rm-font-sans);
    color: var(--rm-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1.25rem;
    max-width: 460px;
}
.rm-nl-features {
    list-style: none;
    margin: 0 0 1.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}
.rm-nl-features li {
    position: relative;
    padding-left: 1.875rem;
    font-size: .9375rem;
    color: var(--rm-fg);
    line-height: 1.4;
    font-weight: 500;
}
.rm-nl-features li::before {
    content: "";
    position: absolute;
    left: 0; top: 2px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--rm-accent-soft);
}
.rm-nl-features li::after {
    content: "";
    position: absolute;
    left: 6px; top: 8px;
    width: 8px; height: 4px;
    border-left: 2px solid var(--rm-accent);
    border-bottom: 2px solid var(--rm-accent);
    transform: rotate(-45deg);
}

/* Premium form — pill with floating label */
.rm-newsletter-form--premium {
    display: flex;
    gap: 8px;
    background: var(--rm-card);
    border: 1.5px solid var(--rm-border);
    border-radius: 999px;
    padding: 6px;
    max-width: 460px;
    transition: border-color .25s var(--ease-soft), box-shadow .25s var(--ease-soft);
    margin-bottom: 1.25rem;
}
.rm-newsletter-form--premium:focus-within {
    border-color: var(--rm-accent);
    box-shadow: 0 0 0 4px rgba(220,38,38,.12), 0 8px 24px -12px rgba(220,38,38,.3);
}
.rm-nl-input-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}
.rm-nl-input-label {
    position: absolute;
    left: 18px; top: 50%;
    transform: translateY(-50%);
    font-size: .9375rem;
    color: var(--rm-muted-2);
    pointer-events: none;
    transition: all .2s var(--ease-soft);
    background: var(--rm-card);
    padding: 0 4px;
    z-index: 2;
}
.rm-nl-input-wrap input[type="email"] {
    width: 100%;
    border: none;
    background: transparent;
    padding: .75rem 1rem .75rem 1.125rem;
    font-size: .9375rem;
    font-family: var(--rm-font-sans);
    color: var(--rm-fg);
    outline: none;
    position: relative;
}
.rm-nl-input-wrap input::placeholder {
    color: transparent;
    transition: color .2s;
}
.rm-nl-input-wrap input:focus::placeholder,
.rm-nl-input-wrap input:not(:placeholder-shown)::placeholder {
    color: var(--rm-muted-2);
}
.rm-nl-input-wrap input:focus + .rm-nl-input-label,
.rm-nl-input-wrap input:not(:placeholder-shown) + .rm-nl-input-label {
    transform: translateY(-50%) scale(.78);
    top: 0;
    left: 14px;
    color: var(--rm-accent);
    font-weight: 600;
}
/* Tweak: label lives BEFORE input in DOM in our markup, so swap selectors */
.rm-newsletter-form--premium .rm-nl-input-wrap:focus-within .rm-nl-input-label,
.rm-newsletter-form--premium .rm-nl-input-wrap input:not(:placeholder-shown) ~ .rm-nl-input-label {
    transform: scale(.78);
    top: -4px;
    left: 14px;
    color: var(--rm-accent);
    font-weight: 600;
}
.rm-newsletter-form--premium button {
    background: var(--rm-fg);
    color: var(--rm-bg);
    border: none;
    border-radius: 999px;
    padding: .75rem 1.5rem;
    font-family: var(--rm-font-sans);
    font-weight: 600;
    font-size: .875rem;
    letter-spacing: .01em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    transition: all .2s var(--ease-soft);
    white-space: nowrap;
}
.rm-newsletter-form--premium button:hover:not(:disabled) {
    background: var(--rm-accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -6px rgba(220,38,38,.45);
}
.rm-newsletter-form--premium button:hover svg {
    transform: translateX(2px);
}
.rm-newsletter-form--premium button svg {
    transition: transform .2s var(--ease-soft);
}
.rm-newsletter-form--premium button:disabled {
    opacity: .65;
    cursor: wait;
}

/* Trust line */
.rm-nl-trust {
    display: flex;
    align-items: center;
    gap: .875rem;
}
.rm-nl-avatars {
    display: flex;
    align-items: center;
}
.rm-nl-avatars span {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 2px solid var(--rm-card);
    display: inline-block;
    margin-left: -8px;
    background: var(--rm-bg-alt, var(--rm-bg));
    box-shadow: 0 1px 3px rgba(20,15,10,.15);
}
.rm-nl-avatars span:nth-child(1) { background: linear-gradient(135deg, #fbbf24, #f59e0b); margin-left: 0; }
.rm-nl-avatars span:nth-child(2) { background: linear-gradient(135deg, #10b981, #059669); }
.rm-nl-avatars span:nth-child(3) { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.rm-nl-avatars span:nth-child(4) { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.rm-nl-social-proof {
    margin: 0;
    font-family: var(--rm-font-sans);
    font-size: .8125rem;
    color: var(--rm-muted);
}
.rm-nl-social-proof strong { color: var(--rm-fg); font-weight: 700; }
.rm-nl-stars {
    color: #f59e0b;
    margin-left: 4px;
    font-size: .75rem;
    letter-spacing: 1px;
}

/* Inline message override for premium form */
.rm-newsletter-band--premium .rm-form-msg {
    margin-top: -.75rem;
    margin-bottom: 1rem;
    padding: .625rem .875rem;
    border-radius: 8px;
    font-size: .8125rem;
    font-weight: 500;
    text-align: center;
}
.rm-newsletter-band--premium .rm-form-msg[data-type="success"] {
    background: rgba(16,185,129,.12);
    color: #047857;
}
.rm-newsletter-band--premium .rm-form-msg[data-type="error"] {
    background: var(--rm-accent-soft);
    color: var(--rm-accent-deeper);
}

/* Responsive */
@media (max-width: 900px) {
    .rm-newsletter-band--premium {
        grid-template-columns: 1fr;
    }
    .rm-newsletter-band--premium::before { display: none; }
    .rm-nl-visual { min-height: 280px; }
    .rm-nl-content { padding: 2.25rem 1.75rem; }
    .rm-nl-stamp { bottom: 16px; left: 16px; padding: 10px 14px; }
}
@media (max-width: 600px) {
    .rm-newsletter-form--premium {
        flex-direction: column;
        border-radius: 14px;
        padding: 8px;
    }
    .rm-newsletter-form--premium button {
        width: 100%;
        justify-content: center;
    }
}

/* Old non-premium newsletter (keep style intact for compat) */
.rm-newsletter-band:not(.rm-newsletter-band--premium) {
    max-width: 720px;
    margin: 5rem auto;
    padding: 3rem 2.5rem 3.5rem;
    background:
        radial-gradient(ellipse at center top, rgba(220,38,38,.06), transparent 60%),
        var(--rm-card);
    border: 1px solid var(--rm-border);
    border-radius: 24px;
    box-shadow: var(--rm-shadow-press);
    text-align: center;
    position: relative;
}
.rm-newsletter-band::before {
    content: "✉";
    position: absolute;
    top: -22px; left: 50%;
    transform: translateX(-50%);
    width: 44px; height: 44px;
    background: var(--rm-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    box-shadow: 0 8px 18px -6px rgba(220,38,38,.5);
}
.rm-newsletter-band h2 {
    font-weight: 600;
    letter-spacing: -0.018em;
    margin-bottom: .5rem;
}
.rm-newsletter-band p {
    color: var(--rm-muted);
    max-width: 440px;
    margin: 0 auto 1.5rem;
}
.rm-newsletter-form {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px;
    max-width: 460px;
    margin: 0 auto;
    background: var(--rm-bg);
    border: 1px solid var(--rm-border);
    border-radius: 999px;
    padding: 6px;
    transition: border-color .2s var(--ease-soft), box-shadow .2s var(--ease-soft);
}
.rm-newsletter-form:focus-within {
    border-color: var(--rm-accent);
    box-shadow: 0 0 0 4px rgba(220,38,38,.1);
}
.rm-newsletter-form input[type="email"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: .625rem 1rem;
    font-size: .9375rem;
    color: var(--rm-fg);
    outline: none;
}
.rm-newsletter-form input[type="email"]::placeholder { color: var(--rm-muted-2); }
.rm-newsletter-form button {
    padding: .625rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .875rem;
    border: none;
    background: var(--rm-fg);
    color: var(--rm-bg);
    cursor: pointer;
    transition: background .2s var(--ease-soft);
}
.rm-newsletter-form button:hover {
    background: var(--rm-accent);
    color: #fff;
}

/* ============================================================================
   CATEGORY GRID — refined hover + consistent 4:5
   ============================================================================ */
.rm-cats {
    margin-bottom: 5rem;
}
.rm-cat {
    aspect-ratio: 4/5;
    box-shadow: var(--rm-shadow-soft);
    transition: transform .3s var(--ease-soft), box-shadow .3s var(--ease-soft);
}
.rm-cat:hover {
    transform: translateY(-3px);
    box-shadow: var(--rm-shadow-lift);
}
.rm-cat img {
    transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.rm-cat:hover img { transform: scale(1.06); }
.rm-cat-text {
    background: linear-gradient(180deg, transparent 45%, rgba(20,15,10,.85));
}

/* ============================================================================
   SINGLE RECIPE PAGE — better hierarchy & rhythm
   ============================================================================ */
.rm-single { max-width: 720px; margin-left: auto; margin-right: auto; }

.rm-hero-image {
    aspect-ratio: 16/10;
    box-shadow: var(--rm-shadow-press);
    border-radius: var(--rm-radius-lg);
    overflow: hidden;
    margin-bottom: 2rem;
}

.rm-single .rm-category {
    border-left: 2px solid var(--rm-accent);
    padding-left: .625rem;
    margin-bottom: 1rem;
}

.rm-single .rm-title {
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.05;
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    text-wrap: balance;
    margin-bottom: 1.25rem;
}

.rm-meta {
    border-top: 1px solid var(--rm-border);
    border-bottom: 1px solid var(--rm-border);
    padding: .875rem 0;
    font-family: var(--rm-font-sans);
    font-size: .8125rem;
}
.rm-meta-item { gap: .375rem; }
.rm-meta-item svg { width: 14px; height: 14px; opacity: .55; }

.rm-actions { gap: .5rem; margin-bottom: 2.5rem; }
.rm-actions .rm-btn {
    border-radius: 999px;
    padding: .625rem 1.125rem;
    font-size: .8125rem;
    font-weight: 600;
    box-shadow: var(--rm-shadow-soft);
    transition: all .2s var(--ease-soft);
}
.rm-actions .rm-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--rm-shadow-lift);
    border-color: var(--rm-fg);
}

/* Article body refinements */
.rm-article-body { font-size: 1.125rem; line-height: 1.75; }
.rm-article-body p { margin-bottom: 1.25em; }

/* Drop cap — refined, not too loud */
.rm-article-body > p:first-of-type::first-letter,
.rm-article-body > p:first-of-type:first-letter {
    font-family: var(--rm-font-serif);
    font-weight: 600;
    font-size: 4.5em;
    line-height: .95;
    float: left;
    margin: .04em .12em -.1em 0;
    color: var(--rm-accent);
    letter-spacing: -0.04em;
}

.rm-article-body h2 {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--rm-border);
    font-weight: 600;
    letter-spacing: -0.018em;
    line-height: 1.15;
}

.rm-article-body h3 {
    margin-top: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.012em;
}

.rm-article-body a {
    color: var(--rm-accent);
    text-decoration: underline;
    text-decoration-color: rgba(220,38,38,.3);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: text-decoration-color .2s;
}
.rm-article-body a:hover { text-decoration-color: var(--rm-accent); }

.rm-article-body img,
.rm-article-body figure img {
    border-radius: var(--rm-radius);
    box-shadow: var(--rm-shadow-soft);
    margin: 2rem 0;
}

/* ============================================================================
   PINTEREST CTA — softer card, refined hover
   ============================================================================ */
.rm-pinterest-cta {
    margin: 3rem 0;
    padding: 1.75rem 2rem;
    background:
        radial-gradient(ellipse at left, rgba(220,38,38,.05), transparent 70%),
        var(--rm-card);
    border: 1px solid var(--rm-accent-soft);
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow-soft);
}
.rm-pinterest-cta-text h3 {
    font-weight: 600;
    letter-spacing: -0.012em;
}
.rm-pinterest-cta-btn {
    box-shadow: 0 6px 18px -6px rgba(230,0,35,.45);
    transition: all .2s var(--ease-soft);
}
.rm-pinterest-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -6px rgba(230,0,35,.55);
}

/* ============================================================================
   AUTHOR — refined photo treatment
   ============================================================================ */
.rm-author {
    margin: 3rem 0 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--rm-border);
    border-bottom: 1px solid var(--rm-border);
    grid-template-columns: 88px 1fr;
    gap: 1.75rem;
    align-items: center;
}
.rm-author-avatar img,
.rm-author-avatar .avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--rm-bg), 0 0 0 3.5px var(--rm-accent), var(--rm-shadow-soft);
}
.rm-author-text h4 {
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: .25rem;
}
.rm-author-text p { color: var(--rm-muted); }
.rm-author-social {
    margin-top: .5rem;
    display: flex;
    gap: .875rem;
    font-family: var(--rm-font-sans);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 500;
}
.rm-author-social a {
    color: var(--rm-muted);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 1px;
    transition: color .2s;
}
.rm-author-social a:hover { color: var(--rm-accent); }

.rm-editorial-signal {
    background: var(--rm-bg);
    border-left: 3px solid var(--rm-accent);
    border-radius: 0 6px 6px 0;
    padding: .75rem 1rem;
    margin: 2rem 0;
    font-size: .8125rem;
    color: var(--rm-muted);
}
.rm-editorial-signal svg { color: var(--rm-accent); }

/* ============================================================================
   RELATED — better breathing room
   ============================================================================ */
.rm-related {
    margin: 5rem 0 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--rm-border);
}
.rm-related h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    letter-spacing: -0.018em;
    position: relative;
}
.rm-related h2::after {
    content: "";
    display: block;
    width: 32px;
    height: 1.5px;
    background: var(--rm-accent);
    margin: .75rem auto 0;
}
.rm-related-grid { gap: 2rem 1.5rem; }
.rm-related-card {
    transition: transform .25s var(--ease-soft);
}
.rm-related-card:hover { transform: translateY(-3px); }
.rm-related-card-img {
    aspect-ratio: 1/1;
    box-shadow: var(--rm-shadow-soft);
    transition: box-shadow .25s var(--ease-soft);
}
.rm-related-card:hover .rm-related-card-img { box-shadow: var(--rm-shadow-lift); }
.rm-related-card-img img {
    transition: transform .8s cubic-bezier(.2,.7,.3,1);
}
.rm-related-card-cat {
    font-family: var(--rm-font-mono);
    font-size: .6875rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rm-muted-2);
}
.rm-related-card h3 {
    font-weight: 600;
    letter-spacing: -0.012em;
    line-height: 1.2;
    transition: color .2s;
}
.rm-related-card:hover h3 { color: var(--rm-accent); }

/* ============================================================================
   STICKY JUMP-TO-RECIPE — better easing
   ============================================================================ */
.rm-sticky-jump {
    transition: all .25s var(--ease-soft);
    box-shadow: 0 12px 30px -8px rgba(20,15,10,.4);
    font-weight: 600;
}
.rm-sticky-jump:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px -8px rgba(220,38,38,.5);
}

/* ============================================================================
   FOOTER — refined dark with paprika top line
   ============================================================================ */
.rm-site-footer {
    margin-top: 6rem;
    padding-top: 4rem;
    position: relative;
}
.rm-site-footer::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 80px; height: 3px;
    background: var(--rm-accent);
    transform: translateX(-50%);
}
.rm-footer-tagline {
    font-family: var(--rm-font-mono);
    font-size: .6875rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--rm-muted-2);
    margin-bottom: 1rem;
}
.rm-footer-social-link {
    transition: all .2s var(--ease-soft);
}
.rm-footer-social-link:hover {
    background: var(--rm-accent) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ============================================================================
   PAGINATION — refined
   ============================================================================ */
.rm-pagination .page-numbers {
    border-radius: 999px;
    transition: all .2s var(--ease-soft);
    font-weight: 500;
}
.rm-pagination .page-numbers:hover {
    background: var(--rm-bg);
    border-color: var(--rm-border);
}
.rm-pagination .page-numbers.current {
    background: var(--rm-fg);
    color: var(--rm-bg);
}

/* ============================================================================
   RESPONSIVE polish
   ============================================================================ */
@media (max-width: 720px) {
    .rm-section-title { margin-top: 3.5rem; }
    .rm-mission-band { padding: 2.5rem 1.75rem; margin: 4rem auto; }
    .rm-newsletter-band { padding: 2.5rem 1.5rem; }
    .rm-newsletter-form { flex-direction: row; }
    .rm-author { grid-template-columns: 64px 1fr; gap: 1.25rem; }
    .rm-author-avatar img,
    .rm-author-avatar .avatar { width: 64px; height: 64px; }
    .rm-pinterest-cta { padding: 1.5rem; }
    .rm-article-body > p:first-of-type::first-letter,
    .rm-article-body > p:first-of-type:first-letter { font-size: 3.5em; }
    .rm-sticky-jump { bottom: 16px; right: 16px; padding: .625rem 1rem; }
}

/* ============================================================================
   RECIPE CARD POLISH — overrides recipes-pro plugin defaults to a premium look.
   Editorial card. No more harsh 2px red border. Refined hierarchy.
   ============================================================================ */
.rp-recipe-card {
    --rp-accent:       var(--rm-accent, #dc2626);
    --rp-accent-deep:  var(--rm-accent-dark, #991b1b);
    --rp-fg:           var(--rm-fg, #1a1a1a);
    --rp-muted:        var(--rm-muted, #6b6b6b);
    --rp-cream:        #fffefb;
    --rp-line:         #ebe5dc;
    --rp-line-soft:    #f4ede0;

    background: var(--rp-cream) !important;
    border: 1px solid var(--rp-line) !important;
    border-radius: 20px !important;
    box-shadow:
        0 1px 2px rgba(20,15,10,.04),
        0 24px 60px -28px rgba(20,15,10,.18),
        0 8px 22px -10px rgba(20,15,10,.08) !important;
    margin: 3.5rem 0 !important;
    overflow: hidden !important;
    position: relative !important;
    color: var(--rp-fg) !important;
}
.rp-recipe-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--rp-accent) 0%, var(--rp-accent-deep) 100%);
    z-index: 1;
}

/* HEADER */
.rp-card-header {
    grid-template-columns: minmax(0, 360px) 1fr !important;
    background: var(--rp-cream) !important;
    border-bottom: 1px solid var(--rp-line) !important;
}
.rp-card-image { aspect-ratio: 1/1 !important; overflow: hidden; position: relative; }
.rp-card-image::after {
    content: "";
    position: absolute; inset: 0;
    box-shadow: inset 0 0 0 1px rgba(20,15,10,.04);
    pointer-events: none;
}
.rp-card-image img { transition: transform 1s cubic-bezier(.2,.7,.3,1); }
.rp-card-image:hover img { transform: scale(1.04); }

.rp-card-header-text {
    padding: 2.25rem 2rem 1.75rem !important;
    justify-content: center !important;
}
.rp-card-eyebrow {
    font-family: 'JetBrains Mono', 'Geist Mono', monospace !important;
    font-size: .6875rem !important;
    font-weight: 600 !important;
    letter-spacing: .22em !important;
    color: var(--rp-accent) !important;
    margin-bottom: 1rem !important;
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    text-transform: uppercase !important;
}
.rp-card-eyebrow::after {
    content: "";
    display: inline-block;
    width: 24px; height: 1.5px;
    background: var(--rp-accent);
}
.rp-card-title {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 600 !important;
    font-size: clamp(1.625rem, 3.2vw, 2.25rem) !important;
    line-height: 1.1 !important;
    letter-spacing: -.022em !important;
    margin: 0 0 .75rem !important;
    color: var(--rp-fg) !important;
    text-wrap: balance;
}
.rp-card-description {
    font-family: 'Inter', sans-serif !important;
    font-size: .9375rem !important;
    line-height: 1.55 !important;
    color: var(--rp-muted) !important;
    margin: 0 0 1rem !important;
}
.rp-card-rating { gap: .375rem !important; margin-bottom: 1.125rem !important; }
.rp-card-rating svg { width: 14px !important; height: 14px !important; }
.rp-card-rating span { color: var(--rp-muted) !important; font-weight: 500 !important; font-size: .8125rem !important; }
.rp-card-actions { gap: .5rem !important; }
.rp-card-btn {
    background: var(--rp-cream) !important;
    border: 1px solid var(--rp-line) !important;
    padding: .5rem 1rem !important;
    border-radius: 999px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .75rem !important;
    font-weight: 600 !important;
    color: var(--rp-fg) !important;
    box-shadow: 0 1px 2px rgba(20,15,10,.04);
}
.rp-card-btn:hover {
    background: var(--rp-fg) !important;
    border-color: var(--rp-fg) !important;
    color: var(--rp-cream) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -6px rgba(20,15,10,.3);
}

/* META row */
.rp-card-meta {
    background: var(--rp-cream) !important;
    border-bottom: 1px solid var(--rp-line) !important;
    grid-template-columns: repeat(4, 1fr) !important;
}
.rp-meta-item {
    border-right: 1px solid var(--rp-line) !important;
    padding: 1.5rem .75rem 1.25rem !important;
}
.rp-meta-item:last-child { border-right: 0 !important; }
.rp-meta-item svg {
    color: var(--rp-accent) !important;
    margin-bottom: .5rem !important;
    width: 18px !important; height: 18px !important;
    opacity: .85;
}
.rp-meta-label {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: .625rem !important;
    letter-spacing: .16em !important;
    color: var(--rp-muted) !important;
    font-weight: 500 !important;
    margin-bottom: .25rem !important;
    text-transform: uppercase !important;
}
.rp-meta-value {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    color: var(--rp-fg) !important;
    letter-spacing: -.01em !important;
}

/* BODY */
.rp-card-body {
    grid-template-columns: 1fr 1.4fr !important;
    background: var(--rp-cream) !important;
}
.rp-section { padding: 2rem 2rem 1.75rem !important; }
.rp-section + .rp-section { border-left: 1px solid var(--rp-line) !important; }
.rp-section-title {
    font-family: 'Playfair Display', serif !important;
    font-weight: 600 !important;
    font-size: 1.25rem !important;
    letter-spacing: -.012em !important;
    color: var(--rp-fg) !important;
    margin: 0 0 1.25rem !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.rp-section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rp-line);
    margin-left: .75rem;
}
.rp-section-title svg { color: var(--rp-accent) !important; opacity: .9; width: 20px !important; height: 20px !important; }

/* INGREDIENTS */
.rp-ingredients-list li {
    padding: .75rem 0 !important;
    border-bottom: 1px solid var(--rp-line-soft) !important;
}
.rp-ingredients-list li:last-child { border-bottom: 0 !important; }
.rp-ingredients-list label {
    gap: .75rem !important;
    font-family: 'Inter', sans-serif !important;
    font-size: .9375rem !important;
    line-height: 1.5 !important;
    color: var(--rp-fg) !important;
}
.rp-ingredients-list input[type="checkbox"] {
    width: 20px !important; height: 20px !important;
    border: 1.5px solid var(--rp-line) !important;
    border-radius: 50% !important;
    margin-top: 1px !important;
    background: var(--rp-cream) !important;
    box-shadow: 0 1px 2px rgba(20,15,10,.03);
}
.rp-ingredients-list input[type="checkbox"]:hover { border-color: var(--rp-accent) !important; }
.rp-ingredients-list input[type="checkbox"]:checked {
    background: var(--rp-accent) !important;
    border-color: var(--rp-accent) !important;
    box-shadow: 0 4px 10px -3px rgba(220,38,38,.45);
}
.rp-ingredients-list input[type="checkbox"]:checked::after {
    top: 2px !important;
    left: 6px !important;
    width: 5px !important;
    height: 10px !important;
}
.rp-ingredients-list input[type="checkbox"]:checked + .rp-ingredient-text {
    text-decoration-thickness: 1px !important;
    text-decoration-color: var(--rp-muted) !important;
    opacity: .55 !important;
    transition: opacity .25s ease;
}
.rp-ingredient-text strong { font-weight: 700 !important; color: var(--rp-fg) !important; font-variant-numeric: tabular-nums; }
.rp-ingredient-text em { font-style: italic !important; color: var(--rp-muted) !important; font-size: .8125rem !important; font-weight: 400 !important; }

/* INSTRUCTIONS */
.rp-instructions-list li {
    grid-template-columns: 44px 1fr !important;
    gap: 1rem !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 1.25rem !important;
    border-bottom: 1px solid var(--rp-line-soft) !important;
}
.rp-instructions-list li:last-child { border-bottom: 0 !important; padding-bottom: 0 !important; }
.rp-step-number {
    width: 40px !important;
    height: 40px !important;
    background: transparent !important;
    color: var(--rp-accent) !important;
    border: 1.5px solid var(--rp-accent) !important;
    font-family: 'Playfair Display', serif !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    letter-spacing: -.02em !important;
    box-shadow: 0 4px 10px -4px rgba(220,38,38,.25);
    transition: all .2s ease;
}
.rp-instructions-list li:hover .rp-step-number {
    background: var(--rp-accent) !important;
    color: var(--rp-cream) !important;
    transform: scale(1.05);
}
.rp-step-text p {
    font-family: 'Inter', sans-serif !important;
    font-size: .9375rem !important;
    line-height: 1.6 !important;
    color: var(--rp-fg) !important;
    margin: 0 0 .5rem !important;
}
.rp-step-text img {
    border-radius: 10px !important;
    box-shadow: 0 6px 18px -6px rgba(20,15,10,.15);
}

/* NOTES — pull-quote style */
.rp-notes {
    background: var(--rp-cream) !important;
    border-top: 1px solid var(--rp-line) !important;
    position: relative;
    padding: 2rem 2.5rem !important;
}
.rp-notes::before {
    content: "\201C";
    position: absolute;
    top: -8px; left: 24px;
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    line-height: 1;
    color: var(--rp-accent);
    opacity: .3;
    pointer-events: none;
}
.rp-notes ul { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; gap: .875rem; }
.rp-notes li {
    padding: 0 0 0 1.5rem !important;
    margin: 0 !important;
    line-height: 1.6 !important;
    font-family: 'Playfair Display', serif !important;
    font-style: italic !important;
    font-size: 1.0625rem !important;
    color: var(--rp-fg) !important;
    position: relative;
}
.rp-notes li::before {
    content: "\2726";
    position: absolute;
    left: 0; top: 1px;
    color: var(--rp-accent);
    font-size: .9375rem;
    font-style: normal;
}

/* NUTRITION — minimal table */
.rp-nutrition {
    background: var(--rp-cream) !important;
    border-top: 1px solid var(--rp-line) !important;
    padding: 1.75rem 2rem !important;
}
.rp-nutrition-grid {
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 0 !important;
    border-top: 1px solid var(--rp-line);
    padding-top: 1rem;
}
.rp-nutrition-item {
    background: transparent !important;
    border: 0 !important;
    padding: .5rem 0 !important;
    border-right: 1px solid var(--rp-line-soft) !important;
    border-radius: 0 !important;
}
.rp-nutrition-item:last-child { border-right: 0 !important; }
.rp-nutrition-value {
    font-family: 'Playfair Display', serif !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    color: var(--rp-fg) !important;
    letter-spacing: -.015em !important;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.rp-nutrition-label {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: .625rem !important;
    letter-spacing: .14em !important;
    color: var(--rp-muted) !important;
    font-weight: 500 !important;
    margin-top: .5rem !important;
    text-transform: uppercase !important;
}

/* FOOTER */
.rp-card-footer {
    background: var(--rp-cream) !important;
    border-top: 1px solid var(--rp-line) !important;
    padding: 1.25rem 2rem !important;
}
.rp-card-footer small {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: .6875rem !important;
    letter-spacing: .08em !important;
    color: var(--rp-muted) !important;
    text-transform: uppercase !important;
}
.rp-card-footer strong { color: var(--rp-fg) !important; font-weight: 600 !important; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .rp-card-header { grid-template-columns: 1fr !important; }
    .rp-card-image { aspect-ratio: 16/10 !important; }
    .rp-card-header-text { padding: 1.5rem 1.5rem 1.25rem !important; }
    .rp-card-meta { grid-template-columns: repeat(2, 1fr) !important; }
    .rp-meta-item { padding: 1rem .5rem !important; }
    .rp-meta-item:nth-child(2) { border-right: 0 !important; }
    .rp-meta-item:nth-child(1), .rp-meta-item:nth-child(2) { border-bottom: 1px solid var(--rp-line); }
    .rp-card-body { grid-template-columns: 1fr !important; }
    .rp-section + .rp-section { border-left: 0 !important; border-top: 1px solid var(--rp-line) !important; }
    .rp-section { padding: 1.5rem 1.5rem 1.25rem !important; }
    .rp-nutrition-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .rp-nutrition-item:nth-child(3) { border-right: 0 !important; }
    .rp-nutrition-item:nth-child(1), .rp-nutrition-item:nth-child(2), .rp-nutrition-item:nth-child(3) { border-bottom: 1px solid var(--rp-line-soft); padding-bottom: 1rem !important; margin-bottom: 1rem; }
}

/* ============================================================================
   RECIPE SERVINGS SCALER — interactive [−] N [+] control + animation
   ============================================================================ */
.rp-recipe-card.has-serves-control .rp-meta-item:has(.rp-serves-control) {
    padding-top: 1.25rem !important;
    padding-bottom: 1rem !important;
}
.rp-serves-control {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: var(--rp-cream, #fffefb);
    border: 1px solid var(--rp-line, #ebe5dc);
    border-radius: 999px;
    padding: 3px;
    box-shadow: 0 1px 2px rgba(20,15,10,.04);
    transition: box-shadow .2s ease;
    margin-top: .125rem;
}
.rp-serves-control:hover {
    box-shadow: 0 4px 10px -3px rgba(20,15,10,.12);
}
.rp-serves-btn {
    width: 26px; height: 26px;
    border: 0;
    background: transparent;
    color: var(--rp-fg, #1a1a1a);
    border-radius: 50%;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
    padding: 0;
}
.rp-serves-btn:hover:not(:disabled) {
    background: var(--rp-accent, #dc2626);
    color: #fffefb;
    transform: scale(1.05);
}
.rp-serves-btn:active:not(:disabled) {
    transform: scale(.95);
}
.rp-serves-btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}
.rp-serves-num {
    min-width: 28px;
    text-align: center;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--rp-fg, #1a1a1a);
    letter-spacing: -.01em;
    line-height: 1;
    transition: color .25s ease;
    user-select: none;
}
.rp-serves-num.is-updated {
    animation: rb-serves-pulse .5s ease;
}
@keyframes rb-serves-pulse {
    0%, 100% { color: var(--rp-fg, #1a1a1a); transform: scale(1); }
    40%      { color: var(--rp-accent, #dc2626); transform: scale(1.08); }
}

.rp-serves-hint {
    display: none;
    margin-top: .375rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .625rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--rp-accent, #dc2626);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(220,38,38,.3);
    transition: text-decoration-color .15s;
}
.rp-serves-hint:hover {
    text-decoration-color: var(--rp-accent, #dc2626);
}

/* Ingredient amount pulse on rescale */
.rp-ingredient-text strong.is-updated {
    animation: rb-amount-pulse .55s ease;
}
@keyframes rb-amount-pulse {
    0%   { color: var(--rp-fg, #1a1a1a); background: transparent; }
    35%  { color: var(--rp-accent, #dc2626); background: rgba(220,38,38,.08); }
    100% { color: var(--rp-fg, #1a1a1a); background: transparent; }
}

/* ============================================================================
   NEWSLETTER — SIMPLE (final). Override prior --premium/--cover variants.
   Title · short sub · form · fine print. No image, no scrim, no bullets.
   ============================================================================ */
.rm-newsletter-band.rm-newsletter-band--simple {
    max-width: 640px;
    margin: 6rem auto;
    padding: 3.5rem 2rem 3rem;
    background: var(--rm-card, #ffffff);
    border: 1px solid var(--rm-border, #ebe7e1);
    border-radius: 18px;
    box-shadow: 0 1px 2px rgba(20,15,10,.04), 0 12px 30px -16px rgba(20,15,10,.10);
    text-align: center;
    color: var(--rm-fg, #1a1a1a);
    /* nuke everything inherited from --cover or --premium */
    background-image: none;
    grid-template-columns: none;
    display: block;
}

/* Kill any photo bg / grid leftovers from older variants */
.rm-newsletter-band--simple .rm-nl-cover-bg,
.rm-newsletter-band--simple .rm-nl-cover-scrim,
.rm-newsletter-band--simple .rm-nl-visual,
.rm-newsletter-band--simple .rm-nl-photo,
.rm-newsletter-band--simple .rm-nl-stamp,
.rm-newsletter-band--simple .rm-nl-trust,
.rm-newsletter-band--simple .rm-nl-features,
.rm-newsletter-band--simple .rm-nl-kicker { display: none !important; }

.rm-nl-mark {
    display: block;
    font-family: var(--rm-font-mono, 'JetBrains Mono', monospace);
    font-size: .8125rem;
    color: var(--rm-accent, #dc2626);
    letter-spacing: .3em;
    margin-bottom: 1rem;
    opacity: .8;
}

.rm-nl-h2 {
    font-family: var(--rm-font-serif, 'Playfair Display', serif);
    font-weight: 500;
    font-size: clamp(1.625rem, 2.6vw, 2.125rem);
    line-height: 1.15;
    letter-spacing: -.018em;
    color: var(--rm-fg, #1a1a1a);
    margin: 0 0 .5rem;
    text-wrap: balance;
}

.rm-nl-p {
    font-family: var(--rm-font-sans, 'Inter', sans-serif);
    font-size: .9375rem;
    line-height: 1.5;
    color: var(--rm-muted, #6b6b6b);
    margin: 0 auto 1.5rem;
    max-width: 420px;
    text-wrap: balance;
}

.rm-newsletter-form--simple {
    display: flex;
    gap: 6px;
    background: var(--rm-bg, #fffefb);
    border: 1px solid var(--rm-border, #ebe7e1);
    border-radius: 999px;
    padding: 5px;
    max-width: 420px;
    margin: 0 auto 1rem;
    transition: border-color .25s var(--ease-soft, ease), box-shadow .25s var(--ease-soft, ease);
}
.rm-newsletter-form--simple:focus-within {
    border-color: var(--rm-accent, #dc2626);
    box-shadow: 0 0 0 4px rgba(220,38,38,.10);
}
.rm-newsletter-form--simple input[type="email"] {
    flex: 1;
    border: 0;
    background: transparent;
    padding: .625rem 1rem;
    font-family: var(--rm-font-sans, sans-serif);
    font-size: .9375rem;
    color: var(--rm-fg, #1a1a1a);
    outline: none;
}
.rm-newsletter-form--simple input::placeholder {
    color: var(--rm-muted-2, #9a9a9a);
}
.rm-newsletter-form--simple button {
    background: var(--rm-fg, #1a1a1a);
    color: var(--rm-bg, #fffefb);
    border: 0;
    border-radius: 999px;
    padding: .625rem 1.5rem;
    font-family: var(--rm-font-sans, sans-serif);
    font-weight: 600;
    font-size: .875rem;
    letter-spacing: .01em;
    cursor: pointer;
    transition: background .2s ease;
    white-space: nowrap;
}
.rm-newsletter-form--simple button:hover:not(:disabled) {
    background: var(--rm-accent, #dc2626);
}
.rm-newsletter-form--simple button:disabled { opacity: .65; cursor: wait; }

.rm-nl-fine {
    font-family: var(--rm-font-mono, monospace);
    font-size: .6875rem;
    letter-spacing: .12em;
    color: var(--rm-muted-2, #9a9a9a);
    text-transform: uppercase;
    margin: 0;
}

.rm-newsletter-band--simple .rm-form-msg {
    margin: 0 auto 1rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    font-family: var(--rm-font-sans, sans-serif);
    font-size: .8125rem;
    font-weight: 500;
    display: inline-block;
}
.rm-newsletter-band--simple .rm-form-msg[data-type="success"] {
    background: #d1fae5; color: #065f46;
}
.rm-newsletter-band--simple .rm-form-msg[data-type="error"] {
    background: #fef2f2; color: #991b1b;
}

@media (max-width: 480px) {
    .rm-newsletter-band--simple { margin: 4rem 1rem; padding: 2.5rem 1.25rem 2rem; }
    .rm-newsletter-form--simple { flex-direction: column; border-radius: 14px; padding: 8px; }
    .rm-newsletter-form--simple button { width: 100%; }
}
