@import url("../hmc-core/style-enhanced.css");

/* A-Z list on Community page */

div.list-wrapper {
	display: table;
	margin-top: 1.6em;
}

div.list-wrapper div {
	display: table-cell;
	width: 25%;
	margin-bottom: 2em;
}

#content .list-wrapper h2 {
	margin: 0 0 0.2em;
}

div.list-wrapper.filtering {
	display: block;
	min-height: 20em;
}

div.list-wrapper.filtering div {
	display: block;
	width: 100%;
	margin-bottom: 0;
}

#content div.list-wrapper.filtering ul{
	margin: 0 1em 0;
}

main.tabs-with-sidebar {
	width: 100%;
	padding: 0;
	border-left: none;
}

main.tabs-with-sidebar #content{
	width: 73%;
	max-width: 46em;
	padding: 0;
}

main.tabs-with-sidebar #rightSidebar {
	width: 23%;
}

form.filterform {
	margin: 1em 0;
}

form.filterform input {
	width: 25%;
}

body.page-id-546 #content div.highlight-box {
	width: 18%;
	margin-right: 2%;
}

body.page-id-546 #content div.highlight-box:nth-of-type(2n+0) {
	float: left;
}

body.page-id-546 #content div.highlight-box:nth-of-type(5) {
	margin-right: 0;
}

body.page-id-546 #content div.highlight-box p {
	height: 2.5em;
}

html#ie8 body.page-id-546 #content div.highlight-box {
	width: 17%;
}

html#ie8 body.page-id-546 #content div.highlight-box:last-child {
	margin-right: 0;
}

#content #tab-nav li {
	float: left;
	width: 17%;
	margin: 0 2% 0 0;
	list-style: none;
}

#content #tab-nav li a {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}
	
/* HOME PAGE UNIQUE CONTENT */

/* Emergency Message */

div#emergency-message {
	padding: 1em 1em 1em 12%;
	border-radius: 0.5em;
	margin: 1.5em 0;
	background: #a6192e url(images/alert.png) 1.5em 1em no-repeat;
	background-size: 4em;
}

body.home main {
	display: block;
	width: 100%;
}

body.home h2:before { /* Doesn't work with these so we're remove it */
	display: none;
}

body.home li {
	line-height: 1.3;
}

body.home #content-wrapper {
	overflow: hidden;
	max-width: none;
	padding-bottom: 1em;
}

body.home #content {
	float: none;
	max-width: 60em;
	padding: 0;
	margin: 0 auto;
}

body.home #content-wrapper > div {
	display: block;	
}

/* Top level highlight boxes */

div.main-highlight-wrap {
	position: relative;
	overflow: hidden;
	max-width: 60em;
	padding: 0;
	margin: 1.5em auto 0;
}

@media screen and (max-width: 60em) {
	div.main-highlight-wrap {
		padding: 0 1%;
	}
}

 /* News box */
#news-box {
	position: relative;
	float: left;
	width: 62%;
	height: 16.5em;
	padding: 1.25em 2%;
	margin-bottom: 0;
	margin-right: 2%;
}

#news-box > div {
	float: left;
	clear: left;
	width: 60%;
	padding-right: 3%;
	border-right: 1px solid #F0AC1E;
	margin-top: 0.25em;
}

#news-box article {
	clear: left;
	height: 5.5em;
	padding: 0.75em 0;
}

#news-box article:first-child {
	border-bottom: 1px solid #F0AC1E;
}

#news-box article h3 {
	margin-top: 0;
	line-height: 1.5;
}

#news-box p.more {
	position: absolute;
	right: 2%;
	bottom: 1.75em;
	margin-top: 1em;
}

#news-box a:link {
	text-decoration: none;
}

#news-box a:hover {
	text-decoration: underline;
}

#news-box ul {
	float: right;
	clear: none;
	width: 34%;
	max-height: 210px;
	margin: 0.5em 0 1.5em 0;
}

#news-box li {
	font-size: 0.9em;
}

.thumb {
	display: block;
	float: left;
	width: 5.5em;
	height: 5.5em;
	margin-right: 1em;
	background: #fff;
}

.thumb img {
	width: 100%;
	height: 100%;
}

 /* Highlight box under news */
#highlight-box {
	position: relative;
	float: left;
	overflow: hidden;
	box-sizing: border-box;
	width: 66%;
	height: 12em;
	padding: 0;
	margin-top: 1.5em;		
}

#highlight-box img {
	position: absolute;
	bottom:	0;
	width: 100%;
}

 /* Events box */
#events-box {
	position: relative;
	width: 28%;
	min-height: 30em;
	padding: 1.25em 2%;
	margin: 0;
}

#events-box ul.hmc-events-shortcode {
	margin: 1em 0 0;
}

#content #events-box ul.hmc-events-shortcode li:first-child {
	margin-top: 0;
}

#content #events-box ul.hmc-events-shortcode li {
	margin: 0.875em 0;
	left: 0;
}

#events-box ul.hmc-events-shortcode h3 {
	width: 2.8em;
}

#events-box ul.hmc-events-shortcode p.more {
	position: absolute;
	bottom: 1.75em;
	width: 89%;
}

/* Anything under full desktop width, realign news, events and highlights. Helps keep it all aligned. 
Better for portrait iPads/ */

@media screen and (max-width: 56.875em) { 
		
	#news-box,
	#events-box {
		height: 26em;
		height: 420px;
		min-height: 0;
	}	
	
	#news-box {
		width: 45%;
	}
	
	#news-box > div {
		float: none;
		width: 100%;
		border-right: none;
	}
	
	#news-box ul {
		float: none;
		width: auto;
	}
	
	#events-box ul.hmc-events-shortcode {
		margin-top: 1.75em;
	}
	
	#news-box p.more {
		width: 92%;
		right: 4%;
	}
	
	#events-box p.more {
		margin: 0.5em 0 0;
	}
	
	#events-box {
		position: absolute;
		right: 1%;
		width: 44%;
	}
	
	#events-box ul.hmc-events-shortcode li:last-child {
		display: none;
	}
			
	#highlight-box {
		width: 100%;
		height: 15em;
	}

}

/* SPIF boxes */

div.spif-box-wrap {
	padding: 0;
	max-width: 60em;
	clear: both;
	margin-top: 1.5em;
	position: relative;
	padding-bottom: 2em;
	margin-bottom: 1em;
}

@media screen and (max-width: 60em) {
	
	div.spif-box-wrap {
		padding: 0 1%;
	}
	
	div.spif-box-wrap > div {
		min-height: 22.5em;
		padding-bottom: 1.5em;
	}
}

div.spif-box-wrap > div {
	float: left;
	width: 32%;
	margin: 0;
}

div.spif-box-wrap h2 {
	margin: 0 0 0.7em;
}

div.spif-box-wrap ul {
	font-size: 0.75em;
}

div.spif-box-wrap p.more {
	position: absolute;
	bottom: 0;
	width: 30%;
}

#col2 {
	margin-left: 2%;
}

#col3 {
	float: right;
}

p.more {
	clear: both;
}
/*
@media screen and (min-width: 600px) and (max-width: 830px) {

	#news-box > div {
		width: 55%;
	}
	
	#news-box article p {
		font-size: 0.875em;
	}
	
	#news-box ul {
		width: 38%;
	}	
}
/* for when we start to scrunch down. Helps keep lookin' good on portrait iPad */
/*
@media screen and (max-width: 775px) {
	
	#news-box article h3 {
		font-size: 0.8em;
		line-height: 1.4;
	}
	
	#news-box li {
		font-size: 0.875pem;
	}
}
*/

/* Carousel overrides to adjust box text size and position if required */

#carousel figcaption.caption-1100 h2 {
	font-size: 1.7em;
	line-height: 1.2;
}

#carousel figcaption.caption-1136 h2 {
	font-size: 1.7em;
	line-height: 1.2;
}

#carousel figcaption.caption-1100 p {
	font-size: 1.3em;
}

#carousel figcaption.caption-1100 {
	padding: 1.3em;
}

@media screen and (min-width: 760px)  {
	#carousel figcaption.caption-1248 {
	width: 80%;
	}
}

@media screen and (min-width: 880px){
	
	#carousel figcaption.caption-1248 {
	width: 65%;
	}
}

html.ie8 #carousel figcaption.caption-1248 {
	width: 100%;
}
