/* ============================================================================
   Recipes Modern — child theme overrides for Astra
   Inspired by Half Baked Harvest, Pinch of Yum, Minimalist Baker
   IMPORTANT: NEVER apply display:block !important to Astra layout containers
   (#page, #content, .ast-container) — it breaks the header flex layout.
   ============================================================================ */

:root {
    --rm-accent: #dc2626;          /* food red — appetizing, HBH-style */
    --rm-accent-dark: #991b1b;
    --rm-accent-soft: #fef2f2;
    --rm-bg: #fffefb;              /* warm off-white */
    --rm-fg: #1a1a1a;
    --rm-muted: #6b6b6b;
    --rm-muted-2: #9a9a9a;
    --rm-border: #ebe7e1;
    --rm-card: #ffffff;
    --rm-shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --rm-shadow: 0 4px 16px rgba(0,0,0,0.06);
    --rm-shadow-lg: 0 16px 40px rgba(0,0,0,0.08);
    --rm-radius: 8px;
    --rm-radius-lg: 16px;
    --rm-font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    --rm-font-sans: 'Inter', -apple-system, system-ui, sans-serif;
    --rm-font-mono: 'JetBrains Mono', 'Geist Mono', monospace;
    --rm-content-width: 780px;
    --rm-wide-width: 1180px;
}

/* ============================================================================
   GLOBAL TYPOGRAPHY (does NOT touch Astra layout containers)
   ============================================================================ */

body.theme-recipes-modern {
    background: var(--rm-bg) !important;
    color: var(--rm-fg);
    font-family: var(--rm-font-sans);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.theme-recipes-modern h1,
body.theme-recipes-modern h2,
body.theme-recipes-modern h3,
body.theme-recipes-modern h4 {
    font-family: var(--rm-font-serif);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--rm-fg);
    line-height: 1.2;
}

body.theme-recipes-modern h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
body.theme-recipes-modern h2 { font-size: clamp(1.5rem, 3vw, 2.125rem); margin-top: 2.5em; margin-bottom: 0.75em; }
body.theme-recipes-modern h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-top: 1.75em; margin-bottom: 0.5em; }

body.theme-recipes-modern a { color: var(--rm-accent); text-decoration: none; }
body.theme-recipes-modern a:hover { color: var(--rm-accent-dark); text-decoration: underline; }

/* ============================================================================
   HIDE Astra default header/footer/sidebar — we use our own
   ============================================================================ */
body.theme-recipes-modern #masthead.site-header,
body.theme-recipes-modern #colophon.site-footer,
body.theme-recipes-modern #secondary.widget-area,
body.theme-recipes-modern .ast-mobile-header-wrap {
    display: none !important;
}

body.theme-recipes-modern #page,
body.theme-recipes-modern #content,
body.theme-recipes-modern .site-content,
body.theme-recipes-modern .ast-container {
    display: block !important;
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Skip link */
.rm-skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    background: var(--rm-fg);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    z-index: 9999;
    text-decoration: none;
}
.rm-skip-link:focus { top: 12px; }

/* ============================================================================
   CUSTOM HEADER (rm-site-header)
   ============================================================================ */

.rm-site-header {
    background: rgba(255, 254, 251, 0.96);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--rm-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.rm-site-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.875rem 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

.rm-site-brand {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none !important;
    color: var(--rm-fg);
}
.rm-site-logo {
    display: block;
    height: auto;
    max-height: 64px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}
@media (max-width: 768px) {
    .rm-site-logo { max-height: 48px; max-width: 180px; }
}
.rm-site-title {
    font-family: var(--rm-font-serif);
    font-size: 1.625rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--rm-fg);
}
.rm-site-tagline {
    font-family: var(--rm-font-sans);
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--rm-accent);
    margin-top: 4px;
}

.rm-site-nav { justify-self: center; }
.rm-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}
.rm-nav-menu li { margin: 0; }
.rm-nav-menu a {
    font-family: var(--rm-font-sans);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rm-fg) !important;
    text-decoration: none !important;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.15s ease;
}
.rm-nav-menu a::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--rm-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}
.rm-nav-menu a:hover { color: var(--rm-accent) !important; }
.rm-nav-menu a:hover::after,
.rm-nav-menu .current-menu-item > a::after,
.rm-nav-menu .current-cat > a::after { transform: scaleX(1); }

.rm-site-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.rm-search-btn,
.rm-mobile-toggle {
    background: var(--rm-accent-soft);
    border: 1px solid rgba(220, 38, 38, 0.18);
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--rm-accent-dark);
    box-shadow: var(--rm-shadow-sm);
    transition: all 0.15s ease;
    flex: 0 0 42px;
    box-sizing: border-box;
}
.rm-search-btn:hover,
.rm-mobile-toggle:hover {
    background: var(--rm-accent);
    border-color: var(--rm-accent);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}
.rm-search-btn svg,
.rm-mobile-toggle svg {
    pointer-events: none;
}
.rm-mobile-toggle { display: none; }
.rm-header-cta {
    font-size: 0.8125rem !important;
    padding: 0.625rem 1.25rem !important;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

/* Search overlay */
.rm-search-overlay {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--rm-border);
    box-shadow: var(--rm-shadow);
    padding: 1.5rem;
}
.rm-search-overlay.is-open { display: block; }
.rm-search-form {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 2px solid var(--rm-fg);
    padding-bottom: 0.5rem;
}
.rm-search-form svg { color: var(--rm-muted); flex: 0 0 auto; }
.rm-search-form input {
    flex: 1;
    border: none;
    outline: none;
    font-family: var(--rm-font-serif);
    font-size: 1.5rem;
    background: transparent;
    color: var(--rm-fg);
    padding: 0.5rem 0;
}
.rm-search-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--rm-muted);
    cursor: pointer;
    padding: 0 0.5rem;
}

/* ============================================================================
   MAIN container
   ============================================================================ */
.rm-site-main {
    display: block;
    min-height: 50vh;
    background: var(--rm-bg);
}

/* ============================================================================
   SINGLE LAYOUT — article + sticky sidebar grid
   ============================================================================ */

.rm-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 780px) 320px;
    gap: 4rem;
    max-width: 1180px;
    margin: 2.5rem auto 5rem;
    padding: 0 1.5rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .rm-single-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 1.5rem;
    }
}

/* Hero image: contained 16:9 above title */
.rm-hero-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow);
    margin: 0 0 2rem;
    background: var(--rm-border);
}
.rm-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Category badge above title */
.rm-category {
    display: inline-block;
    font-family: var(--rm-font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rm-accent);
    margin-bottom: 0.75rem;
}

/* Title */
.rm-title {
    font-family: var(--rm-font-serif);
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1rem;
    text-transform: capitalize;
    letter-spacing: -0.02em;
    color: var(--rm-fg);
}

/* Meta row: author • date • prep time • rating */
.rm-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    color: var(--rm-muted);
    font-size: 0.875rem;
    margin: 0 0 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--rm-border);
}
.rm-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}
.rm-meta-item svg { width: 16px; height: 16px; opacity: 0.7; }
.rm-meta-rating { color: var(--rm-accent); font-weight: 600; }

/* Action bar (Jump to Recipe / Print / Save) */
.rm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 2rem;
}
.rm-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border-radius: 999px;
    font-family: var(--rm-font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid var(--rm-border);
    background: var(--rm-card);
    color: var(--rm-fg) !important;
}
.rm-btn:hover {
    border-color: var(--rm-accent);
    color: var(--rm-accent) !important;
    background: var(--rm-accent-soft);
}
.rm-btn-primary {
    background: var(--rm-accent);
    color: #fff !important;
    border-color: var(--rm-accent);
}
.rm-btn-primary:hover {
    background: var(--rm-accent-dark);
    border-color: var(--rm-accent-dark);
    color: #fff !important;
}
.rm-btn svg { width: 16px; height: 16px; }

/* ============================================================================
   PAGE TEMPLATE (About / Privacy / Terms / Contact)
   ============================================================================ */

.rm-page {
    max-width: 780px;
    margin: 3rem auto 5rem;
    padding: 0 1.5rem;
}
.rm-page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--rm-border);
}
.rm-page-title {
    font-family: var(--rm-font-serif);
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
    margin: 0;
    color: var(--rm-fg);
}

/* ============================================================================
   ARTICLE BODY (modern editorial typography)
   ============================================================================ */

.rm-article-body {
    font-size: 18px;
    line-height: 1.78;
    color: #1f1f1f;
    letter-spacing: -0.005em;
}

.rm-article-body > div:first-child,
.rm-article-body > p:first-of-type {
    margin-top: 0;
}

.rm-article-body p {
    margin: 1.5em 0;
    color: #1f1f1f;
}

/* Drop cap on first paragraph (intro) */
.rm-article-body > p:first-of-type:first-letter {
    font-family: var(--rm-font-serif);
    font-size: 4.5rem;
    line-height: 0.9;
    font-weight: 700;
    float: left;
    margin: 0.15rem 0.5rem 0 0;
    color: var(--rm-accent);
    padding-top: 0.25rem;
}

.rm-article-body h2 {
    font-family: var(--rm-font-serif);
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 3.25rem 0 1rem;
    color: var(--rm-fg);
    position: relative;
    padding-left: 1rem;
}
.rm-article-body h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    height: 0.4em;
    width: 4px;
    border-radius: 2px;
    background: var(--rm-accent);
}

.rm-article-body h3 {
    font-family: var(--rm-font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2.25rem 0 0.5rem;
    color: var(--rm-fg);
    letter-spacing: -0.015em;
}

.rm-article-body strong { font-weight: 700; color: #0d0d0d; }
.rm-article-body em { font-style: italic; color: var(--rm-muted); }
.rm-article-body a {
    color: var(--rm-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
.rm-article-body a:hover { text-decoration-thickness: 2px; }

.rm-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--rm-radius);
    box-shadow: var(--rm-shadow-sm);
    margin: 2rem auto;
    display: block;
}

.rm-article-body ul,
.rm-article-body ol {
    padding-left: 1.5rem;
    margin: 1.25rem 0;
}
.rm-article-body li { margin: 0.5rem 0; }

.rm-article-body blockquote {
    border-left: 3px solid var(--rm-accent);
    background: var(--rm-accent-soft);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--rm-radius) var(--rm-radius) 0;
    font-style: italic;
    color: var(--rm-fg);
}

/* Recipe time-info card from html_full — re-style */
.rm-article-body > div[style*="background:#F8F9FA"],
.rm-article-body > div[style*="background:#F8F9FA;padding"] {
    background: var(--rm-accent-soft) !important;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-lg) !important;
    padding: 1.5rem !important;
    margin: 2rem 0 !important;
}

/* Original recipe-card at end of html_full (#recipe-card) — premium style */
.rm-article-body #recipe-card,
#recipe-card {
    background: var(--rm-card) !important;
    border: 1px solid var(--rm-border) !important;
    border-radius: var(--rm-radius-lg) !important;
    padding: 2rem !important;
    box-shadow: var(--rm-shadow-lg) !important;
    margin: 3rem 0 !important;
}
#recipe-card h2 {
    font-family: var(--rm-font-serif) !important;
    color: var(--rm-fg) !important;
    border-bottom: 2px solid var(--rm-accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Bootstrap class fixes */
.rm-article-body .col-md-4,
.rm-article-body .col-12 {
    word-break: break-word;
}

/* ============================================================================
   RECIPE QUICK CARD (top of article — pattern HBH/POY)
   ============================================================================ */

.rm-recipe-quick {
    background: var(--rm-card);
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    text-align: center;
    box-shadow: var(--rm-shadow-sm);
}
.rm-recipe-quick-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rm-muted);
    margin-bottom: 0.25rem;
    font-weight: 600;
}
.rm-recipe-quick-item .value {
    font-family: var(--rm-font-serif);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--rm-fg);
}

/* ============================================================================
   STICKY JUMP-TO-RECIPE bar (mobile + desktop)
   ============================================================================ */

.rm-sticky-jump {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 99;
    background: var(--rm-accent);
    color: #fff;
    padding: 0.875rem 1.25rem;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(220,38,38,0.35);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: 0;
    transition: all 0.2s;
    text-decoration: none !important;
    color: #fff !important;
}
.rm-sticky-jump:hover {
    background: var(--rm-accent-dark);
    transform: translateY(-2px);
    color: #fff !important;
}

/* ============================================================================
   SAVE TO PINTEREST CTA (in-article callout)
   ============================================================================ */

.rm-pinterest-cta {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: var(--rm-radius-lg);
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.rm-pinterest-cta-text h3 {
    margin: 0 0 0.25rem;
    font-family: var(--rm-font-serif);
    font-size: 1.25rem;
    color: var(--rm-fg);
}
.rm-pinterest-cta-text p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--rm-muted);
}
.rm-pinterest-cta-btn {
    background: #E60023;
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    border: 0;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s;
}
.rm-pinterest-cta-btn:hover {
    background: #B8001C;
    color: #fff !important;
    transform: scale(1.03);
}

/* ============================================================================
   EDITORIAL SIGNAL (Mediavine human-in-loop)
   ============================================================================ */

.rm-editorial-signal {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0 1rem;
    padding: 0.75rem 1rem;
    background: #ecfdf5;
    border-left: 3px solid #10b981;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #065f46;
}
.rm-editorial-signal svg {
    flex-shrink: 0;
    color: #10b981;
}
.rm-editorial-signal strong { color: #064e3b; font-weight: 700; }

.rm-author-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}
.rm-author-social a {
    color: var(--rm-accent);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}
.rm-author-social a:hover { color: var(--rm-accent-dark, #991b1b); text-decoration: underline; }

/* ============================================================================
   AUTHOR BIO (under article)
   ============================================================================ */

.rm-author {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: 1.5rem;
    background: var(--rm-accent-soft);
    border-radius: var(--rm-radius-lg);
    margin: 3rem 0;
    border: 1px solid var(--rm-border);
}
.rm-author-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--rm-border);
}
.rm-author-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* About page hero portrait */
.rm-about-hero {
    max-width: 480px;
    margin: 0 auto 2rem;
}
.rm-about-hero img {
    width: 100%;
    height: auto;
    border-radius: var(--rm-radius-lg);
    box-shadow: var(--rm-shadow-lg, 0 20px 60px rgba(0,0,0,0.15));
    aspect-ratio: 1 / 1;
    object-fit: cover;
}
.rm-author-text h4 {
    margin: 0 0 0.25rem;
    font-family: var(--rm-font-serif);
    font-size: 1.25rem;
}
.rm-author-text p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--rm-muted);
}

/* ============================================================================
   RELATED RECIPES (under article)
   ============================================================================ */

.rm-related {
    margin: 3rem 0;
    padding-top: 2rem;
    border-top: 1px solid var(--rm-border);
}
.rm-related h2 {
    font-family: var(--rm-font-serif);
    font-size: 1.75rem;
    margin: 0 0 1.5rem;
}
.rm-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}
.rm-related-card {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    transition: transform 0.2s;
}
.rm-related-card:hover { transform: translateY(-3px); }
.rm-related-card-img {
    aspect-ratio: 4 / 3;
    border-radius: var(--rm-radius);
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: var(--rm-border);
}
.rm-related-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}
.rm-related-card:hover .rm-related-card-img img { transform: scale(1.05); }
.rm-related-card-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rm-accent);
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.rm-related-card h3 {
    font-size: 1.0625rem;
    line-height: 1.35;
    margin: 0;
    text-transform: capitalize;
    font-weight: 600;
    font-family: var(--rm-font-serif);
}

/* ============================================================================
   HOMEPAGE
   ============================================================================ */

.rm-home-hero {
    max-width: var(--rm-wide-width);
    margin: 2rem auto 4rem;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 768px) {
    .rm-home-hero { grid-template-columns: 1fr; gap: 1.5rem; }
}

.rm-home-hero-image {
    aspect-ratio: 4 / 5;
    border-radius: var(--rm-radius-lg);
    overflow: hidden;
    box-shadow: var(--rm-shadow-lg);
    background: var(--rm-border);
}
.rm-home-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.rm-home-hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
    margin: 0 0 1rem;
    text-transform: capitalize;
    font-weight: 800;
}

.rm-home-hero-text .rm-category { margin-bottom: 1rem; }

.rm-home-hero-text p {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--rm-muted);
    margin: 0 0 2rem;
}

/* Section title */
.rm-section-title {
    text-align: center;
    margin: 4rem auto 2rem;
    max-width: 780px;
}
.rm-section-title small {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--rm-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.rm-section-title h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    margin: 0;
    font-family: var(--rm-font-serif);
    font-weight: 700;
}

/* Recipes grid (homepage) */
.rm-home-grid {
    max-width: var(--rm-wide-width);
    margin: 0 auto 4rem;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.rm-home-card {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    transition: transform 0.2s;
}
.rm-home-card:hover { transform: translateY(-4px); }
.rm-home-card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--rm-radius);
    margin-bottom: 1rem;
    background: var(--rm-border);
}
.rm-home-card-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}
.rm-home-card:hover .rm-home-card-img img { transform: scale(1.04); }
.rm-home-card .rm-category { margin-bottom: 0.4rem; }
.rm-home-card h3 {
    font-family: var(--rm-font-serif);
    font-size: 1.25rem;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    text-transform: capitalize;
}
.rm-home-card p {
    font-size: 0.9375rem;
    color: var(--rm-muted);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Categories block */
.rm-cats {
    max-width: var(--rm-wide-width);
    margin: 0 auto 4rem;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}
.rm-cat {
    aspect-ratio: 4 / 5;
    border-radius: var(--rm-radius-lg);
    overflow: hidden;
    position: relative;
    text-decoration: none !important;
    color: #fff !important;
    background: var(--rm-border);
}
.rm-cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.rm-cat::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.7) 100%);
}
.rm-cat:hover img { transform: scale(1.06); }
.rm-cat-text {
    position: absolute; bottom: 1rem; left: 1.25rem; z-index: 2;
}
.rm-cat-text h3 {
    color: #fff !important; margin: 0;
    font-size: 1.5rem;
    font-family: var(--rm-font-serif);
    font-weight: 700;
    text-transform: capitalize;
}
.rm-cat-text small { color: rgba(255,255,255,0.85); font-size: 0.8125rem; }

/* Newsletter band */
.rm-newsletter-band {
    background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    padding: 4rem 1rem;
    text-align: center;
    margin: 4rem 0 0;
    border-top: 1px solid var(--rm-border);
    border-bottom: 1px solid var(--rm-border);
}
.rm-newsletter-band h2 {
    font-size: clamp(1.875rem, 4vw, 2.5rem);
    margin: 0 0 0.75rem;
}
.rm-newsletter-band p {
    color: var(--rm-muted);
    font-size: 1.0625rem;
    margin: 0 0 2rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.rm-newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.rm-newsletter-form input {
    flex: 1;
    min-width: 240px;
    padding: 0.875rem 1.25rem;
    border-radius: 999px;
    border: 1px solid var(--rm-border);
    font-size: 1rem;
    background: #fff;
}
.rm-newsletter-form input:focus { outline: 2px solid var(--rm-accent); border-color: var(--rm-accent); }

/* ============================================================================
   ARCHIVE / CATEGORY PAGES
   ============================================================================ */

.rm-archive-header {
    text-align: center;
    padding: 3rem 1rem 1.5rem;
    max-width: 780px;
    margin: 0 auto;
}
.rm-archive-header small {
    font-size: 0.6875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rm-accent);
    font-weight: 700;
}
.rm-archive-header h1 {
    margin: 0.5rem 0 0.75rem;
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    text-transform: none;
    font-weight: 800;
}
.rm-archive-header p {
    color: var(--rm-muted);
    font-size: 0.9375rem;
    margin: 0 0 1.25rem;
}
.rm-archive-meta strong { color: var(--rm-fg); font-weight: 700; }

/* Inline search form (search results page + 404) */
.rm-archive-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 560px;
    margin: 1.5rem auto 0;
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    background: #fff;
    border: 1px solid var(--rm-border);
    border-radius: 999px;
    box-shadow: var(--rm-shadow-sm);
}
.rm-archive-search:focus-within {
    border-color: var(--rm-accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.rm-archive-search svg { color: var(--rm-muted); flex: 0 0 auto; }
.rm-archive-search input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0.5rem 0;
    font-size: 0.9375rem;
    font-family: var(--rm-font-sans);
    outline: none;
    min-width: 0;
}
.rm-archive-search button {
    flex: 0 0 auto;
    font-size: 0.8125rem !important;
    padding: 0.5rem 1rem !important;
}

/* Empty state (no search results) */
.rm-empty-state {
    text-align: center;
    padding: 3rem 1.5rem 5rem;
    max-width: 720px;
    margin: 0 auto;
}
.rm-empty-state h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.5rem;
}
.rm-empty-state p {
    color: var(--rm-muted);
    margin: 0 0 2rem;
}
.rm-empty-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}
.rm-empty-cat-pill {
    background: #fff;
    border: 1px solid var(--rm-border);
    border-radius: 999px;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rm-fg);
    text-decoration: none;
    transition: all 0.15s;
}
.rm-empty-cat-pill:hover {
    background: var(--rm-accent);
    border-color: var(--rm-accent);
    color: #fff;
}

/* 404 */
.rm-404 {
    text-align: center;
    padding: 5rem 1.5rem 3rem;
    max-width: 720px;
    margin: 0 auto;
}
.rm-404-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--rm-accent);
    font-weight: 700;
    margin-bottom: 1rem;
}
.rm-404-title {
    font-family: var(--rm-font-serif);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.75rem;
}
.rm-404-blurb {
    color: var(--rm-muted);
    font-size: 1rem;
    margin: 0 0 1.5rem;
}
.rm-404-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}
.rm-404-actions .rm-btn {
    font-size: 0.875rem;
}

/* ============================================================================
   MISSION BAND (home — pull-quote + stats)
   ============================================================================ */

.rm-mission-band {
    max-width: 1180px;
    margin: 4rem auto;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--rm-accent-soft) 0%, #fff 60%);
    border: 1px solid rgba(220, 38, 38, 0.12);
    border-radius: var(--rm-radius-lg);
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}
.rm-mission-text small {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--rm-accent);
    font-weight: 700;
}
.rm-mission-text h2 {
    font-family: var(--rm-font-serif);
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0.625rem 0 1rem;
    color: var(--rm-fg);
    font-weight: 800;
}
.rm-mission-text p {
    color: var(--rm-fg);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 1.5rem;
}
.rm-mission-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.rm-mission-stat {
    background: #fff;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius);
    padding: 1.25rem 1.5rem;
    text-align: center;
    box-shadow: var(--rm-shadow-sm);
}
.rm-mission-num {
    display: block;
    font-family: var(--rm-font-serif);
    font-size: 2rem;
    font-weight: 800;
    color: var(--rm-accent);
    line-height: 1;
}
.rm-mission-lbl {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--rm-muted);
    font-weight: 600;
    margin-top: 0.5rem;
}
@media (max-width: 768px) {
    .rm-mission-band {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.25rem;
        margin: 2.5rem 1rem;
    }
    .rm-mission-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.625rem;
    }
    .rm-mission-stat {
        padding: 0.875rem 0.5rem;
    }
    .rm-mission-num {
        font-size: 1.25rem;
    }
    .rm-mission-lbl {
        font-size: 0.625rem;
        letter-spacing: 0.06em;
    }
}

/* ============================================================================
   FOOTER (Astra natif customisé)
   ============================================================================ */

body.theme-recipes-modern .footer-widget-area,
body.theme-recipes-modern .ast-builder-footer-grid-columns {
    background: #faf8f3 !important;
    border-top: 1px solid var(--rm-border);
}

body.theme-recipes-modern .site-footer .widget-title {
    font-family: var(--rm-font-serif);
    font-size: 1.125rem;
    color: var(--rm-fg);
    margin-bottom: 1rem;
}

body.theme-recipes-modern .site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
body.theme-recipes-modern .site-footer li { margin: 0.5rem 0; }
body.theme-recipes-modern .site-footer a {
    color: var(--rm-muted);
    font-size: 0.9375rem;
}
body.theme-recipes-modern .site-footer a:hover {
    color: var(--rm-accent);
}

/* ============================================================================
   COMMENTS
   ============================================================================ */

body.theme-recipes-modern .comments-area {
    max-width: var(--rm-content-width);
    margin: 3.5rem auto 4rem;
    padding: 2.25rem 2rem;
    background: #fff;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius);
    box-shadow: var(--rm-shadow-sm);
}
body.theme-recipes-modern .comments-title,
body.theme-recipes-modern #reply-title {
    font-family: var(--rm-font-serif);
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--rm-text);
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--rm-accent);
    display: inline-block;
}
body.theme-recipes-modern .comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
}
body.theme-recipes-modern .comment-list li.comment,
body.theme-recipes-modern .comment-list li.pingback {
    list-style: none;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    background: var(--rm-bg, #fafaf7);
    border: 1px solid var(--rm-border);
    border-radius: 12px;
}
body.theme-recipes-modern .comment-list .children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--rm-accent-soft);
}
body.theme-recipes-modern .comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
body.theme-recipes-modern .comment-author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
body.theme-recipes-modern .comment-author .fn {
    font-weight: 700;
    font-style: normal;
    color: var(--rm-text);
}
body.theme-recipes-modern .comment-metadata {
    font-size: 0.8125rem;
    color: var(--rm-muted);
    margin-bottom: 0.5rem;
}
body.theme-recipes-modern .comment-metadata a {
    color: var(--rm-muted);
    text-decoration: none;
}
body.theme-recipes-modern .comment-content p {
    margin: 0.5rem 0;
    line-height: 1.6;
    color: var(--rm-text);
}
body.theme-recipes-modern .reply a.comment-reply-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rm-accent);
    background: var(--rm-accent-soft);
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.15s;
}
body.theme-recipes-modern .reply a.comment-reply-link:hover {
    background: var(--rm-accent);
    color: #fff;
}
body.theme-recipes-modern .comment-respond {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rm-border);
}
body.theme-recipes-modern .comment-form-comment label,
body.theme-recipes-modern .comment-form-author label,
body.theme-recipes-modern .comment-form-email label,
body.theme-recipes-modern .comment-form-url label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--rm-text);
}
body.theme-recipes-modern .comment-form input[type="text"],
body.theme-recipes-modern .comment-form input[type="email"],
body.theme-recipes-modern .comment-form input[type="url"],
body.theme-recipes-modern .comment-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--rm-text);
    background: #fff;
    border: 1px solid var(--rm-border);
    border-radius: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
body.theme-recipes-modern .comment-form input:focus,
body.theme-recipes-modern .comment-form textarea:focus {
    outline: none;
    border-color: var(--rm-accent);
    box-shadow: 0 0 0 3px var(--rm-accent-soft);
}
body.theme-recipes-modern .comment-form textarea {
    min-height: 130px;
    resize: vertical;
}
body.theme-recipes-modern .comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0.75rem 0;
    font-size: 0.875rem;
    color: var(--rm-muted);
}
body.theme-recipes-modern .comment-form .form-submit {
    margin-top: 1rem;
}
body.theme-recipes-modern .comment-form .form-submit input[type="submit"] {
    background: var(--rm-accent);
    color: #fff;
    border: none;
    padding: 0.85rem 2rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
body.theme-recipes-modern .comment-form .form-submit input[type="submit"]:hover {
    background: var(--rm-accent-dark, #991b1b);
    transform: translateY(-1px);
}
body.theme-recipes-modern .no-comments {
    color: var(--rm-muted);
    font-style: italic;
}
body.theme-recipes-modern .comment-respond .logged-in-as,
body.theme-recipes-modern .comment-respond .comment-notes {
    font-size: 0.875rem;
    color: var(--rm-muted);
    margin-bottom: 1rem;
}
body.theme-recipes-modern .comment-respond .logged-in-as a,
body.theme-recipes-modern .comment-respond .comment-notes a {
    color: var(--rm-accent);
    text-decoration: none;
}
@media (max-width: 768px) {
    body.theme-recipes-modern .comments-area {
        padding: 1.5rem 1.25rem;
        margin: 2.5rem 1rem;
    }
}

/* ============================================================================
   SIDEBAR (single posts only, sticky)
   ============================================================================ */

.rm-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 110px;
    align-self: start;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 4px;
}

.rm-sidebar-block {
    background: #fff;
    border: 1px solid var(--rm-border);
    border-radius: var(--rm-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--rm-shadow-sm);
}

.rm-sidebar-block h4 {
    font-family: var(--rm-font-serif);
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--rm-fg);
    line-height: 1.2;
}
.rm-sidebar-block p {
    font-size: 0.875rem;
    color: var(--rm-muted);
    line-height: 1.55;
    margin: 0 0 0.875rem;
}
.rm-sidebar-block small {
    display: block;
    font-size: 0.6875rem;
    color: var(--rm-muted-2);
    margin-top: 0.5rem;
}

/* Newsletter sidebar block */
.rm-sidebar-newsletter {
    background: linear-gradient(135deg, var(--rm-accent-soft), #fff);
    border-color: rgba(220, 38, 38, 0.15);
}
.rm-sidebar-newsletter h4 { color: var(--rm-accent-dark); }
.rm-sidebar-newsletter form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.rm-sidebar-newsletter input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--rm-border);
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: var(--rm-font-sans);
    background: #fff;
}
.rm-sidebar-newsletter input:focus {
    outline: none;
    border-color: var(--rm-accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}
.rm-btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* Pin block */
.rm-sidebar-pin {
    padding: 0;
    overflow: hidden;
}
.rm-sidebar-pin-link {
    display: block;
    position: relative;
    text-decoration: none;
}
.rm-sidebar-pin-link img {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}
.rm-sidebar-pin-overlay {
    position: absolute;
    inset: auto 1rem 1rem;
    background: #e60023;
    color: #fff;
    padding: 0.625rem 1rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 6px 18px rgba(230, 0, 35, 0.35);
    transition: transform 0.15s;
}
.rm-sidebar-pin-link:hover .rm-sidebar-pin-overlay { transform: translateY(-2px); }

/* About block */
.rm-sidebar-about { text-align: center; }
.rm-sidebar-avatar {
    width: 80px;
    height: 80px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--rm-accent-soft);
}
.rm-sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rm-sidebar-about h4 { margin-bottom: 0.5rem; }
.rm-sidebar-about-link {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rm-accent);
    text-decoration: none;
}
.rm-sidebar-about-link:hover { text-decoration: underline; }

/* Trending block */
.rm-sidebar-trending h4 { display: flex; align-items: center; gap: 0.5rem; }
.rm-sidebar-flame { font-size: 1.125rem; }
.rm-sidebar-recipe {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 0.875rem;
    align-items: center;
    padding: 0.625rem 0;
    border-top: 1px solid var(--rm-border);
    text-decoration: none !important;
    color: var(--rm-fg);
    transition: color 0.15s;
}
.rm-sidebar-recipe:first-of-type { border-top: none; padding-top: 0; }
.rm-sidebar-recipe img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}
.rm-sidebar-recipe-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rm-sidebar-recipe-title {
    font-family: var(--rm-font-serif);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--rm-fg);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rm-sidebar-recipe-meta {
    font-size: 0.6875rem;
    color: var(--rm-muted-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.rm-sidebar-recipe:hover .rm-sidebar-recipe-title { color: var(--rm-accent); }

/* ============================================================================
   FOOTER (4-column light)
   ============================================================================ */

.rm-site-footer {
    background: #faf8f3;
    border-top: 1px solid var(--rm-border);
    margin-top: 4rem;
    padding: 4rem 0 0;
    color: var(--rm-fg);
}

.rm-site-footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.rm-footer-col h4 {
    font-family: var(--rm-font-serif);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--rm-fg);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.rm-footer-col ul { list-style: none; padding: 0; margin: 0; }
.rm-footer-col li { margin: 0 0 0.625rem; }
.rm-footer-col li a {
    font-family: var(--rm-font-sans);
    font-size: 0.875rem;
    color: var(--rm-muted);
    text-decoration: none;
    display: inline-flex;
    gap: 0.375rem;
    align-items: baseline;
    transition: color 0.15s;
}
.rm-footer-col li a:hover { color: var(--rm-accent); }
.rm-footer-col li a span {
    font-size: 0.6875rem;
    color: var(--rm-muted-2);
    background: var(--rm-border);
    padding: 0 0.375rem;
    border-radius: 999px;
}

.rm-footer-brand {
    font-family: var(--rm-font-serif);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--rm-fg);
}
.rm-footer-logo {
    display: block;
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 220px;
    margin: 0 0 0.75rem;
    object-fit: contain;
}
.rm-footer-tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--rm-accent);
    margin: 0 0 1rem;
    font-weight: 600;
}
.rm-footer-blurb {
    font-size: 0.875rem;
    color: var(--rm-muted);
    margin: 0 0 1.25rem;
    line-height: 1.6;
}
.rm-footer-social {
    display: flex;
    gap: 0.625rem;
}
.rm-footer-social-link {
    background: #fff;
    border: 1px solid var(--rm-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 0.625rem 1.125rem;
    border-radius: 999px;
    color: var(--rm-fg);
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all 0.15s;
}
.rm-footer-social-link svg { color: #e60023; flex: 0 0 auto; }
.rm-footer-social-link:hover {
    color: #fff;
    background: #e60023;
    border-color: #e60023;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 0, 35, 0.25);
}
.rm-footer-social-link:hover svg { color: #fff; }
.rm-footer-social-label { line-height: 1; }

.rm-footer-newsletter {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.rm-footer-newsletter input {
    flex: 1;
    min-width: 0;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--rm-border);
    border-radius: 8px;
    background: #fff;
    font-family: var(--rm-font-sans);
    font-size: 0.875rem;
}
.rm-footer-newsletter input:focus {
    outline: none;
    border-color: var(--rm-accent);
}
.rm-footer-newsletter button { white-space: nowrap; }
.rm-footer-fineprint {
    display: block;
    margin-top: 0.625rem;
    color: var(--rm-muted-2);
    font-size: 0.75rem;
}

.rm-footer-bottom {
    border-top: 1px solid var(--rm-border);
    margin-top: 3rem;
    padding: 1.5rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.rm-footer-bottom small { color: var(--rm-muted-2); font-size: 0.8125rem; }
.rm-footer-legal a { color: var(--rm-muted); text-decoration: none; margin: 0 0.25rem; }
.rm-footer-legal a:hover { color: var(--rm-accent); }
.rm-footer-made { display: inline-flex; align-items: center; gap: 0.375rem; }
.rm-footer-heart {
    color: var(--rm-accent);
    font-size: 0.875rem;
    animation: rmHeart 1.4s ease-in-out infinite;
    display: inline-block;
}
@keyframes rmHeart {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.18); }
}

/* ============================================================================
   PAGINATION (.rm-pagination — modern, centered, responsive)
   ============================================================================ */

.rm-pagination,
.navigation.pagination {
    margin: 3.5rem auto 4rem;
    max-width: 1180px;
    padding: 0 1.5rem;
}

.rm-pagination .nav-links,
.navigation.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Hide accessibility-only heading */
.rm-pagination .screen-reader-text,
.navigation.pagination .screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* All page-numbers (numbers, dots, prev, next) */
.rm-pagination .page-numbers,
.navigation.pagination .page-numbers {
    font-family: var(--rm-font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--rm-fg);
    background: #fff;
    border: 1px solid var(--rm-border);
    min-width: 44px;
    height: 44px;
    padding: 0 0.875rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all 0.15s ease;
    box-shadow: var(--rm-shadow-sm);
    box-sizing: border-box;
    line-height: 1;
}

.rm-pagination a.page-numbers:hover,
.navigation.pagination a.page-numbers:hover {
    background: var(--rm-accent-soft);
    border-color: var(--rm-accent);
    color: var(--rm-accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.12);
}

/* Active page */
.rm-pagination .page-numbers.current,
.navigation.pagination .page-numbers.current {
    background: var(--rm-accent);
    border-color: var(--rm-accent);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25);
}

/* "..." */
.rm-pagination .page-numbers.dots,
.navigation.pagination .page-numbers.dots {
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--rm-muted);
    min-width: 24px;
    padding: 0;
    cursor: default;
}

/* Prev / Next pills with icon + label */
.rm-pagination .page-numbers.prev,
.rm-pagination .page-numbers.next,
.navigation.pagination .page-numbers.prev,
.navigation.pagination .page-numbers.next {
    gap: 0.5rem;
    padding: 0 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8125rem;
}
.rm-pagination .page-numbers.prev svg,
.rm-pagination .page-numbers.next svg,
.navigation.pagination .page-numbers.prev svg,
.navigation.pagination .page-numbers.next svg {
    display: inline-block;
    flex: 0 0 auto;
}

/* Mobile pagination */
@media (max-width: 640px) {
    .rm-pagination,
    .navigation.pagination {
        margin: 2.5rem auto 3rem;
        padding: 0 1rem;
    }
    .rm-pagination .nav-links,
    .navigation.pagination .nav-links {
        gap: 0.375rem;
    }
    .rm-pagination .page-numbers,
    .navigation.pagination .page-numbers {
        min-width: 40px;
        height: 40px;
        font-size: 0.875rem;
        padding: 0 0.625rem;
    }
    .rm-pagination .page-numbers.prev span,
    .rm-pagination .page-numbers.next span,
    .navigation.pagination .page-numbers.prev span,
    .navigation.pagination .page-numbers.next span {
        display: none;  /* show only icon on mobile */
    }
    .rm-pagination .page-numbers.prev,
    .rm-pagination .page-numbers.next,
    .navigation.pagination .page-numbers.prev,
    .navigation.pagination .page-numbers.next {
        padding: 0;
        min-width: 40px;
    }
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1024px) {
    .rm-site-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    body.theme-recipes-modern { font-size: 16px; }
    .rm-actions { gap: 0.375rem; }
    .rm-btn { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
    .rm-recipe-quick { grid-template-columns: repeat(2, 1fr); }
    .rm-pinterest-cta { flex-direction: column; text-align: center; }
    .rm-author { flex-direction: column; text-align: center; }
    .rm-sticky-jump { bottom: 1rem; right: 1rem; padding: 0.75rem 1rem; }

    /* Mobile header: brand center, hide tagline + nav, show toggle */
    .rm-site-header-inner {
        grid-template-columns: 42px 1fr 42px;
        padding: 0.75rem 1rem;
        gap: 0.625rem;
        max-width: 100%;
    }
    .rm-site-nav { display: none; }
    .rm-site-tagline { display: none; }
    .rm-site-title {
        font-size: 1.125rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        text-align: center;
    }
    .rm-site-brand {
        min-width: 0;
        align-items: center;
        justify-self: center;
    }
    .rm-mobile-toggle { display: inline-flex; }
    .rm-header-cta { display: none; }

    /* Mobile nav drawer.
       NOTE: backdrop-filter on .rm-site-header creates a containing block,
       so position:fixed inset:0 stays trapped inside the header (small box).
       Force the drawer to viewport size using 100vw/100vh + top-left zero. */
    .rm-site-header.is-mobile-open .rm-site-nav {
        display: block;
        position: fixed;
        top: 0; left: 0;
        width: 100vw;
        height: 100vh;
        background: #fff;
        z-index: 9999;
        padding: 4.5rem 2rem 2rem;
        overflow-y: auto;
        box-shadow: 0 0 60px rgba(0,0,0,0.15);
    }
    .rm-site-header.is-mobile-open .rm-nav-menu {
        flex-direction: column;
        gap: 0;
        padding-top: 1rem;
    }
    .rm-site-header.is-mobile-open .rm-nav-menu li {
        border-bottom: 1px solid var(--rm-border);
        margin: 0;
    }
    .rm-site-header.is-mobile-open .rm-nav-menu a {
        font-size: 1.25rem;
        font-family: var(--rm-font-serif);
        text-transform: none;
        letter-spacing: 0;
        font-weight: 700;
        padding: 1.25rem 0;
        display: block;
        color: var(--rm-fg) !important;
    }
    .rm-site-header.is-mobile-open .rm-nav-menu a:hover {
        color: var(--rm-accent) !important;
    }
    /* Close button (re-purpose the hamburger) */
    .rm-site-header.is-mobile-open .rm-mobile-toggle {
        position: fixed;
        top: 0.75rem; right: 1rem;
        z-index: 10000;
        background: var(--rm-accent);
        border-color: var(--rm-accent);
        color: #fff;
    }
    .rm-site-header.is-mobile-open .rm-site-header-inner {
        z-index: 9998;
    }

    /* Footer single col on mobile */
    .rm-site-footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .rm-footer-bottom { flex-direction: column; text-align: center; }
}

/* Print */
@media print {
    body.theme-recipes-modern { background: #fff; color: #000; font-size: 12pt; }
    .rm-site-header, .rm-site-footer, .rm-sidebar,
    .rm-actions, .rm-sticky-jump,
    .rm-pinterest-cta, .rm-author, .rm-related, .comments-area { display: none !important; }
    .rm-single-grid { grid-template-columns: 1fr !important; }
}
