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

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

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

html { background-color: #0055b1; }	

body {
	font: normal 12px/1.5 Arial, "Helvetica Neue", Helvetica, sans-serif;  /* should be medium except when fitting into a fixed container */
	background: #fff url(assets/md5images/114608eb676c4ef65dfdf3e12b94147a.gif) repeat-x left top;
}

#buffalolaw { background: url(assets/md5images/9007beaa9a31563bd0ebd91bb11434b3.gif) repeat-x left bottom; }

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

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

#buffalolaw #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 --- */

#buffalolaw #logo_image {
	position: absolute !important; /* !important overrides mbl styling */
	top: 0;
	left: 0;
	width: 32.142857142857145% !important;  /* 315 / 980 */
	height: auto !important; /* !important avoids DC assigning incorrect height to logo image */
}

#buffalolaw #header a#banner_link:focus img,
#buffalolaw #header a#logo_link:focus img {
    outline: 2px dotted #007681;
}

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

#buffalolaw #navigation { 
	margin-bottom: 23px;
	border-bottom: 1px dotted #000;
}

#buffalolaw #navigation,
#buffalolaw #navigation #tabs {
	height: 51px;
	/*overflow: hidden; have seen issues with tabs extending below nav container */
	white-space: nowrap;
}

#buffalolaw #navigation #tabs { 
	height: 46px;
	width: 338px;
	border-bottom: 5px solid #007681;
}

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

#buffalolaw #navigation #tabs,
#buffalolaw #navigation #tabs ul {
	display: flex;
	justify-content: flex-start;
}

#buffalolaw #navigation #tabs a {
	font: bold 13px "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
	display: block;
	/*width: auto !important; fixes "my account" not fitting in container on page load (does it tho?)*/
	height: 51px;
	line-height: 51px;
	color: #0055b1;
	background-color: transparent;
	padding: 0 20px;
	margin: 0;
	border: 0;
}

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

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

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

#buffalolaw #sidebar {
	background: #666 !important; /* overrides mbl style */
	margin-bottom: 20px;
}

#buffalolaw #sidebar h2 {
	font: bold 18px "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
	color: #fff;
	background: transparent;
	width: 210px;
	padding: 0 0 4px;
	margin: 0 0 0 15px;
	border: none; 
	border-bottom: 1px solid #fff;
	text-indent: 0;
}

#buffalolaw #sidebar a {
	font: normal 13px Arial, "Helvetica Neue", Helvetica, sans-serif;
	color: #fff;
	text-decoration: none;
	width: 210px;
	padding: 0 0 4px;
	margin: 0 0 0 15px;
	border-bottom: 1px solid #fff;
	text-indent: 0;
}

#buffalolaw #sidebar .portal-badge a { border-bottom: none;}

#buffalolaw #sidebar p.advanced { margin: 10px 0 0; }

#buffalolaw #sidebar p.advanced a { padding: 0 108px 4px 0; }

#buffalolaw #sidebar a:hover,
#buffalolaw #sidebar a:active,
#buffalolaw #sidebar a:focus {
	color: #fff;
	text-decoration: underline;
	background: transparent;
}

#buffalolaw #sidebar #sidebar-search label {
	font: normal 13px Arial, "Helvetica Neue", Helvetica, sans-serif;
	color: #fff;
}

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

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

	/* Sticky Footer */

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

#buffalolaw #main.text { padding-top: 0; }

	/* --- Breadcrumbs --- */

#buffalolaw #main.text div.crumbs a:link,
#buffalolaw #main.text div.crumbs a:visited {
	text-decoration: none;
	color: #0055b1;
}

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

#buffalolaw #dcn-home img { width: auto; }

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

#buffalolaw #dcn-home > #cover-browse { margin-bottom: 30px; }

 /* (is this even a thing anymore?) adds space under full-width main-content image 
#buffalolaw #home-page-banner { margin-bottom: 16px; }*/

	/* --- Headers --- */

#buffalolaw #dcn-home > h2 { font: bold 21px "Century Gothic", CenturyGothic, AppleGothic, sans-serif; }

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

/* FF, IE, Chrome take parent element's color as text-decoration-color (black, usually) */
#dcn-home #cover-browse h3 { color: #0055b1; }

#buffalolaw #dcn-home #cover-browse h3 a {
	font: 400 15px/1.6 Arial, "Helvetica Neue", Helvetica, sans-serif;
	text-decoration: none;
}

#buffalolaw #dcn-home #cover-browse h3 a:hover,
#buffalolaw #dcn-home #cover-browse h3 a:focus,
#buffalolaw #dcn-home #cover-browse h3 a:active {
	text-decoration: underline;
}

	/* --- Links --- */

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

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

	/* PotD / Top DL widgets */

#buffalolaw #dcn-home .box.aag h2,
#buffalolaw #dcn-home .box.potd h2 {
	font: bold 16px "Century Gothic", CenturyGothic, AppleGothic, sans-serif;
	width: 267px;
	border-bottom: 1px dotted #c1c1c1;
	margin: 0;
}

#buffalolaw #main.text .box a:link,
#buffalolaw #main.text .box a:visited {
	background: none;
	font: bold 12px Arial, "Helvetica Neue", Helvetica, sans-serif;
	text-decoration: none;
	border-bottom: 1px dotted #c1c1c1;
}

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

	/* 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 ---------------- */

#buffalolaw #footer,
#buffalolaw #bepress a {
	height: 75px;
	background-color: #0055b1;
}

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

#buffalolaw #footer p,
#buffalolaw #footer p a {
	font: normal 12px/2 Arial, "Helvetica Neue", Helvetica, sans-serif;
	color: #fff;
	text-decoration: none;
}

/* #buffalolaw #footer p:first-of-type { padding-top: ##px; } */

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

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

	/* --- Advanced Search --- */

.legacy #buffalolaw #wrapper { background-image: none; }

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

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

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

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

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

#buffalolaw ul#navlist { border-top: none; }

#buffalolaw ul#navlist li { padding-top: 8px; }

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

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

.mbl #buffalolaw #header #logo_image {
	position: absolute !important; /* !important overrides mbl styling */
	top: 0;
	left: 0;
	width: 32.142857142857145% !important;  /* 315 / 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 #buffalolaw #dcn-home .box.aag h2,
.mbl #buffalolaw #dcn-home .box.potd h2 {
	width: 100%;
}
	
.mbl #dcn-home .box.aag span,
.mbl #dcn-home .box.potd span {
    display: block;
}

/* Small caps - bd 2017-09-13 */
.smallcaps {font-variant: small-caps;}

/* LRC badge fixes - RP 2023-02-13 */
#buffalolaw #sidebar #lrc-badge a:hover,
#buffalolaw #sidebar #lrc-badge a:active,
#buffalolaw #sidebar #lrc-badge a:focus {
  background: transparent url(/assets/images/lrc_badge.png) center center no-repeat;
  outline: 1px dashed #000;
}
#buffalolaw #sidebar #urc-badge a, #buffalolaw #sidebar #lrc-badge a {
    text-indent: -9999px;
}