/*
Theme Name: EJIL (2017)
Theme URI:
Description: Responsive Bootstrap-based WP custom theme
Author: The Paciello Group
Author URI: http://www.paciellogroup.com
Version: 1.0
Tags: responsive, bootstrap

Colors
Blue 1: #4C6296 (banner);
Blue 2: #003787 (links);
Blue 3: #CAD4EC;
Blue 4: #E2E6F2;
*/

html {
    font-family: 'Open Sans', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: calc(0.8em + 0.10vw);
}

body {
  font-family: inherit;
  font-size: inherit;
}

a {
  color: #003787;
}

a:focus {
  outline: 2px solid #FFA500;
}

main {
  border-bottom: 1px solid #CAD4EC;
}

main a {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-weight: normal;
  line-height: 1.1;
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.3rem;
}

h3 {
  font-size: 1.2rem;
}

ul.remove-list-style {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.remove-list-style li {
  margin: 0;
  padding: 0;
}

.content a[href^="http"]:not([href*="127.0.0.1"]):not([href*="163.172.132.204"])::after {
  content: '(external link)';
  display: inline-block;
  width: 1em;
  height: 1em;
  text-indent: 1em;
  white-space: nowrap;
  overflow: hidden;
  background-image: url(../images/Icon_External_Link.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 75% auto;
}

.bg-blue1 {
  background-color: #4C6296;
}

.bg-blue3 {
  background-color: #CAD4EC;
}

.bg-blue4 {
  background-color: #E2E6F2;
}

a.full {
  display: block;
  color: #ffffff;
  background-color: #4C6296;
  text-decoration: none;
  text-align: center;
  margin: 1em 0;
  padding: 0.2em;
  font-weight: bold;
}

.generalpage h1 {
  text-align: center;
  text-transform: uppercase;
  font-weight: bold;
  display: table;
  white-space: nowrap;
  margin: 1em 15px;
  padding: 0;
}

.generalpage h1:before,
.generalpage h1:after {
  border-top: 1px solid #000000;
  content: '';
  display: table-cell;
  position: relative;
  top: 0.6em;
  width: 45%;
}

.generalpage h1:before { right: 1.5%; }
.generalpage h1:after { left: 1.5%; }

/* Header */
header #primaryNav {
  border-top: 1px solid #003787;
  border-bottom: 3px solid #003787;
}

header .nav-tabs.nav-justified {
  color: #003787;
}

header .nav-tabs.nav-justified a {
  border: none;
  font-size: 1.1em;
  text-transform: uppercase;
  border-radius: 0;
  padding: 0.3em 0.7em;
}

header .nav-tabs.nav-justified li.current-page-item a {
  background-color: #003787;
  color: #ffffff;
}

header > .pre-nav {
  position: relative;
}

header #logo {
  height: 5em;
}

header #metaNav {
  position: absolute;
  top: 1em;
  right: 2em;
}

header #metaNav li {
  display: inline-block;
}

header #metaNav a {
  color: #000000;
  padding: 0 0.5em;
  display: inline-block;
  font-weight: bold;
}

header #metaNav form,
header #metaNav nav {
  display: inline-block !important;
}

header input#keywords {
  display: inline-block;
  background: url(../images/search.svg) 100% 50% no-repeat;
  background-size: auto 90%;
  border: 1px solid #003787;
  padding-left: 0.5em;
  width: 5rem;
}

header input#keywords:focus,
header input#keywords:hover {
  width: 15rem;
}

/* Footer */
footer {
  background: #E2E6F2;
  text-align: center;
  padding: 1em;
  margin-top: 0.2em;
}

footer ul.logos li {
  margin: 1em;
  display: inline-block;
}

footer ul.logos li img {
  max-height: 100px;
  max-width: 150px;
}

/**
 * Homepage
 */

/* Home page banner */
#frontpage #banner {
  background: #4C6296 url(../images/home_banner.png) 50% 0 no-repeat;
  min-height: 300px;
  padding-top: 300px;
  background-size: auto 300px;
  color: #ffffff;
  display: flex;
}

#frontpage #banner .issue {
  flex: 1;
  padding: 0 140px 0 0;
  text-align: right;
  background: url(../images/m_cover.png) 95% 50% no-repeat;
  justify-content: center;
  flex-direction: column;
  display: flex;
  min-height: 175px;
}

#frontpage #banner .issue a {
  font-weight: bold;
}

#frontpage #banner .issue > div {
  align-self: center;
}

#frontpage #banner .description {
  flex: 3;
  padding: 0 0.5em;
}

#frontpage #banner .description a {
  font-weight: bold;
  margin: 0 1em 0.5em 0 ;
  display: inline-block;
}

#frontpage #banner h1 {
  font-size: 1.4rem;
  font-weight: bold;
}

#frontpage #banner a {
  color: #ffffff;
}

#frontpage #banner p {
  text-align: justify;
}

#frontpage #banner .buttons {
  flex: 2;
  padding: 1em 0.5em;
}

#frontpage #banner .buttons ul {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

#frontpage #banner .buttons a {
  background: #003787;
  text-decoration: none;
  padding: 0.5em;
  display: block;
}

#frontpage #banner .buttons a.yellow {
  background: #F6BB54;
  color: #000000;
}

/* Home page Content */
#frontpage h2 {
  text-align: center;
  text-transform: uppercase;
  font-size: 1.4em;
  font-weight: bold;
  display: table;
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

#frontpage h2:before,
#frontpage h2:after {
  border-top: 1px solid #000000;
  content: '';
  display: table-cell;
  position: relative;
  top: 0.6em;
  width: 45%;
}

#frontpage h2:before { right: 1.5%; }
#frontpage h2:after { left: 1.5%; }

#frontpage .subcontent [class*="bg-"] {
  margin: 1em 0;
  padding: 0.5em 1em;
}

.ejiltalk-homepage {
  background: url('../images/ejiltalk.png') 50% 50% no-repeat;
  width: 100%;
  height: 6rem;
  background-size: 100% auto;
}

@media (max-width: 1199px) {
  #frontpage #banner {
    padding-top: 220px;
    background-size: auto 220px;
  }
}

@media (max-width: 768px) {
  #frontpage #banner {
    display: block;
  }
}

/* Home page various */
ul.articles li a.authors {
  display: block;
  font-weight: bold;
}

ul.rss-feed .date {
  display: block;
  font-weight: bold;
}

ul.rss-feed .author {
  font-style: italic;
  margin-top: 0.5em;
}

/* Current issue */
.issue .articles .authors,
.current-issue .articles .authors {
  display: block;
  font-weight: bold;
}

.issue .articles .col-md-6,
.current-issue .articles .col-md-6 {
  margin-bottom: 1em;
}

/* Article */
.article .title {
  font-weight: bold;
}

.article ul.authors {
  font-style: italic;
  padding: 0;
  margin: 0;
  list-style: none;
}

.article ul.authors li {
  padding: 0;
  margin: 0 1em 0 0;
  display: inline-block;
}

.article ul.authors a {
  vertical-align: super;
  font-size: 0.8em;
}

ul.authors_infos {
  font-size: 0.8em;
}

ul.authors_infos a {
  margin-right: 0.8em;
}

/* Live! */
ul.live-episodes li, ul.podcast li {
  margin: 0 0 1em 0;
}

ul.live-episodes .issue,
ul.live-episodes .date {
  display: block;
  font-style: italic;
}

ul.live-episodes a, ul.podcast a {
  font-weight: bold;
}

ul.live-episodes .secondary {
  display: block;
}

/* Books */

.filters {
  padding-top: 1em;
}

.filters ul {
  margin: 0.5em 0;
}

.filters ul li {
  display: inline-block;
  margin-right: 0.5rem;
}

.filters ul li.current {
  padding: 0.5rem;
  background: #003787;
  color: #ffffff;
  border: 1px solid #003787;
  min-width: 2em;
  text-align: center;
}

.filters ul li a {
  display: inline-block;
  padding: 0.5rem;
  border: 1px solid #003787;
  text-decoration: none;
  min-width: 2em;
  text-align: center;
}

.navigation {
  float: right;
}

.navigation a {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.5rem;
  border: 1px solid #003787;
  text-decoration: none;
  min-width: 2em;
  text-align: center;
}

ul.books li {
  margin-bottom:1rem;
}

.books .authors {
  display: block;
  font-weight: bold;
}

ul.articles li {
  margin-bottom: 1rem;
}
/* general page banner */
.generalpage #banner {
  background: #E2E6F2 url(../images/banner1.png) 50% 0 no-repeat;
  background-size: auto 100%;
}

.generalpage #banner ul {
  background: #E2E6F2;
  text-align: left;
  display: inline-block;
}

.generalpage #banner ul li {
  margin: 0
}

.generalpage #banner ul a {
  display: block;
  font-weight: bold;
  color: #000000;
  padding: 0.5em 2em;
}

.generalpage #banner ul li.current-page-item a {
  background: #003787;
  color: #ffffff;
}

/* Search page */
#search-page .title {
  font-weight: bold;
}

#search-page .type-book .title:before {
  content : 'Book - ';
}

#search-page .type-article .title:before {
  content : 'Article - ';
}

/* Archives */
.volumes li {
  display: inline-block;
  padding: 0.2rem;
}

/* About */
.columns {
  display: flex;
  flex-direction: row;
}

.column {
  width: 50%;
}

/* Podcasts */
#podcastspage {
  font-size: 1.2rem;
}

.podcast {
  padding: 1rem;
}
