/* Bridge default OJS interior templates into MESTRO Press look */

body.mestro-theme.page-interior .pkp_structure_main > .page,
body.mestro-theme .page {
  max-width: none;
}

body.mestro-theme.page-interior h1,
body.mestro-theme.page-interior h2,
body.mestro-theme.page-interior h3 {
  font-family: var(--mestro-font-display);
  letter-spacing: -0.02em;
}

body.mestro-theme .cmp_breadcrumbs,
body.mestro-theme .mestro-page-crumbs {
  font-family: var(--mestro-font-body);
  margin-bottom: 0;
  color: var(--mestro-muted);
}

body.mestro-theme .mestro-page-hero {
  display: block;
}

/* Cancel journal styleSheet.css newsletter overlap (215px / 450px padding-bottom) */
body.mestro-theme .pkp_structure_content,
body.mestro-theme .pkp_structure_content.mestro-layout {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.mestro-theme.page-interior .pkp_structure_content.mestro-layout {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: var(--mestro-header-h) 0 4.5rem !important;
}

/* Journal public styleSheet.css pulls .mestro-footer up for newsletter overlap — kill on MESTRO */
body.mestro-theme .mestro-footer {
  margin-top: 0 !important;
  display: block !important;
}

body.mestro-theme .pkp_screen_reader {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.mestro-theme input[type="text"],
body.mestro-theme input[type="email"],
body.mestro-theme input[type="password"],
body.mestro-theme select,
body.mestro-theme textarea {
  border: 1px solid var(--mestro-line);
  border-radius: 10px;
  font-family: var(--mestro-font-body);
  padding: 0.65rem 0.8rem;
}

body.mestro-theme .cmp_button,
body.mestro-theme .submit {
  border-radius: 15px;
  font-family: var(--mestro-font-body);
  font-weight: 600;
}

body.mestro-theme .pkp_structure_sidebar.left,
body.mestro-theme aside.pkp_structure_sidebar {
  display: none;
}

body.mestro-theme aside.mestro-sidebar.pkp_structure_sidebar {
  display: block;
}

/* Neutralize site/journal custom stylesheets that target old PKP nav IDs / global red links */
body.mestro-theme a {
  color: inherit;
}

body.mestro-theme a:hover,
body.mestro-theme a:focus {
  color: var(--mestro-accent-strong);
}

body.mestro-theme .mestro-header a,
body.mestro-theme .mestro-header a:hover,
body.mestro-theme .mestro-header a:focus,
body.mestro-theme #mestroNavPrimary a,
body.mestro-theme #mestroNavPrimary a:hover,
body.mestro-theme #mestroNavPrimary a:focus,
body.mestro-theme #mestroNavMobile a,
body.mestro-theme #mestroNavMobile a:hover,
body.mestro-theme #mestroNavMobile a:focus {
  text-shadow: none !important;
}

body.mestro-theme .mestro-nav__link,
body.mestro-theme #mestroNavPrimary > li > a {
  color: var(--mestro-ink) !important;
}

body.mestro-theme .mestro-nav__link:hover,
body.mestro-theme .mestro-nav__link:focus,
body.mestro-theme #mestroNavPrimary > li > a:hover,
body.mestro-theme #mestroNavPrimary > li > a:focus {
  color: var(--mestro-secondary-soft) !important;
}

body.mestro-theme .mestro-indexing__link,
body.mestro-theme .mestro-indexing__link:hover,
body.mestro-theme .mestro-indexing__link:focus {
  color: inherit !important;
  text-shadow: none !important;
}
