.eamcn-professores{display:grid;grid-template-columns:repeat(var(--ep-desktop,5),minmax(0,245px));justify-content:center;gap:24px;width:100%}
.eamcn-professores *{box-sizing:border-box}
.eamcn-professor-card{display:flex;flex-direction:column;min-width:0;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 4px 20px rgba(0,0,0,.09);transition:transform .3s ease,box-shadow .3s ease}
.eamcn-professor-media{aspect-ratio:3/4;max-height:300px;background:#eee;overflow:hidden}
.eamcn-professor-image{display:block;width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.eamcn-professor-placeholder{height:100%;background:#eee}
.eamcn-professor-bottom{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:space-between;padding:16px 12px 18px;text-align:center}
.eamcn-professor-bottom h3{font-family:inherit;font-size:clamp(14px,1.2vw,18px);line-height:1.35;font-weight:700;text-transform:uppercase;color:#252525;margin:0 0 12px}
.eamcn-professor-open{border:0;background:transparent;color:#252525;font-size:12px;font-weight:700;letter-spacing:.04em;cursor:pointer;padding:6px 8px}
.eamcn-professor-open:hover{text-decoration:underline}
@media(hover:hover) and (pointer:fine){.eamcn-professor-card:not(.eamcn-professor-card-static):hover{transform:translateY(-5px);box-shadow:0 10px 28px rgba(0,0,0,.15)}.eamcn-professor-card:not(.eamcn-professor-card-static):hover .eamcn-professor-image{transform:scale(1.04)}}
@media(max-width:1024px){.eamcn-professores{grid-template-columns:repeat(var(--ep-tablet,3),minmax(0,245px))}}
@media(max-width:640px){.eamcn-professores{grid-template-columns:repeat(var(--ep-mobile,1),minmax(0,245px))}}
.eamcn-professor-modal[hidden]{display:none!important}
.eamcn-professor-modal{position:fixed;inset:0;z-index:999999;display:flex;align-items:center;justify-content:center;padding:20px}
.eamcn-professor-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.68)}
.eamcn-professor-dialog{position:relative;width:min(760px,100%);max-height:min(86vh,950px);overflow-y:auto;background:#fff;border-radius:16px;padding:32px;color:#252525;box-shadow:0 20px 70px rgba(0,0,0,.25);outline:none}
.eamcn-professor-close{position:absolute;right:16px;top:12px;border:0;background:transparent;font-size:32px;line-height:1;cursor:pointer;color:#333;z-index:1}
.eamcn-professor-dialog-head{display:flex;align-items:center;gap:24px;margin:0 32px 22px 0}
.eamcn-professor-portrait{width:110px;height:140px;object-fit:cover;border-radius:10px;flex:none}
.eamcn-professor-dialog-head h2{font-family:inherit;font-size:clamp(22px,3vw,30px);line-height:1.2;margin:0;color:#252525}
.eamcn-professor-biography{font-size:16px;line-height:1.65;overflow-wrap:anywhere}
.eamcn-professor-biography>:first-child{margin-top:0}
.eamcn-professor-biography>:last-child{margin-bottom:0}
@media(max-width:540px){.eamcn-professor-dialog{padding:24px 20px}.eamcn-professor-dialog-head{gap:14px}.eamcn-professor-portrait{width:78px;height:100px}}
.eamcn-professores[data-animation]:not([data-animation="none"]).ep-ready .eamcn-professor-card:not(.ep-visible){opacity:0;transform:translateY(38px)}
.eamcn-professores[data-animation="fade"].ep-ready .eamcn-professor-card:not(.ep-visible){transform:none}
.eamcn-professores.ep-ready .eamcn-professor-card{transition:opacity .65s ease,transform .65s cubic-bezier(.2,.7,.2,1),box-shadow .3s ease}
@media(prefers-reduced-motion:reduce){.eamcn-professores .eamcn-professor-card{opacity:1!important;transform:none!important;transition:none!important}}
.eamcn-professores-wrap{width:100%}
.eamcn-professores-section+.eamcn-professores-section{margin-top:48px}
.eamcn-professores-heading{margin:0 0 22px}
.eamcn-professores{grid-template-columns:repeat(var(--ep-desktop,5),minmax(0,245px))}
.eamcn-professor-media{aspect-ratio:1/1;max-height:none}
.eamcn-professor-portrait{aspect-ratio:1/1;height:110px}
.eamcn-professores-wrap[data-animation]:not([data-animation="none"]).ep-ready .eamcn-professor-card:not(.ep-visible){opacity:0;transform:translateY(38px)}
.eamcn-professores-wrap[data-animation="fade"].ep-ready .eamcn-professor-card:not(.ep-visible){transform:none}
.eamcn-professores-wrap.ep-ready .eamcn-professor-card{transition:opacity .65s ease,transform .65s cubic-bezier(.2,.7,.2,1),box-shadow .3s ease}
@media(max-width:1024px){.eamcn-professores{grid-template-columns:repeat(var(--ep-tablet,3),minmax(0,245px))}}
@media(max-width:640px){.eamcn-professores{grid-template-columns:repeat(var(--ep-mobile,1),minmax(0,245px))}.eamcn-professor-portrait{height:78px}}

/* A pré-visualização é apenas visual: os cliques selecionam o bloco no Gutenberg. */
.editor-styles-wrapper .eamcn-professores-editor-block{position:relative;min-height:80px;cursor:pointer}
.editor-styles-wrapper .eamcn-professores-editor-preview{pointer-events:none}
.editor-styles-wrapper .eamcn-professores-editor-preview .eamcn-professor-modal{display:none!important}
/* v1.2.0: o cartão completo é um único botão acessível. */
.eamcn-professor-card-button{display:flex;flex:1;flex-direction:column;width:100%;min-width:0;padding:0;border:0;border-radius:inherit;background:transparent;color:inherit;text-align:inherit;cursor:pointer;font:inherit;overflow:hidden}
.eamcn-professor-card-button:focus-visible{outline:3px solid currentColor;outline-offset:-3px}
.eamcn-professor-card-button .eamcn-professor-media{display:block;width:100%;flex:none}
.eamcn-professor-card-button .eamcn-professor-placeholder{display:block;width:100%}
.eamcn-professor-card-button .eamcn-professor-bottom{display:flex;width:100%}
.eamcn-professor-name{font-family:inherit;font-size:clamp(14px,1.2vw,18px);line-height:1.35;font-weight:700;text-transform:uppercase;color:#252525;margin:0 0 12px}
.eamcn-professor-more{color:#252525;font-size:12px;font-weight:700;letter-spacing:.04em;padding:6px 8px}
.eamcn-professor-card-button:hover .eamcn-professor-more{text-decoration:underline}
/* Sem estilos tipográficos de base: o Blocksy determina o aspeto do H2/H3/etc. */
.eamcn-professores-wrap .eamcn-professores-heading{margin:0 0 22px}

/* v1.5.1 — Títulos dos subdepartamentos entram com o mesmo efeito dos cartões. */
.eamcn-professores-wrap[data-animation]:not([data-animation="none"]).ep-ready .eamcn-professores-heading:not(.ep-visible){opacity:0;transform:translateY(38px)}
.eamcn-professores-wrap[data-animation="fade"].ep-ready .eamcn-professores-heading:not(.ep-visible){transform:none}
.eamcn-professores-wrap.ep-ready .eamcn-professores-heading{transition:opacity .65s ease,transform .65s cubic-bezier(.2,.7,.2,1)}
@media(prefers-reduced-motion:reduce){.eamcn-professores-wrap .eamcn-professores-heading{opacity:1!important;transform:none!important;transition:none!important}}

/* Cartões sem biografia: apresentação sem interação. */
.eamcn-professor-card-static .eamcn-professor-card-button{cursor:default}

/* v1.5.4 — Balanceamento dos títulos dos subdepartamentos. */
.eamcn-professores-wrap .eamcn-professores-heading {
    text-wrap: balance;
}
