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

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

@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:ital,wght@0,100..900;1,100..900&display=swap');

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

body {
	font: normal 16px/1.5 "Libre Franklin", serif;  /* should be medium except when fitting into a fixed container */
	background: #fff;
	background-image: url(assets/md5images/73f70ad2940ef547d5fab4a9b0e5264b.gif);
	background-position: right top;
	background-repeat: no-repeat;
	background-size: 50% 150px;
}

#cunyportal { background: url(assets/md5images/b954bc3f0b1e12de27a1bd10d101c78e.gif) repeat-x left bottom; }

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

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

#cunyportal #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 */
}

#cunyportal #header a#banner_link:focus img,
#cunyportal #header a#logo_link:focus img {
    outline: 2px dotted #0040f0;
}

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

#cunyportal #navigation {
	position: absolute;
	z-index: 1;
	top: 100px;
	margin-left: 282px;
	width: 698px;
}

#cunyportal #navigation,
#cunyportal #navigation #tabs {
	height: 50px;
	white-space: nowrap;
}

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

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

#cunyportal #navigation #tabs a {
	font: 600 13px "Libre Franklin", serif;
	display: block;
	height: 50px;
	line-height: 50px;
	color: #fff;
	background-color: transparent;
	padding: 0 12px;
	margin: 0;
	border: 0;
}

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

#cunyportal #navigation #tabs #tabfour a { padding-right: 30px; } /* switch for right-aligned nav tabs */

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

#cunyportal #sidebar {
	border-bottom: 2px solid #ffb71b;
	margin-bottom: 40px;
}

#cunyportal #sidebar h2 {
	font: 800 24px "Libre Franklin", serif;
	color: #0133a1;
	background: transparent;
	border: none;
	border-top: 2px solid #ffb71b;
	padding-top: 15px;
}

#cunyportal #sidebar a {
	font: normal 14px "Libre Franklin", serif;
	color: #0040f0;
	text-decoration: none;
}

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

#cunyportal #sidebar #sidebar-search label {
	font: normal 14px "Libre Franklin", serif;
	color: #000;
}

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

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

	/* Sticky Footer */

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

#cunyportal #main.text div.crumbs a:link,
#cunyportal #main.text div.crumbs a:visited {
	text-decoration: none;
	color: #0040f0;
}

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

#cunyportal #breadcrumb a,
#cunyportal .crumbs p a,
#cunyportal #pager li {
	font-size: 12px;
}

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

	/* --- Headers --- */

#cunyportal #homepage-heading-row h2 {
	font: 800 32px "Libre Franklin", serif;
	margin: 16px 390px 20px 0;
}

h3 {
	margin: 0;
	text-decoration: underline;
}

/* FF, IE, Chrome take parent element's color as text-decoration-color (black, usually) */

#cunyportal #cover-browse a {
	font: 400 16px/1.6 "Libre Franklin", serif;
	text-decoration: none;
}

#cunyportal #cover-browse a:hover,
#cunyportal #cover-browse a:focus,
#cunyportal #cover-browse a:active {
	text-decoration: underline;
}

	/* --- Links --- */

#cunyportal #main.text a:link,
#cunyportal #main.text a:visited {
	color: #0040f0; /* declared for #network-icon text */
}

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

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

#cunyportal #browse-by-buttons {
	width: 100%;
    display: flex;
    flex-flow: row wrap;
}

#cunyportal #browse-by-buttons .browse-container .browse-link h3 {
    text-decoration: none;
    background-image: none;
	margin: 5px 12px 0;
}

#cunyportal #browse-by-buttons .browse-container {
    margin: 0 16px 16px 0;
}

#cunyportal #browse-by-buttons .browse-link {
	background-color: #0133a1;
	width: 140px;
	height: 140px;
	border-radius: 4px;
	text-align: center;
	display: flex;
	flex-flow: column nowrap;
	justify-content: center;
}

/* Button icon settings */
#cunyportal #browse-by-buttons .browse-link span {
	font-size: 56px; /* size of icon */
	color: #fff;
}

/* Button text settings */
#cunyportal #browse-by-buttons .browse-link h3 {
	font: 500 14px/1.4 "Libre Franklin", serif;
	text-align: center;
	color: #fff;
	padding-left: 0px;
	margin-top: 10px;
}

/* Hover/focus behavior for button outline */
#cunyportal #browse-by-buttons a:hover > .browse-link,
#cunyportal #browse-by-buttons a:focus > .browse-link,
#cunyportal #browse-by-buttons a:active > .browse-link {
	outline: 2px dotted #ffb71b;
	text-decoration: none;
}

#cunyportal #main.text #browse-by-buttons a {
	text-decoration: none;
}

	/* PotD / Top DL widgets */

#cunyportal .box.aag h2,
#cunyportal .box.potd h2 {
	font: 800 24px "Libre Franklin", serif;
	width: 267px;
	border-bottom: 1px solid #ddd;
	margin: 0;
}

#cunyportal #main.text .box a:link,
#cunyportal #main.text .box a:visited {
	background: none;
	font: bold 14px "Libre Franklin", serif;
	text-decoration: none;
	border-bottom: 1px solid #ddd;
}

#cunyportal #main.text .box a:hover,
#cunyportal #main.text .box a:active,
#cunyportal #main.text .box a:focus {
	text-decoration: underline;
}

	/* Browse Disciplines */

#cunyportal #content .subnav li {
	font-size: 13px;
}

#cunyportal .discipline-browser dt,
#cunyportal .new-discipline dt {
	font-size: 15px;
}
#cunyportal .discipline-browser dd,
#cunyportal .new-discipline dd,
#cunyportal dl.communities dd ul li {
	font-size: 14px;
}

#cunyportal .discipline-browser dd,
#cunyportal .new-discipline dd {
    padding: 3px 0;
}

	/* Submit Research */

#cunyportal .communities dt,
#cunyportal .communities dt a:link {
	font-size: 14px;
	font-weight: normal;
}
#cunyportal dl.communities dd ul li {
    line-height: 1.3em;
}

	/* Announcements */

#cunyportal #main.text #announce h3,
#cunyportal #main.text #announce h4 {
 	font-size: 15px;
}

	/* Site subpage headings */

#cunyportal #main.text h2#ir-about,
#cunyportal #main.text h2#faq-top,
#cunyportal #main.text h2#communities-title,
#cunyportal #main.text h2#top,
#cunyportal #main.text h2#submit-title,
#cunyportal #main.text #announce h2,
#cunyportal #main.text #accessibility-statement h2 {
	font-size: 22px;
}

	/* homepage stats */

#cunyportal p#stats,
#cunyportal #main.text #network-icon a {
	font-size: 13px;
}

	/* Article pages series/journal/event */

#cunyportal #alpha .element p,
#cunyportal #custom-fields .element p,
#cunyportal #alpha #recommended_citation p,
#cunyportal #alpha #attach_additional_files .files span {
	font-size: 14px;
}

#cunyportal #beta_7-3 #beta-disciplines.aside p {
	font-size: 14px !important;
}

#cunyportal #alpha .element h4,
#cunyportal #custom-fields .element h4,
#cunyportal #beta_7-3 h4,
#cunyportal #alpha #attach_additional_files .related strong {
	font-size: 15px !important;
}
#cunyportal #alpha #title.element p {
	font-size: 22px;
}

/* ---------------- Footer ---------------- */

#cunyportal #footer,
#cunyportal #bepress a {
	height: 103px;
	background-color: #0133a1;
}

#cunyportal #bepress a {
	background-image: url(assets/md5images/679594240bfa0eb9493776f7d68fa330.svg);
    background-size: 210px;
    background-position: center;
}

#cunyportal #footer p,
#cunyportal #footer p a {
	font: normal 13px/1.6 "Libre Franklin", serif;
	color: #fff;
	text-decoration: none;
}

#cunyportal  #footer a.secondary-link { font-size: 11px; }

#cunyportal #footer p:first-of-type { padding-top: 31px; }

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

/* Additional footer logo */
 
#cunyportal #footer { position: relative; }
 
a#footer-logo-link { margin: 0; }
 
#footerlogo {
    position: absolute;
    top: 0;
    right: 0;
}

#cunyportal #bepress a:focus,
#cunyportal #footer a#footer-logo-link:focus img {
	outline: 2px dotted #ffb71b;
}

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

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

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

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

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

	/* Search */

#cunyportal #main.text a:link span.icon-question-sign {
	text-decoration: none;
}

	/* Increase contrast on My Account headings */

#cunyportal .text #myaccount h2 { color: #000; }

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

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

.mbl #cunyportal #navigation { display: none; }

	/* fixes invisible space above header */

header#mobile-nav { 
    font-size: 0;
    line-height: 0;
}

.mbl #cunyportal #homepage-heading-row h2 { margin-right: 36%; }

	/* fixes bullet underline for Browse Research and Scholarship links */

.mbl #main #buttons { text-decoration: none; }

	/* stacks headings and spans in .box */

.mbl #cunyportal .box.aag h2,
.mbl #cunyportal .box.potd h2 {
	width: 100%;
}
	
.mbl .box.aag span,
.mbl .box.potd span {
    display: block;
}

.mbl #cunyportal #dcn-home #homepage-heading-row {
  align-items: center;
}
.mbl #cunyportal #dcn-home #homepage-heading-row .btn {
  display: inline;
}
.mbl #cunyportal #dcn-home #homepage-heading-row .btn:hover,
.mbl #cunyportal #dcn-home #homepage-heading-row .btn:focus,
.mbl #cunyportal #dcn-home #homepage-heading-row .btn:active {
  margin-left: 0;
}
.mbl #cunyportal #dcn-home span.site-follow {
  margin: 0 5px;
}

	/* homepage buttons */

.mbl #cunyportal #browse-by-buttons * {
	line-height: 1em;
	word-wrap: normal;
}

.mbl #cunyportal #browse-by-buttons .browse-container .browse-link h3 {
	margin: 5px 9px 0;
	font-size: 14px !important;
}

.mbl #footer-logo-link { display: none; } /* logos aren't hidden by mbl footer */