/* -----------------------------------------------
Journal local stylesheet.
Author:   Jami Wardlow
Version:  Oct 2020
PLEASE SAVE THIS FILE LOCALLY!
----------------------------------------------- */

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

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

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/c472aef70f2a57bf417c7cc0e74910d1.png) repeat-x left top;
}

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

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

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

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

    /* --- Logo --- */

#global #logo_image { display: none; }

#global #header a#banner_link:focus img {
    outline: 1px dotted #ff6600;
}

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

#global #navigation {
    background: transparent;
    margin-bottom: 22px;
}

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

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

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

#global #navigation #tabs a {
    font: normal 14px Arial, "Helvetica Neue", Helvetica, sans-serif;
    display: block;
    /*width: auto !important; fixes "my account" not fitting in container on page load (does it tho?)*/
    line-height: 52px;
    color: #595959;
    background-color: transparent;
    padding: 0 11px;
    margin: 0;
    border: 0;
}

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

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

#global #navigation #tabs li:last-child a { padding-right: 25px; }   /* hidden but expands to fit 240px #tabs for IE + FF */


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

#global #sidebar {
    background: #866aa9;
    padding-top: 16px;
    border-radius: 7px;
    margin-bottom: 22px;
}

#global #sidebar a:link,
#global #sidebar a:visited {
    font: normal 12px Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: #fff;
    text-decoration: none;
}

#global #sidebar a:hover,
#global #sidebar a:active,
#global #sidebar a:focus {
    text-decoration: underline;
}

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

#global #sidebar ul#navlist {
    border-top: none; /* border added by ir-custom.css by default */
}

#global #sidebar ul#navlist li:first-child a {
    border-top: 1px solid #866aa9; /* border is removed if #navlist has no content */
}

#global #sidebar ul#navlist li a {
    color: #fff;
    transition: background 0.3s ease;
    font-weight: normal;
    background-color: #4f2587;
    border-bottom: 1px solid #866aa9;
}

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

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

#global #sidebar .sidebar-search label,
#global .sidebar-search h2,
#global #sidebar #issn p {
    color: #fff; /* Search, "Enter search terms," ISSN" */
    border: 0;
}

#global .sidebar-search h2 { 
    font: bold 12px Arial, "Helvetica Neue", Helvetica, sans-serif;
    text-indent: 20px;
    background: transparent;
}

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

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

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

#global #sidebar-images a:focus img { outline: 1px dotted #008080; }

#global #sidebar img {
    max-width: 210px;
    height: auto;
}

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

#global #content { 
    min-height: calc(100vh - 322px); /* sticky footer: calculates 100% viewport height - (total heights of header, navigation and footer) */
    background-color: #fff;
}

#sub { margin-top: 22px; }

    /* --- Breadcrumbs --- */

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

#global #main.text div.crumbs a {
    text-decoration: none;
    color: #008080;
}

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

    /* --- Headers --- */

#global #main.text .article-list h1,    /* Current Issue - without cover art */
#alpha h1, #series-home h1 {   /* Journals with cover art */
    font: bold 23px Arial, "Helvetica Neue", Helvetica, sans-serif; /* Current Issue */
}

#global .article-list h2,   /* Article, or other doctype */
#coverart #alpha .article-list h2 {   /* Journals with cover art */
    font: bold 21px Arial, "Helvetica Neue", Helvetica, sans-serif;
    background: transparent;   /* removes background and adds a line under doctype header */
    border-bottom: 1px solid #bfbfbf;
    padding-bottom: 0;
    margin-bottom: 25px;
}

    /* --- Links --- */

#global #main.text a:link,
#global #main.text a:visited {
    text-decoration: underline;
    color: #008080;
}

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

#global #main.text .article-list a:link,
#global #main.text .article-list a:visited {
    text-decoration: none;
}

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

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

#global #main.text div.doc { margin: 0 0 15px; }

/* testing replacing the below with what follows: 
#global #main.text div.article-list .pdf { width: auto; } */

#global div.article-list .pdf,
#global div.article-list .native,
#global div.article-list .external,
#global div.article-list .none .openurl,
#global div.article-list .none,
#global div.article-list .metadata-only {
 width: auto;
}

#coverart #alpha .article-list p { margin-left: 48px; }

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

#global #coverart #beta .coverart-box h4 {
    font: bold 18px Arial, "Helvetica Neue", Helvetica, sans-serif; /* default is 18px */
    color: #000;
    text-align: left;
    text-transform: none;
    border-bottom: 1px solid #bfbfbf;
}

#global #coverart #beta .coverart-box {
    font: normal 12px Arial, "Helvetica Neue", Helvetica, sans-serif;
    border: 0;
}

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

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

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

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

#global #masthead h2.masthead { font: bold 21px Arial, "Helvetica Neue", Helvetica, sans-serif; }

#global #masthead tr th {  }

#global #masthead tr td {  }

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

#global #footer { background: url(../assets/md5images/fc5c73b6fe1a012c08ecc687b66ec816.gif) repeat-x left bottom;  }

#global #footer,
#global #footer #bepress a {
    height: 91px;
    background-color: #f8f8f8;
}

#bepress a:focus { outline: 1px dotted #ff6600; }

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

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

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

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

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

/*.legacy #global #wrapper { background-image: none; } (not needed?)

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

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

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

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

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

.mbl #global #header #logo_image { display: none; }

    /* fixes invisible space above header */

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

  /* --- Standardizing padding for navlist links --- */

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

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

/* resize index logos in sidebar, indexing page, and place the in 2 columns in sidebar -RKarberg 10/15/2020 */
#global #sb-custom ul.sb-custom-ul li.sb-custom-li a img {
    width: 105px;
    height: auto;
}

#global #sb-custom #sidebar-logo-left,
#global #sb-custom #sidebar-logo-right {
    width: 110px;
    float: left;
}

#global #indexing ul li a img {
    width: 330px;
    height: auto;
}

/* justify abstracts on article pages -RKarberg 10/15/2020 */
#global #alpha #abstract.element p,
#global #alpha #bahasa_abstract.element p {
text-align: justify;
}
  
/* center CC license logo in sidebar -RKarberg 10/15/2020 */
#global #sidebar #sb-custom #cc-logo p {
text-align: center;
margin-left: 10px;
margin-right: 10px;

/* limit sidebar link area ZG and AA 8/24/21 */
#global #sidebar #sxb-custom ul li a {
max-width: 100px;
}
}
  
/* center StatCounter in sidebar -RKarberg 10/15/2020 */
#global #sidebar #counter h3.sb-custom-title {
text-align: center;
margin-left: 10px;
margin-right: 10px;
}
  
#global #sidebar #counter p {
text-align: center;
margin-left: 10px;
margin-right: 10px;
}
  
/* justify text on site-level pages -RKarberg 10/15/2020 */
#global p.justify-text,
#global li.justify-text {
text-align: justify;
}
  

/* display page numbers on index page -RKarberg 3/4/2021 */
#global .article-list p {
    padding-top:0;
    padding-bottom:0;
}

#global #main.text .article-list p span.doctitle {
    display:block;
    width:320px;
    float:left;
    padding-top:5px;
    margin-right:5px;
}

#global #main.text .article-list p span.auth {
    display:block;
    width: 140px;
    float:left;
    margin-bottom:0;
    padding-top:5px;
}

#global #main.text .article-list p span.pageno {
    display:block;
    width:80px;
    float:left;
    padding-top:5px;
    text-align:right;
}

/* limit sidebar link area aarder/8/25/21 */
#global #sidebar #sb-custom #sidebar-logo-right ul.sb-custom-ul{
max-width: 100px;}

/* align address in sidebar ejennings/1/25/22 */
#global #sidebar #sb-custom {
    float:left;
}

/* centre cfp image in intro text EL 1/19/23 */
#global #main.text #cfp p img {
    max-width: 475px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}