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

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

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

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

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

#jour_mlr { background: url(../assets/md5images/754feb95ab6e9c434f1bab42601d1cb4.gif) repeat-x left bottom; }

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

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

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

#jour_mlr #logo_image { display: none; }

#jour_mlr #header a#banner_link:focus img {
    outline: 1px dotted #676767;
}

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

#jour_mlr #navigation,
#jour_mlr #navigation #tabs {
	height: 51px;
	/* overflow: hidden; have seen issues with tabs extending below nav container */
	white-space: nowrap;
}

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

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

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

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

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

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


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

#jour_mlr #sidebar {
	margin: 32px 0;
	padding-top: 16px;
	background: #f0f0f0;
}

#jour_mlr #sidebar a:link,
#jour_mlr #sidebar a:visited {
	font: normal 12px 'Lato', sans-serif;
	color: #676767;
	text-decoration: none;
}

#jour_mlr #sidebar a:hover,
#jour_mlr #sidebar a:active,
#jour_mlr #sidebar a:focus {
	color: #000;
	text-decoration: underline;
}

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

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

#jour_mlr #sidebar ul#navlist li:first-child a {
	border-top: 1px solid #f76801; /* border is removed if #navlist has no content */
}

#jour_mlr #sidebar ul#navlist li a {
	color: #676767;
	font-weight: normal;
	background-color: #f0f0f0;
	border-bottom: 1px solid #f76801;
}

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

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

#jour_mlr .sidebar-search h2 { 
	background: #f0f0f0;
	font: bold 12px 'Open Sans', sans-serif;
	text-transform: uppercase;
	text-indent: 20px;	
}

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

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

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

#jour_mlr #sidebar-images a:focus img { outline: 1px dotted #f76801 }

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

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

#sub { margin-top: 22px; }

	/* --- Breadcrumbs --- */

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

#jour_mlr #main.text div.crumbs a {
	text-decoration: none;
	color: #676767;
}

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

	/* --- Headers --- */

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

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

	/* --- Links --- */

#jour_mlr #main.text a:link,
#jour_mlr #main.text a:visited {
	text-decoration: underline;
	color: #676767;
}

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

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

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

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

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

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

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

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

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

#jour_mlr #coverart #beta .coverart-box h4 {
    font: 600 18px 'Open Sans', sans-serif; /* default is 18px */
    text-transform: uppercase;
    color: #000;
    text-align: left;
    text-transform: none;
    border-bottom: 1px solid #bfbfbf;
}

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

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

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

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

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

#jour_mlr #masthead h2.masthead { 
	font: 600 21px 'Open Sans', sans-serif;
	text-transform: uppercase;
}

#jour_mlr #masthead tr th {  }

#jour_mlr #masthead tr td {  }

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

#jour_mlr #footer,
#jour_mlr #footer #bepress a {
	height: 83px;
	background-color: #222;
}

#bepress a:focus { outline: 1px dotted #f76801; }

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

/* #footer p:first-of-type { padding-top: 25px; } */

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

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

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

/*.legacy #jour_mlr #wrapper { background-image: none; } (not needed?)

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

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

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

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

#jour_mlr #logo_image { display: none; }

	/* fixes invisible space above header */

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

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

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

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

#jour_mlr #main.text h2 {font-size: 14px; }
#jour_mlr #main.text h1 {font-size: 20px; }

/*Make the Current issue h1 not be in all caps, 3/25/20, AJL*/
#jour_mlr #main.text #coverart #alpha h1 {
text-transform:none;}

#jour_mlr #main.text #toc h3.issue a{font-size: 14px; }