/*
Theme Name: GPELA
Author: OpenAI
Description: Tema WordPress leve e responsivo para o portal GPELA, com foco em leitura, acessibilidade, Gutenberg, segurança e desempenho.
Version: 1.0.1
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: gpela
*/

:root {
  --gpela-blue: #0064C8;
  --gpela-blue-dark: #103D78;
  --gpela-text: #29252f;
  --gpela-muted: #66616d;
  --gpela-gray: #505050;
  --gpela-border: #e8e5ec;
  --gpela-bg: #f7f6f9;
  --gpela-white: #fff;
  --gpela-container: 1200px;
  --gpela-radius: 12px;
  --gpela-shadow: 0 5px 22px rgba(31, 18, 48, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--gpela-text);
  background: var(--gpela-white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--gpela-blue); text-decoration: none; }
a:hover, a:focus { color: var(--gpela-blue-dark); text-decoration: underline; }
button, input { font: inherit; }
.container { width: min(calc(100% - 40px), var(--gpela-container)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 100000; top: 10px; left: 10px; width: auto; height: auto; padding: 12px 16px; margin: 0; clip: auto; color: #fff; background: #111; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 9999; padding: 10px 14px; color: #fff; background: #111; }

.site-header { background: #fff; border-bottom: 1px solid var(--gpela-border); }
.header-inner { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: 12px; }
.site-branding { flex: 0 1 330px; min-width: 180px; }
.site-logo { display: inline-flex; align-items: center; max-width: 100%; }
.site-logo img { display: block; width: 100%; max-width: 320px; max-height: 106px; object-fit: contain; }
.site-title-fallback { color: var(--gpela-blue); font-size: clamp(27px, 4vw, 38px); font-weight: 800; letter-spacing: -1.5px; line-height: 1.1; }
.primary-navigation { flex: 1 1 auto; }
.primary-navigation ul { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 5px 22px; margin: 0; padding: 0; list-style: none; }
.primary-navigation li { margin: 0; }
.primary-navigation a { display: inline-block; padding: 9px 0; color: var(--gpela-gray); font-size: 15px; font-weight: 700; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--gpela-blue); text-decoration: none; }
.menu-toggle { display: none; border: 0; border-radius: 8px; padding: 10px 13px; color: #fff; background: var(--gpela-blue); cursor: pointer; }

.site-top-area { padding-top: 22px; }
.ad-slot { display: flex; align-items: center; justify-content: center; min-height: 90px; margin: 0 auto 18px; padding: 8px; overflow: hidden; color: #8a8491; background: #faf9fb; border: 1px dashed #d8d3df; border-radius: 8px; text-align: center; font-size: 12px; }
.ad-slot:empty { display: none; }
.ad-slot .widget, .ad-slot .widget_text { width: 100%; margin: 0; }
.ad-slot img, .ad-slot iframe { max-width: 100%; }
.search-strip { margin: 0 0 28px; }
.search-form { display: flex; width: 100%; min-height: 58px; border: 2px solid var(--gpela-blue); border-radius: 9px; overflow: hidden; background: #fff; }
.search-form label { flex: 1; min-width: 0; }
.search-field { width: 100%; height: 54px; padding: 0 18px; border: 0; outline: 0; color: var(--gpela-text); background: transparent; }
.search-field::placeholder { color: #85808b; }
.search-submit { flex: 0 0 62px; display: grid; place-items: center; border: 0; color: #fff; background: var(--gpela-blue); cursor: pointer; }
.search-submit:hover, .search-submit:focus { background: var(--gpela-blue-dark); }
.search-submit svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

main { min-height: 45vh; }
.content-area { padding-bottom: 54px; }
.breadcrumbs { margin: 0 0 14px; color: var(--gpela-muted); font-size: 13px; line-height: 1.5; }
.breadcrumbs a { color: var(--gpela-muted); }
.breadcrumbs a:hover { color: var(--gpela-blue); }
.breadcrumbs .separator { padding-inline: 7px; color: #aaa4b0; }
.entry-title, .archive-title, .page-title { margin: 0 0 20px; color: #24202a; font-size: clamp(30px, 4vw, 42px); line-height: 1.2; letter-spacing: -.8px; font-weight: 800; }
.post-featured-image { width: 100%; max-width: 100%; margin: 0 0 32px; }
.post-featured-image__img { display: block; width: 100%; max-width: 100%; height: auto; max-height: none; object-fit: contain; border-radius: 12px; }
.entry-content { max-width: 860px; color: #35313a; font-size: 18px; line-height: 1.8; overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 1.35em; }
.entry-content h2 { margin-top: 1.7em; margin-bottom: .65em; color: #26212d; font-size: clamp(24px, 3vw, 30px); line-height: 1.3; }
.entry-content h3 { margin-top: 1.5em; margin-bottom: .55em; color: #302a37; font-size: 22px; line-height: 1.35; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content blockquote { margin-inline: 0; padding: 18px 22px; border-left: 4px solid var(--gpela-blue); background: #f8f5fc; }
.entry-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid var(--gpela-border); text-align: left; }
.entry-content figure { margin-inline: 0; }
.entry-content figcaption { color: var(--gpela-muted); font-size: 14px; }

/* Artigos: título, imagem destacada e texto compartilham a mesma largura. */
.single-post .content-area > article {
  width: min(100%, 960px);
  margin-inline: auto;
}
.single-post .content-area > article .entry-content {
  width: 100%;
  max-width: 100%;
}
.single-post .post-featured-image {
  width: 100%;
  max-width: 100%;
}
.single-post .post-featured-image__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}
.single-post .entry-content .alignwide,
.single-post .entry-content .alignfull {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  transform: none;
}
.entry-content .alignwide { max-width: min(1100px, calc(100vw - 40px)); width: min(1100px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { max-width: 100vw; width: 100vw; margin-left: 50%; transform: translateX(-50%); }

.home-intro { margin: 0 0 26px; }
.section-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: #28232f; font-size: 25px; line-height: 1.25; }
.section-heading:before { content: ""; width: 5px; height: 25px; border-radius: 4px; background: var(--gpela-blue); }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.post-card { min-width: 0; overflow: hidden; border: 1px solid var(--gpela-border); border-radius: var(--gpela-radius); background: #fff; box-shadow: var(--gpela-shadow); transition: transform .18s ease, box-shadow .18s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: 0 9px 28px rgba(31,18,48,.1); }
.post-card-image { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f0edf4; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 18px 19px 20px; }
.post-card-category { margin: 0 0 8px; color: var(--gpela-blue); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.post-card-title { margin: 0 0 10px; font-size: 20px; line-height: 1.35; }
.post-card-title a { color: #29242f; }
.post-card-title a:hover { color: var(--gpela-blue); text-decoration: none; }
.post-card-excerpt { margin: 0 0 13px; color: var(--gpela-muted); font-size: 14px; line-height: 1.6; }
.read-more { display: inline-block; padding: 8px 14px; border-radius: 5px; color: #fff; background: var(--gpela-blue); font-size: 13px; font-weight: 700; }
.read-more:hover { color: #fff; background: var(--gpela-blue-dark); text-decoration: none; }
.pagination, .nav-links { margin-top: 34px; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { display: inline-block; min-width: 40px; padding: 7px 12px; border: 1px solid var(--gpela-border); border-radius: 6px; color: var(--gpela-gray); text-align: center; }
.page-numbers.current, .page-numbers:hover { color: #fff; border-color: var(--gpela-blue); background: var(--gpela-blue); text-decoration: none; }

.site-footer { padding: 34px 0 22px; color: #eee; background: #24202a; }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.footer-brand { max-width: 420px; }
.footer-brand strong { display: block; margin-bottom: 8px; color: #fff; font-size: 22px; }
.footer-brand p { margin: 0; color: #c8c2cf; font-size: 14px; }
.footer-navigation ul { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.footer-navigation a { color: #eee; font-size: 14px; }
.copyright { margin: 25px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); color: #c8c2cf; font-size: 13px; }

.no-results { padding: 28px; border: 1px solid var(--gpela-border); border-radius: var(--gpela-radius); background: var(--gpela-bg); }
.error-404 { padding-block: 36px 60px; }

@media (max-width: 900px) {
  .header-inner { min-height: 94px; gap: 16px; }
  .site-branding { flex-basis: 270px; }
  .site-logo img { max-width: 270px; max-height: 90px; }
  .primary-navigation ul { gap: 4px 14px; }
  .primary-navigation a { font-size: 14px; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .container { width: min(calc(100% - 28px), var(--gpela-container)); }
  .header-inner { min-height: 82px; flex-wrap: wrap; }
  .site-branding { flex: 1 1 auto; min-width: 0; }
  .site-logo img { max-width: 230px; max-height: 72px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .primary-navigation { display: none; flex: 1 0 100%; padding: 0 0 12px; }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .primary-navigation li { border-top: 1px solid var(--gpela-border); }
  .primary-navigation a { display: block; padding: 11px 2px; font-size: 15px; }
  .site-top-area { padding-top: 15px; }
  .ad-slot { min-height: 70px; margin-bottom: 14px; }
  .search-strip { margin-bottom: 22px; }
  .search-form { min-height: 52px; }
  .search-field { height: 48px; padding-inline: 13px; font-size: 16px; }
  .search-submit { flex-basis: 54px; }
  .entry-title, .archive-title, .page-title { margin-bottom: 16px; font-size: 30px; }
  .entry-content { font-size: 17px; line-height: 1.75; }
  .post-grid { grid-template-columns: 1fr; gap: 18px; }
  .post-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); }
  .post-card-image { height: 100%; min-height: 132px; aspect-ratio: auto; }
  .post-card-body { padding: 12px 13px; }
  .post-card-title { font-size: 17px; }
  .post-card-excerpt { display: none; }
  .read-more { padding: 6px 10px; font-size: 12px; }
  .footer-inner { flex-direction: column; gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Navegação mais compacta e menu suspenso para categorias secundárias. */
.header-inner { gap: 22px; }
.primary-navigation { min-width: 0; }
.primary-navigation > ul,
.primary-navigation .menu { display: flex; justify-content: flex-end; align-items: center; flex-wrap: nowrap; gap: 4px 16px; }
.primary-navigation li { position: relative; }
.primary-navigation a { white-space: nowrap; }
.primary-navigation .menu-item-has-children > a::after { content: "▾"; display: inline-block; margin-left: 6px; color: var(--gpela-blue); font-size: 11px; }
.primary-navigation .sub-menu { position: absolute; z-index: 100; top: 100%; right: 0; display: none; min-width: 220px; padding: 8px; border: 1px solid var(--gpela-border); border-radius: 10px; background: #fff; box-shadow: 0 12px 30px rgba(31,18,48,.12); }
.primary-navigation .menu-item-has-children:hover > .sub-menu,
.primary-navigation .menu-item-has-children:focus-within > .sub-menu { display: block; }
.primary-navigation .sub-menu li { display: block; }
.primary-navigation .sub-menu a { display: block; padding: 8px 10px; border-radius: 6px; white-space: normal; }
.primary-navigation .sub-menu a:hover { background: #f7f2fc; }

/* Em artigos, anúncio e pesquisa seguem a mesma coluna do título, imagem e texto. */
.single-post .site-top-area { width: min(calc(100% - 40px), 960px); max-width: 960px; }
.single-post .content-area > article { width: min(100%, 960px); }
.single-post .content-area > article .entry-header,
.single-post .content-area > article .entry-content,
.single-post .content-area > article .post-featured-image { width: 100%; max-width: 100%; }
.single-post .content-area > article .entry-title { max-width: 100%; }
.single-post .content-area > article .post-featured-image { margin: 0 0 30px; }
.single-post .content-area > article .post-featured-image__img { width: 100%; height: auto; }

.related-posts { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--gpela-border); }
.related-posts .section-heading { margin-bottom: 20px; }
.related-post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.related-post-grid .post-card { box-shadow: none; }
.related-post-grid .post-card-body { padding: 14px 15px 16px; }
.related-post-grid .post-card-title { font-size: 17px; }
.related-post-grid .post-card-excerpt { font-size: 13px; }
.related-post-grid .read-more { padding: 7px 11px; }

@media (max-width: 900px) {
  .primary-navigation > ul,
  .primary-navigation .menu { gap: 4px 10px; }
  .primary-navigation a { font-size: 14px; }
}
@media (max-width: 680px) {
  .primary-navigation > ul,
  .primary-navigation .menu { align-items: stretch; flex-wrap: nowrap; gap: 0; }
  .primary-navigation .sub-menu { position: static; display: block; min-width: 0; padding: 0 0 6px 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .primary-navigation .sub-menu a { padding: 8px 2px; }
  .primary-navigation .menu-item-has-children > a::after { content: ""; }
  .single-post .site-top-area { width: calc(100% - 28px); }
  .related-post-grid { grid-template-columns: 1fr; }
  .related-post-grid .post-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); }
  .related-post-grid .post-card-image { height: 100%; min-height: 132px; aspect-ratio: auto; }
  .related-post-grid .post-card-body { padding: 12px 13px; }
  .related-post-grid .post-card-excerpt { display: none; }
}


/* Rodapé com a área de widgets configurável no WordPress. */
.site-footer { padding: 38px 0 22px; }
.footer-brand { margin-bottom: 24px; max-width: 100%; }
.footer-brand strong { font-size: 23px; text-transform: lowercase; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer-widget { min-width: 0; color: #d8d3de; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.footer-widget-title { margin: 0 0 12px; color: #fff; font-size: 16px; line-height: 1.35; }
.footer-widget a { color: #eee; }
.footer-widget ul { margin: 0; padding-left: 18px; }
@media (max-width: 900px) {
  .footer-widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 680px) {
  .footer-widgets { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand { margin-bottom: 20px; }
}

/* Identificação do autor logo abaixo do título do artigo. */
.post-byline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: -8px 0 24px; color: var(--gpela-muted); font-size: 13px; line-height: 1.5; }
.post-byline__author { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; }
.post-byline__author:hover { color: var(--gpela-blue); }
.post-byline__avatar { display: block; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.post-byline__date { color: var(--gpela-muted); }

/* Botão discreto para retornar ao início da página. */
.scroll-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 999;
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--gpela-blue);
  box-shadow: 0 4px 16px rgba(31,18,48,.22);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
  opacity: .96;
  transition: background .18s ease, transform .18s ease;
}
.scroll-to-top:hover { background: var(--gpela-blue-dark); transform: translateY(-2px); }
.scroll-to-top:focus-visible { outline: 3px solid #b995e8; outline-offset: 3px; }
.scroll-to-top[hidden] { display: none; }
@media (max-width: 680px) {
  .scroll-to-top { right: 15px; bottom: 15px; width: 42px; height: 42px; }
}


/* Rodapé em três colunas, sem bloco de marca acima das seções. */
.footer-columns { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 28px; }
.footer-column { min-width: 0; color: #d8d3de; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.footer-column h2 { margin: 0 0 12px; color: #fff; font-size: 16px; line-height: 1.35; }
.footer-column ul { margin: 0; padding-left: 18px; }
.footer-column li { margin: 0 0 6px; }
.footer-column a { color: #eee; }
.footer-column a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 900px) {
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .footer-recent { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .footer-columns { grid-template-columns: 1fr; gap: 20px; }
  .footer-recent { grid-column: auto; }
}


/* Barra de rolagem compacta, retangular e discreta. */
html { scrollbar-width: thin; scrollbar-color: #9b65d4 #f0edf4; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f0edf4; }
::-webkit-scrollbar-thumb { background: #9b65d4; border: 2px solid #f0edf4; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #0064C8; }

/* Rodapé editável em três áreas independentes do painel WordPress. */
.footer-widgets { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.footer-widget-area { min-width:0; color:#d8d3de; font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.footer-widget-area .widget-title { margin:0 0 12px; color:#fff; font-size:16px; line-height:1.35; }
.footer-widget-area a { color:#eee; }
.footer-widget-area ul { margin:0; padding-left:18px; }
@media(max-width:900px){.footer-widgets{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.footer-widgets{grid-template-columns:1fr;gap:20px}}


/* Compartilhamento compacto ao lado da identificação do autor. */
.post-byline { gap:10px 16px; }
.post-share { display:inline-flex; align-items:center; flex-wrap:wrap; gap:6px; margin-left:auto; }
.post-share__link { display:inline-flex; width:30px; height:30px; align-items:center; justify-content:center; padding:0; border:1px solid var(--gpela-border); border-radius:5px; color:var(--gpela-gray); background:#fff; font-family:Arial,Helvetica,sans-serif; font-size:12px; font-weight:700; line-height:1; cursor:pointer; text-decoration:none; }
.post-share__link:hover,.post-share__link:focus-visible { color:#fff; border-color:var(--gpela-blue); background:var(--gpela-blue); text-decoration:none; }
.post-share__status { color:var(--gpela-muted); font-size:11px; }
@media(max-width:680px){.post-share{flex-basis:100%; margin-left:0; padding-left:35px}.post-share__link{width:29px;height:29px}}

.footer-social { display:flex; flex-wrap:wrap; gap:8px; margin-top:22px; }
.footer-social a { display:inline-flex; width:34px; height:34px; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.22); border-radius:5px; color:#fff; font-size:12px; font-weight:700; text-decoration:none; }
.footer-social a:hover,.footer-social a:focus-visible { border-color:var(--gpela-blue); background:var(--gpela-blue); color:#fff; text-decoration:none; }


/* Ajustes finais de interface e acessibilidade. */
.footer-navigation { margin-top: 22px; }
.footer-navigation .footer-menu { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.footer-navigation .footer-menu a { color: #eee; font-size: 14px; }
.footer-widget-area .widget-title { margin: 0 0 12px; color: #fff; font-size: 16px; line-height: 1.35; }
.post-card-image--empty { background: linear-gradient(135deg, #f3edf9, #e9e2f0); }
.post-share__link:focus-visible, .footer-social a:focus-visible, .footer-navigation a:focus-visible { outline: 2px solid #b995e8; outline-offset: 3px; }
@media (max-width: 680px) {
  .post-byline { align-items: flex-start; }
  .post-share { padding-left: 0; }
}


/* Rodapé: três colunas sempre visíveis, com conteúdo padrão ou widgets. */
.site-footer { padding: 38px 0 22px; color: #eee; background: #24202a; }
.footer-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.footer-column { min-width: 0; color: #d8d3de; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.footer-column-title, .footer-column .widget-title { margin: 0 0 12px; color: #fff; font-size: 16px; line-height: 1.35; font-weight: 700; }
.footer-column ul { margin: 0; padding-left: 18px; list-style: disc; }
.footer-column li { margin: 0 0 6px; }
.footer-column a { color: #eee; text-decoration: none; }
.footer-column a:hover, .footer-column a:focus-visible { color: #fff; text-decoration: underline; }
.footer-column p { margin: 0; color: #c8c2cf; }
.footer-column .widget { margin: 0 0 16px; }
@media (max-width: 900px) { .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } .footer-recent { grid-column: 1 / -1; } }
@media (max-width: 680px) { .footer-columns { grid-template-columns: 1fr; gap: 20px; } .footer-recent { grid-column: auto; } }


/* GPELA 2.2: marca original, icones sociais e acessibilidade. */
.site-branding { flex: 0 0 295px; min-width: 0; }
.site-logo { width: 100%; }
.site-logo picture { display: block; width: 100%; }
.site-logo img { display:block; width: 100%; max-width: 295px; max-height: none; height:auto; object-fit: contain; }
.primary-navigation .sub-menu { max-height: 60vh; overflow-y: auto; }
.site-header a:focus-visible, .primary-navigation a:focus-visible, .post-share__link:focus-visible,
.footer-column a:focus-visible, .read-more:focus-visible, .footer-social a:focus-visible {
  outline: 3px solid #8f43e7; outline-offset: 3px;
}
.post-share__link { width: 36px; height: 36px; border: 0; border-radius: 7px; color:#fff; background:#505050; }
.post-share__link svg, .footer-social a svg { display:block; width: 19px; height:19px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.post-share__link:hover, .post-share__link:focus-visible { filter: brightness(.90); background: var(--social-color, #103D78); color:#fff; }
.post-share__link { background: var(--social-color, #505050); }
.post-share__link--whatsapp { --social-color: #168b51; }
.post-share__link--facebook, .footer-social__link--facebook { --social-color: #1769c7; }
.post-share__link--x, .footer-social__link--x { --social-color: #151515; }
.post-share__link--telegram, .footer-social__link--telegram { --social-color: #1687ba; }
.post-share__link--reddit { --social-color: #dd450b; }
.post-share__link--linkedin, .footer-social__link--linkedin { --social-color: #07659f; }
.post-share__link--email { --social-color: #505050; }
.post-share__link--copy { --social-color: #52505b; }
.footer-social { gap:10px; }
.footer-social a { width:38px; height:38px; border:0; background: var(--social-color, #0064C8); color:#fff; border-radius:8px; }
.footer-social a:hover, .footer-social a:focus-visible { background: var(--social-color,#103D78); filter: brightness(.86); }
.footer-social__link--instagram { --social-color: #ac267c; }
.footer-social__link--youtube { --social-color: #d9232e; }
.footer-social__link--tiktok { --social-color: #1a1a1a; }
.footer-social__link--pinterest { --social-color: #b60f25; }
.footer-social__link--whatsapp { --social-color: #168b51; }
.post-share__status { flex-basis:100%; }
.scroll-to-top svg { width: 21px; height:21px; fill:none; stroke:currentColor; stroke-width:3; stroke-linejoin:round; stroke-linecap:round; }
@media(max-width:900px){ .site-branding { flex:0 0 240px; } .site-logo img { max-width:240px; } }
@media(max-width:680px){
 .header-inner { min-height:75px; }
 .site-branding { flex:1 1 0; max-width:230px; }
 .site-logo img { max-width:230px; }
 .post-share { flex-basis: 100%; padding-left: 0; gap:7px; }
 .post-share__link { width:36px; height:36px; }
 .primary-navigation .sub-menu { position:static; max-height:none; overflow:visible; }
}


/* GPELA | Aviso de privacidade discreto: não interfere no layout do tema. */
.gpela-privacy-notice[hidden] { display: none !important; }
.gpela-privacy-notice {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99980;
  box-sizing: border-box; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
  background: #202027; color: #ffffff; border-top: 3px solid #0064C8;
  box-shadow: 0 -5px 28px rgba(0, 0, 0, .22);
}
.gpela-privacy-notice * { box-sizing: border-box; }
.gpela-privacy-notice__inner {
  max-width: 1180px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 20px;
}
.gpela-privacy-notice__text {
  color: #ffffff !important; font-family: inherit; font-weight: 400;
  font-size: 14px; line-height: 1.6; margin: 0; padding: 0; flex: 1;
}
.gpela-privacy-notice__text a,
.gpela-privacy-notice__text a:visited {
  color: #ffffff !important; text-decoration: underline; text-underline-offset: 3px;
}
.gpela-privacy-notice__text a:hover { color: #ded0ff !important; }
.gpela-privacy-notice__button {
  flex: 0 0 auto; display: inline-block; padding: 10px 19px; border-radius: 7px;
  border: 1px solid #0064C8; background: #0064C8; color: #ffffff !important;
  font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1.3;
  cursor: pointer; min-height: 42px; text-align: center; white-space: nowrap;
}
.gpela-privacy-notice__button:hover { background: #103D78; border-color: #103D78; }
.gpela-privacy-notice__button:focus-visible,
.gpela-privacy-notice__text a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 700px) {
  .gpela-privacy-notice { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .gpela-privacy-notice__inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .gpela-privacy-notice__text { font-size: 13px; line-height: 1.5; }
  .gpela-privacy-notice__button { width: 100%; }
}


/* GPELA 2.2.3: marca editável na Identidade do site.
   Sem imagem, o nome é exibido em tipografia Black com degradê roxo.
   Com imagem, mantém a proporção original (PNG/WebP transparente). */
.site-header .site-branding { flex: 0 1 340px; min-width: 0; max-width: 340px; }
.site-header .site-logo { display: inline-flex; width: 100%; max-width: 340px; align-items: center; text-decoration: none; }
.site-header .site-logo img,
.site-header .site-logo .gpela-custom-logo { display: block; width: 100%; max-width: 340px; max-height: 110px; height: auto; object-fit: contain; object-position: left center; }
.site-header .site-logo .site-title-fallback {
  display: inline-block; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(30px, 3.1vw, 44px); font-weight: 900; line-height: 1.08;
  letter-spacing: -1.7px; white-space: nowrap;
  background: linear-gradient(105deg, #45118b 0%, #0064C8 54%, #9836ef 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  color: #0064C8;
}
@media (max-width:900px) {
  .site-header .site-branding { flex: 0 1 300px; max-width: 300px; }
  .site-header .site-logo, .site-header .site-logo img, .site-header .site-logo .gpela-custom-logo { max-width: 300px; }
}
@media (max-width:600px) {
  .site-header .site-branding { flex: 0 1 280px; max-width: min(280px, 100%); }
  .site-header .site-logo, .site-header .site-logo img, .site-header .site-logo .gpela-custom-logo { max-width: 280px; }
  .site-header .site-logo .site-title-fallback { font-size: clamp(27px, 8.2vw, 36px); letter-spacing: -1.4px; }
}

/* 2.2.4: optional fourth column and profile controls. */
.footer-columns:has(> .footer-calculators) { grid-template-columns: repeat(4,minmax(0,1fr)); }
.footer-bottom { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; margin-top:25px; padding-top:16px; border-top:1px solid rgba(255,255,255,.14); }
.footer-bottom .copyright { order:-1; margin:0; padding:0; border:0; }
.footer-bottom .footer-social { margin:0; }
.footer-bottom .footer-social a { width:44px; height:44px; border-radius:50%; background:var(--gpela-blue); }
.footer-bottom .footer-social a:hover,.footer-bottom .footer-social a:focus-visible { background:var(--gpela-blue-dark); }
@media(max-width:900px) { .footer-columns:has(> .footer-calculators) { grid-template-columns:repeat(2,minmax(0,1fr)); } .footer-columns:has(> .footer-calculators) .footer-recent { grid-column:auto; } }
@media(max-width:680px) { .footer-columns:has(> .footer-calculators) { grid-template-columns:1fr; } }

/* 2.2.5: social invitation and responsive footer bottom. */
.footer-bottom .footer-social-group { display:flex; flex-direction:column; align-items:flex-end; gap:10px; min-width:0; max-width:100%; margin-left:auto; }
.footer-bottom .footer-social-title { margin:0; color:#fff; font-size:14px; font-weight:600; line-height:1.4; text-align:right; }
.footer-bottom .footer-social { justify-content:flex-end; }
@media(max-width:680px) {
 .footer-bottom { flex-direction:column; align-items:center; text-align:center; }
 .footer-bottom .footer-social-group { margin-left:0; align-items:center; }
 .footer-bottom .footer-social-title { text-align:center; }
 .footer-bottom .footer-social { justify-content:center; }
}

/* 2.3.0: editorial directory, without external assets. */
.gpela-team-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:24px 0; }
.gpela-team-card { border:1px solid #ddd; border-radius:12px; padding:22px 16px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:12px; min-width:0; background:#fff; overflow-wrap:anywhere; }
.gpela-team-card h2 { font-size:1.2rem; line-height:1.35; margin:0; }
.gpela-team-card p { margin:0; font-size:.95rem; white-space:pre-line; }
.gpela-team-photo,.gpela-team-placeholder { display:block; width:96px; height:96px; border-radius:50%; object-fit:cover; }
.gpela-team-placeholder { display:grid; place-items:center; background:#f0edf5; color:#6c577e; }
.gpela-team-placeholder svg { width:48px; height:48px; }
.gpela-team-social { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.gpela-team-social a { display:grid; place-items:center; width:44px; height:44px; background:var(--gpela-blue,#0064C8); color:#fff; border-radius:50%; }
.gpela-team-social a svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.gpela-team-social a:hover,.gpela-team-social a:focus-visible { background:var(--gpela-blue-dark,#103D78); color:#fff; outline:2px solid #8259b6; outline-offset:3px; }
.gpela-team-articles { margin-top:auto; font-weight:600; padding-top:6px; }
.gpela-team-institution { text-align:center; margin:32px 0; }
.gpela-team-archive { margin:20px 0; }
@media(max-width:800px) { .gpela-team-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:480px) { .gpela-team-grid { grid-template-columns:1fr; } }

.footer-social__link--behance { --social-color: #0057ff; }

/* Editorial profiles */
.gpela-author-profile {display:flex;align-items:flex-start;gap:24px;border:2px solid var(--gpela-blue,#0064C8);border-radius:12px;padding:24px;margin:24px 0;overflow-wrap:anywhere;}
.gpela-author-photo {flex:0 0 150px;}
.gpela-author-photo img {width:150px;height:150px;object-fit:cover;border-radius:50%;}
.gpela-author-profile h1 {margin:0 0 8px;}
.gpela-author-role {font-weight:600;}
.footer-team a {color:inherit;}
@media(max-width:680px){.gpela-author-profile{flex-direction:column;align-items:center;text-align:center;padding:18px;} .gpela-author-photo{flex-basis:auto;}}

/* GPELA: institutional layout. */
:root{--gpela-blue:#0064c8;--gpela-blue-dark:#103d78;--gpela-bg:#f4f8ff;--gpela-border:#dce8f5;--gpela-text:#20354c;--gpela-muted:#52677b}
.site-header .header-inner{min-height:72px;padding-block:8px;gap:20px}
.site-header .site-branding{flex:0 1 260px;min-width:0}
.site-header .site-logo img,.site-header .site-logo .gpela-custom-logo{max-width:260px;max-height:65px;object-fit:contain}
.site-footer{background:#103d78;color:#fff}.site-footer a,.site-footer h2,.site-footer .copyright{color:#fff}.footer-columns{grid-template-columns:repeat(4,minmax(0,1fr))}.footer-social a{background:#0064c8}
.gpela-hero{display:flex;flex-direction:column;overflow:hidden;background:#eaf4ff;border-radius:12px;margin:0 0 28px;text-align:center;color:#103d78}.gpela-hero-image{display:block;width:100%;max-height:260px;object-fit:cover}.gpela-hero-copy{padding:26px 20px}.gpela-hero-copy h1{font-size:clamp(24px,3.4vw,38px);line-height:1.2;margin:8px 0}.gpela-hero-copy p{margin:8px 0}.gpela-button{display:inline-block;background:#0064c8;color:white;border-radius:8px;padding:8px 18px;margin-top:8px}.gpela-button:hover{color:white;background:#103d78}
.gpela-areas{margin-bottom:30px}.gpela-areas>h2{text-align:center;color:#103d78;font-size:clamp(22px,3vw,30px)}.gpela-area-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.gpela-area-card{border:1px solid #dce8f5;border-radius:10px;overflow:hidden;background:white;box-shadow:0 3px 12px #103d780d;transition:box-shadow .15s}.gpela-area-card:hover{box-shadow:0 5px 18px #103d7826}.gpela-area-card a{display:flex;flex-direction:column;height:100%;color:#103d78;text-decoration:none}.gpela-area-image{display:block;width:100%;aspect-ratio:16/10;object-fit:cover}.gpela-area-copy{padding:12px 7px;text-align:center}.gpela-area-copy h3{font-size:clamp(12px,1.5vw,18px);line-height:1.35;margin:0;overflow-wrap:anywhere;color:#103d78}.gpela-area-copy p{font-size:14px;margin:6px 0 0}.gpela-meeting{background:#eaf4ff;border-radius:10px;text-align:center;padding:15px;margin-bottom:28px}.gpela-meeting h2,.gpela-meeting p{margin:4px 0}.gpela-team-placeholder{background:#eaf4ff;color:#103d78}
@media(max-width:900px){.footer-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-recent{grid-column:auto}}
@media(max-width:680px){.site-header .site-branding{flex:0 1 200px}.site-header .site-logo img{max-height:50px}.gpela-area-grid{gap:6px}.gpela-area-copy{padding:7px 3px}.gpela-area-copy h3{font-size:11px;hyphens:auto}.gpela-area-copy p{display:none}.footer-columns{grid-template-columns:1fr}.gpela-hero-copy{padding:18px 12px}}

/* GPELA 1.0.1: four-column footer. */
.site-footer { background:#103d78; padding:36px 0 20px; color:#fff; }
.site-footer .footer-columns { grid-template-columns:repeat(4,minmax(0,1fr)); gap:28px; }
.site-footer .footer-column { color:#e4f0ff; min-width:0; }
.site-footer .footer-column-title,.site-footer .widget-title { color:#fff; margin:0 0 14px; }
.site-footer .footer-column p { color:#e4f0ff; }
.site-footer .footer-column ul { list-style:none; padding:0; margin:0; }
.site-footer .footer-column li { margin:0 0 8px; }
.site-footer .footer-social { margin-top:12px; }
.site-footer .footer-social a { background:#0064c8; border-radius:50%; }
.site-footer .footer-bottom { justify-content:center; text-align:center; }
@media(max-width:900px){.site-footer .footer-columns{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.site-footer .footer-recent{grid-column:auto}}
@media(max-width:680px){.site-footer .footer-columns{grid-template-columns:1fr;gap:22px}}
