/* The main Recipes listing already has a clear page title. Remove Avada's
 * redundant Home / Recipes breadcrumb from that listing only. Recipe Category
 * archives retain their dedicated taxonomy breadcrumb. */
body.nn-recipe-listing-active .fusion-page-title-bar .fusion-breadcrumbs,
body.nn-recipe-listing-active .fusion-page-title-bar nav.fusion-breadcrumbs,
body.nn-recipe-listing-active .fusion-page-title-bar [aria-label="Breadcrumb"],
body.nn-recipe-listing-active .fusion-page-title-bar [aria-label="Breadcrumbs"] {
    display: none !important;
}

/* Recipe archive category showcase. Typography intentionally inherits Avada's
 * global heading, body and link settings rather than imposing plugin fonts. */
.nn-recipe-category-directory {
    box-sizing: border-box;
    clear: both;
    flex: 0 0 100%;
    grid-column: 1 / -1;
    position: relative;
    width: 100%;
    max-width: none;
    margin: 0 0 clamp(3rem, 6vw, 5.5rem);
}

.nn-recipe-category-directory,
.nn-recipe-category-directory * {
    box-sizing: border-box;
}

.nn-recipe-category-directory__name,
.nn-recipe-category-directory__recipe-title {
    margin-top: 0;
    padding: 0;
}

.nn-recipe-category-directory__rows {
    width: 100%;
    border-top: 0;
}

.nn-recipe-category-directory__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2.25rem);
    width: 100%;
    margin: 0;
    padding: clamp(1.5rem, 3vw, 2.6rem) 0;
    border-top: 0;
    border-bottom: 0;
}

/* Do not draw horizontal separators between landing-page category rows.
 * The optional divider directly beneath a Top-mode category header is kept. */
.nn-recipe-category-directory__rows > .nn-recipe-category-directory__row + .nn-recipe-category-directory__row {
    border-top: 0;
}

.nn-recipe-category-directory__summary {
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Per-row category-header placement configured in Recipes → Landing Page. */
.nn-recipe-category-directory__row--header-side {
    grid-template-columns: minmax(180px, 0.9fr) minmax(0, 4.1fr);
}

/* v12.6.1: visually separate the Side category header from its Recipe cards. */
.nn-recipe-category-directory__row--header-side:not(.nn-recipe-category-directory__row--summary-hidden)
    .nn-recipe-category-directory__summary {
    padding-right: clamp(1rem, 2vw, 2rem);
    border-right: 2px solid currentColor;
}

.nn-recipe-category-directory__row--header-top {
    grid-template-columns: minmax(0, 1fr);
}

.nn-recipe-category-directory__row--header-top .nn-recipe-category-directory__summary {
    width: 100%;
    max-width: none;
    padding-bottom: clamp(1.15rem, 2vw, 1.75rem);
    border-top: 0;
    border-bottom: 0;
}

/* Keep long header copy readable while allowing the divider itself to span
 * the complete four-card row. */
.nn-recipe-category-directory__row--header-top
    .nn-recipe-category-directory__summary > * {
    max-width: 60rem;
}

/* With the category summary above the cards, the first recipe begins at the
 * row edge and therefore does not need the separator or inset used between
 * neighbouring recipe cards. */
.nn-recipe-category-directory__row--header-top
    .nn-recipe-category-directory__recipe-card:first-child,
.nn-recipe-category-directory__row--header-top
    .nn-recipe-category-directory__recipe-card--page-first {
    padding-left: 0;
    border-left: 0;
}

.nn-recipe-category-directory__ancestors {
    display: block;
    margin: 0 0 0.45rem;
    opacity: 0.68;
    font-size: 0.76em;
    line-height: 1.4;
}

.nn-recipe-category-directory__name {
    margin-bottom: 0;
}

.nn-recipe-category-directory__name a,
.nn-recipe-category-directory__recipe-title a,
.nn-recipe-category-directory__view-all,
.nn-recipe-category-directory__image-link {
    color: inherit;
    text-decoration: none;
}

.nn-recipe-category-directory__name a:hover,
.nn-recipe-category-directory__name a:focus-visible,
.nn-recipe-category-directory__recipe-title a:hover,
.nn-recipe-category-directory__recipe-title a:focus-visible,
.nn-recipe-category-directory__view-all:hover,
.nn-recipe-category-directory__view-all:focus-visible {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.nn-recipe-category-directory__description {
    margin: 0.8rem 0 0;
    opacity: 0.82;
}

.nn-recipe-category-directory__description > :first-child {
    margin-top: 0;
}

.nn-recipe-category-directory__description > :last-child {
    margin-bottom: 0;
}

.nn-recipe-category-directory__view-all {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    font-size: 0.88em;
}

.nn-recipe-category-directory__recipes-shell {
    min-width: 0;
}

.nn-recipe-category-directory__recipes {
    display: grid;
    grid-template-columns: repeat(var(--nn-recipe-visible-columns, 4), minmax(0, 1fr));
    min-width: 0;
}

/* Every landing row shows up to 20 Recipes. The selected style controls the
 * desktop grid directly: one, two, three or four columns. */
.nn-recipe-category-directory__recipes-shell--multi-row
    .nn-recipe-category-directory__recipes {
    row-gap: clamp(1.5rem, 2.8vw, 2.5rem);
}

.nn-recipe-category-directory__row--columns-1
    .nn-recipe-category-directory__recipe-card,
.nn-recipe-category-directory__row--columns-2
    .nn-recipe-category-directory__recipes-shell--multi-row
    .nn-recipe-category-directory__recipe-card:nth-child(2n),
.nn-recipe-category-directory__row--columns-3
    .nn-recipe-category-directory__recipes-shell--multi-row
    .nn-recipe-category-directory__recipe-card:nth-child(3n),
.nn-recipe-category-directory__row--columns-4
    .nn-recipe-category-directory__recipes-shell--multi-row
    .nn-recipe-category-directory__recipe-card:nth-child(4n) {
    padding-right: 0;
}

.nn-recipe-category-directory__row--header-top.nn-recipe-category-directory__row--columns-1
    .nn-recipe-category-directory__recipe-card,
.nn-recipe-category-directory__row--header-top.nn-recipe-category-directory__row--columns-2
    .nn-recipe-category-directory__recipes-shell--multi-row
    .nn-recipe-category-directory__recipe-card:nth-child(2n + 1),
.nn-recipe-category-directory__row--header-top.nn-recipe-category-directory__row--columns-3
    .nn-recipe-category-directory__recipes-shell--multi-row
    .nn-recipe-category-directory__recipe-card:nth-child(3n + 1),
.nn-recipe-category-directory__row--header-top.nn-recipe-category-directory__row--columns-4
    .nn-recipe-category-directory__recipes-shell--multi-row
    .nn-recipe-category-directory__recipe-card:nth-child(4n + 1) {
    padding-left: 0;
    border-left: 0;
}

.nn-recipe-category-directory__row--columns-1
    .nn-recipe-category-directory__recipes-shell--multi-row
    .nn-recipe-category-directory__recipe-card + .nn-recipe-category-directory__recipe-card,
.nn-recipe-category-directory__row--columns-2
    .nn-recipe-category-directory__recipes-shell--multi-row
    .nn-recipe-category-directory__recipe-card:nth-child(n + 3),
.nn-recipe-category-directory__row--columns-3
    .nn-recipe-category-directory__recipes-shell--multi-row
    .nn-recipe-category-directory__recipe-card:nth-child(n + 4),
.nn-recipe-category-directory__row--columns-4
    .nn-recipe-category-directory__recipes-shell--multi-row
    .nn-recipe-category-directory__recipe-card:nth-child(n + 5) {
    padding-top: 0;
    border-top: 0;
}

.nn-recipe-category-directory__recipe-card[hidden] {
    display: none !important;
}

.nn-recipe-category-directory__recipe-card {
    min-width: 0;
    margin: 0;
    padding: 0 clamp(0.75rem, 1.2vw, 1.15rem);
    border-left: 1px solid rgba(0, 0, 0, 0.16);
}

/* v12.6.3: the first Recipe card in every visual row starts flush left,
 * without left padding or a divider. This applies to normal and paginated rows. */
.nn-recipe-category-directory__row--columns-1
    .nn-recipe-category-directory__recipe-card,
.nn-recipe-category-directory__row--columns-2
    .nn-recipe-category-directory__recipe-card:nth-child(2n + 1),
.nn-recipe-category-directory__row--columns-3
    .nn-recipe-category-directory__recipe-card:nth-child(3n + 1),
.nn-recipe-category-directory__row--columns-4
    .nn-recipe-category-directory__recipe-card:nth-child(4n + 1),
.nn-recipe-category-directory__recipe-card--page-first {
    padding-left: 0;
    border-left: 0;
}

.nn-recipe-category-directory__recipe-card:last-child,
.nn-recipe-category-directory__recipe-card--page-last {
    padding-right: 0;
}

.nn-recipe-category-directory__navigation {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: clamp(1rem, 1.8vw, 1.4rem);
}

.nn-recipe-category-directory__navigation[hidden] {
    display: none !important;
}

.nn-recipe-category-directory__navigation-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.8rem;
    border: 1px solid currentColor;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    line-height: 1;
    cursor: pointer;
}

.nn-recipe-category-directory__navigation-button:hover,
.nn-recipe-category-directory__navigation-button:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.nn-recipe-category-directory__navigation-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.nn-recipe-category-directory__navigation-button:disabled {
    cursor: default;
    opacity: 0.38;
    text-decoration: none;
}

.nn-recipe-category-directory__navigation-status {
    min-width: 5.5rem;
    text-align: center;
    opacity: 0.72;
    font-size: 0.82em;
}

.nn-recipe-category-directory__recipe-title {
    margin-bottom: 0.45rem;
    overflow-wrap: anywhere;
}

.nn-recipe-category-directory__recipe-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    opacity: 0.68;
    font-size: 0.76em;
    line-height: 1;
}

.nn-recipe-category-directory__recipe-meta svg {
    display: block;
    flex: 0 0 auto;
}

.nn-recipe-category-directory__image-link {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-top: 0.55rem;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.045);
}

.nn-recipe-category-directory__image,
.nn-recipe-category-directory__image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.nn-recipe-category-directory__image {
    object-fit: cover;
    transition: transform 180ms ease;
}

.nn-recipe-category-directory__image-link:hover .nn-recipe-category-directory__image,
.nn-recipe-category-directory__image-link:focus-visible .nn-recipe-category-directory__image {
    transform: scale(1.025);
}

.nn-recipe-category-directory__image-link:focus-visible,
.nn-recipe-category-directory__name a:focus-visible,
.nn-recipe-category-directory__recipe-title a:focus-visible,
.nn-recipe-category-directory__view-all:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.nn-recipe-category-directory__notice {
    margin: 0;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.035);
    color: inherit;
}

@media (max-width: 1024px) {
    .nn-recipe-category-directory__row {
        grid-template-columns: minmax(0, 1fr);
    }

    .nn-recipe-category-directory__summary {
        max-width: 48rem;
    }


    .nn-recipe-category-directory__row--header-side
        .nn-recipe-category-directory__summary {
        padding-right: 0;
        border-right: 0;
    }

    .nn-recipe-category-directory__recipes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 1.5rem;
    }

    .nn-recipe-category-directory__row--style-1 .nn-recipe-category-directory__recipes {
        grid-template-columns: minmax(0, 1fr);
    }

    .nn-recipe-category-directory__recipe-card:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }
}

@media (max-width: 600px) {
    .nn-recipe-category-directory__recipes {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .nn-recipe-category-directory__recipe-card,
    .nn-recipe-category-directory__recipe-card:nth-child(3),
    .nn-recipe-category-directory__recipe-card:last-child {
        padding: 0;
        border-left: 0;
    }

    .nn-recipe-category-directory__recipe-card + .nn-recipe-category-directory__recipe-card {
        padding-top: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.16);
    }

    .nn-recipe-category-directory__recipe-card--page-first {
        padding-top: 0;
        border-top: 0;
    }

    .nn-recipe-category-directory__image-link {
        aspect-ratio: 16 / 10;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nn-recipe-category-directory__image {
        transition: none;
    }
}

/* Once positioned by the archive script, the showcase occupies the full
 * usable width of Avada's centred page row. It deliberately sits outside any
 * narrower nested Recipe-query column without becoming a full-bleed section. */
.nn-recipe-category-directory--page-row {
    align-self: stretch;
    flex: 0 0 auto;
    width: min(1270px, 100vw);
    max-width: 1270px;
    margin-right: 0;
    margin-left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 767px) {
    .nn-recipe-category-directory--page-row {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
    }
}

/* v12.7.1: Recipe Category cards use the same image-first abbreviated-post
 * HTML structure as the standalone Recipe index cards. */

/* Dedicated Recipe Category archives. The page uses the same 1270px centred
 * content width and editorial four-card treatment as the category showcase.
 * Typography is sourced from Avada's global heading variables. */
body.nn-recipe-category-archive-active main.nn-recipe-category-archive {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.nn-recipe-category-archive,
.nn-recipe-category-archive * {
    box-sizing: border-box;
}

.nn-recipe-category-archive__inner {
    width: min(1270px, calc(100% - 32px));
    max-width: 1270px;
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(4rem, 7vw, 7rem);
}

.nn-recipe-category-archive__breadcrumb {
    margin: 0 0 1rem;
    font-size: 0.86em;
}

.nn-recipe-category-archive__breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nn-recipe-category-archive__breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
}

.nn-recipe-category-archive__breadcrumb li + li::before {
    content: "/";
    opacity: 0.5;
}

.nn-recipe-category-archive__breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.nn-recipe-category-archive__breadcrumb a:hover,
.nn-recipe-category-archive__breadcrumb a:focus-visible {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.nn-recipe-category-archive__header {
    max-width: 58rem;
    margin: 0 0 clamp(2.25rem, 4vw, 4rem);
}

.nn-recipe-category-archive__header h1 {
    margin: 0;
    padding: 0;
}

.nn-recipe-category-archive__description {
    margin-top: 1rem;
    opacity: 0.84;
}

.nn-recipe-category-archive__description > :first-child {
    margin-top: 0;
}

.nn-recipe-category-archive__description > :last-child {
    margin-bottom: 0;
}

.nn-recipe-category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
}

.nn-recipe-category-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 0 clamp(0.85rem, 1.35vw, 1.35rem) clamp(2rem, 3vw, 3rem);
    border-left: 1px solid rgba(0, 0, 0, 0.16);
}

.nn-recipe-category-card:nth-child(4n + 1) {
    padding-left: 0;
    border-left: 0;
}

.nn-recipe-category-card:nth-child(4n) {
    padding-right: 0;
}

.nn-recipe-category-card:nth-child(n + 5) {
    padding-top: clamp(2rem, 3vw, 3rem);
    border-top: 1px solid rgba(0, 0, 0, 0.16);
}

.nn-recipe-category-card__content.abbr-content {
    margin-top: 0.75rem;
}

.nn-recipe-category-card__term-link.term-link,
.nn-recipe-category-card__term-label.term-link {
    display: inline-block;
    margin: 0 0 0.35rem;
    color: inherit;
    text-decoration: none;
    font-size: 0.76em;
}

.nn-recipe-category-card__term-link.term-link:hover,
.nn-recipe-category-card__term-link.term-link:focus-visible {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.nn-recipe-category-card__title {
    min-height: 2.5em;
    margin: 0 0 0.55rem;
    padding: 0;
    overflow-wrap: anywhere;
    font-family: var(--h4_typography-font-family, inherit);
    font-size: var(--h4_typography-font-size, 1.3rem);
    font-style: var(--h4_typography-font-style, normal);
    font-weight: var(--h4_typography-font-weight, inherit);
    line-height: var(--h4_typography-line-height, 1.25);
    letter-spacing: var(--h4_typography-letter-spacing, normal);
    text-transform: var(--h4_typography-text-transform, none);
}

.nn-recipe-category-card__title a {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.nn-recipe-category-card__title a,
.nn-recipe-category-card__image-link,
.nn-recipe-category-card__meta.post-comments a {
    color: inherit;
    text-decoration: none;
}

.nn-recipe-category-card__title a:hover,
.nn-recipe-category-card__title a:focus-visible,
.nn-recipe-category-card__meta.post-comments a:hover,
.nn-recipe-category-card__meta.post-comments a:focus-visible {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.nn-recipe-category-card__meta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.3rem;
    margin: 0 0 0.65rem;
    opacity: 0.65;
    font-size: 0.76em;
    line-height: 1;
}

.nn-recipe-category-card__meta svg {
    display: block;
    flex: 0 0 auto;
}

.nn-recipe-category-card__image-link {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-top: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.045);
}

.nn-recipe-category-card__image,
.nn-recipe-category-card__image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.nn-recipe-category-card__image {
    object-fit: cover;
    transition: transform 180ms ease;
}

.nn-recipe-category-card__image-link:hover .nn-recipe-category-card__image,
.nn-recipe-category-card__image-link:focus-visible .nn-recipe-category-card__image {
    transform: scale(1.025);
}

.nn-recipe-category-card__title a:focus-visible,
.nn-recipe-category-card__image-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.nn-recipe-category-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: clamp(1rem, 2vw, 2rem);
}

.nn-recipe-category-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: inherit;
    text-decoration: none;
}

.nn-recipe-category-pagination .page-numbers.current {
    border-color: currentColor;
}

.nn-recipe-category-pagination a.page-numbers:hover,
.nn-recipe-category-pagination a.page-numbers:focus-visible {
    border-color: currentColor;
}

.nn-recipe-category-archive__empty {
    margin: 0;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: rgba(0, 0, 0, 0.035);
}

@media (max-width: 900px) {
    .nn-recipe-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nn-recipe-category-card,
    .nn-recipe-category-card:nth-child(4n + 1),
    .nn-recipe-category-card:nth-child(4n) {
        padding-right: clamp(0.85rem, 2vw, 1.35rem);
        padding-left: clamp(0.85rem, 2vw, 1.35rem);
        border-top: 0;
        border-left: 1px solid rgba(0, 0, 0, 0.16);
    }

    .nn-recipe-category-card:nth-child(2n + 1) {
        padding-left: 0;
        border-left: 0;
    }

    .nn-recipe-category-card:nth-child(2n) {
        padding-right: 0;
    }

    .nn-recipe-category-card:nth-child(n + 3) {
        padding-top: clamp(2rem, 4vw, 3rem);
        border-top: 1px solid rgba(0, 0, 0, 0.16);
    }
}

@media (max-width: 560px) {
    .nn-recipe-category-archive__inner {
        width: min(100% - 28px, 1270px);
        padding-top: 2rem;
    }

    .nn-recipe-category-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .nn-recipe-category-card,
    .nn-recipe-category-card:nth-child(2n + 1),
    .nn-recipe-category-card:nth-child(2n),
    .nn-recipe-category-card:nth-child(n + 3),
    .nn-recipe-category-card:nth-child(4n + 1),
    .nn-recipe-category-card:nth-child(4n) {
        padding: 0 0 1.75rem;
        border-top: 0;
        border-left: 0;
    }

    .nn-recipe-category-card + .nn-recipe-category-card {
        padding-top: 1.75rem;
        border-top: 1px solid rgba(0, 0, 0, 0.16);
    }

    .nn-recipe-category-card__title {
        min-height: 0;
    }

    .nn-recipe-category-card__image-link {
        aspect-ratio: 16 / 10;
        margin-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nn-recipe-category-card__image {
        transition: none;
    }
}

/* Landing-page rows configured with every category-header element hidden use
 * the complete row width for the four Recipe cards. */
.nn-recipe-category-directory__row--summary-hidden {
    grid-template-columns: minmax(0, 1fr);
}

.nn-recipe-category-directory__recipe-card--post-title-hidden.nn-recipe-category-directory__recipe-card--comment-count-hidden .nn-recipe-category-directory__image-link {
    margin-top: 0;
}


/* v12.5.8: the Recipe landing index uses spacing, not horizontal rules.
 * Reset every possible block-level source of a horizontal line, including the
 * former Top-mode header divider. Vertical recipe-card dividers are preserved. */
body.nn-recipe-listing-active .nn-recipe-category-directory,
body.nn-recipe-listing-active .nn-recipe-category-directory__rows,
body.nn-recipe-listing-active .nn-recipe-category-directory__row,
body.nn-recipe-listing-active .nn-recipe-category-directory__summary,
body.nn-recipe-listing-active .nn-recipe-category-directory__recipes-shell,
body.nn-recipe-listing-active .nn-recipe-category-directory__recipes {
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}

body.nn-recipe-listing-active .nn-recipe-category-directory hr {
    display: none !important;
}

body.nn-recipe-listing-active .nn-recipe-category-directory__row::before,
body.nn-recipe-listing-active .nn-recipe-category-directory__row::after,
body.nn-recipe-listing-active .nn-recipe-category-directory__summary::before,
body.nn-recipe-listing-active .nn-recipe-category-directory__summary::after,
body.nn-recipe-listing-active .nn-recipe-category-directory__recipes-shell::before,
body.nn-recipe-listing-active .nn-recipe-category-directory__recipes-shell::after {
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background-image: none !important;
}

/* v12.6.4: Recipe landing cards now use an image-first abbreviated-post
 * structure while retaining the plugin's original selectors for layout and
 * pagination compatibility. */
.nn-recipe-category-directory__recipe-card.post-abbr
    .nn-recipe-category-directory__image-link.post-abbr-img {
    margin-top: 0;
}

.nn-recipe-category-directory__recipe-content.abbr-content {
    margin-top: 0.75rem;
}

.nn-recipe-category-directory__term-link.term-link {
    display: inline-block;
    margin: 0 0 0.35rem;
    color: inherit;
    text-decoration: none;
    font-size: 0.76em;
}

.nn-recipe-category-directory__term-link.term-link:hover,
.nn-recipe-category-directory__term-link.term-link:focus-visible,
.nn-recipe-category-directory__recipe-meta.post-comments a:hover,
.nn-recipe-category-directory__recipe-meta.post-comments a:focus-visible {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.nn-recipe-category-directory__recipe-meta.post-comments a {
    color: inherit;
    text-decoration: none;
}

/* v12.7.0: plugin-owned Recipe index. The active theme still supplies the
 * global header, footer and typography, while the page body no longer depends
 * on an Avada Builder page or Recipe query element. */
body.nn-recipe-index-standalone-active #main.nn-recipe-index {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.nn-recipe-index,
.nn-recipe-index * {
    box-sizing: border-box;
}

.nn-recipe-index__inner {
    width: min(1270px, calc(100% - 32px));
    max-width: 1270px;
    margin: 0 auto;
    padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(4rem, 7vw, 7rem);
}

.nn-recipe-index__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    align-items: start;
    gap: clamp(2rem, 6vw, 6rem);
    margin: 0 0 clamp(2.5rem, 5vw, 5rem);
}

.nn-recipe-index__title {
    margin: 0;
    padding: 0;
}

.nn-recipe-index__search {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    min-height: 4rem;
    padding: 0 1.25rem;
    border: 1px solid currentColor;
    border-radius: 0.45rem;
    background: transparent;
    color: inherit;
}

.nn-recipe-index__search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
}

.nn-recipe-index__search-icon svg {
    display: block;
}

.nn-recipe-index__search-input,
.nn-recipe-index__search-input[type="search"] {
    width: 100%;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
}

.nn-recipe-index__search-input::placeholder {
    color: inherit;
    opacity: 0.82;
}

.nn-recipe-index__search:focus-within {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.nn-recipe-index .nn-recipe-category-directory {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .nn-recipe-index__inner {
        width: min(100% - 28px, 1270px);
        padding-top: 2rem;
    }

    .nn-recipe-index__header {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .nn-recipe-index__search {
        width: 100%;
        max-width: none;
    }
}

/* v12.9.0: Recipe-only search index and progressively enhanced suggestions. */
.nn-recipe-index__search {
    position: relative;
}

.nn-recipe-index__search-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.8rem 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    cursor: pointer;
}

.nn-recipe-index__search-submit svg {
    display: block;
}

.nn-recipe-index__search-submit:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.nn-recipe-search-suggestions {
    position: absolute;
    z-index: 50;
    top: calc(100% + 0.65rem);
    right: 0;
    left: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.22);
    border-radius: 0.35rem;
    background: var(--content_bg_color, #fff);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.nn-recipe-search-suggestions[hidden] {
    display: none;
}

.nn-recipe-search-suggestions__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nn-recipe-search-suggestions__item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.nn-recipe-search-suggestions__link {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    align-items: center;
    gap: 0.8rem;
    min-width: 0;
    padding: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.nn-recipe-search-suggestions__link:hover,
.nn-recipe-search-suggestions__link:focus-visible {
    background: rgba(0, 0, 0, 0.045);
    color: inherit;
    text-decoration: none;
}

.nn-recipe-search-suggestions__link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}

.nn-recipe-search-suggestions__image,
.nn-recipe-search-suggestions__image-placeholder {
    display: block;
    width: 4rem;
    height: 3.25rem;
    background: rgba(0, 0, 0, 0.055);
    object-fit: cover;
}

.nn-recipe-search-suggestions__content,
.nn-recipe-search-suggestions__title,
.nn-recipe-search-suggestions__category {
    display: block;
    min-width: 0;
}

.nn-recipe-search-suggestions__title {
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nn-recipe-search-suggestions__category {
    margin-top: 0.2rem;
    opacity: 0.68;
    font-size: 0.76em;
}

.nn-recipe-search-suggestions__all {
    display: block;
    padding: 0.85rem 1rem;
    color: inherit;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.nn-recipe-search-suggestions__all:hover,
.nn-recipe-search-suggestions__all:focus-visible {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.nn-recipe-search-suggestions__empty {
    margin: 0;
    padding: 1rem;
    opacity: 0.75;
}

.nn-recipe-search-results__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin: 0 0 clamp(2rem, 4vw, 3.5rem);
}

.nn-recipe-search-results__eyebrow {
    margin: 0 0 0.35rem;
    opacity: 0.68;
    font-size: 0.82em;
    text-transform: lowercase;
}

.nn-recipe-search-results__header h2 {
    margin: 0;
    padding: 0;
}

.nn-recipe-search-results__count {
    margin: 0.65rem 0 0;
    opacity: 0.72;
}

.nn-recipe-search-results__clear {
    flex: 0 0 auto;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.nn-recipe-search-results__grid {
    margin: 0;
}

.nn-recipe-search-results__empty {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: rgba(0, 0, 0, 0.035);
}

.nn-recipe-search-results__empty h3,
.nn-recipe-search-results__empty p {
    margin-top: 0;
}

.nn-recipe-search-results__empty p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .nn-recipe-search-results__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nn-recipe-search-suggestions__link {
        grid-template-columns: 3.25rem minmax(0, 1fr);
    }

    .nn-recipe-search-suggestions__image,
    .nn-recipe-search-suggestions__image-placeholder {
        width: 3.25rem;
        height: 2.75rem;
    }
}
