/* -----------------------------------------------
bepress IR local stylesheet.
Author:   Jami Wardlow
Version:  Apr 2019
PLEASE SAVE THIS FILE LOCALLY!
----------------------------------------------- */

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

@import url('https://fonts.googleapis.com/css?family=Lato:400,700');

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

html { background-color: #0068a0; }

body {
	font: normal 14px/1.5 'Lato', sans-serif;
	background-image: url(assets/md5images/c843aabb34428d6bac870e316c87aae0.gif), url(assets/md5images/c4ce8adc212acdf3aa08d778fb986c80.gif);
	background-repeat: repeat-x;
	background-position: left top, left bottom;
}

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

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

#hsrc #banner_image {
	display: block; /* removes descender of inline element */
	width: 980px; /* not necessary if image is sized correctly */
	height: auto !important;  /* avoids warping improperly sized header image / SUP-19994 */
}

	/* --- Logo --- */

#hsrc #logo_image {
	position: absolute !important; /* !important overrides mbl styling */
	top: 0;
	left: 0;
	width: 32.44898% !important;  /* 318 / 980 */
	height: auto !important; /* !important avoids DC assigning incorrect height to logo image */
}

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

#hsrc #navigation,
#hsrc #navigation #tabs {
	height: 43px;
	overflow: hidden; /* have seen issues with tabs extending below nav container */
}

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

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

#hsrc #navigation #tabs a {
	font: bold 17px 'Lato', sans-serif;
	display: block;
	/*width: auto !important; fixes "my account" not fitting in container on page load (does it tho?)*/
	height: 43px;
	line-height: 43px;
	color: #fff;
	transition: 0.3s ease-in-out;
	background-color: transparent;
	padding: 0 18px;
	margin: 0;
	border: 0;
	border-right: 1px solid #205675;
}

#hsrc #navigation #tabs a:hover,
#hsrc #navigation #tabs a:active,
#hsrc #navigation #tabs a:focus {
	color: #000;
	background-color: #fff;
	text-decoration: underline;
}

#hsrc #navigation #tabs #tabone a { padding-left: 15px; } /* switch for right-aligned nav tabs */

#hsrc #navigation #tabs li:last-child a {
    border-right: none;
}

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

#hsrc #sidebar h2 {
	font: bold 18px Verdana, Geneva, sans-serif;
	text-transform: uppercase;
	color: #003c5a;
	text-indent: 0;
	background: transparent;
	width: 210px;
	padding: 0 0 5px;
	border-bottom: 1px solid #dedede;
	margin: 0 0 0 15px;
}

#hsrc #sidebar ul { padding-top: 0; }

#hsrc #sidebar ul li { padding-bottom: 3px; }

#hsrc #sidebar a {
	font: bold 14px 'Lato', sans-serif;
	color: #0073aa;
	text-decoration: none;
	border-bottom: 1px solid #dedede;
	width: 210px;
	padding: 6px 0;
}

#hsrc #sidebar p.advanced a,
#hsrc #sidebar ul#side-notify a { border: 0; }

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

#hsrc #sidebar #sidebar-search label {
	font: normal 13px 'Lato', sans-serif;
	color: #003c5a;
}

#hsrc #sidebar #sidebar-search {
	margin-top: 8px;
	padding-left: 15px;
}

#hsrc #sidebar #sidebar-search span.border { background: transparent; }

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

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

/* this has been creating a gap on top of full-width homepage images. trying to figure out if it's actually necessary for any reason */
/* #hsrc #content { padding-top: 16px; } */

	/* Sticky Footer */

#hsrc #content { /* calculates 100% viewport height - (total heights of header, navigation and footer) */
  min-height: calc(100vh - 255px);
}

	/* --- Breadcrumbs --- */

#hsrc #main.text div.crumbs a:link,
#hsrc #main.text div.crumbs a:visited {
	text-decoration: none;
	color: #0073aa;
}

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

/* Homepage content carousel adjustments */

#hsrc #dcn-home .newCarousel { 
	border: 1px solid #e5e5e5;
	margin-top: 16px;
}

#hsrc #dcn-home .newCarousel .news-slider .text-content {
	width: 35%;
}

#hsrc #dcn-home .newCarousel .news-slider .text-content h2 {
	font-size: 16px;
}

#hsrc #dcn-home .newCarousel .news-slider .text-content p {
	font-size: 14px;
}

#hsrc #dcn-home > #homepage-intro { margin: 15px 0; }

#hsrc #dcn-home #cover-browse #cover-browse-left {
	width: 330px;
	float: left;
}
	
#hsrc #dcn-home #cover-browse #cover-browse-right {
	width: 300px;
	float: left;
}

 /* (is this even a thing anymore?) adds space under full-width main-content image 
#hsrc #home-page-banner { margin-bottom: 16px; }*/

	/* --- Headers --- */

#hsrc h2 { font: bold 21px Verdana, Geneva, sans-serif; }

#hsrc #dcn-home > h2 {
    padding: 26px 0 2px;
    border-top: 7px solid #c1a780;
}

h3 { margin: 0; }

/* FF 55 takes parent element's color a text-deoration-color (black, usually) 
#dcn-home #cover-browse h3 { color: #0073aa; }*/

#hsrc #dcn-home #cover-browse h3 { padding: 2px 0 2px 16px; }

#hsrc #dcn-home #cover-browse h3 a {
	font: bold 14px/1.6 'Lato', sans-serif;
	text-decoration: none;
}

#hsrc #dcn-home #cover-browse h3 a:hover,
#hsrc #dcn-home #cover-browse h3 a:focus,
#hsrc #dcn-home #cover-browse h3 a:active {
	text-decoration: underline;
}

#hsrc #dcn-home p { font-size: 16px; }

	/* --- Links --- */

#hsrc #main.text a:link,
#hsrc #main.text a:visited {
	color: #0073aa; /* declared for #network-icon text */
}

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

	/* PotD / Top DL widgets */

#hsrc #dcn-home .box.aag h2,
#hsrc #dcn-home .box.potd h2 {
	font: bold 16px Verdana, Geneva, sans-serif;
	color: #000;
	width: 267px;
	border-bottom: 1px solid #dfd6c1;
	margin: 0;
}

#hsrc #main.text .box a:link,
#hsrc #main.text .box a:visited {
	background: none;
	font: bold 13px 'Lato', sans-serif;
	text-decoration: none;
	border-bottom: 1px solid #d3d3d3;
}

#hsrc #main.text .box a:hover,
#hsrc #main.text .box a:active,
#hsrc #main.text .box a:focus {
	text-decoration: underline;
}

	/* article-level text // default values 12px/13px */

#alpha .element p, #custom-fields .element p { font-size: 14px; }

#alpha .element h4, #custom-fields .element h4 { font-size: 15px; }

#hsrc .discipline-switch {
	font-size: 13px;
	height: 32px;
}

#hsrc .discipline-browser dt,
#hsrc .new-discipline dt {
	font-size: 16px;
	line-height: 1.6em;
}

#hsrc .discipline-browser dd,
#hsrc .new-discipline dd,
#hsrc .entry p,
#hsrc table#discipline-authors,
#hsrc #discipline-authors th,
#hsrc td.auth a,
#hsrc #content .subnav li,
#hsrc td.rel a {
	font-size: 14px;
	line-height: 1.6em;
}

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

#hsrc #footer,
#hsrc #bepress a {
	height: 102px;
	background-color: #0068a0;
}

#hsrc #footer p,
#hsrc #footer p a {
	font: normal 13px/2 'Lato', sans-serif;
	color: #fff;
	text-decoration: none;
}

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

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

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

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

.legacy #hsrc #wrapper {	background-image: none; }

	/* --- Browse Authors accessibility fix (CSFR-2648) --- */

#hsrc #main.text .authorbrowser p.letters a:hover,
#hsrc #main.text .authorbrowser p.letters a:focus {
   background: url(/assets/azMe.jpg) bottom center no-repeat;
   color: #fff;
}

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

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

.mbl #hsrc #header #logo_image {
	position: absolute !important; /* !important overrides mbl styling */
	top: 0;
	left: 0;
	width: 32.44898% !important;  /* 318 / 980 */
	height: auto !important; /* !important avoides DC assigning incorrect height to logo image */
}

	/* fixes invisible space above header */

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

	/* fixes bullet underline for Browse Research and Scholarship links */

.mbl #main #cover-browse h3 { text-decoration: none; }

	/* stacks headings and spans in .box */
	
.mbl #dcn-home .box.aag span,
.mbl #dcn-home .box.potd span {
    display: block;
}

.mbl #hsrc #dcn-home .box.aag h2,
.mbl #hsrc #dcn-home .box.potd h2 {
	width: 100%;
}

 /*
 	Display "Yes" instead of "1" beneath 
	"Peer Reviewed" and "Open Access" field on all structures 
	with "Peer Reviewed" set to display
*/
	
#hsrc #peer_reviewed p {display: none;}
#hsrc #peer_reviewed {padding-left: 5px; text-indent: -4px;}
#hsrc div#peer_reviewed:after {content: "Yes";}

#hsrc #open_access p {display: none;}
#hsrc #open_access {padding-left: 5px; text-indent: -4px;}
#hsrc div#open_access:after {content: "Yes";} 