/* -----------------------------------------------
Journal local stylesheet.
Author:   Jami Wardlow
Version:  Feb 2021
PLEASE SAVE THIS FILE LOCALLY!
----------------------------------------------- */

/* ---------------- Meta Elements ---------------- */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@700&display=swap');

	/* --- Meta styles and background --- */

body {
	font: normal 12px/1.5 Arial, "Helvetica Neue", Helvetica, sans-serif;  /* should be medium except when fitting into a fixed container */
	background: #bebebe url(../assets/md5images/a44127b68ba38e5e0fa40cf7f7e77746.gif) repeat-x left top;
}

#sjteil { background: url(../assets/md5images/863af414d269caa64d85d8d31aa162e7.gif) repeat-x left bottom; }

/* ---------------- Header ---------------- */

#sjteil #header {
	position: relative;  /* needed for logo positioning */
	height: auto !important; /* !important overrides mbl styling */
}

#sjteil #banner_image {
	display: block;
	width: 980px !important;
	height: auto !important;  /* avoids warping improperly sized header image / SUP-19994 */
}

	/* --- Logo --- */

#sjteil #logo_image {
	position: absolute !important; /* !important overrides mbl styling */
	top: 0;
	right: 0;
	width: 24.4897959183% !important;  /* 240 / 980 */
	height: auto !important; /* !important avoids DC assigning incorrect height to logo image */
}

#sjteil #header a#banner_link:focus img,
#sjteil #header a#logo_link:focus img {
    outline: 2px dotted #fff;
}

/* ---------------- Navigation ---------------- */

#sjteil #navigation { margin-bottom: 7px; }

#sjteil #navigation,
#sjteil #navigation #tabs {
	height: 36px;
	/* overflow: hidden; have seen issues with tabs extending below nav container */
	white-space: nowrap;
}

#sjteil #navigation #tabs,
#sjteil #navigation #tabs ul,
#sjteil #navigation #tabs ul li {
	padding: 0;
	margin: 0;
}

#sjteil #navigation #tabs,
#sjteil #navigation #tabs ul {
	display: flex;
	justify-content: flex-start;
	width: 100%;
}

#sjteil #navigation #tabs a {
	font: normal 12px Arial, "Helvetica Neue", Helvetica, sans-serif;
	display: block;
	/*width: auto !important; fixes "my account" not fitting in container on page load (does it tho?)*/
	line-height: 36px;
	color: #fff;
	background-color: transparent;
	padding: 0 11px;
	margin: 0;
	border: 0;
}

#sjteil #navigation #tabs a:hover,
#sjteil #navigation #tabs a:active,
#sjteil #navigation #tabs a:focus {
	text-decoration: underline;
}

#sjteil #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 */

#sjteil #navigation #tabs li:last-child a { padding-right: 25px; }   /* hidden but expands to fit 240px #tabs for IE + FF */

#sjteil #navigation #tabs li:first-child a { padding-left: 15px; }


/* ---------------- Sidebar ---------------- */

#sjteil #sidebar { padding-top: 16px; }

#sjteil #sidebar a:link,
#sjteil #sidebar a:visited {
	font: normal 12px Arial, "Helvetica Neue", Helvetica, sans-serif;
	color: #fff;
	text-decoration: none;
}

#sjteil #sidebar a:hover,
#sjteil #sidebar a:active,
#sjteil #sidebar a:focus {
	text-decoration: underline;
}

#sjteil #sidebar ul.sb-custom-journal { width: 88%; }

	/* --- Highlighted sidebar links --- */

#sjteil #sidebar ul#navlist {
	border-top: none; /* border added by ir-custom.css by default */
}

#sjteil #sidebar ul#navlist li:first-child a {
	border-top: 1px solid #0e9870; /* border is removed if #navlist has no content */
}

#sjteil #sidebar ul#navlist li a {
	color: #fff;
	font-weight: normal;
	background-color: #0d8563;
	border-bottom: 1px solid #0e9870;
}

	/* --- Sidebar text --- */

#sjteil #sidebar .sidebar-search label,
#sjteil .sidebar-search h2,
#sjteil #sidebar #issn p {
	color: #fff; /* Search, "Enter search terms," ISSN" */
	border: 0;
}

#sjteil .sidebar-search h2 { 
	font: bold 12px Arial, "Helvetica Neue", Helvetica, sans-serif;
	text-indent: 20px;
	background: transparent;
}

#sjteil #sidebar #browse,
#sjteil #sidebar #sidebar-search { padding-left: 15px; } /* aligning sidebar search with rest of sidebar */

#sjteil #sidebar p.advanced + div { display: none; }

.searchbutton { cursor: pointer; } /* best practice, should move to ir-layout.css */

#sjteil #sidebar a:focus img { outline: 2px dotted #0b7859; }

/* ---------------- Main Content ---------------- */

#sjteil #content { 
	min-height: calc(100vh - 291px); /* sticky footer: calculates 100% viewport height - (total heights of header, navigation and footer) */
	background-color: #fff;
}

#sub { margin-top: 22px; }

	/* --- Breadcrumbs --- */

#sjteil #main.text div.crumbs p { margin-bottom: 0; }

#sjteil #main.text div.crumbs a {
	text-decoration: none;
	color: #0b7859;
}

#sjteil #main.text div.crumbs a:hover,
#sjteil #main.text div.crumbs a:active,
#sjteil #main.text div.crumbs a:focus {
	text-decoration: underline;
	color: #000;
}

	/* --- Headers --- */

#sjteil #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 */
	text-transform: uppercase;
}

#sjteil .article-list h2,   /* Article, or other doctype */
#coverart #alpha .article-list h2 {   /* Journals with cover art */
	font: normal 21px 'Open Sans', sans-serif;
	text-transform: uppercase;
	background: transparent;   /* removes background and adds a line under doctype header */
	border-bottom: 1px solid #bfbfbf;
	padding-bottom: 0;
	margin-bottom: 25px;
}

	/* --- Links --- */

#sjteil #main.text a:link,
#sjteil #main.text a:visited {
	text-decoration: underline;
	color: #0b7859;
}

#sjteil #main.text a:hover,
#sjteil #main.text a:active,
#sjteil #main.text a:focus {
	color: #000;
	text-decoration: underline;
}

#sjteil #main.text .article-list a:link,
#sjteil #main.text .article-list a:visited {
	text-decoration: none;
}

#sjteil #main.text .article-list a:hover,
#sjteil #main.text .article-list a:active,
#sjteil #main.text .article-list a:focus {
	color: #000;
	text-decoration: underline;
}

	/* --- PDF icons and article lists --- */

#sjteil #main.text div.doc { margin: 0 0 15px; }

/* testing replacing the below with what follows: 
#sjteil #main.text div.article-list .pdf { width: auto; } */

#sjteil div.article-list .pdf,
#sjteil div.article-list .native,
#sjteil div.article-list .external,
#sjteil div.article-list .none .openurl,
#sjteil div.article-list .none,
#sjteil div.article-list .metadata-only {
 width: auto;
}

#coverart #alpha .article-list p { margin-left: 48px; }

#sjteil #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 */

#sjteil #coverart #beta .coverart-box h4 {
    font: normal 18px 'Open Sans', sans-serif; /* default is 18px */
    text-transform: uppercase;
    color: #000;
    text-align: left;
    text-transform: none;
    border-bottom: 1px solid #bfbfbf;
}

#sjteil #coverart #beta .coverart-box {
	font: normal 12px Arial, "Helvetica Neue", Helvetica, sans-serif;
	border: 0;
}

#sjteil #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; } */

#sjteil #coverart #beta dl  { margin-left: 0; }

#sjteil #coverart #beta #coverart-editors dt {
	font-size: 12px;
	padding-top: 10px;
}

		/* Cover art disabled (not needed usually) */

#sjteil #masthead h2.masthead {
	font: 400 21px 'Open Sans', sans-serif;
	text-transform: uppercase;
}

#sjteil #masthead tr th {  }

#sjteil #masthead tr td {  }

/* ---------------- Footer ---------------- */

#sjteil #footer { border-top: 8px solid #bebebe; }

#sjteil #footer,
#sjteil #footer #bepress a {
	height: 76px;
	background-color: #000;
}

#bepress a:focus { outline: 2px dotted #fff; }

#sjteil #footer p,
#sjteil #footer p a  {
	font: normal 12px/2 Arial, "Helvetica Neue", Helvetica, sans-serif;
	color: #fff;
	text-decoration: none;
}

/* #footer p:first-of-type { padding-top: 25px; } */

#sjteil #footer p a:hover,
#sjteil #footer p a:active,
#sjteil #footer p a:focus {
	text-decoration: underline;
}

/* ---------------- Miscellaneous fixes ---------------- */

	/* --- Advanced Search --- */

/*.legacy #sjteil #wrapper { background-image: none; } (not needed?)

	/* Remove gap under search pages for full-width footer */

.legacy #sjteil #wrapper:after { content: none; }

/* ---------------- Mobile ---------------- */

.mbl #sjteil #header,
.mbl #sjteil #header a#banner_link img,
.mbl #sjteil #navigation {
	width: 100% !important;
}

.mbl #sjteil #header #logo_image {
	position: absolute !important; /* !important overrides mbl styling */
	top: 0;
	right: 0;
	width: 24.4897959183% !important;  /* 240 / 980 */
	height: auto !important; /* !important avoids DC assigning incorrect height to logo image */
}

	/* fixes invisible space above header */

header#mobile-nav { 
    font-size: 0;
    line-height: 0;
}

  /* --- Standardizing padding for navlist links --- */

.mbl #sjteil #sidebar ul#navlist li a { padding: 6px 0px; }

.mbl #sjteil #sidebar ul#navlist li { padding: 0px; }