/*
 ██████  ██████  ███    ██ ███████ ██      ██  ██████ ████████ ██      ██ ███████ ████████
██      ██    ██ ████   ██ ██      ██      ██ ██         ██    ██      ██ ██         ██
██      ██    ██ ██ ██  ██ █████   ██      ██ ██         ██    ██      ██ ███████    ██
██      ██    ██ ██  ██ ██ ██      ██      ██ ██         ██    ██      ██      ██    ██
 ██████  ██████  ██   ████ ██      ███████ ██  ██████    ██    ███████ ██ ███████    ██
*/

/* Object: Conflict List */
.o-conflictList {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 75vh;
  padding: 2em 0;
}
  .o-conflictList--item {
    box-sizing: border-box;
    flex: 0 0 auto;
    margin: 0 auto;
    max-width: 1120px;
    padding: 2em 0;
    width: 100%;
  }
  .o-conflictList--count {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    order: 1;
  }
  .o-conflictList--header {
    max-width: calc(1120px - 2em);
    order: 2;
  }
  .o-conflictList--navigation {
    max-width: calc(1120px + 1em);
    order: 3;
    padding-top: 0;
  }

/* Component: Conflict Link */
.c-conflictLink {
  align-items: center;
  color: #FFFFFF;
  display: flex;
  padding: 1em 0 1em 1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.35s ease;
}
  .c-conflictLink--container {}
  .c-conflictLink--chevron {
    color: #8D795A;
    flex: 0 0 auto;
    opacity: 0.75;
    padding: 0 1em;
    transition: opacity 0.35s ease;
  }
  .c-conflictLink--children,
  .c-conflictLink--dates {
    flex: 0 1 auto;
    font-size: 0.75em;
    margin: 0.33333333em 0 0 0;
  }
  .c-conflictLink--date {}
    .c-conflictLink--date-ongoing {
      font-style: italic;
    }
  .c-conflictLink--label {
    flex: 1 1 auto;
  }
  .c-conflictLink--name {
    font-weight: 700;
    line-height: 1.25em;
  }

  .c-conflictLink:active, .c-conflictLink:focus, .c-conflictLink:hover {
    background-color: rgba(0, 0, 0, 0.1);
  }
    .c-conflictLink:active .c-conflictLink--chevron,
    .c-conflictLink:focus .c-conflictLink--chevron,
    .c-conflictLink:hover .c-conflictLink--chevron {
      opacity: 1;
    }

/* Component: Conflict Navigation */
.c-conflictNavigation {}
  .c-conflictNavigation--container {}
  .c-conflictNavigation--item {
    box-sizing: border-box;
  }
  .c-conflictNavigation--item:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0.125em 0.25em rgba(0, 0, 0, 0.25);
  }

/*
 ██████  ███    ███ ███████ ██████  ██  █████
██    ██ ████  ████ ██      ██   ██ ██ ██   ██
██ ██ ██ ██ ████ ██ █████   ██   ██ ██ ███████
██ ██ ██ ██  ██  ██ ██      ██   ██ ██ ██   ██
 █ ████  ██      ██ ███████ ██████  ██ ██   ██
*/

@media (min-width: 768px), print {

  /* Object: Conflict List */
  .o-conflictList {
    background-attachment: fixed;
    background-image: url('../img/conflict/list/background.png');
    background-position: center left;
    background-repeat: no-repeat;
    background-size: cover;
    text-shadow: 0 0 1em rgba(0, 0, 0, 0.5);
  }
    .o-conflictList--count {
      order: 2;
    }
    .o-conflictList--header {
      order: 1;
    }
    .o-conflictList--navigation {
      order: 3;
      padding: 1em 0;
    }

  /* Component: Conflict Link */
  .c-conflictLink {
    align-items: stretch;
    background-color: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 0.5em;
    box-shadow: 0.125em 0.125em 0.25em rgba(0, 0, 0, 0.25);
    color: #FFFFFF;
    flex: 1 1 auto;
    padding: 1em;
    text-align: center;
  }
    .c-conflictLink--container {
      align-items: stretch;
      display: flex;
      justify-content: center;
    }
    .c-conflictLink--chevron {
      display: none;
    }
    .c-conflictLink--label {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .c-conflictLink:active, .c-conflictLink:focus, .c-conflictLink:hover {
      background-color: rgba(0, 0, 0, 0.55);
      border-color: rgba(255, 255, 255, 0.1);
      color:#FFFFFF;
    }

  /* Component: Conflict Navigation */
  .c-conflictNavigation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0.5em;
  }
    .c-conflictNavigation--container {}
    .c-conflictNavigation--item {
      flex: 0 1 33.33333333%;
      padding: 0.5em;
    }
    .c-conflictNavigation--item:nth-child(odd) {
      background-color: transparent;
      box-shadow: none;
    }

}

@media print {

  /* Object: Conflict List */
  .o-conflictList {
    background: none;
    min-height: 0;
    text-shadow: none;
  }
    .o-conflictList--count {
      order: 1;
    }
    .o-conflictList--header {
      order: 2;
    }
    .o-conflictList--navigation {
      padding: 0 0.5em;
    }

  /* Component: Conflict Link */
  .c-conflictLink {
    background: transparent;
    border: none;
    box-shadow: none;
    break-inside: avoid;
    color: #000000;
    flex-direction: column;
    padding: 1em 0;
    text-align: left;
  }
    .c-conflictLink--container {
      display: block;
    }
    .c-conflictLink--children,
    .c-conflictLink--dates {
      flex: 0 1 auto;
      font-size: 1em;
    }
    .c-conflictLink--label {
      flex-direction: row;
    }
    .c-conflictLink:after {
      content: '(' attr(href) ')';
      color: #0000FF;
      font-size: 0.75em;
      line-height: 1.33333333em;
      margin: 0.5em 0 0 0;
      text-decoration: underline;
    }

  /* Component: Conflcit Navigation */
  .c-conflictNavigation {
    display: block;
    padding: 0;
  }
    .c-conflictNavigation--item {
      border-bottom: 1px solid #000000;
      padding: 0;
    }
    .c-conflictNavigation--item:nth-child(odd) {
      background: none;
      box-shadow: none;
    }
    .c-conflictNavigation--item:last-child {
      border-bottom: 0 none transparent;
    }

}
