/*
 * MODO ESPAÑOL / Public Design System v1
 * Single source of truth for typography, semantic text ink, CTAs and the
 * WordPress-owned newsletter. Loaded after the approved page CSS.
 * Layout, illustrations, image crops, theme header/footer and special
 * on-dark/coral/yellow treatments remain owned by the approved page.
 * Add new pages by opting into the body class, NOT by copying this file.
 */
body.modo-ds-on{
 --modo-font-heading:Manrope,Inter,Arial,sans-serif;
 --modo-font-body:Inter,Arial,sans-serif;
 --modo-font-script:Caveat,"Segoe Print","Comic Neue",cursive;
 --modo-color-hero:#063548;
 --modo-color-ink:#072f42;
 --modo-color-body:#26465b;
 --modo-color-lead:#1d4a60;
 --modo-color-muted:#526a7c;
 --modo-color-blue:#0758f8;
 --modo-color-highlight:#0057fb;
 --modo-color-overline:#0256eb;
 --modo-button-radius:9px;
 --modo-newsletter-radius:12px;
}

/* Names for every NEW page. Components have semantic roles, not copied CSS. */
body.modo-ds-on .modo-h1,
body.modo-ds-on .modo-h2,
body.modo-ds-on .modo-h3{
 font-family:var(--modo-font-heading);font-weight:800;
 letter-spacing:-.035em;
}
body.modo-ds-on .modo-h1{color:var(--modo-color-hero);line-height:1.12;}
body.modo-ds-on :is(.modo-h2,.modo-h3){color:var(--modo-color-ink);}
body.modo-ds-on .modo-text{font-family:var(--modo-font-body);color:var(--modo-color-body);}
body.modo-ds-on .modo-text-muted{color:var(--modo-color-muted);}
body.modo-ds-on .modo-overline{
 font-family:var(--modo-font-heading);font-weight:800;
 letter-spacing:.02em;color:var(--modo-color-overline);
}
body.modo-ds-on .modo-accent{color:var(--modo-color-highlight);}
body.modo-ds-on .modo-script{
 font-family:var(--modo-font-script);font-weight:600;font-style:italic;
}
body.modo-ds-on .modo-action{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:44px;padding:0 20px;border-radius:var(--modo-button-radius);
 font-family:var(--modo-font-heading);font-size:12px;font-weight:800;
 line-height:1.1;transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
@media(hover:hover){
 body.modo-ds-on .modo-action:not(:disabled):hover{transform:translateY(-1px);}
}

/* Legacy bridge. Only typography and intrinsic text safety, never layout.
   Explicit artwork colors on highlights and dark panels stay intact. */
body.modo-ds-on .me-main :is(
 .me-approved-public-page,.me-approved-learning-page,.me-preview-page,.me07
){font-family:var(--modo-font-body);}

/* H1 repair: preserve the approved typography of each page. The former
   shared rule forced font family, line-height, tracking, weight and ink with
   !important, replacing HOME01/PAGE04's historical rendered lettering.
   Shared design system now guards text flow ONLY, not H1 artistic metrics. */
body.modo-ds-on .me-main :is(
 .hero h1,.hero-copy h1,.me07-hero-content h1,.me08-hero h1
){
 white-space:normal!important;
 text-wrap:wrap;
 overflow-wrap:break-word;
 hyphens:manual;
 max-inline-size:100%;
}

/* HERO font family is a site-wide, locale-independent contract.
   See assets/css/modo-hero-typography.css, enqueued on every public route.
   Page CSS continues to own headline size, tracking, line height and color. */
body.modo-ds-on .me-main :is(
 .hero-copy,.hero-content,.me07-hero-content,.me08-hero-copy
){min-inline-size:0;}

/* Existing templates may put white-space:nowrap on an emphasized H1 span.
   Restoring wrapping on H1 alone cannot override a child no-wrap. Preserve
   color/weight and inline artwork while allowing those words to reflow. */
body.modo-ds-on .me-main :is(
 .hero h1,.hero-copy h1,.me07-hero-content h1,.me08-hero h1
) :is(span,em,strong){
 white-space:normal!important;
 overflow-wrap:break-word;
}


body.modo-ds-on .me-main :is(
 .hero-lead,.hero-intro,.hero-summary,.me07-hero-content>p,.me08-lead
){
 font-family:var(--modo-font-body)!important;
 font-weight:400!important;
 color:var(--modo-color-lead)!important;
}
body.modo-ds-on .me-main :is(
 .hero .eyebrow,.hero-copy .eyebrow,.me07-hero-content .eyebrow,.me08-hero .eyebrow
){
 font-family:var(--modo-font-heading)!important;
 font-weight:800!important;
 letter-spacing:.02em!important;
 color:var(--modo-color-overline)!important;
}
body.modo-ds-on .me-main :is(
 .format-heading h2,.card-title h3,.benefits h2,.why-content h2,
 .me07-goals h2,.me08-journey h2,.course-card h3
){font-family:var(--modo-font-heading)!important;font-weight:800!important;letter-spacing:-.035em!important;color:var(--modo-color-ink)!important;}
body.modo-ds-on .me-main :is(.handwriting,.hero-script,.closing-handwriting){
 font-family:var(--modo-font-script)!important;
 font-weight:600!important;font-style:italic!important;
}

/* PAGE13 CTA is enqueued at priority 99 and keeps its own approved layout.
   Override its legacy font families only on opted-in RU pages. The higher
   specificity intentionally wins over its later !important rules, without
   changing text color, width, placement, image or gradient. */
body.modo-ds-on .me-page13-cta .me-page13-cta-copy h2{
 font-family:var(--modo-font-heading)!important;
 font-weight:800!important;
}
body.modo-ds-on .me-page13-cta .me-page13-cta-copy p:not(.eyebrow){
 font-family:var(--modo-font-body)!important;
 font-weight:400!important;
}
body.modo-ds-on .me-page13-cta .me-page13-cta-copy .eyebrow{
 font-family:var(--modo-font-heading)!important;
 font-weight:800!important;
}
body.modo-ds-on .me-page13-cta .me-page13-cta-script{
 font-family:var(--modo-font-script)!important;
 font-weight:600!important;
}

/* Shared WordPress newsletter is a SIBLING of <main>, not its child.
   Use one body-class gate, never page-specific :has(...) duplicates.
   Do not alter the subscription fields or server-side form handler. */
body.modo-ds-on .me-newsletter-a .me-newsletter-a-kicker{
 font-family:var(--modo-font-body);
 font-size:13px;font-weight:850;letter-spacing:.06em;
 margin-bottom:14px;color:var(--modo-color-blue);
}
body.modo-ds-on .me-newsletter-a h2{
 max-width:445px;margin:0;
 font-family:var(--modo-font-heading);font-weight:800;
 font-size:clamp(32px,2.6vw,40px);line-height:1.16;
 letter-spacing:-.038em;color:#073448;
}
body.modo-ds-on .me-newsletter-a .me-newsletter-a-copy>p{
 font-family:var(--modo-font-body);color:#37566b;
 font-size:clamp(14px,1.1vw,16px);line-height:1.55;
}
body.modo-ds-on .me-newsletter-a .me-newsletter-form>.me-btn{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:53px;padding:0 21px;border-radius:var(--modo-newsletter-radius);
 background:var(--modo-color-blue);border-color:transparent;color:#fff;
 font-family:var(--modo-font-body);font-size:15px;font-weight:750;
 white-space:nowrap;
}
body.modo-ds-on .me-newsletter-a .me-newsletter-form>.me-btn:not(:disabled):hover{
 background:var(--modo-color-blue);border-color:transparent;color:#fff;
 transform:translateY(-1px);
}
body.modo-ds-on .me-newsletter-a .me-newsletter-form>.me-btn:focus-visible{
 outline:3px solid rgba(7,88,248,.22);outline-offset:3px;
}

/* Existing approved media layouts stay untouched. Only the title is allowed
   to wrap, and the already-approved mobile/stacked page layout handles media. */
@media(max-width:599px){
 body.modo-ds-on .me-newsletter-a h2{max-width:100%;font-size:clamp(28px,7.5vw,35px);}
 body.modo-ds-on .me-newsletter-a .me-newsletter-form>.me-btn{width:100%;}
 body.modo-ds-on .me-main :is(.hero h1,.hero-copy h1,.me07-hero-content h1,.me08-hero h1){
  text-wrap:pretty;overflow-wrap:break-word;
 }
}
@media(prefers-reduced-motion:reduce){
 body.modo-ds-on .modo-action,
 body.modo-ds-on .me-newsletter-a .me-newsletter-form>.me-btn{transition:none!important;}
 body.modo-ds-on :is(.modo-action,.me-newsletter-a .me-newsletter-form>.me-btn):hover{transform:none;}
}
