/* -----------------------------------------------
bepress IR local stylesheet.
Author:   Jami Wardlow
Version: Nov 2021
PLEASE SAVE THIS FILE LOCALLY!
----------------------------------------------- */

/* ---------------- Meta Elements ---------------- */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;700&display=swap');

	/* --- Meta styles and background --- */

body {
	font: normal 15px/1.5 'Source Sans Pro', sans-serif;  /* should be medium except when fitting into a fixed container */
	background-image: url(assets/md5images/b2f5856a7accd2eac71a8812a8c43e19.gif), url(assets/md5images/5fb4aac77810700cb02b339804423638.png);
	background-position: left top, center top;
	background-size: 50% 247px, 8px 202px;
	background-repeat: no-repeat, repeat-x;
}

#umichlaw { background: url(assets/md5images/929e5faf354f4910af779aa44c02fbd8.gif) repeat-x left bottom; }

/* ---------------- Header ---------------- */

#umichlaw #header {
	position: relative;  /* needed for logo positioning */
	height: auto !important; /* !important overrides mbl styling */
}

#umichlaw #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 */
}

#umichlaw #header a#banner_link:focus img {
    outline: 2px dotted #ffca26;
}

/* ---------------- Navigation ---------------- */

#umichlaw #navigation a:focus img { outline: 2px dotted #ffca26; }

#umichlaw #navigation img { float: left; }

#umichlaw #navigation,
#umichlaw #navigation #tabs {
	height: 98px;
	/*overflow: hidden; have seen issues with tabs extending below nav container */
	white-space: nowrap;
}

#umichlaw #navigation #tabs,
#umichlaw #navigation #tabs ul,
#umichlaw #navigation #tabs ul li {
	padding: 0;
	margin: 0;
}

#umichlaw #navigation #tabs,
#umichlaw #navigation #tabs ul {
	display: flex;
	justify-content: flex-end;
	width: 66.836735%;
}

#umichlaw #navigation #tabs a {
	font: normal 16px 'Source Sans Pro', sans-serif;
	display: block;
	/*width: auto !important; fixes "my account" not fitting in container on page load (does it tho?)*/
	height: 16px;
	line-height: 16px;
	color: #fff;
	background-color: transparent;
	padding: 0 21px;
	margin-top: 72px;
	border: 0;
}

#umichlaw #navigation #tabs a:hover,
#umichlaw #navigation #tabs a:active,
#umichlaw #navigation #tabs a:focus {
	text-decoration: underline;
}

#umichlaw #navigation #tabs #tabfour a { padding-right: 5px; }

/* ---------------- Sidebar ---------------- */

#umichlaw #sidebar h2 {
	font: normal 20px 'Source Sans Pro', sans-serif;
	color: #000;
	background: transparent;
	width: 226px;
	text-indent: 0;
	padding: 5px 0;
	margin: 0 0 0 15px;
	border: none;
	border-bottom: 1px solid #ffca26;
}

#umichlaw #sidebar a {
	font: normal 16px 'Source Sans Pro', sans-serif;
	color: #012649;
	text-decoration: none;
}

#umichlaw #sidebar a:hover,
#umichlaw #sidebar a:active,
#umichlaw #sidebar a:focus {
	color: #000;
	text-decoration: underline;
}

#umichlaw #sidebar #sidebar-search label {
	font: normal 13px 'Source Sans Pro', sans-serif;
	color: #282728;
}

#umichlaw #sidebar #sidebar-search {
	margin-top: 8px;
	padding-left: 15px;
}

#umichlaw #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 */
/* #umichlaw #content { padding-top: 16px; } */

	/* Sticky Footer */

#umichlaw #content { /* calculates 100% viewport height - (total heights of header, navigation and footer) */
	min-height: calc(100vh - 328px);
}
	/* --- Breadcrumbs --- */

#umichlaw #main.text div.crumbs a:link,
#umichlaw #main.text div.crumbs a:visited {
	text-decoration: none;
	color: #104e7b;
}

#umichlaw #main.text div.crumbs a:hover,
#umichlaw #main.text div.crumbs a:active,
#umichlaw #main.text div.crumbs a:focus {
	text-decoration: underline;
	color: #000;
}

#umichlaw #dcn-home > #homepage-intro { margin: 15px 0; }

 /* (is this even a thing anymore?) adds space under full-width main-content image 
#umichlaw #home-page-banner { margin-bottom: 16px; }*/

	/* --- Headers --- */

#umichlaw #dcn-home > h2 {
	font: 300 39px 'Source Sans Pro', sans-serif;
	margin-top: 15px;
}

h3 {
	margin: 0;
	text-decoration: underline;
}

#dcn-home #cover-browse-left {
	width: 50%;
	float: left;
}

#dcn-home #cover-browse-right {
	width: 50%;
	float: right;
}

#dcn-home #cover-browse h3 {
	color: #104e7b;
	text-decoration: none;
	padding: 3px 0 4px 20px;
}

#umichlaw #dcn-home #cover-browse h3 a {
	font: 400 18px/1.6 'Source Sans Pro', sans-serif;
	text-decoration: none;
}

/*#umichlaw #dcn-home #cover-browse h3 a:hover,
#umichlaw #dcn-home #cover-browse h3 a:focus,
#umichlaw #dcn-home #cover-browse h3 a:active {
	text-decoration: underline;
}

	/* --- Links --- */

#umichlaw #main.text a:link,
#umichlaw #main.text a:visited {
	color: #104e7b; /* declared for #network-icon text */
}

#umichlaw #main.text a:hover,
#umichlaw #main.text a:active,
#umichlaw #main.text a:focus {
	color: #000;
	text-decoration: underline;
}

	/* PotD / Top DL widgets */

#umichlaw #dcn-home .box.aag h2,
#umichlaw #dcn-home .box.potd h2 {
	font: 300 30px 'Source Sans Pro', sans-serif;
	width: 267px;
	border-bottom: 1px solid #ffca26;
	margin: 0;
}

#umichlaw #main.text .box a:link,
#umichlaw #main.text .box a:visited {
	background: none;
	font: bold 15px 'Source Sans Pro', sans-serif;
	text-decoration: none;
	border-bottom: 1px solid #ffca26;
}

#umichlaw #main.text .box a:hover,
#umichlaw #main.text .box a:active,
#umichlaw #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 ---------------- */

#umichlaw #footer,
#umichlaw #bepress a {
	height: 81px;
	background-color: #01274b;
}

#bepress a:focus { outline: 2px dotted #ffca26; }

#umichlaw #footer p,
#umichlaw #footer p a {
	font: normal 12px/2 'Source Sans Pro', sans-serif;
	color: #fff;
	text-decoration: none;
}

/* #umichlaw #footer p:first-of-type { padding-top: ##px; } */

#umichlaw #footer p a:hover,
#umichlaw #footer p a:active,
#umichlaw #footer p a:focus {
	text-decoration: underline;
}

/* ---------------- Miscellaneous fixes ---------------- */

	/* --- Advanced Search --- */

	/* Remove gap under search pages for full-width footers */

.legacy #umichlaw #wrapper:after { content: none; }

	/* --- Browse Authors accessibility fix (CSFR-2684) --- */

#umichlaw #main.text .authorbrowser p.letters a:hover,
#umichlaw #main.text .authorbrowser p.letters a:focus {
   background: url(/assets/azMe.jpg) bottom center no-repeat;
   color: #fff;
}

/* ---------------- Mobile ---------------- */

.mbl #umichlaw #header,
.mbl #umichlaw #header a#banner_link img,
.mbl #umichlaw #navigation {
	width: 100% !important;
}

.mbl #umichlaw #header #logo_image {
	position: absolute !important; /* !important overrides mbl styling */
	top: 0;
	left: 0;  /* change to "right" for right aligned logo */
	width: 24.4897959183% !important;  /* 240 / 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 #umichlaw #dcn-home .box.aag h2,
.mbl #umichlaw #dcn-home .box.potd h2 {
	width: 100%;
}
	
.mbl #dcn-home .box.aag span,
.mbl #dcn-home .box.potd span {
    display: block;
}

.mbl #umichlaw #navigation img { display: none; }