/* ===== Variáveis comuns ===== */
:root {
  --tacs-footer-bg: #071a22;
  --tacs-footer-text: #e7edf2;
  --tacs-footer-muted: #a9b8c4;
  --tacs-link: #2a6bff;
  --tacs-link-hover: #9cc0ff;
  --tacs-border: rgba(255, 255, 255, 0.08);
  --tacs-shadow: 0 8px 24px rgba(2, 12, 18, 0.35);
  --tacs-dropdown-bg: rgba(0, 0, 0, 0.18);
}

body {
  font-family: "Noto Serif", serif;
  font-size: 14px;
  line-height: 20px;
  color: #141414;
  background: #f5f5f5;
}

.cmp_button,
.cmp_form .buttons button,
.pkp_search button[type="submit"],
.page_lost_password .buttons button,
.page_search .submit button,
.block_make_submission a {
  display: inline-block;
  padding: 0 1em;
  background: #ffd33f !important;
  border: none;
  border-top-color: #bbb;
  border-radius: 3px;
  box-shadow: none;
  font-size: 13px;
  line-height: 28px;
  font-weight: 700;
  color: #141414 !important;
  text-decoration: none;
}

a {
  color: #0b5ed7 !important;
}

a:hover,
a:focus {
  color: #084298 !important;
  text-decoration: underline;
}

/* img banner  */
.pkp_page_index .homepage_image img {
  width: 100%;
  height: auto;
  padding: 16px;
}

/* ===================== HEADER REBUILD (FULL WIDTH) ===================== */
.pkp_structure_head {
  background: #fffbfb;
  border-bottom: 1px solid #ddd;
  background: #00264d;
}

.pkp_head_wrapper.has_site_logo {
  padding-top: 30px;
  width: 100%;
  padding: 0 100px;
}

.pkp_site_name .is_img img {
  max-height: 64px;
  width: auto;
  height: auto;
}

.pkp_search_desktop {
  display: none;
}

.has_site_logo .pkp_site_name,
.has_site_logo .pkp_navigation_primary_wrapper {
  width: auto;
  background: #00264d;
}

.pkp_site_nav_menu {
  padding: 0;
  margin: 0;
  width: 100%;
}

.pkp_nav_list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  justify-content: flex-end;
}

.pkp_navigation_primary > li > a {
  margin: 0 1em;
  padding: 10px 0 8px;
  border-bottom: 2px solid transparent;
  color: #ffffff !important;
  text-decoration: none;
}

.pkp_navigation_primary > li > a :hover {
  border-bottom: 2px solid #ffffff;
  outline: none;
  color: #dbe7ff;
}

/* btn login */
.pkp_navigation_user.pkp_navigation_user {
  margin: 0;
  padding: 0;
  border: none;
  background: #ffd33f;
  color: #141414;
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.pkp_navigation_user > li:last-child > a {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 5px;
  padding: 0;
  margin: auto;
  color: #141414;
}

/* body da aplicacao com os artigos */
.obj_article_summary > .title a {
  text-decoration: none;
  color: #0b5ed7;
  font-size: 16px;
  font-weight: 600;
}
.obj_article_summary > .title a:hover {
  text-decoration: underline;
  color: #084298;
}

.cmp_button_wire,
.obj_galley_link {
  display: inline-block;
  padding: 0 1em;
  background: #fff;
  border: 1px solid #919191;
  border-radius: 3px;
  font-size: 13px;
  line-height: 28px;
  color: #919191 !important;
  text-decoration: none;
}

.cmp_button_wire:hover,
.cmp_button_wire:focus,
.obj_galley_link:hover,
.obj_galley_link:focus {
  background: #dadada;
  color: #00264d !important;
  border: 1px solid #00264d;
  text-decoration: none;
}

.obj_issue_toc .galleys > h2,
.obj_issue_toc .section > h2,
.obj_issue_toc .galleys > h3,
.obj_issue_toc .section > h3 {
  display: inline-block;
  position: relative;
  left: -15px;
  margin-top: 0;
  padding: 0 15px;
  background: none !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 30px;
  color: #141414;
}

.obj_article_summary {
  background-color: #fefefe;
  border: 1px solid #d7d7d7;
  border-radius: 14px;
  padding: 16px;
  width: 100%;
}

.pkp_block a {
  text-decoration: none;
  color: #0b5ed7;
}

.pkp_page_index .cmp_announcements {
  border-top: none;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  gap: 16px;
}

.pkp_page_index .cmp_announcements .more {
  float: right;
  width: 35%;
  padding-top: 0 !important;
  padding-bottom: 16px;
}

/* itens a remover */
.obj_issue_toc .published {
  display: none;
}
.heading {
  display: none;
}

@media (min-width: 992px) {
  .cmp_button,
  .cmp_form .buttons button,
  .pkp_search button[type="submit"],
  .page_lost_password .buttons button,
  .page_search .submit button,
  .block_make_submission a {
    display: inline-block;
    padding: 0 1em;
    background: #ffd33f !important;
    border: none;
    border-top-color: #bbb;
    border-radius: 3px;
    box-shadow: none;
    font-size: 13px;
    line-height: 28px;
    font-weight: 700;
    color: #141414 !important;
    text-decoration: none;
  }
  .has_site_logo .pkp_head_wrapper {
    padding-top: 30px !important;
    padding: 16px;
  }

  .pkp_navigation_primary > li > a {
    margin: 0 1em;
    padding: 10px 0 8px;
    border-bottom: 2px solid transparent;
    color: #ffffff !important;
    text-decoration: none;
  }

  .pkp_navigation_primary > li > a :hover {
    border-bottom: 2px solid #ffffff;
    outline: none;
    color: #dbe7ff;
  }
  /* btn login */
  .pkp_navigation_user.pkp_navigation_user {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    border-radius: 8px;
    padding: 6px 12px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #141414;
    font-size: 14px;
    font-weight: 500;
  }
  .pkp_navigation_user.pkp_navigation_user > li {
    margin: 0;
    padding: 0;
    border: none;
    background: #ffd33f !important;
    border-radius: 8px;
    padding: 6px 12px;
    color: #141414 !important;
    font-size: 14px;
    font-weight: 500;
  }
  .pkp_navigation_user.pkp_navigation_user > li > a {
    margin: 0 !important;
    padding: 0 !important;
    color: #141414 !important;
  }
  .pkp_navigation_user > li:last-child > a {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 5px;
    padding: 0;
    margin: auto;
    color: #141414;
  }
  .pkp_navigation_user_wrapper {
    position: absolute;
    top: 0;
    left: 100%;
    transform: translateX(-50%);
    padding: 12px 24px;
    margin-top: 0;
    border: none;
    z-index: 12;
  }

  /* itens menu do btn login */
  .pkp_nav_list ul a {
    display: block;
    padding-left: 5px;
    border-left: 5px solid transparent;
    color: #141414;
  }
  .pkp_nav_list ul a:hover {
    background: #f0f0f0;
    border-left: 5px solid #ffd33f;
    color: #000000;
  }

  .obj_issue_toc .galleys,
  .obj_issue_toc .section {
    padding-top: 0;
    margin-top: 0;
  }

  .obj_issue_toc .cover {
    margin: 0 16px 0 0;
    padding: 0;
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
  }

  .obj_issue_toc .cover img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
  }
  .obj_issue_toc .galleys,
  .obj_issue_toc .section {
    padding-top: 16px;
    margin-top: 0;
  }

  .pkp_page_index .cmp_announcements > .obj_announcement_summary,
  .pkp_page_index .cmp_announcements .more .obj_announcement_summary {
    padding-left: 24px;
    padding-right: 24px;
    background: #ffffff;
    border-radius: 8px;
    border: none;
    margin: 8px;
  }

  .pkp_page_index .cmp_announcements .more {
    float: right;
    width: 35%;
    padding-top: 20px; *
    padding-bottom: 20px;
  }
}

@media (max-width: 992px) {
  .pkp_site_name .is_img img {
    width: auto;
    height: auto;
    max-height: 28px;
  }

  .pkp_site_nav_toggle {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 0;
    background: none;
    box-shadow: none;
    z-index: 16;
  }

  .pkp_site_nav_toggle > span:before,
  .pkp_site_nav_toggle > span:after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgb(255 255 255 / 84%);
  }
  .pkp_site_nav_toggle > span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 19px;
    border-bottom: 3px solid rgb(255 255 255 / 84%);
    text-indent: -9999px;
    overflow: hidden;
  }
}

/* =========================== FOOTER (original do usuário) =========================== */
/* Zera estilos conflitantes do tema no wrapper externo e cria espaçamento da página */
.pkp_structure_footer_wrapper {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 16px 28px; /* respiro lateral e inferior */
}

/* Cria o “card” arredondado e centralizado */
.pkp_structure_footer {
  max-width: 1200px;
  margin: 24px auto 0;
  background: var(--tacs-footer-bg);
  color: var(--tacs-footer-text);
  border: 1px solid var(--tacs-border);
  border-radius: 12px;
  box-shadow: var(--tacs-shadow);
  padding: 28px 32px;
  gap: 32px;
  align-items: start;
}

/* Tipografia base */
.pkp_structure_footer,
.pkp_structure_footer p,
.pkp_structure_footer a,
.pkp_structure_footer strong {
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

.pkp_structure_footer p {
  margin: 0 0 0.8rem 0;
  color: var(--tacs-footer-text);
}

.pkp_structure_footer p:last-child {
  margin-bottom: 0;
  color: var(--tacs-footer-muted);
}

/* Títulos/legendas dentro do rodapé (use <strong> ou <h3>) */
.pkp_structure_footer h3,
.pkp_structure_footer h4,
.pkp_structure_footer strong:first-child {
  display: block;
  font-weight: 700;
  letter-spacing: 0.2px;
  margin: 0 0 0.4rem 0;
  color: #ffffff;
}

/* Listas de links (quando você inserir uma UL de links rápidos ou idioma) */
.pkp_structure_footer ul {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}
.pkp_structure_footer ul li {
  margin: 0.35rem 0;
}

/* Links */
.pkp_structure_footer a {
  color: var(--tacs-link);
  text-decoration: none;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.15);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.pkp_structure_footer a:hover,
.pkp_structure_footer a:focus {
  color: var(--tacs-link-hover);
  border-bottom-color: currentColor;
  outline: none;
}
.pkp_footer_content {
  font-size: 0.98rem;
}

.pkp_brand_footer {
  justify-self: end;
  align-self: center;
  opacity: 0.95;
}

/* Ajuste de imagem do ‘brand’ para fundo escuro (remova o filter se ficar ruim) */
.pkp_brand_footer img {
  max-height: 32px;
  width: auto;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.pkp_brand_footer a:hover img {
  opacity: 1;
}

/* Linha decorativa sutil no topo da primeira coluna (opcional) */
.pkp_footer_content::before {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), transparent);
  margin: 0 0 12px 0;
}

/* Responsivo do footer */
@media (max-width: 1024px) {
  .pkp_structure_footer {
    gap: 24px;
  }
  .pkp_brand_footer {
    justify-self: start;
    align-self: start;
  }
}
@media (max-width: 680px) {
  .pkp_structure_footer {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }
  .pkp_footer_content::before {
    margin-left: 0;
  }
}

/* Acessibilidade — foco visível em links */
.pkp_structure_footer a:focus-visible {
  outline: 2px dashed var(--tacs-link-hover);
  outline-offset: 2px;
  border-radius: 4px;
}
