/* -----------------------------------------------
bepress IR local stylesheet.
Author: Jami Wardlow
Version: Jan 2023
PLEASE SAVE THIS FILE LOCALLY!
----------------------------------------------- */

/* ---------------- Meta Elements ---------------- */

@import url('https://fonts.googleapis.com/css2?family=Crimson+Text&family=Open+Sans:wght@400;700&display=swap');

	/* --- Meta styles and background --- */

body {
	font: normal 13px/1.5 'Open Sans', sans-serif;  /* should be medium except when fitting into a fixed container */
	background: #fff url(assets/md5images/d9417f0794e3b93114daf348fd5ac5f1.gif) repeat-x left top;
}

#molloy { background: url(assets/md5images/38bd4d0cab278a5ee689330cf2f832ef.gif) repeat-x left bottom; }

/* ---------------- Header ---------------- */

#molloy #header {
	position: relative;  /* needed for logo positioning */
	height: auto !important; /* !important overrides mbl styling */
	margin-bottom: 72px;
}

#molloy #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 */
}

#molloy #header a#banner_link:focus img {
    outline: 2px dotted #8b2935;
}

/* ---------------- Navigation ---------------- */

#molloy #navigation,
#molloy #navigation #tabs {
	height: 118px;
	/*overflow: hidden; have seen issues with tabs extending below nav container */
	white-space: nowrap;
}

#molloy #navigation #tabs,
#molloy #navigation #tabs ul,
#molloy #navigation #tabs ul li {
	padding: 0;
	margin: 0;
}

#molloy #navigation #tabs,
#molloy #navigation #tabs ul {
	display: flex;
	justify-content: flex-start; /* "flex-start" for left-aligned tabs, change to "flex-end" for right-aligned tabs, "center" for centered */
	width: 100%;
}

#molloy #navigation #tabs a {
	font: bold 17px 'Open Sans', sans-serif;
	display: block;
	/*width: auto !important; fixes "my account" not fitting in container on page load (does it tho?)*/
	height: 28px;
	line-height: 28px;
	color: #fff;
	background-color: transparent;
	padding: 0 15px;
	margin: 46px 0;
	border: 0;
	border-right: 1px solid #fff;
}

#molloy #navigation #tabs a:focus {
	text-decoration: underline;
}

#molloy #navigation #tabs #tabone a { padding-left: 15px; } /* switch for right-aligned nav tabs */

#molloy #navigation #tabs li:last-child a,
#molloy #navigation #tabs li:first-child a {
    border-right: none;
}

#molloy #navigation #tabs #tabzero a:focus img {
	outline: 2px dotted #cc0033;
}

#molloy #navigation #tabs #tabzero {
	margin-right: 21%;
	padding: 0;
}

#molloy #navigation #tabs #tabzero a {
	padding: 0;
	margin: 0;
}

/* ---------------- Sidebar ---------------- */

#molloy #sidebar { padding-top: 10px; }

#molloy #sidebar h2 {
	font: normal 22px 'Crimson Text', serif;
	color: #363839;
	background: transparent;
	width: 228px;
	text-indent: 0;
	padding: 6px 0;
	margin: 0 0 0 15px;
	border: none;
	border-bottom: 1px solid #d6c173;
}

#molloy #sidebar a {
	font: normal 13px 'Open Sans', sans-serif;
	color: #8b2935;
	text-decoration: none;
}

#molloy #sidebar a:hover,
#molloy #sidebar a:active,
#molloy #sidebar a:focus {
	color: #000;
	text-decoration: underline;
}

#molloy #sidebar a:hover img,
#molloy #sidebar a:active img,
#molloy #sidebar a:focus img {
	outline: 2px dotted #8b2935;
}

#molloy #sidebar #sidebar-search label {
	font: normal 13px 'Open Sans', sans-serif;
	color: #363839;
}

#molloy #sidebar #sidebar-search {
	margin-top: 8px;
	padding-left: 15px;
}

#molloy #sidebar #sidebar-search span.border { background: transparent; }

#molloy #sidebar #sidebar-search input.searchbutton {
    font-size: 11px;
    background: #8d1b2c;
    color: #fff;
    border: none;
    line-height: 19px;
    text-align: right;
    vertical-align: top;
	cursor: pointer;
}

/* ---------------- 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 */
/* #molloy #content { padding-top: 16px; } */

	/* Sticky Footer */

#molloy #content { /* calculates 100% viewport height - (total heights of header, navigation and footer) */
	min-height: calc(100vh - 377px);
}
	/* --- Breadcrumbs --- */

#molloy #main.text div.crumbs a:link,
#molloy #main.text div.crumbs a:visited {
	text-decoration: none;
	color: #8b2935;
}

#molloy #main.text div.crumbs a:hover,
#molloy #main.text div.crumbs a:active,
#molloy #main.text div.crumbs a:focus {
	text-decoration: underline;
	color: #000;
}

#molloy #dcn-home > #homepage-intro { margin: 15px 0; }

 /* (is this even a thing anymore?) adds space under full-width main-content image 
#molloy #home-page-banner { margin-bottom: 16px; }*/

	/* --- Headers --- */

#molloy #dcn-home > h2 { font: normal 45px 'Crimson Text', serif; }

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: #8b2935; }

#molloy #dcn-home #cover-browse h3 a {
	font: 400 15px/1.6 'Open Sans', sans-serif;
	text-decoration: none;
}

#molloy #dcn-home #cover-browse h3 a:hover,
#molloy #dcn-home #cover-browse h3 a:focus,
#molloy #dcn-home #cover-browse h3 a:active {
	text-decoration: underline;
}

	/* --- Links --- */

#molloy #main.text a:link,
#molloy #main.text a:visited {
	color: #8b2935; /* declared for #network-icon text */
}

#molloy #main.text a:hover,
#molloy #main.text a:active,
#molloy #main.text a:focus {
	color: #000;
	text-decoration: underline;
}

	/* PotD / Top DL widgets */

#molloy #dcn-home .box.aag h2,
#molloy #dcn-home .box.potd h2 {
	font: normal 24px 'Crimson Text', serif;
	width: 267px;
	border-bottom: 1px solid #d6c173;
	margin: 0;
}

#molloy #main.text .box a:link,
#molloy #main.text .box a:visited {
	background: none;
	font: bold 13px 'Open Sans', sans-serif;
	text-decoration: none;
	border-bottom: 1px solid #d6c173;
}

#molloy #main.text .box a:hover,
#molloy #main.text .box a:active,
#molloy #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 ---------------- */

#molloy #footer,
#molloy #bepress a {
	height: 75px;
	background-color: #222;
}

#bepress a:focus { outline: 2px dotted #8b2935; }

#molloy #footer p,
#molloy #footer p a {
	font: normal 12px/2 'Open Sans', sans-serif;
	color: #fff;
	text-decoration: none;
}

/* #molloy #footer p:first-of-type { padding-top: ##px; } */

#molloy #footer p a:hover,
#molloy #footer p a:active,
#molloy #footer p a:focus {
	text-decoration: underline;
}

/* ---------------- Miscellaneous fixes ---------------- */

	/* --- Advanced Search --- */

.legacy #molloy #wrapper {	background-image: none; }

	/* Remove gap under search pages for full-width footers */

.legacy #molloy #wrapper:after { content: none; }

	/* --- Browse Authors accessibility fix (CSFR-2684) --- */

#molloy #main.text .authorbrowser p.letters a:hover,
#molloy #main.text .authorbrowser p.letters a:focus {
   background: url(/assets/azMe.jpg) bottom center no-repeat;
   color: #fff;
}

/* ---------------- Mobile ---------------- */

.mbl #molloy #header,
.mbl #molloy #header a#banner_link img,
.mbl #molloy #navigation {
	width: 100% !important;
}

.mbl #molloy #navigation #tabs ul { display: block; }

.mbl #molloy #navigation #tabzero { margin: 0 !important; }

.mbl #molloy #navigation #tabzero a { opacity: 1 !important; }

	/* 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 #molloy #dcn-home .box.aag h2,
.mbl #molloy #dcn-home .box.potd h2 {
	width: 100%;
}
	
.mbl #dcn-home .box.aag span,
.mbl #dcn-home .box.potd span {
    display: block;
}