/* RMAT — Revista da Matemática da Universidade Federal de Ouro Preto
   OJS 3.5 journal stylesheet
   Replaces the previous third-party theme (normalize v7, azul #73a9d9, Montserrat).
   OJS 3.5 ships its own reset; no normalize is needed.
*/

/* ---------- Brand ---------- */
:root {
  --rmat-ink: #111;
  --rmat-muted: #5c5c5c;
  --rmat-rule: #d9d9d9;
  --rmat-accent: #b01e1e;            /* accent from the RMAT masthead */
}

/* ---------- Header / site name ---------- */
.has_site_logo .pkp_site_name_wrapper,
.pkp_site_name_wrapper {
  background: transparent;
  padding-left: 30px;
  padding-right: 30px;
}
.pkp_site_name .is_img img {
  max-height: 80px;
}
.pkp_site_name .is_text {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--rmat-ink);
}
.pkp_head_wrapper, .has_site_logo .pkp_head_wrapper {
  background: transparent;
  border-bottom: 1px solid var(--rmat-rule);
}

/* ---------- Primary navigation ---------- */
#navigationPrimary a {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.62);
}
#navigationPrimary a:hover,
#navigationPrimary a:focus {
  color: var(--rmat-accent);
}
.pkp_navigation_primary_wrapper {
  background: #fff;
  border-bottom: 1px solid var(--rmat-rule);
}

/* ---------- Article details: two-column grid ----------
   OJS 3.5 marks the article details as .obj_article_details .row with two
   children, .main_entry (abstract, metadata) and .entry_details (sidebar).
   Give the abstract the wider column and the sidebar a fixed width. */
@media (min-width: 992px) {
  .obj_article_details .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
  }
  .obj_article_details .main_entry,
  .obj_article_details .entry_details {
    width: 100%;
    margin: 0;
    border: none;
    float: none;
  }
}
/* Below 992 the columns stack; make sure the floats do not break them */
@media (max-width: 991px) {
  .obj_article_details .row {
    display: block;
  }
  .obj_article_details .main_entry,
  .obj_article_details .entry_details {
    float: none;
    width: 100%;
    margin: 0 0 30px 0;
  }
}
.obj_article_details .entry_details .item {
  padding: 16px 0;
  border-bottom: 1px solid var(--rmat-rule);
}
.obj_article_details .entry_details .item:last-child {
  border-bottom: none;
}

/* ---------- Typography ---------- */
body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.55;
  color: #222;
}
.obj_article_details .page_title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.25;
  color: var(--rmat-ink);
}
.obj_article_details .abstract h2,
.obj_article_details .abstract h3 {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.pkp_structure_footer_wrapper {
  background: #f5f5f5;
  border-top: 1px solid var(--rmat-rule);
}
