/**
 * NARPO — Become a Member CTA.
 * Two-column layout: photo on the LEFT, navy text panel on the RIGHT.
 * The brand crest sits tilted on the top-right of the photo.
 */
.narpo-member-cta {
    position: relative;
    isolation: isolate;
    background: var(--narpo-navy-deep, #081f47);
    color: #fff;
    border-top: 15px solid var(--narpo-band, #3C7DE5);
    border-bottom: 15px solid var(--narpo-band, #3C7DE5);
    overflow: visible;
}

.narpo-member-cta__inner {
    width: var(--narpo-container, min(1240px, 92vw));
    margin-inline: auto;
    padding-block: clamp(3rem, 6vw, 5rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

/* No-image fallback: panel sits full width */
.narpo-member-cta--no-image .narpo-member-cta__inner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: end;
}
.narpo-member-cta--no-image .narpo-member-cta__panel {
    max-width: 36rem;
}

/* ===========================================================
   Media — left column with tilted crest decoration top-right
   =========================================================== */
/* The frame holds the plate and the crest together. It carries the positioning
   context so the crest can overhang the photograph, and it is never clipped —
   the reveal's clip-path lives on the figure inside it. */
.narpo-member-cta__frame {
    position: relative;
    align-self: stretch;
    min-height: 380px;
}

.narpo-member-cta__media {
    position: relative;
    margin: 0;
    height: 100%;
    min-height: inherit;
    overflow: visible;
    border-radius: var(--narpo-radius);
}
.narpo-member-cta__media img:not(.narpo-member-cta__crest) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.narpo-member-cta__media { border-radius: 0; }

.narpo-member-cta__crest-link {
    position: absolute;
    top: -2.25rem;
    right: -2.25rem;
    width: clamp(66px, 9vw, 112px);
    display: block;
    perspective: 900px;
    transform-style: preserve-3d;
    transform-origin: center;
    z-index: 2;
    text-decoration: none;
    cursor: pointer;
    outline: none;
}

.narpo-member-cta__crest {
    display: block;
    width: 100%;
    height: auto;
    transform: rotate(-12deg);
    transform-origin: center;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
    pointer-events: none;
    will-change: transform;
}

.narpo-member-cta__crest-link:hover .narpo-member-cta__crest,
.narpo-member-cta__crest-link:focus-visible .narpo-member-cta__crest {
    filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.42));
}

.narpo-member-cta__crest-link:focus-visible {
    border-radius: 999px;
    box-shadow: 0 0 0 3px rgba(60, 125, 229, 0.95);
}

/* ===========================================================
   Panel — right column
   =========================================================== */
.narpo-member-cta__panel {
    text-align: left;
    color: #fff;
}

.narpo-member-cta__heading {
    font-family: var(--narpo-font-display, inherit);
    font-size: var(--narpo-fs-h1);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1rem;
    color: #fff;
}

.narpo-member-cta__body {
    font-size: var(--narpo-fs-body);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 1.75rem;
}
.narpo-member-cta__body p { margin: 0 0 0.75em; }
.narpo-member-cta__body p:last-child { margin-bottom: 0; }

.narpo-member-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 820px) {
    .narpo-member-cta__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .narpo-member-cta__frame {
        min-height: 280px;
        order: 1;
    }
    .narpo-member-cta__panel { order: 2; }
    .narpo-member-cta__crest-link {
        top: -1.25rem;
        right: -1rem;
        width: clamp(62px, 16vw, 100px);
    }
}

@media (prefers-reduced-motion: reduce) {
    
    .narpo-member-cta__crest {
        transform: rotate(-12deg) !important;
    }
}

/* ==========================================================================
   MANCHESTER · the membership band
   The shared .narpo-btn set used to live here. It now sits in
   narpo-tokens.css, which loads on every page — this stylesheet only loads
   when the block is present, so buttons elsewhere were relying on the cache
   plugin combining every registered block style into one bundle.
   ========================================================================== */

/* --- The membership band ------------------------------------------------- */

.narpo-member-cta {
    background: var(--mn-slate, #142030);
    color: var(--mn-on-slate, #f1eee9);
    /* 15px of flat blue top and bottom becomes one brass rule apiece. */
    border-top: 2px solid var(--mn-brass, #d99e3f);
    border-bottom: 2px solid var(--mn-brass, #d99e3f);
}

.narpo-member-cta__heading {
    color: var(--mn-on-slate, #f1eee9);
    font-weight: 600;
    letter-spacing: var(--narpo-tracking-display, -0.014em);
    line-height: 1.1;
    text-wrap: balance;
}
.narpo-member-cta__body {
    color: var(--mn-on-slate-mute, #bbb7af);
    max-width: 52ch;
}

/* The photograph is mounted, not floated on a drop shadow. */
.narpo-member-cta__media img:not(.narpo-member-cta__crest) {
    box-shadow: 0 0 0 1px var(--mn-slate-line, #374353);
    border-radius: var(--narpo-radius, 3px);
}
.narpo-member-cta__crest {
    filter: none;
    transform: rotate(-9deg);
}
.narpo-member-cta__crest-link:hover .narpo-member-cta__crest,
.narpo-member-cta__crest-link:focus-visible .narpo-member-cta__crest {
    filter: none;
}
.narpo-member-cta__crest-link:focus-visible {
    border-radius: var(--narpo-radius, 3px);
    box-shadow: 0 0 0 3px var(--mn-brass, #d99e3f);
}

