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

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

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

html { background: #4474bd; }

body {
	font: normal 12px/1.5 Georgia, Times, "Times New Roman", serif;  /* should be medium except when fitting into a fixed container */
	background: #fff url(../assets/md5images/05e7ee4b4d9f79cfd4c32e5b1c8f9d77.gif) repeat-x left top;
}

#jchimp { background: url(../assets/md5images/65f64edec2cdb363e63d8b5b0328689a.gif) repeat-x left bottom; }

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

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

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

	/* --- Logo --- */

#jchimp #logo_image { display: none; }

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

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

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

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

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

#jchimp #navigation #tabs a {
	font: normal 14px Georgia, Times, "Times New Roman", serif;
	display: block;
	line-height: 44px;
	color: #fff;
	background-color: transparent;
	padding: 0 27px;
	margin: 0;
	border: 0;
}

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

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

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

#jchimp #sidebar {
	background: #fbf5de;
	margin-top: -22px;
	padding-top: 16px;
}

#jchimp #sidebar a:link,
#jchimp #sidebar a:visited {
	font: normal 12px Georgia, Times, "Times New Roman", serif;
	color: #0d3f62;
	text-decoration: none;
}

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

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

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

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

#jchimp #sidebar ul#navlist li a {
	color: #fff;
	transition: background 0.3s ease;
	font-weight: normal;
	background-color: #4676be;
	border-bottom: 1px solid #3767b0;
}

#jchimp #sidebar ul#navlist li a:active,
#jchimp #sidebar ul#navlist li a:hover,
#jchimp #sidebar ul#navlist li a:focus {
	color: #0d3f62;
	background-color: #fbf5de;
}

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

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

#jchimp .sidebar-search h2 { 
	font: bold 12px Georgia, Times, "Times New Roman", serif;
	text-indent: 20px;
	background: transparent;
}

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

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

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

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

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

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

#sub { margin-top: 22px; }

	/* --- Breadcrumbs --- */

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

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

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

	/* --- Headers --- */

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

#jchimp .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 #bfbfbf;
	padding-bottom: 0;
	margin-bottom: 25px;
}

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

	/* --- Links --- */

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

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

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

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

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

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

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

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

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

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

#jchimp #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 #bfbfbf;
}

#jchimp #coverart #beta .coverart-box {
	font: normal 12px Georgia, Times, "Times New Roman", serif;
	border: 0;
}

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

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

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

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

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

#jchimp #masthead tr th {  }

#jchimp #masthead tr td {  }

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

#jchimp #footer,
#jchimp #footer #bepress a {
	height: 79px;
	background-color: #4474bd;
}

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

#jchimp #footer p,
#jchimp #footer p a  {
	font: normal 12px/2 Georgia, Times, "Times New Roman", serif;
	color: #fff;
	text-decoration: none;
}

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

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

/* Additional footer logo */
 
#jchimp #footer { position: relative; }
 
a#footer-logo-link { margin: 0; }
 
#footerlogo {
    position: absolute;
    top: 0;
    right: 0;
 }
 
#jchimp #footer a#footer-logo-link:focus img {
    outline: 2px dotted #f9aa4b;
}

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

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

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

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

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

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

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

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

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

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