@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600&display=swap');
/* PSE: fonte sem serifa nos portlets da esquerda, igual à coluna da direita */
#portal-column-one .portletHeader,
#portal-column-one .portletHeader a {
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
}
#portal-column-one .portletContent,
#portal-column-one .portletContent p,
#portal-column-one .portletContent a {
  font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 14px !important;
}
/* === Paleta PSE (06/11/2026) === */
#portal-column-one, #portal-column-two { --npd-menu-azul: #22521f; }
#portal-column-one .portlet, #portal-column-two .portlet { border-color: #22521f !important; }
#portal-column-one .portletHeader, #portal-column-one .portletHeader a { color: #22521f !important; border-color: #e5a61d !important; }
#portal-column-two .portletHeader, #portal-column-two .portletHeader a { color: #22521f !important; background-color: #fbf6e0 !important; border-color: #e5a61d !important; }
#portal-column-one .portletContent a, #portal-column-two .portletContent a { color: #22521f !important; }
#portal-column-one .portletContent a:hover, #portal-column-two .portletContent a:hover { color: #3c6639 !important; text-decoration: underline; }

#content-core a { color: #2f6a2b; }
#content-core a:hover { color: #22521f; }
#portal-footer-wrapper { background-color: #22521f !important; color: #fbf6e0 !important; }
#portal-footer-wrapper a { color: #f6e7b2 !important; }

/* === Titulo B (06/11/2026) === */
h1.documentFirstHeading { font-family: Poppins, Roboto, "Helvetica Neue", Arial, sans-serif !important; font-weight: 600 !important; color: #22521f !important; letter-spacing: -0.2px; line-height: 1.25 !important; padding-bottom: 12px !important; margin-bottom: 14px !important; border-bottom: none !important; position: relative; }
h1.documentFirstHeading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 64px; height: 4px; background-color: #e5a61d; }

/* === Espaco topo (06/11/2026) === */
body.section-pagina-inicial #main-container { padding-top: 28px !important; }

/* === Breadcrumb C (06/11/2026) === */
.plone-breadcrumb { background-color: transparent !important; }
.plone-breadcrumb ol { padding: 6px 0 !important; display: flex !important; flex-wrap: wrap; align-items: center; row-gap: 6px; }
.plone-breadcrumb ol > li { line-height: 1.4 !important; padding: 0 !important; display: inline-flex !important; align-items: center; font-family: Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 12px; }
.plone-breadcrumb ol > li + li::after { display: none !important; }
.plone-breadcrumb ol > li + li::before { content: "\203A" !important; position: static !important; border: 0 !important; color: #e5a61d !important; font-size: 16px; line-height: 1; margin: 0 7px; top: auto; left: auto; }
.plone-breadcrumb ol a, .plone-breadcrumb ol #breadcrumbs-current { display: inline-block; padding: 3px 11px !important; border-radius: 12px; text-decoration: none !important; }
.plone-breadcrumb ol a { background-color: #fbf6e0; color: #22521f !important; border: 1px solid #f6e7b2; }
.plone-breadcrumb ol a:hover { background-color: #f6e7b2; }
.plone-breadcrumb ol #breadcrumbs-current { background-color: #22521f; color: #ffffff !important; border: 1px solid #22521f; }
#breadcrumbs-home a::before { content: "\2302"; margin-right: 5px; }
body.section-en #breadcrumbs-home a, body.section-espanol #breadcrumbs-home a { font-size: 0 !important; }
body.section-en #breadcrumbs-home a::before, body.section-espanol #breadcrumbs-home a::before { font-size: 12px; }
body.section-en #breadcrumbs-home a::after { content: "Home"; font-size: 12px; }
body.section-espanol #breadcrumbs-home a::after { content: "Inicio"; font-size: 12px; }

/* === Celular e tablet (06/11/2026) === */
.portlet-static-menu-celular { display: none !important; }
@media (max-width: 991px) {
  #main-container { display: flex !important; flex-direction: column; }
  #main-container > div { width: 100% !important; float: none !important; }
  #main-container > div.col-md-pull-6, #main-container > div:has(#portal-column-one) { order: -1; }
  #portal-column-one { display: flex; flex-direction: column; }
  #portal-column-one .portlet { display: none !important; }
  #portal-column-one .portletWrapper { margin-bottom: 0 !important; }
  #portal-column-one:target .portletWrapper { margin-bottom: 18px !important; }
  #portal-column-one .portletWrapper:has(.portlet-static-menu-celular) { order: -1; margin-bottom: 0 !important; }
  #portal-column-one:target .portlet { display: block !important; }
  #portal-column-one .portlet.portlet-static-menu-celular { display: block !important; order: -1; border: 0 !important; background: transparent !important; box-shadow: none !important; margin: 0 0 12px 0 !important; }
  .portlet-static-menu-celular .portletHeader { display: none !important; }
  .portlet-static-menu-celular .portletContent { padding: 0 !important; border: 0 !important; background: transparent !important; }
  .portlet-static-menu-celular p { margin: 0 0 8px 0 !important; }
  #portal-column-one .portlet-static-menu-celular a.pse-menu-abrir, #portal-column-one .portlet-static-menu-celular a.pse-menu-fechar { display: block; background-color: #22521f; color: #ffffff !important; padding: 10px 14px !important; border-left: 6px solid #e5a61d; font-family: Poppins, Roboto, Arial, sans-serif !important; font-weight: 500 !important; font-size: 15px !important; text-decoration: none !important; }
  #portal-column-one .portlet-static-menu-celular a.pse-menu-fechar { display: none; }
  #portal-column-one:target .portlet-static-menu-celular a.pse-menu-abrir { display: none; }
  #portal-column-one:target .portlet-static-menu-celular a.pse-menu-fechar { display: block; }
  .portlet-static-menu-celular .pse-idiomas { display: flex; flex-wrap: wrap; gap: 16px; }
  #portal-column-one .portlet-static-menu-celular .pse-idiomas a { color: #22521f !important; font-size: 13px !important; }
  #portal-column-two .portlet-static-idioma-language, #portal-column-two .portlet-static-language-idioma, #portal-column-two .portlet-static-other-languages, #portal-column-two .portlet-static-otros-idiomas { display: none !important; }
  #content-core { overflow-x: auto; }
  #content-core img { max-width: 100%; height: auto; }
}
@media (max-width: 600px) {
  table.banners-pse, table.banners-pse tbody, table.banners-pse tr { display: block; width: 100%; }
  table.banners-pse td { display: block; padding: 5px 0 !important; }
  table.banners-pse img { width: 100%; max-width: 420px; height: auto; }
  #content-core td[style*="width: 50%"] { display: block; width: 100% !important; padding: 5px 0 !important; }
  h1.documentFirstHeading { font-size: 25px !important; }
  #content-core h2[style*="22521f"], #content-core h3[style*="22521f"] { font-size: 16px !important; }
}

/* menu-celular-cor */
#portal-column-one section.portletStaticText.portlet-static-menu-celular > .portletContent a.pse-menu-abrir, #portal-column-one section.portletStaticText.portlet-static-menu-celular > .portletContent a.pse-menu-fechar { color: #ffffff !important; }

/* === Lista de noticias discreta (06/11/2026) === */
body.section-news.template-summary_view .documentDescription { font-size: 14px; color: #6b7061; }
body.section-news.template-summary_view #content-core article.tileItem { display: grid; grid-template-columns: 88px 1fr; column-gap: 14px; align-items: start; padding: 10px 0; margin: 0; border-bottom: 1px solid #f6e7b2; }
body.section-news.template-summary_view #content-core .tileImage, body.section-news.template-summary_view #content-core .tileImageNoFloat { grid-column: 1; grid-row: 1 / span 3; float: none; margin: 0; }
body.section-news.template-summary_view #content-core .tileImage img, body.section-news.template-summary_view #content-core .tileImageNoFloat img { width: 88px !important; height: 56px !important; object-fit: cover; border-radius: 4px; border: 1px solid #f6e7b2; }
body.section-news.template-summary_view #content-core .tileHeadline { grid-column: 2; margin: 0 0 3px 0; font-family: Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 15px !important; line-height: 1.35; font-weight: 500; }
body.section-news.template-summary_view #content-core .tileHeadline a { color: #22521f !important; text-decoration: none; }
body.section-news.template-summary_view #content-core .tileHeadline a:hover { color: #3c6639 !important; text-decoration: underline; }
body.section-news.template-summary_view #content-core .tileBody { grid-column: 2; font-size: 12px; color: #6b7061; margin: 0; }
body.section-news.template-summary_view #content-core .tileBody .description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
body.section-news.template-summary_view #content-core .documentByLine, body.section-news.template-summary_view #content-core .tileFooter { display: none; }
body.section-news.template-summary_view #content-core .visualClear { display: none; }
body.section-news.template-summary_view #content-core article.tileItem:not(:has(.tileImage, .tileImageNoFloat)) .tileHeadline, body.section-news.template-summary_view #content-core article.tileItem:not(:has(.tileImage, .tileImageNoFloat)) .tileBody { grid-column: 1 / span 2; }

/* === Coluna direita traduzida EN/ES (06/11/2026) === */
body.section-en #portal-column-two .portlet-static-horario-de-atendimento, body.section-en #portal-column-two .portlet-static-contato, body.section-espanol #portal-column-two .portlet-static-horario-de-atendimento, body.section-espanol #portal-column-two .portlet-static-contato { display: none !important; }
body.section-en #portal-column-two .portletWrapper:has(.portlet-static-horario-de-atendimento), body.section-en #portal-column-two .portletWrapper:has(.portlet-static-contato), body.section-espanol #portal-column-two .portletWrapper:has(.portlet-static-horario-de-atendimento), body.section-espanol #portal-column-two .portletWrapper:has(.portlet-static-contato) { display: none !important; }
body.section-en #portal-column-two, body.section-espanol #portal-column-two { display: flex; flex-direction: column; }
#portal-column-two .portletWrapper:has(.portletNews) { order: 1; }
#portal-column-two .portletWrapper:has(.portletRss) { order: 2; }
#portal-column-two .portletWrapper:has(.portlet-static-office-hours), #portal-column-two .portletWrapper:has(.portlet-static-horario-de-atencion) { order: 3; }
#portal-column-two .portletWrapper:has(.portlet-static-contact), #portal-column-two .portletWrapper:has(.portlet-static-contacto) { order: -1; }
#portal-column-two .portletWrapper:has(.portlet-static-links-uteis) { order: 5; }

/* === Titulo inicial menor (06/11/2026) === */
body.section-pagina-inicial h1.documentFirstHeading { font-size: 22px !important; padding-bottom: 10px !important; margin-bottom: 16px !important; }
@media (max-width: 600px) { body.section-pagina-inicial h1.documentFirstHeading { font-size: 20px !important; } }

/* === Bordas direita = esquerda (07/11/2026) === */
#portal-column-two .portlet { border: 0 !important; box-shadow: none !important; border-radius: 0 !important; background-color: transparent !important; margin-bottom: 22px !important; }
#portal-column-two .portletHeader, #portal-column-two .portletHeader a { background-color: transparent !important; }
#portal-column-two .portletHeader { border: 0 !important; border-bottom: 2px solid #e5a61d !important; padding: 0 0 11px 0 !important; position: relative; border-radius: 4px 4px 0 0 !important; }
#portal-column-two .portletHeader::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 52px; height: 2px; background-color: #00a859; }
#portal-column-two .portletContent { background-color: #ffffff !important; border: 1px solid #dbe5ed !important; border-top: 0 !important; border-radius: 0 0 8px 8px !important; overflow: hidden; }
/* portletFooter-direita */
#portal-column-two .portlet:has(.portletFooter) .portletContent { border-radius: 0 !important; }
#portal-column-two .portletFooter { background-color: #ffffff !important; border: 1px solid #dbe5ed !important; border-top: 0 !important; border-radius: 0 0 8px 8px !important; }
/* links-uteis-padding */
#portal-column-two .portlet-static-links-uteis .portletContent p { padding-left: 8px !important; padding-right: 8px !important; }


/* === Titulos Noticias/Links uteis traduzidos EN/ES (07/11/2026) === */
body.section-en #portal-column-two .portletNews .portletHeader a, body.section-espanol #portal-column-two .portletNews .portletHeader a, body.section-en #portal-column-two .portletRss .portletHeader a, body.section-espanol #portal-column-two .portletRss .portletHeader a, body.section-en #portal-column-two .portletNews .portletFooter a, body.section-espanol #portal-column-two .portletNews .portletFooter a { font-size: 0 !important; }
body.section-en #portal-column-two .portlet-static-links-uteis .portletHeader, body.section-espanol #portal-column-two .portlet-static-links-uteis .portletHeader { font-size: 0 !important; }
body.section-en #portal-column-two .portletNews .portletHeader a::after { content: "News"; font-size: 18px; }
body.section-espanol #portal-column-two .portletNews .portletHeader a::after { content: "Noticias"; font-size: 18px; }
body.section-en #portal-column-two .portletRss .portletHeader a::after { content: "UEM News"; font-size: 18px; }
body.section-espanol #portal-column-two .portletRss .portletHeader a::after { content: "Noticias de la UEM"; font-size: 18px; }
body.section-en #portal-column-two .portletNews .portletFooter a::after { content: "More news…"; font-size: 12px; }
body.section-espanol #portal-column-two .portletNews .portletFooter a::after { content: "Más noticias…"; font-size: 12px; }
body.section-en #portal-column-two .portlet-static-links-uteis .portletHeader::before { content: "Useful links"; font-size: 18px; }
body.section-espanol #portal-column-two .portlet-static-links-uteis .portletHeader::before { content: "Enlaces útiles"; font-size: 18px; }

body.section-espanol #portal-column-two .portletRss .portletFooter a span:not(.hiddenStructure) { font-size: 0 !important; }
body.section-espanol #portal-column-two .portletRss .portletFooter a span:not(.hiddenStructure)::after { content: "Más…"; font-size: 12px; }


/* === Filtro Defesas Mestrado/Doutorado (08/11/2026) === */
#content-core .def-ancora { display: block !important; height: 0 !important; overflow: hidden !important; font-size: 0 !important; line-height: 0 !important; margin: 0 !important; padding: 0 !important; scroll-margin-top: 90px; }
#content-core .f-btn { display: inline-block; padding: 5px 14px; margin: 2px 4px 2px 0; border: 1px solid #22521f; color: #22521f !important; background-color: #ffffff; font-size: 13px; font-weight: bold; text-decoration: none !important; border-radius: 3px; }
#content-core .f-btn:hover { background-color: #f6e7b2; }
#content-core .f-all { background-color: #22521f; color: #ffffff !important; border-bottom: 3px solid #e5a61d; }
#content-core .nav-m, #content-core .nav-d, #content-core .c-m, #content-core .c-d { display: none; }
#content-core:has(#so-mestrado:target, .def-ancora[id^="m-"]:target) .def-D,
#content-core:has(#so-mestrado:target, .def-ancora[id^="m-"]:target) .def-ano.sem-m,
#content-core:has(#so-mestrado:target, .def-ancora[id^="m-"]:target) .nav-all,
#content-core:has(#so-mestrado:target, .def-ancora[id^="m-"]:target) .c-all { display: none !important; }
#content-core:has(#so-mestrado:target, .def-ancora[id^="m-"]:target) .nav-m { display: block; }
#content-core:has(#so-mestrado:target, .def-ancora[id^="m-"]:target) .c-m { display: inline; }
#content-core:has(#so-doutorado:target, .def-ancora[id^="d-"]:target) .def-M,
#content-core:has(#so-doutorado:target, .def-ancora[id^="d-"]:target) .def-ano.sem-d,
#content-core:has(#so-doutorado:target, .def-ancora[id^="d-"]:target) .nav-all,
#content-core:has(#so-doutorado:target, .def-ancora[id^="d-"]:target) .c-all { display: none !important; }
#content-core:has(#so-doutorado:target, .def-ancora[id^="d-"]:target) .nav-d { display: block; }
#content-core:has(#so-doutorado:target, .def-ancora[id^="d-"]:target) .c-d { display: inline; }
#content-core:has(#so-mestrado:target, .def-ancora[id^="m-"]:target, #so-doutorado:target, .def-ancora[id^="d-"]:target) .f-all { background-color: #ffffff; color: #22521f !important; border-bottom: 1px solid #22521f; }
#content-core:has(#so-mestrado:target, .def-ancora[id^="m-"]:target) .f-m,
#content-core:has(#so-doutorado:target, .def-ancora[id^="d-"]:target) .f-d { background-color: #22521f; color: #ffffff !important; border-bottom: 3px solid #e5a61d; }

/* ===== HOME-PERFIL – nova página inicial e bandeiras no topo (13/11/2026) ===== */
@media (min-width: 992px) { #portal-column-one .portlet-static-other-languages, #portal-column-one .portlet-static-otros-idiomas { display: none !important; } }
.pse-path a { text-decoration: none !important; border-bottom: 0 !important; box-shadow: none !important; }
.pse-path a:hover, .pse-path a:focus { text-decoration: underline !important; }
.pse-home-selo img { width: 100% !important; height: auto !important; max-width: 100% !important; }
#portal-column-two .portlet-static-idioma-language,#portal-column-two .portlet-static-language-idioma,#portal-column-two .portlet-static-other-languages,#portal-column-two .portlet-static-otros-idiomas { position: absolute !important; top: 52px; right: 20px; z-index: 1030; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; width: auto !important; }
#portal-column-two .portlet-static-idioma-language .portletHeader,#portal-column-two .portlet-static-language-idioma .portletHeader,#portal-column-two .portlet-static-other-languages .portletHeader,#portal-column-two .portlet-static-otros-idiomas .portletHeader, #portal-column-two .portlet-static-idioma-language .portletFooter,#portal-column-two .portlet-static-language-idioma .portletFooter,#portal-column-two .portlet-static-other-languages .portletFooter,#portal-column-two .portlet-static-otros-idiomas .portletFooter { display: none !important; }
#portal-column-two .portlet-static-idioma-language .portletContent,#portal-column-two .portlet-static-language-idioma .portletContent,#portal-column-two .portlet-static-other-languages .portletContent,#portal-column-two .portlet-static-otros-idiomas .portletContent { display: flex; gap: 10px; align-items: center; padding: 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; }
#portal-column-two .portlet-static-idioma-language p,#portal-column-two .portlet-static-language-idioma p,#portal-column-two .portlet-static-other-languages p,#portal-column-two .portlet-static-otros-idiomas p { margin: 0 !important; padding: 0 !important; line-height: 0; }
#portal-column-two .portlet-static-idioma-language a,#portal-column-two .portlet-static-language-idioma a,#portal-column-two .portlet-static-other-languages a,#portal-column-two .portlet-static-otros-idiomas a { font-size: 0 !important; line-height: 0; display: inline-block; padding: 0 !important; border: 0 !important; text-decoration: none !important; }
#portal-column-two .portlet-static-idioma-language a img,#portal-column-two .portlet-static-language-idioma a img,#portal-column-two .portlet-static-other-languages a img,#portal-column-two .portlet-static-otros-idiomas a img { width: 30px !important; height: 20px !important; margin: 0 !important; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,0.7); transition: transform .15s; }
#portal-column-two .portlet-static-idioma-language a:hover img,#portal-column-two .portlet-static-language-idioma a:hover img,#portal-column-two .portlet-static-other-languages a:hover img,#portal-column-two .portlet-static-otros-idiomas a:hover img, #portal-column-two .portlet-static-idioma-language a:focus img,#portal-column-two .portlet-static-language-idioma a:focus img,#portal-column-two .portlet-static-other-languages a:focus img,#portal-column-two .portlet-static-otros-idiomas a:focus img { transform: scale(1.12); }
@media (max-width: 767px) {
  #portal-column-two .portlet-static-idioma-language,#portal-column-two .portlet-static-language-idioma,#portal-column-two .portlet-static-other-languages,#portal-column-two .portlet-static-otros-idiomas { top: 52px; right: 10px; }
  #portal-column-two .portlet-static-idioma-language a img,#portal-column-two .portlet-static-language-idioma a img,#portal-column-two .portlet-static-other-languages a img,#portal-column-two .portlet-static-otros-idiomas a img { width: 26px !important; height: 17px !important; }
  .pse-home-selo-legenda { font-size: 12px !important; }
}
@media (max-width: 600px) { .pse-destaque { grid-template-columns: 1fr !important; } }
/* ===== fim HOME-PERFIL ===== */

/* ===== DOCENTES-GRADE – cards do Corpo Docente com altura igual (14/11/2026) ===== */
.pse-docentes > table { margin: 0 !important; }
@media (max-width: 767px) {
  .pse-docentes { grid-template-columns: 1fr !important; grid-template-rows: none !important; }
}
/* ===== fim DOCENTES-GRADE ===== */

/* ===== CABECALHO – barra cinza removida; lupa de busca na barra verde da UEM (14/11/2026) ===== */
body:not(.section-pse) #mainnavigation-wrapper, body:not(.section-pse) #portal-logo { display: none !important; }
body:not(.section-pse) #portal-header { background: transparent !important; border: 0 !important; box-shadow: none !important; height: 46px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; overflow: visible !important; position: static !important; }
body:not(.section-pse) #portal-searchbox { position: absolute !important; top: 0 !important; right: 12px !important; height: 40px !important; width: auto !important; z-index: 1040; margin: 0 !important; padding: 0 !important; }
body:not(.section-pse) #portal-searchbox form, body:not(.section-pse) #portal-searchbox .LSBox { height: 40px !important; align-items: center !important; margin: 0 !important; }
body:not(.section-pse) #portal-searchbox label { margin: 4px !important; filter: brightness(0) invert(1); flex: 0 0 32px; }
body:not(.section-pse) #portal-searchbox #searchGadget { height: 32px !important; max-height: 32px !important; margin: 0 !important; }
body:not(.section-pse) #uem-toolbar { padding-right: 56px !important; }
@media (max-width: 991px) {
  body:not(.section-pse) #portal-header { height: 0 !important; }
}
body:not(.section-pse) #uem-toolbar { background-image: url(/imagens/uem-logo-branco.png/@@images/image) !important; background-repeat: no-repeat !important; background-size: auto 28px !important; background-position: 16px 6px !important; padding-left: 90px !important; }
body:not(.section-pse) #uem-toolbar { background-color: #173a15 !important; }
/* ===== fim CABECALHO ===== */

/* ===== CONTATO-FUNDO – portlet de Contato com fundo claro e horário incluído (14/11/2026) ===== */
#portal-column-two .portlet-static-contato .portletContent,#portal-column-two .portlet-static-contact .portletContent,#portal-column-two .portlet-static-contacto .portletContent { background-color: #f1f6ee !important; color: #262b1b !important; }
#portal-column-two .portlet-static-contato .portletContent p,#portal-column-two .portlet-static-contact .portletContent p,#portal-column-two .portlet-static-contacto .portletContent p { margin: 0 0 10px 0 !important; line-height: 1.45 !important; }
body.section-en #portal-column-two .portlet-static-contato, body.section-espanol #portal-column-two .portlet-static-contato { display: none !important; }
/* ===== fim CONTATO-FUNDO ===== */

/* ===== RODAPE – cinza bem escuro e mais baixo (14/11/2026) ===== */
body:not(.section-pse) #portal-footer-wrapper { background-color: #262626 !important; padding: 14px 40px 12px !important; color: #e8e8e8 !important; }
body:not(.section-pse) #portal-footer-wrapper .footer-uem { margin: 0 !important; align-items: center !important; }
body:not(.section-pse) #portal-footer-wrapper .footer-logo img { height: 44px !important; width: auto !important; }
body:not(.section-pse) #portal-footer-wrapper .footer-info { font-size: 13px !important; line-height: 1.4 !important; }
/* ===== fim RODAPE ===== */
