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

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

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

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

body {
	font: normal 12px/1.5 'Nunito', sans-serif;  /* should be medium except when fitting into a fixed container */
	background: #eee url(../assets/md5images/08a9e8072efc49cab64ca4d58a0804af.png) repeat-x left top;
}

#wh2ojournal { background: url(../assets/md5images/74a650646b7bb4a1f49f7b20d49f150e.gif) repeat-x left bottom; }

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

#wh2ojournal #header {
	position: relative;  /* needed for logo positioning */
	height: auto !important; /* !important overrides mbl styling */
	margin-bottom: 25px;
}

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

	/* --- Logo --- */

#wh2ojournal #logo_image { display: none; }

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

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

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

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

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

#wh2ojournal #navigation #tabs a {
	font: bold 15px 'Montserrat', 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: 51px;
	color: #011e5b;
	background-color: transparent;
	padding: 0 13px;
	margin: 0;
	border: 0;
}

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

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

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


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

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

#wh2ojournal #sidebar h2 {
	background: transparent;
	border: 0;
}

#wh2ojournal #sidebar a:link,
#wh2ojournal #sidebar a:visited {
	font: normal 12px 'Nunito', sans-serif;
	color: #104e7b;
	text-decoration: none;
}

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

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

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

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

#wh2ojournal #sidebar ul#navlist li a {
	color: #104e7b;
	font-weight: normal;
	background: transparent;
	border-bottom: 1px solid #eee;
}

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

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

#wh2ojournal .sidebar-search h2 { 
	font: bold 12px 'Nunito', sans-serif;
	text-indent: 20px;
	background: transparent;
}

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

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

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

#wh2ojournal #sidebar-images a:focus img { outline: 1px dotted #104e7b }

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

#wh2ojournal #wrapper { /* for full-length sidebar elements */
	background: url(../assets/md5images/bb71cf6a63b231fa9da76379b0fcf585.gif) repeat-y left top;
}

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

#sub {
	margin-top: 22px;
	border-color: #e7e7e7;
}

	/* --- Breadcrumbs --- */

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

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

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

	/* --- Headers --- */

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

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

	/* --- Links --- */

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#wh2ojournal #masthead h2.masthead { font: 400 21px 'Montserrat', sans-serif; }

#wh2ojournal #masthead tr th {  }

#wh2ojournal #masthead tr td {  }

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

#wh2ojournal #footer { border-top: 25px solid #eee; }

#wh2ojournal #footer,
#wh2ojournal #footer #bepress a {
	height: 84px;
	background-color: #011e5b;
}

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

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

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

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

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

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

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

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

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

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

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

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

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