@charset "utf-8";

@import "../initial";

// 
// Widget
// 
// Widget 
// ## gerenral styles
.w-archive {
  .w-archive__widget-title {
    font-family: $main-font;
    font-size: $w-widget-title-font-size;
    color: $theme-gray;
    margin: 0.5rem 0;
  }
}

// Widget 1
.widget-archive-1 {
  .w-archive__list.level-1 {
    padding: 0.5rem;
  }

  .w-archive__item.level-1 {
    list-style-position: inside;
    margin-bottom: 0.8rem;
  }

  .w-archive__item-heading {
    display: inline-block;
    font-size: $w-item-heading-font-size;
    font-family: $main-font;
    color: $theme-gray;
    margin: 0;
    padding-bottom: 0.25rem;
  }

  .w-archive__list.level-2 {
    margin: 0;
    padding: 0;
  }

  .w-archive__item.level-2 {
    border-bottom: 0.0625em dashed $w-border-color;
    padding: 0 0 0.5rem 0.4rem;
  }

  .w-archive__link {
    font-size: $w-title-font-size-small;
  }
}
.i-archive {
  .i-archive__page-title {
    display: none;
  }
  .i-archive__category-title {
    color: $widget-title-color;
    font-size: 1.15em;
    font-weight: 700;
  }
  .i-archive__item-wrap {
    margin: 0 0 10px 0;
    background: url(/assets/fh2.gif) 0 0 no-repeat;
    padding: 0 0 0 15px;
    line-height: 20px;
    font-size: 1em;
  }
  .i-archive-title {
    @extend .unity-title;
  }
}
// Archive index 1
.index-archive-1 {
  font-family: $main-font;

  .i-archive__archive-title {
    font-size: 1rem;
    margin-bottom: 0.625em;
    vertical-align: top;
  }

  .i-archive__status-wrap {
    vertical-align: top;
    display: inline-block;
    margin-bottom: 0.625em;
  }

  .i-archive__item {
    margin-bottom: 2.5em;
  }

  .i-archive__category-list {}

  .i-archive__category-title {
    padding-bottom: 0.3125em;
  }

  .i-archive__category-item {
    display: inline;
    font-size: 0.8125rem;
  }

  .i-archive__item-wrap {}

  .i-archive__file-list {
    display: block;
    margin-bottom: 0.8em;
  }

  .i-archive__file-wrap {
    margin: 0 0.625rem 1em 0;
    padding: 0.5em 0.75em;
    border-radius: 0.125em;
    border: 0.0625em solid lighten($theme-gray-light, 10%);
  }

  .i-archive__file-name {
    font-size: 0.750em;
    font-size: 0.75rem;
  }
}

.index-archive-2,
.index-archive-4 {
  .panel {
    font-family: $main-font;
    margin-bottom: 0.625em;
  }

  .panel-title {
    font-family: $main-font;
  }

  .i-archive-tags {
    margin-bottom: 0;
  }

  .i-archive-files-item {
    font-size: 0.813em;
    font-family: $main-font;
  }

  .i-archive-files-list {
    dd {
      margin-bottom: 1em;
    }
  }

  .i-archive-tag-name {
    margin-bottom: 0.5em;
    font-size: 0.9375rem;
    display: inline-block;
  }

  @media screen and (min-width: $screen-sm) {
    .dl-horizontal {
      dt {
        text-align: left;
      }
    }
  }
}

.has-archive-tab {
  .i-tag__item {
    display: none;
  }

  .tab-content--active {
    display: block !important;
  }

  .i-archive__tag-name {
    cursor: pointer;
  }
}

.index-archive-3 {
  .i-archive__tag-name {
    background-color: $theme-color-main;
    color: $theme-white;
    font-family: $main-font;
    display: inline-block;
    padding: 0.625em 0.75em;
    margin-right: 0.3125em;
    border-radius: 0.25em;
    font-size: 0.938em;

    &:hover {
      background-color: darken($theme-color-main, 7%);
    }

    &.tab--active {
      background-color: darken($theme-color-main, 7%);
    }
  }

  .tab-content {
    background-color: lighten($theme-gray, 65%);
    padding: 20.3125em;
  }

  .i-archive__category-item {
    margin-bottom: 0.5em;
  }

  .i-archive__category-title {
    font-family: $main-font;
  }

  .i-archive__archive-title {
    font-size: 1em;
  }

  .tab-content {
    margin-bottom: 0.625em;
  }

  .i-archive__file-name {
    font-size: 0.813em;
  }

  .i-archive__file-wrap {
    margin-bottom: 0.625em;
  }

  .i-archive__item-wrap {
    font-family: $main-font;
  }
}