/* -----------------------------------------------
Journal local stylesheet.
Author:   David Stienstra
Version:  October 2019
PLEASE SAVE THIS FILE LOCALLY!
----------------------------------------------- */

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

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

body {
	font: normal 12px/1.5 Georgia, Times, Times New Roman, serif;  /* should be medium except when fitting into a fixed container */
	background: #fff url(../assets/md5images/de02e1fc49927986fdbc9c98e73704af.jpg) repeat;
}

#amishstudies {
	background-image: url(../assets/md5images/7f817954314d7d86f9aef02d1421a2c8.gif);
	background-position: left top;
	background-repeat: repeat-x;
}
/* ---------------- Header ---------------- */

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

#amishstudies #banner_image {
	display: block;
	width: 980px !important;
	height: auto !important;  /* avoids warping improperly sized header image / SUP-19994 */
}

#amishstudies #banner_link { line-height: 0; } /* removes header/nav gap in mbl */

	/* --- Logo --- */

#amishstudies #logo_image,
#amishstudies #header a#logo_link {
	display: none;
}

#amishstudies #header {
	margin-top: 24px;
}

#amishstudies #header a#banner_link:focus img {
	outline: 1px dashed #000;
}

#amishstudies #header a#logo_link {
	display: none;
}
/* ---------------- Navigation ---------------- */

#amishstudies #navigation,
#amishstudies #navigation #tabs {
	height: 42px;
	overflow: hidden; } /* have seen issues with tabs extending below nav container */

/* Flexbox Navigation July 2018 */

#amishstudies #navigation #tabs,
#amishstudies #navigation #tabs ul {
  display: flex;
  justify-content: flex-start; /* "flex-start" for left-aligned tabs, change to "flex-end" for right-aligned tabs, "center" for centered */
  width: 100%;
}

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

#amishstudies #navigation #tabs a {
	font: normal 15px Georgia, Times, Times New Roman, serif;
	display: block;
	width: auto !important; /* fixes "my account" not fitting in container on page load */
	transition: background 0.3s ease;
	line-height: 36px;
	color: #fff;
	background-color: transparent;
	padding: 0 13px;
	margin: 0;
	border: 0;
  }

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

#amishstudies #navigation #tabs a span { font-size: 15px; }	/* nav tab font size (default: 12px). Using font shorthand style specification causes display issue with My Account pages */

#amishstudies #navigation #tabs li:first-child a { padding-left: 10px; }

#amishstudies #navigation a#Library-home {
	display: none;
}
/* ---------------- Sidebar ---------------- */
#amishstudies #sidebar {
	margin-right: 0px;
	margin-left: 10px;
}
#amishstudies #sidebar { padding-top: 16px; }

#amishstudies #sidebar a:link,
#amishstudies #sidebar a:visited {
	font: normal 12px Georgia, Times, Times New Roman, serif;
	color: #0d3f62;
	text-decoration: none;
}

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

	/* --- Highlighted sidebar links --- */

#amishstudies #sidebar ul#navlist {
	border-top: none; }	 /* border added by ir-custom.css by default */
#amishstudies #sidebar ul#navlist li:first-child a {
	border-top: 1px solid #fff; /* border is removed if #navlist has no content */
}

#amishstudies #sidebar ul#navlist li a {
	color: #0d3f62;
	transition: background 0.3s ease;
	font-weight: normal;
	background-color: #f6f6f6;
	border-bottom: 1px solid #f6f6f6;
}

		/* Sidebar link colors */
#amishstudies #sidebar ul#navlist li a:active,
#amishstudies #sidebar ul#navlist li a:hover,
#amishstudies #sidebar ul#navlist li a:focus {
	color: #fff;
	background-color: #1d881a;
}

#amishstudies #sidebar ul#navlist li:last-child a { border-bottom: none; }


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

#amishstudies #sidebar .sidebar-search label,
#amishstudies .sidebar-search h2,
#amishstudies #sidebar #issn p {
	color: #000; /* Search, "Enter search terms," ISSN" */
	border: 0; 
	font-size: 12px;
}

#amishstudies .sidebar-search h2 { 
	font: bold 12px Georgia, Times, Times New Roman, serif;
	text-indent: 20px; }

#amishstudies #sidebar #browse,
#amishstudies #sidebar #sidebar-search { padding-left: 15px; } /* aligning sidebar search with rest of sidebar */

#amishstudies #sidebar p.advanced + div { display: none; }

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


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

#amishstudies #wrapper { /* for full-length sidebar content background/elements */
	background: url(../assets/md5images/a39436b44bda592307b35c5dde2a24bf.gif) repeat-y left top;
}

#amishstudies #content { background-color: #ffffff; }

#amishstudies #content #main.text {
	padding-top: 23px;
}

#sub { margin-top: 22px; }

	/* --- Breadcrumbs --- */

#amishstudies #main.text div.crumbs p { margin-bottom: 0; }

#amishstudies #main.text div.crumbs a {
	text-decoration: none;
	color: #104e7b;
}

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

	/* --- Headers --- */

#amishstudies #main.text .article-list h1,    /* Current Issue - without cover art */
#alpha h1, #series-home h1 {   /* Journals with cover art */
	font: normal 24px Georgia, Times, Times New Roman, serif; /* Current Issue */
}

#amishstudies .article-list h2,   /* Article, or other doctype */
#coverart #alpha .article-list h2 {   /* Journals with cover art */
	font: normal 21px Georgia, Times, Times New Roman, serif;
	background: transparent;   /* removes background and adds a line under doctype header */
	border-bottom: 1px solid #e1e1e1;
	padding-bottom: 0;
	margin-bottom: 25px;
}

	/* --- Links --- */

#amishstudies #main.text a:link,
#amishstudies #main.text a:visited {
	text-decoration: underline;
	color: #104e7b; }

#amishstudies #main.text a:hover,
#amishstudies #main.text a:active,
#amishstudies #main.text a:focus {
	color: #000000;
	text-decoration: underline;
}
#amishstudies #main.text .article-list a:link,
#amishstudies #main.text .article-list a:visited {
	text-decoration: none; }

#amishstudies #main.text .article-list a:hover,
#amishstudies #main.text .article-list a:active,
#amishstudies #main.text .article-list a:focus {
	color: #000000;
	text-decoration: underline;
}

	/* --- PDF icons and article lists --- */

#amishstudies #main.text div.doc { margin: 0 0 15px; }
/* Replacing rule on line 227 to style all options and not break mobile PDF buttons */
/*#amishstudies #main.text div.article-list .pdf { width: auto; }*/
#amishstudies div.article-list .pdf,
#amishstudies div.article-list .native,
#amishstudies div.article-list .external,
#amishstudies div.article-list .none .openurl,
#amishstudies div.article-list .none,
#amishstudies div.article-list .metadata-only {
 width: auto;
}
#coverart #alpha .article-list p { margin-left: 48px; }
#amishstudies #main.text div.article-list .pdf a { text-decoration: none; } /* removes extra underline on PDF icon */

	/* --- Editors and Cover art --- */

#coverart #beta {
	float: right; }

		/* Cover art */
#amishstudies #coverart #beta .coverart-box h4 {
    font: normal 18px Georgia, Times, Times New Roman, serif; /* default is 18px */
    color: #000;
    text-align: left;
    text-transform: none;
    border-bottom: 1px solid #e1e1e1; }

#amishstudies #coverart #beta .coverart-box {
	font: normal 12px Georgia, Times, Times New Roman, serif;
	border: 0; }

#amishstudies #coverart #beta #coverart-box-container {
	border: 0; }

/* this rule aligns cover art with other content, but sometimes breaks the layout, idk, seems fine i guess
#coverart #beta	{ width: auto; }
*/

#amishstudies #coverart #beta dl  {
	margin-left: 0; }

#amishstudies #coverart #beta #coverart-editors dt {
	font-size: 12px;
	padding-top: 10px; }

		/* Cover art disabled (not needed usually) */

#amishstudies #masthead h2.masthead { font: 400 21px Georgia, Times, Times New Roman, serif; }

#amishstudies .article-list .pdf,
#amishstudies .article-list .native, 
#amishstudies .article-list .external,
#amishstudies .article-list .none,
#amishstudies .article-list p.edit {
	margin: 5px 0 0;
}
/* ---------------- Footer ---------------- */

#amishstudies #footer,
#amishstudies #footer #bepress a {
	height: 76px;
	background-color: transparent; }

#amishstudies #footer p,
#amishstudies #footer p a  {
	font: normal 12px/2 Georgia, Times, Times New Roman, serif;
	color: #000;
	text-decoration: none; }

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

#amishstudies #footer p a:hover,
#amishstudies #footer p a:active,
#amishstudies #footer p a:focus {
	text-decoration: underline; }
	
#bepress a:focus {
	outline: 1px dashed #000;
}

#amishstudies #content {
    min-height: calc(100vh - 376px);  /* 310px varies by site. calculated by summing all fixed heights (header, navigation, footer, fixed margins between these elements) */
}
/* Search pages */
.legacy #amishstudies #wrapper:after {
    content: none; /* search pages */
}
/* ---------------- Miscellaneous fixes ---------------- */

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

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


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

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

.mbl #amishstudies #sidebar ul#navlist li a {
	padding: 6px 0px;
}

.mbl #amishstudies #sidebar ul#navlist li {
	padding: 0px;
}

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

.mbl #amishstudies #header,
.mbl #amishstudies #header a img,
.mbl #amishstudies #navigation {
	width: 100% !important;
}
.mbl #amishstudies #header #logo_image {
	display: none;
}

.mbl #sidebar #issn p.sb-issn,
.mbl #sidebar #issn p.sb-extra-issn {
	pointer-events: none;
}

.mbl #amishstudies #header {
	margin-top: 0 !important;
}