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

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

@import url('https://fonts.googleapis.com/css2?family=Fira+Sans&family=Fira+Sans+Condensed:wght@400;700&family=Lora:wght@400;700&display=swap');

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

body {
	font: normal 14px/1.5 'Fira Sans Condensed', sans-serif;  /* should be medium except when fitting into a fixed container */
	background: #fff url(assets/md5images/cf7a14e86a13f1ba6b58ad38e5aa2a80.gif) repeat-x left top;
}

#usawc { background: url(assets/md5images/97d79031e789fcd917fe98b32eb01627.gif) repeat-x left bottom; }

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

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

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

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

#usawc #header a#banner_link:focus img,
#usawc #header a#logo_link:focus img {
    outline: 1px dotted #fff;
}

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

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

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

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

#usawc #navigation #tabs a {
	font: normal 15px 'Fira Sans Condensed', sans-serif;
	display: block;
	/*width: auto !important; fixes "my account" not fitting in container on page load (does it tho?)*/
	height: 47px;
	line-height: 47px;
	color: #fff;
	background-color: transparent;
	padding: 0 22px;
	margin: 0;
	border: 0;
}

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

#usawc #navigation #tabs #tabfour a { padding-left: 32px; } /* switch for right-aligned nav tabs */

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

#usawc #sidebar h2 {
	font: bold 16px 'Fira Sans Condensed', sans-serif;
	color: #000;
	background: transparent;
	padding: 0;
	margin: 0;
	border: none;
}

#usawc #sidebar a {
	font: normal 13px 'Lora', serif;
	color: #002e64;
	text-decoration: none;
}

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

#usawc #sidebar #sidebar-search label {
	font: normal 13px 'Lora', serif;
	color: #000;
}

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

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

.searchbutton { cursor: pointer; } /* best practice, should move to ir-layout.css 
*/
/* 10/2/23 Aluca- tweaking social media icons alignment */

#usawc #sidebar #follow li {
	display: inline-block;
}

#usawc #sidebar #follow img {
	border-radius: 4px;
}
#usawc #sidebar #follow img:hover {
	box-shadow: 2px 2px 3px #677174;
}

/* ---------------- 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 */
/* #usawc #content { padding-top: 16px; } */

	/* Sticky Footer */

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

#usawc #main.text div.crumbs a:link,
#usawc #main.text div.crumbs a:visited {
	text-decoration: none;
	color: #002e64;
}

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

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

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

	/* --- Headers --- */

#usawc #dcn-home > h2 {
	font: bold 24px 'Fira Sans Condensed', sans-serif;
	padding-top: 20px;
}

h3 {
	margin: 0;
	text-decoration: underline;
}

/* FF, IE, Chrome take parent element's color as text-decoration-color (black, usually) */
#dcn-home #cover-browse h3 { color: #002e64; }

#usawc #dcn-home #cover-browse h3 a {
	font: 400 17px/1.6 'Fira Sans', sans-serif;
	text-decoration: none;
}

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

	/* --- Links --- */

#usawc #main.text a:link,
#usawc #main.text a:visited {
	color: #002e64; /* declared for #network-icon text */
}

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

	/* PotD / Top DL widgets */

#usawc #dcn-home .box.aag h2,
#usawc #dcn-home .box.potd h2 {
	font: bold 18px 'Fira Sans Condensed', sans-serif;
	width: 267px;
	border-bottom: 1px solid #e4e4e4;
	margin: 0;
}

#usawc #main.text .box a:link,
#usawc #main.text .box a:visited {
	background: none;
	font: bold 13px 'Lora', serif;
	text-decoration: none;
	border-bottom: 1px solid #e4e4e4;
}

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

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

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

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

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

#usawc #footer,
#usawc #bepress a {
	height: 89px;
	background-color: #000;
}

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

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

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

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

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

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

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

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

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



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

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

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

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

.mbl #usawc #header #logo_image {
	position: absolute !important; /* !important overrides mbl styling */
	top: 0;
	left: 0;
	width: 18.571429% !important;  /* 182 / 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 #usawc #dcn-home .box.aag h2,
.mbl #usawc #dcn-home .box.potd h2 {
	width: 100%;
}
	
.mbl #dcn-home .box.aag span,
.mbl #dcn-home .box.potd span {
    display: block;
}