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

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

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

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

body {
	font: normal 14px/1.5 Arial, "Helvetica Neue", Helvetica, sans-serif;  /* should be medium except when fitting into a fixed container */
	background: #fff url(../assets/md5images/2dc27f526878f15f50dc000e81af3548.png) repeat-x left top;
}

#jfs { background: url(../assets/md5images/d45472b3cb73e3d30b0dd00d7130009c.gif) repeat-x left bottom; }

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

#jfs #header {
	position: relative;  /* needed for logo positioning */
	height: auto !important; /* !important overrides mbl styling */
	background-color: transparent;
}

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

	/* --- Logo --- */

#jfs #logo_image_png { display: none; }

#jfs #logo_image_svg {
	position: absolute !important; /* !important overrides mbl styling */
	top: 24.285714285714286%; /* 34/140 */
	left: 2.551020408163265%;  /* 25/980 */
	width: 54.285714285714286% !important;  /* 532 / 980 */
	height: 51.428571428571429% !important; /* 72/140 */
}

#jfs #header a#banner_link:focus img,
#jfs #header a#logo_link:focus img {
    outline: 2px dotted #104e7b;
}

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

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

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

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

#jfs #navigation #tabs a {
	font: bold 13px Arial, "Helvetica Neue", Helvetica, sans-serif;
	text-transform: uppercase;
	display: block;
	line-height: 40px;
	color: #fff;
	background-color: transparent;
	padding: 0 11px;
	margin: 0;
	border: 0;
}

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

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

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

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


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

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

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

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

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

#jfs #sidebar ul#navlist,
#jfs #sidebar ul#navlist li:first-child a {
	border-top: none; /* border added by ir-custom.css by default */
}

#jfs #sidebar ul#navlist li a {
	color: #fff;
	transition: background 0.3s ease;
	font-weight: normal;
	background-color: #582c83;
	border-bottom: none;
}

#jfs #sidebar ul#navlist li a:active,
#jfs #sidebar ul#navlist li a:hover,
#jfs #sidebar ul#navlist li a:focus {
	color: #104e7b;
	background-color: #fff;
}

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

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

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

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

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

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

#jfs #sidebar a:focus img { outline: 2px dotted #104e7b; }

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

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

#sub { margin-top: 22px; }

	/* --- Breadcrumbs --- */

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

#jfs #main.text div.crumbs a {
	text-decoration: none;
	color: #104e7b;
}

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

	/* --- Headers --- */

#jfs #main.text .article-list h1,    /* Current Issue - without cover art */
#alpha h1, #series-home h1 {   /* Journals with cover art */
	font: 600 22px "Montserrat", sans-serif; /* Current Issue */
}

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

#jfs #masthead caption,
#jfs #masthead h4 {
	font: 600 21px "Montserrat", sans-serif;
	color: #000;
	text-align: left;
	padding: 15px 0;
}

	/* --- Links --- */

#jfs #main.text a:link,
#jfs #main.text a:visited {
	text-decoration: underline;
	color: #104e7b;
}

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

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

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

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

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

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

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

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

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

#jfs #coverart #beta .coverart-box h4 {
    font: 600 18px "Montserrat", sans-serif; /* default is 18px */
    color: #000;
    text-align: left;
    text-transform: none;
    border-bottom: 1px solid #ddd;
}

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

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

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

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

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

#jfs #masthead h2.masthead { 600: 400 21px "Montserrat", sans-serif; }

#jfs #masthead tr th {  }

#jfs #masthead tr td {  }

	/* Article pages series */

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

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

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

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

#jfs #footer,
#jfs #footer #bepress a {
	height: 84px;
	background-color: #000;
}

#jfs #bepress a {
	background-image: url(../assets/md5images/679594240bfa0eb9493776f7d68fa330.svg);
    background-size: 210px;
    background-position: center;
}

#jfs #bepress a:focus,
#jfs #footer a#footer-logo-link:focus img {
	outline: 2px dotted #104e7b;
}

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

#jfs  #footer a.secondary-link { font-size: 11px; }

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

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

/* Additional footer logo */
 
#jfs #footer { position: relative; }
 
a#footer-logo-link { margin: 0; }
 
#footerlogo {
    position: absolute;
    top: 0;
    right: 0;
}

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

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

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

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

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

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

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

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

.mbl #jfs #logo_image_png { display: none; }

.mbl #jfs #logo_image_svg {
	position: absolute !important; /* !important overrides mbl styling */
	top: 24.285714285714286%; /* 34/140 */
	left: 2.551020408163265%;  /* 25/980 */
	width: 54.285714285714286% !important;  /* 532 / 980 */
	height: 51.428571428571429% !important; /* 72/140 */
}

	/* fixes invisible space above header */

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

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

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

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

.mbl #jfs #sidebar img { max-width: 100% !important; }

.mbl #footer-logo-link { display: none; } /* logos aren't hidden by mbl footer */