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

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

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

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

body {
	font: normal 16px/1.5 'Montserrat', sans-serif;  /* should be medium except when fitting into a fixed container */
	background: #fff url(assets/md5images/604ea0f51e852b2e4a76438f781200d1.png) no-repeat center top;
}

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

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

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

#mainelaw #header a#banner_link:focus img {
    outline: 2px dotted #bd5a14;
}

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

#mainelaw #navigation,
#mainelaw #navigation #tabs {
	height: 100px;
	white-space: nowrap;
}

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

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

#mainelaw #navigation #tabs a {
	font: bold 14px 'Montserrat', sans-serif;
	display: block;
	height: 100px;
	line-height: 100px;
	color: #000;
	background-color: transparent;
	padding: 0 14px;
	margin: 0;
	border: 0;
}

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

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

#mainelaw #navigation #tabs #tabzero a:focus img {
	outline: 2px dotted #bd5a14;
}

#mainelaw #navigation #tabs #tabzero {
	margin-right: 50%;
	padding: 0;
}

#mainelaw #navigation #tabs #tabzero a {
	padding: 0;
	margin: 0;
}

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

#mainelaw #sidebar h2 {
	font: bold 16px 'Montserrat', sans-serif;
	color: #000;
	background: transparent;
	border: none;
}

#mainelaw #sidebar a {
	font: normal 16px 'Montserrat', sans-serif;
	color: #bd5a14;
	text-decoration: none;
}

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

#mainelaw #sidebar #sidebar-search label {
	font: normal 16px 'Montserrat', sans-serif;
	color: #000;
}

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

#mainelaw #sidebar #sidebar-search span.border { background: transparent; }

.searchbutton { cursor: pointer; } /* best practice, should move to ir-layout.css */

/* ---------------- Main Content ---------------- */

	/* --- Breadcrumbs --- */

#mainelaw #main.text div.crumbs a:link,
#mainelaw #main.text div.crumbs a:visited {
	text-decoration: none;
	color: #bd5a14;
}

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

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

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

	/* --- Headers --- */

#mainelaw #dcn-home h2 {
	font: bold 22px 'Montserrat', sans-serif;
	padding: 20px 0 7px;
	border-bottom: 1px solid #dfdfdf;
	margin-bottom: 10px;
}

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

/* FF, IE, Chrome take parent element's color as text-decoration-color (black, usually) */ #buttons { color: #bd5a14; }

#mainelaw #cover-browse a {
	font: 400 16px/1.6 'Montserrat', sans-serif;
	text-decoration: none;
}

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

	/* --- Links --- */

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

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

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

#mainelaw #cover-browse #browse-by-buttons {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

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

#mainelaw #cover-browse #browse-by-buttons .browse-container {
    margin: 6px 0;
}

#mainelaw #cover-browse #browse-by-buttons .browse-link {
	background-color: #406997;
	width: 154px;
	height: 154px;
	border-radius: 8px;
	/*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 */
#mainelaw #cover-browse #browse-by-buttons .browse-link span {
  font-size: 52px; /* size of font icon */
  color: #fff;
}

#mainelaw #cover-browse #browse-by-buttons .browse-link img {
	margin: 0 auto;
}

/* Button text settings */
#mainelaw #cover-browse #browse-by-buttons .browse-link h3 {
  font: bold 16px/1.4 'Montserrat', sans-serif;
  text-align: center;
  color: #fff;
  padding-left: 0px;
  margin-top: 10px;
}

/* Hover/focus behavior for button outline */
#mainelaw #cover-browse #browse-by-buttons a:hover > .browse-link,
#mainelaw #cover-browse #browse-by-buttons a:focus > .browse-link,
#mainelaw #cover-browse #browse-by-buttons a:active > .browse-link {
	outline: 2px dotted #bd5a14;
}

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

	/* PotD / Top DL widgets */

#mainelaw .box.aag h2,
#mainelaw .box.potd h2 {
	font: bold 17px 'Montserrat', sans-serif;
	width: 267px;
	border-bottom: 1px solid #dfdfdf;
	margin: 0;
}

#mainelaw #main.text .box a:link,
#mainelaw #main.text .box a:visited {
	background: none;
	font: bold 16px 'Montserrat', sans-serif;
	text-decoration: none;
	border-bottom: 1px solid #dfdfdf;
}

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

	/* Browse Disciplines */

#mainelaw #content .subnav li {
	font-size: 16px;
}

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

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

	/* Submit Research */

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

	/* Announcements */

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

	/* Site subpage headings */

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

	/* homepage stats */

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

	/* Article pages series/journal/event */

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

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

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

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

#mainelaw #footer,
#mainelaw #bepress a {
	height: 75px;
	background-color: #fff;
}

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

#mainelaw #footer p,
#mainelaw #footer p a {
	font: normal 16px/1.6 'Montserrat', sans-serif;
	color: #bd5a14;
	text-decoration: none;
}

#mainelaw #footer p:first-of-type { padding-top: 18px; }

#mainelaw #container #footer a.secondary-link { font-size: 14px; }

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

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

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

#mainelaw #main.text .authorbrowser p.letters a:hover,
#mainelaw #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 #mainelaw #wrapper:after { content: none; }

	/* Search */

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

	/* Increase contrast on My Account headings */

#mainelaw .text #myaccount thead tr th { color: #000; }

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

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

	/* 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 #mainelaw .box.aag h2,
.mbl #mainelaw .box.potd h2 {
	width: 100%;
}
	
.mbl .box.aag span,
.mbl .box.potd span {
    display: block;
}


	/* homepage buttons */

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

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

.mbl #mainelaw #cover-browse #browse-by-buttons * {
    padding: 0px !important;
    text-indent: 0px !important;
}

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

.mbl  #mainelaw #cover-browse #browse-by-buttons .browse-link h3 {
    font-size: 14px !important;
    background-image: none;
    margin-top: 0 !important;
}

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

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

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

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

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

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

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