/* -----------------------------------------------
Journal local stylesheet.
Author:   David Stienstra
Version:  2024
PLEASE SAVE THIS FILE LOCALLY!
----------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
/* ---------------- Meta Elements ---------------- */
@font-face {
  font-display: swap;
  font-family: "ElsevierSans";
  font-style: normal;
  font-weight: 400;
  src: url("ElsevierSansWeb-Regular.woff2") format("woff2");
}
    /* --- Meta styles and background --- */
body {
    font: normal 15px/1.5 ElsevierSans,'Montserrat', sans-serif;  /* should be medium except when fitting into a fixed container */
    background: #fff url(../assets/md5images/722f593ed98e6dfb8b377828a41a9f45.png) repeat-x left top !important;
}
/* ---------------- Header ---------------- */
#grrj #header {
    position: relative;  /* needed for logo positioning */
  height: auto !important; /* !important overrides mbl styling */
}
#grrj #banner_image {
    display: block;
    width: 980px !important;
    height: auto !important;  /* avoids warping improperly sized header image / SUP-19994 */
}
#grrj #banner_link { line-height: 0; } /* removes header/nav gap in mbl */
    /* --- Logo --- */
#grrj #logo_image {  /* include an image for accessibility */
    position: absolute !important; /* !important overrides mbl styling */
    top: 27.222222222%;
    left: 1.938776%;  /* change to "left:" for left aligned logo */
    width: 26.22449% !important;  /* 240 / 980 */
    height: auto;
}
#grrj #header a#banner_link:focus img {
  outline: 1px dashed #000;
}
#grrj #header a#logo_link:focus img {
  outline: 1px dashed #fff;
}
/* ---------------- Navigation ---------------- */
#grrj #navigation,
#grrj #navigation #tabs {
    height: 72px;
    overflow: hidden; /* have seen issues with tabs extending below nav container */
    white-space: nowrap;
    background-color: #fff; }
/* Flexbox Navigation July 2018 */
#grrj #navigation #tabs,
#grrj #navigation #tabs ul {
  display: flex;
  justify-content: flex-start; /* "flex-start" for left-aligned tabs, change to "flex-end" for right-aligned tabs, "center" for centered */
  width: 100%;
}
#grrj #navigation #tabs,
#grrj #navigation #tabs ul,
#grrj #navigation #tabs ul li {
    padding: 0;
    margin: 0; }
#grrj #navigation #tabs #tabzero {
  display: none;
}
#grrj #navigation #tabs a {
    font: normal 16px ElsevierSans,'Montserrat', sans-serif;
    display: block;
    width: auto !important; /* fixes "my account" not fitting in container on page load */
    transition: background 0.3s ease;
    line-height: 40px;
    color: #000;
    background-color: transparent;
    padding: 0 15px;
    margin: 16px 0;
    border: 0;
    border-right: none;
  }
#grrj #navigation #tabs a:hover,
#grrj #navigation #tabs a:active,
#grrj #navigation #tabs a:focus {
    text-decoration: underline;
}

#grrj #navigation #tabs li:last-child a {  /* remove 4th border for nav tab separators */
    border-right: none; }
#grrj #navigation #tabs a span { font-size: 16px; }  /* nav tab font size (default: 12px). Using font shorthand style specification causes display issue with My Account pages */
#grrj #navigation #tabs li:first-child a { padding-left: 15px; }
#grrj #navigation #tabs li#submit a {
    background-color: #f2f2f2;
}
/* ---------------- Sidebar ---------------- */

#grrj #sidebar a:link,
#grrj #sidebar a:visited {
    font: normal 15px ElsevierSans,'Montserrat', sans-serif;
    color: #0056d6;
    text-decoration: none;
}
#grrj #sidebar a:hover,
#grrj #sidebar a:active,
#grrj #sidebar a:focus {
    color: #000;
    background: transparent;
    text-decoration: underline;
}
    /* --- Highlighted sidebar links --- */
#grrj #sidebar ul#navlist {
    border-top: none; }  /* border added by ir-custom.css by default */
#grrj #sidebar ul#navlist li:first-child a {
    border-top: 1px solid #f2f2f2; /* border is removed if #navlist has no content */
}
#grrj #sidebar ul#navlist li a {
    color: #0056d6;
    transition: background 0.3s ease;
    font-weight: normal;
    background-color: #f2f2f2;
    border-bottom: 1px solid #f2f2f2;
}
        /* Sidebar link colors */
#grrj #sidebar ul#navlist li a:active,
#grrj #sidebar ul#navlist li a:hover,
#grrj #sidebar ul#navlist li a:focus {
    color: #000;
    text-decoration: underline;
}
#grrj #sidebar ul#navlist acronym {
    border-bottom: none;
}

#grrj #sidebar ul#navlist li a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 40px;
  padding: 0;
}
    /* --- Sidebar text --- */
#grrj #sidebar .sidebar-search label,
#grrj .sidebar-search h2,
#grrj #sidebar #issn p {
    color: #000; /* Search, "Enter search terms," ISSN" */
    border: 0; }
#grrj .sidebar-search h2 {
  font: bold 15px ElsevierSans,'Montserrat', sans-serif;
  background: transparent;
}
#grrj #sidebar #browse,
#grrj #sidebar #sidebar-search { padding-left: 15px; } /* aligning sidebar search with rest of sidebar */
#grrj #sidebar p.advanced + div { display: none; }
.searchbutton { cursor: pointer; } /* best practice, should move to ir-layout.css */
/* issn spacing for new sidebars lb 01062017 */
#grrj #sidebar #issn p.sb-issn,
#grrj #sidebar #issn p.sb-extra-issn,
#grrj #sidebar #issn ul li {
    letter-spacing: 0;
    line-height: 14px;
    text-transform: capitalize;
    text-align: left;
    margin-left: 50px;
}
/* ---------------- Main Content ---------------- */
#grrj #wrapper { /* for full-length sidebar content background/elements */
    background: url(../assets/md5images/a675e3ad68e7edbbce007926df2cd2a4.gif) repeat-y left top;
    margin-top: 20px;
}
#grrj #content { background-color: #ffffff; }
#sub { margin-top: 22px; }
    /* --- Breadcrumbs --- */
#grrj #main.text div.crumbs p { margin-bottom: 0; }
#grrj #main.text div.crumbs a {
    text-decoration: none;
    color: #0056d6;
}
#grrj #main.text div.crumbs a:hover,
#grrj #main.text div.crumbs a:active,
#grrj #main.text div.crumbs a:focus {
    text-decoration: underline;
    color: #000000;
}
#grrj #breadcrumb a,
#grrj .crumbs p a,
#grrj #pager li {
  font-size: 12px;
}
#grrj ul#pager li {
    padding-top: 5px;
}
    /* --- Headers --- */
#grrj #main.text .article-list h1,    /* Current Issue - without cover art */
#alpha h1, #series-home h1 {   /* Journals with cover art */
    font: bold 26px ElsevierSans,'Montserrat', sans-serif; /* Current Issue */
    margin: 5px 0;
    color: #000;
}
#grrj .article-list h2,   /* Article, or other doctype */
#coverart #alpha .article-list h2 {   /* Journals with cover art */
    font: bold 24px ElsevierSans,'Montserrat', sans-serif;
    background: transparent;   /* removes background and adds a line under doctype header */
    border-bottom: 1px solid #bfbfbf;
    padding-bottom: 0;
    margin-bottom: 25px;
    color: #000;
}
    /* --- Links --- */
#grrj #main.text a:link,
#grrj #main.text a:visited {
    text-decoration: underline;
    color: #0056d6; }
#grrj #main.text a:link span.icon-question-sign {
  text-decoration: none;
}
#grrj #main.text a:hover,
#grrj #main.text a:active,
#grrj #main.text a:focus {
    color: #000000;
    text-decoration: underline;
}
#grrj #main.text .article-list a:link,
#grrj #main.text .article-list a:visited {
    text-decoration: none; }
#grrj #main.text .article-list a:hover,
#grrj #main.text .article-list a:active,
#grrj #main.text .article-list a:focus {
    color: #000000;
    text-decoration: underline;
}
    /* --- PDF icons and article lists --- */
#grrj #main.text div.doc { margin: 0 0 15px; }
/* Replacing rule on line 227 to style all options and not break mobile PDF buttons */
/*#grrj #main.text div.article-list .pdf { width: auto; }*/
#grrj div.article-list .pdf,
#grrj div.article-list .native,
#grrj div.article-list .external,
#grrj div.article-list .none .openurl,
#grrj div.article-list .none,
#grrj div.article-list .metadata-only {
 width: auto;
}
#coverart #alpha .article-list p { margin-left: 48px; }
#grrj #main.text div.article-list .pdf a { text-decoration: none; } /* removes extra underline on PDF icon */
    /* --- Editors and Cover art --- */
#coverart #beta {
    float: right; }
        /* Cover art */
#grrj #coverart #beta .coverart-box h4 {
    font: bold 20px ElsevierSans,'Montserrat', sans-serif; /* default is 18px */
    color: #000;
    text-align: left;
    text-transform: none;
    border-bottom: 1px solid #bfbfbf;
     }
#grrj #coverart #beta .coverart-box {
    font: normal 14px ElsevierSans,'Montserrat', sans-serif;
    border: 0; }
#grrj #coverart #beta #coverart-box-container {
    border: 0; }
/* this rule aligns cover art with other content, but sometimes breaks the layout, idk, seems fine i guess
#coverart #beta { width: auto; }
*/
#grrj #coverart #beta dl  {
    margin-left: 0; }
#grrj #coverart #beta #coverart-editors dt {
    font-size: 14px;
    padding-top: 10px; }
#grrj #coverart #beta #coverart-editors dd {
  padding-top: 3px;
}
        /* Cover art disabled (not needed usually) */
#grrj #masthead h2.masthead,
#grrj #masthead caption,
#grrj #masthead h4 {
  font: bold 22px ElsevierSans,'Montserrat', sans-serif;
  color: #000;
  margin: 3px 0;
}
#grrj #masthead tr th {
}
#grrj #masthead tr td {
}
#grrj #alpha .element p,
#grrj #custom-fields .element p,
#grrj #alpha #recommended_citation p {
  font-size: 14px !important;
}
#grrj #beta_7-3 #beta-disciplines.aside p,
#grrj #alpha #attach_additional_files .files span {
  font-size: 14px !important;
}
#grrj #alpha .element h4,
#grrj #custom-fields .element h4,
#grrj #beta_7-3 h4,
#grrj #alpha .element h2,
#grrj #custom-fields .element h2,
#grrj #beta_7-3 h2,
#grrj #alpha #attach_additional_files .related strong {
  font-size: 17px !important;
  font-weight: bold;
}
#grrj #alpha #title.element p {
  font-size: 22px;
}
/* ---------------- Footer ---------------- */
#grrj #bepress a {
    background-image: url(../assets/md5images/3aaa37b89293456163fe142b9dac14f8.gif);
  background-size: 240px;
    background-position: center;
}
#grrj #footer  {
    height: 76px;
    background-color: #fff; }
#grrj #bepress a {
    height: 74px;
    margin: 1px 0;
    background-color: #fff; }

#grrj #footer p,
#grrj #footer p a  {
    font: normal 15px/2 ElsevierSans,'Montserrat', sans-serif;
    color: #0056d6;
    text-decoration: none; }
#grrj #footer p:first-of-type { padding-top: 8px; }
#grrj #footer p a:hover,
#grrj #footer p a:active,
#grrj #footer p a:focus {
    text-decoration: underline; }
#bepress a:focus {
  outline: 1px dashed #000;
}

#grrj #content {
    min-height: calc(100vh - 348px);  /* 310px varies by site. calculated by summing all fixed heights (header, navigation, footer, fixed margins between these elements) */
}
/* Search pages */
.legacy #grrj #wrapper:after {
	content: none; /* search pages */
}
 #grrj #container #footer a.secondary-link {
   font-size: 13px;
 }
/* ---------------- Miscellaneous fixes ---------------- */
    /* --- Advanced Search --- */
.legacy #grrj #wrapper {
  background-image: none;
}

/* ---------------- Mobile ---------------- */
.mbl #navigation #tabs {
    display: none;
}
.mbl #grrj #sidebar ul#navlist li a {
    padding: 6px 0px;
}
.mbl #grrj #sidebar ul#navlist li {
    padding: 0px;
}
header#mobile-nav {
    font-size: 0;
    line-height: 0; }
.mbl #grrj #header,
.mbl #grrj #header a#banner_link img,
.mbl #grrj #navigation {
    width: 100% !important;
}
.mbl #grrj #header #logo_image {
  position: absolute !important; /* !important overrides mbl styling */
  top: 27.222222222%;
  left: 1.938776%;  /* change to "right:" for right aligned logo */
  width: 26.22449% !important;  /* 240 / 980 */
  height: auto !important; /* Important avoides DC assigning incorrect height to logo image */
}

.mbl #sidebar #issn p.sb-issn,
.mbl #sidebar #issn p.sb-extra-issn {
	pointer-events: none;
}
.mbl #grrj #footer #bepress a {
    background: transparent url(../assets/md5images/3aaa37b89293456163fe142b9dac14f8.gif) center no-repeat !important;
    height: 50px !important;
    margin: 0px !important;
  background-size: contain !important;
}

.mbl #grrj #footer {
	background-color: #fff !important; /* plug in footer background color */
	background-image: none !important;
}
.mbl #grrj .article-list h2,
.mbl #coverart #alpha .article-list h2 {
  padding: 5px 0;
}

.mbl #grrj #content {
	min-height: unset;
}
