/**
 * @file
 * Sets colours for aGov's colour schemes.
 */
@import "base";

body {
  background-color: $body_bg;
  color: $body_color;
}

body.toolbar {
  background-color: $body_toolbar_bg;
}

body.toolbar-drawer {
  background-color: $body_toolbardrawer_bg;
}

.marker, .form-required {
  color: $input_button;
}

a {
  color: $link_color;
}

a:hover {
  color: $hover_color;
}

body.page-search #section-content #search-form .search-advanced a {
  color: $search_button;
}

h3 {
  color: $h3;
}

.form-textarea-wrapper textarea {
  border-color: $border_general;
}

input.form-submit {
  background: $button_bg;
  color: $button_color_light;
  box-shadow: 1px 1px 1px $box_shadow;
  -webkit-box-shadow: 1px 1px 1px $box_shadow;
  -moz-box-shadow: 1px 1px 1px $box_shadow;
}

input.form-submit:hover {
  background-color: $submit_hover;
}

// Theme color
#zone-header-wrapper {
  background-color: $theme_color;
  background-image: none !important;
}

// Top Menu
#region-header-top-menu div.block .content {
  border-left: 1px solid $top_menu_border_right;
  overflow: hidden;
}

#region-header-top-menu ul.menu li {
  border-left: 1px solid $top_menu_border_left;
  border-right: 1px solid $top_menu_border_right;
}

#region-header-top-menu ul.menu li.first {
  border-left: 1px solid $top_menu_border_left;
}

#zone-header a {
  color: $topmenu_link_color;
}

#skip-to-content {
  border-right: 1px solid $top_menu_border_right;
}

#region-header-search form input.form-text {
  border: 1px solid $border_general !important;
}

// Main Menu
div #zone-menu-wrapper {
  @include background-image(linear-gradient(lighten($menu_bg, 5%), $menu_bg));
  background-color: $menu_bg;
  border-top: 1px solid $menu_border;
}

#block-system-main-menu select.menu {
  background-color: $base_light;
  color: $body_color;
  box-shadow: inset 2px 2px 2px $base_midrange;
  -webkit-box-shadow: inset 2px 2px 2px $base_midrange;
  -moz-box-shadow: inset 2px 2px 2px $base_midrange;
}

#region-header-main-menu .menu {

  li {
    border-left-color: $main_menu_border;

    a {
      color: $mainmenu_link;
    }

    ul {
      background-color: $dropdown_menu_bg;

      li a {
        color: $link_color;
        border-bottom: 1px solid $base_light;

        &:hover {
          background: $base_light;
          color: $hover_color;
        }
      }

      ul:hover a {
        background: $dropdown_menu_bg;
        color: $link_color;
        text-shadow: none;
      }
    }

    &.active-trail {

      background: $menu_active_bg;

      a {
        font-family: $open-semibold;
        color: $menu_active;
      }

      li a {
        font-family: $arial;
        color: $input_button;
      }
    }

    &:hover a {
      background: $dropdown_menu_bg;
      color: $link_color;
      text-shadow: none;
    }
  }

  a.active {
    background: $text_bg;
    color: $menu_active;
  }
}

// Search Form
#region-header-search form input.form-text {
  color: $text_light;
  background: $text_bg;
}

#region-header-search form input.form-submit {
  background-image: none;
  background-color: $search_button;
}

// Content
#zone-content {
  background-color: $content_bg;
}

.not-front .node-blog-article .field-name-post-date {
  color: $text_light;
}

.not-front .node-blog-article .field-name-summary {
  color: $text_summary;
}

// Comments
#comments #comment-wrapper-header {
  border-top: 3px solid $comment_border_top;
}

#comments .comment {
  background-color: $comment_bg;
}

#comments .comment.even {
  background-color: $text_bg;
}

#comments #add-new-comment .filter-wrapper {
  border-bottom: 1px solid $comment_border_bottom;
}

#comments #add-new-comment input#edit-preview {
  color: $input_button;
}

#comments #add-new-comment input#edit-preview:hover {
  color: $text_darkest;
}

// Tabs
.tabbed-nav {
  border: 1px solid $border_tab;
}

.tabbed-nav ul.tabs {
  background-color: $tab_bg;
}

.tabbed-nav ul.tabs li a {
  background-color: $tab_bg;
}

.tabbed-nav ul.tabs li.active a {
  background: $text_bg;
  color: $text_active;
  border-top: 2px solid $border_util;
  border-left: 1px solid $border_tab;
  border-right: 1px solid $border_tab;
}

// User Login
body.page-user #region-content #block-system-main {
  border: 1px solid $border_tab;
}

body.page-user #region-content #block-system-main .block-inner form .form-item label {
  color: $text_blog;
}

body.page-user #region-content #block-system-main .block-inner form .form-item input.form-text {
  background: $content_bg;
  border: 1px solid $border_tab;
  color: $text_light;
}

// Home Page Featured Articles
#block-views-slideshow-block {
  background-color: $home_feature_bg;
}

#zone-featured-articles {
  background: $text_bg;
}

#region-feature-articles {
  background-color: $region_feature_bg;
}

#region-feature-articles .views-field-title a,
#region-feature-articles .views-field-title {
  color: $h2;
  text-shadow: 1px 1px 0 $text_bg;
}

// Featured Article Pager

#block-views-slideshow-block ul li a {
  background-color: #cececd; // this bg colour will be picked up by IE (other browsers will override this by the CSS immediately below this line)
  background-color: $link_light_alpha;
  color: $text_darkest;
  border: none;
}

#block-views-slideshow-block ul li.current a {
  background-color: $text_active;
  color: $text_bg !important;
}

#block-views-slideshow-block ul li a.playing {
  background-color: $link_light_alpha;
}

#block-views-slideshow-block ul li a.paused {
  background-color: $text_active;
}

#block-views-slideshow-block ul li a:focus {
  border: 2px solid $link_color;
}

#block-views-slideshow-block ul li.current a:focus {
  border: 2px solid $link_color;
}

// Home Page Latest News & From The Blog
div.section-content .view .views-row {
  border-bottom: 1px solid $border_tab;
}

// Search results
body.page-search #section-content #search-form {
  background-color: $comment_bg;
  border-top: 3px solid $border_util;
}

body.page-search #section-content #search-form #edit-basic {
  border-bottom: 1px solid $border_tab;
}

body.page-search #section-content #search-form #edit-basic input.form-text {
  box-shadow: inset 0 0 3px $box_shadow;
  border: 1px solid $border_tab;
  color: $text_light;
}

body.page-search #section-content #search-form #edit-basic input.form-submit {
  background: $input_button;
  color: $text_bg;
}

body.page-search #section-content .content h2 {
  border-top: 3px solid $border_theme;
}

body.page-search #section-content ol.search-results li {
  border-bottom: 1px solid $border_tab;
}

// Sidebar blocks
#region-sidebar .block,
#region-sidebar .entity-bean {
  border-top: 3px solid $block_border;

  h2 {
    @include background-image(linear-gradient(lighten($block_header_bg, 5%), $block_header_bg));
    background-color: $block_header_bg;
    color: $block_h2;

  }

  .content {
    background-color: $home_feature_bg;

  }
}

#region-sidebar .block-menu-block .content ul li {
  a {
    border-top: 1px solid $block_list_separator;

    &:hover,
    &.active a {
      background-color: $text_bg;
    }
  }

  &.last.active a {
    border-bottom: 1px solid $block_list_separator;
  }
}

// Twitter feed
#block-agov-twitter-feed h2 a {
  color: $block_h2;
}

#block-agov-twitter-feed #tweets ul li {
  border-bottom: 1px solid $twitter_border;
}

// Footer Feature/Teasers
#region-footer-feature {
  background: $footer_feature_bg;
}

#region-footer-feature .block .content h2 {
  color: $footer_h2;
}

#region-footer-feature .block .content h2 a {
  color: $h2;
}

#region-footer-feature .views-row {
  border-top: 1px solid $border_tab;
}

// Footer menu
#region-footer-menu {
  background-image: none !important;
  background-color: $footer_region_bg;
}

#region-footer-menu ul li a {
  color: $footer_link;
  font-weight: bold;
}

// Footer bottom
#zone-footer-copyright {
  background-color: $content_bg;
}

// Footer sub menu
#region-footer-sub-menu ul li a {
  color: $link_color;
}

div #region-content .entity-bean.highlight {
  background: $home_feature_bg;
  border-bottom: 3px solid $border_theme;
  border-top: 3px solid $border_theme;
}

.view-news-archive .article {
  border-bottom: 1px solid $border_tab;
}

.item-list .pager {
  background-color: $comment_bg;
  border-top: 3px solid $comment_border_top;
}

.pager a,
.pager a.active {
  color: $pager_active;
}

.pager .pager-current {
  background-color: $pager_current;
  color: $text_bg;
}

input.form-text {
  border: 1px solid $border_tab;
  color: $text_blog;
}

.view-events caption,
.view-publications caption,
.view-media-releases caption,
.view-events caption,
.not-front .view-latest-news caption {
  color: $text_summary;
}

.view-events tbody tr,
.view-publications tbody tr,
.view-media-releases tbody tr,
.view-events tbody tr,
.not-front .view-latest-news tbody tr {
  border-bottom: 1px solid $border_tab;
}

.field-name-field-documentation {
  border-bottom: 1px solid $border_tab;
}

div.messages {
  background-color: $region_feature_bg;
  border: 1px solid $message_border;
  color: $message_color;
}

.field-name-field-tags {
  border-bottom: 1px solid $border_tab;
  border-top: 1px solid $border_tab;
}

#region-content .node-event h2 {
  border-top: 1px solid $border_tab;
}

.block-views-latest-news-block .more-link,
.block-views-home-page-blog-articles-block .more-link {
  border-top: 1px solid $border_tab;
}


.bean-image-and-text {
  color: $h1;
  border-top: 1px solid #ddd;

  h2 {
    @include adjust-font-size-to($base-font-size * 1.2);
  }
}

.front .panel-pane {
  border-top: 3px solid $border_theme;
}

.breadcrumb {
  border-bottom: 3px solid $border_theme;
}

h1 {
  color: $h1;
}

h2 {
  color: $h2;
}

h3 {
  color: $h3;
}

div .section-content .view .view-content > h2 {
  border-bottom-color: $border_tab;
}