/* =========================================================
   RecipeNexa — Phase 8 Public Design System
   Original interface styling for the Recipe Management System
   ========================================================= */

:root {
    --rp-bg: #f8f7f3;
    --rp-surface: #ffffff;
    --rp-surface-soft: #f1f3ed;
    --rp-text: #20231f;
    --rp-muted: #6f746d;
    --rp-border: #e3e5df;

    --rp-primary: #2f6846;
    --rp-primary-dark: #255438;
    --rp-primary-soft: #e5efe8;

    --rp-accent: #d8844a;
    --rp-accent-soft: #f8eadf;

    --rp-danger: #b94f4f;
    --rp-warning: #a66b22;

    --rp-radius-sm: 10px;
    --rp-radius: 16px;
    --rp-radius-lg: 24px;

    --rp-shadow-sm: 0 8px 24px rgba(32, 35, 31, 0.06);
    --rp-shadow: 0 16px 46px rgba(32, 35, 31, 0.09);
    --rp-shadow-hover: 0 20px 54px rgba(32, 35, 31, 0.14);

    --rp-container: 1200px;
}

html {
    scroll-behavior: smooth;
}

body.site-body,
body.guest-body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(47, 104, 70, 0.06), transparent 28rem),
        var(--rp-bg);
    color: var(--rp-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--rp-primary);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--rp-primary-dark);
}

/* ------------------------------
   Typography
   ------------------------------ */

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    color: var(--rp-text);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.display-4,
.display-5,
.display-6 {
    letter-spacing: -0.045em;
}

.text-muted {
    color: var(--rp-muted) !important;
}

/* ------------------------------
   Global container / sections
   ------------------------------ */

.container {
    max-width: var(--rp-container);
}

.site-main {
    min-height: 62vh;
}

.rp-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.rp-section-soft {
    background: var(--rp-surface-soft);
    border-radius: var(--rp-radius-lg);
}

.rp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
    color: var(--rp-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.rp-section-heading {
    max-width: 720px;
}

.rp-section-title {
    margin-bottom: 0.5rem;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.rp-section-copy {
    max-width: 640px;
    color: var(--rp-muted);
}

/* ------------------------------
   Navigation
   ------------------------------ */

.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid rgba(227, 229, 223, 0.86) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 22px rgba(32, 35, 31, 0.035);
}

.site-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--rp-text);
    font-size: 1.18rem;
}

.rp-brand-mark {
    display: inline-flex;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background:
        radial-gradient(circle at 68% 32%, #fff 0 7%, transparent 8%),
        linear-gradient(145deg, var(--rp-primary), var(--rp-primary-dark));
    box-shadow: 0 7px 18px rgba(47, 104, 70, 0.22);
}

.site-navbar .nav-link {
    position: relative;
    margin-inline: 0.1rem;
    padding: 0.75rem 0.8rem !important;
    border-radius: 10px;
    color: #454a43;
    font-size: 0.94rem;
    font-weight: 600;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
    color: var(--rp-primary);
    background: var(--rp-primary-soft);
}

.rp-navbar-search {
    display: flex;
    width: clamp(170px, 16vw, 230px);
    margin-inline: 0.45rem;
}

.rp-navbar-search .form-control {
    min-width: 0;
    height: 40px;
    padding-inline: 0.8rem;
    border-color: var(--rp-border);
    border-radius: 10px 0 0 10px;
    font-size: 0.9rem;
    box-shadow: none;
}

.rp-navbar-search .form-control:focus {
    border-color: var(--rp-primary);
    box-shadow: none;
}

.rp-navbar-search .btn {
    height: 40px;
    padding-inline: 0.8rem;
    border-radius: 0 10px 10px 0;
    font-size: 0.82rem;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .rp-navbar-search {
        order: -1;
        width: 100%;
        max-width: none;
        margin: 0.85rem 0 0.65rem;
    }

    .rp-navbar-search .form-control {
        flex: 1 1 auto;
    }
}

/* ------------------------------
   Buttons
   ------------------------------ */

.btn {
    border-radius: 11px;
    font-weight: 700;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    border-color: var(--rp-primary);
    background: var(--rp-primary);
    box-shadow: 0 7px 18px rgba(47, 104, 70, 0.16);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    border-color: var(--rp-primary-dark) !important;
    background: var(--rp-primary-dark) !important;
}

.btn-outline-primary {
    border-color: rgba(47, 104, 70, 0.55);
    color: var(--rp-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    border-color: var(--rp-primary);
    background: var(--rp-primary);
    color: #fff;
}

.btn-outline-secondary {
    border-color: var(--rp-border);
    color: #4d534c;
    background: var(--rp-surface);
}

.btn-outline-secondary:hover {
    border-color: #cbd0c8;
    background: #f1f2ee;
    color: var(--rp-text);
}

.btn-lg {
    padding: 0.78rem 1.35rem;
}

/* ------------------------------
   Cards
   ------------------------------ */

.card {
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    background: var(--rp-surface);
    box-shadow: var(--rp-shadow-sm);
}

.card-img-top {
    border-top-left-radius: calc(var(--rp-radius) - 1px);
    border-top-right-radius: calc(var(--rp-radius) - 1px);
}

.recipe-premium-card {
    overflow: hidden;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.recipe-premium-card:hover {
    transform: translateY(-5px);
    border-color: #d4d8d0;
    box-shadow: var(--rp-shadow-hover);
}

.recipe-premium-card img {
    transition: transform 280ms ease;
}

.recipe-premium-card:hover img {
    transform: scale(1.025);
}

/* ------------------------------
   Forms
   ------------------------------ */

.form-control,
.form-select {
    min-height: 45px;
    border: 1px solid #d9ddd5;
    border-radius: 11px;
    background-color: #fff;
    color: var(--rp-text);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(47, 104, 70, 0.62);
    box-shadow: 0 0 0 0.22rem rgba(47, 104, 70, 0.11);
}

.form-control-sm,
.form-select-sm {
    min-height: 39px;
}

.form-label {
    color: #444941;
    font-weight: 650;
}

.input-group > .form-control:first-child {
    border-top-left-radius: 11px;
    border-bottom-left-radius: 11px;
}

.input-group > .btn:last-child {
    border-top-right-radius: 11px;
    border-bottom-right-radius: 11px;
}

/* ------------------------------
   Badges / metadata
   ------------------------------ */

.badge.text-bg-light,
.badge.bg-light {
    border-color: var(--rp-border) !important;
    background: #f7f8f5 !important;
    color: #555b53 !important;
}

.rp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    color: var(--rp-muted);
    font-size: 0.9rem;
}

/* ------------------------------
   Alerts
   ------------------------------ */

.alert {
    border-radius: var(--rp-radius-sm);
    border-width: 1px;
}

/* ------------------------------
   Pagination
   ------------------------------ */

.pagination {
    gap: 0.3rem;
}

.page-link {
    border-radius: 9px !important;
    border-color: var(--rp-border);
    color: var(--rp-primary);
}

.page-item.active .page-link {
    border-color: var(--rp-primary);
    background: var(--rp-primary);
}

/* ------------------------------
   Empty states
   ------------------------------ */

.rp-empty-state,
.card:has(.rp-empty-state) {
    border-style: dashed;
}

/* ------------------------------
   Newsletter band
   ------------------------------ */

.rp-newsletter-band {
    width: 100%;
    margin-top: 5rem;
    background: #ffa51f;
    color: #fff;
}

.rp-newsletter-inner {
    display: grid;
    grid-template-columns:
        minmax(220px, 0.85fr)
        minmax(0, 1fr)
        minmax(360px, 1.2fr);
    align-items: center;
    gap: 2rem;
    min-height: 180px;
    padding-block: 2.5rem;
}

.rp-newsletter-label {
    margin: 0;
    padding-right: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    font-size: clamp(1.8rem, 2.1vw, 2.5rem);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.05;
    white-space: normal;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.rp-newsletter-description {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.6;
}

.rp-newsletter-form {
    width: 100%;
}

.rp-newsletter-input-group {
    width: 100%;
}

.rp-newsletter-input-group .form-control {
    min-height: 58px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.rp-newsletter-input-group .form-control:focus {
    box-shadow: none;
}

.rp-newsletter-submit {
    min-width: 135px;
    border: 0;
    border-radius: 0;
    background: #252525;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
}

.rp-newsletter-submit:hover,
.rp-newsletter-submit:focus {
    background: #151515;
    color: #fff;
}

.rp-newsletter-band + .site-footer {
    margin-top: 0 !important;
}

/*
 * Bootstrap uses narrower fixed containers below 1400px.
 * Keep the newsletter in three columns on tablet/small desktop,
 * but reduce the minimum column widths so it cannot overflow.
 */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .rp-newsletter-inner {
        grid-template-columns:
            minmax(220px, 0.8fr)
            minmax(240px, 1fr)
            minmax(360px, 1.25fr);
        gap: 1.5rem;
    }

    .rp-newsletter-label {
        padding-right: 1.5rem;
        font-size: clamp(1.8rem, 2.4vw, 2.25rem);
        white-space: normal;
    }

    .rp-newsletter-description {
        font-size: 1rem;
    }

    .rp-newsletter-submit {
        min-width: 120px;
    }
}

@media (max-width: 991.98px) {
    .rp-newsletter-inner {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        min-height: 0;
    }

    .rp-newsletter-label {
        padding-right: 0;
        padding-bottom: 1rem;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    }
}

@media (max-width: 575.98px) {
    .rp-newsletter-input-group {
        display: grid;
        grid-template-columns: 1fr;
    }

    .rp-newsletter-input-group .form-control,
    .rp-newsletter-submit {
        width: 100%;
        min-height: 54px;
    }
}

/* ------------------------------
   Footer
   ------------------------------ */

.site-footer {
    margin-top: 5rem;
    border-top: 1px solid var(--rp-border) !important;
    background: #202820 !important;
    color: #e8ece7;
}

.site-footer .text-muted,
.site-footer .small.text-muted {
    color: #b9c1b8 !important;
}

.site-footer a {
    color: #e5eee6;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer .border-top {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.site-footer {
    padding-block: 3.5rem 1.5rem;
}

.rp-footer-grid {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(360px, 1.5fr)
        minmax(180px, 0.7fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.rp-footer-brand-name {
    margin-bottom: 0.8rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.rp-footer-description {
    max-width: 330px;
    margin-bottom: 1rem;
    color: #b9c1b8;
    line-height: 1.7;
}

.rp-footer-contact {
    display: inline-block;
    margin-bottom: 1rem;
    text-decoration: none;
}

.rp-footer-legal-contact {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.rp-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    font-size: 0.9rem;
}

.rp-footer-discovery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.rp-footer-heading {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}

.rp-footer-links {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rp-footer-links a {
    color: #b9c1b8;
    font-size: 0.92rem;
    text-decoration: none;
}

.rp-footer-links a:hover,
.rp-footer-links a:focus {
    color: #fff;
}

.rp-footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #b9c1b8;
    font-size: 0.85rem;
}

@media (max-width: 991.98px) {
    .rp-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .rp-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .site-footer {
        padding-block: 2.75rem 1.5rem;
    }

    .rp-footer-grid,
    .rp-footer-discovery {
        grid-template-columns: 1fr;
    }

    .rp-footer-brand {
        grid-column: auto;
    }
}

/* ------------------------------
   Guest / authentication shell
   ------------------------------ */

.guest-body {
    min-height: 100vh;
}

.guest-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
}

.guest-visual {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 100vh;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 5rem);
    background:
        radial-gradient(circle at 24% 22%, rgba(255, 255, 255, 0.19), transparent 22rem),
        linear-gradient(145deg, #285d3e, #173725);
    color: #fff;
}

.guest-visual::after {
    content: "";
    position: absolute;
    right: -10rem;
    bottom: -10rem;
    width: 32rem;
    height: 32rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    box-shadow:
        0 0 0 4rem rgba(255, 255, 255, 0.025),
        0 0 0 8rem rgba(255, 255, 255, 0.018);
}

.guest-visual-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.guest-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
}

.guest-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.guest-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background: var(--rp-surface);
}

.guest-card {
    width: min(100%, 420px);
}

.guest-card .card {
    border: 0;
    box-shadow: none;
}

/* ------------------------------
   Responsive
   ------------------------------ */

@media (max-width: 991.98px) {
    .site-navbar .navbar-collapse {
        margin-top: 0.9rem;
        padding: 0.75rem;
        border: 1px solid var(--rp-border);
        border-radius: var(--rp-radius);
        background: #fff;
        box-shadow: var(--rp-shadow-sm);
    }

    .guest-shell {
        grid-template-columns: 1fr;
    }

    .guest-visual {
        display: none;
    }

    .guest-panel {
        min-height: 100vh;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 575.98px) {
    :root {
        --rp-radius: 14px;
        --rp-radius-lg: 18px;
    }

    .rp-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .site-main {
        padding-top: 1rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   Phase 8 Homepage
   ========================================================= */

.rp-home-slider {
    margin-top: 0.5rem;
}

.rp-home-slider .carousel-inner,
.rp-slider-frame {
    border-radius: var(--rp-radius-lg);
}

.rp-home-slider .carousel-inner {
    overflow: hidden;
    box-shadow: var(--rp-shadow);
}

.rp-slider-frame {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: clamp(390px, 52vw, 560px);
    overflow: hidden;
    background: #243229;
}

.rp-slider-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rp-slider-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(21, 30, 24, 0.88) 0%,
            rgba(21, 30, 24, 0.64) 48%,
            rgba(21, 30, 24, 0.18) 100%
        );
}

.rp-slider-content {
    position: relative;
    z-index: 1;
    width: min(720px, 88%);
    padding: clamp(2rem, 6vw, 5rem);
    color: #fff;
}

.rp-slider-content h2 {
    max-width: 680px;
    margin-bottom: 1rem;
    color: #fff;
    font-size: clamp(2rem, 5vw, 4.4rem);
    line-height: 1.03;
}

.rp-slider-content p {
    max-width: 620px;
    margin-bottom: 1.75rem;
    color: rgba(255, 255, 255, 0.83);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.rp-slider-kicker {
    display: inline-flex;
    margin-bottom: 1rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.rp-home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 7vw, 7rem) clamp(1.25rem, 5vw, 5rem);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-lg);
    background:
        radial-gradient(circle at 88% 18%, rgba(216, 132, 74, 0.14), transparent 18rem),
        radial-gradient(circle at 8% 85%, rgba(47, 104, 70, 0.09), transparent 22rem),
        #fff;
    box-shadow: var(--rp-shadow-sm);
}

.rp-home-hero::before {
    content: "";
    position: absolute;
    top: -11rem;
    right: -11rem;
    width: 26rem;
    height: 26rem;
    border: 1px solid rgba(47, 104, 70, 0.09);
    border-radius: 50%;
}

.rp-hero-title {
    max-width: 780px;
    margin-bottom: 1.35rem;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.98;
}

.rp-hero-copy {
    max-width: 680px;
    margin-bottom: 1.8rem;
    color: var(--rp-muted);
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.rp-hero-search {
    display: grid;
    grid-template-columns:
        minmax(170px, 0.8fr)
        minmax(220px, 1.4fr)
        auto;
    width: 100%;
    max-width: 920px;
    padding: 0.45rem;
    border: 1px solid var(--rp-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--rp-shadow-sm);
}

.rp-hero-search .form-select,
.rp-hero-search .form-control {
    min-height: 54px;
    border: 0;
    background-color: transparent;
    box-shadow: none;
}

.rp-hero-search .form-select {
    border-right: 1px solid var(--rp-border);
    border-radius: 10px 0 0 10px;
}

.rp-hero-search .form-control:focus,
.rp-hero-search .form-select:focus {
    box-shadow: none;
}

.rp-hero-search .btn {
    min-width: 150px;
}

.rp-discovery-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-radius: var(--rp-radius-lg);
    background: #223d2d;
    box-shadow: var(--rp-shadow);
    color: #fff;
}

.rp-discovery-card h2 {
    color: #fff;
}

.rp-discovery-card .rp-eyebrow {
    color: #bcd5c3;
}

.rp-discovery-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 1.5rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.5rem;
}

.rp-discovery-list {
    display: grid;
    gap: 0;
    margin-top: 1.5rem;
}

.rp-discovery-item {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.8rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.rp-discovery-item strong,
.rp-discovery-item span {
    display: block;
}

.rp-discovery-item > div > span {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.63);
    font-size: 0.88rem;
}

.rp-discovery-number {
    color: #d9a075;
    font-size: 0.8rem;
    font-weight: 800;
}

.rp-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.rp-text-link {
    flex-shrink: 0;
    font-weight: 750;
    text-decoration: none;
}

.rp-text-link span {
    display: inline-block;
    margin-left: 0.2rem;
    transition: transform 160ms ease;
}

.rp-text-link:hover span {
    transform: translateX(3px);
}

.rp-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--rp-surface-soft);
}

.rp-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rp-card-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    background:
        linear-gradient(135deg, #e8eee8, #f5eee6);
    color: var(--rp-muted);
    font-weight: 700;
}

.rp-card-time {
    position: absolute;
    right: 0.8rem;
    bottom: 0.8rem;
    padding: 0.38rem 0.65rem;
    border-radius: 999px;
    background: rgba(25, 31, 27, 0.82);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.rp-card-category {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.55rem;
    color: var(--rp-primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.065em;
    text-transform: uppercase;
}

.rp-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--rp-border);
    color: var(--rp-muted);
    font-size: 0.78rem;
}

.rp-category-section {
    position: relative;
    padding-inline: clamp(1rem, 3vw, 2rem);
    border-radius: var(--rp-radius-lg);
    background: #edf2ec;
}

.rp-category-card {
    display: block;
    height: 100%;
    padding: 1.5rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--rp-radius);
    color: var(--rp-text);
    text-align: center;
    text-decoration: none;
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        border-color 180ms ease;
}

.rp-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(47, 104, 70, 0.12);
    background: rgba(255, 255, 255, 0.72);
}

.rp-category-image {
    display: grid;
    width: 104px;
    height: 104px;
    margin: 0 auto 1rem;
    overflow: hidden;
    place-items: center;
    border: 5px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    background: #d9e4d9;
    box-shadow: 0 8px 24px rgba(32, 35, 31, 0.1);
    color: var(--rp-primary);
    font-size: 2rem;
    font-weight: 800;
}

.rp-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rp-category-name {
    font-weight: 800;
}

.rp-category-count {
    margin-top: 0.25rem;
    color: var(--rp-muted);
    font-size: 0.82rem;
}

.rp-tips-section {
    border-top: 1px solid var(--rp-border);
}

.rp-tip-card {
    overflow: hidden;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.rp-tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rp-shadow-hover);
}

.rp-author-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.25rem;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    background: #fff;
    box-shadow: var(--rp-shadow-sm);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.rp-author-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rp-shadow);
}

.rp-author-avatar {
    display: grid;
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    overflow: hidden;
    place-items: center;
    border-radius: 50%;
    background: var(--rp-primary-soft);
    color: var(--rp-primary);
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
}

.rp-author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rp-home-cta {
    position: relative;
    overflow: hidden;
    margin-top: 3rem;
    padding: clamp(3rem, 7vw, 6rem);
    border-radius: var(--rp-radius-lg);
    background:
        radial-gradient(circle at 85% 10%, rgba(216, 132, 74, 0.3), transparent 18rem),
        linear-gradient(135deg, #244331, #183323);
    color: #fff;
    text-align: center;
}

.rp-home-cta::before,
.rp-home-cta::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.rp-home-cta::before {
    top: -9rem;
    left: -7rem;
    width: 22rem;
    height: 22rem;
}

.rp-home-cta::after {
    right: -6rem;
    bottom: -10rem;
    width: 28rem;
    height: 28rem;
}

.rp-home-cta-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.rp-home-cta h2 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.rp-home-cta p {
    margin-bottom: 1.7rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.05rem;
}

.rp-eyebrow-light {
    color: #c8d9cc;
}

@media (max-width: 991.98px) {
    .rp-home-hero {
        padding: 3rem 2rem;
    }

    .rp-section-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .rp-hero-search {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }

    .rp-hero-search .form-select {
        border-right: 0;
        border-bottom: 1px solid var(--rp-border);
        border-radius: 10px;
    }

    .rp-hero-search .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .rp-slider-frame {
        min-height: 430px;
    }

    .rp-slider-content {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .rp-home-hero {
        padding: 2.5rem 1.25rem;
    }

    .rp-hero-title {
        font-size: clamp(2.25rem, 12vw, 3.2rem);
    }

    .rp-category-image {
        width: 84px;
        height: 84px;
    }

    .rp-author-card {
        align-items: flex-start;
    }

    .rp-home-cta {
        padding: 3rem 1.25rem;
    }
}

/* =========================================================
   Phase 8 Recipe Listing / Search
   ========================================================= */

.rp-page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 2.5rem;
    padding: clamp(2.5rem, 5vw, 4.5rem);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-lg);
    background:
        radial-gradient(
            circle at 92% 14%,
            rgba(216, 132, 74, 0.14),
            transparent 17rem
        ),
        #fff;
    box-shadow: var(--rp-shadow-sm);
}

.rp-page-title {
    margin-bottom: 0.75rem;
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1;
}

.rp-page-copy {
    max-width: 690px;
    color: var(--rp-muted);
    font-size: 1.05rem;
}

.rp-result-count {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--rp-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--rp-muted);
    font-size: 0.9rem;
}

.rp-result-count strong {
    color: var(--rp-text);
    font-size: 1.15rem;
}

.rp-recipes-layout {
    align-items: flex-start;
}

.rp-filter-panel {
    position: sticky;
    top: 98px;
    padding: 1.4rem;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    background: #fff;
    box-shadow: var(--rp-shadow-sm);
}

.rp-filter-panel .input-group-text {
    border-color: #d9ddd5;
    border-radius: 0 11px 11px 0;
    background: #f3f5f1;
    color: var(--rp-muted);
}

.rp-active-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid #d9e5da;
    border-radius: var(--rp-radius-sm);
    background: var(--rp-primary-soft);
}

.rp-active-filter-bar strong,
.rp-active-filter-bar span {
    display: block;
}

.rp-active-filter-bar strong {
    color: var(--rp-primary-dark);
}

.rp-active-filter-bar span {
    margin-top: 0.1rem;
    color: var(--rp-muted);
    font-size: 0.82rem;
}

.rp-pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

@media (max-width: 991.98px) {
    .rp-filter-panel {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .rp-page-hero {
        padding: 2rem 1.25rem;
    }

    .rp-active-filter-bar {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   Phase 8 Recipe Detail
   ========================================================= */

.rp-recipe-header {
    padding: 2.5rem 0 2rem;
}

.rp-recipe-title {
    max-width: 900px;
    margin-bottom: 1rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.12;
}

.rp-recipe-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.75rem;
    color: var(--rp-muted);
    font-size: 0.92rem;
}

.rp-recipe-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.rp-recipe-hero-image {
    overflow: hidden;
    margin: 0 0 2rem;
    aspect-ratio: 16 / 8;
    border-radius: var(--rp-radius-lg);
    background: var(--rp-surface-soft);
    box-shadow: var(--rp-shadow);
}

.rp-recipe-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rp-recipe-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    background: #fff;
    box-shadow: var(--rp-shadow-sm);
}

.rp-recipe-stat {
    padding: 1.15rem;
    border-right: 1px solid var(--rp-border);
}

.rp-recipe-stat:last-child {
    border-right: 0;
}

.rp-recipe-stat span,
.rp-recipe-stat strong {
    display: block;
}

.rp-recipe-stat span {
    margin-bottom: 0.25rem;
    color: var(--rp-muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rp-recipe-stat strong {
    font-size: 1.05rem;
}

.rp-recipe-engagement {
    margin-bottom: 2rem;
}

.rp-recipe-intro {
    margin-bottom: 2rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-left: 4px solid var(--rp-accent);
    border-radius: 0 var(--rp-radius) var(--rp-radius) 0;
    background: var(--rp-accent-soft);
}

.rp-recipe-intro p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.rp-recipe-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.rp-recipe-gallery img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: var(--rp-radius-sm);
}

.rp-recipe-content-card {
    margin-bottom: 2rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-lg);
    background: #fff;
    box-shadow: var(--rp-shadow-sm);
}

.rp-recipe-content-card h2 {
    margin-bottom: 0;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
}

.rp-recipe-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rp-serving-scaler {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.rp-ingredient-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rp-ingredient-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--rp-border);
}

.rp-ingredient-list li:nth-child(odd) {
    padding-right: 1rem;
}

.rp-ingredient-list li:nth-child(even) {
    padding-left: 1rem;
}

.rp-ingredient-check {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--rp-primary-soft);
    color: var(--rp-primary);
    font-size: 0.72rem;
    font-weight: 900;
}

.rp-instruction-list {
    display: grid;
    gap: 0;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.rp-instruction-list li {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 1rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--rp-border);
}

.rp-instruction-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: var(--rp-primary);
    color: #fff;
    font-weight: 800;
}

.rp-instruction-copy {
    padding-top: 0.4rem;
    line-height: 1.75;
}

.rp-calorie-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem 1.75rem;
    border: 1px solid #ead8c9;
    border-radius: var(--rp-radius);
    background: var(--rp-accent-soft);
}

.rp-calorie-value {
    color: var(--rp-text);
    font-size: 2rem;
    font-weight: 800;
    white-space: nowrap;
}

.rp-calorie-value span {
    color: var(--rp-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.rp-recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.rp-recipe-tags span {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--rp-border);
    border-radius: 999px;
    background: #fff;
    color: var(--rp-muted);
    font-size: 0.8rem;
    font-weight: 650;
}

.rp-recipe-sidebar {
    position: sticky;
    top: 98px;
}

.rp-creator-card {
    margin-bottom: 1.5rem;
    padding: 1.6rem;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-lg);
    background: #fff;
    box-shadow: var(--rp-shadow-sm);
    text-align: center;
}

.rp-creator-avatar {
    display: grid;
    width: 90px;
    height: 90px;
    margin: 0 auto 1rem;
    overflow: hidden;
    place-items: center;
    border-radius: 50%;
    background: var(--rp-primary-soft);
    color: var(--rp-primary);
    font-size: 2rem;
    font-weight: 800;
}

.rp-creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rp-related-recipes {
    margin-top: 1.5rem;
}

.rp-related-card {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 1rem;
    margin-bottom: 0.8rem;
    padding: 0.7rem;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-sm);
    background: #fff;
    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}

.rp-related-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--rp-shadow-sm);
}

.rp-related-image {
    display: grid;
    height: 88px;
    overflow: hidden;
    place-items: center;
    border-radius: 9px;
    background: var(--rp-surface-soft);
    color: var(--rp-muted);
    font-size: 0.75rem;
    text-decoration: none;
}

.rp-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rp-related-copy {
    align-self: center;
    min-width: 0;
}

.rp-comments-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--rp-border);
}

@media (max-width: 991.98px) {
    .rp-recipe-actions {
        justify-content: flex-start;
    }

    .rp-recipe-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rp-recipe-stat {
        border-bottom: 1px solid var(--rp-border);
    }

    .rp-recipe-sidebar {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .rp-recipe-hero-image {
        aspect-ratio: 4 / 3;
    }

    .rp-recipe-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rp-recipe-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .rp-serving-scaler {
        justify-content: flex-start;
    }

    .rp-ingredient-list {
        grid-template-columns: 1fr;
    }

    .rp-ingredient-list li:nth-child(odd),
    .rp-ingredient-list li:nth-child(even) {
        padding-left: 0;
        padding-right: 0;
    }

    .rp-recipe-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575.98px) {
    .rp-recipe-header {
        padding-top: 1.5rem;
    }

    .rp-recipe-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .rp-recipe-stats {
        grid-template-columns: 1fr 1fr;
    }

    .rp-recipe-stat {
        padding: 0.9rem;
    }

    .rp-recipe-content-card {
        padding: 1.25rem;
    }

    .rp-recipe-gallery {
        grid-template-columns: 1fr;
    }

    .rp-recipe-gallery img {
        height: 220px;
    }

    .rp-calorie-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   Phase 8 Author Profile
   ========================================================= */

.rp-author-profile-cover {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4.5rem);
    border-radius: var(--rp-radius-lg);
    background:
        radial-gradient(
            circle at 87% 18%,
            rgba(216, 132, 74, 0.28),
            transparent 19rem
        ),
        linear-gradient(135deg, #284a35, #193524);
    color: #fff;
}

.rp-author-profile-cover::after {
    content: "";
    position: absolute;
    right: -7rem;
    bottom: -12rem;
    width: 28rem;
    height: 28rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    box-shadow:
        0 0 0 4rem rgba(255, 255, 255, 0.022),
        0 0 0 8rem rgba(255, 255, 255, 0.014);
}

.rp-author-profile-main {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.rp-author-profile-avatar {
    display: grid;
    width: clamp(130px, 18vw, 190px);
    height: clamp(130px, 18vw, 190px);
    flex: 0 0 auto;
    overflow: hidden;
    place-items: center;
    border: 6px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.15);
}

.rp-author-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rp-author-profile-copy {
    max-width: 720px;
}

.rp-author-profile-copy h1 {
    margin-bottom: 0.65rem;
    color: #fff;
    font-size: clamp(2.4rem, 5vw, 4.3rem);
    line-height: 1;
}

.rp-author-profile-copy p {
    max-width: 650px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1.02rem;
}

.rp-author-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.rp-author-profile-meta strong {
    color: #fff;
}

.rp-author-social-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
    background: #fff;
    box-shadow: var(--rp-shadow-sm);
}

@media (max-width: 767.98px) {
    .rp-author-profile-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .rp-author-profile-avatar {
        width: 124px;
        height: 124px;
    }

    .rp-author-social-bar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .rp-author-profile-cover {
        padding: 2rem 1.25rem;
    }
}

/* =========================================================
   Phase 8 Recipe Category
   ========================================================= */

.rp-breadcrumb-wrap {
    margin: 0.75rem 0 1.25rem;
}

.rp-breadcrumb-wrap .breadcrumb-item + .breadcrumb-item::before {
    color: #a2a79f;
}

.rp-breadcrumb-wrap a {
    color: var(--rp-muted);
    text-decoration: none;
}

.rp-breadcrumb-wrap a:hover {
    color: var(--rp-primary);
}

.rp-category-hero {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
    overflow: hidden;
    margin-bottom: 2rem;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-lg);
    background: #fff;
    box-shadow: var(--rp-shadow);
}

.rp-category-hero:not(:has(.rp-category-hero-media)) {
    grid-template-columns: 1fr;
}

.rp-category-hero-media {
    min-height: 360px;
    background: var(--rp-surface-soft);
}

.rp-category-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.rp-category-hero-content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: clamp(2rem, 5vw, 4.5rem);
    background:
        radial-gradient(
            circle at 92% 14%,
            rgba(216, 132, 74, 0.12),
            transparent 16rem
        ),
        #fff;
}

.rp-category-hero-content h1 {
    margin-bottom: 1rem;
    font-size: clamp(2.4rem, 5vw, 4.3rem);
    line-height: 1;
}

.rp-category-hero-content p {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--rp-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

@media (max-width: 991.98px) {
    .rp-category-hero {
        grid-template-columns: 1fr;
    }

    .rp-category-hero-media,
    .rp-category-hero-media img {
        min-height: 280px;
        max-height: 360px;
    }
}

@media (max-width: 575.98px) {
    .rp-category-hero-content {
        padding: 2rem 1.25rem;
    }

    .rp-category-hero-media,
    .rp-category-hero-media img {
        min-height: 220px;
    }
}

/* =========================================================
   Phase 8 Authentication
   ========================================================= */

.rp-auth-header {
    margin-bottom: 2rem;
}

.rp-auth-header h1 {
    margin-bottom: 0.7rem;
    font-size: clamp(2rem, 4vw, 2.65rem);
    line-height: 1.05;
}

.rp-auth-header p {
    margin-bottom: 0;
    color: var(--rp-muted);
}

.rp-auth-form .form-control {
    min-height: 50px;
}

.rp-auth-form .form-check-input:checked {
    border-color: var(--rp-primary);
    background-color: var(--rp-primary);
}

.rp-auth-footer {
    margin-top: 1.5rem;
    color: var(--rp-muted);
    font-size: 0.9rem;
    text-align: center;
}

.rp-auth-footer a {
    font-weight: 750;
    text-decoration: none;
}

.rp-auth-notice {
    display: grid;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid #d8e4da;
    border-radius: var(--rp-radius-sm);
    background: var(--rp-primary-soft);
}

.rp-auth-notice strong {
    color: var(--rp-primary-dark);
}

.rp-auth-notice span {
    color: var(--rp-muted);
    font-size: 0.88rem;
}

/* === RecipeNexa Tips & Tricks article readability === */
.rp-article-card {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(20, 35, 27, 0.06);
}

.rp-article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #252a26;
    overflow-wrap: break-word;
}

.rp-article-content > *:first-child {
    margin-top: 0;
}

.rp-article-content > *:last-child {
    margin-bottom: 0;
}

.rp-article-content h2 {
    margin-top: 2.25rem;
    margin-bottom: 0.8rem;
    font-size: clamp(1.55rem, 2vw, 1.9rem);
    line-height: 1.25;
    font-weight: 700;
    color: #1f2420;
}

.rp-article-content h3 {
    margin-top: 1.8rem;
    margin-bottom: 0.7rem;
    font-size: clamp(1.25rem, 1.6vw, 1.45rem);
    line-height: 1.3;
    font-weight: 700;
    color: #1f2420;
}

.rp-article-content p {
    margin-bottom: 1.15rem;
}

.rp-article-content ul,
.rp-article-content ol {
    margin: 0 0 1.35rem;
    padding-left: 1.65rem;
}

.rp-article-content li {
    margin-bottom: 0.45rem;
}

.rp-article-content strong {
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .rp-article-card {
        border-radius: 14px;
    }

    .rp-article-card .card-body {
        padding: 1.4rem !important;
    }

    .rp-article-content {
        font-size: 1rem;
        line-height: 1.75;
    }

    .rp-article-content h2 {
        margin-top: 1.8rem;
    }
}
/* === End Tips & Tricks article readability === */


/* === RecipeNexa compact headings + nutrition facts === */
h1 {
    font-size: clamp(2rem, 4vw, 3.15rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

h4 {
    font-size: clamp(1.15rem, 1.9vw, 1.5rem);
}

h5 {
    font-size: 1.05rem;
}

h6 {
    font-size: 0.95rem;
}

.rp-recipe-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.12;
}

.rp-nutrition-card {
    padding: 1.5rem;
    border: 1px solid rgba(198, 126, 70, 0.2);
    border-radius: var(--rp-radius-lg);
    background: var(--rp-accent-soft, #fff1e7);
}

.rp-nutrition-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.rp-nutrition-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.rp-nutrition-label {
    color: var(--rp-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rp-nutrition-value {
    color: var(--rp-text);
    font-size: 1.35rem;
    line-height: 1.1;
}

.rp-nutrition-value small {
    color: var(--rp-muted);
    font-size: 0.72em;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .rp-nutrition-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rp-nutrition-item:first-child {
        grid-column: 1 / -1;
    }
}
/* === End compact headings + nutrition facts === */

/* === RecipeNexa branding sidebar profile upgrade === */
.rp-site-logo {
    display: block;
    width: auto;
    max-width: 180px;
    height: 42px;
    object-fit: contain;
}

.rp-footer-page-links a {
    color: inherit;
}

.rp-recipe-sidebar-list {
    padding: 1.2rem;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-lg);
    background: #fff;
    box-shadow: var(--rp-shadow);
}

.rp-sidebar-recipes {
    display: grid;
    gap: 0.8rem;
}

.rp-sidebar-recipe {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.rp-sidebar-recipe + .rp-sidebar-recipe {
    padding-top: 0.8rem;
    border-top: 1px solid var(--rp-border);
}

.rp-sidebar-recipe-image {
    display: grid;
    overflow: hidden;
    width: 78px;
    height: 66px;
    place-items: center;
    border-radius: 10px;
    background: var(--rp-surface-soft);
}

.rp-sidebar-recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rp-sidebar-recipe-copy {
    min-width: 0;
}

.rp-sidebar-recipe-copy strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--rp-text);
    font-size: 0.9rem;
    line-height: 1.3;
}

.rp-sidebar-recipe-copy span {
    display: block;
    color: var(--rp-muted);
    font-size: 0.75rem;
}

.rp-sidebar-recipe:hover strong {
    color: var(--rp-primary);
}

@media (max-width: 991.98px) {
    .rp-site-logo {
        max-width: 150px;
        height: 36px;
    }
}
/* === End branding sidebar profile upgrade === */

/* === RecipeNexa all recipe pages sidebar === */
.rp-recipe-page-sidebar {
    position: sticky;
    top: 5.5rem;
}

.rp-recipes-side-stack .rp-recipe-sidebar-list,
.rp-recipe-page-sidebar .rp-recipe-sidebar-list {
    box-shadow: 0 8px 28px rgba(20, 35, 27, 0.05);
}

@media (max-width: 991.98px) {
    .rp-recipe-page-sidebar {
        position: static;
    }

    .rp-recipes-side-stack {
        margin-bottom: 1.5rem;
    }
}
/* === End all recipe pages sidebar === */

/* === RecipeNexa complete sticky recipe rail === */
@media (min-width: 992px) {
    .rp-recipes-left-rail {
        position: sticky;
        top: 5.5rem;
        align-self: flex-start;
        max-height: calc(100vh - 6.5rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 0.35rem;
        scrollbar-width: thin;
    }

    .rp-recipes-left-rail .rp-filter-panel {
        position: static;
        top: auto;
    }

    .rp-recipes-left-rail .rp-recipes-side-stack {
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 991.98px) {
    .rp-recipes-left-rail {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: calc(var(--bs-gutter-x) * 0.5);
    }

    .rp-recipes-left-rail .rp-filter-panel {
        position: static;
    }
}
/* === End complete sticky recipe rail === */
/* =========================================================
   Phase 10 Recipe Ratings
   ========================================================= */

.rp-recipe-rating-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.85rem;
    color: var(--rp-muted);
    font-size: 0.92rem;
}

.rp-recipe-rating-summary strong {
    color: var(--rp-text);
}

.rp-rating-summary-stars,
.rp-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
}

.rp-rating-summary-stars {
    color: var(--rp-border);
    font-size: 1rem;
    line-height: 1;
}

.rp-rating-summary-stars .is-filled {
    color: #f59e0b;
}

.rp-engagement-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.rp-rating-form {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
}

.rp-rating-label {
    color: var(--rp-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.rp-rating-star {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--rp-border);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.rp-rating-star:hover,
.rp-rating-star:focus-visible,
.rp-rating-star.is-active {
    color: #f59e0b;
}

.rp-rating-star:hover,
.rp-rating-star:focus-visible {
    transform: translateY(-1px) scale(1.08);
}

.rp-rating-star:focus-visible {
    outline: 2px solid var(--rp-accent);
    outline-offset: 3px;
    border-radius: 0.2rem;
}

@media (max-width: 575.98px) {
    .rp-engagement-actions,
    .rp-rating-form {
        align-items: flex-start;
    }
}

/* =========================================================
   Rich article content typography
   ========================================================= */

.rp-article-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.rp-article-content > :first-child {
    margin-top: 0;
}

.rp-article-content > :last-child {
    margin-bottom: 0;
}

.rp-article-content p {
    margin-bottom: 1.25rem;
}

.rp-article-content h2 {
    margin-top: 2.4rem;
    margin-bottom: 0.9rem;
    font-size: clamp(1.45rem, 2vw, 1.8rem);
    font-weight: 800;
    line-height: 1.3;
}

.rp-article-content h3 {
    margin-top: 1.9rem;
    margin-bottom: 0.75rem;
    font-size: clamp(1.2rem, 1.6vw, 1.45rem);
    font-weight: 800;
    line-height: 1.35;
}

.rp-article-content h4 {
    margin-top: 1.6rem;
    margin-bottom: 0.65rem;
    font-size: 1.12rem;
    font-weight: 800;
}

.rp-article-content ul,
.rp-article-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.rp-article-content li + li {
    margin-top: 0.4rem;
}

.rp-article-content blockquote {
    margin: 1.5rem 0;
    padding: 0.85rem 1.1rem;
    border-left: 4px solid var(--rp-primary);
    background: var(--rp-primary-soft);
}

.rp-article-content hr {
    margin: 2rem 0;
    border-color: var(--rp-border);
}

.rp-article-content a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

@media (max-width: 575.98px) {
    .rp-article-content {
        font-size: 1rem;
        line-height: 1.75;
    }

    .rp-article-content h2 {
        margin-top: 2rem;
    }
}

/* === RecipeNexa Reviews Part 1 === */
.rp-reviews-section {
    margin: 3rem 0;
    padding: 2rem;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-lg);
    background: var(--rp-surface);
}
.rp-reviews-heading { margin-bottom: 1.75rem; }
.rp-reviews-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    font-weight: 800;
}
.rp-reviews-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}
.rp-reviews-summary, .rp-reviews-form-panel {
    min-width: 0;
    padding: 1.5rem;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius);
}
.rp-reviews-summary { background: var(--rp-surface-soft); }
.rp-reviews-average {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.rp-reviews-average > strong {
    font-size: 3.5rem;
    line-height: 1;
}
.rp-reviews-average-stars, .rp-review-item-stars {
    display: flex;
    color: #b8bdb6;
    gap: .15rem;
}
.rp-reviews-average-stars .is-filled,
.rp-review-item-stars .is-filled { color: #db9a2c; }
.rp-reviews-distribution { display: grid; gap: .75rem; }
.rp-reviews-distribution-row {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr) 2rem;
    gap: .65rem;
    align-items: center;
}
.rp-reviews-distribution-track {
    height: .7rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--rp-border);
}
.rp-reviews-distribution-fill {
    height: 100%;
    background: #db9a2c;
    border-radius: inherit;
}

/* === RecipeNexa Reviews Part 2 === */
.rp-reviews-form-panel h3 {
    font-size: 1.3rem;
    font-weight: 750;
}
.rp-reviews-form-intro,
.rp-reviews-heading p {
    color: var(--rp-muted);
}
.rp-reviews-star-fieldset {
    min-width: 0;
    border: 0;
    padding: 0;
    margin: 1.2rem 0;
}
.rp-reviews-star-fieldset legend,
.rp-reviews-text-label {
    font-weight: 700;
    font-size: .95rem;
}
.rp-reviews-star-options {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: .2rem;
}
.rp-reviews-star-options input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.rp-reviews-star-options label {
    color: #b8bdb6;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1.2;
}
.rp-reviews-star-options label:hover,
.rp-reviews-star-options label:hover ~ label,
.rp-reviews-star-options input:checked ~ label {
    color: #db9a2c;
}
.rp-reviews-star-options input:focus-visible + label {
    outline: 2px solid var(--rp-primary);
    outline-offset: 3px;
}
.rp-reviews-text-label {
    display: block;
    margin-bottom: .6rem;
}
.rp-reviews-text-label span {
    color: var(--rp-muted);
    font-weight: 400;
}
.rp-reviews-submit-form textarea {
    display: block;
    width: 100%;
    min-height: 115px;
    padding: .85rem 1rem;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-sm);
    color: var(--rp-text);
    background: var(--rp-surface);
    resize: vertical;
}
.rp-reviews-submit-form textarea:focus {
    outline: 2px solid var(--rp-primary);
    outline-offset: 2px;
}
.rp-reviews-submit-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem 1.4rem;
    margin-top: 1rem;
    border: 1px solid var(--rp-primary);
    border-radius: var(--rp-radius-sm);
    background: var(--rp-primary);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}
.rp-reviews-submit-button:hover,
.rp-reviews-submit-button:focus-visible {
    background: var(--rp-primary-dark);
    color: #fff;
}
.rp-reviews-error {
    color: var(--rp-danger);
    font-size: .875rem;
}

/* === RecipeNexa Reviews Part 3 === */
.rp-reviews-list { margin-top: 2rem; }
.rp-reviews-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--rp-border);
    padding-bottom: 1rem;
}
.rp-reviews-list-heading span,
.rp-review-author time { color: var(--rp-muted); font-size: .875rem; }
.rp-review-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--rp-border);
}
.rp-review-item-header {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: .85rem;
}
.rp-review-avatar {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--rp-primary-soft);
    color: var(--rp-primary);
    font-weight: 800;
}
.rp-review-author { display: grid; gap: .15rem; }
.rp-review-item-stars { font-size: 1.15rem; margin-bottom: .7rem; }
.rp-review-item-text {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.7;
}
.rp-reviews-empty { padding: 1.75rem 0; color: var(--rp-muted); }
.rp-reviews-pagination { margin-top: 1.5rem; }
@media (max-width: 767.98px) {
    .rp-reviews-layout { grid-template-columns: minmax(0, 1fr); }
    .rp-reviews-section { padding: 1.25rem; margin: 2rem 0; }
    .rp-reviews-summary, .rp-reviews-form-panel { padding: 1rem; }
}

/* === RecipeNexa Reviews Guest Message === */
.rp-reviews-login-message {
    margin: 1.25rem 0;
    color: var(--rp-muted);
    line-height: 1.65;
}


/* RecipeNexa footer layout v2 */
.rp-footer-grid {
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1.35fr)
        minmax(0, 0.8fr);
    gap: 2.5rem;
}

.rp-footer-brand {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
}

.rp-footer-newsletter {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.rp-footer-legal {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
}

.rp-footer-discovery {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
}

.rp-footer-newsletter .rp-newsletter-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    min-height: 0;
    padding: 0;
}

.rp-footer-newsletter .rp-newsletter-label {
    padding: 0;
    border: 0;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1.3;
    text-transform: none;
}

.rp-footer-newsletter .rp-newsletter-description {
    color: #b9c1b8;
    font-size: 0.92rem;
}

.rp-footer-newsletter .rp-newsletter-input-group {
    display: flex;
    flex-wrap: nowrap;
}

.rp-footer-newsletter .rp-newsletter-input-group .form-control {
    min-width: 0;
    min-height: 46px;
    font-size: 0.9rem;
}

.rp-footer-newsletter .rp-newsletter-submit {
    min-width: 105px;
    padding-inline: 0.75rem;
    font-size: 0.8rem;
}

@media (max-width: 991.98px) {
    .rp-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .rp-footer-brand,
    .rp-footer-newsletter,
    .rp-footer-legal,
    .rp-footer-discovery {
        grid-column: auto;
        grid-row: auto;
    }

    .rp-footer-discovery {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .rp-footer-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .rp-footer-brand,
    .rp-footer-newsletter,
    .rp-footer-legal,
    .rp-footer-discovery {
        grid-column: 1;
        grid-row: auto;
    }

    .rp-footer-newsletter .rp-newsletter-input-group {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .rp-footer-newsletter .rp-newsletter-input-group .form-control,
    .rp-footer-newsletter .rp-newsletter-submit {
        width: 100%;
    }
}

/* RecipeNexa footer alignment fix - SSH 2035 */
/* Scoped overrides: preserve existing Blade and newsletter behavior. */

@media (min-width: 992px) {
    .site-footer .rp-footer-grid {
        display: grid;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1.3fr)
            minmax(0, 0.8fr);
        column-gap: clamp(1.5rem, 3vw, 3rem);
        row-gap: 2rem;
        align-items: start;
    }

    .site-footer .rp-footer-brand {
        grid-column: 1;
        grid-row: 1;
    }

    .site-footer .rp-footer-newsletter {
        grid-column: 2;
        grid-row: 1;
    }

    .site-footer .rp-footer-discovery {
        grid-column: 2;
        grid-row: 2;
    }

    .site-footer .rp-footer-legal {
        grid-column: 3;
        grid-row: 1 / span 2;
        justify-self: end;
        width: 100%;
        max-width: 220px;
    }
}

/* The old orange newsletter-band grid must not control footer forms. */
.site-footer .rp-footer-newsletter .rp-newsletter-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    min-height: 0;
    padding: 0;
    align-items: stretch;
}

.site-footer .rp-footer-newsletter .rp-newsletter-label {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: clamp(1.25rem, 1.65vw, 1.6rem);
    line-height: 1.25;
    text-transform: none;
    overflow-wrap: break-word;
}

.site-footer .rp-footer-newsletter .rp-newsletter-description {
    margin: 0;
    color: #b9c1b8;
    font-size: 0.95rem;
    line-height: 1.6;
}

.site-footer .rp-footer-newsletter .rp-newsletter-form {
    width: 100%;
    min-width: 0;
}

.site-footer .rp-footer-newsletter .rp-newsletter-input-group {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
}

.site-footer .rp-footer-newsletter .rp-newsletter-input-group .form-control {
    min-width: 0;
    min-height: 48px;
    border-radius: 6px 0 0 6px;
}

.site-footer .rp-footer-newsletter .rp-newsletter-submit {
    min-height: 48px;
    min-width: 110px;
    border-radius: 0 6px 6px 0;
    white-space: nowrap;
}

.site-footer .rp-footer-grid > * {
    min-width: 0;
}

/* Tablet: keep readable two-column sections without overlap. */
@media (min-width: 576px) and (max-width: 991.98px) {
    .site-footer .rp-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .site-footer .rp-footer-brand {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .site-footer .rp-footer-newsletter {
        grid-column: 1;
        grid-row: 2;
    }

    .site-footer .rp-footer-legal {
        grid-column: 2;
        grid-row: 2;
    }

    .site-footer .rp-footer-discovery {
        grid-column: 1 / -1;
        grid-row: 3;
    }
}

/* Mobile: logical reading order, no horizontal overflow. */
@media (max-width: 575.98px) {
    .site-footer .rp-footer-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .site-footer .rp-footer-brand,
    .site-footer .rp-footer-newsletter,
    .site-footer .rp-footer-discovery,
    .site-footer .rp-footer-legal {
        grid-column: 1;
        grid-row: auto;
        width: 100%;
        max-width: none;
    }

    .site-footer .rp-footer-discovery {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .site-footer .rp-footer-newsletter .rp-newsletter-input-group {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.65rem;
    }

    .site-footer .rp-footer-newsletter .rp-newsletter-input-group .form-control,
    .site-footer .rp-footer-newsletter .rp-newsletter-submit {
        width: 100%;
        min-height: 48px;
        border-radius: 6px;
    }
}


/* RecipeNexa footer three-column layout - SSH 2071 */
/* Brand left, newsletter center, Legal right. */

@media (min-width: 901px) {
    .site-footer .rp-footer-grid {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 1.4fr)
            minmax(0, 0.8fr) !important;
        gap: 32px !important;
        align-items: start !important;
    }

    .site-footer .rp-footer-brand {
        grid-column: 1 !important;
        grid-row: 1 !important;
        min-width: 0;
    }

    .site-footer .rp-footer-newsletter {
        grid-column: 2 !important;
        grid-row: 1 !important;
        min-width: 0;
        width: 100%;
        justify-self: center !important;
    }

    .site-footer .rp-footer-legal {
        grid-column: 3 !important;
        grid-row: 1 !important;
        min-width: 0;
        justify-self: end !important;
        text-align: left;
        width: max-content;
        max-width: 100%;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    .site-footer .rp-footer-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 28px !important;
    }

    .site-footer .rp-footer-brand {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .site-footer .rp-footer-newsletter {
        grid-column: 2 !important;
        grid-row: 1 !important;
        min-width: 0;
        width: 100%;
    }

    .site-footer .rp-footer-legal {
        grid-column: 2 !important;
        grid-row: 2 !important;
        justify-self: start !important;
        width: auto;
    }
}

@media (max-width: 640px) {
    .site-footer .rp-footer-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
    }

    .site-footer .rp-footer-brand,
    .site-footer .rp-footer-newsletter,
    .site-footer .rp-footer-legal {
        grid-column: 1 !important;
        grid-row: auto !important;
        width: 100%;
        min-width: 0;
        justify-self: stretch !important;
    }
}


/* RecipeNexa mobile UI fix - SSH 2079 */
/* Fix only mobile hero action buttons and footer subscription. */

@media (max-width: 640px) {

    /* Homepage CTA buttons: same width, same height. */
    .rp-home-hero .col-lg-7 > .d-flex.flex-wrap.gap-2.mt-4 {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        gap: 12px !important;
        width: 100%;
        min-width: 0;
    }

    .rp-home-hero .col-lg-7 > .d-flex.flex-wrap.gap-2.mt-4 > .btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        min-height: 52px !important;
        max-width: 100%;
        margin: 0 !important;
        padding: 12px 16px !important;
        text-align: center;
        white-space: normal;
    }

    /* Footer reading order and balanced spacing. */
    .site-footer .rp-footer-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 24px !important;
        align-items: start !important;
    }

    .site-footer .rp-footer-brand,
    .site-footer .rp-footer-newsletter,
    .site-footer .rp-footer-legal {
        grid-column: 1 !important;
        grid-row: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100%;
        margin: 0 !important;
        justify-self: stretch !important;
    }

    /* Email and Subscribe button on ONE horizontal row. */
    .site-footer .rp-footer-newsletter .rp-newsletter-input-group {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        width: 100% !important;
        min-width: 0 !important;
        overflow: hidden;
        border-radius: 8px;
    }

    .site-footer .rp-footer-newsletter .rp-newsletter-input-group
    .form-control {
        display: block !important;
        flex: 1 1 auto !important;
        width: 1% !important;
        min-width: 0 !important;
        min-height: 50px !important;
        padding: 10px 12px !important;
        border-radius: 8px 0 0 8px !important;
        font-size: 14px !important;
    }

    .site-footer .rp-footer-newsletter .rp-newsletter-submit {
        display: inline-flex !important;
        flex: 0 0 auto !important;
        align-items: center;
        justify-content: center;
        width: auto !important;
        min-width: 104px !important;
        min-height: 50px !important;
        padding: 10px 12px !important;
        margin: 0 !important;
        border-radius: 0 8px 8px 0 !important;
        background: #2F7A4D !important;
        border-color: #2F7A4D !important;
        color: #FFFFFF !important;
        font-size: 12px !important;
        font-weight: 700;
        white-space: nowrap;
    }

    .site-footer .rp-footer-newsletter .rp-newsletter-submit:hover,
    .site-footer .rp-footer-newsletter .rp-newsletter-submit:focus-visible {
        background: #276641 !important;
        border-color: #276641 !important;
        color: #FFFFFF !important;
    }

    .site-footer .rp-footer-legal .rp-footer-heading {
        margin-bottom: 12px !important;
    }

    .site-footer .rp-footer-legal-contact {
        margin-top: 0 !important;
    }
}


/* RecipeNexa recipe print and mobile spacing - SSH 2090 */

/* Mobile recipe detail: reduce space after breadcrumbs. */
@media screen and (max-width: 575.98px) {
    main.site-main > nav[aria-label="breadcrumb"]:has(+ .rp-recipe-page) {
        margin-bottom: 0.5rem !important;
    }

    .rp-recipe-page .rp-recipe-header {
        padding-top: 0.5rem;
    }
}

/* Recipe-only printing: remove transient UI and site footer. */
@media print {
    .site-main:has(.rp-recipe-page) > .alert,
    body:has(.rp-recipe-page) .site-footer,
    body:has(.rp-recipe-page) .rp-recipe-actions,
    body:has(.rp-recipe-page) .rp-recipe-engagement {
        display: none !important;
    }
}


/* RecipeNexa desktop subscribe color fix - SSH 2092 */
/* Preserve footer grid, input dimensions and mobile styling. */
@media screen and (min-width: 641px) {
    .site-footer .rp-footer-newsletter .rp-newsletter-submit {
        background-color: #2F7A4D !important;
        border-color: #2F7A4D !important;
        color: #FFFFFF !important;
    }

    .site-footer .rp-footer-newsletter .rp-newsletter-submit:hover,
    .site-footer .rp-footer-newsletter .rp-newsletter-submit:focus-visible {
        background-color: #276641 !important;
        border-color: #276641 !important;
        color: #FFFFFF !important;
    }
}


/* RecipeNexa typography standard - SSH 2098 */

/* Consistent heading rhythm without resizing special hero elements. */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.01em;
    line-height: 1.25;
    overflow-wrap: break-word;
}

h1, h2 {
    font-weight: 700;
}

h3, h4, h5, h6 {
    font-weight: 600;
}

/* Content headings: CMS Markdown and rendered article content. */
.rp-article-content h1,
.rp-article-content h2,
.rp-article-content h3,
.rp-article-content h4,
.rp-article-content h5,
.rp-article-content h6 {
    letter-spacing: -0.01em;
    line-height: 1.35;
    overflow-wrap: break-word;
}

.rp-article-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.rp-article-content h2 {
    font-size: 2rem;
    font-weight: 700;
}

.rp-article-content h3 {
    font-size: 1.625rem;
    font-weight: 600;
}

.rp-article-content h4 {
    font-size: 1.375rem;
    font-weight: 600;
}

.rp-article-content h5 {
    font-size: 1.1875rem;
    font-weight: 600;
}

.rp-article-content h6 {
    font-size: 1rem;
    font-weight: 600;
}

/* Footer headings and brand: consistent font and weight. */
.site-footer .rp-footer-brand-name {
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}

.site-footer .rp-footer-newsletter .rp-newsletter-label {
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}

.site-footer .rp-footer-heading {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
}

/* Small-screen content hierarchy. */
@media screen and (max-width: 575.98px) {
    .rp-article-content h1 {
        font-size: 1.875rem;
    }

    .rp-article-content h2 {
        font-size: 1.5rem;
    }

    .rp-article-content h3 {
        font-size: 1.375rem;
    }

    .rp-article-content h4 {
        font-size: 1.25rem;
    }

    .rp-article-content h5 {
        font-size: 1.125rem;
    }

    .rp-article-content h6 {
        font-size: 1rem;
    }
}


/* RecipeNexa recipe print pagination fix - SSH 2628 */
@media print {
    /*
     * Keep the Instructions title with its first step.
     * Allow longer instruction lists to continue onto another page.
     */
    .rp-recipe-page .rp-recipe-content-card > .rp-eyebrow,
    .rp-recipe-page #recipe-instructions-title {
        break-after: avoid !important;
        page-break-after: avoid !important;
    }

    .rp-recipe-page .rp-instruction-list {
        break-before: avoid !important;
        page-break-before: avoid !important;
    }

    .rp-recipe-page .rp-instruction-list > li {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}


/* RecipeNexa compact print layout fix - SSH 2630B */
@media print {
    @page {
        size: auto;
        margin: 10mm;
    }

    html, body {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }

    .rp-recipe-page,
    .rp-recipe-page * {
        box-shadow: none !important;
    }

    .rp-recipe-page .container,
    .rp-recipe-page .rp-recipe-layout,
    .rp-recipe-page .rp-recipe-main,
    .rp-recipe-page .rp-recipe-sidebar {
        max-width: 100% !important;
        width: 100% !important;
    }

    .rp-recipe-page .rp-recipe-sidebar,
    .rp-recipe-page .rp-author-card,
    .rp-recipe-page .rp-rating-form-card,
    .rp-recipe-page .rp-reviews-list,
    .rp-recipe-page .rp-related-recipes,
    .rp-recipe-page .rp-newsletter,
    .rp-recipe-page .rp-share-status {
        display: none !important;
    }

    .rp-recipe-page .rp-recipe-title {
        font-size: 26px !important;
        line-height: 1.15 !important;
        margin-bottom: 8px !important;
    }

    .rp-recipe-page .rp-recipe-summary,
    .rp-recipe-page .rp-recipe-meta,
    .rp-recipe-page .rp-recipe-stats,
    .rp-recipe-page .rp-recipe-details,
    .rp-recipe-page .rp-recipe-content-card,
    .rp-recipe-page .rp-nutrition-card {
        margin-bottom: 10px !important;
    }

    .rp-recipe-page .card,
    .rp-recipe-page .rp-recipe-content-card,
    .rp-recipe-page .rp-nutrition-card,
    .rp-recipe-page .rp-ingredients-card,
    .rp-recipe-page .rp-instructions-card {
        padding: 12px !important;
        border-radius: 8px !important;
    }

    .rp-recipe-page .rp-meta-grid,
    .rp-recipe-page .rp-recipe-facts {
        gap: 0 !important;
    }

    .rp-recipe-page .rp-meta-grid > *,
    .rp-recipe-page .rp-recipe-facts > * {
        padding: 8px !important;
    }

    .rp-recipe-page .rp-section-title,
    .rp-recipe-page #recipe-instructions-title {
        font-size: 16px !important;
        margin-bottom: 8px !important;
        break-after: avoid !important;
        page-break-after: avoid !important;
    }

    .rp-recipe-page .rp-eyebrow {
        margin-bottom: 4px !important;
        break-after: avoid !important;
        page-break-after: avoid !important;
    }

    .rp-recipe-page .rp-instruction-list {
        margin-top: 0 !important;
        break-before: avoid !important;
        page-break-before: avoid !important;
    }

    .rp-recipe-page .rp-instruction-list > li:first-child {
        break-before: avoid !important;
        page-break-before: avoid !important;
    }

    .rp-recipe-page .rp-instruction-list > li {
        padding: 8px 0 !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .rp-recipe-page .rp-ingredient-list > li {
        padding: 6px 0 !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .rp-recipe-page .rp-tags,
    .rp-recipe-page .rp-tag-list {
        margin-top: 8px !important;
    }
}


/* === RecipeNexa Ratings Refresh 2656 === */
.rp-reviews-section {
    margin-block: clamp(2rem, 4vw, 3.5rem);
    padding: clamp(1.25rem, 3vw, 2.5rem);
    border: 1px solid var(--rp-border);
    border-radius: 20px;
    background: var(--rp-surface);
}

.rp-reviews-heading {
    margin-bottom: 1.75rem;
}

.rp-reviews-heading h2 {
    margin: .35rem 0 .6rem;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.rp-reviews-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.6rem);
    align-items: stretch;
}

.rp-reviews-summary,
.rp-reviews-form-panel {
    padding: clamp(1.2rem, 2.5vw, 2rem);
    border: 1px solid var(--rp-border);
    border-radius: 16px;
    background: var(--rp-surface);
    box-shadow: 0 4px 18px rgba(15, 38, 26, .035);
}

.rp-reviews-summary {
    background: linear-gradient(145deg, #fffdf7 0%, #fff 70%);
}

.rp-reviews-average {
    align-items: center;
    gap: 1.3rem;
    margin-bottom: 1.7rem;
}

.rp-reviews-score {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    flex: 0 0 auto;
}

.rp-reviews-score strong {
    font-size: clamp(3.5rem, 6vw, 4.6rem);
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.06em;
    color: var(--rp-text);
    font-variant-numeric: tabular-nums;
}

.rp-reviews-score span {
    color: var(--rp-muted);
    font-size: .85rem;
    font-weight: 650;
}

.rp-reviews-average-stars {
    gap: .12rem;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1;
}

.rp-reviews-average-stars .is-filled,
.rp-review-item-stars .is-filled {
    color: #d69218;
}

.rp-reviews-average > div:last-child p {
    margin: .55rem 0 0;
    color: var(--rp-muted);
    font-size: .875rem;
}

.rp-reviews-distribution-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 800;
    color: var(--rp-text);
}

.rp-reviews-distribution {
    gap: .6rem;
}

.rp-reviews-distribution-row {
    grid-template-columns: 3rem minmax(0, 1fr) 2.1rem;
    gap: .85rem;
    font-size: .88rem;
    font-variant-numeric: tabular-nums;
}

.rp-reviews-distribution-row > span:first-child {
    white-space: nowrap;
    font-weight: 750;
    color: var(--rp-text);
}

.rp-reviews-distribution-count {
    text-align: right;
    color: var(--rp-muted);
    font-weight: 650;
}

.rp-reviews-distribution-track {
    height: .65rem;
    background: #ece8db;
}

.rp-reviews-distribution-fill {
    background: #d69218;
    transition: width .2s ease;
}

.rp-reviews-form-panel h3 {
    margin-bottom: .5rem;
    font-size: 1.3rem;
    font-weight: 800;
}

.rp-reviews-existing-rating {
    padding: .8rem 1rem;
    margin: .8rem 0;
    border-left: 3px solid #d69218;
    border-radius: 0 8px 8px 0;
    background: #fff8e9;
    color: #6a4b16;
    font-size: .88rem;
}

.rp-reviews-star-fieldset {
    margin: 1.25rem 0;
}

.rp-reviews-star-options {
    gap: .3rem;
}

.rp-reviews-star-options label {
    font-size: clamp(2.3rem, 4vw, 3rem);
    line-height: 1.15;
    transition: color .15s ease, transform .15s ease;
}

.rp-reviews-star-options label:hover {
    transform: translateY(-2px);
}

.rp-reviews-submit-form textarea {
    border: 1px solid var(--rp-border);
    border-radius: 10px;
    min-height: 120px;
    line-height: 1.6;
}

.rp-reviews-submit-button {
    min-height: 44px;
    border-radius: 9px;
    font-weight: 750;
}

.rp-reviews-list {
    margin-top: 2.3rem;
}

.rp-reviews-list-heading {
    align-items: baseline;
}

.rp-reviews-list-heading h3 {
    font-size: 1.35rem;
    font-weight: 800;
}

.rp-review-item {
    padding: 1.5rem 0;
}

.rp-review-avatar {
    flex: 0 0 2.75rem;
    border-radius: 50%;
    background: #e7f1e9;
}

.rp-review-item-stars {
    font-size: 1.2rem;
}

.rp-review-item-text {
    max-width: 72ch;
}

@media (max-width: 767.98px) {
    .rp-reviews-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .rp-reviews-section {
        padding: 1rem;
        border-radius: 14px;
    }

    .rp-reviews-summary,
    .rp-reviews-form-panel {
        padding: 1.2rem;
        border-radius: 12px;
    }
}

@media (max-width: 360px) {
    .rp-reviews-average {
        gap: .8rem;
    }

    .rp-reviews-score strong {
        font-size: 3.2rem;
    }

    .rp-reviews-distribution-row {
        gap: .5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rp-reviews-star-options label,
    .rp-reviews-distribution-fill {
        transition: none;
    }
}
/* === End RecipeNexa Ratings Refresh 2656 === */


/* === RecipeNexa Header Actions 2662 === */
.rp-recipe-header .rp-recipe-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .65rem;
}

.rp-recipe-header .rp-recipe-actions > .btn,
.rp-recipe-header .rp-engagement-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: .55rem .85rem;
    border-radius: 12px;
    font-size: .9rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
}

.rp-recipe-header .rp-engagement-actions {
    display: contents;
}

.rp-recipe-header .rp-engagement-actions form {
    display: inline-flex;
    margin: 0;
}

.rp-recipe-header .rp-engagement-actions .btn {
    color: #b42336;
    border-color: #dc7381;
    background: transparent;
}

.rp-recipe-header .rp-engagement-actions .btn:hover,
.rp-recipe-header .rp-engagement-actions .btn:focus-visible {
    color: #fff;
    background: #b42336;
    border-color: #b42336;
}

@media (min-width: 992px) {
    .rp-recipe-header .rp-recipe-actions {
        gap: .45rem;
    }

    .rp-recipe-header .rp-recipe-actions > .btn,
    .rp-recipe-header .rp-engagement-actions .btn {
        padding-inline: .65rem;
        font-size: .82rem;
    }
}

@media (max-width: 991.98px) {
    .rp-recipe-header .rp-recipe-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .rp-recipe-header .rp-recipe-actions {
        gap: .5rem;
    }

    .rp-recipe-header .rp-recipe-actions > .btn,
    .rp-recipe-header .rp-engagement-actions .btn {
        font-size: .85rem;
    }
}
/* === End RecipeNexa Header Actions 2662 === */


/* === RecipeNexa Ratings Cascade Correction 2676 === */
html body .rp-reviews-section .rp-reviews-heading {
    margin-bottom: 1.5rem !important;
}

html body .rp-reviews-section .rp-reviews-heading h2 {
    font-size: clamp(1.65rem, 3vw, 2.1rem) !important;
    line-height: 1.2 !important;
    margin: .35rem 0 .6rem !important;
}

html body .rp-reviews-section .rp-reviews-layout {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: clamp(1rem, 2.5vw, 1.6rem) !important;
}

html body .rp-reviews-section .rp-reviews-average {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 1.25rem !important;
    margin-bottom: 1.5rem !important;
}

html body .rp-reviews-section .rp-reviews-score {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    flex: 0 0 auto !important;
}

html body .rp-reviews-section .rp-reviews-score strong {
    font-size: clamp(3.75rem, 6vw, 4.75rem) !important;
    line-height: .98 !important;
    font-weight: 850 !important;
    letter-spacing: -.055em !important;
}

html body .rp-reviews-section .rp-reviews-score span {
    font-size: .82rem !important;
    line-height: 1.4 !important;
}

html body .rp-reviews-section .rp-reviews-average-stars {
    display: flex !important;
    align-items: center !important;
    gap: .1rem !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
}

html body .rp-reviews-section .rp-reviews-average > div:last-child p {
    margin: .5rem 0 0 !important;
    font-size: .875rem !important;
}

html body .rp-reviews-section .rp-reviews-distribution-title {
    margin: 0 0 .85rem !important;
    font-size: 1rem !important;
    line-height: 1.35 !important;
    font-weight: 750 !important;
    letter-spacing: 0 !important;
}

html body .rp-reviews-section .rp-reviews-distribution {
    display: flex !important;
    flex-direction: column !important;
    gap: .65rem !important;
}

html body .rp-reviews-section .rp-reviews-distribution-row {
    display: grid !important;
    grid-template-columns: 2.8rem minmax(0, 1fr) 2rem !important;
    align-items: center !important;
    gap: .7rem !important;
    font-size: .875rem !important;
    line-height: 1.4 !important;
}

html body .rp-reviews-section .rp-reviews-distribution-row > span:first-child {
    white-space: nowrap !important;
    font-weight: 700 !important;
}

html body .rp-reviews-section .rp-reviews-distribution-track {
    display: block !important;
    width: 100% !important;
    height: .6rem !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    background: #ece8db !important;
}

html body .rp-reviews-section .rp-reviews-distribution-fill {
    height: 100% !important;
    border-radius: inherit !important;
    background: #d69218 !important;
}

html body .rp-reviews-section .rp-reviews-form-panel > h3,
html body .rp-reviews-section .rp-reviews-list-heading h3 {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    letter-spacing: -.01em !important;
}

html body .rp-reviews-section .rp-reviews-form-intro,
html body .rp-reviews-section .rp-reviews-login-message {
    font-size: .925rem !important;
    line-height: 1.6 !important;
}

html body .rp-reviews-section .rp-reviews-star-fieldset legend {
    font-size: .95rem !important;
    font-weight: 750 !important;
}

html body .rp-reviews-section .rp-reviews-star-options {
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
    gap: .25rem !important;
}

html body .rp-reviews-section .rp-reviews-list-heading {
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: .75rem !important;
}

html body .rp-reviews-section .rp-review-item {
    padding: 1.25rem 0 !important;
    border-bottom: 1px solid var(--rp-border) !important;
}

@media (max-width: 767.98px) {
    html body .rp-reviews-section .rp-reviews-layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    html body .rp-reviews-section .rp-reviews-score strong {
        font-size: clamp(3.5rem, 12vw, 4.25rem) !important;
    }

    html body .rp-reviews-section .rp-reviews-summary,
    html body .rp-reviews-section .rp-reviews-form-panel {
        min-width: 0 !important;
        padding: 1.15rem !important;
    }
}

@media (max-width: 380px) {
    html body .rp-reviews-section .rp-reviews-average {
        gap: .85rem !important;
    }

    html body .rp-reviews-section .rp-reviews-average-stars {
        font-size: 1.2rem !important;
    }

    html body .rp-reviews-section .rp-reviews-distribution-row {
        grid-template-columns: 2.5rem minmax(0, 1fr) 1.65rem !important;
        gap: .5rem !important;
    }
}
/* === End RecipeNexa Ratings Cascade Correction 2676 === */


/* === RecipeNexa Reference Ratings Layout 2685 === */
html body .rp-reviews-section .rp-reviews-layout-reference {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem !important;
    align-items: stretch !important;
}

html body .rp-reviews-section .rp-reviews-layout-reference > .rp-reviews-form-panel {
    order: 1;
    width: 100%;
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem) !important;
    background: var(--rp-surface) !important;
}

html body .rp-reviews-section .rp-reviews-layout-reference > .rp-reviews-summary {
    order: 2;
    width: 100%;
    min-width: 0;
    padding: clamp(1.25rem, 3vw, 2rem) !important;
    background: var(--rp-surface-soft) !important;
}

html body .rp-reviews-section .rp-reviews-score strong {
    font-size: clamp(3.25rem, 7vw, 4.25rem) !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    letter-spacing: -.055em !important;
}

html body .rp-reviews-section .rp-reviews-average {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: .35rem !important;
    text-align: center !important;
    margin: .25rem 0 1.5rem !important;
}

html body .rp-reviews-section .rp-reviews-average > div:last-child {
    display: contents !important;
}

html body .rp-reviews-section .rp-reviews-average-stars {
    order: 1;
    display: flex !important;
    justify-content: center !important;
    gap: .1rem !important;
    font-size: 1.45rem !important;
    line-height: 1.2 !important;
}

html body .rp-reviews-section .rp-reviews-average > .rp-reviews-score {
    order: 2;
    display: flex !important;
    flex-direction: row !important;
    align-items: baseline !important;
    justify-content: center !important;
    gap: .35rem !important;
}

html body .rp-reviews-section .rp-reviews-score span {
    font-size: .95rem !important;
}

html body .rp-reviews-section .rp-reviews-average > div:last-child p {
    order: 3;
    margin: .15rem 0 0 !important;
    font-size: .95rem !important;
}

html body .rp-reviews-section .rp-reviews-distribution {
    display: flex !important;
    flex-direction: column !important;
    gap: .7rem !important;
    width: 100% !important;
    max-width: 430px !important;
    margin: 0 auto !important;
}

html body .rp-reviews-section .rp-reviews-distribution-title {
    font-size: 1rem !important;
    line-height: 1.35 !important;
    margin: 0 0 .35rem !important;
}

html body .rp-reviews-section .rp-reviews-distribution-row {
    display: grid !important;
    grid-template-columns: 3.2rem minmax(0, 1fr) 1.5rem !important;
    align-items: center !important;
    gap: .7rem !important;
    font-size: .9rem !important;
}

html body .rp-reviews-section .rp-reviews-distribution-track {
    display: block !important;
    width: 100% !important;
    height: .65rem !important;
    overflow: hidden !important;
    border-radius: 999px !important;
}

html body .rp-reviews-section .rp-reviews-form-panel > h3,
html body .rp-reviews-section .rp-reviews-list-heading h3 {
    font-size: 1.25rem !important;
    line-height: 1.35 !important;
}

html body .rp-reviews-section .rp-reviews-list {
    margin-top: 1.5rem !important;
}

html body .rp-reviews-section .rp-review-item {
    padding: 1.4rem 0 !important;
    border-bottom: 1px solid var(--rp-border) !important;
}

html body .rp-reviews-section .rp-review-item-text {
    line-height: 1.7 !important;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    html body .rp-reviews-section .rp-reviews-layout-reference > .rp-reviews-form-panel,
    html body .rp-reviews-section .rp-reviews-layout-reference > .rp-reviews-summary {
        padding: 1rem !important;
    }

    html body .rp-reviews-section .rp-reviews-score strong {
        font-size: 3.25rem !important;
    }

    html body .rp-reviews-section .rp-reviews-distribution-row {
        grid-template-columns: 2.8rem minmax(0, 1fr) 1.25rem !important;
        gap: .5rem !important;
    }
}
/* === End RecipeNexa Reference Ratings Layout 2685 === */


/* === RecipeNexa Compact Ratings 2693 === */
html body .rp-reviews-section {
    margin: 1.25rem 0 !important;
    padding: 1rem !important;
    border-radius: 12px !important;
}

html body .rp-reviews-section .rp-reviews-heading {
    margin-bottom: .85rem !important;
}

html body .rp-reviews-section .rp-reviews-heading .rp-eyebrow {
    font-size: .72rem !important;
    margin-bottom: .2rem !important;
}

html body .rp-reviews-section .rp-reviews-heading h2 {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
    margin: .2rem 0 .35rem !important;
    letter-spacing: -.02em !important;
}

html body .rp-reviews-section .rp-reviews-heading p {
    font-size: .85rem !important;
    line-height: 1.45 !important;
    margin-bottom: 0 !important;
}

html body .rp-reviews-section .rp-reviews-layout-reference {
    gap: .75rem !important;
}

html body .rp-reviews-section .rp-reviews-layout-reference > .rp-reviews-form-panel,
html body .rp-reviews-section .rp-reviews-layout-reference > .rp-reviews-summary {
    padding: .9rem !important;
    border-radius: 10px !important;
}

html body .rp-reviews-section .rp-reviews-form-panel > h3,
html body .rp-reviews-section .rp-reviews-list-heading h3 {
    font-size: 1.05rem !important;
    line-height: 1.3 !important;
    margin-bottom: .35rem !important;
}

html body .rp-reviews-section .rp-reviews-form-intro,
html body .rp-reviews-section .rp-reviews-login-message {
    font-size: .82rem !important;
    line-height: 1.45 !important;
    margin-bottom: .55rem !important;
}

html body .rp-reviews-section .rp-reviews-existing-rating {
    padding: .55rem .7rem !important;
    margin: .5rem 0 !important;
    font-size: .8rem !important;
}

html body .rp-reviews-section .rp-reviews-star-fieldset {
    margin: .55rem 0 !important;
}

html body .rp-reviews-section .rp-reviews-star-fieldset legend {
    font-size: .82rem !important;
    margin-bottom: .25rem !important;
}

html body .rp-reviews-section .rp-reviews-star-options {
    gap: .12rem !important;
}

html body .rp-reviews-section .rp-reviews-star-options label {
    font-size: 1.8rem !important;
    line-height: 1.05 !important;
}

html body .rp-reviews-section .rp-reviews-submit-form textarea {
    min-height: 76px !important;
    height: 76px !important;
    padding: .55rem .7rem !important;
    font-size: .84rem !important;
    line-height: 1.45 !important;
    border-radius: 8px !important;
}

html body .rp-reviews-section .rp-reviews-text-label {
    font-size: .82rem !important;
    margin-bottom: .25rem !important;
}

html body .rp-reviews-section .rp-reviews-submit-button {
    min-height: 36px !important;
    padding: .45rem .8rem !important;
    font-size: .82rem !important;
    line-height: 1.3 !important;
    border-radius: 8px !important;
}

html body .rp-reviews-section .rp-reviews-average {
    gap: .2rem !important;
    margin: 0 0 .8rem !important;
}

html body .rp-reviews-section .rp-reviews-score strong {
    font-size: 2.65rem !important;
    line-height: 1 !important;
}

html body .rp-reviews-section .rp-reviews-score span,
html body .rp-reviews-section .rp-reviews-average > div:last-child p {
    font-size: .8rem !important;
}

html body .rp-reviews-section .rp-reviews-average-stars {
    font-size: 1.15rem !important;
}

html body .rp-reviews-section .rp-reviews-distribution {
    gap: .4rem !important;
}

html body .rp-reviews-section .rp-reviews-distribution-title {
    font-size: .88rem !important;
    line-height: 1.3 !important;
    margin-bottom: .2rem !important;
}

html body .rp-reviews-section .rp-reviews-distribution-row {
    grid-template-columns: 2.5rem minmax(0, 1fr) 1.1rem !important;
    gap: .45rem !important;
    font-size: .78rem !important;
    line-height: 1.25 !important;
}

html body .rp-reviews-section .rp-reviews-distribution-track {
    height: .45rem !important;
}

html body .rp-reviews-section .rp-reviews-list {
    margin-top: 1rem !important;
}

html body .rp-reviews-section .rp-reviews-list-heading {
    gap: .4rem !important;
    margin-bottom: .35rem !important;
}

html body .rp-reviews-section .rp-reviews-list-heading > span {
    font-size: .78rem !important;
}

html body .rp-reviews-section .rp-review-item {
    padding: .8rem 0 !important;
}

html body .rp-reviews-section .rp-review-avatar {
    flex-basis: 2.2rem !important;
    width: 2.2rem !important;
    height: 2.2rem !important;
    font-size: .85rem !important;
}

html body .rp-reviews-section .rp-review-author strong {
    font-size: .85rem !important;
}

html body .rp-reviews-section .rp-review-author time {
    font-size: .72rem !important;
}

html body .rp-reviews-section .rp-review-item-stars {
    font-size: .95rem !important;
    margin: .35rem 0 !important;
}

html body .rp-reviews-section .rp-review-item-text,
html body .rp-reviews-section .rp-reviews-empty p {
    font-size: .84rem !important;
    line-height: 1.5 !important;
    margin-bottom: .2rem !important;
}

html body .rp-reviews-section .rp-reviews-pagination {
    margin-top: .65rem !important;
}

@media (max-width: 575.98px) {
    html body .rp-reviews-section {
        padding: .7rem !important;
        margin: 1rem 0 !important;
    }

    html body .rp-reviews-section .rp-reviews-layout-reference > .rp-reviews-form-panel,
    html body .rp-reviews-section .rp-reviews-layout-reference > .rp-reviews-summary {
        padding: .75rem !important;
    }

    html body .rp-reviews-section .rp-reviews-heading h2 {
        font-size: 1.3rem !important;
    }

    html body .rp-reviews-section .rp-reviews-score strong {
        font-size: 2.4rem !important;
    }

    html body .rp-reviews-section .rp-reviews-star-options label {
        font-size: 1.65rem !important;
    }
}
/* === End RecipeNexa Compact Ratings 2693 === */


/* === RecipeNexa Login Food Hero 2708 === */
.guest-visual {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.guest-visual .guest-food-hero-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    filter: none;
}

/* Subtle overlay keeps the existing white headline readable. */
.guest-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(9, 48, 31, .10) 0%,
        rgba(9, 48, 31, .08) 42%,
        rgba(9, 43, 28, .78) 100%
    );
}

.guest-visual .guest-visual-content {
    position: relative;
    z-index: 2;
}

@media (max-width: 767.98px) {
    .guest-visual .guest-food-hero-image {
        object-position: center;
    }
}
/* === End RecipeNexa Login Food Hero 2708 === */


/* === RecipeNexa Reference Footer Design 2763 === */
@media screen {
    .site-footer {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        background: #153c2c !important;
        border-top: 0 !important;
        color: #edf5ee;
        padding: 65px 0 25px;
    }

    .site-footer::before,
    .site-footer::after {
        content: "❧";
        position: absolute;
        z-index: -1;
        color: rgba(143, 190, 143, .075);
        font-family: Georgia, serif;
        font-size: 240px;
        line-height: 1;
        pointer-events: none;
    }

    .site-footer::before {
        left: -55px;
        bottom: 5px;
        transform: rotate(-35deg);
    }

    .site-footer::after {
        right: -40px;
        bottom: -30px;
        transform: rotate(145deg);
    }

    .site-footer .rp-footer-grid {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1.25fr)
            minmax(0, .8fr)
            minmax(0, 1.35fr)
            minmax(0, .8fr) !important;
        gap: 0 !important;
        align-items: start !important;
    }

    .site-footer .rp-footer-grid > .rp-footer-brand,
    .site-footer .rp-footer-grid > .rp-footer-quick-links,
    .site-footer .rp-footer-grid > .rp-footer-newsletter,
    .site-footer .rp-footer-grid > .rp-footer-legal {
        grid-column: auto !important;
        grid-row: auto !important;
        min-width: 0;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 25px !important;
        justify-self: stretch !important;
        text-align: left;
    }

    .site-footer .rp-footer-grid > :first-child {
        padding-left: 0 !important;
    }

    .site-footer .rp-footer-grid > :not(:first-child) {
        border-left: 1px solid rgba(255,255,255,.17);
    }

    .site-footer .rp-footer-brand-name {
        font-size: 1.45rem;
        color: #fff;
    }

    .site-footer .rp-footer-heading,
    .site-footer .rp-footer-newsletter .rp-newsletter-label {
        color: #fff;
        font-size: 1.12rem;
        font-weight: 700;
        margin-bottom: 20px;
    }

    .site-footer .rp-footer-description,
    .site-footer .rp-footer-links a,
    .site-footer .rp-footer-newsletter .rp-newsletter-description {
        color: #c4d5ca;
        line-height: 1.8;
    }

    .site-footer .rp-footer-links {
        display: grid;
        gap: 13px;
        padding: 0;
        list-style: none;
    }

    .site-footer .rp-footer-links a:hover {
        color: #fff;
    }

    .site-footer .rp-footer-bottom {
        margin-top: 50px;
        padding-top: 22px;
        border-top: 1px solid rgba(255,255,255,.18);
        color: #c4d5ca;
    }
}

@media screen and (min-width: 641px) and (max-width: 1100px) {
    .site-footer .rp-footer-grid {
        grid-template-columns: repeat(2, minmax(0,1fr)) !important;
        row-gap: 38px !important;
    }

    .site-footer .rp-footer-grid > .rp-footer-brand,
    .site-footer .rp-footer-grid > .rp-footer-quick-links,
    .site-footer .rp-footer-grid > .rp-footer-newsletter,
    .site-footer .rp-footer-grid > .rp-footer-legal {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .site-footer .rp-footer-grid > :nth-child(odd) {
        border-left: 0;
        padding-left: 0 !important;
    }
}

@media screen and (max-width: 640px) {
    .site-footer {
        padding-top: 42px;
    }

    .site-footer .rp-footer-grid {
        grid-template-columns: minmax(0,1fr) !important;
        gap: 30px !important;
    }

    .site-footer .rp-footer-grid > .rp-footer-brand,
    .site-footer .rp-footer-grid > .rp-footer-quick-links,
    .site-footer .rp-footer-grid > .rp-footer-newsletter,
    .site-footer .rp-footer-grid > .rp-footer-legal {
        grid-column: 1 !important;
        grid-row: auto !important;
        padding: 0 0 25px !important;
        border-left: 0 !important;
        border-bottom: 1px solid rgba(255,255,255,.14);
    }

    .site-footer .rp-footer-grid > :last-child {
        border-bottom: 0;
    }

    .site-footer .rp-footer-bottom {
        margin-top: 20px;
    }
}
/* === End RecipeNexa Reference Footer Design 2763 === */


/* === RecipeNexa Reference Header Design 2764 === */
@media screen {
    .site-navbar {
        background: #ffffff !important;
        border-bottom: 1px solid #e8eee9 !important;
        box-shadow: 0 3px 18px rgba(18, 57, 36, .065);
        backdrop-filter: none;
        padding-block: 12px;
    }

    .site-navbar .navbar-brand {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        color: #183d2a;
        font-size: 1.4rem;
        font-weight: 800;
        letter-spacing: -.035em;
        white-space: nowrap;
    }

    .site-navbar .rp-brand-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        border-radius: 11px;
        background: #28784b;
        box-shadow: none;
    }

    .site-navbar .rp-brand-mark::after {
        content: "❧";
        color: #fff;
        font-family: Georgia, serif;
        font-size: 30px;
        line-height: 1;
        transform: rotate(-35deg);
    }

    .site-navbar .nav-link {
        color: #263d30;
        font-size: .93rem;
        font-weight: 600;
        padding: .65rem .7rem !important;
        border-radius: 8px;
    }

    .site-navbar .nav-link:hover,
    .site-navbar .nav-link:focus-visible {
        color: #28784b;
        background: #edf6ef;
    }

    .site-navbar .rp-navbar-search {
        width: clamp(190px, 18vw, 280px);
        margin-inline: 12px;
    }

    .site-navbar .rp-navbar-search .form-control {
        height: 43px;
        border: 1px solid #dce6df;
        border-radius: 8px 0 0 8px;
        background: #fafcfb;
        font-size: .88rem;
    }

    .site-navbar .rp-navbar-search .btn {
        height: 43px;
        padding-inline: 16px;
        border-radius: 0 8px 8px 0;
        background: #28784b;
        border-color: #28784b;
        color: #fff;
        font-weight: 700;
    }

    .site-navbar .rp-navbar-search .btn:hover {
        background: #20643e;
        border-color: #20643e;
    }
}

@media screen and (max-width: 1199.98px) {
    .site-navbar .navbar-brand {
        font-size: 1.2rem;
    }

    .site-navbar .nav-link {
        padding-inline: .45rem !important;
    }

    .site-navbar .rp-navbar-search {
        width: 180px;
        margin-inline: 6px;
    }
}

@media screen and (max-width: 991.98px) {
    .site-navbar {
        padding-block: 9px;
    }

    .site-navbar .rp-navbar-search {
        width: 100%;
        margin: 12px 0;
    }

    .site-navbar .nav-link {
        padding: 12px !important;
    }
}
/* === End RecipeNexa Reference Header Design 2764 === */


/* === RecipeNexa Footer Finishing 2765 === */

@media screen {
    .site-footer .rp-footer-social {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        margin-top: 22px;
    }

    .site-footer .rp-footer-social a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 39px;
        height: 39px;
        flex: 0 0 39px;
        padding: 9px;
        border: 1px solid rgba(255,255,255,.18);
        border-radius: 50%;
        background: rgba(255,255,255,.09);
        color: #fff;
        text-decoration: none;
        transition: background .2s ease, transform .2s ease;
    }

    .site-footer .rp-footer-social a:hover,
    .site-footer .rp-footer-social a:focus-visible {
        background: #2f7a4d;
        color: #fff;
        transform: translateY(-2px);
    }

    .site-footer .rp-footer-social svg {
        display: block;
        width: 19px;
        height: 19px;
        fill: none;
    }

    .site-footer .rp-footer-bottom-reference {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px 25px;
    }

    .site-footer .rp-footer-made-with {
        color: #c4d5ca;
        white-space: normal;
    }

    .site-footer .rp-footer-made-with span {
        color: #f5a9a9;
        font-size: 1.1em;
    }
}

@media screen and (max-width: 640px) {
    .site-footer .rp-footer-bottom-reference {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .site-footer .rp-footer-social a {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}

/* === End RecipeNexa Footer Finishing 2765 === */


/* === RecipeNexa Homepage Spacing Optimization 2766 === */
@media screen {

    body:has(#home-hero) .rp-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    body:has(#home-hero) .rp-section-header {
        margin-bottom: 1.5rem;
    }

    body:has(#home-hero) .rp-home-hero {
        padding-top: clamp(2.5rem, 5vw, 4.5rem);
        padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
    }

    body:has(#home-hero) .rp-category-section {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    body:has(#home-hero) .rp-category-card {
        padding: 1rem .75rem;
    }

    body:has(#home-hero) .rp-category-image {
        width: 88px;
        height: 88px;
    }

    body:has(#home-hero) .rp-home-cta {
        margin-top: 1.5rem;
        padding: clamp(2.5rem, 5vw, 4rem);
    }
}

@media screen and (max-width: 767.98px) {

    body:has(#home-hero) .rp-section {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    body:has(#home-hero) .rp-section-header {
        margin-bottom: 1.25rem;
    }

    body:has(#home-hero) .rp-category-section {
        padding: 2rem 1rem;
    }

    body:has(#home-hero) .rp-category-card {
        padding: .75rem .5rem;
    }

    body:has(#home-hero) .rp-category-image {
        width: 72px;
        height: 72px;
    }

    body:has(#home-hero) .rp-home-cta {
        margin-top: 1rem;
        padding: 2.25rem 1.25rem;
    }
}

/* === End RecipeNexa Homepage Spacing Optimization 2766 === */


/* RecipeNexa QA: Public Author Directory Layout */
.rp-author-directory-layout {
    display: grid;
    grid-template-columns: minmax(250px, 300px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.25rem, 3vw, 2rem);
    margin: 1.5rem 0 3rem;
}

.rp-author-directory-sidebar,
.rp-author-directory-recipes {
    min-width: 0;
}

.rp-author-directory-card {
    padding: 1.75rem;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-lg);
    background: #fff;
    box-shadow: var(--rp-shadow-sm);
    text-align: center;
}

.rp-author-directory-avatar {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin: 0 auto 1rem;
    overflow: hidden;
    border-radius: 50%;
    background: #edf2ed;
    color: #284a35;
    font-size: 2.75rem;
    font-weight: 700;
}

.rp-author-directory-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rp-author-directory-role {
    margin-bottom: .35rem;
    color: var(--rp-muted);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.rp-author-directory-card h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.rp-author-directory-stats {
    display: grid;
    gap: .5rem;
    padding: 1rem 0;
    border-top: 1px solid var(--rp-border);
    border-bottom: 1px solid var(--rp-border);
    color: var(--rp-muted);
    font-size: .875rem;
}

.rp-author-directory-bio {
    margin-top: 1.25rem;
    text-align: left;
}

.rp-author-directory-bio h2 {
    font-size: 1rem;
    margin-bottom: .6rem;
}

.rp-author-directory-bio p {
    margin-bottom: 0;
    color: var(--rp-muted);
    font-size: .9rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.rp-author-directory-social {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
    margin-top: 1.25rem;
}

.rp-author-directory-social a {
    font-size: .85rem;
    overflow-wrap: anywhere;
}

.rp-author-directory-recipes > .rp-section {
    padding-top: 0;
    padding-bottom: 0;
}

.rp-author-directory-recipes .rp-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.rp-author-directory-recipes .row {
    --bs-gutter-y: 1rem;
}

.rp-author-directory-recipes .row > .col {
    flex: 0 0 100%;
    width: 100%;
}

.rp-author-directory-recipes .recipe-premium-card {
    overflow: hidden;
}

@media (min-width: 768px) {
    .rp-author-directory-recipes .recipe-premium-card {
        display: grid;
        grid-template-columns: minmax(150px, 32%) minmax(0, 1fr);
    }

    .rp-author-directory-recipes .rp-card-media {
        height: 100%;
        min-height: 190px;
    }

    .rp-author-directory-recipes .rp-card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 767.98px) {
    .rp-author-directory-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .rp-author-directory-card {
        padding: 1.25rem;
    }
}



/* RecipeNexa QA: Author Recipe Card Overlap Fix 2846 */
@media (min-width: 768px) {
    .rp-author-directory-recipes .recipe-premium-card {
        display: grid;
        grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
        align-items: stretch;
    }

    .rp-author-directory-recipes .recipe-premium-card > .rp-card-media {
        position: relative;
        display: block;
        width: 100%;
        min-width: 0;
        height: 100%;
        min-height: 190px;
        overflow: hidden;
    }

    .rp-author-directory-recipes .recipe-premium-card > .rp-card-media img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 100%;
        object-fit: cover;
    }

    .rp-author-directory-recipes .recipe-premium-card > .card-body {
        min-width: 0;
        width: 100%;
        position: relative;
        z-index: 1;
        overflow-wrap: anywhere;
    }
}



/* RecipeNexa QA: Refined Author Card 2857 */
.rp-author-directory-card.rp-author-card-refined {
    padding: 2rem 1.5rem;
    border: 1px solid #e3eae3;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(27, 55, 35, .06);
}

.rp-author-card-refined .rp-author-directory-avatar {
    width: 124px;
    height: 124px;
    margin-bottom: 1.2rem;
    border: 5px solid #edf5ee;
    background: #e2eee4;
    color: #24543a;
    font-size: 3rem;
}

.rp-author-card-refined .rp-author-directory-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-bottom: .75rem;
    color: #287448;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
}

.rp-author-role-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38945c;
}

.rp-author-card-refined h2 {
    margin: 0 0 1rem;
    color: #1d3528;
    font-size: clamp(1.45rem, 2.4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.25;
}

.rp-author-card-refined .rp-author-card-intro {
    margin: 0 0 1.5rem;
    color: #66756b;
    font-size: .9rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.rp-author-card-stat-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 1.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid #e8eee9;
    border-bottom: 1px solid #e8eee9;
}

.rp-author-card-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    min-width: 0;
}

.rp-author-card-stat + .rp-author-card-stat {
    border-left: 1px solid #e8eee9;
}

.rp-author-card-stat strong {
    color: #245b3d;
    font-size: 1.05rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.rp-author-card-stat span {
    color: #78867b;
    font-size: .75rem;
}

.rp-author-card-refined .rp-author-directory-social {
    justify-content: center;
    gap: .5rem;
    margin-top: 1.4rem;
}

.rp-author-card-refined .rp-author-directory-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .7rem;
    border: 1px solid #e1ebe3;
    border-radius: 8px;
    background: #f5faf6;
    color: #286445;
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.rp-author-card-refined .rp-author-directory-social a:hover,
.rp-author-card-refined .rp-author-directory-social a:focus-visible {
    border-color: #a9d0b3;
    background: #e8f4eb;
}

@media (max-width: 767.98px) {
    .rp-author-directory-card.rp-author-card-refined {
        padding: 1.5rem 1.25rem;
    }

    .rp-author-card-refined .rp-author-directory-avatar {
        width: 108px;
        height: 108px;
    }
}



/* RecipeNexa QA: Author Card Icon Polish 2862 */
.rp-author-card-refined .rp-author-card-stat-row {
    margin-top: 1.25rem;
    padding: 1.2rem 0;
}

.rp-author-card-refined .rp-author-card-stat {
    gap: .3rem;
}

.rp-author-card-refined .rp-author-stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: .25rem;
    border-radius: 50%;
    background: #edf6ef;
    font-size: 1rem;
    line-height: 1;
}

.rp-author-card-refined .rp-author-card-stat strong {
    font-size: 1rem;
}

.rp-author-card-refined .rp-author-directory-avatar {
    box-shadow: 0 0 0 1px #dce9df;
}

.rp-author-card-refined .rp-author-directory-role {
    margin-top: .25rem;
}

.rp-author-card-refined .rp-author-directory-social {
    padding-top: 1rem;
}

@media (max-width: 767.98px) {
    .rp-author-card-refined .rp-author-card-stat-row {
        padding: 1rem 0;
    }
}



/* RecipeNexa QA: Recipe Detail Author Card 2869 */
.rp-recipe-page .rp-creator-card.rp-creator-card-refined {
    padding: 2rem 1.5rem;
    border: 1px solid #e0e9e2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(27, 55, 35, .07);
    text-align: center;
}

.rp-recipe-page .rp-creator-card-refined .rp-creator-avatar {
    width: 116px;
    height: 116px;
    margin: 0 auto 1.25rem;
    border: 5px solid #edf5ee;
    border-radius: 50%;
    background: #e2eee4;
    color: #24543a;
    box-shadow: 0 0 0 1px #dce9df;
    overflow: hidden;
}

.rp-recipe-page .rp-creator-card-refined .rp-creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.rp-recipe-page .rp-creator-card-refined .rp-creator-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-bottom: .75rem;
    color: #287448;
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.rp-recipe-page .rp-creator-card-refined .rp-creator-role-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #38945c;
}

.rp-recipe-page .rp-creator-card-refined .rp-creator-name {
    margin: 0 0 1.25rem;
    color: #24543a;
    font-size: clamp(1.35rem, 2vw, 1.7rem);
    font-weight: 800;
    line-height: 1.3;
}

.rp-recipe-page .rp-creator-card-refined .rp-creator-name a {
    color: inherit;
    text-decoration: none;
}

.rp-recipe-page .rp-creator-card-refined .rp-creator-name a:hover,
.rp-recipe-page .rp-creator-card-refined .rp-creator-name a:focus-visible {
    text-decoration: underline;
}

.rp-recipe-page .rp-creator-card-refined .rp-creator-profile-btn {
    padding: .8rem 1rem;
    border: 1px solid #79a98a;
    border-radius: 12px;
    color: #286445;
    font-weight: 750;
    transition: background .2s, color .2s;
}

.rp-recipe-page .rp-creator-card-refined .rp-creator-profile-btn:hover,
.rp-recipe-page .rp-creator-card-refined .rp-creator-profile-btn:focus-visible {
    border-color: #286445;
    background: #286445;
    color: #ffffff;
}

@media (max-width: 767.98px) {
    .rp-recipe-page .rp-creator-card.rp-creator-card-refined {
        padding: 1.5rem 1.25rem;
    }

    .rp-recipe-page .rp-creator-card-refined .rp-creator-avatar {
        width: 104px;
        height: 104px;
    }
}


/* RecipeNexa QA: Discover Recipes Tabbed Sidebar 2882 */
.rp-recipe-page .rp-discover-recipes {
    margin: 0 0 1.5rem;
    padding: 1.25rem;
    border: 1px solid var(--rp-border);
    border-radius: var(--rp-radius-lg);
    background: #fff;
    box-shadow: 0 8px 28px rgba(20, 35, 27, 0.05);
}

.rp-recipe-page .rp-discover-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.3rem;
    margin-bottom: 1.1rem;
    padding: 0.3rem;
    border-radius: 12px;
    background: var(--rp-surface-soft);
}

.rp-recipe-page .rp-discover-tab {
    min-width: 0;
    padding: 0.65rem 0.35rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--rp-muted);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.rp-recipe-page .rp-discover-tab:hover {
    color: var(--rp-primary);
}

.rp-recipe-page .rp-discover-tab[aria-selected="true"] {
    background: var(--rp-primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rp-recipe-page .rp-discover-tab:focus-visible {
    outline: 3px solid var(--rp-primary);
    outline-offset: 3px;
}

.rp-recipe-page .rp-discover-panel[hidden] {
    display: none !important;
}

.rp-recipe-page .rp-discover-panel {
    min-height: 65px;
}

.rp-recipe-page .rp-discover-empty {
    margin: 0;
    padding: 1rem 0.5rem;
    color: var(--rp-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 767.98px) {
    .rp-recipe-page .rp-discover-recipes {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    .rp-recipe-page .rp-discover-tab {
        padding: 0.7rem 0.2rem;
        font-size: 0.8rem;
    }
}
/* End RecipeNexa Discover Recipes Tabbed Sidebar 2882 */


/* === RecipeNexa Responsive Header Fix 3008 === */
@media screen and (min-width: 1400px) {
    .site-navbar .container {
        max-width: 1320px;
    }

    .site-navbar .navbar-brand {
        flex-shrink: 0;
    }

    .site-navbar .navbar-nav {
        min-width: 0;
    }

    .site-navbar .nav-link {
        white-space: nowrap;
        flex-shrink: 0;
        padding-inline: .45rem !important;
    }

    .site-navbar .rp-navbar-search {
        flex: 0 1 230px;
        min-width: 160px;
        width: auto;
        margin-inline: 8px;
    }

    .site-navbar .rp-navbar-search .form-control {
        min-width: 0;
        flex: 1 1 auto;
    }
}

@media screen and (max-width: 1399.98px) {
    .site-navbar .navbar-collapse {
        margin-top: .9rem;
        padding: .75rem;
        border: 1px solid var(--rp-border);
        border-radius: var(--rp-radius);
        background: #fff;
    }

    .site-navbar .navbar-nav {
        align-items: stretch !important;
    }

    .site-navbar .nav-link {
        white-space: normal;
        padding: 12px !important;
    }

    .site-navbar .rp-navbar-search {
        order: -1;
        width: 100%;
        max-width: none;
        margin: 12px 0;
    }
}
/* === End RecipeNexa Responsive Header Fix 3008 === */


/* === RecipeNexa Header Search 3012 === */
.site-navbar .rp-header-search-toggle {
    order: 3;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #183d2a;
    cursor: pointer;
}
.site-navbar .rp-header-search-toggle:hover,
.site-navbar .rp-header-search-toggle:focus-visible {
    background: #edf6ef;
    outline-offset: 3px;
}
.rp-header-search-panel[hidden] {
    display: none !important;
}
.rp-header-search-panel {
    position: relative;
    z-index: 1029;
    padding: 14px max(16px, calc((100% - 1320px) / 2));
    background: #fff;
    border-bottom: 1px solid #e8eee9;
    box-shadow: 0 8px 18px rgba(18, 57, 36, .05);
}
.rp-header-search-form {
    display: flex;
    width: 100%;
    gap: 10px;
}
.rp-header-search-form input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid #dce6df;
    border-radius: 10px;
    background: #fff;
}
.rp-header-search-form button {
    flex: 0 0 auto;
    padding: 10px 22px;
    border: 0;
    border-radius: 10px;
    background: #28784b;
    color: #fff;
    font-weight: 700;
}
@media (max-width: 1399.98px) {
    .site-navbar .navbar-collapse {
        order: 4;
    }
    .site-navbar .navbar-toggler {
        order: 2;
        margin-left: auto;
    }
}
@media (max-width: 575.98px) {
    .site-navbar .rp-header-search-toggle {
        width: 40px;
        margin-left: 5px;
    }
    .rp-header-search-panel {
        padding: 12px 16px;
    }
    .rp-header-search-form {
        gap: 6px;
    }
    .rp-header-search-form button {
        padding-inline: 12px;
    }
}
/* === End RecipeNexa Header Search 3012 === */


/* === RecipeNexa Compact Header 3026 === */
@media screen {
    .site-navbar {
        padding-block: 6px;
    }

    .site-navbar .rp-brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .site-navbar .nav-link {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .site-navbar .rp-header-search-toggle {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 575.98px) {
    .site-navbar {
        padding-block: 5px;
    }

    .site-navbar .rp-header-search-toggle {
        width: 40px;
        height: 40px;
    }
}
/* === End RecipeNexa Compact Header 3026 === */


/* === RecipeNexa Search Container Alignment 3030 === */
.rp-header-search-panel {
    padding: 14px 12px;
}

.rp-header-search-form {
    width: 100%;
    max-width: 1320px;
    margin-inline: auto;
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .rp-header-search-form {
        max-width: 540px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .rp-header-search-form {
        max-width: 720px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .rp-header-search-form {
        max-width: 960px;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .rp-header-search-form {
        max-width: 1140px;
    }
}

@media (max-width: 575.98px) {
    .rp-header-search-panel {
        padding: 12px;
    }
}
/* === End RecipeNexa Search Container Alignment 3030 === */


/* === RecipeNexa Unified Containers 3032 === */

/* Standard Bootstrap responsive widths for the default frontend. */
@media screen and (min-width: 1400px) {
    .site-navbar .container,
    main.site-main.container,
    .site-footer > .container,
    .rp-header-search-form {
        width: 100%;
        max-width: 1320px;
        margin-inline: auto;
    }
}

/* Search form follows the same inner gutters as Bootstrap containers. */
@media screen and (min-width: 576px) {
    .rp-header-search-form {
        width: calc(100% - 24px);
    }
}

/* Keep footer background full width, align its inner content. */
.site-footer > .container {
    margin-inline: auto;
}

/* === End RecipeNexa Unified Containers 3032 === */


/* === RecipeNexa Centered Search 3033 === */

/* 40% narrower than the 1320px desktop container. */
@media screen and (min-width: 992px) {
    .rp-header-search-form {
        width: 60%;
        max-width: 792px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Comfortable width on tablets and mobiles. */
@media screen and (max-width: 991.98px) {
    .rp-header-search-form {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
    }
}

/* === End RecipeNexa Centered Search 3033 === */


/* === RecipeNexa Search Height 3034 === */
.rp-header-search-panel {
    padding-top: 10px;
    padding-bottom: 10px;
}

.rp-header-search-form {
    align-items: stretch;
}

.rp-header-search-form input,
.rp-header-search-form button {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
    max-height: 44px;
}

.rp-header-search-form input {
    padding: 8px 14px;
    line-height: 26px;
}

.rp-header-search-form button {
    padding: 8px 18px;
    line-height: 26px;
}

@media (max-width: 575.98px) {
    .rp-header-search-panel {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}
/* === End RecipeNexa Search Height 3034 === */
