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

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

@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

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

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

#sword { background: url(assets/md5images/8a92e23252fca7f4217e122f1bd68732.png) repeat-x left bottom; }

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

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

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

#sword #logo_image {
	position: absolute !important; /* !important overrides mbl styling */
	top: 0;
	left: 0;
	width: 31.428571428% !important;  /* 240 / 980 */
	height: auto !important; /* !important avoids DC assigning incorrect height to logo image */
}
#sword #header a#banner_link:focus img,
#sword #header a#logo_link:focus img {
  outline: 1px dashed #000;
}
/* ---------------- Navigation ---------------- */

#sword #navigation { margin-bottom: 33px; }

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

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

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

#sword #navigation #tabs a {
	font: bold 14px 'Open Sans', sans-serif;
	text-transform: uppercase;
	display: block;
	/*width: auto !important; fixes "my account" not fitting in container on page load (does it tho?)*/
	height: 48px;
	line-height: 48px;
	color: #c1d9ec;
	background-color: transparent;
	padding: 0 15px;
	margin: 0;
	border: 0;
	border-right: 1px solid #4b7fa9;
}

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

#sword #navigation #tabs #tabone a { padding-left: 15px; }

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

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

#sword #sidebar { 
	background-color: #ebf1f5;
	border-radius: 12px;
	padding: 20px 0 120px;
    margin-bottom: 30px;
}

#sword #sidebar h2 {
	font: 600 20px 'Open Sans', sans-serif;
	color: #b51845;
	background: transparent;
	padding: 0;
	margin: 0;
	border: none;
}

#sword #sidebar a {
	font: normal 13px 'Open Sans', sans-serif;
	color: #005596;
	text-decoration: none;
}

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

#sword #sidebar #sidebar-search label {
	font: normal 13px 'Open Sans', sans-serif;
	color: #000;
}

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

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

	/* Sticky Footer */

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

#sword #main.text div.crumbs a:link,
#sword #main.text div.crumbs a:visited {
	text-decoration: none;
	color: #1d649e;
}

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

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

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

	/* --- Headers --- */

#sword #dcn-home > h2 { font: bold 23px 'Open Sans', sans-serif; }

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

/* FF, IE taking parent element's color as text-deoration-color */
#sword #dcn-home #cover-browse h3 { color: #1d649e; }

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

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

	/* --- Links --- */

#sword #main.text a:link,
#sword #main.text a:visited {
	color: #1d649e; /* declared for #network-icon text */
}

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

	/* PotD / Top DL widgets */

#sword #dcn-home .box.aag h2,
#sword #dcn-home .box.potd h2 {
	font: bold 16px 'Open Sans', sans-serif;
	width: 267px;
	border-bottom: 1px solid #d8e3eb;
	margin: 0;
}

#sword #main.text .box a:link,
#sword #main.text .box a:visited {
	background: none;
	font: bold 12px 'Open Sans', sans-serif;
	text-decoration: none;
	border-bottom: 1px solid #d8e3eb;
}

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

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

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

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

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

#sword #footer,
#sword #bepress a {
	height: 119px;
	background-color: transparent;
}

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

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

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

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

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

.legacy #sword #wrapper { background: transparent; }

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

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

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

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

#sword #cover-browse ul {margin-bottom:0px;}


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

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

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


#sword #cover-browse .box-top.right {
	float: left;
	height: auto;
	width: 330px;
	margin: 0 0 15px 0;
	padding: 0; }
#sword #cover-browse .box-top.left {
	float: left;
	height: auto;
	width: 310px;
	margin: 0 10px 15px 0;
	padding: 0 10px 0 0; }
	

#sword #cover-browse h4#indent
{padding-left: 15px;margin-top:0px;}

#sword #cover-browse h5#indent
{padding-left: 25px; font-weight:bold; color: #1d649e;}

#sword #cover-browse h5#indent2
{margin-top:-20px; padding-left: 25px; font-weight:bold; color: #1d649e;}