/* -----------------------------------------------
Journal local stylesheet.
Author:   Jami Wardlow
Version:  Jul 2019
PLEASE SAVE THIS FILE LOCALLY!
----------------------------------------------- */

/* ---------------- Meta Elements ---------------- */

@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

	/* --- Meta styles and background --- */

body {
	font: normal 12px/1.5 'Open Sans', sans-serif;  /* should be medium except when fitting into a fixed container */
	background: #fff url(../assets/md5images/d89fe486e244b5a285a4a0e1b03153c7.gif) repeat-x left top;
}

#jmle { background: url(../assets/md5images/8ecace05648445660e17a13f09470f73.gif) repeat-x left bottom; }

/* ---------------- Header ---------------- */

#jmle #header {
	position: relative;  /* needed for logo positioning */
	height: auto !important; /* !important overrides mbl styling */
}

#jmle #banner_image {
	display: block;
	width: 980px !important;
	height: auto !important;  /* avoids warping improperly sized header image / SUP-19994 */
}

#jmle #banner_link { line-height: 0; } /* removes header/nav gap in mbl */

	/* --- Logo --- */

#jmle #logo_image { display: none; }

/* ---------------- Navigation ---------------- */

#jmle #navigation,
#jmle #navigation #tabs {
	height: 36px;
	overflow: hidden; /* have seen issues with tabs extending below nav container */
}

#jmle #navigation #tabs,
#jmle #navigation #tabs ul,
#jmle #navigation #tabs ul li {
	padding: 0;
	margin: 0;
}

#jmle #navigation #tabs,
#jmle #navigation #tabs ul {
	display: flex;
	justify-content: flex-start;
	width: 100%;
}

#jmle #navigation #tabs a {
	font: 600 12px 'Open Sans', sans-serif;
	text-transform: uppercase;
	display: block;
	/*width: auto !important; fixes "my account" not fitting in container on page load (does it tho?)*/
	line-height: 36px;
	color: #000;
	background-color: transparent;
	padding: 0 10px;
	margin: 0;
	border: 0;
}

#jmle #navigation #tabs a:hover,
#jmle #navigation #tabs a:active,
#jmle #navigation #tabs a:focus {
	text-decoration: underline;
}

#jmle #navigation #tabs a span { font-size: 12px; }	/* nav tab font size (default: 12px). Using font shorthand style specification causes display issue with My Account pages */

#jmle #navigation #tabs li:last-child a { padding-right: 25px; }   /* hidden but expands to fit 240px #tabs for IE + FF */

#jmle #navigation #tabs li:first-child a { padding-left: 13px; }

/* ---------------- Sidebar ---------------- */

#jmle #sidebar { padding-top: 16px; }

#jmle #sidebar a:link,
#jmle #sidebar a:visited {
	font: normal 12px 'Open Sans', sans-serif;
	color: #095aa2;
	text-decoration: none;
}

#jmle #sidebar a:hover,
#jmle #sidebar a:active,
#jmle #sidebar a:focus {
	text-decoration: underline;
}

	/* --- Highlighted sidebar links --- */

#jmle #sidebar ul#navlist {
	border-top: none; /* border added by ir-custom.css by default */
}

#jmle #sidebar ul#navlist li a {
	color: #fff;
	transition: background 0.3s ease;
	font-weight: normal;
	background-color: #0a60ad;
	padding: 10px 0 6px;
	border-bottom: 1px solid #0a60ad;
}

#jmle #sidebar ul#navlist li a:active,
#jmle #sidebar ul#navlist li a:hover,
#jmle #sidebar ul#navlist li a:focus {
	color: #095aa2;
	background-color: #fff;
}

#jmle #sidebar ul#navlist li:last-child a { border-bottom: none; }

	/* --- Sidebar text --- */

#jmle #sidebar .sidebar-search label,
#jmle .sidebar-search h2,
#jmle #sidebar #issn p {
	color: #000; /* Search, "Enter search terms," ISSN" */
	border: 0;
}

#jmle .sidebar-search h2 { 
	font: bold 12px 'Open Sans', sans-serif;
	text-indent: 20px;	
}

#jmle #sidebar #browse,
#jmle #sidebar #sidebar-search { padding-left: 15px; } /* aligning sidebar search with rest of sidebar */

#jmle #sidebar p.advanced + div { display: none; }

.searchbutton { cursor: pointer; } /* best practice, should move to ir-layout.css */

/* ---------------- Main Content ---------------- */

#jmle #content { 
	min-height: calc(100vh - 253px); /* sticky footer: calculates 100% viewport height - (total heights of header, navigation and footer) */
	background-color: #fff;
}

#sub {
	margin-top: 22px;
	border-top: solid 1px #e5e1dc;
}

	/* --- Breadcrumbs --- */

#jmle #main.text div.crumbs p { margin-bottom: 0; }

#jmle #main.text div.crumbs a {
	text-decoration: none;
	color: #095aa2;
}

#jmle #main.text div.crumbs a:hover,
#jmle #main.text div.crumbs a:active,
#jmle #main.text div.crumbs a:focus {
	text-decoration: underline;
	color: #000;
}

	/* --- Headers --- */

#jmle #main.text .article-list h1,    /* Current Issue - without cover art */
#alpha h1, #series-home h1 {   /* Journals with cover art */
	font: normal 22px 'Open Sans', sans-serif; /* Current Issue */
}

#jmle .article-list h2,   /* Article, or other doctype */
#coverart #alpha .article-list h2 {   /* Journals with cover art */
	font: normal 21px 'Open Sans', sans-serif;
	background: transparent;   /* removes background and adds a line under doctype header */
	border-bottom: 1px solid #e5e1dc;
	padding-bottom: 0;
	margin-bottom: 25px;
}

	/* --- Links --- */

#jmle #main.text a:link,
#jmle #main.text a:visited {
	text-decoration: underline;
	color: #095aa2;
}

#jmle #main.text a:hover,
#jmle #main.text a:active,
#jmle #main.text a:focus {
	color: #000;
	text-decoration: underline;
}

#jmle #main.text .article-list a:link,
#jmle #main.text .article-list a:visited {
	text-decoration: none;
}

#jmle #main.text .article-list a:hover,
#jmle #main.text .article-list a:active,
#jmle #main.text .article-list a:focus {
	color: #000;
	text-decoration: underline;
}

	/* --- PDF icons and article lists --- */

#jmle #main.text div.doc { margin: 0 0 15px; }

/* testing replacing the below with what follows: 
#jmle #main.text div.article-list .pdf { width: auto; } */

#jmle div.article-list .pdf,
#jmle div.article-list .native,
#jmle div.article-list .external,
#jmle div.article-list .none .openurl,
#jmle div.article-list .none,
#jmle div.article-list .metadata-only {
 width: auto;
}

#coverart #alpha .article-list p { margin-left: 48px; }

#jmle #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 */

#jmle #coverart #beta .coverart-box h4 {
    font: normal 18px 'Open Sans', sans-serif;
    color: #000;
    text-align: left;
    text-transform: none;
    border-bottom: 1px solid #e5e1dc;
}

#jmle #coverart #beta .coverart-box {
	font: normal 12px 'Open Sans', sans-serif;
	border: 0;
}

#jmle #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; } */

#jmle #coverart #beta dl  { margin-left: 0; }

#jmle #coverart #beta #coverart-editors dt {
	font-size: 12px;
	padding-top: 10px;
}

		/* Cover art disabled (not needed usually) */

#jmle #masthead h2.masthead { font: 400 21px 'Open Sans', sans-serif; }

#jmle #masthead tr th {  }

#jmle #masthead tr td {  }

/* ---------------- Footer ---------------- */

#jmle #footer,
#jmle #footer #bepress a {
	height: 83px;
	background-color: #11225d;
}

#jmle #footer p,
#jmle #footer p a  {
	font: normal 12px/2 'Open Sans', sans-serif;
	color: #fff;
	text-decoration: none;
}

#jmle #footer p:first-of-type { padding-top: 18px; }

#jmle #footer p a:hover,
#jmle #footer p a:active,
#jmle #footer p a:focus {
	text-decoration: underline;
}

/* ---------------- Miscellaneous fixes ---------------- */

#jmle p.justify-text,
#jmle li.justify-text {
text-align: justify;

	/* --- Advanced Search --- */

.legacy #jmle #wrapper {	background-image: none; }

	/* Remove gap under search pages for full-width footers */

.legacy #jmle #wrapper:after { content: none; }

/* ---------------- Mobile ---------------- */

.mbl #jmle #header,
.mbl #jmle #header a img,
.mbl #jmle #navigation {
	width: 100% !important;
}

.mbl #jmle #header #logo_image { display: none; }

	/* fixes invisible space above header */

header#mobile-nav { 
    font-size: 0;
    line-height: 0;
}

  /* --- Standardizing padding for navlist links --- */

.mbl #jmle #sidebar ul#navlist li a { padding: 6px 0px; }

.mbl #jmle #sidebar ul#navlist li { padding: 0px; }