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

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

	/* --- 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: #fff url(../assets/md5images/ab383950d82099e49797d9b1afd3301b.gif) repeat-x left top;
}

#jss { background: url(../assets/md5images/9990f94656bedb0c2b49cb256d492618.gif) repeat-x left bottom; }

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

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

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

	/* --- Logo --- */

#jss #logo_image { display: none; }

#jss #header a#banner_link:focus img {
    outline: 2px dotted #fff;
}

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

#jss #navigation { margin-bottom: 7px; }

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

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

#jss #navigation #tabs,
#jss #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%;
}

#jss #navigation #tabs a {
	font: normal 12px Arial, "Helvetica Neue", Helvetica, sans-serif;
	display: block;
	line-height: 28px;
	color: #fff;
	background-color: transparent;
	padding: 0 11px;
	margin: 0;
	border: 0;
}

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

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

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

#jss #navigation #tabs li:first-child a { padding-left: 15px; }


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

#jss #sidebar {
	border-top: 21px solid #fff;
	padding-top: 16px;
}

#jss #sidebar a:link,
#jss #sidebar a:visited {
	font: normal 14px Arial, "Helvetica Neue", Helvetica, sans-serif;
	color: #fff;
	text-decoration: none;
}

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

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

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

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

#jss #sidebar ul#navlist li a {
	color: #fff;
	font-weight: normal;
	background-color: #657780;
	border-bottom: 1px solid #fff;
}

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

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

#jss .sidebar-search h2 { 
	font: bold 14px Arial, "Helvetica Neue", Helvetica, sans-serif;
	text-indent: 20px;
	background: transparent;
}

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

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

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

#jss #sidebar a:focus img { outline: 2px dotted #fff; }

#jss #issn p {
	letter-spacing: 0.2em;
	text-align: left;
    text-indent: 15px;
}

#jss #sidebar-images p {
	font-size: 13px;
    margin-left: 7px;
}

/* --- Social Media Icons --- */

#jss #sidebar #connect { text-align: left; }

#jss #sidebar #connect p {
	font-size: 13px;
	margin-top: 0;
}

#jss ul.social { padding-top: 2px; }

#jss ul.social li {
    display: inline-block;
}
 
#jss ul.social li a {
    margin: 0 5px; /* removes 15px margin on all links in #sidebar. Adjust second number to adjust spacing between icons */
}
 
#jss ul.social li:first-child a {
    margin-left: 15px; /* horizontally aligns first icon with other sidebar content */
}
 
#jss ul.social li a:focus img {
    outline: 2px dotted #fff
}

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

#jss #wrapper { margin-bottom: 23px; }

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

#sub { margin-top: 22px; }

	/* --- Breadcrumbs --- */

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

#jss #main.text div.crumbs a {
	text-decoration: none;
	color: #466069;
}

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

	/* --- Headers --- */

#jss #main.text .article-list h1,    /* Current Issue - without cover art */
#alpha h1, #series-home h1 {   /* Journals with cover art */
	font: normal 22px Georgia, Times, "Times New Roman", serif; /* Current Issue */
}

#jss .article-list h2,   /* Article, or other doctype */
#coverart #alpha .article-list h2 {   /* Journals with cover art */
	font: normal 21px Georgia, Times, "Times New Roman", serif;
	background: transparent;   /* removes background and adds a line under doctype header */
	border-bottom: 1px solid #e2e2e2;
	padding-bottom: 0;
	margin-bottom: 25px;
}

#jss #masthead caption,
#jss #masthead h4 {
	font: normal 21px Georgia, Times, "Times New Roman", serif;
	color: #000;
	text-align: left;
	padding: 15px 0;
}

	/* --- Links --- */

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

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

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

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

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

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

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

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

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

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

#jss #coverart #beta .coverart-box h4 {
    font: normal 18px Georgia, Times, "Times New Roman", serif; /* default is 18px */
    color: #000;
    text-align: left;
    text-transform: none;
    border-bottom: 1px solid #e2e2e2;
}

#jss #coverart #beta .coverart-box {
	font: normal 12px Arial, "Helvetica Neue", Helvetica, sans-serif;
	border: 0;
}

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

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

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

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

#jss #masthead h2.masthead { font: 400 21px Georgia, Times, "Times New Roman", serif; }

#jss #masthead tr th {  }

#jss #masthead tr td {  }

	/* Article pages series */

#jss #alpha .element p,
#jss #custom-fields .element p,
#jss #alpha #recommended_citation p,
#jss #alpha #attach_additional_files .files span {
	font-size: 14px;
}

#jss #beta_7-3 #beta-disciplines.aside p {
	font-size: 14px !important;
}

#jss #alpha .element h4,
#jss #custom-fields .element h4,
#jss #beta_7-3 h4,
#jss #alpha #attach_additional_files .related strong {
	font-size: 15px !important;
}
#jss #alpha #title.element p {
	font-size: 22px;
}

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

#jss #footer,
#jss #footer #bepress a {
	height: 86px;
	background-color: #ededed;
}

#bepress a:focus { outline: 2px dotted #466069; }

#jss #footer p,
#jss #footer p a  {
	font: normal 12px/1.8 Arial, "Helvetica Neue", Helvetica, sans-serif;
	color: #484848;
	text-decoration: none;
}

#jss #footer p:first-of-type { padding-top: 21px; }

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

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

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

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

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

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

#jss #main.text a:link span.icon-question-sign {
	text-decoration: none;
}

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

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

.mbl #jss #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 #jss #sidebar ul#navlist li a { padding: 6px 0px; }

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