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

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

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

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

body {
	font: normal 15px/1.5 'Libre Franklin', sans-serif;  /* should be medium except when fitting into a fixed container */
	background: #fff url(assets/md5images/66a0b5284e68fbbcf642d84e9a8be3db.png) no-repeat center top;
}

#colum,
#colum #footer {
	background: url(assets/md5images/c770c4e070d9028b3454e236081c3f9e.gif) repeat-x left bottom;
}

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

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

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

#colum #logo_image {
	position: absolute !important; /* !important overrides mbl styling */
	top: 16.666667%;
	right: 0;
	width: 25.102041% !important;  /* 246 / 980 */
	height: auto !important; /* !important avoids DC assigning incorrect height to logo image */
}

#colum #header a#banner_link:focus img,
#colum #header a#logo_link:focus img {
    outline: 2px dotted #00a3ba;
}

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

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

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

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

#colum #navigation #tabs a {
	font: bold 15px 'Libre Franklin', sans-serif;
	display: block;
	/*width: auto !important; fixes "my account" not fitting in container on page load (does it tho?)*/
	height: 41px;
	line-height: 41px;
	color: #fff;
	background-color: transparent;
	padding: 0 12px;
	margin: 0;
	border: 0;
}

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

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

#colum #sidebar {
	background: #efefef;
	margin-top: 27px;
	padding-top: 26px;
	margin-bottom: 20px;
}

#colum #sidebar h2 {
	font: bold 15px 'Libre Franklin', sans-serif;
	color: #000;
	background: transparent;
	padding: 0;
	margin: 0;
	border: none;
}

#colum #sidebar a {
	font: normal 14px 'Libre Franklin', sans-serif;
	color: #000;
	text-decoration: none;
}

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

#colum #sidebar #sidebar-search label {
	font: normal 14px 'Libre Franklin', sans-serif;
	color: #000;
}

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

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

	/* Sticky Footer */

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

#colum #main.text div.crumbs a:link,
#colum #main.text div.crumbs a:visited {
	text-decoration: none;
	color: #8031a7;
}

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

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

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

	/* --- Headers --- */

#colum #dcn-home > h2 { font: bold 21px 'Libre Franklin', sans-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: #8031a7; }

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

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

/* --- front page buttons  ---*/

#colum #cover-browse #browse-by-buttons {
    display: flex;
    justify-content: space-between;
}

#colum #cover-browse #browse-by-buttons .browse-container {
    margin: 6px 0;
}

#colum #cover-browse #browse-by-buttons .browse-link {
	background-color: #00a3ba;
	width: 158px;
	height: 158px;
	text-align: center;
	display: flex;
	flex-flow: column nowrap;
	justify-content: center;
}

/* Button icon settings */
#colum #cover-browse #browse-by-buttons .browse-link .material-icons {
	font-family: 'Material Icons';
	font-weight: normal;
	font-style: normal;
	color: #fff;
	white-space: nowrap;
	line-height: 1em;
	font-size: 50px;
}

/* Button text settings */
#colum #cover-browse #browse-by-buttons .browse-link h3 {
	font: bold 14px/1.4 'Libre Franklin', sans-serif;
	text-transform: uppercase;
	text-align: center;
	text-decoration: none;
	background-image: none;
	color: #000;
	padding-left: 0px;
	margin: 16px 0 0;
}

/* Hover/focus behavior for button outline */
#colum #cover-browse #browse-by-buttons a:hover > .browse-link,
#colum #cover-browse #browse-by-buttons a:focus > .browse-link,
#colum #cover-browse #browse-by-buttons a:active > .browse-link {
	outline: 5px solid #8031a7;
}

#colum #cover-browse #browse-by-buttons a {
	text-decoration: none;
}

	/* --- Links --- */

#colum #main.text a:link,
#colum #main.text a:visited {
	color: #8031a7; /* declared for #network-icon text */
}

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

	/* PotD / Top DL widgets */

#colum #dcn-home .box.aag h2,
#colum #dcn-home .box.potd h2 {
	font: bold 16px 'Libre Franklin', sans-serif;
	width: 267px;
	border-bottom: 1px solid #bdbdbd;
	margin: 0;
}

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

#colum #main.text .box a:hover,
#colum #main.text .box a:active,
#colum #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 ---------------- */

#colum #footer,
#colum #bepress a {
	height: 93px;
	/*background-color: #000;*/
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.mbl #colum #header #logo_image {
	position: absolute !important; /* !important overrides mbl styling */
	top: 16.666667%;
	right: 0;
	width: 25.102041% !important;  /* 246 / 980 */
	height: auto !important; /* !important avoids 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 #colum #dcn-home .box.aag h2,
.mbl #colum #dcn-home .box.potd h2 {
	width: 100%;
}
	
.mbl #dcn-home .box.aag span,
.mbl #dcn-home .box.potd span {
    display: block;
}

/* homepage buttons */

.mbl #colum #cover-browse #browse-by-buttons h3:before {
    content: none;
}

.mbl #colum #cover-browse #browse-by-buttons {
    margin-top: 0px;
    flex-flow: wrap;
}

.mbl #colum #cover-browse #browse-by-buttons * {
    font-size: 14px;
    padding: 0px !important;
    text-indent: 0px !important;
}

.mbl #colum #cover-browse #browse-by-buttons img {
    max-width: 45px !important;
    padding-top: 5px;
}

.mbl #colum #cover-browse #browse-by-buttons * {
    font-size: 12px;
}

@media only screen and (max-width: 767px) {

  #colum #cover-browse #browse-by-buttons {
    padding-left: 16px;
    margin-left: -10px;
   }

  #colum #cover-browse #browse-by-buttons .browse-container {
    width: 60%;
   }

  #colum #cover-browse #browse-by-buttons .browse-link {
    padding: 4px;
   }

  #colum #cover-browse #browse-by-buttons .browse-link h3 {
    background-image: none;
    margin-top: 10px;
   }

  #colum #cover-browse #browse-by-buttons .browse-link h3:before {
  	content: none;
   }

  #colum #cover-browse #browse-by-buttons .browse-link i {
    background-image: none;
   }

  #colum #cover-browse #browse-by-buttons .browse-link img {
  	max-width: 45px;
  	align-self: center;
   }
}
