/* 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;
}
/* Logo: 75% of the header width, scales with the viewport.
   The theme sets max-height:none !important, so the override needs !important. */
.pkp_site_name .is_img img {
  display: block !important;
  width: 75% !important;
  max-width: 100% !important;
  max-height: none !important;
  height: auto !important;
  margin: 0 auto !important;
}
.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);
}
/* The Manuscript child theme sets white link text on the primary colour.
   The white nav background above needs dark text, so force it here. */
.pkp_navigation_primary_wrapper #navigationPrimary a,
.pkp_navigation_primary_wrapper .pkp_navigation_primary > li > a {
  color: var(--rmat-ink) !important;
}
.pkp_navigation_primary_wrapper #navigationPrimary a:hover,
.pkp_navigation_primary_wrapper #navigationPrimary a:focus,
.pkp_navigation_primary_wrapper .pkp_navigation_primary > li > a:hover,
.pkp_navigation_primary_wrapper .pkp_navigation_primary > li > a:focus {
  color: var(--rmat-accent) !important;
}

/* ---------- Article details: two-column layout (floats) ----------
   Abstract and metadata on the left (wide column), sidebar on the right
   (narrow column). Floats keep the abstract in the left column. */
@media (min-width: 992px) {
  .obj_article_details .row {
    display: block;
  }
  .obj_article_details .row:after {
    content: " ";
    display: table;
    clear: both;
  }
  .obj_article_details .main_entry {
    float: left;
    width: 63%;
    margin: 0;
    padding: 0 30px;   /* inner gutter, aligns with the title */
    box-sizing: border-box;
    border: none;
  }
  .obj_article_details .entry_details {
    float: right;
    width: 34%;
    margin: 0;
    box-sizing: border-box;
    border: none;
  }
  .obj_article_details .main_entry .item {
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }
}
/* 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);
}
