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

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

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

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

body {
	font: normal 14px/1.5 Georgia, Times, "Times New Roman", serif;  /* should be medium except when fitting into a fixed container */
	color: #646464;
	background: #203b7a;
}

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

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

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

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

#pace #header a#banner_link:focus img,
#pace #header a#logo_link:focus img {
    outline: 2px dotted #90bd00;
}

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

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

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

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

#pace #navigation #tabs a {
	font: bold 14px 'Lato', 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: #fff;
	background-color: transparent;
	padding: 0 11px;
	margin: 0;
	border: 0;
}

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

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

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

#pace #sidebar h2 {
	font: bold 15px 'Lato', sans-serif;
	text-transform: uppercase;
	color: #203b7a;
	background: transparent;
	padding: 0;
	margin: 0;
	border: none;
}

#pace #sidebar a {
	font: normal 13px Georgia, Times, "Times New Roman", serif;
	color: #0d3f62;
	text-decoration: none;
}

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

#pace #sidebar #sidebar-search label {
	font: normal 13px Georgia, Times, "Times New Roman", serif;
	color: #203b7a;
}

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

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

	/* --- Breadcrumbs --- */

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

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

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

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

	/* --- Headers --- */

#pace #dcn-home > h2 {
	margin-top: 20px;
	font: bold 21px 'Lato', sans-serif;
	text-transform: uppercase;
}

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: #1c76ae; }

#pace #dcn-home #cover-browse h3 a {
	font: 400 17px/1.6 Georgia, Times, "Times New Roman", serif;
	text-decoration: none;
}

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

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

#pace #cover-browse #browse-by-buttons {
	width: 92%;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

#pace #cover-browse #browse-by-buttons .browse-container .browse-link h3 {
    text-decoration: none;
    background-image: none;
    margin-left: 4px;
    margin-right: 4px;
}

#pace #cover-browse #browse-by-buttons .browse-container {
    width: 21%;
    margin: 8px 0;
}

#pace #cover-browse #browse-by-buttons .browse-contents {
  /*border-radius: calc(15px + 5px); browse-link border radius + browse-link border width */ 
  /*width: calc(120px + 5px);  .browse-link width + .browse-link border width*/
}

#pace #cover-browse #browse-by-buttons .browse-link {
  background-color: #203b7a;
  width: 137px;
  height: 137px;
  border-radius: 15px;
  border: 5px solid #fff; /* invisible default border to keep alignment */
  text-align: center;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
}

/* Button icon settings */
#pace #cover-browse #browse-by-buttons .browse-link i {
  font-size: 45px; /* size of font icon */
  color: #fff;
}

/* Button icon settings - img files */
#pace #cover-browse #browse-by-buttons .browse-link img {
  max-width: 45px; /* size of icon */
  height: auto;
  align-self: center;
  vertical-align: middle;
  padding-top: 8px;
}

/* Button text settings */
#pace #cover-browse #browse-by-buttons .browse-link h3 {
  font: normal 15px 'Lato', sans-serif;
  text-align: center;
  color: white;
  padding-left: 0px;
  margin-top: 10px;
}

/* Hover/focus behavior for button outline */
#pace #cover-browse #browse-by-buttons a:hover > .browse-link,
#pace #cover-browse #browse-by-buttons a:focus > .browse-link,
#pace #cover-browse #browse-by-buttons a:active > .browse-link {
  border: 5px solid #90bd00;
  border-radius: 15px;
  transition: border .2s;
}

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

#pace #cover-browse #browse-by-buttons a:hover > h3,
#pace #cover-browse #browse-by-buttons a:focus > h3,
#pace #cover-browse #browse-by-buttons a:active > h3 {
  text-decoration: underline;
  text-decoration-color: white;
}

/* Overruling some of Google's default icon font styling */
#pace #cover-browse #browse-by-buttons .browse-link .material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  white-space: nowrap;
  line-height: 1em;
  font-size: 50px;
}

	/* --- Links --- */

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

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

	/* PotD / Top DL widgets */

#pace #dcn-home .box.aag h2,
#pace #dcn-home .box.potd h2 {
	font: bold 16px 'Lato', sans-serif;
	text-transform: uppercase;
	width: 267px;
	border-bottom: 1px solid #cdcdcd;
	margin: 0;
}

#pace #main.text .box a:link,
#pace #main.text .box a:visited {
	background: none;
	font: bold 13px Georgia, Times, "Times New Roman", serif;
	text-decoration: none;
	border-bottom: 1px solid #cdcdcd;
}

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

#pace #footer,
#pace #bepress a {
	height: 74px;
	background-color: #323232;
}

#bepress a:focus { outline: 2px dotted #90bd00; }

#pace #footer p,
#pace #footer p a {
	font: normal 12px/2 Georgia, Times, "Times New Roman", serif;
	color: #e4e4e4;
	text-decoration: none;
}

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

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

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

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

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

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

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

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

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

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

	/* homepage buttons */

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

.mbl #pace #cover-browse #browse-by-buttons {
    margin-top: 0px;
}

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

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

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

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

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

  #pace #cover-browse #browse-by-buttons .browse-container {
    width: 50%;
   }

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

  #pace #cover-browse #browse-by-buttons .browse-link h3 {
    text-decoration: underline;
    background-image: none;
    margin-top: 10px;
    font-size: 14px;
   }

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

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

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