/* EducaMed Aprende y consulta, 30 Nov 2026.
 * Add emc-public-suite to BODY only on the approved seven-section routes.
 * Load after shared-headers.css, learning-catalogues.css and footer snippet257.
 * No entitlement, related-card, engine or floating-control changes.
 */
body.emc-public-suite{--emc-band-width:min(1180px,calc(100vw - 40px));--emc-reading-gutter:20px;--emc-safe-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
.emc-public-suite :is(.emc-reading-band,.emlc,nav.emc-suite-nav,.emc-public-offer,.emc-public-summary,.emc-public-tutorial,.emc-feature-preview,.emc-public-catalog,.emc-welcome,.emc-access-state,.emc-trial-status,.educamed-clinical-ui){box-sizing:border-box;width:100%;max-width:var(--emc-band-width);margin-inline:auto;min-width:0}
.emc-public-suite :where(.emc-reading-band,.emc-public-summary){overflow-wrap:break-word}
.emc-public-suite nav.emc-suite-nav{padding-inline:0}
.emc-public-suite :is(.emlc-grid,.emc-preview-grid){display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:22px}
.emc-public-suite :where(.emlc-card,.emc-preview-card){min-width:0}
.emc-public-suite :where(.emlc-body h3,.emc-preview-card h3){overflow-wrap:anywhere}
.emc-public-suite .emc-welcome .emc-benefits{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr))}
.emc-public-suite .emc-preview-card img{height:auto;aspect-ratio:16/9;object-fit:contain}
.emc-public-suite .emc-public-offer{padding:24px;border:1px solid #bddade;border-radius:16px;background:#f0f8f9;color:#123f4d;margin-block:28px}
.emc-public-suite .emc-public-offer h2{font-size:clamp(22px,2vw,28px);line-height:1.25;margin:0 0 12px}
.emc-public-suite .emc-public-offer p{max-width:65ch;margin:0 0 14px}
.emc-public-suite .emc-public-offer__actions{display:flex;flex-wrap:wrap;gap:12px}
.emc-public-suite .emc-public-offer__actions a{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:48px;max-width:100%;padding:12px 18px;border:2px solid #176f78;border-radius:10px;background:#176f78;color:#fff;font-weight:700;line-height:1.45;text-align:center;text-decoration:none;white-space:normal}
.emc-public-suite .emc-public-offer__actions a+ a{background:#fff;color:#145c65}
.emc-public-suite .emc-public-offer__actions a:hover{background:#104e58;border-color:#104e58;color:#fff;text-decoration:underline;text-underline-offset:3px}
.emc-public-suite .emc-public-offer__actions a:focus-visible{outline:3px solid #9a590a;outline-offset:4px;text-decoration:underline}
.emc-public-suite .emc-public-offer__terms{font-size:14px;line-height:1.6;margin-top:16px;margin-bottom:0}
.emc-public-suite .emc-topic-illustration{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#edf5f7}
.emc-public-suite .emc-private-frame{display:block;box-sizing:border-box;width:100%;max-width:100%;border:1px solid #bed8de;border-radius:12px;background:#fff}
.emc-public-suite .emc-frame-fallback{font-size:14px;margin:12px 0 28px}
.emc-public-suite .emc-case-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:22px;margin-block:24px}
.emc-public-suite .emc-case-preview-card{min-width:0;border:1px solid #c4dde1;border-radius:16px;overflow:hidden;background:#fff}
.emc-public-suite .emc-case-preview-link{position:relative;display:flex;height:100%;flex-direction:column;color:#123f4d;text-decoration:none}
.emc-public-suite .emc-case-preview-image{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:contain;background:#edf5f7}
.emc-public-suite .emc-case-preview-body{display:flex;flex:1;flex-direction:column;padding:20px}
.emc-public-suite .emc-case-preview-body h3{font-size:21px;line-height:1.35;margin:8px 0 14px;overflow-wrap:anywhere}
.emc-public-suite .emc-case-preview-body p{line-height:1.6;margin:0 0 12px}
.emc-public-suite .emc-case-preview-time{font-size:13px;color:#49626c}
.emc-public-suite .emc-case-preview-body .emc-card-cue{margin-top:auto}
.emc-public-suite .emc-case-preview-link:hover{background:#f0f8f8;color:#104955}
.emc-public-suite .emc-case-preview-link:hover h3{text-decoration:underline;text-underline-offset:3px}
.emc-public-suite .emc-case-preview-link:focus-visible{outline:3px solid #9a590a;outline-offset:-4px}
/* Keep the accepted full-width hero and its existing mobile 400+190 structure. */
@media(min-width:768px){
 body.emc-public-suite{--emc-band-width:min(1180px,calc(100vw - 448px));--emc-reading-gutter:max(224px,calc((100vw - 1180px)/2))}
 .emc-public-suite .educamed-clinical-module header.emc-hero.emc-suite-hero{padding-inline:var(--emc-reading-gutter);min-height:560px}
 .emc-public-suite .educamed-clinical-module header.emc-hero.emc-suite-hero .emc-hero__copy{width:55%;max-width:650px}
 .emc-public-suite .educamed-clinical-module header.emc-hero.emc-suite-hero::before{background:linear-gradient(90deg,#f0f9fc 0%,#f0f9fcfa 46%,#f0f9fce3 56%,#f0f9fc5c 70%,#f0f9fc00 85%)}
}
@media(min-width:768px) and (max-width:1279px){
 .emc-public-suite .educamed-clinical-module header.emc-hero.emc-suite-hero .emc-hero__copy{width:100%;max-width:650px}
 .emc-public-suite .educamed-clinical-module header.emc-hero.emc-suite-hero::before{background:linear-gradient(90deg,#f0f9fcf7 0%,#f0f9fcf7 75%,#f0f9fcd9 100%)}
}
/* Override snippet257's asymmetric 190/210px inner padding on these routes only.
 * Same footer markup yields the same height. Text/zoom may grow the section.
 */
.emc-public-suite #fidys-footer-map{padding-inline:0}
.emc-public-suite #fidys-footer-map .ff-wrap{box-sizing:border-box;width:100%;max-width:var(--emc-band-width);padding-inline:0;margin-inline:auto}
.emc-public-suite #fidys-footer-map .ff-columns{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
.emc-public-suite #fidys-footer-map .ff-legal{box-sizing:border-box;width:100%;min-height:52px;align-content:center;overflow-wrap:anywhere}
.emc-public-suite #colophon :is(.ast-container,.ast-builder-grid-row-container-inner){box-sizing:border-box;width:100%;max-width:var(--emc-band-width);padding-inline:0;margin-inline:auto}
.emc-public-suite #colophon :where(.ast-footer-copyright,.site-footer-focus-item){min-width:0;overflow-wrap:anywhere}
@media(max-width:1279px){
 .emc-public-suite #fidys-footer-map .ff-intro{grid-template-columns:minmax(0,1fr)}
 .emc-public-suite #fidys-footer-map .ff-graphic{display:none}
 .emc-public-suite #fidys-footer-map .ff-shortcuts{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:767px){
 .emc-public-suite :is(.emlc-grid,.emc-preview-grid){grid-template-columns:minmax(0,1fr)}
 .emc-public-suite .emc-public-offer{padding:20px}
 .emc-public-suite .emc-public-offer__actions{display:grid;grid-template-columns:minmax(0,1fr)}
 .emc-public-suite #colophon{padding-bottom:var(--emc-safe-bottom)}
 .emc-public-suite #fidys-footer-map .ff-legal{min-height:96px}
}
@media(prefers-reduced-motion:reduce){.emc-public-suite .emc-public-offer__actions a{transition:none}}

/* 30 Nov live-QA correction: the public shell emits nav beside the hero module. */
body.emc-public-suite nav.emc-suite-nav{display:flex;flex-wrap:wrap;align-items:stretch;gap:10px;box-sizing:border-box;width:100%;max-width:var(--emc-band-width);margin:0 auto 28px;padding:0}
body.emc-public-suite nav.emc-suite-nav a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:48px;max-width:100%;padding:12px 16px;border:1px solid #b9d7d9;border-radius:12px;background:#f0f8f8;color:#104955;font:700 14px/1.4 Rubik,system-ui,sans-serif;text-align:center;text-decoration:none;white-space:normal;overflow-wrap:break-word}
body.emc-public-suite nav.emc-suite-nav a:hover{background:#dcefee;color:#104955}
body.emc-public-suite nav.emc-suite-nav a[aria-current="page"]{background:#104955;color:#fff;border-color:#104955}
body.emc-public-suite nav.emc-suite-nav a[aria-current="page"]:hover{background:#0b596f;color:#fff;border-color:#0b596f}
body.emc-public-suite nav.emc-suite-nav a:focus-visible{outline:3px solid #08777a;outline-offset:3px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:767px){
 body.emc-public-suite nav.emc-suite-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.emc-public-suite nav.emc-suite-nav a{min-width:0;padding:12px 14px}
 body.emc-public-suite nav.emc-suite-nav a:last-child:nth-child(odd){grid-column:1/-1}
 /* The controls retain their existing positions and z-index9000/9001. */
 body.emc-public-suite:not(.wp-admin){padding-bottom:calc(104px + env(safe-area-inset-bottom,0px))}
 body.emc-public-suite:not(.wp-admin)::after{content:"";position:fixed;inset:auto 0 0;height:calc(86px + env(safe-area-inset-bottom,0px));box-sizing:border-box;background:#fff;border-top:1px solid #c9dfe4;box-shadow:0 -4px 16px #073f5212;z-index:8999;pointer-events:none}
}

/* A wrapped inline link left an untappable gap on mobile: one full touch box. */
.emc-public-suite .emc-frame-fallback a{box-sizing:border-box;display:inline-flex;align-items:center;min-height:48px;max-width:100%;padding:10px 14px;border:1px solid #176f78;border-radius:10px;background:#fff;color:#145c65;line-height:1.5;text-decoration:none;white-space:normal;overflow-wrap:anywhere}.emc-public-suite .emc-frame-fallback a:hover{background:#edf7f7;text-decoration:underline}.emc-public-suite .emc-frame-fallback a:focus-visible{outline:3px solid #9a590a;outline-offset:3px}
