/* ============================================================
   Rodapé — Brazilian Journal of Radiation Technology Research
   ISSN 2966-4292 | ABTER

   Paleta tirada da identidade da revista: azul-marinho #133d76 do
   banner e dourado #9a8b3f do emblema da ABTER, sobre fundo claro.

   Padrão OJSBR: overrides com `body` + !important (para vencer o
   tema OJSBR/Manuscript/Default), medidas em rem — acompanham o
   zoom de texto do tema — e layout 100% responsivo (grid).
   ============================================================ */

/* ---- Faixa do rodapé: clara e de ponta a ponta ---------------- */

body .pkp_structure_footer {
  width: 100% !important;
  padding: 0 !important;
  text-align: left !important;
}

body .pkp_footer_content {
  background: #f2f7fc !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body .bjrtr-footer {
  background: #f2f7fc !important;
  color: #3f4a58 !important;
  border-top: 3px solid #133d76 !important;
  width: 100% !important;
  font-family: inherit !important;
}

body .bjrtr-footer *,
body .bjrtr-footer *::before,
body .bjrtr-footer *::after {
  box-sizing: border-box !important;
}

/* ---- Grade das colunas ---------------------------------------- */

body .bjrtr-footer-inner {
  max-width: 1160px !important;
  margin: 0 auto !important;
  padding: 2.5rem 1.5rem 1.75rem 1.5rem !important;
  display: grid !important;
  grid-template-columns: 1.4fr 1fr 1fr 0.9fr !important;
  gap: 2rem !important;
  align-items: start !important;
  width: 100% !important;
}

body .bjrtr-footer-col {
  min-width: 0 !important;
}

/* ---- Tipografia ----------------------------------------------- */

body .bjrtr-footer-title {
  color: #133d76 !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 0.85rem 0 !important;
  padding: 0 0 0.4rem 0 !important;
  border: 0 !important;
  border-bottom: 2px solid #9a8b3f !important;
  /* block + fit-content: o filete dourado acompanha a largura do texto sem
     transformar o título em elemento inline (que faria o logo subir de linha). */
  display: block !important;
  width: -moz-fit-content !important;
  width: fit-content !important;
  max-width: 100% !important;
  text-transform: none !important;
  letter-spacing: 0.01em !important;
}

body .bjrtr-footer p {
  color: #3f4a58 !important;
  font-size: 0.875rem !important;
  line-height: 1.65 !important;
  margin: 0 0 0.65rem 0 !important;
  padding: 0 !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

body .bjrtr-footer p:last-child {
  margin-bottom: 0 !important;
}

body .bjrtr-footer a {
  color: #1a4f8f !important;
  text-decoration: none !important;
  overflow-wrap: break-word !important;
  transition: color 0.2s ease !important;
}

body .bjrtr-footer a:hover,
body .bjrtr-footer a:focus {
  color: #0d2b56 !important;
  text-decoration: underline !important;
}

body .bjrtr-footer a:focus-visible {
  outline: 2px solid #133d76 !important;
  outline-offset: 2px !important;
  border-radius: 2px !important;
}

/* ---- Coluna 1: identificação da revista ----------------------- */

body .bjrtr-footer-nome {
  color: #133d76 !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  margin: 0 0 0.35rem 0 !important;
}

body .bjrtr-footer-issn {
  color: #5a6775 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.03em !important;
  margin: 0 0 0.85rem 0 !important;
}

body .bjrtr-footer-tags {
  list-style: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.4rem !important;
  margin: 0.9rem 0 0 0 !important;
  padding: 0 !important;
}

body .bjrtr-footer-tags li {
  background: #e2ecf8 !important;
  color: #1a4f8f !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  border-radius: 999px !important;
  padding: 0.35rem 0.7rem !important;
  margin: 0 !important;
  list-style: none !important;
}

/* ---- Coluna 2: mantenedora (ABTER) ---------------------------- */

body .bjrtr-footer-logo-link {
  display: block !important;
  width: -moz-fit-content !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 0 0.75rem 0 !important;
}

body .bjrtr-footer-logo {
  display: block !important;
  width: 100% !important;
  max-width: 200px !important;
  height: auto !important;
  background: #ffffff !important;
  border: 1px solid #d8e3ef !important;
  border-radius: 6px !important;
  padding: 0.6rem 0.75rem !important;
  transition: box-shadow 0.2s ease !important;
}

body .bjrtr-footer-logo-link:hover .bjrtr-footer-logo,
body .bjrtr-footer-logo-link:focus .bjrtr-footer-logo {
  box-shadow: 0 2px 10px rgba(19, 61, 118, 0.18) !important;
}

body .bjrtr-footer-nota {
  font-size: 0.8rem !important;
  color: #56606d !important;
}

/* ---- Coluna 4: navegação -------------------------------------- */

body .bjrtr-footer-links {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

body .bjrtr-footer-links li {
  list-style: none !important;
  margin: 0 0 0.45rem 0 !important;
  padding: 0 !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
}

body .bjrtr-footer-links li:last-child {
  margin-bottom: 0 !important;
}

/* ---- Faixa de licenciamento ----------------------------------- */

body .bjrtr-footer-licenca {
  border-top: 1px solid #d8e3ef !important;
  background: #eaf2fa !important;
  padding: 1.1rem 1.5rem !important;
}

body .bjrtr-footer-licenca-inner {
  max-width: 1160px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 1rem !important;
}

body .bjrtr-footer-licenca img {
  display: block !important;
  width: 88px !important;
  height: 31px !important;
  max-width: 100% !important;
  border: 0 !important;
  flex: 0 0 auto !important;
}

body .bjrtr-footer-licenca p {
  flex: 1 1 260px !important;
  font-size: 0.8rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  color: #4a5563 !important;
}

/* ---- Linha final: créditos ------------------------------------ */

body .bjrtr-footer-bottom {
  border-top: 1px solid #d8e3ef !important;
  background: #e2ecf8 !important;
  padding: 0.9rem 1.5rem !important;
  text-align: center !important;
}

body .bjrtr-footer-bottom p {
  color: #4a5563 !important;
  font-size: 0.78rem !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* ============================================================
   Responsivo
   ============================================================ */

@media (max-width: 1024px) {
  body .bjrtr-footer-inner {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.75rem 2rem !important;
  }

  body .bjrtr-footer-revista {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 600px) {
  body .bjrtr-footer-inner {
    grid-template-columns: 1fr !important;
    padding: 2rem 1.15rem 1.5rem 1.15rem !important;
    gap: 1.6rem !important;
  }

  body .bjrtr-footer-licenca {
    padding: 1rem 1.15rem !important;
  }

  body .bjrtr-footer-licenca-inner {
    gap: 0.75rem !important;
  }

  body .bjrtr-footer-bottom {
    padding: 0.85rem 1.15rem !important;
  }

  body .bjrtr-footer-logo {
    max-width: 180px !important;
  }
}

/* Impressão: rodapé sem fundo, apenas o essencial. */
@media print {
  body .bjrtr-footer,
  body .bjrtr-footer-licenca,
  body .bjrtr-footer-bottom {
    background: transparent !important;
    border-color: #999999 !important;
  }

  body .bjrtr-footer-tags,
  body .bjrtr-footer-links {
    display: none !important;
  }
}
