/* Use Zox's existing responsive .mvp-main-box, exactly as the directory does.
   Do not introduce viewport widths, negative offsets or a second outer gutter. */
body.mdb-membership-wide #mvp-article-wrap .mvp-post-main-out,
body.mdb-membership-wide #mvp-article-wrap .mvp-post-main-in {
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
body.mdb-membership-wide #mvp-article-wrap #mvp-side-wrap {
    display: none !important;
}
body.mdb-membership-wide #mvp-article-wrap .mvp-post-soc-wrap,
body.mdb-membership-wide #mvp-article-wrap .mvp-post-soc-list,
body.mdb-membership-wide #mvp-article-wrap .mvp-soc-mob-wrap {
    display: none !important;
}
body.mdb-membership-wide #mvp-article-wrap .mvp-post-soc-out,
body.mdb-membership-wide #mvp-article-wrap .mvp-post-soc-in {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
body.mdb-membership-wide #mvp-content-main > .mdbsf-wrap,
body.mdb-membership-wide #mvp-content-main .mdbsf-wrap,
body.mdb-membership-wide #mvp-content-main .pmpro {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
}
/* Hero/card padding and existing mobile grids remain owned by the sales plugin.
   The same theme gutter therefore applies on desktop, tablet and mobile. */

/* Profile editor uses the page's own theme container. */
body.mdb-membership-wide #mvp-content-main .mdb-pa {
    width:100%!important;max-width:none!important;min-width:0!important;
    padding-left:0!important;padding-right:0!important;
    margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important;
}
/* Standalone public templates have no .mvp-main-box around them.
   Match Zox News's 1200px container and its actual responsive widths. */
body.mdb-layout-unified .mdb-profile-wrap,
body.mdb-layout-unified #mdb-club-public.mdb-entity {
    width:1200px!important;max-width:100%!important;
    margin:22px auto 56px!important;padding:0!important;box-sizing:border-box!important;
}
@media screen and (max-width:1260px) and (min-width:1200px) {
body.mdb-layout-unified .mdb-profile-wrap,body.mdb-layout-unified #mdb-club-public.mdb-entity {width:96.666666666%!important;}
}
@media screen and (max-width:1199px) and (min-width:1100px) {
body.mdb-layout-unified .mdb-profile-wrap,body.mdb-layout-unified #mdb-club-public.mdb-entity {width:96.3636363636%!important;}
}
@media screen and (max-width:1099px) and (min-width:1004px) {
body.mdb-layout-unified .mdb-profile-wrap,body.mdb-layout-unified #mdb-club-public.mdb-entity {width:96%!important;}
}
@media screen and (max-width:1003px) and (min-width:900px) {
body.mdb-layout-unified .mdb-profile-wrap,body.mdb-layout-unified #mdb-club-public.mdb-entity {width:95.55555555%!important;}
}
@media screen and (max-width:899px) and (min-width:768px) {
body.mdb-layout-unified .mdb-profile-wrap,body.mdb-layout-unified #mdb-club-public.mdb-entity {width:94.7916666666%!important;}
}
@media screen and (max-width:767px) and (min-width:660px) {
body.mdb-layout-unified .mdb-profile-wrap,body.mdb-layout-unified #mdb-club-public.mdb-entity {width:93.9393939393%!important;}
}
@media screen and (max-width:659px) and (min-width:600px) {
body.mdb-layout-unified .mdb-profile-wrap,body.mdb-layout-unified #mdb-club-public.mdb-entity {width:93.3333333333%!important;}
}
@media screen and (max-width:599px) and (min-width:480px) {
body.mdb-layout-unified .mdb-profile-wrap,body.mdb-layout-unified #mdb-club-public.mdb-entity {width:91.6666666666%!important;}
}
@media screen and (max-width:479px) {
body.mdb-layout-unified .mdb-profile-wrap,body.mdb-layout-unified #mdb-club-public.mdb-entity {width:91.6666666666%!important;}
}

/* Same configured theme families as Hazte miembro; no new font downloads. */
body.mdb-layout-unified :is(.mdbsf-wrap,.mdb-pa,.mdb-profile-wrap,#mdb-club-public,.mdb-country-directory,.mdb-comp-directory,.mdb-world-directory,.mdb-ads) {
    font-family:var(--mdb-layout-interface,inherit)!important;
}
body.mdb-layout-unified :is(.mdbsf-wrap,.mdb-pa,.mdb-profile-wrap,#mdb-club-public,.mdb-country-directory,.mdb-comp-directory,.mdb-world-directory,.mdb-ads) :is(h1,h2,h3,h4,h5,h6),
body.mdb-layout-unified :is(.mdb-country-stats,.mdb-comp-stats) strong {
    font-family:var(--mdb-layout-heading,inherit)!important;
}
body.mdb-layout-unified :is(.mdbsf-wrap,.mdb-pa,.mdb-profile-wrap,#mdb-club-public,.mdb-country-directory,.mdb-comp-directory,.mdb-world-directory,.mdb-ads) p {
    font-family:var(--mdb-layout-text,inherit)!important;
}
body.mdb-layout-unified :is(.mdbsf-wrap,.mdb-pa,.mdb-profile-wrap,#mdb-club-public,.mdb-country-directory,.mdb-comp-directory,.mdb-world-directory,.mdb-ads) :is(input,select,textarea,button,label),
body.mdb-layout-unified :is(.mdb-country-stats,.mdb-comp-stats) span {
    font-family:var(--mdb-layout-interface,inherit)!important;
}
body.mdb-layout-unified :is(.mdb-country-stats,.mdb-comp-stats) span {font-size:13px!important;line-height:1.4!important;}
body.mdb-layout-unified :is(.mdb-profile-hero,.mdb-entity-hero,.mdb-pa-hero) h1 {
    font-family:var(--mdb-layout-heading,inherit)!important;
    font-weight:900!important;letter-spacing:-.035em!important;line-height:1.08!important;
    font-size:clamp(30px,3vw,46px)!important;overflow-wrap:anywhere;
}
body.mdb-layout-unified :is(.mdb-profile-hero,.mdb-entity-hero,.mdb-pa-hero)>div {min-width:0;}
body.mdb-membership-wide .mdb-pa-field :is(input[type=text],input[type=email],input[type=url],input[type=tel],input[type=number],input[type=date],select,textarea) {
    width:100%!important;max-width:100%!important;min-width:0!important;box-sizing:border-box!important;
}
body.mdb-membership-wide .mdb-pa-button {border-radius:0!important;}
@media(max-width:560px){
    body.mdb-layout-unified :is(.mdb-profile-hero,.mdb-entity-hero,.mdb-pa-hero) h1 {font-size:27px!important;}
}

/* Identity warning is emitted before the sales wrapper. Align its outer edges. */
body.mdb-membership-wide #mvp-content-main .mdbsf-identity-conflict {
    width:100%!important;max-width:none!important;min-width:0!important;
    margin-left:auto!important;margin-right:auto!important;
    box-sizing:border-box!important;
    font-family:var(--mdb-layout-interface,inherit)!important;
    overflow-wrap:anywhere;
}

/* Advertising landing: use the same editorial scale and square cards. */
body.mdb-advertising-layout #mvp-post-head h1 {
    font-family:var(--mdb-layout-heading,inherit)!important;
    font-weight:900!important;letter-spacing:-.035em!important;line-height:1.08!important;
    font-size:clamp(30px,4vw,46px)!important;
}
body.mdb-advertising-layout #mvp-content-main .mdb-ads {width:100%;min-width:0;}
body.mdb-advertising-layout #mvp-content-main .mdb-ads-hero {padding:46px 48px!important;}
body.mdb-advertising-layout #mvp-content-main .mdb-ads-hero h2 {
    max-width:900px!important;font-size:clamp(34px,5vw,62px)!important;
    font-weight:900!important;line-height:1.02!important;letter-spacing:-.035em!important;
    margin:8px 0 16px!important;
}
body.mdb-advertising-layout #mvp-content-main .mdb-ads-hero p {
    max-width:800px!important;font-size:17px!important;line-height:1.6!important;
}
body.mdb-advertising-layout #mvp-content-main :is(.mdb-ads-main-button,.mdb-ads-email-button,.mdb-ads-stats,.mdb-ads-card,.mdb-social-item,.mdb-ads-format,.mdb-custom-campaign,.mdb-custom-highlight) {
    border-radius:0!important;box-shadow:none!important;
}
body.mdb-advertising-layout #mvp-content-main .mdb-ads-stats {
    margin:0 0 48px!important;grid-template-columns:repeat(5,minmax(0,1fr));
    background:#f4f5f6!important;
}
body.mdb-advertising-layout #mvp-content-main :is(.mdb-ads-section,.mdb-social-section,.mdb-ads-cta,.mdb-custom-campaign) {
    margin-left:0!important;margin-right:0!important;box-sizing:border-box;
}
body.mdb-advertising-layout #mvp-content-main .mdb-ads :is(a,button) {
    font-family:var(--mdb-layout-interface,inherit)!important;
}
body.mdb-advertising-layout #mvp-content-main .mdb-stat strong {
    font-family:var(--mdb-layout-heading,inherit)!important;
}
body.mdb-advertising-layout #mvp-content-main :is(.mdb-ads-main-button,.mdb-ads-email-button) {
    min-height:44px;font-weight:900!important;white-space:normal!important;
    overflow-wrap:anywhere!important;max-width:100%!important;box-sizing:border-box;
}
@media(max-width:760px){
    body.mdb-advertising-layout #mvp-content-main .mdb-ads-hero {padding:32px 24px!important;}
    body.mdb-advertising-layout #mvp-content-main .mdb-ads-stats {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:480px){
    body.mdb-advertising-layout #mvp-content-main .mdb-ads-hero {padding:28px 20px!important;}
    body.mdb-advertising-layout #mvp-content-main .mdb-ads-stats {grid-template-columns:1fr!important;}
    body.mdb-advertising-layout #mvp-content-main .mdb-stat {border-right:0!important;border-bottom:1px solid #e4e6e8;}
    body.mdb-advertising-layout #mvp-content-main .mdb-stat:last-child {border-bottom:0;}
}

/* All plans share the configured PMPro checkout page. Keep field/card padding. */
body.mdb-checkout-wide #mvp-content-main #pmpro_form,
body.mdb-checkout-wide #mvp-content-main .mdb-ux-checkout-summary {
    width:100%!important;max-width:none!important;min-width:0!important;
    margin-left:auto!important;margin-right:auto!important;box-sizing:border-box!important;
}
body.mdb-checkout-wide #mvp-content-main #pmpro_form {
    padding-left:0!important;padding-right:0!important;float:none!important;
}
body.mdb-checkout-wide #mvp-content-main .pmpro {
    --pmpro--base--size--content:100%;--pmpro--base--size--wide:100%;
}

/* Sales funnel intro/footer and legacy PMPro sections have a separate 900px cap. */
body.mdb-checkout-wide #mvp-content-main .mdbsf-checkout-intro,
body.mdb-checkout-wide #mvp-content-main .mdbsf-checkout-foot,
body.mdb-checkout-wide #mvp-content-main .pmpro_checkout {
    width:100%!important;max-width:none!important;min-width:0!important;
    margin-left:0!important;margin-right:0!important;box-sizing:border-box!important;
}

/* Separate the plan-change notice from the checkout progress steps. */
body.mdb-checkout-wide #mvp-content-main .mdbsf-checkout-intro > .mdbsf-steps + .mdbsf-combo-note {
    margin-top:16px!important;
}

/* Plan landings: align notices and plan cards with the hero. */
body.mdb-plan-landing #mvp-content-main .mdbsf-wrap :is(.mdbsf-combo-note,.mdbsf-lookup-box,.mdbsf-eligibility,.mdbsf-grid--two) {
    width:100%!important;max-width:none!important;min-width:0!important;
    margin-left:0!important;margin-right:0!important;box-sizing:border-box!important;
}
body.mdb-plan-landing #mvp-content-main .mdbsf-wrap :is(.mdbsf-combo-note,.mdbsf-eligibility) > * {
    min-width:0;white-space:normal;overflow-wrap:anywhere;
}
/* Every step fills its share; text wraps inside cells, never into an orphan row. */
body.mdb-plan-landing #mvp-content-main .mdbsf-flow {
    display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;
    width:100%;min-width:0;gap:0!important;box-sizing:border-box;
}
body.mdb-plan-landing #mvp-content-main .mdbsf-flow > :is(strong,span) {
    flex:1 1 0!important;min-width:0!important;max-width:none!important;
    margin:0!important;box-sizing:border-box;white-space:normal!important;
    overflow-wrap:anywhere;border-bottom:0!important;
    border-right:1px solid var(--mdb-line,#e4e6e8)!important;
}
body.mdb-plan-landing #mvp-content-main .mdbsf-flow > strong {
    flex:0 1 180px!important;
}
body.mdb-plan-landing #mvp-content-main .mdbsf-flow > :last-child {
    border-right:0!important;
}
@media(max-width:760px){
    body.mdb-plan-landing #mvp-content-main .mdbsf-flow {
        flex-direction:column!important;
    }
    body.mdb-plan-landing #mvp-content-main .mdbsf-flow > :is(strong,span) {
        flex:0 0 auto!important;width:100%!important;
        border-right:0!important;border-bottom:1px solid var(--mdb-line,#e4e6e8)!important;
    }
    body.mdb-plan-landing #mvp-content-main .mdbsf-flow > :last-child {
        border-bottom:0!important;
    }
}

/* The lookup contents follow the full-width outer card. */
body.mdb-plan-landing #mvp-content-main .mdbsf-lookup-box :is(.mdbsf-section-head,.mdbsf-lookup-lead,.mdbsf-profile-search,.mdbsf-profile-results,.mdbsf-search-empty,.mdbsf-search-message,.mdbsf-not-me) {
    width:100%!important;max-width:none!important;min-width:0!important;
    box-sizing:border-box!important;
}
body.mdb-plan-landing #mvp-content-main .mdbsf-profile-search-row {
    width:100%;min-width:0;
}

/* Personal-level notices also appear outside landing wrappers, in checkout. */
body.mdb-membership-wide #mvp-content-main .mdbsf-combo-note {
    width:100%!important;max-width:none!important;min-width:0!important;
    margin-left:0!important;margin-right:0!important;box-sizing:border-box!important;
}
