/*
Theme Name: Merenya GeneratePress Child
Description: Custom GeneratePress child theme for Merenya.
Author: Merenya
Template: generatepress
Version: 1.0.0
Text Domain: merenya
*/


/* 02 - Merenya custom properties */
:root {
    --merenya-purple-deep: #14081f;
    --merenya-purple-soft: #241238;
    --merenya-gold: #d4af37;
    --merenya-gold-muted: #c9a054;
    --merenya-ivory: #f7f2e8;
    --merenya-text-soft: #dfd4bf;

    --merenya-font-display: "Cormorant Garamond", Georgia, serif;
    --merenya-font-body: Inter, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;

    --merenya-wide: 1380px;
    --merenya-content: 760px;
    --merenya-gutter: clamp(1rem, 3vw, 2rem);
    --merenya-radius-small: 8px;
    --merenya-radius-card: 20px;
    --merenya-section-space: clamp(4rem, 8vw, 7rem);
}

/* 03 - Base elements */
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--merenya-purple-deep);
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-body);
    font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
    line-height: 1.65;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--merenya-gold);
}

/* 04 - Fluid typography */
h1,
h2,
h3,
h4 {
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-display);
    line-height: 1.08;
    text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 6vw, 4rem); }
h2 { font-size: clamp(2.25rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.5rem, 2.2vw, 1.75rem); }

/* 05 - Reusable layout utilities */
.merenya-section {
    padding: var(--merenya-section-space) var(--merenya-gutter);
}

.merenya-wide {
    width: min(100%, var(--merenya-wide));
    margin-inline: auto;
}

.merenya-reading-width {
    width: min(100%, var(--merenya-content));
    margin-inline: auto;
}

/* 06 - Reusable Merenya button */
a.merenya-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--merenya-gold);
    border-radius: 999px;
    background: var(--merenya-purple-soft);
    color: var(--merenya-gold);
    font-family: var(--merenya-font-body);
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    transition: transform 250ms ease, box-shadow 250ms ease,
        background-color 250ms ease;
}

@media (hover: hover) {
    a.merenya-button:hover {
        background: var(--merenya-gold-muted);
        color: var(--merenya-purple-deep);
        transform: translateY(-2px);
        box-shadow: 0 0 18px rgba(212, 175, 55, 0.45);
    }
}
    
/* 07 - Announcement bar */
.merenya-announcement {
    background: var(--merenya-purple-soft);
    color: var(--merenya-ivory);
}

.merenya-announcement__inner {
    min-height: 42px;
    width: min(100%, var(--merenya-wide));
    margin-inline: auto;
    padding: 0.55rem var(--merenya-gutter);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.merenya-announcement img {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.merenya-announcement a {
    color: var(--merenya-gold);
    font-family: var(--merenya-font-display);
    font-size: clamp(0.82rem, 0.78rem + 0.45vw, 1.25rem);
    line-height: 1.2;
    text-decoration: none;
}

.merenya-announcement a:hover,
.merenya-announcement a:focus-visible {
    color: var(--merenya-ivory);
}

@media (max-width: 480px) {
    .merenya-announcement__inner {
        padding-inline: 0.75rem;
        gap: 0.4rem;
    }

    .merenya-announcement__inner img {
        flex-basis: 16px;
        width: 16px;
        height: 16px;
    }

    .merenya-announcement__inner a {
        font-size: 0.82rem;
        line-height: 1.25;
    }
}

/* 08 - Header and navigation */
.site-header {
    background: var(--merenya-purple-deep);
}

.main-navigation {
    background: transparent;
}

.main-navigation ul ul {
    background: rgba(20, 8, 31, 0.94);
    box-shadow: none;
}

.inside-header {
    width: min(100%, var(--merenya-wide));
    margin-inline: auto;
    padding: 1rem var(--merenya-gutter);
}

.site-header .site-logo img,
.main-navigation .navigation-branding img {
    width: clamp(200px, 17vw, 250px);
    max-width: 250px;
    height: auto;
    max-height: none;
}

.main-navigation .main-nav ul li a {
    color: var(--merenya-ivory);
    background-color: transparent;
    font-family: var(--merenya-font-body);
    font-weight: 500;
    padding-inline: clamp(0.65rem, 1.3vw, 1.05rem);
}

.main-navigation .main-nav ul li > a:hover,
.main-navigation .main-nav ul li > a:focus-visible,
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current-menu-ancestor > a {
    color: var(--merenya-gold);
    background-color: transparent;
}

.main-navigation .menu-item-merenya-shop > a {
    color: var(--merenya-gold);
    border: 1px solid currentColor;
    border-radius: 999px;
    margin-block: 0.55rem;
    line-height: 2.2;
}

.menu-toggle,
.mobile-menu-control-wrapper .menu-toggle {
    color: var(--merenya-ivory);
    background: transparent;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    color: var(--merenya-gold);
    background: transparent;
}

/* Desktop navigation position and gold underline */
@media (min-width: 1025px) {
    .inside-header {
        position: relative;
        align-items: flex-start;
    }

    .inside-header .main-navigation {
    position: absolute;
    top: 1rem;
    left: 50%;
    width: max-content;
    margin: 0;
    transform: translateX(-50%);
}

    .main-navigation .main-nav > ul {
    flex-wrap: nowrap;
}

    .main-navigation .main-nav > ul > li > a {
        position: relative;
        text-decoration: none;
        white-space: nowrap;
    }

    .main-navigation .main-nav > ul > li > a::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 7px;
        width: min(40px, 60%);
        height: 1px;
        background-color: var(--merenya-gold);
        transform: translateX(-50%) scaleX(0);
        transform-origin: center;
        transition: transform 200ms ease;
    }

    .main-navigation .main-nav > ul > li > a:hover::after,
    .main-navigation .main-nav > ul > li > a:focus-visible::after,
    .main-navigation .main-nav > ul > li.current-menu-item > a::after,
    .main-navigation .main-nav > ul > li.current-menu-ancestor > a::after {
        transform: translateX(-50%) scaleX(1);
    }
}

@media (max-width: 1024px) {
    .inside-header {
        padding-block: 0.8rem;
    }

    .site-header .site-logo img,
    .main-navigation .navigation-branding img {
    width: clamp(110px, 22vw, 185px);
    max-width: 185px;
    height: auto;
    max-height: none;
    }

    .main-navigation.toggled .main-nav {
        background: var(--merenya-purple-soft);
    }

    .main-navigation .menu-item-merenya-shop > a {
        display: inline-flex;
        margin: 0.5rem 1rem 1rem;
        padding-inline: 1rem;
    }
}


/* 09 - Homepage shell and hero */
body.home .entry-header {
    display: none;
}

body.home .site-content {
    padding: 0;
}

body.home .entry-content {
    margin-top: 0;
}

.merenya-home {
    width: 100%;
    background: var(--merenya-purple-deep);
    color: var(--merenya-ivory);
}

/* Place the homepage header over the hero */
body.home .site-header {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 20;
    background: transparent;
}

/* Landscape hero */
.merenya-hero {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    min-height: calc(56.25vw + 1rem);
    aspect-ratio: 16 / 9;
    padding: 0;
    overflow: hidden;
    background-color: var(--merenya-purple-deep);
    background-image:
        linear-gradient(
            rgba(20, 8, 31, 0.08),
            rgba(20, 8, 31, 0.22)
        ),
        url("https://merenya.com/wp-content/uploads/2026/09/merenya-home-hero-landscape.webp");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

.merenya-hero__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    margin: 0;
    text-align: center;
}

/* Desktop heading */
h1.merenya-hero__title {
    position: absolute;
    top: 15%;
    left: 50%;
    width: min(calc(100% - 2rem), 980px);
    margin: 0;
    color: var(--merenya-purple-soft);
    font-size: clamp(2rem, 3.2vw, 2.85rem);
    font-weight: 400;
    letter-spacing: 0.035em;
    line-height: 1.05;
    text-shadow: 0 1px 8px rgba(247, 242, 232, 0.25);
    transform: translateX(-50%);
}

/* Desktop supporting text */
.merenya-hero__text {
    position: absolute;
    top: 29%;
    left: 50%;
    width: min(calc(100% - 2rem), 56rem);
    margin: 0;
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-body);
    font-size: clamp(0.95rem, 1.1vw, 1rem);
    font-weight: 400;
    letter-spacing: 0.005em;
    line-height: 1.4;
    text-align: center;
    text-wrap: balance;
    transform: translateX(-50%);
}

/* Desktop hero button */
a.merenya-button.merenya-hero__button {
    position: absolute;
    top: 38%;
    left: 0;
    right: 0;
    z-index: 3;
    width: max-content;
    max-width: calc(100% - 2rem);
    min-height: 44px;
    margin: 0 auto;
    padding: 0.65rem 1.8rem;
    border-color: var(--merenya-gold);
    background: var(--merenya-purple-soft);
    color: var(--merenya-gold);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (hover: hover) {
    a.merenya-button.merenya-hero__button:hover {
        background: var(--merenya-gold);
        color: var(--merenya-purple-deep);
    }
}

/* Tablet and mobile portrait */
@media (max-width: 1024px) and (orientation: portrait) {
    .merenya-hero {
        aspect-ratio: 9 / 16;
        background-image:
            linear-gradient(
                rgba(20, 8, 31, 0.08),
                rgba(20, 8, 31, 0.38)
            ),
            url("https://merenya.com/wp-content/uploads/2026/09/merenya-home-hero-portrait.webp");
        background-position: center center;
    }

    h1.merenya-hero__title {
        top: 18%;
        width: calc(100% - 1rem);
        font-size: clamp(1.2rem, 5.4vw, 2.35rem);
        line-height: 1.05;
    }

    .merenya-hero__text {
        top: 55%;
        width: min(calc(100% - 2rem), 32rem);
        color: var(--merenya-ivory);
        font-size: clamp(0.88rem, 2vw, 1.05rem);
        line-height: 1.45;
        text-shadow: 0 2px 8px rgba(20, 8, 31, 0.9);
    }

    .merenya-hero__text br {
        display: none;
    }

    a.merenya-button.merenya-hero__button {
        top: 68%;
        min-height: 42px;
        padding: 0.6rem 1.15rem;
        font-size: 0.86rem;
    }
}

/* Tablet and mobile landscape */
@media (max-width: 1024px) and (orientation: landscape) {
    .merenya-hero {
        aspect-ratio: 16 / 9;
        background-position: center center;
    }

    body.home h1.merenya-hero__title {
        top: 12%;
        width: calc(100% - 10rem);
        color: var(--merenya-purple-soft);
        font-size: clamp(1.4rem, 3.2vw, 2rem);
        line-height: 1.05;
    }

    body.home .merenya-hero__text {
        top: 27%;
        width: min(calc(100% - 3rem), 48rem);
        color: var(--merenya-purple-soft);
        font-size: clamp(0.78rem, 1.7vw, 0.9rem);
        line-height: 1.4;
        text-shadow: none;
    }

    a.merenya-button.merenya-hero__button {
        top: 35%;
        min-height: 40px;
        padding: 0.55rem 1.1rem;
        font-size: 0.82rem;
    }
}

/* Mobile portrait heading refinement */
@media (max-width: 599px) and (orientation: portrait) {
    body.home h1.merenya-hero__title {
        top: 21%;
        color: var(--merenya-purple-soft);
    }
}

/* 09.9 - Fix mobile landscape hero button tap area */
@media (max-width: 1024px) and (orientation: landscape) {
    body.home .site-header {
        pointer-events: none;
    }

    body.home .site-header .site-logo a,
    body.home .site-header .navigation-branding a,
    body.home .site-header .menu-toggle,
    body.home .site-header .main-nav a {
        pointer-events: auto;
    }
}

/* 10 - Homepage introduction */
.merenya-intro {
    padding: clamp(3rem, 5vw, 5rem) var(--merenya-gutter);
    background-color: var(--merenya-ivory);
    background-image: url("https://merenya.com/wp-content/uploads/2026/09/merenya-clear-background.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
}

.merenya-intro > .merenya-reading-width {
    width: min(100%, 80rem);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 2.2vw, 2rem);
}

.merenya-intro > .merenya-reading-width > * {
    margin: 0;
}

.merenya-intro h2,
.merenya-intro p {
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-display);
    font-weight: 400;
}

.merenya-intro .merenya-intro__title {
    font-size: clamp(2.1rem, 4.2vw, 3.75rem);
    line-height: 1.15;
}

.merenya-intro .merenya-intro__subtitle {
    font-size: clamp(1.25rem, 2.1vw, 1.875rem);
    font-style: italic;
    font-weight: 600;
    line-height: 1.4;
}

.merenya-intro .merenya-intro__copy,
.merenya-intro .merenya-intro__closing {
    max-width: 100%;
    font-size: clamp(1.125rem, 1.8vw, 1.625rem);
    line-height: 1.7;
}

.merenya-intro .merenya-divider {
    display: block;
    width: min(100%, 260px);
    height: auto;
}

.merenya-intro .merenya-intro__button {
    max-width: 100%;
    min-height: 48px;
    padding: 0.8rem 1.75rem;
    border: 1px solid var(--merenya-gold);
    border-radius: 999px;
    background: var(--merenya-purple-soft);
    color: var(--merenya-gold);
    font-family: var(--merenya-font-display);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.04em;
    white-space: normal;
}

.merenya-intro .merenya-intro__button:hover,
.merenya-intro .merenya-intro__button:focus-visible {
    background: var(--merenya-gold);
    color: var(--merenya-purple-deep);
}

.merenya-intro .merenya-intro__button:focus-visible {
    outline: 2px solid var(--merenya-purple-soft);
    outline-offset: 4px;
}

/* 11 - Four pillars */
.merenya-pillars-section {
    background-color: var(--merenya-purple-deep);
    background-image: url("https://merenya.com/wp-content/uploads/2026/09/merenya-purple-cosmos-background.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    text-align: center;
}

.merenya-pillars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1rem, 2.4vw, 2.25rem);
    margin-top: clamp(2rem, 5vw, 3.5rem);
}

.merenya-pillar-card {
    display: grid;
    place-items: center;
}

.merenya-pillar-card a {
    display: block;
    width: 100%;
    border-radius: var(--merenya-radius-card);
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.merenya-pillar-card .merenya-pillar-image {
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    border-radius: var(--merenya-radius-card);
}

.merenya-pillar-image.merenya-ring-required {
    border: 1px solid var(--merenya-gold-muted);
}

@media (hover: hover) {
    .merenya-pillar-card a:hover {
        transform: translateY(-4px) scale(1.04);
        box-shadow: 0 0 18px rgba(212, 175, 55, 0.62);
    }
}

.merenya-pillar-card a:focus-visible {
    outline: 3px solid var(--merenya-gold);
    outline-offset: 5px;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.62);
}

.merenya-pillar-card a:active {
    transform: scale(1.02);
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.62);
    transition-duration: 80ms;
}

@media (max-width: 1023px) {
    .merenya-pillars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .merenya-pillars {
        grid-template-columns: 1fr;
    }

    .merenya-pillar-card {
        width: min(100%, 320px);
        justify-self: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .merenya-pillar-card a,
    .merenya-pillar-card a:hover,
    .merenya-pillar-card a:active {
        transform: none;
        transition: none;
    }
}

/* 12 - Category panels */
.merenya-categories-section {
    padding: clamp(2rem, 3vw, 3rem) var(--merenya-gutter);
    background: var(--merenya-ivory);
    color: var(--merenya-purple-soft);
}

.merenya-categories-layout {
    display: grid;
    grid-template-columns: minmax(14rem, 1.25fr) minmax(0, 4fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.merenya-categories__intro {
    display: grid;
    gap: 1rem;
    min-width: 0;
    text-align: left;
}

.merenya-categories__intro > * {
    margin: 0;
}

.merenya-categories__intro h2 {
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-display);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 400;
    line-height: 1.2;
    text-align: center;
}

.merenya-categories__intro p {
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-display);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.55;
}

.merenya-categories__intro .merenya-divider {
    display: block;
    width: min(100%, 240px);
    height: auto;
    justify-self: center;
}

.merenya-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: clamp(0.75rem, 1.25vw, 1.25rem);
    min-width: 0;
    margin: 0;
}

.merenya-category-card {
    min-width: 0;
}

.merenya-category-card a {
    display: block;
    border-radius: var(--merenya-radius-card);
    transition: transform 250ms ease, box-shadow 250ms ease;
}

.merenya-category-card .merenya-category-image {
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
    border: 2px solid var(--merenya-gold-muted);
    border-radius: var(--merenya-radius-card);
}

@media (hover: hover) {
    .merenya-category-card a:hover {
        transform: translateY(-4px) scale(1.025);
        box-shadow: 0 0 24px rgba(212, 175, 55, 0.48);
    }
}

.merenya-category-card a:focus-visible {
    outline: 3px solid var(--merenya-gold);
    outline-offset: 5px;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.48);
}

.merenya-category-card a:active {
    transform: scale(1.015);
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.48);
    transition-duration: 80ms;
}

@media (max-width: 1100px) {
    .merenya-categories-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .merenya-categories__intro {
        width: min(100%, 38rem);
        margin-inline: auto;
        text-align: center;
    }

    .merenya-categories {
        grid-template-columns: repeat(2, minmax(0, 320px));
        justify-content: center;
    }
}

@media (max-width: 560px) {
    .merenya-categories {
        grid-template-columns: minmax(0, 320px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .merenya-category-card a,
    .merenya-category-card a:hover,
    .merenya-category-card a:active {
        transform: none;
        transition: none;
    }
}

/* 13 - Stay Connected: moon, copy and signup layout */
/* Revised: full-width capsule fields and larger portrait-phone moon. */

.merenya-connect {
    --signup-ink: var(--merenya-ivory);
    --signup-field: rgba(20, 8, 31, 0.35);
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2.5rem);
    margin: 0;
    padding: 0;
    color: var(--merenya-ivory);
    background: var(--merenya-purple-deep)
        url("https://merenya.com/wp-content/uploads/2026/09/merenya-purple-cosmos-background.webp")
        center / cover no-repeat;
}

.merenya-connect__story {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
}

.merenya-connect__story > *,
.merenya-connect__signup {
    min-width: 0;
}

.merenya-connect__moon,
.merenya-connect__moon img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.merenya-connect__copy {
    padding-block: 2rem;
}

.merenya-connect .merenya-connect__title {
    margin: 0 0 0.65rem;
    color: var(--merenya-gold);
    font-family: var(--merenya-font-display);
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.045em;
}

.merenya-connect .merenya-connect__text {
    margin: 0;
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-body);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.65;
}

.merenya-connect__signup {
    padding: 1.5rem var(--merenya-gutter) 1.5rem 0;
    color: var(--signup-ink);
    font-family: var(--merenya-font-body);
}

@media (max-width: 1100px) {
    .merenya-connect {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .merenya-connect__story {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
        padding-right: var(--merenya-gutter);
    }

    .merenya-connect__signup {
        padding: 0 var(--merenya-gutter) 2rem;
    }
}

@media (max-width: 600px) {
    .merenya-connect__story {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.25rem;
        padding: 1.5rem var(--merenya-gutter);
    }

    .merenya-connect__moon {
        width: min(100%, 320px);
        margin-inline: auto;
    }

    .merenya-connect__copy {
        width: 100%;
        max-width: 30rem;
        margin-inline: auto;
        padding: 0;
        text-align: center;
    }

    .merenya-connect__signup {
        --signup-ink: var(--merenya-purple-deep);
        --signup-field: var(--merenya-ivory);
        padding: 1.5rem var(--merenya-gutter);
        background: var(--merenya-ivory);
    }
}

/* 14 - Newsletter Plugin capsule */

.merenya-connect .tnp-subscription-minimal {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
    color: var(--signup-ink);
    text-align: left;
}

.merenya-connect .tnp-subscription-minimal form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    white-space: normal;
}

/* Extra fields and messages occupy their own full row. */
.merenya-connect .tnp-subscription-minimal form > * {
    grid-column: 1 / -1;
    min-width: 0;
}

.merenya-connect .tnp-subscription-minimal input.tnp-email,
.merenya-connect .tnp-subscription-minimal input.tnp-submit {
    box-sizing: border-box;
    display: block;
    float: none;
    width: 100%;
    min-width: 0;
    max-width: none;
    justify-self: stretch;
    min-height: 52px;
    height: auto;
    margin: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--merenya-gold);
    font-family: var(--merenya-font-body);
    line-height: 1.4;
}

.merenya-connect .tnp-subscription-minimal input.tnp-email {
    grid-column: 1;
    grid-row: 1;
    border-right: 0;
    border-radius: 999px 0 0 999px;
    background: var(--signup-field);
    color: var(--signup-ink);
    font-size: 1rem;
    text-align: center;
}

.merenya-connect .tnp-subscription-minimal input.tnp-email::placeholder {
    color: var(--signup-ink);
    opacity: 0.85;
}

.merenya-connect .tnp-subscription-minimal input.tnp-submit {
    grid-column: 2;
    grid-row: 1;
    border-radius: 0 999px 999px 0;
    background: var(--merenya-gold);
    color: var(--merenya-purple-deep);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
}

.merenya-connect .tnp-subscription-minimal input.tnp-submit:hover {
    background: var(--merenya-gold-muted);
}

.merenya-connect .tnp-subscription-minimal input.tnp-email:focus,
.merenya-connect .tnp-subscription-minimal input.tnp-submit:focus {
    outline: 2px solid var(--signup-ink);
    outline-offset: 3px;
}

.merenya-connect__signup a {
    color: inherit;
    text-decoration: underline;
}

.merenya-connect .tnp-subscription-minimal .tnp-privacy-field {
    grid-column: 1 / -1;
    margin: 0.875rem 0 0;
    color: var(--signup-ink);
    font-size: 0.875rem;
    line-height: 1.5;
    text-align: center;
    white-space: normal;
}

.merenya-connect .tnp-subscription-minimal .tnp-privacy-field label {
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    line-height: inherit;
    white-space: normal;
}

@media (max-width: 600px) {
    .merenya-connect .tnp-subscription-minimal form {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
    }

    .merenya-connect .tnp-subscription-minimal input.tnp-email,
    .merenya-connect .tnp-subscription-minimal input.tnp-submit {
        grid-column: 1;
        grid-row: auto;
        border: 1px solid var(--merenya-gold);
        border-radius: 999px;
    }

    .merenya-connect .tnp-subscription-minimal .tnp-privacy-field {
        margin-top: 0.25rem;
    }
}

/* 15 - Custom footer */
/* Footer revision: 2026-09-09 */

.merenya-site-footer {
    box-sizing: border-box;
    padding: clamp(2.5rem, 4vw, 4rem) var(--merenya-gutter) 1.5rem;
    border-top: 1px solid rgba(201, 160, 84, 0.35);
    background: var(--merenya-purple-soft);
    color: var(--merenya-text-soft);
    font-family: var(--merenya-font-body);
    font-size: 1rem;
    line-height: 1.65;
}

.merenya-site-footer *,
.merenya-site-footer *::before,
.merenya-site-footer *::after {
    box-sizing: border-box;
}

.merenya-footer-grid {
    width: min(100%, var(--merenya-wide));
    margin-inline: auto;
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(0, 0.85fr)
        minmax(0, 0.85fr)
        minmax(0, 0.95fr)
        minmax(0, 1.25fr);
    gap: clamp(1.25rem, 2.2vw, 2rem);
    align-items: start;
}

/* Support and the quote use the main grid's columns. */
.merenya-footer-split {
    display: contents;
}

.merenya-footer-brand,
.merenya-footer-links,
.merenya-footer-quote {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

.merenya-footer-logo-link {
    display: block;
    width: min(100%, 250px);
}

.merenya-footer-logo {
    display: block;
    width: 100%;
    max-width: 250px;
    height: auto;
    filter: none;
}

.merenya-footer-logo-text {
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-display);
    font-size: 2rem;
    font-weight: 700;
}

.merenya-footer-description {
    max-width: 29rem;
    margin: 1rem 0 1.35rem;
    color: var(--merenya-text-soft);
}

.merenya-footer-links h2 {
    margin: 0 0 1rem;
    color: var(--merenya-gold-muted);
    font-size: 1.45rem;
}

.merenya-footer-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.merenya-footer-links li + li {
    margin-top: 0.7rem;
}

.merenya-footer-links a {
    color: var(--merenya-text-soft);
    text-decoration: none;
}

.merenya-footer-links a:hover,
.merenya-footer-links a:focus-visible {
    color: var(--merenya-gold);
}

.merenya-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-social-link {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--merenya-gold-muted);
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: var(--merenya-gold-muted);
    transition: color 250ms ease, background-color 250ms ease,
        box-shadow 250ms ease, transform 250ms ease;
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

@media (hover: hover) {
    .footer-social-link:hover {
        color: var(--merenya-purple-soft);
        background: var(--merenya-gold-muted);
        box-shadow: 0 0 15px rgba(201, 160, 84, 0.7);
        transform: translateY(-2px);
    }
}

.merenya-footer-quote {
    width: 100%;
    margin: 0;
    padding: 1.4rem;
    border: 1px solid rgba(201, 160, 84, 0.55);
    border-radius: var(--merenya-radius-small);
    text-align: center;
}

.merenya-footer-star {
    color: var(--merenya-gold-muted);
    font-size: 1.35rem;
}

.merenya-footer-quote p {
    margin: 0.75rem 0;
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-display);
    font-size: 1.25rem;
    line-height: 1.4;
}

.merenya-footer-quote strong {
    color: var(--merenya-gold-muted);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
}

.merenya-footer-divider {
    display: block;
    width: min(100%, 180px);
    height: auto;
    margin: 1rem auto;
}

.merenya-footer-divider-line {
    display: block;
    width: min(100%, 110px);
    height: 1px;
    margin: 1rem auto;
    background: var(--merenya-gold-muted);
}

.merenya-footer-bottom {
    width: min(100%, var(--merenya-wide));
    margin: clamp(3rem, 6vw, 5rem) auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(201, 160, 84, 0.22);
    color: var(--merenya-gold);
    font-size: 0.85rem;
    text-align: center;
}

/* Hide GeneratePress's original site-info strip. */
.site-info {
    display: none;
}

/* Tablets and narrower landscape screens. */
@media (max-width: 1100px) {
    .merenya-footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .merenya-footer-brand {
        grid-column: 1 / -1;
        width: min(100%, 32rem);
        justify-self: center;
        text-align: center;
    }

    .merenya-footer-logo-link,
    .merenya-footer-description {
        margin-inline: auto;
    }

    .merenya-footer-socials {
        justify-content: center;
    }

    .merenya-footer-quote {
        grid-column: 1 / -1;
        width: min(100%, 360px);
        justify-self: center;
    }
}

/* Phone portrait and other narrow windows. */
@media (max-width: 600px) {
    .merenya-footer-grid {
        grid-template-columns: minmax(0, 1fr);
        text-align: center;
    }
}

/* 16 - WooCommerce */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    border: 1px solid var(--merenya-gold);
    border-radius: 999px;
    background: var(--merenya-gold);
    color: var(--merenya-purple-deep);
    font-family: var(--merenya-font-body);
    font-weight: 700;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: var(--merenya-gold-muted);
    color: var(--merenya-purple-deep);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce .select2-container .select2-selection {
    min-height: 46px;
    border: 1px solid rgba(212, 175, 55, 0.55);
    border-radius: var(--merenya-radius-small);
    background: #ffffff;
    color: #241238;
}

.woocommerce-message,
.woocommerce-info {
    border-top-color: var(--merenya-gold);
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--merenya-gold-muted);
}

/* 17 - Interior page components */
.merenya-page-hero {
    padding: clamp(6rem, 12vw, 10rem) var(--merenya-gutter);
    background: var(--merenya-purple-soft);
    text-align: center;
}

.merenya-page-hero__eyebrow {
    margin: 0 0 0.75rem;
    color: var(--merenya-gold);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.merenya-page-hero__title {
    margin: 0;
}

.merenya-page-hero__intro {
    width: min(100%, var(--merenya-content));
    margin: 1.25rem auto 0;
    color: var(--merenya-text-soft);
}

.merenya-two-column {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.merenya-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

.merenya-card {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: var(--merenya-radius-card);
    background: var(--merenya-purple-soft);
}

.merenya-card h2,
.merenya-card h3 {
    margin-top: 0;
}

.merenya-article-grid .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
}

.merenya-article-grid .wp-block-post {
    padding: 1.25rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--merenya-radius-card);
    background: var(--merenya-purple-soft);
}

@media (max-width: 900px) {
    .merenya-two-column,
    .merenya-card-grid,
    .merenya-article-grid .wp-block-post-template {
        grid-template-columns: 1fr;
    }
}

/* 17.1 - Philosophy hero. Revision: 2026-09-13.2 */
/* Replace the previous complete Section 17.1. Keep Section 18 below it. */

@font-face {
    font-family: "Merenya Allura";
    src: url("assets/fonts/Allura-Regular.woff") format("woff");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* Existing functions.php assigns this class to the Philosophy page. */
body.merenya-philosophy-page #page {
    max-width: none;
}

body.merenya-philosophy-page .site-content,
body.merenya-philosophy-page .inside-article {
    padding: 0;
}

body.merenya-philosophy-page .site-main,
body.merenya-philosophy-page .entry-content {
    margin: 0;
}

body.merenya-philosophy-page .inside-article {
    background: transparent;
}

/* Put this page's existing header over its artwork. */
body.merenya-philosophy-page .site-header {
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    z-index: 20;
    background: transparent;
    pointer-events: none;
}

body.merenya-philosophy-page .site-header a,
body.merenya-philosophy-page .site-header button,
body.merenya-philosophy-page .site-header input,
body.merenya-philosophy-page .site-header select {
    pointer-events: auto;
}

.merenya-philosophy-hero {
    --merenya-philosophy-art: url("https://merenya.com/wp-content/uploads/2026/09/merenya-philosophy-hero-landscape.webp");
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--merenya-ivory);
    background-color: var(--merenya-purple-deep);
    background-image:
        linear-gradient(
            90deg,
            rgba(20, 8, 31, 0.58) 0%,
            rgba(20, 8, 31, 0.36) 38%,
            rgba(20, 8, 31, 0) 65%
        ),
        var(--merenya-philosophy-art);
    background-repeat: no-repeat;
    background-position: center, 65% center;
    background-size: cover;
}

/* The artwork now comes from the background, not the old Image block. */
.merenya-philosophy-hero .merenya-philosophy-hero__art {
    display: none;
}

.merenya-philosophy-hero::before {
    content: none;
}

.merenya-philosophy-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    height: clamp(10rem, 17vw, 16rem);
    background: linear-gradient(rgba(20, 8, 31, 0.25), transparent);
    pointer-events: none;
}

.merenya-philosophy-hero__inner {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    width: min(100%, var(--merenya-wide));
    min-height: max(45rem, 56.25vw);
    margin: 0 auto;
    padding: clamp(15rem, 22vw, 20rem) var(--merenya-gutter)
        clamp(3rem, 5vw, 6rem);
}

.merenya-philosophy-hero__copy {
    display: grid;
    gap: 1rem;
    width: min(43%, 34rem);
    min-width: 0;
    text-align: center;
    justify-items: center;
}

.merenya-philosophy-hero__copy > * {
    min-width: 0;
    margin: 0;
}

.merenya-philosophy-hero h1.merenya-philosophy-hero__title {
    margin: 0;
    padding-block: 0.04em 0.12em;
    color: var(--merenya-gold);
    font-family: var(--merenya-font-display);
    font-size: clamp(4.25rem, 8vw, 8rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: normal;
    text-wrap: wrap;
}

.merenya-philosophy-hero__script {
    font-family: "Merenya Allura", "Brush Script MT", cursive;
    font-weight: 400;
    font-style: normal;
}

.merenya-philosophy-hero__mark {
    position: static;
    margin-left: 0.08em;
    font-family: var(--merenya-font-display);
    font-size: 0.18em;
    line-height: 1;
    vertical-align: super;
}

.merenya-philosophy-hero .merenya-philosophy-hero__divider {
    display: block;
    width: min(100%, 300px);
    margin: 0.25rem auto;
}

.merenya-philosophy-hero .merenya-philosophy-hero__divider img,
.merenya-philosophy-hero img.merenya-philosophy-hero__divider {
    display: block;
    height: auto;
    max-height: 44px;
    object-fit: contain;
}

.merenya-philosophy-hero .merenya-philosophy-hero__divider img {
    width: 100%;
}

.merenya-philosophy-hero .merenya-philosophy-hero__subheading {
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-display);
    font-size: clamp(1.75rem, 2.6vw, 2.75rem);
    font-weight: 400;
    line-height: 1.2;
}

.merenya-philosophy-hero .merenya-philosophy-hero__intro {
    max-width: 29rem;
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-body);
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    font-weight: 400;
    line-height: 1.7;
}

/* Supports the existing GenerateBlocks Button and a WordPress Buttons wrapper. */
.merenya-philosophy-hero .merenya-philosophy-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-self: center;
    justify-content: center;
    max-width: 100%;
    margin-top: 0.5rem;
}

.merenya-philosophy-hero__actions .wp-block-button {
    max-width: 100%;
    margin: 0;
}

.merenya-philosophy-hero a.merenya-philosophy-hero__actions,
.merenya-philosophy-hero .merenya-philosophy-hero__actions a {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    max-width: 100%;
    min-height: 48px;
    padding: 0.85rem 1.5rem;
    border: 1px solid var(--merenya-gold);
    border-radius: 999px;
    background: var(--merenya-gold);
    color: var(--merenya-purple-deep);
    font-family: var(--merenya-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    transition: background-color 200ms ease, box-shadow 200ms ease;
}

.merenya-philosophy-hero a.merenya-philosophy-hero__actions:hover,
.merenya-philosophy-hero .merenya-philosophy-hero__actions a:hover {
    background: var(--merenya-gold-muted);
    color: var(--merenya-purple-deep);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}

.merenya-philosophy-hero a.merenya-philosophy-hero__actions:focus,
.merenya-philosophy-hero .merenya-philosophy-hero__actions a:focus {
    outline: 2px solid var(--merenya-ivory);
    outline-offset: 4px;
}

/* Smaller screens: a real-height art area, then the text and CTA. */
@media (max-width: 1100px) {
    .merenya-philosophy-hero {
        background-image: none;
    }

    .merenya-philosophy-hero::before {
        content: "";
        display: block;
        width: 100%;
        height: clamp(23rem, 65vw, 37rem);
        background-image:
            linear-gradient(
                180deg,
                rgba(20, 8, 31, 0.15),
                rgba(20, 8, 31, 0) 80%,
                var(--merenya-purple-deep)
            ),
            var(--merenya-philosophy-art);
        background-repeat: no-repeat;
        background-position: center, 70% center;
        background-size: cover;
    }

    .merenya-philosophy-hero::after {
        content: none;
    }

    .merenya-philosophy-hero__inner {
        min-height: 0;
        padding: 2rem var(--merenya-gutter) 3rem;
    }

    .merenya-philosophy-hero__copy {
        width: min(100%, 36rem);
        margin-inline: auto;
        text-align: center;
        justify-items: center;
    }

    .merenya-philosophy-hero h1.merenya-philosophy-hero__title {
        font-size: clamp(4rem, 10vw, 7rem);
    }

    .merenya-philosophy-hero .merenya-philosophy-hero__divider {
        margin-inline: auto;
    }

    .merenya-philosophy-hero .merenya-philosophy-hero__actions {
        justify-self: center;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .merenya-philosophy-hero__inner {
        padding-top: 1.5rem;
    }

    .merenya-philosophy-hero h1.merenya-philosophy-hero__title {
        font-size: clamp(3.25rem, 16vw, 6rem);
    }
}

/* End 17.1 - Philosophy hero */

/* 17.2 - Philosophy purpose. Revision: 2026-09-13 */
/* Add after the end of Section 17.1 and before Section 18. */

.merenya-philosophy-purpose,
.merenya-philosophy-purpose * {
    box-sizing: border-box;
}

.merenya-philosophy-purpose {
    /* A deeper gold for large quote text on the light background. */
    --merenya-purpose-quote-gold: #765316;
    width: 100%;
    margin: 0;
    padding: clamp(2.75rem, 4.8vw, 4.5rem) var(--merenya-gutter);
    color: var(--merenya-purple-soft);
    background-color: var(--merenya-ivory);
    background-image: url("https://merenya.com/wp-content/uploads/2026/09/merenya-clear-background.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.merenya-philosophy-purpose .merenya-philosophy-purpose__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 4.5vw, 4rem);
    width: min(100%, var(--merenya-wide));
    min-width: 0;
    margin: 0 auto;
    padding: 0;
}

.merenya-philosophy-purpose .merenya-philosophy-purpose__copy {
    display: grid;
    gap: 1rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
}

.merenya-philosophy-purpose .merenya-philosophy-purpose__copy > * {
    min-width: 0;
    margin: 0;
}

.merenya-philosophy-purpose .merenya-philosophy-purpose__eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* The small gold line beside A Higher Purpose. */
.merenya-philosophy-purpose .merenya-philosophy-purpose__eyebrow::after {
    content: "";
    flex: 0 1 5.25rem;
    height: 1px;
    background: var(--merenya-gold-muted);
}

.merenya-philosophy-purpose .merenya-philosophy-purpose__title {
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-display);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    text-wrap: balance;
}

.merenya-philosophy-purpose .merenya-philosophy-purpose__text {
    max-width: 48rem;
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-body);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    font-weight: 400;
    line-height: 1.75;
}

/* Put this class on the outer WordPress Quote block. */
.merenya-philosophy-purpose .merenya-philosophy-purpose__quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    gap: 1.25rem;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 1rem 0 1rem clamp(1.5rem, 3.5vw, 3.5rem);
    border: 0;
    border-inline-start: 1px solid rgba(201, 160, 84, 0.6);
    background: transparent;
    box-shadow: none;
    color: var(--merenya-purpose-quote-gold);
    font-family: var(--merenya-font-display);
    font-size: clamp(1.625rem, 2.4vw, 2.125rem);
    font-style: italic;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

.merenya-philosophy-purpose .merenya-philosophy-purpose__quote p {
    max-width: 100%;
    margin: 0;
    color: inherit;
    font: inherit;
}

.merenya-philosophy-purpose .merenya-philosophy-purpose__quote::before {
    content: none;
}

/* The short gold finishing line beneath the quote. */
.merenya-philosophy-purpose .merenya-philosophy-purpose__quote::after {
    content: "";
    flex: none;
    width: 3.5rem;
    height: 1px;
    background: var(--merenya-gold-muted);
}

@media (max-width: 900px) {
    .merenya-philosophy-purpose .merenya-philosophy-purpose__inner {
        grid-template-columns: minmax(0, 1fr);
        max-width: 48rem;
        gap: 2rem;
    }

    .merenya-philosophy-purpose .merenya-philosophy-purpose__quote {
        justify-self: center;
        width: min(100%, 34rem);
        padding: 1rem 1.25rem;
    }
}

/* End 17.2 - Philosophy purpose */

/* 17.3 - Philosophy pillars. Revision: 2026-09-13 */
/* Add after Section 17.2 and before Section 18. */

.merenya-philosophy-pillars,
.merenya-philosophy-pillars * {
    box-sizing: border-box;
}

.merenya-philosophy-pillars {
    width: 100%;
    margin: 0;
    padding: clamp(3rem, 5vw, 5rem) var(--merenya-gutter);
    color: var(--merenya-ivory);
    background-color: var(--merenya-purple-soft);
    background-image: url("https://merenya.com/wp-content/uploads/2026/09/merenya-purple-cosmos-background.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.merenya-philosophy-pillars .merenya-philosophy-pillars__inner {
    width: min(100%, var(--merenya-wide));
    min-width: 0;
    margin: 0 auto;
    padding: 0;
}

.merenya-philosophy-pillars .merenya-philosophy-pillars__header {
    display: grid;
    gap: 1rem;
    width: min(100%, 54rem);
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.merenya-philosophy-pillars .merenya-philosophy-pillars__header > * {
    min-width: 0;
    margin: 0;
}

.merenya-philosophy-pillars .merenya-philosophy-pillars__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.merenya-philosophy-pillars .merenya-philosophy-pillars__eyebrow::before,
.merenya-philosophy-pillars .merenya-philosophy-pillars__eyebrow::after {
    content: "";
    flex: 0 1 4.5rem;
    height: 1px;
    background: var(--merenya-gold-muted);
}

.merenya-philosophy-pillars .merenya-philosophy-pillars__title {
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-display);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    text-wrap: balance;
}

.merenya-philosophy-pillars .merenya-philosophy-pillars__intro {
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-body);
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    font-weight: 400;
    line-height: 1.7;
}

.merenya-philosophy-pillars .merenya-philosophy-pillars__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(1rem, 1.8vw, 1.5rem);
    min-width: 0;
    margin: clamp(2rem, 3.5vw, 3.5rem) 0 0;
    padding: 0;
}

/* Choose each card's background image in its GenerateBlocks settings. */
.merenya-philosophy-pillars .merenya-philosophy-pillars__card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--merenya-gold-muted);
    border-radius: var(--merenya-radius-card);
    background-color: var(--merenya-purple-soft);
    background-position: center top;
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

/* A fluid space for the landscape. Text stays in normal document flow. */
.merenya-philosophy-pillars .merenya-philosophy-pillars__card::before {
    content: "";
    position: static;
    display: block;
    flex: none;
    width: 100%;
    aspect-ratio: 5 / 4;
}

.merenya-philosophy-pillars .merenya-philosophy-pillars__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    gap: 0.85rem;
    min-width: 0;
    margin: 0;
    padding: 0 clamp(1.1rem, 1.6vw, 1.5rem) 1.75rem;
    background: linear-gradient(
        180deg,
        rgba(36, 18, 56, 0),
        var(--merenya-purple-soft) 10rem
    );
    text-align: center;
}

.merenya-philosophy-pillars .merenya-philosophy-pillars__content > * {
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

/* Put this class on the standard WordPress Image block for the icon. */
.merenya-philosophy-pillars .merenya-philosophy-pillars__icon {
    display: block;
    flex: none;
    width: 7rem;
    height: 7rem;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
}

.merenya-philosophy-pillars .merenya-philosophy-pillars__icon img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    border: 0;
    border-radius: 0;
}

.merenya-philosophy-pillars img.merenya-philosophy-pillars__icon {
    object-fit: contain;
    border-radius: 0;
}

.merenya-philosophy-pillars .merenya-philosophy-pillars__name {
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-display);
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    text-wrap: balance;
}

.merenya-philosophy-pillars .merenya-philosophy-pillars__lead {
    width: 100%;
    min-height: 0;
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-body);
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    text-align: center;
}

.merenya-philosophy-pillars .merenya-philosophy-pillars__description {
    width: 100%;
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
    overflow-wrap: anywhere;
}

.merenya-philosophy-pillars .merenya-philosophy-pillars__description::before {
    content: "";
    display: block;
    width: 2.75rem;
    height: 1px;
    margin: 0.4rem auto 1.25rem;
    background: var(--merenya-gold-muted);
}

@media (max-width: 1199px) {
    .merenya-philosophy-pillars .merenya-philosophy-pillars__grid {
        grid-template-columns: repeat(2, minmax(0, 26rem));
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .merenya-philosophy-pillars .merenya-philosophy-pillars__grid {
        grid-template-columns: minmax(0, 26rem);
    }

    .merenya-philosophy-pillars .merenya-philosophy-pillars__lead {
        min-height: 0;
    }
}

/* End 17.3 - Philosophy pillars */

/* 17.4 - Philosophy journey. Revision: 2026-09-14 */
/* Add after End 17.3 - Philosophy pillars, before Section 18. */

.merenya-philosophy-journey,
.merenya-philosophy-journey * {
    box-sizing: border-box;
}

.merenya-philosophy-journey {
    --journey-quote-gold: #765316;
    --journey-node: 7rem;
    --journey-middle: 11rem;
    --journey-step: 9rem;
    width: 100%;
    margin: 0;
    padding: clamp(3rem, 5vw, 5rem) var(--merenya-gutter);
    color: var(--merenya-purple-soft);
    background-color: var(--merenya-ivory);
    background-image: url("https://merenya.com/wp-content/uploads/2026/09/merenya-clear-background.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.merenya-philosophy-journey .merenya-philosophy-journey__inner {
    width: min(100%, var(--merenya-wide));
    min-width: 0;
    margin: 0 auto;
    padding: 0;
}

.merenya-philosophy-journey .merenya-philosophy-journey__inner > *,
.merenya-philosophy-journey .merenya-philosophy-journey__header > *,
.merenya-philosophy-journey .merenya-philosophy-journey__layout > *,
.merenya-philosophy-journey .merenya-philosophy-journey__cycle > *,
.merenya-philosophy-journey .merenya-philosophy-journey__node > *,
.merenya-philosophy-journey .merenya-philosophy-journey__copy > *,
.merenya-philosophy-journey .merenya-philosophy-journey__center > * {
    min-width: 0;
    margin: 0;
}

.merenya-philosophy-journey .merenya-philosophy-journey__header {
    display: grid;
    gap: 0.9rem;
    width: min(100%, 55rem);
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.merenya-philosophy-journey .merenya-philosophy-journey__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-body);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.merenya-philosophy-journey .merenya-philosophy-journey__eyebrow::after {
    content: "";
    flex: 0 1 2.5rem;
    height: 1px;
    background: var(--merenya-gold-muted);
}

.merenya-philosophy-journey .merenya-philosophy-journey__title {
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-display);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    text-wrap: balance;
}

.merenya-philosophy-journey .merenya-philosophy-journey__intro {
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-body);
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    font-weight: 400;
    line-height: 1.7;
    text-wrap: pretty;
}

.merenya-philosophy-journey .merenya-philosophy-journey__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 48rem) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    margin: clamp(2rem, 3.5vw, 3rem) 0 0;
    padding: 0;
}

.merenya-philosophy-journey .merenya-philosophy-journey__quote {
    justify-self: center;
    width: min(100%, 10rem);
    margin: 0;
    padding: 0;
    color: var(--journey-quote-gold);
    font-family: var(--merenya-font-display);
    font-size: clamp(1.5rem, 2.25vw, 2rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
}

.merenya-philosophy-journey .merenya-philosophy-journey__quote::after {
    content: "";
    display: block;
    width: 3.25rem;
    height: 1px;
    margin: 1.25rem auto 0;
    background: var(--merenya-gold-muted);
}

.merenya-philosophy-journey .merenya-philosophy-journey__quote--left {
    align-self: center;
}

.merenya-philosophy-journey .merenya-philosophy-journey__quote--right {
    align-self: end;
    width: min(100%, 15rem);
    margin-bottom: 3rem;
}

/* Text remains in grid cells, with only the decorative arrows positioned. */
.merenya-philosophy-journey .merenya-philosophy-journey__cycle {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--journey-node) var(--journey-middle) var(--journey-node) minmax(0, 1fr);
    grid-template-rows: var(--journey-step) var(--journey-step) auto;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

/* Decorative vector arrows are embedded here; no image upload is needed. */
.merenya-philosophy-journey .merenya-philosophy-journey__cycle::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: calc((var(--journey-step) - var(--journey-node)) / 2);
    left: 50%;
    width: calc(2 * var(--journey-step) + var(--journey-node));
    aspect-ratio: 1;
    transform: translateX(-50%);
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20400%20400%22%20fill%3D%22none%22%20stroke%3D%22%23C9A054%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M263.13%2070.57A144%20144%200%200%201%20329.43%20136.87%22%2F%3E%3Cpath%20d%3D%22M329.07%20128.15L329.43%20136.87L322.77%20131.22%22%2F%3E%3Cpath%20d%3D%22M329.43%20263.13A144%20144%200%200%201%20263.13%20329.43%22%2F%3E%3Cpath%20d%3D%22M271.85%20329.07L263.13%20329.43L268.78%20322.77%22%2F%3E%3Cpath%20d%3D%22M136.87%20329.43A144%20144%200%200%201%2070.57%20263.13%22%2F%3E%3Cpath%20d%3D%22M70.93%20271.85L70.57%20263.13L77.23%20268.78%22%2F%3E%3Cpath%20d%3D%22M70.57%20136.87A144%20144%200%200%201%20136.87%2070.57%22%2F%3E%3Cpath%20d%3D%22M128.15%2070.93L136.87%2070.57L131.22%2077.23%22%2F%3E%3C%2Fsvg%3E");
    background-position: center;
    background-size: 100% 100%;
    background-repeat: no-repeat;
    pointer-events: none;
}

.merenya-philosophy-journey .merenya-philosophy-journey__node {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.merenya-philosophy-journey .merenya-philosophy-journey__node--heal {
    grid-area: 1 / 3 / 2 / 6;
    grid-template-columns: var(--journey-middle) minmax(0, 1fr);
}

.merenya-philosophy-journey .merenya-philosophy-journey__node--awaken {
    grid-area: 2 / 4 / 3 / 6;
    grid-template-columns: var(--journey-node) minmax(0, 1fr);
}

.merenya-philosophy-journey .merenya-philosophy-journey__node--transform {
    grid-area: 3 / 3 / 4 / 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-top: calc((var(--journey-step) - var(--journey-node)) / 2);
}

.merenya-philosophy-journey .merenya-philosophy-journey__node--remember {
    grid-area: 2 / 1 / 3 / 3;
    grid-template-columns: minmax(0, 1fr) var(--journey-node);
}

.merenya-philosophy-journey .merenya-philosophy-journey__node--remember .merenya-philosophy-journey__icon {
    grid-column: 2;
    grid-row: 1;
}

.merenya-philosophy-journey .merenya-philosophy-journey__node--remember .merenya-philosophy-journey__copy {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
}

/* Apply this class to the standard WordPress Image block, not a link. */
.merenya-philosophy-journey .merenya-philosophy-journey__icon {
    display: grid;
    place-items: center;
    justify-self: center;
    flex: none;
    width: var(--journey-node);
    height: var(--journey-node);
    margin: 0;
    padding: 0.5rem;
    border: 1px solid var(--merenya-gold-muted);
    border-radius: 50%;
    background: var(--merenya-purple-deep);
    box-shadow: inset 0 0 1.25rem rgba(201, 160, 84, 0.08);
}

.merenya-philosophy-journey .merenya-philosophy-journey__icon img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.merenya-philosophy-journey img.merenya-philosophy-journey__icon {
    object-fit: contain;
}

.merenya-philosophy-journey .merenya-philosophy-journey__copy {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
}

.merenya-philosophy-journey .merenya-philosophy-journey__node--transform .merenya-philosophy-journey__copy {
    text-align: center;
}

.merenya-philosophy-journey .merenya-philosophy-journey__name {
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.merenya-philosophy-journey .merenya-philosophy-journey__text {
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-body);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

.merenya-philosophy-journey .merenya-philosophy-journey__center {
    position: relative;
    z-index: 1;
    grid-area: 2 / 3 / 3 / 4;
    align-self: center;
    justify-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: calc(var(--journey-middle) - 1rem);
    min-height: calc(var(--journey-middle) - 1rem);
    aspect-ratio: 1;
    margin: 0;
    padding: 1rem;
    border: 1px solid rgba(201, 160, 84, 0.6);
    border-radius: 50%;
    background: rgba(247, 242, 232, 0.55);
    text-align: center;
}

.merenya-philosophy-journey .merenya-philosophy-journey__star {
    display: block;
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 0 1px rgba(118, 83, 22, 0.75));
}

.merenya-philosophy-journey .merenya-philosophy-journey__star img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.merenya-philosophy-journey .merenya-philosophy-journey__center-text {
    color: var(--journey-quote-gold);
    font-family: var(--merenya-font-display);
    font-size: 1.1875rem;
    font-weight: 500;
    line-height: 1.25;
    text-wrap: balance;
}

/* Put the side quotations above and below the circle on smaller screens. */
@media (max-width: 70em) {
    .merenya-philosophy-journey .merenya-philosophy-journey__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
        width: min(100%, 48rem);
        margin-inline: auto;
    }

    .merenya-philosophy-journey .merenya-philosophy-journey__quote {
        width: min(100%, 32rem);
        margin: 0;
    }
}

/* Phone layout: readable steps, then the same central message. */
@media (max-width: 43.75em) {
    .merenya-philosophy-journey .merenya-philosophy-journey__cycle {
        --journey-node: 5.5rem;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
        gap: 1.75rem;
        width: min(100%, 24rem);
        margin: 0 auto;
    }

    .merenya-philosophy-journey .merenya-philosophy-journey__cycle::before {
        content: none;
    }

    .merenya-philosophy-journey .merenya-philosophy-journey__node {
        grid-area: auto;
        display: grid;
        grid-template-columns: var(--journey-node) minmax(0, 1fr);
        gap: 1rem;
        padding: 0;
    }

    .merenya-philosophy-journey .merenya-philosophy-journey__node .merenya-philosophy-journey__icon {
        grid-column: 1;
        grid-row: 1;
    }

    .merenya-philosophy-journey .merenya-philosophy-journey__node .merenya-philosophy-journey__copy {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
    }

    .merenya-philosophy-journey .merenya-philosophy-journey__name,
    .merenya-philosophy-journey .merenya-philosophy-journey__text {
        font-size: 1rem;
    }

    .merenya-philosophy-journey .merenya-philosophy-journey__node:not(.merenya-philosophy-journey__node--remember)::after {
        content: "";
        position: absolute;
        top: calc(100% + 0.5rem);
        left: calc(var(--journey-node) / 2);
        width: 0.45rem;
        height: 0.45rem;
        border-right: 1px solid var(--merenya-gold-muted);
        border-bottom: 1px solid var(--merenya-gold-muted);
        transform: translateX(-50%) rotate(45deg);
    }

    .merenya-philosophy-journey .merenya-philosophy-journey__center {
        grid-area: auto;
        margin-top: 0.5rem;
    }
}

/* End 17.4 - Philosophy journey */

/* 19.1 - About Merenya hero. Revision: 2026-09-14 */
/* Add once after the Philosophy sections, before Section 18 accessibility. */

/* Scope the page shell to a WordPress page containing this specific hero. */
body.page:has(.merenya-about-hero) #page {
    width: 100%;
    max-width: none;
}

body.page:has(.merenya-about-hero) .site-content,
body.page:has(.merenya-about-hero) .inside-article {
    padding: 0;
}

body.page:has(.merenya-about-hero) .content-area {
    width: 100%;
    min-width: 0;
}

body.page:has(.merenya-about-hero) .site-main,
body.page:has(.merenya-about-hero) .entry-content {
    margin: 0;
}

body.page:has(.merenya-about-hero) .inside-article {
    background: transparent;
}

/* The heading inside the hero supplies this page's visible H1. */
body.page:has(.merenya-about-hero) .inside-article > .entry-header {
    display: none;
}

/* Use the existing site header and its normal position after any top bar. */
body.page:has(.merenya-about-hero) .site-header {
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    z-index: 20;
    background: transparent;
}

.merenya-about-hero,
.merenya-about-hero *,
.merenya-about-hero::before,
.merenya-about-hero::after {
    box-sizing: border-box;
}

.merenya-about-hero {
    --merenya-about-art: url("https://merenya.com/wp-content/uploads/2026/09/merenya-about-hero-landscape.webp");
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: var(--merenya-ivory);
    background-color: var(--merenya-purple-deep);
    background-image:
        linear-gradient(
            90deg,
            rgba(20, 8, 31, 0.48) 0%,
            rgba(20, 8, 31, 0.26) 40%,
            rgba(20, 8, 31, 0) 65%
        ),
        var(--merenya-about-art);
    background-repeat: no-repeat;
    background-position: center, 70% center;
    background-size: cover;
}

.merenya-about-hero::before {
    content: none;
}

/* A light shade behind the existing header helps the navigation read. */
.merenya-about-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    height: clamp(10rem, 17vw, 16rem);
    background: linear-gradient(rgba(20, 8, 31, 0.32), transparent);
    pointer-events: none;
}

.merenya-about-hero .merenya-about-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    width: min(100%, var(--merenya-wide));
    max-width: none;
    min-height: max(44rem, 56.25vw);
    margin: 0 auto;
    padding: clamp(15rem, 21vw, 20rem) var(--merenya-gutter)
        clamp(4rem, 6vw, 6rem);
}

.merenya-about-hero .merenya-about-hero__copy {
    display: grid;
    gap: 1.25rem;
    justify-items: start;
    width: min(45%, 35rem);
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.merenya-about-hero .merenya-about-hero__copy > * {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.merenya-about-hero .merenya-about-hero__eyebrow {
    color: var(--merenya-gold);
    font-family: var(--merenya-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.merenya-about-hero h1.merenya-about-hero__title {
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-display);
    font-size: clamp(3rem, 4.5vw, 4rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.08;
    letter-spacing: normal;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.merenya-about-hero .merenya-about-hero__intro {
    max-width: 29rem;
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-body);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: normal;
    overflow-wrap: break-word;
}

/* At smaller widths, the same artwork has its own height above the copy. */
@media (max-width: 1100px) {
    .merenya-about-hero {
        background-image: none;
    }

    .merenya-about-hero::before {
        content: "";
        display: block;
        width: 100%;
        height: clamp(20rem, 56.25vw, 38rem);
        background-image:
            linear-gradient(
                180deg,
                rgba(20, 8, 31, 0.22) 0%,
                rgba(20, 8, 31, 0) 60%,
                var(--merenya-purple-deep) 100%
            ),
            var(--merenya-about-art);
        background-repeat: no-repeat;
        background-position: center, 78% center;
        background-size: cover;
        pointer-events: none;
    }

    .merenya-about-hero::after {
        content: none;
    }

    .merenya-about-hero .merenya-about-hero__inner {
        min-height: 0;
        padding: 2rem var(--merenya-gutter) 3.5rem;
    }

    .merenya-about-hero .merenya-about-hero__copy {
        width: min(100%, 38rem);
        margin-inline: auto;
        justify-items: center;
        text-align: center;
    }

    .merenya-about-hero h1.merenya-about-hero__title {
        font-size: clamp(2.25rem, 7vw, 3.75rem);
    }

    .merenya-about-hero .merenya-about-hero__intro {
        max-width: 34rem;
        text-wrap: balance;
    }
}

@media (max-width: 600px) {
    .merenya-about-hero .merenya-about-hero__inner {
        padding-top: 1.5rem;
        padding-bottom: 3rem;
    }

    .merenya-about-hero .merenya-about-hero__copy {
        gap: 1rem;
    }
}

/* End 19.1 - About Merenya hero */

/* 19.2 - About Merenya welcome. Revision: 2026-09-14 */

.merenya-about-welcome,
.merenya-about-welcome * {
    box-sizing: border-box;
}

.merenya-about-welcome {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(3.5rem, 6vw, 5.5rem)
        var(--merenya-gutter);
    color: var(--merenya-purple-soft);
    background-color: var(--merenya-ivory);
    background-image: url("https://merenya.com/wp-content/uploads/2026/09/merenya-clear-background.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.merenya-about-welcome .merenya-about-welcome__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: clamp(1.25rem, 2vw, 1.75rem);
    width: min(100%, 54rem);
    min-width: 0;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.merenya-about-welcome .merenya-about-welcome__inner > * {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.merenya-about-welcome h2.merenya-about-welcome__title {
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-display);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.15;
    letter-spacing: normal;
    text-wrap: balance;
}

/* Apply this class to the WordPress Image block. */
.merenya-about-welcome .merenya-about-welcome__divider {
    display: block;
    justify-self: center;
    width: min(100%, 260px);
    margin: 0;
    padding: 0;
}

.merenya-about-welcome .merenya-about-welcome__divider img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 44px;
    margin: 0;
    border: 0;
    object-fit: contain;
    filter: drop-shadow(0 0 1px rgba(118, 83, 22, 0.75));
}

.merenya-about-welcome p.merenya-about-welcome__text {
    width: 100%;
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-body);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.75;
    letter-spacing: normal;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: break-word;
}

/* End 19.2 - About Merenya welcome */

/* 19.3 - About Merenya founder. Revision: 2026-09-14 */

.merenya-about-founder,
.merenya-about-founder * {
    box-sizing: border-box;
}

.merenya-about-founder {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(3.5rem, 6vw, 5.5rem)
        var(--merenya-gutter);
    color: var(--merenya-ivory);
    background-color: var(--merenya-purple-soft);
    background-image:
        linear-gradient(
            rgba(20, 8, 31, 0.35),
            rgba(20, 8, 31, 0.35)
        ),
        url("https://merenya.com/wp-content/uploads/2026/09/merenya-purple-cosmos-background.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.merenya-about-founder .merenya-about-founder__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: clamp(1.25rem, 2vw, 1.75rem);
    width: min(100%, 48rem);
    min-width: 0;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.merenya-about-founder .merenya-about-founder__inner > *,
.merenya-about-founder .merenya-about-founder__signoff > * {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.merenya-about-founder h2.merenya-about-founder__title {
    color: var(--merenya-gold);
    font-family: var(--merenya-font-display);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.15;
    letter-spacing: normal;
    text-wrap: balance;
}

/* Apply this class to the WordPress Image block. */
.merenya-about-founder .merenya-about-founder__divider {
    display: block;
    justify-self: center;
    width: min(100%, 260px);
    margin: 0;
    padding: 0;
}

.merenya-about-founder .merenya-about-founder__divider img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 44px;
    margin: 0;
    border: 0;
    object-fit: contain;
}

.merenya-about-founder p.merenya-about-founder__text {
    width: 100%;
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-body);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.75;
    letter-spacing: normal;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.merenya-about-founder .merenya-about-founder__signoff {
    display: grid;
    justify-items: center;
    gap: 0.2rem;
    min-width: 0;
    margin-top: 0.5rem;
    padding: 0;
    text-align: center;
}

.merenya-about-founder p.merenya-about-founder__closing {
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-body);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
}

.merenya-about-founder p.merenya-about-founder__name {
    color: var(--merenya-gold);
    font-family: "Merenya Allura",
        var(--merenya-font-display);
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.3;
    letter-spacing: normal;
}

.merenya-about-founder p.merenya-about-founder__role {
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-body);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: normal;
}

/* End 19.3 - About Merenya founder */

/* 19.4 - The Merenya Promise. Revision: 2026-09-14 */

.merenya-about-promise,
.merenya-about-promise * {
    box-sizing: border-box;
}

.merenya-about-promise {
    /* A deeper gold for headings on the ivory background. */
    --merenya-promise-heading-gold: #765316;

    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(3.5rem, 6vw, 5.5rem)
        var(--merenya-gutter);
    color: var(--merenya-purple-soft);
    background-color: var(--merenya-ivory);
    background-image: url("https://merenya.com/wp-content/uploads/2026/09/merenya-clear-background.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.merenya-about-promise .merenya-about-promise__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: clamp(1.5rem, 2.4vw, 2rem);
    width: min(100%, 1160px);
    min-width: 0;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

.merenya-about-promise .merenya-about-promise__inner > *,
.merenya-about-promise .merenya-about-promise__item > * {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.merenya-about-promise h2.merenya-about-promise__title {
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-display);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.15;
    letter-spacing: normal;
    text-wrap: balance;
}

.merenya-about-promise .merenya-about-promise__divider {
    display: block;
    justify-self: center;
    width: min(100%, 260px);
    margin: 0;
    padding: 0;
}

.merenya-about-promise .merenya-about-promise__divider img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 44px;
    margin: 0;
    border: 0;
    object-fit: contain;
    filter: drop-shadow(0 0 1px rgba(118, 83, 22, 0.75));
}

.merenya-about-promise .merenya-about-promise__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
}

.merenya-about-promise .merenya-about-promise__item {
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 0.75rem;
    min-width: 0;
    margin: 0;
    padding: 0.35rem clamp(1.25rem, 3vw, 2.5rem);
    border: 0;
    text-align: center;
}

/* Fine vertical lines between the desktop columns. */
.merenya-about-promise .merenya-about-promise__item
    + .merenya-about-promise__item {
    border-inline-start:
        1px solid rgba(201, 160, 84, 0.6);
}

.merenya-about-promise h3.merenya-about-promise__name {
    color: var(--merenya-promise-heading-gold);
    font-family: var(--merenya-font-display);
    font-size: clamp(1.5rem, 2.1vw, 1.875rem);
    font-weight: 500;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: normal;
    text-wrap: balance;
}

.merenya-about-promise p.merenya-about-promise__text {
    width: 100%;
    max-width: 26ch;
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-body);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.7;
    letter-spacing: normal;
    text-align: center;
    text-wrap: balance;
    overflow-wrap: break-word;
}

/* Smaller screens: one column with horizontal separators. */
@media (max-width: 900px) {
    .merenya-about-promise .merenya-about-promise__grid {
        grid-template-columns: minmax(0, 1fr);
        width: min(100%, 30rem);
    }

    .merenya-about-promise .merenya-about-promise__item {
        padding: 1.75rem 0;
    }

    .merenya-about-promise .merenya-about-promise__item
    + .merenya-about-promise__item {
    position: relative;
    border-inline-start: 0;
    border-block-start: 0;
}

    .merenya-about-promise .merenya-about-promise__item
    + .merenya-about-promise__item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 64px;
    height: 1px;
    background-color: rgba(201, 160, 84, 0.6);
    transform: translateX(-50%);
    pointer-events: none;
}

    .merenya-about-promise .merenya-about-promise__item:first-child {
        padding-top: 0;
    }

    .merenya-about-promise .merenya-about-promise__item:last-child {
        padding-bottom: 0;
    }
}

/* End 19.4 - The Merenya Promise */

/* 20.1 - Shared library hero and Free Resources artwork */

/* Full-width page shell for pages using this library hero. */
body.page:has(.merenya-library-hero) #page {
    width: 100%;
    max-width: none;
}

body.page:has(.merenya-library-hero) .site-content,
body.page:has(.merenya-library-hero) .inside-article {
    padding: 0;
}

body.page:has(.merenya-library-hero) .content-area {
    width: 100%;
    min-width: 0;
}

body.page:has(.merenya-library-hero) .site-main,
body.page:has(.merenya-library-hero) .entry-content {
    margin: 0;
}

body.page:has(.merenya-library-hero) .inside-article {
    background: transparent;
}

/* The hero heading supplies the visible page title. */
body.page:has(.merenya-library-hero)
    .inside-article > .entry-header {
    display: none;
}

/* Existing site header over the artwork. */
body.page:has(.merenya-library-hero) .site-header {
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
    z-index: 20;
    background: transparent;
}

/* Free Resources artwork: replace the URL below. */
.merenya-library-hero.merenya-free-resources-hero,
.merenya-library-hero.merenya-wisdom-hero {
    --merenya-library-art:
        url("https://merenya.com/wp-content/uploads/2026/09/merenya-free-resources-hero-landscape.webp");
}

.merenya-library-hero,
.merenya-library-hero *,
.merenya-library-hero::before,
.merenya-library-hero::after {
    box-sizing: border-box;
}

.merenya-library-hero {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    color: var(--merenya-ivory);
    background-color: var(--merenya-purple-deep);
    background-image:
        linear-gradient(
            90deg,
            rgba(20, 8, 31, 0.32) 0%,
            rgba(20, 8, 31, 0.14) 42%,
            rgba(20, 8, 31, 0) 72%
        ),
        var(--merenya-library-art, none);
    background-repeat: no-repeat;
    background-position: center, center 60%;
    background-size: cover;
}

.merenya-library-hero::before {
    content: none;
}

/* Gentle shading behind the existing logo and navigation. */
.merenya-library-hero::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 0;
    height: clamp(10rem, 17vw, 16rem);
    background:
        linear-gradient(
            rgba(20, 8, 31, 0.3),
            transparent
        );
    pointer-events: none;
}

.merenya-library-hero .merenya-library-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: min(100%, var(--merenya-wide));
    max-width: none;
    min-height: clamp(36rem, 43vw, 43rem);
    margin: 0 auto;
    padding:
        clamp(16rem, 21vw, 19rem)
        var(--merenya-gutter)
        4rem;
}

.merenya-library-hero .merenya-library-hero__copy {
    display: grid;
    gap: 1.125rem;
    justify-items: start;
    width: min(52%, 38rem);
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: left;
}

.merenya-library-hero .merenya-library-hero__copy > * {
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.merenya-library-hero .merenya-library-hero__eyebrow {
    color: var(--merenya-gold);
    font-family: var(--merenya-font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.merenya-library-hero h1.merenya-library-hero__title {
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-display);
    font-size: clamp(3rem, 4.5vw, 4rem);
    font-weight: 400;
    font-style: normal;
    line-height: 1.1;
    letter-spacing: normal;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.merenya-library-hero .merenya-library-hero__divider {
    width: min(17rem, 100%);
    line-height: 0;
}

.merenya-library-hero .merenya-library-hero__divider img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
}

.merenya-library-hero .merenya-library-hero__intro {
    max-width: 32rem;
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-body);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: normal;
    overflow-wrap: break-word;
}

/* Smaller screens: artwork above the centered wording. */
@media (max-width: 1100px) {
    .merenya-library-hero {
        background-image: none;
    }

    .merenya-library-hero::before {
        content: "";
        display: block;
        width: 100%;
        height: clamp(16rem, 43vw, 28rem);
        background-image:
            linear-gradient(
                180deg,
                rgba(20, 8, 31, 0.18) 0%,
                rgba(20, 8, 31, 0) 50%,
                var(--merenya-purple-deep) 100%
            ),
            var(--merenya-library-art, none);
        background-repeat: no-repeat;
        background-position: center, 72% center;
        background-size: cover;
        pointer-events: none;
    }

    .merenya-library-hero::after {
        content: none;
    }

    .merenya-library-hero .merenya-library-hero__inner {
        min-height: 0;
        padding: 2rem var(--merenya-gutter) 3rem;
    }

    .merenya-library-hero .merenya-library-hero__copy {
        width: min(100%, 38rem);
        margin-inline: auto;
        justify-items: center;
        text-align: center;
    }

    .merenya-library-hero h1.merenya-library-hero__title {
        font-size: clamp(2.4rem, 6.5vw, 3.75rem);
    }

    .merenya-library-hero .merenya-library-hero__intro {
        max-width: 34rem;
        text-wrap: balance;
    }
}

@media (max-width: 600px) {
    .merenya-library-hero .merenya-library-hero__inner {
        padding-top: 1.5rem;
        padding-bottom: 2.75rem;
    }

    .merenya-library-hero .merenya-library-hero__copy {
        gap: 1rem;
    }
}

/* End 20.1 - Library hero */

/* 20.2 - Resource library introduction and collection */

.merenya-resource-library,
.merenya-resource-library * {
    box-sizing: border-box;
}

.merenya-resource-library {
    width: 100%;
    max-width: none;
    margin: 0;
    padding:
        clamp(3rem, 5vw, 5rem)
        var(--merenya-gutter);
    color: var(--merenya-purple-soft);
    background-color: var(--merenya-ivory);
    background-image:
        url("https://merenya.com/wp-content/uploads/2026/09/merenya-clear-background.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.merenya-resource-library .merenya-resource-library__inner {
    width: min(100%, var(--merenya-wide));
    min-width: 0;
    margin: 0 auto;
    padding: 0;
}

.merenya-resource-library .merenya-resource-library__header {
    display: grid;
    justify-items: center;
    gap: 1rem;
    width: min(100%, 48rem);
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    padding: 0;
    text-align: center;
}

.merenya-resource-library .merenya-resource-library__header > * {
    min-width: 0;
    max-width: 100%;
    margin: 0;
}

.merenya-resource-library .merenya-resource-library__title {
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-display);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
    text-wrap: balance;
}

.merenya-resource-library .merenya-resource-library__divider {
    width: min(17rem, 100%);
    line-height: 0;
}

.merenya-resource-library .merenya-resource-library__divider img {
    display: block;
    width: 100%;
    height: auto;
    filter:
        drop-shadow(0 0 1px rgba(118, 83, 22, 0.75));
}

.merenya-resource-library .merenya-resource-library__intro {
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-body);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    font-weight: 400;
    line-height: 1.7;
    text-wrap: balance;
}

.merenya-resource-library .merenya-resource-library__collection {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Three columns, then two and one at smaller widths. */
.merenya-resource-library .merenya-resource-library__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.merenya-resource-library
    .merenya-resource-library__grid > li.wc-block-product {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(201, 160, 84, 0.75);
    border-radius: 16px;
    background: var(--merenya-ivory);
    color: var(--merenya-purple-soft);
    text-align: left;
}

/* Preserve the full artwork or book cover. */
.merenya-resource-library .merenya-resource-card__image {
    width: 100%;
    margin: 0;
    padding: 0;
    background: var(--merenya-purple-soft);
}

.merenya-resource-library .merenya-resource-card__image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
}

/* This label belongs to the Free Resources template. */
.merenya-resource-library .merenya-resource-card__badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 1;
    margin: 0;
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
    background: var(--merenya-purple-deep);
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-body);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.merenya-resource-library .merenya-resource-card__title {
    margin: 1.25rem 1.25rem 0.75rem;
    padding: 0;
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-display);
    font-size: clamp(1.625rem, 2.25vw, 2rem);
    font-weight: 500;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.merenya-resource-library .merenya-resource-card__title a {
    color: inherit;
    text-decoration: none;
}

.merenya-resource-library .merenya-resource-card__title a:hover {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.merenya-resource-library .merenya-resource-card__summary {
    margin: 0 1.25rem 1.25rem;
    padding: 0;
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-body);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    overflow-wrap: break-word;
}

.merenya-resource-library .merenya-resource-card__summary p {
    margin: 0;
}

/* The dynamic Read More link becomes the card button. */
.merenya-resource-library a.merenya-resource-card__link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: auto 1.25rem 1.25rem;
    padding: 0.8rem 1rem;
    border: 1px solid var(--merenya-purple-soft);
    border-radius: 8px;
    background: var(--merenya-purple-soft);
    color: var(--merenya-ivory);
    font-family: var(--merenya-font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
}

.merenya-resource-library a.merenya-resource-card__link:hover {
    border-color: var(--merenya-gold-muted);
    background: var(--merenya-purple-deep);
    color: var(--merenya-ivory);
}

.merenya-resource-library a:focus-visible {
    outline: 3px solid #765316;
    outline-offset: 3px;
}

.merenya-resource-library .merenya-resource-library__empty {
    margin: 0;
    padding: 2rem 1rem;
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-body);
    font-size: 1rem;
    line-height: 1.7;
    text-align: center;
}

.merenya-resource-library .merenya-resource-library__pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2.5rem 0 0;
    font-family: var(--merenya-font-body);
}

.merenya-resource-library .merenya-resource-library__pagination a {
    color: var(--merenya-purple-soft);
}

@media (max-width: 1024px) {
    .merenya-resource-library .merenya-resource-library__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .merenya-resource-library .merenya-resource-library__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* End 20.2 - Resource library */

/* 20.2 refinement: Free Resources card sizing */

.merenya-free-resources-library .merenya-resource-library__grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 24px !important;
  width: 100%;
  max-width: 1068px;
  margin: 0 auto !important;
  padding: 0 !important;
}

.merenya-free-resources-library
.merenya-resource-library__grid > li.wc-block-product {
  min-width: 0;
  width: 100% !important;
  max-width: 340px;
  margin: 0 !important;
  justify-self: center;
}

/* Center the guide while it is the only resource */
.merenya-free-resources-library
.merenya-resource-library__grid > li.wc-block-product:only-child {
  grid-column: 1 / -1;
}

/* Keep the image area within its card */
.merenya-free-resources-library .merenya-resource-card__image {
  width: 100%;
  max-width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
}

.merenya-free-resources-library .merenya-resource-card__image > a {
  display: block;
  width: 100%;
}

/* Display the complete cover without stretching */
.merenya-free-resources-library .merenya-resource-card__image img {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  height: 300px !important;
  min-height: 0;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center;
  padding: 16px;
  background: #14081f;
}

/* Message beneath the collection */
.merenya-free-resources-library .merenya-resource-library__note {
  max-width: 42rem;
  margin: 2rem auto 0;
  color: #241238;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 1024px) {
  .merenya-free-resources-library .merenya-resource-library__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    max-width: 704px;
  }
}

@media (max-width: 640px) {
  .merenya-free-resources-library .merenya-resource-library__grid {
    grid-template-columns: minmax(0, 1fr) !important;
    max-width: 340px;
  }
}

/* =========================================
   21.2 - Wisdom Articles Library
   ========================================= */

/* Section and content width */
.merenya-articles-section,
.merenya-articles-section * {
    box-sizing: border-box;
}

.merenya-articles-section {
    margin: 0;
    padding: clamp(3.5rem, 7vw, 6rem)
             clamp(1rem, 3vw, 2rem);
    color: #241238;
    background: #f7f2e8
        url("https://merenya.com/wp-content/uploads/2026/09/merenya-clear-background.webp")
        center / cover no-repeat;
}

.merenya-articles-section .merenya-wide {
    width: 100%;
    max-width: 1068px;
    margin-inline: auto;
}

/* Introduction */
.merenya-articles-section .merenya-articles__intro {
    max-width: 760px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.merenya-articles-section .merenya-articles__intro h2 {
    margin: 0;
    color: #241238;
    font-family: var(--merenya-font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.15;
}

.merenya-articles-section .merenya-articles__intro p {
    margin: 0;
    color: #241238;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.75;
}

.merenya-articles-section .merenya-articles__divider {
    display: block;
    width: min(260px, 75%);
    height: auto;
    margin: 1.25rem auto 1.5rem;
}

.merenya-articles-section .merenya-articles__divider img {
    display: block;
    width: 100%;
    height: auto;
}

/* Query and responsive grid */
.merenya-articles-section .merenya-article-grid {
    width: 100%;
    max-width: none;
    margin: 0;
}

.merenya-articles-section
.merenya-article-grid .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 340px));
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Article cards */
.merenya-articles-section
.merenya-article-grid .wp-block-post {
    display: flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(201, 160, 84, 0.5);
    border-radius: 16px;
    background: #f7f2e8;
    color: #241238;
    box-shadow: 0 5px 18px rgba(36, 18, 56, 0.05);
}

/* Keep a single article centred and compact */
.merenya-articles-section
.merenya-article-grid .wp-block-post:only-child {
    grid-column: 1 / -1;
    justify-self: center;
    max-width: 340px;
}

/* Featured images */
.merenya-articles-section
.merenya-article-grid .wp-block-post-featured-image {
    margin: 0;
    background: #241238;
}

.merenya-articles-section
.merenya-article-grid .wp-block-post-featured-image a {
    display: block;
}

.merenya-articles-section
.merenya-article-grid .wp-block-post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Titles */
.merenya-articles-section
.merenya-article-grid .wp-block-post-title {
    margin: 22px 22px 12px;
    color: #241238;
    font-family: var(--merenya-font-display);
    font-size: clamp(1.65rem, 2.3vw, 1.875rem);
    font-weight: 600;
    line-height: 1.2;
    text-align: left;
    overflow-wrap: anywhere;
}

.merenya-articles-section
.merenya-article-grid .wp-block-post-title a {
    color: inherit;
    text-decoration: none;
}

.merenya-articles-section
.merenya-article-grid .wp-block-post-title a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Excerpts */
.merenya-articles-section
.merenya-article-grid .wp-block-post-excerpt {
    margin: 0 22px 22px;
    color: #241238;
    font-size: 1rem;
    line-height: 1.7;
    text-align: left;
}

.merenya-articles-section
.merenya-article-grid .wp-block-post-excerpt p {
    margin: 0;
}

/* Read article links */
.merenya-articles-section
.merenya-article-grid .wp-block-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 44px;
    margin: auto 22px 22px;
    padding: 0.65rem 1rem;
    border: 1px solid #c9a054;
    border-radius: 8px;
    background: #241238;
    color: #f7f2e8;
    font-family: var(--merenya-font-body);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.merenya-articles-section
.merenya-article-grid .wp-block-read-more:hover {
    background: #14081f;
    color: #d4af37;
}

/* Pagination */
.merenya-articles-section
.merenya-article-grid .wp-block-query-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2.5rem 0 0;
}

.merenya-articles-section
.merenya-article-grid .wp-block-query-pagination > * {
    margin: 0;
}

.merenya-articles-section
.merenya-article-grid .wp-block-query-pagination-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.merenya-articles-section
.merenya-article-grid .wp-block-query-pagination
:is(.page-numbers,
    .wp-block-query-pagination-previous,
    .wp-block-query-pagination-next) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #c9a054;
    border-radius: 8px;
    background: #f7f2e8;
    color: #241238;
    text-decoration: none;
}

.merenya-articles-section
.merenya-article-grid .wp-block-query-pagination
:is(a:hover, .page-numbers.current) {
    background: #241238;
    color: #f7f2e8;
}

/* Message when no articles are available */
.merenya-articles-section
.merenya-article-grid .wp-block-query-no-results {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid rgba(201, 160, 84, 0.5);
    border-radius: 16px;
    background: #f7f2e8;
    color: #241238;
    text-align: center;
    line-height: 1.75;
}

.merenya-articles-section
.merenya-article-grid .wp-block-query-no-results p {
    margin: 0;
}

/* Keyboard focus */
.merenya-articles-section
.merenya-article-grid a:focus-visible {
    outline: 2px solid #241238;
    outline-offset: 4px;
}

.merenya-articles-section
.merenya-article-grid
.wp-block-post-featured-image a:focus-visible {
    outline-color: #d4af37;
    outline-offset: -4px;
}

/* Tablets */
@media (max-width: 1024px) {
    .merenya-articles-section
    .merenya-article-grid .wp-block-post-template {
        grid-template-columns: repeat(2, minmax(0, 340px));
    }
}

/* Smaller screens */
@media (max-width: 640px) {
    .merenya-articles-section
    .merenya-article-grid .wp-block-post-template {
        grid-template-columns: minmax(0, 340px);
    }
}

/* Price spacing for Merenya catalogue cards */
.merenya-resource-library .merenya-resource-card__price {
    margin: 0 1.25rem 1rem;
    color: var(--merenya-purple-soft);
    font-family: var(--merenya-font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
}

/* Merenya: shop, account, checkout and information pages */

/* Content panels */
body.merenya-utility-page #main {
    color: #241238;
}

body.merenya-utility-page #main .inside-article {
    background: #f7f2e8;
    color: #241238;
    border: 1px solid rgba(201, 160, 84, 0.35);
    border-radius: 12px;
    padding: clamp(1.25rem, 3vw, 3rem);
}

/* Readable headings and text */
body.merenya-utility-page #main :is(
    h1, h2, h3, h4, h5, h6,
    p, li, label, legend, th, td,
    .price, .amount,
    .woocommerce-result-count,
    .woocommerce-breadcrumb
) {
    color: #241238;
}

body.merenya-utility-page #main h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    line-height: 1.12;
}

/* Text links, excluding buttons */
body.merenya-utility-page #main a:where(
    :not(
        .button,
        .wp-element-button,
        .wp-block-button__link,
        .wc-block-components-button
    )
) {
    color: #543365;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

body.merenya-utility-page #main a:where(
    :not(
        .button,
        .wp-element-button,
        .wp-block-button__link,
        .wc-block-components-button
    )
):hover {
    color: #14081f;
}

/* Classic WooCommerce and block buttons */
body.merenya-utility-page #main :is(
    a.button,
    button.button,
    input.button,
    button[type="submit"],
    input[type="submit"],
    .wp-element-button,
    .wp-block-button__link,
    .wc-block-components-button:not(.is-link)
) {
    background: #d4af37;
    color: #14081f;
    border: 1px solid #d4af37;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 600;
}

body.merenya-utility-page #main :is(
    a.button,
    button.button,
    input.button,
    button[type="submit"],
    input[type="submit"],
    .wp-element-button,
    .wp-block-button__link,
    .wc-block-components-button:not(.is-link)
):hover {
    background: #c9a054;
    color: #14081f;
    border-color: #c9a054;
}

/* Keyboard focus */
body.merenya-utility-page #main :is(
    a, button, input, select, textarea, summary
):focus-visible {
    outline: 3px solid #543365;
    outline-offset: 3px;
}

/* Form fields */
body.merenya-utility-page #main :is(
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="url"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    select,
    textarea,
    .select2-selection
) {
    background: #ffffff;
    color: #241238;
    border: 1px solid #a999ac;
    border-radius: 6px;
    min-height: 46px;
}

body.merenya-utility-page #main input::placeholder,
body.merenya-utility-page #main textarea::placeholder {
    color: #6d5a75;
    opacity: 1;
}

body.merenya-utility-page .select2-dropdown {
    background: #ffffff;
    color: #241238;
}

/* WooCommerce notices */
body.merenya-utility-page #main :is(
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error,
    .wc-block-components-notice-banner
) {
    background: #fffaf2;
    color: #241238;
}

/* Classic checkout payment area */
body.merenya-utility-page #main #payment {
    background: #eee5f1;
    color: #241238;
}

body.merenya-utility-page #main #payment .payment_box {
    background: #ffffff;
    color: #241238;
}

body.merenya-utility-page #main #payment .payment_box::before {
    border-bottom-color: #ffffff;
}

/* Product information tabs */
body.merenya-utility-page #main .woocommerce-tabs ul.tabs li {
    background: #eee5f1;
}

body.merenya-utility-page #main .woocommerce-tabs ul.tabs li.active {
    background: #f7f2e8;
}

/* Shop product cards */
body.merenya-utility-page #main ul.products li.product {
    box-sizing: border-box;
    background: #fffaf2;
    border: 1px solid rgba(201, 160, 84, 0.4);
    border-radius: 10px;
    padding: 1rem;
}

/* Information pages: comfortable reading width */
body.merenya-information-page #main .inside-article {
    max-width: 960px;
    margin-inline: auto;
}

body.merenya-information-page #main .entry-content {
    max-width: 76ch;
    line-height: 1.8;
}

body.merenya-information-page #main .entry-content h2 {
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

body.merenya-information-page #main .entry-content h3 {
    font-size: 1.4rem;
    line-height: 1.25;
}

body.merenya-information-page #main .entry-content p {
    margin-bottom: 1.25rem;
}






/* 18 - Accessibility and reduced motion */
.merenya-button:focus-visible,
.footer-social-link:focus-visible {
    outline: 3px solid var(--merenya-gold);
    outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

