/* -----------------------------------------------
bepress IR local stylesheet.
Author: Jami Wardlow
Version: Oct 2025
PLEASE SAVE THIS FILE LOCALLY!
----------------------------------------------- */

/* ---------------- Meta Elements ---------------- */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Young+Serif&display=swap');

	/* --- Meta styles and background --- */

body {
	font: normal 14px/1.5 "Montserrat", sans-serif;  /* should be medium except when fitting into a fixed container */
	background: #fbfbf9 url(assets/md5images/38d58ad40f31f39b6c3a2734acc966f8.png) no-repeat center top;
}

#ndsu { background: url(assets/md5images/4992438b0232c01fc76719afa4bedc46.gif) repeat-x left bottom; }

/* ---------------- Header ---------------- */

#ndsu #header {
	position: relative;  /* needed for logo positioning */
	height: auto !important; /* !important overrides mbl styling */
	background: transparent;
}

#ndsu #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 --- */

#ndsu #logo_image {
	position: absolute !important; /* !important overrides mbl styling */
	top: 0;
	left: 0;
	width: 29.693877551020408% !important;  /* 582 / 1960 */
	height: auto !important; /* !important avoids DC assigning incorrect height to logo image */
}

#ndsu #header a#banner_link:focus img,
#ndsu #header a#logo_link:focus img,
#ndsu #bepress a:focus {
    outline: 2px dotted #ffc425;
}

/* ---------------- Navigation ---------------- */

#ndsu #navigation { margin-bottom: 38px; }

#ndsu #navigation,
#ndsu #navigation #tabs {
	height: 47px;
	white-space: nowrap;
}

#ndsu #navigation #tabs,
#ndsu #navigation #tabs ul,
#ndsu #navigation #tabs ul li {
	padding: 0;
	margin: 0;
}

#ndsu #navigation #tabs,
#ndsu #navigation #tabs ul {
	display: flex;
	justify-content: flex-start;
	width: 100%;
}

#ndsu #navigation #tabs a {
	font: normal 16px "Montserrat", sans-serif;
	display: block;
	height: 47px;
	line-height: 47px;
	color: #fff;
	background-color: transparent;
	padding: 0 15px;
	margin: 0;
	border: 0;
}

#ndsu #navigation #tabs a:hover,
#ndsu #navigation #tabs a:active,
#ndsu #navigation #tabs a:focus {
	text-decoration: underline;
}

/* ---------------- Sidebar ---------------- */

#ndsu #sidebar {
	position: relative;
	padding-top: 0;
	margin-bottom: 20px;
}

#ndsu #sidebar::before {
	content: "";
    height: 95%;
    width: 2px;
    display: block;
    position: absolute;
    top: 0;
    right: 246px;
    background: #ffc425;
}

#ndsu #sidebar h2 {
	font: normal 16px "Young Serif", serif;
	color: #003524;
	background: transparent;
	border: none;
}

#ndsu #sidebar a {
	font: normal 14px "Montserrat", sans-serif;
	color: #785d03;
	text-decoration: none;
}

#ndsu #sidebar a:hover,
#ndsu #sidebar a:active,
#ndsu #sidebar a:focus {
	color: #000;
	text-decoration: underline;
}

#ndsu #sidebar #sidebar-search label {
	font: normal 14px "Montserrat", sans-serif;
	color: #003524;
}

#ndsu #sidebar #sidebar-search {
	margin-top: 8px;
	padding-left: 15px;
}

#ndsu #sidebar #sidebar-search span.border { background: transparent; }

.searchbutton { cursor: pointer; } /* best practice, should move to ir-layout.css */

/* ---------------- Main Content ---------------- */

#ndsu #wrapper { background-image: none; }

	/* Sticky Footer */

#ndsu #content { /* calculates 100% viewport height - (total heights of header, navigation and footer) */
	min-height: calc(100vh - 403px);
	outline: 1px solid #51aba0;
}
	/* --- Breadcrumbs --- */

#ndsu #main.text div.crumbs a:link,
#ndsu #main.text div.crumbs a:visited {
	text-decoration: none;
	color: #785d03;
}

#ndsu #main.text div.crumbs a:hover,
#ndsu #main.text div.crumbs a:active,
#ndsu #main.text div.crumbs a:focus {
	text-decoration: underline;
	color: #000;
}

#ndsu #breadcrumb a,
#ndsu .crumbs p a,
#ndsu #pager li {
	font-size: 12px;
}

#ndsu #dcn-home > #homepage-intro { margin: 15px 0; }

	/* --- Headers --- */

#ndsu #homepage-heading-row h2 {
	font: normal 30px "Young Serif", serif;
	margin-bottom: 20px;
}

h3 {
	margin: 0;
	text-decoration: underline;
}


/* --- front page buttons ---*/

#ndsu #buttons {
	width: 105%;
	margin-bottom: 0;
}

#ndsu #buttons .browse-container .browse-link h3 {
    text-decoration: none;
    background-image: none;
	margin: 0 8px;
}

#ndsu #buttons .browse-container {
    margin: 6px 4px 0;
}

#ndsu #buttons .browse-link {
  background-color: #00583d;
  width: 152px;
  height: 152px;
  border-radius: 6px;
  text-align: center;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  float: left;
  margin: 0 18px 19px 0;
}

/* Button img settings */
#ndsu #buttons .browse-link img {
	align-self: center;
	/*width: 52px;
	height: 52px;*/
}

/* Button text settings */
#ndsu #buttons .browse-link h3 {
  font: normal 14px/1.4 "Montserrat", sans-serif;
  text-align: center;
  color: #fff;
  padding-left: 0px;
}

/* Hover/focus behavior for button outline */
#ndsu #buttons a:hover > .browse-link,
#ndsu #buttons a:focus > .browse-link,
#ndsu #buttons a:active > .browse-link {
  outline: 4px solid #51aba0;
}

#ndsu #buttons a,
#ndsu #buttons a:hover,
#ndsu #buttons a:focus,
#ndsu #buttons a:active {
  text-decoration: none !important;
}

	/* --- Links --- */

#ndsu #main.text a:link,
#ndsu #main.text a:visited {
	color: #785d03; /* declared for #network-icon text */
}

#ndsu #main.text a:hover,
#ndsu #main.text a:active,
#ndsu #main.text a:focus {
	color: #000;
	text-decoration: underline;
}

	/* PotD / Top DL widgets */

#ndsu .box.aag h2,
#ndsu .box.potd h2 {
	font: normal 21px "Young Serif", serif;
	width: 267px;
	border-bottom: 1px solid #ddd;
	margin: 0;
}

#ndsu #main.text .box a:link,
#ndsu #main.text .box a:visited {
	background: none;
	font: 600 14px "Montserrat", sans-serif;
	text-decoration: none;
	border-bottom: 1px solid #ddd;
}

#ndsu #main.text .box a:hover,
#ndsu #main.text .box a:active,
#ndsu #main.text .box a:focus {
	text-decoration: underline;
}

	/* Browse Disciplines */

#ndsu #content .subnav li {
	font-size: 13px;
}

#ndsu .discipline-browser dt,
#ndsu .new-discipline dt {
	font-size: 15px;
}
#ndsu .discipline-browser dd,
#ndsu .new-discipline dd,
#ndsu dl.communities dd ul li {
	font-size: 14px;
}

#ndsu .discipline-browser dd,
#ndsu .new-discipline dd {
    padding: 3px 0;
}

	/* Submit Research */

#ndsu .communities dt,
#ndsu .communities dt a:link {
	font-size: 14px;
	font-weight: normal;
}
#ndsu dl.communities dd ul li {
    line-height: 1.3em;
}

	/* Announcements */

#ndsu #main.text #announce h3,
#ndsu #main.text #announce h4 {
 	font-size: 15px;
}

	/* Site subpage headings */

#ndsu #main.text h2#ir-about,
#ndsu #main.text h2#faq-top,
#ndsu #main.text h2#communities-title,
#ndsu #main.text h2#top,
#ndsu #main.text h2#submit-title,
#ndsu #main.text #announce h2,
#ndsu #main.text #accessibility-statement h2 {
	font-size: 22px;
}

	/* homepage stats */

#ndsu p#stats,
#ndsu #main.text #network-icon a {
	font-size: 13px;
}

	/* Article pages series/journal/event */

#ndsu #alpha .element p,
#ndsu #custom-fields .element p,
#ndsu #alpha #recommended_citation p,
#ndsu #alpha #attach_additional_files .files span {
	font-size: 14px;
}

#ndsu #beta_7-3 #beta-disciplines.aside p {
	font-size: 14px !important;
}

#ndsu #alpha .element h4,
#ndsu #custom-fields .element h4,
#ndsu #beta_7-3 h4,
#ndsu #alpha #attach_additional_files .related strong {
	font-size: 15px !important;
}
#ndsu #alpha #title.element p {
	font-size: 22px;
}

/* ---------------- Footer ---------------- */

#ndsu #footer { border-top: 36px solid #fbfbf9; }

#ndsu #footer,
#ndsu #bepress a {
	height: 74px;
	background-color: #00583d;
}

#ndsu #bepress a {
	background-image: url(assets/md5images/679594240bfa0eb9493776f7d68fa330.svg);
    background-size: 210px;
    background-position: center;
}

#ndsu #footer p,
#ndsu #footer p a {
	font: normal 13px/1.6 "Montserrat", sans-serif;
	color: #fff;
	text-decoration: none;
}

#ndsu  #footer a.secondary-link { font-size: 11px; }

#ndsu #footer p:first-of-type { padding-top: 18px; }

#ndsu #footer p a:hover,
#ndsu #footer p a:active,
#ndsu #footer p a:focus {
	text-decoration: underline;
}

/* ---------------- Miscellaneous fixes ---------------- */

	/* Browse Authors accessibility fix (CSFR-2684) */

#ndsu #main.text .authorbrowser p.letters a:hover,
#ndsu #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 #ndsu #wrapper:after { content: none; }

	/* Search */

#ndsu #main.text a:link span.icon-question-sign {
	text-decoration: none;
}

	/* Increase contrast on My Account headings */

#ndsu .text #myaccount h2 { color: #000; }

/* ---------------- Mobile ---------------- */

.mbl #ndsu #header {
	background: url(assets/md5images/34f0ac7a44b742c9caecdd485dc7f910.png) no-repeat left top;
}

.mbl #ndsu #header,
.mbl #ndsu #header a#banner_link img,
.mbl #ndsu #navigation {
	width: 100% !important;
}

.mbl #ndsu #header #logo_image {
	position: absolute !important; /* !important overrides mbl styling */
	top: 0;
	left: 0;
	width: 29.693877551020408% !important;  /* 582 / 1960 */
	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 #buttons { text-decoration: none; }

	/* stacks headings and spans in .box */

.mbl #ndsu .box.aag h2,
.mbl #ndsu .box.potd h2 {
	width: 100%;
}
	
.mbl .box.aag span,
.mbl .box.potd span {
    display: block;
}

.mbl #ndsu #dcn-home #homepage-heading-row {
  align-items: center;
}
.mbl #ndsu #dcn-home #homepage-heading-row .btn {
  display: inline;
}
.mbl #ndsu #dcn-home #homepage-heading-row .btn:hover,
.mbl #ndsu #dcn-home #homepage-heading-row .btn:focus,
.mbl #ndsu #dcn-home #homepage-heading-row .btn:active {
  margin-left: 0;
}
.mbl #ndsu #dcn-home span.site-follow {
  margin: 0 5px;
}

  /* --- footer logo --- */

.mbl #ndsu #footer #bepress a {
	background: transparent url(assets/md5images/679594240bfa0eb9493776f7d68fa330.svg) center no-repeat !important;
	background-size: 235px !important;
	height: 50px !important;
	margin: 0px !important;
}

.mbl #ndsu #footer {
	background-color: #00583d !important;
	background-image: none !important;
}

.mbl #ndsu #sidebar::before { display: none; }

	/* homepage buttons */

.mbl #ndsu #buttons h3:before {
    content: none;
}

.mbl #ndsu #buttons {
    margin-top: 0px;
}

.mbl #ndsu #buttons * {
    font-size: 14px;
    padding: 0px !important;
}

.mbl #ndsu #buttons img {
    max-width: 60px !important;
    padding-top: 5px;
}

.mbl #ndsu #buttons .browse-link {
	padding: 4px;
	margin-right: 14px;
}

.mbl #ndsu #buttons .browse-link h3 {
	background-image: none;
	font-size: 14px !important;
	font-family: "Montserrat", sans-serif !important;
}

.mbl #ndsu #buttons .browse-link h3:before {
	content: none;
}

.mbl #ndsu #buttons .browse-link img {
	max-width: 45px;
}

.mbl #ndsu #buttons { 
	display: flex;
	flex-flow: wrap;
}