/* ==========================================================================
   RECIMA21 · Rodapé "Expediente" · v2.0 (18/10/2026) · PT/EN/ES
   Tema OJS: recima21Landing (OJS 3.5).
   Enviar em: Configurações › Website › Aparência › Configuração › Folha de estilo da revista.
   Os ícones das redes estão embutidos neste arquivo (não é preciso enviar imagens).
   - Usa as variáveis do próprio tema (--recima21-*, --font-sans, --radius);
     o valor após a vírgula é o fallback.
   - O prefixo "div.r21f" dá especificidade suficiente para vencer as regras
     do tema que usam !important (.footer-content * e .footer-content a).
   ========================================================================== */

/* Só quando o rodapé novo está presente: tira a opacidade 0,85 do bloco
   e esconde o logo que o tema imprime acima do conteúdo (o rodapé traz o seu). */
.footer-avisos:has(.r21f) { opacity: 1; }
.footer-avisos:has(.r21f) > .footer-logo { display: none; }

div.r21f {
  font-family: var(--font-sans, "Source Sans 3", system-ui, -apple-system, sans-serif);
  font-size: .8125rem; line-height: 1.55; text-align: left;
  color: var(--recima21-footer-text, rgba(255,255,255,.88)) !important;
}
div.r21f * { box-sizing: border-box; }
div.r21f p, div.r21f ul, div.r21f dl, div.r21f dt, div.r21f dd, div.r21f h2 { margin: 0; padding: 0; }
div.r21f ul { list-style: none; }
div.r21f img { max-width: none; }

/* Links */
div.r21f a { color: var(--recima21-footer-link, #60a5fa) !important; text-decoration: none; }
div.r21f a:hover { color: var(--recima21-footer-link-hover, #93c5fd) !important; text-decoration: underline; }
div.r21f a:focus-visible { outline: 2px solid var(--recima21-footer-link-hover, #93c5fd); outline-offset: 2px; border-radius: 4px; }

/* Títulos de bloco */
div.r21f .r21f__h {
  font-family: var(--font-sans, "Source Sans 3", system-ui, sans-serif);
  font-size: .75rem; line-height: 1.35; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #fff !important; margin: 0 0 1rem;
}

/* Três colunas do expediente */
div.r21f .r21f__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
div.r21f .r21f__col { padding-top: 1rem; border-top: 2px solid var(--recima21-footer-link, #60a5fa); }
div.r21f dl.r21f__dl { display: block; }
div.r21f .r21f__dl dt:not(:first-child) { margin-top: .7rem; }
div.r21f .r21f__dl dt {
  font-size: .6875rem; font-weight: 400; letter-spacing: .06em; text-transform: uppercase;
  color: var(--recima21-footer-muted, rgba(255,255,255,.62)) !important;
}
div.r21f .r21f__dl dd { font-weight: 600; line-height: 1.4; color: #fff !important; }

/* Redes sociais */
div.r21f .r21f__redes { margin-top: 2rem; }
div.r21f .r21f__redes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
div.r21f a.r21f__rede {
  display: flex; align-items: center; gap: .9rem; height: 100%; padding: .9rem 1rem;
  background: var(--recima21-footer-panel, rgba(255,255,255,.06));
  border: 1px solid var(--recima21-footer-rule, rgba(255,255,255,.12)); border-radius: var(--radius, 12px);
  color: var(--recima21-footer-text, rgba(255,255,255,.88)) !important;
  transition: border-color .2s ease, transform .2s ease;
}
div.r21f a.r21f__rede:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--r21f-rede, #60a5fa); }
div.r21f a.r21f__rede::before {
  content: ""; flex: none; width: 52px; height: 52px; border-radius: 14px;
  background: transparent center / 52px 52px no-repeat;
}
div.r21f .r21f__rede-txt { flex: 1; min-width: 0; }
div.r21f .r21f__rede-txt strong { display: block; font-weight: 700; font-size: .9375rem; color: #fff !important; }
div.r21f .r21f__rede-txt span { display: block; font-size: .75rem; overflow-wrap: anywhere; color: var(--recima21-footer-muted, rgba(255,255,255,.62)) !important; }
div.r21f .r21f__rede-cta {
  flex: none; padding: .3rem .75rem; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap;
  border: 1px solid var(--recima21-footer-rule, rgba(255,255,255,.12));
  color: var(--recima21-footer-link-hover, #93c5fd) !important;
}
div.r21f a.r21f__rede:hover .r21f__rede-cta { border-color: var(--r21f-rede, #60a5fa); }
div.r21f .r21f__rede--instagram { --r21f-rede: #e1306c; }
div.r21f .r21f__rede--youtube   { --r21f-rede: #ff0000; }
div.r21f .r21f__rede--whatsapp  { --r21f-rede: #25d366; }

/* Barra final */
div.r21f .r21f__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--recima21-footer-rule, rgba(255,255,255,.12));
  font-size: .75rem;
}
div.r21f .r21f__logo { display: inline-block; line-height: 0; }
div.r21f .r21f__logo img { display: block; height: 40px; width: auto; }
div.r21f .r21f__end { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
div.r21f a.r21f__cc {
  display: inline-block; padding: .1rem .55rem; border-radius: 6px; font-weight: 700;
  border: 1px solid var(--recima21-footer-rule, rgba(255,255,255,.12));
}

/* Responsivo */
@media (max-width: 900px) {
  div.r21f .r21f__grid, div.r21f .r21f__redes-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  div.r21f a.r21f__rede { transition: none; }
  div.r21f a.r21f__rede:hover { transform: none; }
}

/* Ícones das redes (SVG embutido).
   Glifos: Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com - CC BY 4.0 (https://fontawesome.com/license/free), © 2024 Fonticons, Inc.
   Instagram, YouTube e WhatsApp são marcas de seus titulares; usadas só para identificar os perfis oficiais da revista. */
div.r21f a.r21f__rede--instagram::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23f58529'/%3E%3Cstop offset='.45' stop-color='%23dd2a7b'/%3E%3Cstop offset='.75' stop-color='%238134af'/%3E%3Cstop offset='1' stop-color='%23515bd4'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='512' height='512' rx='138' fill='url(%23g)'/%3E%3Csvg x='124.75' y='106.00' width='262.50' height='300.00' viewBox='0 0 448 512'%3E%3Cpath fill='%23ffffff' d='M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z'/%3E%3C/svg%3E%3C/svg%3E"); }
div.r21f a.r21f__rede--youtube::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Crect width='512' height='512' rx='138' fill='%23ff0000'/%3E%3Csvg x='98.50' y='116.00' width='315.00' height='280.00' viewBox='0 0 576 512'%3E%3Cpath fill='%23ffffff' d='M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z'/%3E%3C/svg%3E%3C/svg%3E"); }
div.r21f a.r21f__rede--whatsapp::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Crect width='512' height='512' rx='138' fill='%23128c7e'/%3E%3Csvg x='124.75' y='106.00' width='262.50' height='300.00' viewBox='0 0 448 512'%3E%3Cpath fill='%23ffffff' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E%3C/svg%3E"); }

/* Página Submissão: oculta o título padrão "Diretrizes para Autores" acima do banner (out/2026) */
.static-page-content > h3:has(+ div > a:first-child > img[src*="libraryFiles/downloadPublic/"]),
.static-page-content > h3:has(+ .edit-link-wrapper + div > a:first-child > img[src*="libraryFiles/downloadPublic/"]) { display: none; }

/* Página Submissão: oculta a frase "Fazer nova submissão / ver submissões pendentes" (ou "Acesso / Registrar") acima do banner (out/2026) */
.static-page-content > p:first-child:has(+ h3 + div > a:first-child > img[src*="libraryFiles/downloadPublic/"]),
.static-page-content > p:first-child:has(+ h3 + .edit-link-wrapper + div > a:first-child > img[src*="libraryFiles/downloadPublic/"]) { display: none; }

/* Página Submissão: oculta "Condições para submissão" abaixo das diretrizes; continua na tela de submissão (out/2026) */
.static-page-content > div:has(> a:first-child > img[src*="libraryFiles/downloadPublic/"]) + h3,
.static-page-content > div:has(> a:first-child > img[src*="libraryFiles/downloadPublic/"]) + h3 + .edit-link-wrapper,
.static-page-content > div:has(> a:first-child > img[src*="libraryFiles/downloadPublic/"]) + h3 + .edit-link-wrapper + p,
.static-page-content > div:has(> a:first-child > img[src*="libraryFiles/downloadPublic/"]) + h3 + .edit-link-wrapper + p + ul,
.static-page-content > div:has(> a:first-child > img[src*="libraryFiles/downloadPublic/"]) + h3 + p,
.static-page-content > div:has(> a:first-child > img[src*="libraryFiles/downloadPublic/"]) + h3 + p + ul { display: none; }

/* Página Submissão: oculta tudo abaixo das diretrizes (seções, direito autoral, privacidade) (out/2026) */
.static-page-content > div:has(> a:first-child > img[src*="libraryFiles/downloadPublic/"]) ~ * { display: none; }

/* Página Submissão: oculta o texto solto "O cadastro no sistema... Acesso / Registrar" (visitantes não logados) (out/2026) */
.static-page-content:has(> div > a:first-child > img[src*="libraryFiles/downloadPublic/"]) { font-size: 0; line-height: 0; }
.static-page-content:has(> div > a:first-child > img[src*="libraryFiles/downloadPublic/"]) > a, .static-page-content:has(> div > a:first-child > img[src*="libraryFiles/downloadPublic/"]) > p:empty { display: none; }
.static-page-content:has(> div > a:first-child > img[src*="libraryFiles/downloadPublic/"]) > div { font-size: 16px; line-height: 1.7; }
.static-page-content:has(> div > a:first-child > img[src*="libraryFiles/downloadPublic/"]) > .edit-link-wrapper { font-size: 14px; line-height: 1.5; }

/* Página Submissão: oculta o link "Editar" (aparecia também para visitantes) (out/2026) */
.static-page-content:has(> div > a:first-child > img[src*="libraryFiles/downloadPublic/"]) > .edit-link-wrapper { display: none; }
