/*
 Theme Name:   PCC Library
 Description:  Theme for PCC Library website, based loosely on the PCC web team's PCC theme
 Author:       PCC Library Digital Services Team
*/

/*---------- global styles ----------*/

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: #0d234c;
  color: #333;
  font-family: Arial, sans-serif;
}

#skip {
  display: block;
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  padding: 0;
}

#skip:focus {
  overflow: visible;
  height: auto;
  width: auto;
  background: #ffffff;
  padding: .15em;
}

.clear {
  clear: both;
}

.clear-left {
  clear: left;
}

.clear-right {
  clear: right;
}

.hidden {
  display: none;
}

.alignright {
  float: right;
  margin: 0 0 10px 20px;
}

.alignleft {
  float: left;
  margin: 0 20px 10px 0;
}

.alignnone {
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

.two-column {
  column-count:2;
  -webkit-column-count:2;
  -moz-column-count:2;
  padding:.5em 0;
}

.two-column ul li,
.two-column a {
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  break-inside: avoid-column;
}

h1, h2 {
  font-family: "Sanchez", Arial, sans-serif;
  font-weight: 400;
}

#content h2 {
  font-family: Arial, sans-serif;
}

h3, h4, h5, h6 {
  font-family: Arial, sans-serif;
  font-weight: 400;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 200%;
}


h3 {
  font-size: 180%;
  line-height: 120%;
  margin: 8px 0 16px;
}


h4 {
  font-size: 150%;
  margin: 16px 0 8px 0;
}


h5 {
  font-size: 120%;
}


h6 {
  font-size: 100%;
  font-weight: bold;
}

p {
  padding: 5px 0 10px;
  margin: 0 0 5px;
  line-height: 150%;
}

a, .pseudo-link {
  color: #255785;
  text-decoration: underline;
}
  
a:hover, .pseudo-link:hover {
  color: #0088a4;
  cursor: pointer;
}

h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

.wp-caption-text {
  font-size: 90%;
  font-style: italic;
}

iframe {
  max-width: 100%;
}


ul, ol {
  font-size: 16px;
  line-height: 20px;
}
  
ul li, ol li {
  padding: 0 0 12px;
  margin: 0;
  line-height: 150%;
}

ul.single-space li, ol.single-space li {
  padding-bottom: 0;
}
  
ul ul li, ol ul li {
  margin-top: 0;
  padding: 7px 0 0;
}

strong, b {
  font-weight: 700;
}

ul.no-bullets {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}
  
ul.no-bullets ul {
  list-style: none;
}

ul.no-margin, ol.no-margin {
  list-style-position: inside;
  margin: 0;
}

table {
  text-align: left;
  border-collapse: collapse;
  margin: 10px 0 20px;
}
  
table th,
table td {
  padding: 8px;
  border: 1px solid #d1d1d1;
}
  
table thead th,
table thead th a {
  font-weight: 700;
  background: #0d234c;
  color: #fff;
}

table tbody th {
  background: #d1d1d1;
}

table td.group-header {
  background-color: #eeeeee;
  font-weight: 700;
}

.doc-red {
  color: #9e0c0f;
}

#sitewide-alert {
  margin: 0;
}

.alert {
  display: block;
  background-color: #f8bb17;
  margin: 0 0 16px 0;
  padding: 8px 8px 8px 56px;
  background-image: url('/library/wp-content/themes/pcc-library/images/alert.png');
  background-repeat: no-repeat;
  background-position: 12px center;
  overflow: auto;
  color: #000000;
}

.alert h3,
.alert h4 {
  font-size: 110%;
}

.callout {
  display: inline-block;
  vertical-align: top;
  text-align: left;
  border: 1px solid #cccccc;
  margin: .5em 1em .5em 0;
  padding: 0;
  background-color: #fff;
  overflow: auto;
}

.callout.block {
  display: block;
  margin: 0 0 1em 0;
}

.callout > h3,
.callout > h4,
.callout > h5,
.callout > h6 {
  background-color: #0088a4;
  border-bottom: 2px solid #005567;
  color: #ffffff;
  font-size: 110%;
  padding: 13px 20px 10px;
  margin: 0;
  font-weight: normal;
}

h4.green,
h5.green,
h6.green,
h4.yellow,
h5.yellow,
h6.yellow,
h4.orange,
h5.orange,
h6.orange,
h4.light-blue,
h5.light-blue,
h6.light-blue {
  font-size: 110%;
  padding: 13px 20px 10px;
  margin: 0;
  overflow: auto;
}

.green > h3,
.green > h4,
.green > h5,
.green > h6,
h4.green,
h5.green,
h6.green {
  background-color: #a9b533;
  border-bottom: 2px solid #484E16;
  color: #000000;
}

.yellow > h3,
.yellow > h4,
.yellow > h5,
.yellow > h6,
h4.yellow,
h5.yellow,
h6.yellow {
  background-color: #f8bb17;
  border-bottom: 2px solid #C08D05;
  color: #000000;
}

.orange > h3,
.orange > h4,
.orange > h5,
.orange > h6,
h4.orange,
h5.orange,
h6.orange {
  background-color: #e77a25;
  border-bottom: 2px solid #944B10;
  color: #000000;
}

.light-blue > h3,
.light-blue > h4,
.light-blue > h5,
.light-blue > h6,
h4.light-blue,
h5.light-blue,
h6.light-blue {
  background-color: #D5EAEE;
  border-bottom: 2px solid #A8D2DB;
  color: #000000;
}

.callout > h3 a,
.callout > h4 a,
.callout > h5 a,
.callout > h6 a {
  color: #ffffff;
  text-decoration: none;
}

.callout > h3 a:hover,
.callout > h4 a:hover,
.callout > h5 a:hover,
.callout > h6 a:hover  {
  text-decoration: underline;
}

.callout p {
  padding: .5em 1em;
}

.callout ul {
  list-style: none;
  padding: .5em 1em;
  margin: 0;
}

.callout ul li {
  padding: .25em 0;
}

.collapsible {
  display: block;
  overflow: auto;
  border: 1px solid #cccccc;
  margin: 16px 0;
}

.collapsible .collapsibletitle {
  margin: 0;
  background-color: #D5EAEE;
  background-image: url('/library/wp-content/themes/pcc-library/images/chevron-black.png');
  background-repeat: no-repeat;
  background-position: 8px center;
  color: #000000;
  cursor: pointer;
  padding: 8px 0px 8px 26px;
  text-decoration: none;
}

.collapsible .collapsibletitle:hover {
  text-decoration: underline;
}

.collapsible div.collapsiblebody,
.collapsible p.collapsiblebody {
  padding: 1em;
}

.related {
  margin: 1em 0;
  padding: 0;
  display: block;
  vertical-align: top;
  border: 1px solid #cccccc;
  overflow: auto;
  clear: left;
}

.related h3,
.related h4 {
  margin: 0;
  padding: 13px 20px 10px;
  font-size: 18px;
  background-color: #D5EAEE;
  border-bottom: 2px solid #A8D2DB;
  color: #000000;
}

.related ul {
  list-style: none;
  padding: .5em 1em;
  margin: 0;
}

.related li {
  display: inline-block;
  padding: 0 1em 0 0;
}

div.tabs .menu-icon {
  display: none;
}

div.tabs .menu-checkbox {
  display: none;
}

div.tabs ul {
  list-style: none;
  margin: 1em 0 0 0;
  padding: 0;
}

div.tabs ul li {
  display: inline-block;
  background-color: #D5EAEE;
  color: #0088A4;
  margin: 0 0 0 5px;
  padding: .5em;
  border-top-left-radius: .25em;
  border-top-right-radius: .25em;
  cursor: pointer;
}

div.tabs ul li.current-tab {
  background-color: #0088A4;
  color: #ffffff;
  cursor: auto;
}

div.tabs ul li a {
  color: #0088A4;
  text-decoration: none;
}

div.tabs ul li.current-tab a {
  color: #ffffff;
}

div.tabbed-content {
  border:1px solid #cccccc;
  padding:1em;
  overflow:auto;
}

.screenshot {
  background: #dddddd;
  padding: 16px;
  text-align: center;
  overflow: auto;
}

.screenshot img {
  float: none;
}


/*---------- containers ----------*/

#main {
  background: #fff;
  padding: 0;
}

#main .row {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 8px;
  overflow: hidden;
}

#content {
  padding: 16px 0;
  overflow: auto;
}

#content div {
  line-height: 150%;
}

#breadcrumbs {
  color: #757575;
  font-size: 90%;
  padding: 0;
  margin: 1em 0 0 0;
}
  
#breadcrumbs a {
  color: #757575;
  padding: 0 2px;
  text-decoration: none;
}

#breadcrumbs a:hover {
  color: #333;
  text-decoration: underline;
}

#page-content {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  padding: 0;
  outline: none !important; 
}

/*---------- sitewide header ----------*/

#sitewide-header {
  background: #0d234c;
  border-top: 5px solid #fbcb43;
  padding: 0 8px;
  overflow: auto;
  min-height: 70px;
}
  
#sitewide-header h1 {
  margin: 0;
  width: 150px;
}

#sitewide-header h1 img {
  margin: 12px 0 8px 0;
  position: absolute;
}

#hnav {
  float: right;
  margin: 9px 0 0;
}

#hnav .menu-icon {
  display: none;
}

#hnav .menu-checkbox {
  display: none;
}

#hnav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

#hnav li {
  padding: 0;
  display: inline;
}

#hnav li a {
  color: #c1c1c1;
  font-size: 13px;
  padding: 5px 10px;
  text-decoration: none;
  text-transform: lowercase;
}

#hnav li a:hover {
  text-decoration: underline;
}

#hnav li a#pcc-nav-home {
  background: url("/library/wp-content/themes/pcc-library/images/pcc-sprites.png");
  background-repeat: no-repeat;
  background-position: 0px -16px;
  padding-left: 22px;
}

#hnav li a#pcc-nav-search {
  background: url("/library/wp-content/themes/pcc-library/images/pcc-sprites.png");
  background-repeat: no-repeat;
  background-position: 0px 4px;
  padding-left: 22px;
}

#hnav li a#pcc-nav-mypcc {
  background: #fbcb43;
  color: #333;
  border-bottom: 2px solid #c08f04;
  margin-left: 7px;
  padding: 15px 10px 7px;
}


/* secondary header */

#secondary-header {
  /*background-color: #182844;*/
  background-color: #0d234c;
  background-image: url('/library/wp-content/themes/pcc-library/images/books-bg.png');
  padding: 0;
  margin: 0;
  overflow: auto;
}

#header-wrapper {
  padding: 16px 8px 8px 8px !important;
}
  
#page-title {
  width: auto;
  float: left;
}

#page-title h2 {
  color: #fff;
  margin: 0;
  padding: 0;
}

#page-title a {
  text-decoration: none;
}

#page-title a:hover {
  text-decoration: none;
}

#page-title a h2 {
  color: #fff;
  margin: 0;
}


/* site search */

#pcc-library-search {
  float: right;
}

#library-site-search input[type="text"] {
  margin: 0;
  width: 18em;
  height: 16px;
  vertical-align: middle;
  padding: 2px;
  display: block;
  float: left;
}

#library-site-search input[type="submit"] {
  display: block;
  float: left;
  background-image: url('/library/wp-content/themes/pcc-library/images/mglass.png');
  background-repeat: no-repeat;
  background-position: 3px 3px;
  background-color: transparent;
  margin: 0 0 0 2px;
  height: 24px;
  width: 24px;
  border: none;
  cursor: pointer;
}

#pcc-library-search ul {
  margin: 0;
  padding: 0;
  display: block;
  clear: both;
}

#pcc-library-search ul li {
  display: inline-block;
  background-position: left center;
  background-repeat: no-repeat;
  padding: 4px 0;
  margin: 0 8px 0 0;
}

#pcc-library-search ul li#myaccounts {
  background-image: url('/library/wp-content/themes/pcc-library/images/user.png');
}

#pcc-library-search ul li#contactus {
  background-image: url('/library/wp-content/themes/pcc-library/images/contact.png');
}

#pcc-library-search ul li#hours {
  background-image: url('/library/wp-content/themes/pcc-library/images/hours.png');
}

#pcc-library-search ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 75%;
  margin: 0 0 0 18px;
}

#pcc-library-search ul li a:hover {
  text-decoration: underline;
}

/* horizontal top nav */

#horizontal {
  position: relative;
  /*background-color: rgba(0, 136, 164, 0.8);*/
  background-image: url('/library/wp-content/themes/pcc-library/images/teal-square.png');
  font-size: 0.8125rem;
  padding: 0;
  margin: 0;
}

#horizontal .menu-icon {
  display: none;
}

#horizontal .menu-checkbox {
  display: none;
}

#horizontal .row {
  overflow-x: auto;
  overflow-y: hidden;
}


/* Menu links */
#library-menu {
  display: inline-block;
  float: left;
}

#library-menu  ul.menu {
  padding: 0;
  margin: 0;
}

#library-menu  ul.menu li {
  display: inline-block;
  margin: 0;
  padding: 0;
}

#library-menu  ul.menu li a {
  display: block;
  padding: 16px;
  color: #ffffff;
  text-decoration: none;
  margin-top: 2px;
}

#library-menu  ul.menu li a:hover {
  background: #0088a4;
  margin-top: 0;
  border-top: 2px solid #fbcb43;
}

/* Ask a Librarian */
#library-chat {
  float: right;
  padding: 6px;
}

#library-chat > a {
  display: inline-block;
  padding: 12px 12px 12px 40px;
  color: #ffffff;
  background-color: #310B4D;
  background-image: url('/library/wp-content/themes/pcc-library/images/chat.png');
  background-position: 4px 4px;
  background-repeat: no-repeat;
  text-decoration: none;
  border-radius: 8px;
}

#library-chat > a:hover {
  text-decoration: underline;
}

#pcc-chat-modal {
  display: none;
  position: fixed;
  margin: .5em;
  z-index: 1000;
  /*background-color: #f3f3f3;*/
  background-color: #ffffff;
  border: 1px solid #cccccc;
  max-width: 300px;
}

#pcc-chat-modal-close {
  width: 1em;
  float: right;
  margin: .25em 0;
  cursor: pointer;
  color: #990000;
}

#pcc-chat-modal .chat,
#pcc-chat-modal > p {
  margin: .5em;
  clear: both;
}

/* Chat widget */

.chat {
  width: 205px;
  margin: 1em auto;
}

.unavailable {
  margin: 0 auto;
  border: 1px solid #CCC;
  text-align: left;
  background-color: #ffffff;
}

.unavailable p {
  margin: 0 .5em;
}


/*---------- sidebar ----------*/

#snav {
  float: right;
  width: 250px;
  margin: 0 0 32px 32px;
}

#snav h3 {
  background-color: #0088a4;
  background-image: url('/library/wp-content/themes/pcc-library/images/header-bg.jpg');
  background-repeat: no-repeat;
  background-size: 120% auto;
  border-bottom: 2px solid #005567;
  color: #fff;
  font-size: 18px;
  padding: 13px 20px 10px;
  margin: 20px 0 0;
}
  
#snav h3 a {
  color: #fff;
  text-decoration: none;
}

#snav h3 a:hover {
  text-decoration: underline;
}

#snav ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
  
#snav ul li {
  border-bottom: 2px solid #e5e5e5;
  background-color: #0A778D;
  margin: 0;
  padding: 0;
}
  
#snav ul li a {
  display: block;
  border-left: 2px solid #0A778D;
  color: #ffffff;
  margin: 0;
  padding: 12px 16px;
  text-decoration: none;
}
  
#snav ul li a:hover,
#snav ul li.current-page a  {
  border-left: 2px solid #FBCB43;
  background-color: #0088A4;
}

#snav ul li.subitem {
  background-color: #E9E9E9;
}

#snav ul li.subitem a {
  color: #333333;
  border-left: 2px solid #E9E9E9;
}

#snav ul li.subitem a:hover,
#snav ul li.subitem.current-page a {
  border-left: 2px solid #0088a4;
  background-color: #dcdcdc;
}

#snav ul li.current-page a {
  pointer-events: none;
  cursor: default;
}


/*---------- sidebar callouts ----------*/

#main .sidebar-callout {
  background-image: none;
  background: #a9b533;
  border-bottom: 2px solid #7c8526;
  padding: 15px 20px 12px;
  width: 100%;
  max-width: 350px;
}
  
#main .sidebar-callout h3,
#main .sidebar-callout h4,
#main .sidebar-callout h5,
#main .sidebar-callout h6 {
  margin: 0;
  font-weight: lighter;
}
  
#main .sidebar-callout p.button {
  background: #6e7521;
  border-bottom: 2px solid #414614;
  color: #fff;
  width: 50%;
}
  
#main .sidebar-callout a {
  color: #333;
}

#main .sidebar-callout a:hover {
  color: #255785;
}
  
#main .sidebar-callout img {
  border: none;
  float: left;
  width: 30%;
}
  
#main .sidebar-callout .callout-content {
  float: right;
  width: 65%;
}

#main .sidebar-callout .callout-content p.button {
  background: #6e7521;
  border-bottom: 2px solid #414614;
  color: #fff;
  width: 100%;
}


/*---------- back to top ----------*/

#back-to-top {
  display: none;
  position: fixed;
  bottom: .25em;
  right: .25em;
  padding: .5em;
  background-color: #0088a4;
  color: #ffffff;
  cursor: pointer;
  border-radius: .5em;
  font-size: 90%;
}

#back-to-top:hover {
  text-decoration: underline;
}

/*---------- footer (/layout/_footer.scss) ----------*/

footer {
  padding: 32px 8px 32px 8px;
  overflow: hidden;
}
  
footer p {
  color: #fff;
  font-size: 15px;
  text-align: center;
}

footer p#links {
  font-size: 14px;
  padding: 0;
}

footer p#links a {
  color: #fff;
}

footer #loginout {
  display: none;
}

/*---------- responsive styles ----------*/

/* Medium screens: max-width 1024px */
@media only screen and (max-width: 1024px) {
  
  /* Tabs */
  div.tabs {
    margin-bottom: 1em;
    overflow: auto;
  }
  
  div.tabs .menu-icon {
    display: block;
    margin: 0;
    background-color: #0088A4;
    background-image: url('/library/wp-content/themes/pcc-library/images/chevron-down.png');
    background-repeat: no-repeat;
    background-position: 8px center;
    color: #ffffff;
    cursor: pointer;
    padding: 8px 0px 8px 26px;
    text-decoration: none;
  }

  div.tabs ul {
    list-style: none;
    margin: 0 0 0 0;
    padding: .5em 0;
    display: none;
    background-color: #D5EAEE;
  }
  
  div.tabs .menu-checkbox:checked ~ ul {
    display: block;
  }

  div.tabs ul li {
    display: list-item;
    background-color: inherit;
    color: #0088A4;
    margin: 0 0 .5em 0;
    padding: .25em .5em;
    cursor: pointer;
  }

  div.tabs ul li.current-tab {
    background-color: #D5EAEE;
    color: #0088A4;
    cursor: pointer;
  }
  
  div.tabs ul li:hover {
    text-decoration: underline;
  }
  
  div.tabs ul li.current-tab a {
    color: #0088A4;
  }
  
  /* Images */
  img.size-full.alignleft,
  img.size-full.alignright,
  img.size-medium.alignleft,
  img.size-medium.alignright,
  .wp-caption.alignleft,
  .wp-caption.alignright,
  div.alignleft,
  div.alignright {
    display: block;
    width: auto;
    float: none;
    padding: 0;
    margin: .5em auto 1em auto;
    overflow: auto;
  }
  
  .callout img.size-full.alignleft,
  .callout img.size-full.alignright,
  .callout img.size-medium.alignleft,
  .callout img.size-medium.alignright,
  .callout div.alignleft,
  .callout div.alignright {
    margin-bottom: 0;
  }
  
}

/* Small screens: max-width 640px */
@media only screen and (max-width: 640px) {

  .two-column {
    column-count:1;
    -webkit-column-count:1;
    -moz-column-count:1;
  }

  /* PCC Menu */
  #hnav {
    line-height: 1;
  }
  
  #hnav .menu-icon {
    display: inline-block;
    font-size: 90%;
    color: #ffffff;
    cursor: pointer;
    padding-left: 22px;
    background-image: url('/library/wp-content/themes/pcc-library/images/menu-icon.png');
    background-repeat: no-repeat;
  }
  
  #hnav .menu-checkbox ~ ul {
    background: #eeeeee;
    width: 100px;
    display: none;
  }
  
  #hnav .menu-checkbox:checked ~ ul {
    display: block;
    position: absolute;
    margin-top: 8px;
  }
  
  #hnav ul li {
    display: list-item;
    padding: 4px 0;
  }
  
  #hnav li a {
    color: #000000;
  }
  
  #hnav li a#pcc-nav-mypcc {
    background: inherit;
    padding: 0 0 0 22px;
    margin: 0;
    border: none;
  }
  
  /* secondary header */
  #pcc-library-search {
    margin: 16px 0 0 0;
    float: left;
    clear: both;
  }
  
  #pcc-library-search input[type="text"] {
    max-width: 16em;
  }
  
  /* horizontal nav */
  #pcc-chat-modal {
    top: 0;
  }
  
  #library-chat {
    display: none;
  }
  
  #library-menu {
    display: block;
    line-height: 1;
  }
  
  #library-menu .menu-icon {
    display: block;
    font-size: 120%;
    margin: 8px;
    padding-left: 22px;
    color: #ffffff;
    cursor: pointer;
    background-image: url('/library/wp-content/themes/pcc-library/images/menu-icon.png');
    background-repeat: no-repeat;
  }
  
  #library-menu div.menu-top-links-container {
    display: none;
  }
  
  #library-menu .menu-checkbox:checked ~ div.menu-top-links-container {
    display: block;
  }

  #library-menu  ul.menu li {
    display: list-item;
    padding: 4px 0;
  }

  #library-menu  ul.menu li a {
    padding: 4px 0 4px 22px;
    margin: 0;
    color: #ffffff;
    text-decoration: none;
  }

  #library-menu  ul.menu li a:hover,
  #library-menu  ul.menu li a:focus {
    background: #0088a4;
    margin: 0;
    border: none;
  }

  
  /* sidebar */
  #snav {
    display: none;
  }

}

/* Meta Slider Plugin hack */
.flexslider ul {
  overflow: hidden;
}

/* Forms */
.hide-label label.gfield_label {
  display: none !important;
}

.gform_wrapper select {
  padding: .313em;
}

.stats-confirmation {
  color: green;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* Print styles */
@media print {
  @page {
    size: portrait;
  }
  
  body {
    background: transparent;
    font-size: 12pt;
  }

  header#sitewide-header,
  header#secondary-header,
  #breadcrumbs,
  #snav,
  footer {
    display: none;
  }
  
  #main .row {
    max-width: 100%;
    overflow: visible;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }
  
  div.tabs {
    display: none;
  }
  
  div.tabbed-content {
    border: none;
    padding: 0;
  }
  
}

/* Webkit hack for Android Jelly Bean and lower */
/* Corrects bug when :checked and sibling (~/+) selectors are used together */
body { -webkit-animation: bugfix infinite 1s; }

@-webkit-keyframes bugfix {
  from { padding: 0; }
  to { padding: 0; }
}