/* -----------------------------------------------
bepress IR local stylesheet.
Author:   Jami Wardlow
Version: Feb 2022
PLEASE SAVE THIS FILE LOCALLY!
----------------------------------------------- */

/* ---------------- Meta Elements ---------------- */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;600;700&display=swap');

	/* --- Meta styles and background --- */

body {
	font: normal 13px/1.5 'IBM Plex Sans', sans-serif;  /* should be medium except when fitting into a fixed container */
	color: #6f7780;
	background: #fff url(assets/md5images/add6ca8c6e44a5b38abee8c9cc99169f.png) no-repeat center top;
}

#mbzuai { background: url(assets/md5images/1dbeef0b672b39fbc22893f8769f0ec9.gif) repeat-x left bottom; }

/* ---------------- Header ---------------- */

#mbzuai #header {
	position: relative;  /* needed for logo positioning */
	height: auto !important; /* !important overrides mbl styling */
	margin-bottom: 25px;
}

#mbzuai #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 --- */

#mbzuai #logo_image {
	position: absolute !important; /* !important overrides mbl styling */
	top: 0;
	left: 0;
	width: 23.469388% !important;  /* 230 / 980 */
	height: auto !important; /* !important avoids DC assigning incorrect height to logo image */
}

#mbzuai #header a#banner_link:focus img,
#mbzuai #header a#logo_link:focus img {
    outline: 2px dotted #4ec3e0;
}

/* ---------------- Navigation ---------------- */

#mbzuai #navigation {
	background: transparent;
	position: absolute;
	z-index: 1;
}

#mbzuai #navigation,
#mbzuai #navigation #tabs {
	height: 99px;
	/*overflow: hidden; have seen issues with tabs extending below nav container */
	white-space: nowrap;
}

#mbzuai #navigation #tabs,
#mbzuai #navigation #tabs ul,
#mbzuai #navigation #tabs ul li {
	padding: 0;
	margin: 0;
}

#mbzuai #navigation #tabs,
#mbzuai #navigation #tabs ul {
	display: flex;
	justify-content: flex-end;
	width: 100%;
}

#mbzuai #navigation #tabs a {
	font: 600 14px 'IBM Plex Sans', sans-serif;
	display: block;
	/*width: auto !important; fixes "my account" not fitting in container on page load (does it tho?)*/
	height: 99px;
	line-height: 99px;
	color: #10069f;
	background-color: transparent;
	padding: 0 14px;
	margin: 0;
	border: 0;
}

#mbzuai #navigation #tabs a:hover,
#mbzuai #navigation #tabs a:active,
#mbzuai #navigation #tabs a:focus {
	text-decoration: underline;
}

/*#mbzuai #navigation #tabs #tabone a { padding-right: 10px; }*/

#mbzuai #navigation #tabs #tabfour a { padding-right: 0; }

/* ---------------- Sidebar ---------------- */

#mbzuai #sidebar {
	margin-top: 15px;
	padding-top: 15px;
	background: #10069f;
	margin-bottom: 20px;
}

#mbzuai #sidebar h2 {
	font: 600 15px 'IBM Plex Sans', sans-serif;
	color: #4ec3e0;
	background: transparent;
	padding: 0;
	margin: 0;
	border: none;
}

#mbzuai #sidebar a {
	font: normal 13px 'IBM Plex Sans', sans-serif;
	color: #fff;
	text-decoration: none;
}

#mbzuai #sidebar a:hover,
#mbzuai #sidebar a:active,
#mbzuai #sidebar a:focus {
	text-decoration: underline;
	background: #10069f;
}

#mbzuai #sidebar #sidebar-search label {
	font: normal 13px 'IBM Plex Sans', sans-serif;
	color: #fff;
}

#mbzuai #sidebar #sidebar-search {
	margin-top: 8px;
	padding-left: 15px;
}

#mbzuai #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 */
/* #mbzuai #content { padding-top: 16px; } */

	/* Sticky Footer */

#mbzuai #content { /* calculates 100% viewport height - (total heights of header, navigation and footer) */
	min-height: calc(100vh - 381px);
}
	/* --- Breadcrumbs --- */

#mbzuai #main.text div.crumbs a:link,
#mbzuai #main.text div.crumbs a:visited {
	text-decoration: none;
	color: #10069f;
}

#mbzuai #main.text div.crumbs a:hover,
#mbzuai #main.text div.crumbs a:active,
#mbzuai #main.text div.crumbs a:focus {
	text-decoration: underline;
	color: #000;
}

#mbzuai #dcn-home > #homepage-intro { margin: 12px 0; }

#mbzuai #dcn-home > h2 { font:
	bold 21px 'IBM Plex Sans', sans-serif;
	text-transform: uppercase;
}

/* FF, IE, Chrome take parent element's color as text-decoration-color (black, usually) 
#dcn-home #cover-browse h3 { color: #10069f; }*/

#mbzuai #dcn-home #cover-browse h3 a:hover,
#mbzuai #dcn-home #cover-browse h3 a:focus,
#mbzuai #dcn-home #cover-browse h3 a:active {
	text-decoration: underline;
}

	/* --- Links --- */

#mbzuai #main.text a:link,
#mbzuai #main.text a:visited {
	color: #10069f; /* declared for #network-icon text */
}

#mbzuai #main.text a:hover,
#mbzuai #main.text a:active,
#mbzuai #main.text a:focus {
	color: #000;
	text-decoration: underline;
}

/* homepage columns */

#mbzuai #homepage-intro {
    display: inline-block;
}
 
#mbzuai #main.text .col-1 {  /* #main.text needed for weight to override ir-layout.css #dcn-home > * rules */
    display: inline-block;
    vertical-align: text-top; /* aligns cols in cover_text h3 */
    width: 45%;
    margin: 0 !important; /* !important overrides !important in ir-adapt.css */
    float: left; }
 
#mbzuai #main.text .col-2 {
    float: left;
    width: 45%;
    padding-left: 34px; }

#mbzuai #homepage-intro h3 a {
	font: 600 16px 'IBM Plex Sans', sans-serif;
	text-transform: uppercase;
	text-decoration: none;
}

#mbzuai #homepage-intro p { margin-bottom: 30px; }

	/* PotD / Top DL widgets */

#mbzuai #dcn-home .box.aag h2,
#mbzuai #dcn-home .box.potd h2 {
	font: 600 16px 'IBM Plex Sans', sans-serif;
	text-transform: uppercase;
	width: 267px;
	border-bottom: none;
	margin: 0;
}

#mbzuai #main.text .box a:link,
#mbzuai #main.text .box a:visited {
	background: none;
	font: bold 12px 'IBM Plex Sans', sans-serif;
	text-decoration: none;
	border-bottom: none;
}

#mbzuai #main.text .box a:hover,
#mbzuai #main.text .box a:active,
#mbzuai #main.text .box a:focus {
	text-decoration: underline;
}

#mbzuai .box p a span { color: #6f7780; }

	/* 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 ---------------- */

#mbzuai #footer,
#mbzuai #bepress a {
	height: 89px;
	background-color: #f6f6fa;
}

#bepress a:focus { outline: 2px dotted #10069f; }

#mbzuai #footer p,
#mbzuai #footer p a {
	font: normal 12px/2 'IBM Plex Sans', sans-serif;
	color: #636363;
	text-decoration: none;
}

#mbzuai #footer p:first-of-type { padding-top: 20px; }

#mbzuai #footer p a:hover,
#mbzuai #footer p a:active,
#mbzuai #footer p a:focus {
	text-decoration: underline;
}

/* ---------------- Miscellaneous fixes ---------------- */

	/* --- Advanced Search --- */

.legacy #mbzuai #wrapper {	background-image: none; }

	/* Remove gap under search pages for full-width footers */

.legacy #mbzuai #wrapper:after { content: none; }

	/* --- Browse Authors accessibility fix (CSFR-2684) --- */

#mbzuai #main.text .authorbrowser p.letters a:hover,
#mbzuai #main.text .authorbrowser p.letters a:focus {
   background: url(/assets/azMe.jpg) bottom center no-repeat;
   color: #fff;
}

#mbzuai .text #myaccount thead tr th {
	color: #636363;
	background-color: #f6f6fa;
}

/* ---------------- Mobile ---------------- */

.mbl #mbzuai #header,
.mbl #mbzuai #header a#banner_link img,
.mbl #mbzuai #navigation {
	width: 100% !important;
}

.mbl #mbzuai #header #logo_image {
	position: absolute !important; /* !important overrides mbl styling */
	top: 0;
	left: 0;
	width: 23.469388% !important;  /* 230 / 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 #mbzuai #dcn-home .box.aag h2,
.mbl #mbzuai #dcn-home .box.potd h2 {
	width: 100%;
}
	
.mbl #dcn-home .box.aag span,
.mbl #dcn-home .box.potd span {
    display: block;
}

.mbl #mbzuai #main.text .col-1,
.mbl #mbzuai #main.text .col-2 {
    width: 100%;
    padding: 0;
}

.mbl #mbzuai #sidebar { background-color: #10069f !important; }