/* ============================================================
   Revista Culturas Midiáticas | Folha de estilo da revista
   Tema: Padrão (Default) do OJS 3.3 | Tipografia: DM Serif Display (títulos) + DM Sans (texto e interface)
   Onde enviar: Configurações > Website > Aparência >
   Folha de estilo da revista
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&display=swap");

:root {
  --cm-tinta: #1e2124;
  --cm-tinta-suave: #4a5258;
  --cm-ciano: #00aeef;
  --cm-ciano-escuro: #00739e;
  --cm-nevoa: #eef4f7;
  --cm-linha: #d5e1e7;
  --cm-branco: #ffffff;
  --cm-titulo: "DM Serif Display", Georgia, serif;
  --cm-texto: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --cm-ui: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */

html body:not(#cm) {
  background: var(--cm-nevoa);
  color: var(--cm-tinta);
  font-family: var(--cm-texto);
}

html body:not(#cm) .pkp_structure_page {
  max-width: 1200px;
  background: var(--cm-branco);
  box-shadow: none;
}

html body:not(#cm) a {
  color: var(--cm-ciano-escuro);
}

html body:not(#cm) a:hover,
html body:not(#cm) a:focus {
  color: var(--cm-tinta);
}

html body:not(#cm) a:focus-visible,
html body:not(#cm) button:focus-visible {
  outline: 3px solid var(--cm-ciano);
  outline-offset: 2px;
}

html body:not(#cm) .pkp_structure_page h1,
html body:not(#cm) .pkp_structure_page h2,
html body:not(#cm) .pkp_structure_page h3,
html body:not(#cm) .pkp_structure_page h4,
html body:not(#cm) .pkp_structure_page .page_title {
  font-family: var(--cm-titulo);
  font-weight: 400;
  color: var(--cm-tinta);
  letter-spacing: 0;
}

/* ---------- Cabeçalho ---------- */

html body:not(#cm) .pkp_structure_page .pkp_structure_head {
  background: var(--cm-branco);
  border-bottom: 0;
}

html body:not(#cm) .pkp_structure_page .pkp_site_name .is_img img {
  max-height: 96px;
  width: auto;
}

html body:not(#cm) .pkp_structure_page .pkp_site_name {
  padding-top: 1.5rem;
  padding-bottom: 1.25rem;
}

/* Barra de navegação em faixa grafite */
@media (min-width: 992px) {
  html body:not(#cm) .pkp_structure_page .pkp_navigation_primary_row {
    background: var(--cm-tinta);
    margin: 0 -2rem;
    padding: 0 2rem;
  }

  html body:not(#cm) #navigationPrimary > li > a {
    color: var(--cm-branco);
    font-family: var(--cm-ui);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
    padding: 0.85rem 0.9rem;
    margin: 0;
    border-bottom: 3px solid transparent;
  }

  html body:not(#cm) #navigationPrimary > li > a:hover,
  html body:not(#cm) #navigationPrimary > li > a:focus {
    color: var(--cm-branco);
    background: transparent;
    border-bottom-color: var(--cm-ciano);
  }

  html body:not(#cm) .pkp_structure_page .pkp_navigation_search_wrapper a,
  html body:not(#cm) .pkp_structure_page .pkp_navigation_search_wrapper a:hover {
    color: var(--cm-branco);
    border-bottom: 3px solid transparent;
  }

  html body:not(#cm) .pkp_structure_page .pkp_navigation_search_wrapper a:hover {
    border-bottom-color: var(--cm-ciano);
  }

  html body:not(#cm) #navigationPrimary .dropdown-menu a {
    color: var(--cm-tinta);
  }
}

/* ---------- Área principal ---------- */

html body:not(#cm) .pkp_structure_page .pkp_structure_main h2,
html body:not(#cm) .pkp_structure_page .cmp_announcements > h2,
html body:not(#cm) .pkp_structure_page .current_issue > h2 {
  font-size: 1.75rem;
  font-weight: 400;
  text-transform: none;
  color: var(--cm-tinta);
}

/* Anúncios da página inicial */
html body:not(#cm) .pkp_structure_page .cmp_announcements {
  border-bottom: 1px solid var(--cm-linha);
}

html body:not(#cm) .pkp_structure_page .cmp_announcements .obj_announcement_summary h2,
html body:not(#cm) .pkp_structure_page .cmp_announcements .obj_announcement_summary h3,
html body:not(#cm) .pkp_structure_page .cmp_announcements .obj_announcement_summary h4 {
  font-size: 1.4rem;
  line-height: 1.25;
  font-weight: 400;
}

html body:not(#cm) .pkp_structure_page .cmp_announcements .obj_announcement_summary h2 a,
html body:not(#cm) .pkp_structure_page .cmp_announcements .obj_announcement_summary h3 a,
html body:not(#cm) .pkp_structure_page .cmp_announcements .obj_announcement_summary h4 a {
  color: var(--cm-tinta);
}

html body:not(#cm) .pkp_structure_page .cmp_announcements .date {
  color: var(--cm-tinta-suave);
  font-size: 0.85rem;
}

html body:not(#cm) .pkp_structure_page .date::before,
html body:not(#cm) .pkp_structure_page .date .fa {
  color: var(--cm-tinta-suave);
}

html body:not(#cm) .pkp_structure_page .cmp_announcements .read_more {
  font-weight: 600;
  text-transform: none;
}

html body:not(#cm) .pkp_structure_page .cmp_announcements .obj_announcement_summary,
html body:not(#cm) .pkp_structure_page .cmp_announcements .obj_announcement_summary:first-of-type,
html body:not(#cm) .pkp_structure_page .cmp_announcements .more,
html body:not(#cm) .pkp_structure_page .cmp_announcements .more .obj_announcement_summary {
  background: transparent;
  border-left: 0;
  box-shadow: none;
}

/* Edição atual e sumário */
html body:not(#cm) .pkp_structure_page .current_issue_title,
html body:not(#cm) .pkp_structure_page .obj_issue_toc .heading .title {
  font-family: var(--cm-titulo);
  font-size: 1.8rem;
  line-height: 1.2;
  font-weight: 400;
}

html body:not(#cm) .pkp_structure_page .obj_issue_toc .section > h2,
html body:not(#cm) .pkp_structure_page .obj_issue_toc .section > h3 {
  font-family: var(--cm-ui);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cm-tinta-suave);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cm-linha);
  padding: 0 0 0.35rem;
  margin-bottom: 1rem;
  position: static;
  left: 0;
}

html body:not(#cm) .pkp_structure_page .obj_article_summary {
  padding: 0.25rem 0 1.25rem;
  border-bottom: 1px solid var(--cm-nevoa);
  margin-bottom: 1.25rem;
}

html body:not(#cm) .pkp_structure_page .obj_article_summary > .title,
html body:not(#cm) .pkp_structure_page .obj_article_summary > h3.title,
html body:not(#cm) .pkp_structure_page .obj_article_summary > h4.title {
  font-family: var(--cm-titulo);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.25;
}

html body:not(#cm) .pkp_structure_page .obj_article_summary > .title a {
  color: var(--cm-tinta);
}

html body:not(#cm) .pkp_structure_page .obj_article_summary > .title a:hover {
  color: var(--cm-ciano-escuro);
}

html body:not(#cm) .pkp_structure_page .obj_article_summary .subtitle {
  display: block;
  font-family: var(--cm-texto);
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 400;
  color: var(--cm-tinta-suave);
  margin-top: 0.25rem;
}

html body:not(#cm) .pkp_structure_page .obj_article_summary .meta .authors {
  color: var(--cm-tinta-suave);
  font-size: 1.1rem;
}

/* Botões PDF e XML */
html body:not(#cm) .pkp_structure_page .obj_galley_link {
  border: 1.5px solid var(--cm-ciano-escuro);
  border-radius: 0;
  color: var(--cm-ciano-escuro);
  font-weight: 600;
  padding: 0.2rem 0.9rem;
  background: transparent;
}

html body:not(#cm) .pkp_structure_page .obj_galley_link:hover,
html body:not(#cm) .pkp_structure_page .obj_galley_link:focus {
  background: var(--cm-ciano-escuro);
  border-color: var(--cm-ciano-escuro);
  color: var(--cm-branco);
}

/* Página do artigo */
html body:not(#cm) .pkp_structure_page .obj_article_details .page_title {
  font-size: 2.4rem;
  font-weight: 400;
  line-height: 1.15;
}

html body:not(#cm) .pkp_structure_page .obj_article_details .subtitle {
  font-family: var(--cm-texto);
  font-size: 1.3rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--cm-tinta-suave);
}

html body:not(#cm) .pkp_structure_page .obj_article_details .item .label {
  font-family: var(--cm-titulo);
  font-size: 1.35rem;
  font-weight: 400;
  text-transform: none;
  color: var(--cm-tinta);
}

/* ---------- Barra lateral ---------- */

html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar .pkp_block {
  padding: 1.5rem 1.5rem 1.25rem;
  border: 0;
  border-bottom: 1px solid var(--cm-linha);
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
}

/* O colchete da logo como marca dos títulos */
html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar .pkp_block .title {
  position: relative;
  font-family: var(--cm-ui);
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--cm-tinta);
  padding-left: 0.9rem;
  padding-bottom: 0;
  border: 0;
  margin: 0 0 0.85rem;
  line-height: 1.2;
}

html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar .pkp_block .title::before {
  content: "";
  position: absolute;
  left: 0;
  top: -0.1em;
  bottom: -0.1em;
  width: 0.45rem;
  border: 3px solid var(--cm-ciano);
  border-right: 0;
}

html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar .pkp_block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar .pkp_block li {
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--cm-nevoa);
}

html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar .pkp_block li:last-child {
  border-bottom: 0;
}

html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar .pkp_block a {
  text-decoration: none;
}

html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar .pkp_block a:hover {
  text-decoration: underline;
}

/* Enviar submissão em destaque */
html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar .block_make_submission {
  background: var(--cm-tinta);
  border-bottom: 0;
}

html body:not(#cm) .pkp_structure_page .block_make_submission .block_make_submission_link {
  display: block;
  text-align: center;
  background: var(--cm-ciano);
  color: var(--cm-tinta);
  border: 0;
  border-radius: 4px;
  font-family: var(--cm-ui);
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
  padding: 0.75rem 1rem;
  box-shadow: none;
}

html body:not(#cm) .pkp_structure_page .block_make_submission .block_make_submission_link:hover,
html body:not(#cm) .pkp_structure_page .block_make_submission .block_make_submission_link:focus {
  background: var(--cm-branco);
  color: var(--cm-tinta);
}

/* Blocos personalizados */
html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar .cm-ficha li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 0.9rem;
}

html body:not(#cm) .pkp_structure_page .cm-ficha li span {
  color: var(--cm-tinta-suave);
}

html body:not(#cm) .pkp_structure_page .cm-ficha li strong {
  font-weight: 600;
  text-align: right;
}

html body:not(#cm) .pkp_structure_page .cm-indexadores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar .cm-indexadores li {
  border: 1px solid var(--cm-linha);
  border-radius: 999px;
  padding: 0.15rem 0.65rem;
  font-size: 0.82rem;
}

html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar .cm-indexadores li:last-child {
  border-bottom: 1px solid var(--cm-linha);
}

html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar .cm-indexadores a {
  color: var(--cm-tinta);
}

html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar .cm-indexadores li:hover {
  border-color: var(--cm-ciano);
}

/* ---------- Texto corrido em Lora, metadados em Inter ---------- */

html body:not(#cm) .pkp_structure_page .pkp_structure_main p,
html body:not(#cm) .pkp_structure_page .pkp_structure_main li,
html body:not(#cm) .pkp_structure_page .cmp_announcements .summary,
html body:not(#cm) .pkp_structure_page .obj_article_details .abstract,
html body:not(#cm) .pkp_structure_page .obj_article_details .item.abstract p {
  font-family: var(--cm-texto);
  font-size: 1.02rem;
  line-height: 1.65;
}

html body:not(#cm) .pkp_structure_page .cmp_breadcrumbs,
html body:not(#cm) .pkp_structure_page .cmp_breadcrumbs a,
html body:not(#cm) .pkp_structure_page .obj_article_details .authors,
html body:not(#cm) .pkp_structure_page .obj_article_details .authors .name,
html body:not(#cm) .pkp_structure_page .obj_article_details .authors .affiliation,
html body:not(#cm) .pkp_structure_page .obj_article_summary .meta,
html body:not(#cm) .pkp_structure_page .date,
html body:not(#cm) .pkp_structure_page .published,
html body:not(#cm) .pkp_structure_page .published .label,
html body:not(#cm) .pkp_structure_page .published .value,
html body:not(#cm) .pkp_structure_page .pkp_navigation_user a,
html body:not(#cm) .pkp_structure_page .pkp_navigation_search_wrapper a,
html body:not(#cm) .pkp_structure_page .obj_galley_link,
html body:not(#cm) .pkp_structure_page .read_more,
html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar,
html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar p,
html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar li,
html body:not(#cm) .pkp_structure_page .obj_article_details .doi a,
html body:not(#cm) .pkp_structure_page .obj_article_details .doi .value,
html body:not(#cm) .pkp_structure_page button,
html body:not(#cm) .pkp_structure_page .cmp_button {
  font-family: var(--cm-ui);
}

html body:not(#cm) .pkp_structure_page .cmp_breadcrumbs {
  text-transform: none;
}

/* ---------- Rodapé ---------- */

html body:not(#cm) .pkp_structure_page .pkp_structure_footer_wrapper {
  background: var(--cm-tinta);
  color: #d9e1e5;
  border-top: 4px solid var(--cm-ciano);
}

html body:not(#cm) .pkp_structure_page .pkp_structure_footer_wrapper a {
  color: #8fd8f5;
}

html body:not(#cm) .pkp_structure_page .pkp_structure_footer_wrapper a:hover {
  color: var(--cm-branco);
}

html body:not(#cm) .pkp_structure_page .pkp_structure_footer_wrapper strong {
  color: var(--cm-branco);
}

html body:not(#cm) .pkp_structure_page .pkp_brand_footer img {
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

/* ---------- Celular ---------- */

@media (max-width: 991px) {
  html body:not(#cm) .pkp_structure_page .pkp_structure_head {
    background: var(--cm-branco);
  }

  html body:not(#cm) .pkp_structure_page .pkp_site_nav_toggle {
    background: var(--cm-tinta);
  }

  html body:not(#cm) .pkp_structure_page .pkp_structure_sidebar .pkp_block {
    padding: 1.25rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body:not(#cm) * {
    transition: none !important;
  }
}
