/* =====================================================================
   RBECN — Revista Brasileira de Ensino de Ciências Naturais
   Folha de estilo custom — tema Default OJS 3.5
   Visual moderno e profissional · OJSBR · ago/2026
   =====================================================================
   Sumário:
   01. Fontes e variáveis
   02. Base / tipografia
   03. Cabeçalho e navegação
   04. Estrutura de conteúdo
   05. Página inicial (sobre, edição atual)
   06. Cards de artigo e botões de galley
   07. Barra lateral
   08. Página de artigo
   09. Edições anteriores / notícias / busca
   10. Formulários e botões
   11. Rodapé (provisório — rodapé completo virá depois)
   12. Acessibilidade e responsivo
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Lexend:wght@500;600;700;800&display=swap');

/* ============ 01. Variáveis ============ */
:root {
  --rb-navy:        #07376d;
  --rb-blue:        #0b4f93;
  --rb-blue-hover:  #0d5aa8;
  --rb-blue-soft:   #eaf2fb;
  --rb-green:       #8cc63f;
  --rb-green-dark:  #5f9b1f;
  --rb-green-soft:  #f0f8e4;
  --rb-ink:         #1e293b;
  --rb-muted:       #5b6b7f;
  --rb-border:      #e2e8f0;
  --rb-bg:          #f4f7fb;
  --rb-card:        #ffffff;
  --rb-radius:      14px;
  --rb-radius-sm:   10px;
  --rb-shadow-sm:   0 1px 2px rgba(15, 40, 80, .06), 0 1px 6px rgba(15, 40, 80, .05);
  --rb-shadow-md:   0 6px 18px rgba(15, 40, 80, .10);
  --rb-font:        'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --rb-font-head:   'Lexend', 'Inter', sans-serif;
}

/* ============ 02. Base / tipografia ============ */
body {
  font-family: var(--rb-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--rb-ink);
  background: var(--rb-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--rb-font-head);
  color: var(--rb-navy);
  line-height: 1.3;
}

a {
  color: var(--rb-blue);
  transition: color .15s ease;
}
a:hover,
a:focus {
  color: var(--rb-blue-hover);
}

::selection {
  background: var(--rb-green);
  color: var(--rb-navy);
}

/* ============ 03. Cabeçalho e navegação ============ */
/* o logo da revista foi desenhado para fundo azul — o cabeçalho usa o
   gradiente institucional em todas as larguras */
.pkp_structure_head {
  background: linear-gradient(120deg, #041f3d 0%, var(--rb-navy) 55%, var(--rb-blue) 100%);
  border-bottom: none;
  border-top: 4px solid var(--rb-green);
  box-shadow: 0 2px 14px rgba(7, 55, 109, .30);
}

/* logo enviado é bem largo — limita a altura e deixa fluido */
.pkp_site_name {
  margin: 0;
}
.pkp_site_name .is_img img {
  max-height: 88px;
  width: auto;
  max-width: 100%;
  height: auto;
}
.pkp_site_name_wrapper {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

/* links de usuário (Registrar-se / Acesso) */
.pkp_navigation_user_wrapper {
  background: transparent;
}
.pkp_navigation_user a {
  color: rgba(255, 255, 255, .82);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: .45em .9em;
  border-radius: 999px;
  transition: all .15s ease;
}
.pkp_navigation_user a:hover,
.pkp_navigation_user a:focus {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

/* barra de navegação principal — pill flutuante */
@media (min-width: 992px) {
  .pkp_structure_head {
    padding-bottom: 1.6rem;
  }
  /* o tema pinta esta faixa de #5292d0 no desktop — é o retângulo
     atrás da cápsula; some com ele */
  .pkp_site_nav_menu {
    background: transparent;
  }
  .pkp_navigation_primary_row {
    background: transparent;
    box-shadow: none;
  }
  .pkp_navigation_primary_wrapper::before,
  .pkp_navigation_primary_wrapper::after {
    display: none;
  }
  /* cápsula branca sobre o cabeçalho escuro — contraste máximo */
  .pkp_navigation_primary_wrapper {
    display: flex;
    align-items: center;
    background: #fff;
    border: none;
    border-radius: 999px;
    padding: .5rem .6rem;
    box-shadow:
      0 30px 60px -20px rgba(2, 14, 30, .65),
      0 12px 28px -12px rgba(2, 14, 30, .40);
  }
  .pkp_navigation_primary {
    display: flex;
    align-items: center;
    gap: .25rem;
    text-align: left;
  }
  .pkp_navigation_primary > li > a {
    margin: 0;
    border-bottom: none;
    border-radius: 999px;
    padding: .62em 1.2em;
    color: var(--rb-navy);
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: .01em;
    transition: background .18s ease, color .18s ease,
                box-shadow .18s ease, transform .18s ease;
  }
  .pkp_navigation_primary > li:first-child a,
  .pkp_navigation_primary > li:last-child a {
    margin: 0;
  }
  .pkp_navigation_primary > li > a:hover,
  .pkp_navigation_primary > li > a:focus,
  .pkp_navigation_primary > li > a[aria-expanded='true'] {
    background: var(--rb-navy);
    color: #fff;
    border-color: transparent;
    outline: 0;
    box-shadow: 0 8px 18px -6px rgba(2, 14, 30, .45);
    transform: translateY(-1px);
  }

  /* busca como pílula de destaque */
  .pkp_navigation_search_wrapper {
    float: none;
    margin-left: auto;
  }
  .pkp_search.pkp_search_desktop {
    margin: 0;
    border: none;
    border-radius: 999px;
    padding: .58em 1.4em;
    background: var(--rb-green);
    color: var(--rb-navy);
    font-weight: 700;
    font-size: .92rem;
    transition: all .18s ease;
  }
  .pkp_search.pkp_search_desktop:hover,
  .pkp_search.pkp_search_desktop:focus {
    background: var(--rb-navy);
    color: #fff;
    box-shadow: 0 8px 18px -6px rgba(2, 14, 30, .45);
    transform: translateY(-1px);
  }

  /* submenu (dropdown) */
  .pkp_navigation_primary > li > ul {
    width: 16.5em;
    background: var(--rb-card);
    border: 1px solid var(--rb-border);
    border-radius: 16px;
    box-shadow:
      0 24px 48px -12px rgba(2, 14, 30, .35),
      0 6px 16px rgba(2, 14, 30, .12);
    padding: .5rem;
    margin: 0;
  }
  /* o tema abre o submenu via Bootstrap (clique + Popper); a animação
     é só de opacidade para não brigar com o transform inline do Popper */
  .pkp_navigation_primary > li > ul.show {
    animation: rbecn-drop .16s ease both;
  }
  .pkp_navigation_primary > li > ul a {
    color: var(--rb-ink);
    font-weight: 500;
    border-radius: 10px;
    padding: .6em 1em;
    transition: background .15s ease, color .15s ease, padding-left .15s ease;
  }
  .pkp_navigation_primary > li > ul a:hover,
  .pkp_navigation_primary > li > ul a:focus {
    background: var(--rb-blue-soft);
    color: var(--rb-navy);
    padding-left: 1.25em;
    outline: 0;
  }
}

@keyframes rbecn-drop {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* banner em linha única (telas grandes): logo ~50% maior à esquerda,
   menu ao lado direito e header mais fino que o empilhado */
@media (min-width: 1400px) {
  .has_site_logo .pkp_head_wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    width: min(1280px, 92vw);
    padding-right: 0;
  }
  .has_site_logo .pkp_head_wrapper::before,
  .has_site_logo .pkp_head_wrapper::after {
    display: none;
  }
  /* base explícita de 660px (logo a 130px de altura); encolhe se faltar espaço */
  .pkp_site_name_wrapper {
    flex: 0 1 660px;
    min-width: 0;
    padding-top: 1.1rem;
    padding-bottom: 1.1rem;
  }
  /* o tema põe width:100% aqui, o que colapsa o item flex */
  .pkp_site_name {
    width: auto;
  }
  .pkp_site_name .is_img {
    display: block;
    margin: 0;
  }
  .pkp_site_name .is_img img {
    max-height: 130px;
    max-width: 100%;
  }
  /* o tema deixa width:100% no menu — zera para a cápsula abraçar
     somente os itens, alinhada à direita */
  .pkp_site_nav_menu {
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
  }
  /* respiro embaixo para o banner centrar na faixa azul */
  .pkp_structure_head {
    padding-bottom: 2rem;
  }
  /* nav compacta para caber ao lado do logo */
  .pkp_navigation_primary > li > a {
    padding: .55em .85em;
    font-size: .88rem;
    white-space: nowrap;
  }
  .pkp_search.pkp_search_desktop {
    padding: .48em 1.05em;
    font-size: .86rem;
    white-space: nowrap;
  }
  .pkp_navigation_primary_wrapper {
    padding: .4rem .45rem;
  }
}

/* menu mobile — cabeçalho azul pede hambúrguer e painel claros */
@media (max-width: 991px) {
  /* hambúrguer maior, com fundo próprio, centrado na altura do cabeçalho */
  .pkp_site_nav_toggle {
    position: absolute;
    top: 50%;
    left: .75rem;
    transform: translateY(-50%);
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .10);
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .22);
    transition: background .18s ease;
    z-index: 999;
  }
  .pkp_site_nav_toggle:hover,
  .pkp_site_nav_toggle:focus {
    background: rgba(255, 255, 255, .18);
  }
  .pkp_site_nav_toggle > span,
  .pkp_site_nav_toggle > span:before,
  .pkp_site_nav_toggle > span:after {
    border-color: #fff;
    background: #fff;
  }
  .pkp_site_nav_toggle > span {
    width: 24px;
    height: 19px;
    background: transparent;
    border-bottom: 3px solid #fff;
  }
  /* estado X do hambúrguer (o tema zera a barra do meio) */
  .pkp_site_nav_toggle--transform > span {
    border-bottom: 0;
  }
  /* com o menu aberto, o botão vira fixo para fechar de qualquer ponto */
  .pkp_site_nav_toggle--transform {
    position: fixed;
    top: 1rem;
    left: .75rem;
    transform: none;
    background: rgba(255, 255, 255, .14);
    z-index: 1000;
  }

  /* o tema posiciona o logo de forma absoluta numa barra de 40px em
     TODAS as larguras até 991px — solta a altura e devolve o fluxo */
  .pkp_site_name_wrapper {
    height: auto;
    min-height: 4.25rem;
  }
  .pkp_site_name {
    position: static;
    width: auto;
    margin: 0 0 0 4.75rem;
    padding: .6rem .714rem;
    white-space: normal;
    overflow: visible;
  }
  .pkp_site_name .is_img {
    margin: 0;
  }
  .pkp_site_name .is_img img {
    max-height: 56px;
    width: auto;
    max-width: 100%;
  }

  /* menu aberto: tela cheia, itens no centro vertical */
  .pkp_site_nav_menu--isOpen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    background: linear-gradient(160deg, #041f3d 0%, var(--rb-navy) 55%, #0a4180 100%);
    border-radius: 0;
    box-shadow: none;
    padding: 4rem 1.5rem;
    overflow-y: auto;
  }
  .pkp_site_nav_menu--isOpen .pkp_navigation_primary_row {
    background: transparent;
    width: 100%;
  }
  .pkp_site_nav_menu--isOpen .pkp_nav_list li {
    display: block;
    text-align: center;
  }
  .pkp_site_nav_menu a {
    color: #fff;
    padding: .35rem 0;
  }
  .pkp_site_nav_menu a:hover,
  .pkp_site_nav_menu a:focus {
    color: var(--rb-green);
  }
  .pkp_site_nav_menu--isOpen .pkp_navigation_primary > li > a {
    display: block;
    font-family: var(--rb-font-head);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    padding: .55rem 1rem;
  }
  /* submenu inline (Sobre a Revista etc.) menor e discreto */
  .pkp_site_nav_menu--isOpen .pkp_navigation_primary ul {
    padding: 0 0 .5rem;
  }
  .pkp_site_nav_menu--isOpen .pkp_navigation_primary ul a {
    font-size: .95rem;
    color: rgba(255, 255, 255, .75);
    padding: .3rem 1rem;
  }
  /* busca e links de usuário dentro do painel */
  .pkp_site_nav_menu--isOpen .pkp_navigation_search_wrapper {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .2);
    text-align: center;
  }
  .pkp_site_nav_menu--isOpen .pkp_navigation_user_wrapper {
    position: static;
    transform: none;
    width: auto;
    text-align: center;
    margin-top: 1rem;
  }
}

/* ============ 04. Estrutura de conteúdo ============ */
/* remove as linhas divisórias verticais do tema */
.pkp_structure_main:before,
.pkp_structure_main:after {
  display: none;
}

.pkp_structure_content {
  padding-top: 2.25rem;
}

/* ============ 05. Página inicial ============ */
.homepage_about,
.current_issue {
  background: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  box-shadow: var(--rb-shadow-sm);
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
}

.homepage_about h2,
.current_issue h2,
.page h2 {
  display: flex;
  align-items: center;
  gap: .6em;
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 1rem;
}
.homepage_about h2::before,
.current_issue h2::before,
.page h2::before {
  content: '';
  flex: 0 0 auto;
  width: 6px;
  height: 1.15em;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rb-green), var(--rb-green-dark));
}

.homepage_about p {
  color: var(--rb-muted);
  font-size: 1rem;
  text-align: justify;
  margin-bottom: 0;
}

.current_issue_title {
  font-family: var(--rb-font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--rb-navy);
  margin-bottom: 1.5rem;
}

/* capa e data da edição — layout flexível no lugar dos floats do tema */
.obj_issue_toc .heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1.25rem 2.5rem;
  margin-bottom: 1rem;
}
.obj_issue_toc .heading::before,
.obj_issue_toc .heading::after {
  display: none;
}
.obj_issue_toc .cover {
  display: inline-block;
  position: relative;
  margin: 0;
  flex: 0 0 auto;
  cursor: zoom-in;
}
.obj_issue_toc .cover img {
  display: block;
  border-radius: var(--rb-radius-sm);
  box-shadow: var(--rb-shadow-md);
  max-height: 300px;
  width: auto;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1.1), box-shadow .3s ease;
}
.obj_issue_toc .cover:hover img,
.obj_issue_toc .cover:focus-within img {
  transform: translateY(-8px) scale(1.045);
  box-shadow: 0 28px 52px -18px rgba(7, 55, 109, .55);
}
/* badge de lupa que surge no hover */
.obj_issue_toc .cover::after {
  content: '\f00e';
  font-family: 'FontAwesome';
  position: absolute;
  right: .8rem;
  bottom: .8rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  border-radius: 999px;
  background: rgba(7, 55, 109, .92);
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(2, 14, 30, .5);
  opacity: 0;
  transform: scale(.5);
  transition: opacity .22s ease, transform .22s cubic-bezier(.2, .7, .3, 1.4);
  pointer-events: none;
}
.obj_issue_toc .cover:hover::after {
  opacity: 1;
  transform: scale(1) translateY(-8px);
}

/* capa na página do artigo ganha o mesmo tratamento */
.obj_article_details .entry_details .item.cover_image {
  cursor: zoom-in;
}
.obj_article_details .entry_details .item.cover_image img {
  transition: transform .3s cubic-bezier(.2, .7, .3, 1.1), box-shadow .3s ease;
}
.obj_article_details .entry_details .item.cover_image:hover img {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 28px 52px -18px rgba(7, 55, 109, .55);
}
.obj_issue_toc .published {
  margin: 0 0 .5rem;
}
.obj_issue_toc .published .label,
.obj_issue_toc .description .label {
  display: block;
  font-weight: 700;
  color: var(--rb-muted);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.obj_issue_toc .published .value {
  font-family: var(--rb-font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--rb-navy);
}

/* seções da edição — remove molduras e recuos negativos do tema */
.obj_issue_toc .sections:not(:first-child) {
  margin-top: 2rem;
}
.obj_issue_toc .galleys,
.obj_issue_toc .section {
  margin: 2rem 0 0;
  padding: 0;
}
.obj_issue_toc .galleys:before,
.obj_issue_toc .section:before {
  display: none;
}
.obj_issue_toc .articles {
  margin-top: 1rem;
}

/* título das seções (chips) */
.obj_issue_toc .galleys > h2,
.obj_issue_toc .section > h2,
.obj_issue_toc .galleys > h3,
.obj_issue_toc .section > h3 {
  display: inline-block;
  position: static;
  left: auto;
  line-height: 1.4;
  font-family: var(--rb-font-head);
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--rb-navy);
  background: var(--rb-green-soft);
  border: 1px solid rgba(140, 198, 63, .45);
  border-radius: 999px;
  padding: .45em 1.2em;
  margin: 0 0 1rem;
}

/* botão "Ver todas as edições" */
.pkp_page_index .current_issue .read_more,
.current_issue .read_more {
  display: inline-block;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.4;
  color: var(--rb-navy);
  border: 2px solid var(--rb-navy);
  border-radius: 999px;
  padding: .6em 2.6em .6em 1.6em;
  margin: 1.5rem 0 0;
  transition: all .18s ease;
}
.pkp_page_index .current_issue .read_more:after {
  top: 50%;
  right: .9em;
  width: auto;
  height: auto;
  line-height: 1;
  transform: translateY(-50%);
}
.pkp_page_index .current_issue .read_more:hover,
.pkp_page_index .current_issue .read_more:focus,
.current_issue .read_more:hover,
.current_issue .read_more:focus {
  background: var(--rb-navy);
  color: #fff;
  box-shadow: var(--rb-shadow-md);
  text-decoration: none;
}

/* bloco DOI / ISSN abaixo da edição */
.additional_content {
  background: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  box-shadow: var(--rb-shadow-sm);
  padding: 1.25rem 2.25rem;
  margin-bottom: 2rem;
  color: var(--rb-muted);
}

/* ============ 06. Cards de artigo e galleys ============ */
.cmp_article_list {
  padding-left: 0;
  list-style: none;
}
.cmp_article_list > li {
  margin-bottom: 1rem;
}

.obj_article_summary {
  background: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-sm);
  padding: 1.25rem 1.5rem;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.obj_article_summary:hover {
  border-color: rgba(11, 79, 147, .35);
  box-shadow: var(--rb-shadow-md);
  transform: translateY(-2px);
}

.obj_article_summary .title {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0 0 .4rem;
}
.obj_article_summary .title a {
  color: var(--rb-navy);
}
.obj_article_summary .title a:hover,
.obj_article_summary .title a:focus {
  color: var(--rb-blue);
  text-decoration: none;
}
.obj_article_summary .subtitle {
  display: block;
  font-family: var(--rb-font);
  font-size: .92rem;
  font-weight: 500;
  color: var(--rb-muted);
  margin-top: .25rem;
}
.obj_article_summary .meta .authors {
  color: var(--rb-muted);
  font-size: .9rem;
  margin-bottom: .75rem;
}

/* botões de galley (PDF / HTML) */
.galleys_links {
  padding-left: 0;
  margin: .5rem 0 0;
  list-style: none;
}
.galleys_links li {
  display: inline-block;
  margin: 0 .5rem .25rem 0;
}
.obj_galley_link {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .03em;
  border-radius: 999px;
  padding: .45em 1.2em;
  transition: all .18s ease;
}
.obj_galley_link::before {
  font-family: 'FontAwesome';
  font-weight: 400;
}
.obj_galley_link.pdf {
  background: var(--rb-blue);
  color: #fff;
  border: 1px solid var(--rb-blue);
}
.obj_galley_link.pdf::before {
  content: '\f1c1';
}
.obj_galley_link.pdf:hover,
.obj_galley_link.pdf:focus {
  background: var(--rb-navy);
  border-color: var(--rb-navy);
  color: #fff;
  box-shadow: var(--rb-shadow-md);
  text-decoration: none;
}
.obj_galley_link.file {
  background: transparent;
  color: var(--rb-green-dark);
  border: 1.5px solid var(--rb-green);
}
.obj_galley_link.file::before {
  content: '\f0f6';
}
.obj_galley_link.file:hover,
.obj_galley_link.file:focus {
  background: var(--rb-green);
  color: var(--rb-navy);
  box-shadow: var(--rb-shadow-md);
  text-decoration: none;
}

/* ============ 07. Barra lateral ============ */
.pkp_block {
  background: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  box-shadow: var(--rb-shadow-sm);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.5rem;
}
.pkp_block .title,
.pkp_block > h2:not(.pkp_screen_reader) {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--rb-navy);
  border-bottom: 2px solid var(--rb-green);
  padding-bottom: .5rem;
  margin: 0 0 1rem;
}
.pkp_block .content {
  overflow: hidden;
  overflow-wrap: break-word;
}
/* nuvem de palavras-chave: contém os exageros de fonte do plugin */
.pkp_block .content [style*='font-size'] {
  font-size: 1.05rem !important;
  line-height: 1.5;
}
.pkp_block .content ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.pkp_block .content ul li {
  margin-bottom: .25rem;
}
.pkp_block .content ul a {
  display: block;
  font-size: .92rem;
  font-weight: 500;
  color: var(--rb-ink);
  border-radius: 8px;
  padding: .5em .75em;
  transition: all .15s ease;
}
.pkp_block .content ul a:hover,
.pkp_block .content ul a:focus {
  background: var(--rb-blue-soft);
  color: var(--rb-navy);
  text-decoration: none;
  padding-left: 1em;
}

/* botão Enviar Submissão */
.block_make_submission {
  background: linear-gradient(135deg, var(--rb-navy), var(--rb-blue));
  border: none;
}
.block_make_submission a.block_make_submission_link {
  display: block;
  text-align: center;
  font-weight: 800;
  font-size: .95rem;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--rb-navy);
  background: var(--rb-green);
  border: none;
  border-radius: var(--rb-radius-sm);
  box-shadow: none;
  padding: .85em 1em;
  transition: all .18s ease;
}
.block_make_submission a.block_make_submission_link::before {
  content: '\f064  ';
  font-family: 'FontAwesome';
  font-weight: 400;
}
.block_make_submission a.block_make_submission_link:hover,
.block_make_submission a.block_make_submission_link:focus {
  background: #9fd455;
  color: var(--rb-navy);
  transform: translateY(-2px);
  box-shadow: var(--rb-shadow-md);
  text-decoration: none;
}

/* card do PPGEECA (bloco custom já existente na revista) */
.rbecn-ppgeeca-card {
  text-align: center;
}
.rbecn-ppgeeca-card img {
  max-width: 100%;
  height: auto;
  border-radius: var(--rb-radius-sm);
}
.rbecn-ppgeeca-card a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--rb-navy);
}

/* ============ 08. Página de artigo ============ */
/* leitura em largura total: a sidebar sai da página de artigo e o texto
   (resumo, biografia, referências) ganha o espaço dela */
@media (min-width: 992px) {
  .pkp_page_article .pkp_structure_sidebar {
    display: none;
  }
  .pkp_page_article .pkp_structure_main {
    float: none;
    width: 100%;
  }
}

/* duas colunas com flex no lugar dos floats de largura fixa do tema */
@media (min-width: 992px) {
  .obj_article_details .row {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
  }
  .obj_article_details .main_entry {
    float: none;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    border-right: none;
  }
  .obj_article_details .entry_details {
    float: none;
    flex: 0 0 300px;
    width: 300px;
    margin: 0;
    border: none;
  }
}
.obj_article_details .entry_details {
  margin-left: 0;
  margin-right: 0;
  border-top: none;
}
.obj_article_details .entry_details .item {
  background: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius-sm);
  padding: 1.1rem 1.25rem;
  margin: 0 0 1rem;
}
.obj_article_details .entry_details .item:last-child {
  margin-bottom: 0;
}

.obj_article_details .page_title {
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rb-navy);
}

.obj_article_details .item .label {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--rb-muted);
}

.obj_article_details .authors .name {
  font-weight: 600;
  color: var(--rb-ink);
}
.obj_article_details .authors .affiliation {
  color: var(--rb-muted);
  font-size: .9rem;
}

.obj_article_details .entry_details .item.cover_image img {
  border-radius: var(--rb-radius-sm);
  box-shadow: var(--rb-shadow-md);
}

.obj_article_details .entry_details .item.galleys .obj_galley_link {
  display: flex;
  justify-content: center;
  font-size: .95rem;
  padding: .7em 1.2em;
}

.obj_article_details .item.abstract,
.obj_article_details .item.author_bios,
.obj_article_details .item.references {
  text-align: justify;
  font-size: 1rem;
  line-height: 1.75;
  max-width: 75ch;
}
.obj_article_details .item.references .value {
  overflow-wrap: break-word;
}

.obj_article_details .item.keywords .value {
  color: var(--rb-muted);
}

/* citações */
.item.citation .citation_formats_button,
.citation_formats_button {
  border-radius: var(--rb-radius-sm);
}

/* breadcrumbs */
.cmp_breadcrumbs {
  font-size: .85rem;
  color: var(--rb-muted);
}
.cmp_breadcrumbs a {
  color: var(--rb-muted);
}
.cmp_breadcrumbs a:hover {
  color: var(--rb-blue);
}

/* ============ 09. Edições anteriores / notícias / busca ============ */
.obj_issue_summary {
  background: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  box-shadow: var(--rb-shadow-sm);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
  transition: box-shadow .18s ease, transform .18s ease;
}
.obj_issue_summary:hover {
  box-shadow: var(--rb-shadow-md);
  transform: translateY(-2px);
}
.obj_issue_summary .cover img {
  border-radius: var(--rb-radius-sm);
  box-shadow: var(--rb-shadow-sm);
}
.obj_issue_summary .title {
  font-family: var(--rb-font-head);
  font-weight: 700;
  color: var(--rb-navy);
}

.obj_announcement_summary,
.obj_announcement_full {
  background: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  box-shadow: var(--rb-shadow-sm);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}
.obj_announcement_summary .date,
.obj_announcement_full .date_posted {
  color: var(--rb-muted);
  font-size: .85rem;
}

/* páginas estáticas (Sobre, Submissões etc.) */
.page {
  background: var(--rb-card);
  border: 1px solid var(--rb-border);
  border-radius: var(--rb-radius);
  box-shadow: var(--rb-shadow-sm);
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
}
.page.page_index_journal {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}
/* a home usa div.page_index_journal sem a classe .page — garante fundo limpo */
.page_index_journal {
  background: transparent;
}

/* ============ 10. Formulários e botões ============ */
input[type='text'],
input[type='search'],
input[type='email'],
input[type='password'],
select,
textarea {
  border: 1.5px solid var(--rb-border);
  border-radius: var(--rb-radius-sm);
  padding: .5em .8em;
  font-family: var(--rb-font);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type='text']:focus,
input[type='search']:focus,
input[type='email']:focus,
input[type='password']:focus,
select:focus,
textarea:focus {
  border-color: var(--rb-blue);
  box-shadow: 0 0 0 3px rgba(11, 79, 147, .15);
  outline: none;
}

.cmp_button,
button.submit,
.btn-primary {
  background: var(--rb-blue);
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: .55em 1.5em;
  transition: all .18s ease;
}
.cmp_button:hover,
.cmp_button:focus,
button.submit:hover,
.btn-primary:hover {
  background: var(--rb-navy);
  color: #fff;
  box-shadow: var(--rb-shadow-md);
}

/* ============ 11. Rodapé ============ */
.pkp_structure_footer_wrapper {
  background: linear-gradient(160deg, #052a54 0%, var(--rb-navy) 60%, #0a4180 100%);
  border-top: 4px solid var(--rb-green);
  color: #c9d6e8;
  margin-top: 3rem;
}
.pkp_structure_footer {
  padding-top: 2.75rem;
  padding-bottom: 2rem;
}
.pkp_footer_content {
  font-size: .9rem;
  line-height: 1.7;
}
.pkp_footer_content a {
  color: var(--rb-green);
  font-weight: 600;
}
.pkp_footer_content a:hover,
.pkp_footer_content a:focus {
  color: #b7e86a;
}
/* selo padrão OJS/PKP sai; os créditos entram no rodapé custom */
.pkp_brand_footer {
  display: none;
}

/* créditos discretos ao final do rodapé */
.rbecn-footer__credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .4rem 2.25rem;
  margin-top: 1.6rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.rbecn-footer__credits a {
  color: rgba(255, 255, 255, .85);
  font-weight: 800;
  transition: color .15s ease;
}
.rbecn-footer__credits a:hover,
.rbecn-footer__credits a:focus {
  color: var(--rb-green);
}

/* rodapé custom (markup no campo Rodapé do OJS) */
.rbecn-footer {
  text-align: left;
}
.rbecn-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 2.25rem 2.5rem;
  padding-bottom: 2rem;
}
.rbecn-footer h3 {
  color: #fff;
  font-family: var(--rb-font-head);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  display: inline-block;
  border-bottom: 2px solid var(--rb-green);
  padding-bottom: .45rem;
  margin: 0 0 1.1rem;
}
.rbecn-footer__brand h3 {
  font-size: 1.35rem;
  letter-spacing: .02em;
  text-transform: none;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: .35rem;
}
.rbecn-footer__brand > p {
  color: #c9d6e8;
  margin: 0 0 1rem;
}
.rbecn-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rbecn-footer ul li {
  margin: 0 0 .55rem;
}
.rbecn-footer .rbecn-footer__meta li span {
  display: inline-block;
  min-width: 5.5em;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.rbecn-footer a {
  color: #dbe7f5;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease;
}
.rbecn-footer a:hover,
.rbecn-footer a:focus {
  color: var(--rb-green);
  text-decoration: none;
}
.rbecn-footer address {
  font-style: normal;
  line-height: 1.8;
}
.rbecn-footer__cc {
  font-size: .82rem;
  color: rgba(255, 255, 255, .65);
  margin: 0;
}
.rbecn-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .16);
  padding-top: 1.4rem;
  font-size: .84rem;
  color: rgba(255, 255, 255, .6);
}

/* ============ 11b. Modal de zoom da capa ============ */
.rbecn-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: 2rem 1rem;
  background: rgba(3, 18, 38, .85);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility 0s linear .25s;
}
.rbecn-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .25s ease;
}
.rbecn-modal__body {
  max-width: min(92vw, 1100px);
  max-height: 82vh;
  overflow: auto;
  border-radius: 16px;
  scrollbar-width: thin;
}
.rbecn-modal__img {
  display: block;
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  border-radius: 16px;
  box-shadow: 0 48px 90px -24px rgba(0, 0, 0, .65);
  cursor: zoom-in;
  transform: scale(.96);
  transition: transform .25s ease;
}
.rbecn-modal.is-open .rbecn-modal__img {
  transform: scale(1);
}
/* zoom: imagem em tamanho natural, rolável dentro do corpo da modal */
.rbecn-modal__img.is-zoomed {
  max-width: none;
  max-height: none;
  cursor: zoom-out;
  transform: none;
}
.rbecn-modal__close {
  position: absolute;
  top: 1.1rem;
  right: 1.25rem;
  width: 2.9rem;
  height: 2.9rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.rbecn-modal__close:hover,
.rbecn-modal__close:focus {
  background: var(--rb-green);
  color: var(--rb-navy);
  transform: rotate(90deg);
}
.rbecn-modal__hint {
  font-size: .82rem;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .02em;
  user-select: none;
}
body.rbecn-modal-open {
  overflow: hidden;
}

/* ============ 12. Acessibilidade e responsivo ============ */
a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(140, 198, 63, .7);
  outline-offset: 2px;
}

@media (max-width: 991px) {
  .homepage_about,
  .current_issue,
  .page,
  .additional_content {
    padding: 1.4rem 1.25rem;
  }
  .obj_article_summary {
    padding: 1.1rem 1.15rem;
  }
  .obj_issue_toc .cover img {
    max-width: 180px;
  }
}
