/* Morse Policy Forum | Membership Landing UX Pro v0.16.89
 * Page-only refinements: consistent 1520px grid, spacious membership paths,
 * readable tier comparison and application forms. No membership logic changes.
 */
body.mpfm-membership-landing .mpfm-membership-page-main {
    display: flow-root;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: clamp(24px, 4vw, 54px) 0 clamp(56px, 6vw, 100px);
    background: linear-gradient(180deg, #f4f7fb 0%, #ffffff 56%, #f8fafd 100%);
}
body.mpfm-membership-landing .mpfm-membership-page-article,
body.mpfm-membership-landing .mpfm-membership-page-article > .entry-content,
body.mpfm-membership-landing .mpfm-membership-page-article > .et_builder_inner_content {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: 0;
}
body.mpfm-membership-landing .mpfm-membership-page-main :is(.mpfm-membership-shell, .mpfm-org-membership-panel, .mpfm-org-application-dashboard) {
    box-sizing: border-box;
    width: var(--mpfm-site-content-width, min(94vw, 1520px)) !important;
    max-width: 1520px !important;
    min-width: 0;
    margin-left: auto !important;
    margin-right: auto !important;
}
body.mpfm-membership-landing .mpfm-membership-page-main :is(.mpfm-membership-shell, .mpfm-org-membership-panel, .mpfm-org-application-dashboard) :is(input, textarea, select) {
    max-width: 100%;
}
/* Remove the old nested gradient/padding around the entire landing page.
 * The hero and panels themselves provide the intentional visual surfaces. */
body.mpfm-membership-landing .mpfm-membership-gateway-shell {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
    color: #162a45;
    font-family: inherit;
}
body.mpfm-membership-landing .mpfm-membership-gateway-shell > * {
    min-width: 0;
}
/* Distinct, full-width introductory stage, in the Donate-page navy family. */
body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-gateway-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: clamp(30px, 4vw, 48px);
    min-height: 0;
    margin: 0;
    padding: clamp(40px, 5.5vw, 78px) clamp(22px, 5.5vw, 84px);
    overflow: hidden;
    border: 1px solid rgba(80, 136, 192, .32);
    border-radius: 26px;
    background: linear-gradient(117deg, #0b1729 0%, #132944 59%, #1b4673 100%);
    box-shadow: 0 22px 55px rgba(12, 36, 67, .13);
}
body.mpfm-membership-landing .mpfm-gateway-stage::after {
    width: 560px;
    height: 560px;
    right: -180px;
    top: -310px;
    bottom: auto;
    border: 1px solid rgba(223, 235, 251, .1);
    box-shadow: 0 0 0 85px rgba(255,255,255,.018), 0 0 0 170px rgba(255,255,255,.014);
}
body.mpfm-membership-landing .mpfm-gateway-grid-bg {
    opacity: .42;
    background: linear-gradient(105deg, transparent 26%, rgba(255,255,255,.045) 59%, transparent 68%);
}
body.mpfm-membership-landing .mpfm-gateway-copy {
    max-width: 930px;
    margin: 0 auto;
    text-align: center;
    min-width: 0;
}
body.mpfm-membership-landing .mpfm-gateway-copy .mpfm-eyebrow {
    margin: 0 0 19px;
    color: #eac991;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .19em;
    line-height: 1.6;
}
body.mpfm-membership-landing .mpfm-gateway-copy h2 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: clamp(33px, 4.2vw, 58px) !important;
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -.04em;
    overflow-wrap: break-word;
}
body.mpfm-membership-landing .mpfm-gateway-copy p:not(.mpfm-eyebrow) {
    margin: 19px auto 0;
    max-width: 750px;
    color: #d0dbea;
    font-size: clamp(14px, 1.45vw, 17px);
    line-height: 1.7;
}
body.mpfm-membership-landing .mpfm-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
    width: 100%;
    min-width: 0;
}
body.mpfm-membership-landing .mpfm-choice-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
    min-height: 285px;
    padding: clamp(23px, 2.7vw, 36px);
    border: 1px solid rgba(217, 230, 248, .22);
    border-radius: 20px;
    background: rgba(246, 250, 255, .085);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    color: #ffffff !important;
    transition: transform .18s, border-color .18s, background .18s, box-shadow .18s;
}
body.mpfm-membership-landing .mpfm-choice-card:nth-child(2) {
    background: rgba(246, 250, 255, .052);
}
body.mpfm-membership-landing .mpfm-choice-card::before {
    background: linear-gradient(132deg, rgba(255,255,255,.095), transparent 58%);
}
body.mpfm-membership-landing .mpfm-choice-icon {
    flex: none;
    width: 43px;
    height: 43px;
    border-radius: 13px;
    color: #f1cf8a;
    font-size: 13px;
    background: rgba(255,255,255,.085);
}
body.mpfm-membership-landing .mpfm-choice-kicker {
    margin-top: 20px;
    color: #c5d6ed;
    font-size: 11px;
    line-height: 1.4;
}
body.mpfm-membership-landing .mpfm-choice-card strong {
    margin-top: 8px;
    color: #ffffff;
    font-size: clamp(23px, 2.3vw, 32px);
    line-height: 1.2;
    letter-spacing: -.035em;
    font-weight: 830;
}
body.mpfm-membership-landing .mpfm-choice-card em {
    margin: 13px 0 22px;
    color: #cbd8e9;
    font-size: 14px;
    line-height: 1.65;
}
body.mpfm-membership-landing .mpfm-choice-card b {
    margin-top: auto;
    color: #f6d69d;
    font-size: 13px;
    line-height: 1.5;
}
body.mpfm-membership-landing .mpfm-choice-card:hover {
    transform: translateY(-3px);
    background: rgba(246,250,255,.13);
    border-color: rgba(191, 220, 250, .54);
    box-shadow: 0 15px 29px rgba(2,10,25,.18);
}
body.mpfm-membership-landing .mpfm-choice-card:focus-visible,
body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-button:focus-visible,
body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-billing-option:focus-visible {
    outline: 3px solid #82bcf5;
    outline-offset: 4px;
}
/* Tier comparison becomes a clean, premium section, not a narrow widget. */
body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-individual-panel {
    margin: clamp(18px, 2vw, 28px) 0 0;
    padding: clamp(27px, 4vw, 58px);
    border: 1px solid #dbe5f0;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 20px 52px rgba(20, 49, 79, .06);
}
body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-section-heading {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 28px;
    text-align: center;
}
body.mpfm-membership-landing .mpfm-section-heading .mpfm-eyebrow.dark {
    margin: 0 0 12px;
    color: #285d98 !important;
    font-size: 11px;
    letter-spacing: .13em;
    line-height: 1.5;
}
body.mpfm-membership-landing .mpfm-section-heading h3 {
    margin: 0 0 13px;
    color: #122d4c;
    font-size: clamp(27px, 3vw, 42px);
    line-height: 1.15;
    letter-spacing: -.035em;
    overflow-wrap: break-word;
}
body.mpfm-membership-landing .mpfm-section-heading p:not(.mpfm-eyebrow) {
    margin: 0 auto;
    max-width: 740px;
    color: #5c7189;
    font-size: clamp(13px, 1.15vw, 16px);
    line-height: 1.7;
}
body.mpfm-membership-landing .mpfm-individual-panel .mpfm-billing-switch {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 17px;
}
body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-tier-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(13px, 1.7vw, 22px);
    margin: 28px 0 0;
}
body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-tier-card {
    min-width: 0;
    min-height: 430px;
    padding: clamp(22px, 2.5vw, 34px);
    border-radius: 18px;
    border: 1px solid #dbe5f0;
    box-shadow: 0 11px 30px rgba(17, 49, 84, .045);
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}
body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-tier-card.featured {
    background: linear-gradient(180deg, #f3f8ff 0%, #ffffff 50%) !important;
    border-color: #8bb6e2 !important;
    box-shadow: 0 16px 39px rgba(18, 77, 134, .10) !important;
}
body.mpfm-membership-landing .mpfm-tier-card h4 {
    margin: 16px 0 12px;
    color: #0e2b4b;
    font-size: clamp(24px, 2vw, 30px);
    line-height: 1.18;
    overflow-wrap: break-word;
}
body.mpfm-membership-landing .mpfm-tier-price {
    margin-bottom: 15px;
    color: #174f85;
    font-size: clamp(17px, 1.65vw, 22px);
}
body.mpfm-membership-landing .mpfm-tier-card p {
    color: #526983;
    font-size: 14px;
    line-height: 1.6;
}
body.mpfm-membership-landing .mpfm-tier-card ul {
    margin: 18px 0 25px;
    padding-left: 0;
    gap: 12px;
}
body.mpfm-membership-landing .mpfm-tier-card li {
    color: #405772;
    font-size: 14px;
    line-height: 1.5;
}
body.mpfm-membership-landing .mpfm-tier-card .mpfm-tier-apply,
body.mpfm-membership-landing .mpfm-application-form .mpfm-button.primary {
    width: 100%;
    min-height: 52px;
    border-radius: 12px;
    padding: 12px 16px;
    background: linear-gradient(112deg, #153d70, #225c98);
    box-shadow: 0 10px 24px rgba(28, 77, 135, .15);
    color: #ffffff !important;
    text-align: center;
    line-height: 1.4;
}
body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-tier-card .mpfm-tier-apply:hover,
body.mpfm-membership-landing .mpfm-application-form .mpfm-button.primary:hover {
    background: linear-gradient(112deg, #184d86, #246cab);
    box-shadow: 0 13px 26px rgba(28,77,135,.19);
}
/* Application panel stays full-width as a section, but the form is readable. */
body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-application-panel {
    margin: 25px 0 0;
    padding: clamp(26px, 4vw, 56px);
    border: 1px solid #dbe5f0;
    border-radius: 24px;
    background: linear-gradient(180deg, #f6f9fd, #ffffff 75%);
    box-shadow: 0 18px 50px rgba(17, 49, 84, .055);
}
body.mpfm-membership-landing .mpfm-application-panel .mpfm-section-heading {
    max-width: 760px;
}
body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-application-form {
    width: 100%;
    max-width: 960px;
    margin: 22px auto 0;
    padding: clamp(19px, 3vw, 38px);
    border: 1px solid #d5e1ed;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(10, 43, 75, .065);
}
body.mpfm-membership-landing .mpfm-form-grid :is(input, select, textarea) {
    border-radius: 11px;
    background: #fcfdff;
}
body.mpfm-membership-landing .mpfm-form-grid :is(input, select, textarea):focus-visible {
    outline: 2px solid #72b4ec;
    outline-offset: 1px;
}
body.mpfm-membership-landing .mpfm-independence-details,
body.mpfm-membership-landing .mpfm-confirm-row {
    border-radius: 12px;
}
body.mpfm-membership-landing .mpfm-membership-gateway-shell :is(.mpfm-individual-panel, .mpfm-application-panel, .mpfm-gateway-stage) {
    scroll-margin-top: 110px;
}
/* Organization view uses the same canvas; keep its existing form/modal behavior. */
body.mpfm-membership-landing .mpfm-membership-page-main .mpfm-org-membership-panel {
    border: 1px solid #dbe5f0;
    border-radius: 26px;
    box-shadow: 0 20px 52px rgba(20,49,79,.065);
}
@media (max-width: 1050px) {
    body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-tier-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-tier-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
    body.mpfm-membership-landing .mpfm-gateway-stage {
        padding: 45px clamp(22px, 4vw, 45px);
    }
}
@media (max-width: 720px) {
    body.mpfm-membership-landing .mpfm-membership-page-main {
        padding-top: 20px;
        padding-bottom: 48px;
    }
    body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-gateway-stage {
        padding: 38px 21px 23px;
        border-radius: 20px;
        gap: 27px;
    }
    body.mpfm-membership-landing .mpfm-gateway-copy h2 {
        font-size: clamp(31px, 8vw, 41px) !important;
    }
    body.mpfm-membership-landing .mpfm-gateway-copy .mpfm-eyebrow {
        font-size: 10px;
        letter-spacing: .12em;
    }
    body.mpfm-membership-landing .mpfm-choice-grid,
    body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-tier-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-tier-card:last-child:nth-child(odd) {
        grid-column: auto;
    }
    body.mpfm-membership-landing .mpfm-choice-card {
        min-height: 215px;
        padding: 23px;
        border-radius: 16px;
    }
    body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-individual-panel,
    body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-application-panel {
        padding: 24px 19px;
        border-radius: 19px;
    }
    body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-tier-card {
        min-height: 0;
        padding: 25px 22px;
    }
    body.mpfm-membership-landing .mpfm-membership-gateway-shell .mpfm-application-form {
        padding: 22px 17px;
    }
    body.mpfm-membership-landing .mpfm-application-form .mpfm-form-grid.two {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (prefers-reduced-motion: reduce) {
    body.mpfm-membership-landing .mpfm-choice-card,
    body.mpfm-membership-landing .mpfm-tier-card,
    body.mpfm-membership-landing .mpfm-button {
        transition: none;
    }
    body.mpfm-membership-landing .mpfm-choice-card:hover,
    body.mpfm-membership-landing .mpfm-tier-card:hover {
        transform: none;
    }
}
