/*
 * Config
 *
 * Breakpoint values (min-width):
 * - Mobile: < 480px
 * - Medium: 480px
 * - Med-Large: 640px
 * - Large: 960px
 * - Container padding: 16px
 */

/*
 * Basics
 */

/* Apply a natural box layout model to all elements, but allowing components to change - Paul Irish */
html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.clearfix:after {
  content: '';
  display: table;
  clear: both;
}

a {
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

#container {
  padding: 0 16px; /* Container padding */
  margin: 0 auto;
  width: 100%;
}
@media screen and (min-width: 480px) {
  /* break-medium */
  #container {
    width: 95%;
  }
}
@media screen and (min-width: 960px) {
  /* break-large */
  #container {
    width: 972px; /* 940px + 2 * 16px padding */
  }
}

/*
 * Custom
 */

body {
  font-size: 16px;
  color: #333;
}
@media screen and (min-width: 480px) {
  /* break-medium */
  body {
    background: url("/static/images/bg/light_trials_024.540aeb1af57d.jpg") no-repeat center center fixed;
    background-size: cover;
    padding-top: 1em;
    padding-bottom: 1em;
  }
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #333;
}

a {
  color: #04a;
}

p,
ul,
ol {
  font-size: 16px;
  line-height: 24px;
  font-family: Georgia;
  color: black;
}

ul,
ol {
  padding: 0;
  margin-top: 0;
  margin-left: 1.6em;
  margin-bottom: 1em;
}

li {
  color: #808080;
  line-height: 22px;
}

#container {
  background-color: #fffcfc;
  border-radius: 2px;
}

div.field_wrapper {
  margin-left: 0.5em;
  padding-left: 0.5em;
  border-left: 1px dotted #ccc;
  margin-bottom: 0.5em;
}

.prev_next_bar {
  font-size: 80%;
  color: #666;
}

.prev_next_bar a {
  color: #69f;
}

.prev_next_bar .prev {
  float: left;
}

.prev_next_bar .next {
  float: right;
}

.diff-deleted {
  background-color: #fcc;
}

.diff-added {
  background-color: #cfc;
}

header {
  padding-top: 1.3em;
  padding-bottom: 2.3em;
  display: flex;
  align-items: end;
  justify-content: space-between;
}
header h1 {
  font-size: 48px;
  font-family: Georgia;
  font-variant: small-caps;
  margin: 0;
  padding: 0;
}
header h1 a {
  color: #555;
}
header h1 a:hover {
  text-decoration: none;
}
@media screen and (max-width: 479px) {
  /* < break-medium */
  header h1 {
    text-align: center;
  }
  header h1 a {
    color: #333;
  }
}
header .search {
  display: flex;
  margin-bottom: 8px;
}
header .search input[type='text'] {
  padding: 6px;
  border: 1px solid #aaa;
  border-radius: 4px 0 0 4px;
}
header .search input[type='text']:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px blue;
}
header .search button {
  width: 32px;
  height: 32px;
  padding: 6px;
  background: white;
  border: 1px solid #aaa;
  border-left: none;
  border-radius: 0 4px 4px 0;
}
header .search button:hover {
  background: #f0f0f0;
}
@media screen and (max-width: 959px) {
  /* < break-large */
  header {
    flex-direction: column;
  }
  header .search {
    margin-top: 1rem;
  }
}

@media screen and (max-width: 639px) {
  /* < break-med-large */
  body:not(.index) header h1 {
    font-size: 32px;
  }
}

h2 {
  font-size: 40px;
  margin: 0;
}

h3 {
  font-size: 30px;
  margin-bottom: 0;
  margin-top: 1em;
}

h2.title-version {
  color: #666;
  font-size: 16px;
  margin-bottom: 0.75em;
}

div.page-title {
  margin-bottom: 0.5em;
}

h2.title-version a {
  color: #66c;
}

ul.other-versions a.compare {
  font-variant: small-caps;
  font-weight: bold;
}

ul.other-versions span.compare {
  font-variant: small-caps;
  font-weight: bold;
  color: #666;
}

footer {
  margin-bottom: 1em;
  padding-bottom: 6px;
  text-align: center;
  color: #666;
  margin-top: 4em;
}

#index-table {
  width: 100%;
  margin-top: -1em; /* Compensate for track-list-outer's 2em padding-top :) */
}
#index-table div.track-list-outer {
  padding-left: 1em;
  padding-right: 1em;
  padding-top: 2em; /* Gives us leeway to bring tl-continues upward */
  padding-bottom: 0em;
}
@media screen and (max-width: 479px) {
  /* < break-medium */
  /* Make Have One On Me's track lists closer together vertically.
     Simply looks wrong otherwise. */
  #index-table div.track-list-outer.tl-continue {
    padding-top: 0.25em;
  }
  #index-table div.track-list-outer.tl-continue .title {
    display: none;
  }
}
@media screen and (min-width: 480px) and (max-width: 959px) {
  /* break-medium to break-large */
  #index-table div.track-list-outer {
    float: left;
  }
  #index-table div.track-list-outer:nth-child(odd) {
    width: 50%;
    clear: left;
  }
  /* Hack alert! This is a special case for the third
     tracklist of Have One On Me. That's the only cell
     this style applies to. The effect is to push Divers
     onto a new row. It simply looked wrong otherwise. */
  #index-table div.track-list-outer:nth-child(odd).tl-continue {
    width: 100%;
    padding-top: 0.25em;
  }
  #index-table div.track-list-outer:nth-child(odd).tl-continue .title {
    display: none;
  }
  #index-table div.track-list-outer:nth-child(even) {
    width: 50%;
  }
}
@media screen and (min-width: 960px) {
  /* break-large */
  #index-table div.track-list-outer {
    float: left;
  }
  /* These were empirically determined, i.e. copied from
     when it was a table. Total width in pixels was 940
     (960 minus padding on either side) and column widths
     were 309, 226, and 405. */
  #index-table div.track-list-outer:nth-child(3n + 1) {
    width: 32.87%;
    clear: left;
  }
  #index-table div.track-list-outer:nth-child(3n + 2) {
    width: 24.04%;
  }
  #index-table div.track-list-outer:nth-child(3n + 3) {
    width: 43.09%;
  }
}
#index-table .title {
  font-weight: bold;
  font-size: 16px;
  margin-bottom: 2px;
}
#index-table li.nolyrics a {
  color: #808080;
}

p.lyrics {
  border-left: 2px dotted #eee;
  padding-left: 0.5em;
  margin-top: 1.5em;
}

p.notes {
  margin-top: 0;
  max-width: 30em;
}

div.vs {
  line-height: 1em;
  margin-bottom: 0.5em;
}

/*
 * Fake Bootstrap grid
 * Used exclusively on comparison page?
 */

.row:before,
.row:after {
  display: table;
  content: '';
}

div.offset6 {
  /* Was "offset6" in Bootstrap grid, out of 16 columns */
  margin-left: 38.5%;
}

div.offset8 {
  margin-left: 50%;
}

div.span8 {
  width: 50%;
  float: left;
  display: inline;
}

/*
 * Disqus
 */

/* Hide ads */
#disqus_recommendations {
  display: none;
}

/* Hide ads */
#disqus_thread iframe[sandbox] {
  max-height: 0px !important;
}

#disqus_thread {
  border-top: 1px solid #eeeeee;
  font-size: 12px;
}

#disqus_thread h3 {
  display: none;
}

#dsq-subscribe {
  display: none;
}

#disqus_thread {
  margin: 16px;
}

#dsq-sort-by {
  display: none;
}

#dsq-content .dsq-comment-text {
  color: black;
}

/*
 * Search
 */

.search-results {
  margin-top: 2rem;
  margin-left: 3rem;
  font-family: Georgia, serif;
}
.search-results em {
  font-weight: bold;
  font-style: normal;
}
.search-results blockquote {
  margin-left: 0;
  color: black;
  font-size: 1rem;
  margin-top: 0.25rem;
  font-family: Georgia, serif;
}
.search-results li {
  font-size: 16px;
  line-height: 22px;
  margin-bottom: 2rem;
}
.search-results .result-from {
  display: block;
  font-size: 0.875rem;
  font-style: italic;
}
