/**
 * @file
 * Visual styles for Newsplus Lite's pager.
 */

/* Using .pager selector on the first one to override .region-content ul. */
.pager .pager__items {
  margin: 80px 0 20px;
  padding: 0;
  text-align: left;
}
li.pager__item {
  padding: 0;
  margin: 0 15px 0 0;
  border-bottom: none;
  font-size: 12px;
}
li.pager__item > a {
  padding: 9px 17px;
  border: none;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  border-radius: 0px;
  line-height: 1;
  background-color: #dddddd;
  display: inline-block;
}
li.pager__item > a:hover {
  background-color: transparent;
  color: #ffffff;
}
li.pager__item > a:focus {
  background-color: #dddddd;
}
li.pager__item.is-active > a {
  color: #ffffff;
  line-height: 1;
}

/* -------------------------------------------------------------------------
 * Drupal 11 pager markup.
 * D11 outputs <ul class="js-pager__items"> with class-less <li> elements
 * (no .pager / .pager__item classes), so the rules above no longer match and
 * the items render as a default bulleted list. Mirror the styling onto the
 * D11 markup so the pager looks like prod (grey page buttons, left aligned).
 * ------------------------------------------------------------------------- */
.js-pager__items {
  list-style: none;
  margin: 80px 0 20px;
  padding: 0;
  text-align: left;
  /* inline-flex so the <ul> sizes to its items; a plain block flex container
     collapses to width:0 inside the class-less pager <nav> and wraps each item
     onto its own line. */
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
}
.js-pager__items > li {
  list-style: none;
  padding: 0;
  margin: 0 15px 0 0;
  border-bottom: none;
  font-size: 12px;
}
.js-pager__items > li > a {
  padding: 9px 17px;
  border: none;
  border-radius: 0px;
  line-height: 1;
  background-color: #dddddd;
  display: inline-block;
  text-decoration: none;
}
.js-pager__items > li > a:hover {
  background-color: #2D5D2A;
  color: #ffffff;
}
.js-pager__items > li > a:focus {
  background-color: #dddddd;
}
.js-pager__items > li.is-active > a,
.js-pager__items > li.pager__item--current {
  color: #ffffff;
  line-height: 1;
}

/* "Load More" pagers (About Papa Johns view + Media Center multimedia) are
   centred and flanked by decorative 25%-wide rules drawn with li::before/::after
   (see layout.css). They must be full-width block containers, so override the
   inline-flex default above for these specific views. */
.view-about-papa-johns .js-pager__items,
#block-views-block-media-center-multimedia-block-1 .js-pager__items {
  display: block;
  width: 100%;
  text-align: center;
}
.view-about-papa-johns .js-pager__items > li,
#block-views-block-media-center-multimedia-block-1 .js-pager__items > li {
  display: block;
}
