/**
 * @file
 * Global styles
 *
 * Adds all global styles
 *
 */

// This file includes:
// 1. Styles for the mobile version of aGov (mobile first).
// 2. ANY global CSS that applies site-wide.
//
// This file does not include:
// 1. Any layout-specific code for narrow or normal layouts (these should go into specific alpha-default files).
// 2. Base variables, mixins, etc (this should go into _base.scss).
//
// A Note for STARTERKIT users:
// The STARTERKIT allows user's to complete override this file, loosing almost all aGov default styling.
// Hence the construction of this file 


// Imports
///////////////////////////////////////////////////////////////////////////////
// First, lets import all our global styles, compass plugins, base partials, etc.


$breakpoint-no-queries: false;
$breakpoint-no-query-wrappers: true;

// Base partials
@import "base";

// Normalize Reset
@import "normalize";

@import "components/nav";

@import "components/slideshow";



// Layout Related Styles - Before some of them were in alpha-default, which was really confusing.
// It would be nice to have a simple partial for layout rather than controlling with Omega which is confusing.
#zone-content {
	padding: $base-line-height 0;
}

#zone-menu-wrapper {
  background-image: url('../images/menu-bg.png');
  background-position: 0 0;
  background-repeat: repeat-x;
  height: 39px;
}

#region-header-logo {
  margin: $base-line-height $indent-amount 0;
}

#section-content,
#section-footer {
  background-color: white;
  @include breakpoint(740px, $no-query: '.lt-ie9') { 
    background: url('../images/shadow-bg-720.png') top center repeat-y;
    background-color: transparent;
  }
  @include breakpoint(980px, $no-query: '.lt-ie9') { 
    background: url('../images/shadow-bg.png') top center repeat-y;
  }
}

#section-content { padding: 0 $indent-amount; }


// Fixes a strange clearfix bug adding padding to bottom of page. Remove clear classes later.
#zone-footer-menu, .page {
  overflow: hidden;
  &:after { content: ""; }
}


/* Regions */

#region-feature-articles {
  width: 100%;
  @include box-sizing(border-box);
  margin:0px;
}

#region-footer-feature,
#region-footer-menu {
  width: 100%;
  @include box-sizing(border-box);
  margin: 0px;
}


.region-footer-feature { padding: $indent-amount*2 $base-line-height/2; }

#region-feature-articles {
  background-image: url('../images/mobile-menu-shadow.png');
  background-repeat: repeat-x;
	background: #DEE7EF url('../images/mobile-menu-shadow.png') repeat-x;
	margin-left: 0;
	margin-right: 0;
}


#zone-header-wrapper {
  background-image: url('../images/background.png');
  background-position: 0 0;
  background-repeat: repeat-x;
  height: 135px;
}

// Top Menu
///////////////////////////////////////////////////////////////////////////////
// Sets layout for top (user) menu links & skip to content link.

#region-header-top-menu {
	height: 30px;
	margin-left: 0;
	margin-right: 0;
	padding: 0 10px;
}

#region-header-top-menu {
	font-weight:normal;

	ul.menu {margin:0;
		li {
			list-style:none;
			float:left;
			padding:0 10px;
			margin:0;
			line-height:20px;
			&.last {border-right:none;padding-right:0;}
			a {display:inline-block; @include	adjust-font-size-to(13px); }
		}
	}
	#skip-to-content {
		border:none;
		line-height:20px;
		li {border:none;padding:0 6px 0 0;}
		a {padding-left:12px;}
	}
}



/* Global / Overwrites */

body.toolbar {
  background-image: url('../images/background.png');
  background-repeat: repeat-x;
}

body.toolbar-drawer {
  background-image: url('../images/background.png') !important;
  background-position: 0px 65px !important;
  background-repeat: repeat-x !important;
}

body.large-fonts {
 @include	adjust-font-size-to(16px);
 @include	reset-baseline();
 $original-base-font-size: $base-font-size;
 $base-font-size: 16px;
 h1 { @include h1; }
 h2 { @include h2; }
 h3 { @include h3; }
 $base-font-size: $original-base-font-size;
 #region-header-search form input.form-submit { width: 80px; }
 #region-header-search {
   width: 376px;
 }
}

ul.links li {
  padding-left: 0;
}

a {
	text-decoration: underline;
}

a:hover {
	text-decoration: none;
}

html.js fieldset.collapsed .fieldset-legend {
	background: url('../images/open-plus.jpg') 0% 50% no-repeat !important;
}

html.js fieldset.collapsible .fieldset-legend {
	background: url('../images/close-minus.jpg') 0% 50% no-repeat;
}

body.page-search #section-content #search-form .search-advanced a {
	font-weight: bold;
	padding-left: 3px;
}

.search-results .search-snippet-info {
	padding-left: 0;
}

.search-results .search-snippet-info p {
	margin-bottom: 0;
	margin-bottom: 5px;
}

.search-results .search-info {
	font-style: italic;
}

.form-textarea-wrapper textarea {
	min-height: 138px;
}

input, textarea {
  box-shadow: inset 0 0 3px #c9c9c9;
  font-family: Arial, sans-serif;
  font-size: 1em;
  color: #000;
}
input.form-submit {
	height: 27px;
	text-align: center;
	font-family: 'OpenSansRegular';
	font-weight: bold;
	border: none;
	padding: 0 15px;
	margin: 0;
	cursor: pointer;
	border-radius: 0;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	-webkit-appearance: none;
	text-shadow: none;
}

.profile h3 {
	padding-bottom: 10px;
	margin-bottom: 10px;
}

/* ---------------------------
	Page Layout
------------------------------ */

#page.clearfix {
	display: block;
}

/* Search Form */

#skip-to-content a {
	background: url('../images/skip-to-content-arrow.png') 0% 60% no-repeat;
}

#region-header-search .block-agov-text-resize-text-resize #resize-buttons li.font-small a {
	background: url('../images/font-resize-bg.png') 0px 0px no-repeat;
}

#region-header-search .block-agov-text-resize-text-resize #resize-buttons li.font-large a {
	background: url('../images/font-resize-bg.png') 0px -27px no-repeat;
}

#region-header-search .block-agov-text-resize-text-resize #resize-buttons li.reset a {
	background: url('../images/font-resize-bg.png') 0px -54px no-repeat;
}

#region-header-search {
	position: absolute;
  right: 10px;
  margin-top: 22px;
  @include breakpoint(740px, $no-query: '.lt-ie9') {
  	position: relative;
  	margin-left: 0;
  	margin-right: $indent-amount;
  	float: right;
  }
  @include breakpoint(740px) {
  	margin-top: 26px;
  }
}

.block-agov-text-resize-text-resize {
	display: none;
}

#region-header-search form {
	float: none;
}

#region-header-main-menu {
	float: left;
	margin-left: 0;
}

#region-header-search form input.form-text {
	-webkit-appearance: none;
	border-radius: 0;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	border: none;
	font-style: italic;
	width: 105px;
	height: 27px;
	padding: 0 0 0 10px;
	float: left;
	margin-top: 1px;
	@include	adjust-font-size-to(13px);
}

.search-text-help {
	font-style: italic;
  color: #767676;
}

.enter-search-text {
  font-style: normal !important;
  color: #000 !important;
}

#region-header-search form input.form-submit {
	-webkit-appearance: none;
	border-radius: 0;
	-webkit-border-radius: 0;
	-moz-border-radius: 0;
	box-shadow: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	border: none;
	background-image: url('../images/search-btn-mobile.png');
	background-position: 50% 50%;
	background-repeat: no-repeat;
	width: 32px;
	height: 29px;
	text-indent: -9999px;
	float: left;
	margin-top: 1px;
	@include	adjust-font-size-to(13px);
}


/**
 * h2 headings for teasers
 * Publications, News, Events, Media releases
 */
.page-publications #region-content .view h2, 
.page-news-media #region-content .view h2 {
  
  font-weight: bold;
}

/*
 * Node type blog article
 */
body.node-type-article #region-content h1,
body.node-type-blog-article #region-content h1 {
	font-family: 'OpenSansBold';
}
.not-front .node-blog-article .field-name-post-date {
	font-style: italic;
	@include adjust-font-size-to(12px);
	margin-bottom: 3px;
}
.not-front .node-blog-article {
  padding: 10px 0;
}
.not-front .node-blog-article .field-name-summary,
.not-front .node-news-article .field-name-summary {
  @include adjust-font-size-to(15px);
  font-weight: bold;
}

.not-front .node-blog-article .field-name-field-thumbnail,
.not-front .node-news-article .field-name-field-thumbnail {
  margin-bottom: 10px;
}

.not-front .node-blog-article .field-name-summary p {
  @include adjust-font-size-to(16px);
  font-weight: bold;
  color: #444;;
}
.not-front .node-blog-article .field-name-body p {
  @include adjust-font-size-to(14px);
  line-height: 1.4em;
}

/*
* Node type publication
*/
body.node-type-publication .region-content .field-name-field-subtitle {
  margin-top: -10px;
  margin-bottom: 10px;
  font-weight: bold;
}

/* Page/Article/Comment Node */

body.page-node- #region-content #block-system-main,
body.page-comment #region-content #block-system-main {
	padding-left: 0;
}

body.page-node- p.article-author-date,
body.page-comment p.article-author-date {
	@include adjust-font-size-to(12px);
	font-style: italic;
}

body.page-node- #region-content .node .field-name-field-image,
body.page-comment #region-content .node .field-name-field-image {
	margin-bottom: 20px;
	width: 100%;
}

body.page-node- #region-content .node .field-name-field-image img,
body.page-comment #region-content .node .field-name-field-image img,
body.page-node- #region-content .node .field-name-field-feature-image img,
body.page-node #region-content .node .field-type-image img {
    max-width: 100%;
    height: auto;
}

/* Comments */

#comments {
	margin-bottom: 20px;
}

#comments #comment-wrapper-header {
	padding-top: 10px;
}

#comments #comment-wrapper-header h2 {
	padding-top: 0;
	border-top: none;
}

#comments #comment-wrapper-header .add-new-link a {
	font-weight: bold;
}

#comments .comment {
  background-image: url('../images/comment-icon.png');
  background-position: 13px 15px;
  background-repeat: no-repeat;
	padding: 15px 13px 15px 46px;
}

#comments .comment.even {
  background-image: url('../images/comment-icon.png');
  background-position: 13px 15px;
  background-repeat: no-repeat;
}

#comments .comment .submitted p {
	@include adjust-font-size-to(11px);
}

#comments .comment .field-name-comment-body p:last-child {
	margin-bottom: 0;
}

#comments #add-new-comment {
	margin-top: 25px;
}

#comments #add-new-comment h2.title {
	@include adjust-font-size-to(18px);
}

#comments #add-new-comment .filter-wrapper {
	padding-bottom: 15px;
	margin-bottom: 10px;
}

#comments #add-new-comment .filter-wrapper .form-item {
	padding-left: 0;
	margin-top: 0;
	@include adjust-font-size-to(12px);
}

#comments #add-new-comment .filter-wrapper label {
	@include adjust-font-size-to(12px);
}

#comments #add-new-comment .filter-help {
	padding-right: 0;
}

#comments #add-new-comment .filter-help p {
	@include adjust-font-size-to(12px);
}

#comments #add-new-comment .filter-guidelines {
	padding-left: 0;
	padding-top: 10px;
}

#comments #add-new-comment .filter-guidelines li {
	@include adjust-font-size-to(12px);
}

#comments #add-new-comment label {
	@include adjust-font-size-to(14px);
	margin-bottom: 5px;
}

#comments #add-new-comment input.form-text {
	width: 617px;
	height: 22px;
	border: 1px solid #DDD;
}

#comments #add-new-comment textarea {
	opacity: 1 !important;
}

#comments #add-new-comment input#edit-submit {
	float: left;
	margin-right: 18px;
}

#comments #add-new-comment input#edit-preview {
	font-weight: bold;
	font-family: Arial, sans-serif;
	text-decoration: underline;
	margin-top: 7px;
	background: none;
	padding: 0;
	margin: 0;
	box-shadow: none;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
}

#comments #add-new-comment input#edit-preview:hover {
	color: #000;
	text-decoration: none;
}

#comments #add-new-comment #edit-author--2 {
	height: 14px; /* clearfix-ish */
}

#comments #add-new-comment #edit-author--2 label {
	float: left;
	margin-right: 10px;
}

#comments #add-new-comment #edit-author--2 a {
	@include adjust-font-size-to(14px);
	float: left;
}

.form-item-subject {
	clear: both;
}

/* Tabs */

.tabbed-nav {
	margin-bottom: 20px;
}

body.page-user .tabbed-nav {
	margin-bottom: 0;
}

.tabbed-nav h2 {
	display: none;
}

.tabbed-nav {
	border-bottom: none;
	height: 56px;
}

.tabbed-nav ul.tabs {
  background-image: url('../images/bottom-shadow.png');
  background-position: bottom left;
  background-repeat: repeat-x;
	padding: 0;
	margin: 0;
	border: none;
	width: 100%;
	height: 56px;
	white-space: normal !important; /* overwrites system.menus.css */
}

#region-content .tabbed-nav ul.tabs  {
  margin-left: 0;
}

.tabbed-nav ul.tabs li {
	float: left;
	width: 33.3%;
	height: 56px;
	margin: 0;
	padding: 0;
}

.tabbed-nav ul.tabs li a {
  background-image: url('../images/bottom-shadow.png');
  background-position: bottom left;
  background-repeat: repeat-x;
	display: block;
	height: 47px;
	padding: 10px 0 0 0;
	margin: 0;
	border: none;
	text-align: center;
	text-decoration: underline;
	font-weight: bold;
}

.tabbed-nav ul.tabs li.active a {
	margin-top: -2px;
	text-decoration: none;
}

.tabbed-nav ul.tabs li a:hover {
	text-decoration: none;
}

.tabbed-nav ul.tabs li:first-child.active a {
	border-left: none;
}

/**
 * Workbench
 */
.block-workbench {
  clear: both;
  padding: 5px 0 20px;
}

/* User Login */

body.page-user #region-content #block-system-main {
	padding-left: 0;
	border-top: none;
	margin-bottom: 20px;
}

body.page-user #region-content #block-system-main .block-inner {
	padding: 30px 20px 20px 20px;
}

body.page-user #region-content #block-system-main .block-inner form .form-item {
	margin: 0 0 27px 0;
}

body.page-user #region-content #block-system-main .block-inner form .form-item label {
	font-weight: bold;
	float: none !important;
}

body.page-user #region-content #block-system-main .block-inner form .form-item input.form-text {
	width: 100%;
	height: 30px;
	padding: 0;
	margin-bottom: 8px;
	border-radius: none;
}

body.page-user #region-content #block-system-main .block-inner form .form-actions input.form-submit {
	font-family: 'OpenSansRegular';
	border-radius: none;
	-webkit-appearance: none;
	border-radius: none !important;
	-webkit-border-radius: none !important;
}

body.page-user #region-content #block-system-main .block-inner form .form-item .description {
	@include adjust-font-size-to(12px);
	line-height: 17px;
}

/* Home Page Latest News & From The Blog */

.view-latest-news {
	margin-bottom: 20px;
}

#block-views-home-page-blog-articles-block {
	margin-bottom: 20px;
}

.view-latest-news .views-row,
.view-home-page-blog-articles .views-row {
	padding-bottom: 11px;
	margin-bottom: 11px;
}

#block-views-home-page-blog-articles-block .content .views-row-last {
	padding-bottom: 0;
	margin-bottom: 0;
	border-bottom: none;
}

.view-mode-teaser .field-name-field-thumbnail, 
.view-mode-blog_teaser .field-name-field-thumbnail {
	float: left;
	margin-right: 10px;
}

.view-mode-teaser .field-name-post-date {
  font-style: italic;
}

#block-views-home-page-blog-articles-block .article .article-teaser-content {
/*   width: 220px; */
  width: 77%;
}

.view-latest-news .article-author-date,
.article .article-teaser-content p.article-author-date {
	font-style: italic;
	@include adjust-font-size-to(12px);
	margin: 0px;
	padding: 0px;
}

.view-latest-news h3,
.article .article-teaser-content h3,
.node-teaser h3 {
	@include adjust-font-size-to(14px);
	@include leader(0, 14px);
	@include trailer(.25, 14px);
}

.more-link {
  margin: 10px 0;
}

/* Search Results */

body.page-search #section-content #search-form {
	padding: 25px 14px;
}

body.page-search #section-content #search-form #edit-basic {
	padding-bottom: 15px;
	margin-bottom: 10px;
}

body.page-search #section-content #search-form #edit-basic label {
	font-weight: bold;
	margin-bottom: 15px;
	display: block;
}

body.page-search #section-content #search-form #edit-basic input.form-text {
	width: 95%;
	height: 30px;
	padding: 0 9px;
	font-style: italic;
	margin-bottom: 10px;
}

body.page-search #section-content #search-form #edit-basic input.form-submit {
	width: 80px;
	height: 32px;
	border: none;
	cursor: pointer;
	font-weight: bold;
	text-align: center;
	text-shadow: none;
	box-shadow: none;
	font-size: 1em;
}

body.page-search #section-content .content h2 {
	padding-top: 10px;
	margin-bottom: 30px;
}

body.page-search #section-content ol.search-results li {
	padding-bottom: 12px;
}

body.page-search #section-content ol.search-results li:last-child {
	border-bottom: none;
}

body.page-search #section-content ol.search-results h3.title {
	margin-bottom: 5px;
}

body.page-search #section-content ol.search-results h3.title a {
	@include adjust-font-size-to(14px);
	font-weight: bold;
}

body.page-search #section-content #region-content .content ul li {
	list-style: disc;
	margin:  0 0 5px 15px;
}

/* Side Bar Blocks */

#region-sidebar .block {
	margin-bottom: 25px;
}

#region-sidebar .block h2 {
  @include background-image(linear-gradient(#3e7d9d, #246383)); 
  font-family: 'OpenSansBold';
  @include adjust-font-size-to(16px);
	text-indent: 15px;
	font-weight: normal;
	text-transform: uppercase;
	margin: 0;
	padding: 0;
}

#region-sidebar .block h2 a {
  color: #FFF;
  text-decoration: none;
}

#region-sidebar .block h2 a:hover {
  text-decoration: underline;
}

#region-sidebar .block .content {
	padding: 15px;
	
	p:last-child {
  	margin-bottom: 0;
  }
  
  ul {
  	margin: 0;
    li {
      background-image: url('../images/block-li-bg.png');
      background-position: 0px 8px;
      background-repeat: no-repeat;
    	list-style: none;
      list-style-image: none;
    	padding-left: 14px;
    	margin-left: 0;
    }
  }
  
  // This should be done in image styles.
  img { width:40px; height: 40px; }
  
}


#region-sidebar .block-menu-block .content {
  padding: 0;
}

#region-sidebar .block-menu-block .content ul li {
  background: none;
  padding: 0;
  margin: 0;
}

#region-sidebar .block-menu-block .content ul li a {
  background: url('../images/block-li-bg.png') 16px 14px no-repeat;
  padding: 8px 0;
  display: block;
  text-indent: 30px;
  font-weight: bold;
}

#region-sidebar .block-menu-block .content ul li.first a {
  border-top: none;
}

/* Stay Connected */

#region-sidebar #block-menu-menu-social-media .content ul {
}

#region-sidebar #block-menu-menu-social-media .content ul li {
  float: left;
  margin-right: 15px;
  padding-left: 0 !important;
  background-image: none;
}

#region-sidebar #block-menu-menu-social-media .content ul .sc-item-last {
	margin-right: 0;
}

#region-sidebar #block-menu-menu-social-media .content ul li a {
	display: block;
}

/* Twitter Feed */

#block-agov-twitter-feed h2 {
	background: url('../images/twitter-feed-icon.png') 94% 50% no-repeat;
}

#block-agov-twitter-feed h2 a {
	text-decoration: none;
}

#block-agov-twitter-feed #tweets ul li {
	background: none;
	padding: 0 0 10px 3px;
	margin-bottom: 10px;
	padding-left: 0 !important;
}

#block-agov-twitter-feed #tweets ul li .tweet_avatar {
	float: left;
	margin-right: 10px;
}

#block-agov-twitter-feed #tweets ul li .tweet_text {
	width: 217px;
	word-wrap: break-word;
}

#block-agov-twitter-feed #tweets ul li .tweet_time {
	margin-left: 50px;
	@include adjust-font-size-to(11px);
}

#block-agov-twitter-feed p {
	margin-left: 7px;
}

/* Footer Feature/Teasers */

#region-footer-feature .views-row {
	padding: $base-line-height 0px;
	@include breakpoint(740px, $no-query: '.lt-ie9') { 
  	float: none;
  	@include box-sizing(border-box);
  	width: 32%;
  	margin: 0px;
  	margin-right: 2%;
  	float: left;
  	&.views-row-last { margin-right: 0px; }
  }
  overflow: hidden;
  display: block;
}


#region-footer-feature .block h2 {
	display: none;
}

#region-footer-feature .block .content h2 {
	display: block;
	@include adjust-font-size-to(16px);
	line-height: inherit;
	@include padding-leader(0, 16px);
	@include padding-trailer(.25, 16px);
}

#region-footer-feature .block .content .submitted {
	display: none;
}

#region-footer-feature .block .content h2 a {
	text-decoration: none;
}

#region-footer-feature .views-row {
  border-top-style: solid;
  border-top-width: 3px;
}


#region-footer-feature .views-row .node {
	padding-left: 16px;
}

#region-footer-feature .views-row .field-name-field-description p {
	@include adjust-font-size-to(12px);
	@include leader(0, 12px);
	@include trailer(0, 12px);
}

#region-footer-feature .views-row .views-field-field-image {
	float: right;
}

/* Footer Menu */
#zone-footer-menu {
  background-image: url('../images/footer-menu-bg.png');
  background-position: 0 0;
  background-repeat: repeat-x;
}

#region-footer-menu h2 {
	display: none;
}

#region-footer-menu ul {
	margin: 0;
}

#region-footer-menu ul li {
	list-style: none;
	padding: 0;
	width: 42.5%;
	margin-right: 5%;
	margin-bottom: 20px;
	float: left;
}

#region-footer-menu ul li.first {
	display: none;
}

#region-footer-menu ul ul li {
	float: none;
	margin: 0;
	line-height: 16px;
}

#region-footer-menu ul ul li.first {
	display: inline-block;
}

#region-footer-menu ul li a {
	font-weight: bold;
	display: inline-block;
	margin-bottom: 4px;
}

#region-footer-menu ul ul li a {
	@include adjust-font-size-to(11px);
	margin-bottom: 0;
	font-weight: normal;
}


/* Footer Sub Menu */

#region-footer-sub-menu {
  margin: rhythm(.75) 0;
  h2 {
  	display: none;
  }
  ul {
  	text-align: center;
  	margin: 0;
  	li {
    	@include adjust-font-size-to(12px);
    	display: inline;
    	list-style: none;
    	margin: 0;
    	padding: 0;
    	&:before {
      	content: " | ";
      }
      &:first-child:before {
      	content: "";
      }
    } 
  }
}

/* Copyright */

#region-footer-copyright {
	@include adjust-font-size-to(12px);
	text-align: center;
	margin: 0 0 rhythm(.75) 0;
	text-align: center;
	@include breakpoint(980px, $no-query: '.lt-ie9') { 
	  text-align: right;
	  margin: rhythm(.75) 0;
  }
}

#region-footer-copyright h2 {
	display: none;
}

body.responsive-layout-mobile #region-footer-copyright span.pipe {
	display: none;
}

.view-news-archive .article {
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.view-news-archive .views-row-last .article {
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 0;
}

.item-list .pager {
  height: 36px;
  line-height: 36px;
  margin-top: 30px;
}

.item-list .pager li {
  margin: 0;
}

.pager a,
.pager a.active {
  font-weight: bold;
}

.pager .pager-current {
  height: 26px;
  line-height: 26px;
  padding: 0 5px;
}

input.form-text {
  height: 30px;
  padding: 0 5px;
}

.form-item label {
  @include adjust-font-size-to(13px);
  margin: rhythm(.5) 0;
  font-weight: bold;
}

.view-publications .views-row,
.view-media-releases .views-row,
.view-events .views-row {
  margin-bottom: 1em;
}

.view-publications .view-content h3,
.view-media-releases .view-content h3,
.view-events .view-content h3 {
  margin-bottom: 5px;
}

.view-publications .views-row-last,
.view-media-releases .views-row-last,
.view-events .views-row-last {
  margin-bottom: 22px;
}

.view-publications .date,
.view-media-releases .date,
.view-events .date,
.not-front .view-latest-news .date {
  font-style: italic;
  @include adjust-font-size-to(12px);
  display: inline-block;
}

.view-events .date br,
.view-publications .date br,
.view-media-releases .date br,
.not-front .view-latest-news .date br {
  display: none;
}

.views-field-title a {
  font-weight: bold;
}

.node-publication .field-name-field-date, 
.node-event .field-name-field-event-date {
  margin-bottom: 1em;
}

.node-media-release .field-name-field-file  {
  margin: 10px 0;
}

.node-media-release .field-name-field-file  .field-items  .field-item  {
  padding: 10px 0;
  font-weight: bold;
}

.node-type-media-release .file-icon {
  padding: 5px;
  background: #ccc;
  box-shadow: 1px 1px 2px #000;
}

.node-type-media-release .file a {
  position: relative;
  top: -3px;
  margin-left: 8px;
}

.field-name-field-documentation {
  margin-bottom: 1em;
  padding-bottom: 1em;
}

.field-name-field-documentation .field-label,
.node-news-article .field-name-field-news-date {
  margin-bottom: 1em;
}

.field-name-field-documentation .field-item {
  margin-bottom: 4px;
}

div.messages {
  background-image: none;
  padding-left: 10px;
}

.view-events .views-field-title p {
  margin-top: 3px;
}

.field-name-field-tags {
  margin-bottom: 1em;
  padding: 1em 0;
}

.field-name-field-tags .field-label {
  float: left;
}

.field-name-field-tags .field-item {
  display: inline;
}

.field-name-field-tags .field-item:before {
  content: ', ';
}

.field-name-field-tags .field-item:first-child:before {
  content: '';
}

.view-agov-taxonomy-term-page .views-field-title a {
  font-weight: bold;
}

.view-agov-taxonomy-term-page .views-row {
  margin-bottom: 1.2em;
}

#region-content ol {
  list-style-type: decimal;
  margin-left: 20px;
}

#region-content ul {
  list-style-type: square;
  margin-left: 16px;
}

#region-content ul.pager {
  margin-left: 0;
}

#region-content li.search-result {
  list-style: none;
}

/* Display image inline to the right */
p.img-float-right,
img.img-float-right {
  float: right;
  margin: 5px 0 5px 5px;
}

/* Display image inline to the left */
p.img-float-left,
img.img-float-left {
  float: left;
  margin: 0 5px 5px 5px;
}

#region-content .node ul.links {
  margin-left: 0;
  display: block;
}

.node-news-article ul.links,
.node .submitted {
  margin-bottom: 1em;
}

#region-content .node-event h2 {
  padding-top: 10px;
  margin-top: 17px;
  margin-bottom: 25px;
  @include adjust-font-size-to(18px);
}

.node-event .field-label-inline, 
.node-event dd {
  margin-bottom: 20px;
}

.node-event .field-label-inline .field-label {
  width: 98px;
  float: left;
  display: inline-block;
}

.view-feature-article .field-name-field-image {
  height: 131px;
  overflow: hidden;
}

.view-feature-article .field-name-field-image img {
  width: 100%;
  height: auto;
}

.block-views-latest-news-block .more-link,
.block-views-home-page-blog-articles-block .more-link {
  margin-top: 10px;
  padding-top: 10px;
  font-weight: bold;
}

#block-views-home-page-blog-articles-block .article .article-teaser-content {
  width: auto;
  float: none;
}

/* Beans */

#region-content .entity-bean.highlight {
  background: #F7F7F4;
  padding: 19px 14px;
  border-top: 3px solid #8D98A2;
  border-bottom: 3px solid #8D98A2;
  margin-bottom: 30px;
}

#region-content .entity-bean.default {
  padding-bottom: 17px;
  border-bottom: 1px solid #CCC;
  margin-bottom: 19px;
}

#region-content .entity-bean.bean-basic-content {
  border-bottom: none;
  padding-bottom: 0;
}

#region-content .entity-bean.highlight .field-name-field-bean-text  {
  color: #444;
  font-weight: bold;
  @include adjust-font-size-to(14px);
  @include reset-baseline();
}

#region-content .entity-bean.summary-text h2 {
  font-family: 'OpenSansSemibold';
  border-top: none;
  padding-top: 0;
  @include adjust-font-size-to(18px);
  color: #444;
}

#region-content .entity-bean.default .summary-text h2 {
  @include adjust-font-size-to(14px);
  padding-top: 0;
  border-top: none;
}

#region-content .entity-bean.highlight .image {
   margin-bottom: 19px;
   width: 100%;
}

#region-content .entity-bean.highlight .image img {
  width: 100%;
  height: auto;
}

#region-content .entity-bean.summary-text p {
  margin-bottom: 0;
}

#region-content .entity-bean.default .image {
  float: left;
  margin-right: 14px;
}

#region-content .entity-bean.default .summary-text {
  margin-left: 95px;
}

.front #breadcrumb {
  display: none;
}

#region-footer-menu {
  padding-top: 20px;
  margin-left: 0;
  margin-right: 0;
}

/**
 * Customised h2 - with no border on top
 */
 
.page-news-media {
  #region-content h2 {
    border-top: none;
  }
}

/*
 ** Contextual links
 */
.panel-pane .contextual-links-wrapper {
  margin-top: 20px;
}

.panel-pane .contextual-links-trigger {
  margin-top: 10px;
}

.panel-pane ul.contextual-links {
  position: absolute;
  top: 28px !important;
}

ul.contextual-links li {
  list-style: none !important;
}

.panel-pane .contextual-links li a {
  margin-top: 10px;
  z-index: 2;
}

.gov-front-layout .grid-4 {
  margin-left: 0;
  margin-right: 0;
}

.block-agov-twitter-feed {
  display: none;
}

.front .block-agov-twitter-feed {
  display: block;
}

@media only screen and (-webkit-min-device-pixel-ratio: 2) and ( min-resolution: 192dpi) {
  /*
 * Replaces background images with retina images for the iPhone 4.
 */
  
  #block-agov-twitter h2 {
  	background: url('../images/twitter-feed-icon@2x.png') 94% 50% no-repeat !important;
  	-webkit-background-size: 31px 21px;
  }
  
  #region-header-search form input.form-submit {
    background: #4C7296 url('../images/search-btn-mobile@2x.png') 50% 50% no-repeat !important;
  	-webkit-background-size: 19px 17px;
  }
  
  
  #block-system-main-menu select.menu {
  	background: #FFF url('../images/mobile-menu-arrow@2x.png') 95% 50% no-repeat !important;
  	-webkit-background-size: 10px 6px;
  }
}

.wcag_validate {
  display: none;
}

.views-table { width: 100%; }

.views-table td {
  padding: 8px;
  vertical-align: top;
  border: 1px solid #CCC;
}

.draggable a.tabledrag-handle { margin-left: -1em; }

.views-table td.views-field-title a { line-height: 20px; }

th.tabledrag-hide { display: none !important; }

.tabledrag-toggle-weight { margin-bottom: 10px; display: inline-block; }

#region-content {
  outline: none;
  
  .view h2 {
    margin-bottom: 0;
    border-top: none;
    padding: 0;
    @include adjust-font-size-to(15px);
    font-family: $arial;
  }
}

/**
 * Lists
 */
#region-content {
  .no-bullets {
    margin-left: 0;
    li {
      list-style: none;
    }
  }
}

/**
 * Event page
 * Styling for event details
 */

.node-event {
  dt {
    font-weight: bold;
    float: left;
    width: 100px;
  }
}

#block-menu-menu-header-menu {
  float: left;
}

.jump-menu-label {
  display: none;
}

/**
 * Node Page Content
 * Styling for content area of node page
 */
