/* -----------------------------------
 1140px wide and below
 ----------------------------------- */
 @media (max-width: 1140px) {
	.js-on .container,
	.js-on .sub-nav .container,
	.wi-breadcrumb {width: 95%;}
	.js-on .container.banner { width: 100%; }
	.js-on .container.banner .container { width: 95%; } /* override for header */
	.js-on #content {
		width: 65%;
		margin-right: 0;
		min-height: 0;
		border-right: none;
	}
	.js-on .form-content{width:116%!important;}
	.js-on .two-col-content {width:102.9%!important;}
	.js-on .full-width {width: 100%;}
	.js-on #related-links-left {width: 28%;}
	.js-on #main {width: 100%;}
	.js-on #header {
		position: relative;
		top: 0;
	}
  .js-on header .container .bg-pattern {
		left: -250px;
	}

	/* mega menu */
	.js-on .primary-nav .sub-nav-group li {
		max-width: 24.5%;
	}

	/* page content */
	.js-on #above-pannel #second-level-toggle {clear: left;}
	.js-on content .tableWrap {
		overflow-x: auto;
		display:block;
	}
	.js-on #content .unfloat{float:none!important;}
	.js-on #sidebar {display: none;}

	/*home*/
	#home .js-on .container {width:100%;}
	#home .banner.container.js-on .container { width: 95%; }
	#home div.js-on #content {
		margin: 0;
		padding: 0;
	}
	.js-on .summary {margin-right: 30px;}
	#home .hero-feature {
		width: auto;
	}

	/* landing */
	.js-on #sectionhead {display: none;}
	.js-on #sectionhome #main, body#sectionhome.js-on #main {background-image: none !important;}
	.js-on #content .colFloat {width:44%;}
}

/* -----------------------------------
 1024px wide and below
 ----------------------------------- */
@media (max-width: 1024px) {
	#home .header-nav .container { width: 95%; }
	.primary-nav a,
	.primary-nav span {
		margin-right: 30px;
	}

	#home div.js-on {
		/*overflow: hidden; <-- this cause the issues with search autocomplete dropdown hidden behind */
		width: 100%;
	}
	.wi-message {
    	padding: 0 5px;
	}
	#home .hero-feature {
		margin: 0;
		background-color: #F4F4F4;
	}
	#home .hero-banner {
		margin-left: 20px;
	}
	#home #alertbox,
	#home #warning1,
	#home #warning2,
	#home #warning3 {
		margin-right: 20px;
		margin-left: 20px;
	}

	/* mega menu */
	.js-on .primary-nav .sub-nav-group li {
		display: block;
		float: left;
	    width: 33.3%;
		max-width: 100%;
	}
	.js-on .primary-nav .sub-nav-group a {
		display: block;
	}
	.js-on .primary-nav-item > a,
	.js-on .primary-nav-item > span {
		margin-right: 30px;
	}
	.js-on .sub-nav-group li:nth-child(4) .line {
	    background-color: #F4F4F4;
	}
	.js-on .primary-nav .sub-nav-group li:nth-child(4) a,
	.js-on .primary-nav .sub-nav-group li:nth-child(4) .line,
	.js-on .primary-nav .sub-nav-group li:nth-child(8) a,
	.js-on .primary-nav .sub-nav-group li:nth-child(8) .line {
		margin-right: 10px;
	}
	.js-on .primary-nav .sub-nav-group li:nth-child(3) a,
	.js-on .primary-nav .sub-nav-group li:nth-child(3) .line,
	.js-on .primary-nav .sub-nav-group li:nth-child(6) a,
	.js-on .primary-nav .sub-nav-group li:nth-child(6) .line,
	.js-on .primary-nav .sub-nav-group li:nth-child(9) a,
	.js-on .primary-nav .sub-nav-group li:nth-child(9) .line {margin-right: 0}
	.js-on .primary-nav .sub-nav-group li.no-line-4-wide .line {
		background-color: #F4F4F4;
	}
	.js-on .primary-nav .sub-nav-group li.no-line-3-wide .line {
		background-color: #fff;
	}
	.js-on #home .header-nav > div.js-on {
		overflow: inherit;
	}
	.js-on .primary-nav .sub-nav-group a,
	.js-on .primary-nav .sub-nav-group .line {
		max-width: none;
		margin-right: 9px;
		margin-left: 1px;
	}

	.wi-feature-tiles, .wi-news-tiles, .wi-latest-updates {
		padding: 40px 20px;
	}
	.wi-news-tiles .feature {
		border-top: none;
		border-bottom: none;
	}
}

/* -----------------------------------
 870px wide and below
 ----------------------------------- */
@media (max-width: 870px) {
	.js-on .container #content {width: 100%;}
	.js-on .form-content{width:100%!important;}
	.js-on .two-col-content {width:102.9%!important;}
	.js-on #related-links-left {
		display: none;
		width: 39%;
	}
	.js-on #content .rightFloat {
		width: 100%;
		float: none;
	}
	.js-on #content .helprightcol {width: 100%;}
	.js-on #banner-bg {background-position: 360px 0!important;}
	.js-on #search-text-wrap {display: none;}
	.js-on #login, .nav-icon {
		padding: 11px 13px;
		margin: 5px 5px 5px 0;
		width:auto;
		float:left;
		font-size: 112%;
	}
	.mobile-nav-holder {
		display: flex;
		justify-content: right;
		flex-wrap: wrap;
	}
	.search-mobile-wrap {
		float: none;
	}
	.js-on .search {
		float: right;
		max-width: 250px;
	}
	.js-on .search,
	.js-on .search-icon {
		margin: 5px 5px 5px 0;
	}
	.js-on .highlight {
		background-color: #fff;
		-moz-border-radius: 0; /* FF1+ */
		-webkit-border-radius: 0; /* Saf3-4 */
		border-radius: 0; /* Opera 10.5, IE 9, Saf5, Chrome */
		-moz-box-shadow: 0 0 0 rgba(0, 0, 0, 0.7); /* FF3.5+ */
		-webkit-box-shadow: 0 0 0 rgba(0, 0, 0, 0.7); /* Saf3.0+, Chrome */
		box-shadow: 0 0 0 rgba(0, 0, 0, 0.7); /* Opera 10.5+, IE 9.0 */
		padding: 0px 0px;
		margin: 0;
	}
	.js-on nav .nav-icon {padding :21px 63px 20px 0!important;}
.js-on #nav-wrap {top:-3px; /*-67px*/}
	.js-on .online-services > div {
		float:none;
		clear:both;
		width:99% !important;
		display:inline-block;
		/*max-width:287px;*/
	}
	.js-on .online-services > div.x-long {
	    /* styling for x-long text button - could be merged into above */
		height: auto;
	}
	.js-on .online-services .block {
		/*margin-right: 0 !important;*/
		min-height: auto !important;
	}
	.js-on .online-services  .col2 {padding: 20px 0 0;}
	.js-on .online-services {width: 100%;}
	.js-on #header a.nav-icon {display:block;}

	/* Home */
	body#home.js-on div.js-on .margin-all {padding-top:0;}
	#home .hero-feature {background-position: right top;}
	#home .hero-banner{
		margin-top:25px;
		margin-bottom: 25px;
	}
	.wi-feature-tiles #story {
		grid-template-columns: repeat(2, 1fr);
	}
	.wi-news-tiles .news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	#home #news .story a {
		min-height:143px;
	}
	#home #news .story-text {width:auto;}

	.wi-message-text {
    margin: 0 100px 0 68px;
    padding: 15px 35px 15px 16px;
	}

	.js-on .lsvlogo {
		float: none!important;
		margin: 0!important;
		padding: 0!important;
	}
}

/* -----------------------------------
 870px wide and below
 ----------------------------------- */
@media (max-width: 870px) {


	.js-on .top-nav,
	.js-on .primary-nav  {
		background: none;
		width: 50px;
		float:left;
		display:none;
	}
	.js-on .site-header .mobile-nav {
		display: block; /* show mobile navigation */
	}
	.js-on .primary-nav a {display:none;}
	.js-on .mobile-nav a#home-icon-mob {display:block;}
	.js-on #header #navigation-float  {width: auto!important;}
	.js-on header .mobile-nav.mobile-nav-right {float: right;}
	.js-on header .mobile-nav.mobile-nav-left {float: left;}
	.js-on #banner-blue {height: 155px!important;}
	.js-on a#home-icon:hover, .js-on a#home-icon:active {
		background-color: #282D41 !important;
		transition-duration: 0.5s;
		-webkit-animation-duration: 1s;
		-webkit-animation-delay: 0.5s;
		-webkit-animation-timing-function: linear;
	}
}

/* -----------------------------------
 768px wide and below - design changes to tablet
 ----------------------------------- */
@media (max-width: 768px) {
	.js-on	#banner-bg {
		width: 759px;
		top: 76px;
		background-size: contain!important;
		background-position: 340px 0!important;
		max-height: 200px;
	}
	.js-on #banner-blue {height: 165px !important;padding-top: 20px !important;}
	.js-on .margin-all {float: none;}
	.js-on #header #mobile-icons-wrap {
		display: block;
		position: absolute;
		top: 57px;
	}
	.js-on body {margin: 0 20px;}
	.js-on .container {
		left: 0px;
	}
	.js-on	#header {
		margin-left: 0;
		margin-right: 0;
		padding-left: 0;
		padding-right: 0;
	}
	.js-on	#header .logo {margin-right: 0;}
	.js-on	#header .logo-winz {
		background: url('../images/logo-winz.png') no-repeat;
		background: none,  url("../images/logo-winz.svg") bottom left no-repeat; /* logo-winz-tablet.png */
		background-size:293px 42px;
		width: 293px;
		height: 42px;
	}
	.js-on	#header hr {margin-bottom: 10px!important;}
.js-on #nav-wrap {top: -3px; /*-74px*/}

	/*GSA*/
	.js-on	#search .ss-gac-m {
		clear: both;
		float: none;
		width: 280px !important;
		top: 0;
		left: 0;
	}
	.js-on #main {
		padding-left: 20px;
		margin-left: 0px;
		padding: 0;
		width: 100%;
	}
	.js-on #content {
		padding: 0 0 35px 0;
		border-right: 0;
		background: none;
		width: 100%;
	}
	.js-on #content h1 {
		margin: 0;
		background: none;
		font-size: 3rem;
		padding:0;
		clear:both;
	}
  .js-on #content h2 {
		font-size: 2rem;
	}
	.js-on #main #content .summary {margin: 10px 0;}
	.js-on #main #second-level-nav {
		clear: both;
		margin-top: 10px;
	}
	.js-on #main .hr {clear: both;}

	.js-on .related-pages, .js-on .contact-us  {margin: 15px 0px 0 0px;}

	.js-on .online-services a.finance {padding-right:0px!important;}
	.js-on .online-services .button a {padding-top:10px!important;}
	.js-on .online-services .button.button-mymsd a {padding-top:0!important;}
	.js-on .online-services .button a div {margin-top:-2px!important;}
	.js-on .online-services .long a {padding-top:8px!important;line-height:1em!important;}
	.js-on .online-services .long a div {margin-top:0px!important;}
	a.check-what-you, a.school-year, a.accomm {
		line-height: normal;
		padding-bottom: 0 !important;
	}


}

/* -----------------------------------
 between 750px and 770px
 ----------------------------------- */
@media (min-width: 750px) and (max-width: 770px) {
	body#section-landing .two-col ul li:nth-child(2n+1) .online-services .block {margin-right:22px;}
	#home .hero-feature {
		margin: 0;
	}
	#home .hero-banner {width: 50%;}

}

/* -----------------------------------
 750px wide and below
 ----------------------------------- */
@media (max-width: 750px) {
	.js-on #content .crop-left, .js-on #content .crop-right {
		display: block;
		overflow-x: hidden;
		float: left;
		width: 100%;
		position: relative;
	}
	.js-on #content .crop-right img {
		float: left;
		max-width: none;
	}
	.js-on #content .crop-left img {
		float: right;
		max-width: none;
	}

	/* Home */
	#home .hero-feature{
		width: auto;
		margin:0;
		min-height: 200px;
		background-position: left bottom;
	}
	#home .hero-banner{
		width: auto;
		margin-left: 0;
		margin-right: 0;
		margin-bottom: 0;
		margin-top: 20px;
	}
	#home .hero-banner h1 {
		padding: 20px 0 10px 20px;
		width: 60%;
    font-size: 3rem;
	}
	#home .hero-banner .summary {
		margin: 0px 17px;
		padding: 0;
		min-height: 100px;
		width: 60%;
	}
	#home .hero-banner .popular-topics {
		width: 100%;
		padding: 20px;
		margin: 0;
		background-color: #F4F4F4;
	}


}

/* -----------------------------------
 between 749px and 655px
 ----------------------------------- */
@media (min-width: 655px) and (max-width: 749px) {
	body#section-landing .two-col ul li:nth-child(2n+1) .online-services .block {
		margin-right:22px;
	}
}

/* -----------------------------------
 between 651px and 685px
 ----------------------------------- */
@media (min-width: 651px) and (max-width: 685px) {
	body#section-landing .two-col ul li:nth-child(2n+1) .online-services .block {
		margin-right:22px;
	}
	.js-on .online-services .min-long a {padding-top:12px!important;line-height:normal!important;padding-right:28px;}
	.js-on .online-services .min-long a div {margin-top:-4px!important;}
}

/* -----------------------------------
 650px wide and above
 ----------------------------------- */
@media (max-width: 650px) {
	.js-on .online-services a.finance {padding-right:0px!important;}
	.js-on .online-services .button a {padding-top:10px!important;}
	.js-on .online-services .button a div {margin-top:-2px!important;}
	.js-on .online-services .long a {padding-top:5px!important;line-height:1em!important;}
	.js-on .online-services .long a div {margin-top:2px!important;}
}

/* -----------------------------------
 633px wide and below
 ----------------------------------- */
@media (max-width: 633px) {
	.js-on .online-services a.finance {padding-right:0px!important;}
	.js-on .online-services .button a {padding-top:10px!important;}
	.js-on .online-services .button a div {margin-top:-2px!important;}
	.js-on .online-services .long a {padding-top:10px!important;line-height:1em!important;}
	.js-on .online-services .long a div {margin-top:-2px!important;}

}

/* -----------------------------------
 between 600px and 654px
 ----------------------------------- */
@media (min-width: 600px) and (max-width: 654px) {
	body#section-landing .two-col ul li:nth-child(2n+1) .online-services .block {
		margin-right:12px;
	}
}

/* -----------------------------------
 601px wide and above
 ----------------------------------- */
@media (min-width: 601px) {
	.js-on #search-mobile {display: block !important;}
}

/* -----------------------------------
 600px wide and below
 ----------------------------------- */
@media (max-width: 600px) {
	.js-on #main #content > ul > li > ul > li > ul > li, .js-on #main #content > ul > li > ul > li > ul > li > ul > li,
	.js-on #main #content > ul > li > ul > li > ul > li > ul > li > ul > li, .js-on #main #content > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li,
	.js-on #main #content > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li > ul > li {
		padding-left: 4px !important;
	}
	.js-on .search { max-width: 100%; }
	.js-on	.search-mobile-wrap  { order: 1; flex-basis: 100%; height: auto; }
	.js-on	.search-mobile  { display: none; }

	/*home page*/
	#home div.js-on #content h2, #home div.js-on #news h2 {
		font-size: 180%;
		border-top-width: 6px;
	}

	.js-on #content .colFloat {width:42%;}
	.js-on	.online-services .col1 .block .img, .js-on	.online-services .col2 .block .img {
		display: block;
		float: none;
		height: 60px;
		margin: 20px 0 5px 0;
		padding: 0;
		text-align: left;
		width: auto;
	}
	.js-on table.words-we-use tr {border-top: 1px #000 solid;}
	.js-on table.words-we-use td {border-top: none !important;}
	.js-on #logo-msd a {padding-right:15px!important;}
	.js-on body.show-search #search-mobile {float:left;}
	.tableWrap {overflow:auto;}
	.js-on .mobile-nav .search-icon {display: block;}
	.js-on .search-mobile-wrap {
		float: left;
	}
	.js-on .header-nav .search {
		margin-top: 5px;
		margin-bottom: 5px;
	}
  #home .hero-banner h1 {
  	width: 60%;
  }
}

/* -----------------------------------
 570px wide
 ----------------------------------- */
@media (max-width: 570px) {
	.js-on #header  #mobile-icons {display: none;}
	.js-on .swap {display: block;text-align: center;}
	.js-on .swap img {width: auto;}
	.js-on .hide {display: none!important;}
	.js-on #employers-providers {display:none;}

	/* search expand */
	body.show-search .js-on #header #search-mobile-wrap {padding: 15px 0 40px 0;}
	body.show-search { background-position: 0 55px!important;}
	body.show-search .js-on #banner-bg {top: 131px !important}

	/*pages - Section landing*/
	.js-on .two-col-content {width:100%!important;}
	.js-on .two-col .block-wrap {width:100%!important;}
	.js-on .two-col .block {margin-right:0!important;}
	.js-on .two-col .block {border-top-width:2px!important;}
	.js-on .two-col .block {
		padding:5px 0 0 0!important;
		min-height: auto !important;
	}

	.js-on .online-services a.finance {padding-right:0px!important;}
	.js-on .online-services .button a {padding-top:10px!important;}
	.js-on .online-services .button a div {margin-top:-2px!important;}
	.js-on .online-services .long a {padding-top:16px!important;line-height:1em!important;}
	.js-on .online-services .long a div {margin-top:-8px!important;}

	#home .hero-feature {background-position: 15px -15px;}

}
/* -----------------------------------
 550px wide
 ----------------------------------- */
@media (max-width: 550px) {
	.js-on .margin-all {clear: both;}
	.js-on .container.banner .container { width: 95%; } /* override for header */
	body.js-on {margin: 0;}
	.js-on #header  #mobile-icons-wrap {
		display: block;
		width: 100%;
		margin: 15px 0;
	}
	.js-on #header #mobile-icons {
		margin: 0 auto;
		position: static;
		width: 240px;
	}
	.js-on #tagline {height: 30px;}
	.js-on nav > ul {box-shadow: none;}
	.js-on #tooltip_continer {width: 150px;}
	.js-on .banner.container {
		width: 100%;
		margin: 0;
		padding: 0;
	}
	.js-on .search-mobile-wrap {
		margin: 0;
		padding: 0;
		/*overflow: hidden; <-- this cause the issues with search autocomplete dropdown hidden behind */
		clear: both;
	}
	.js-on #news .picture {height: auto;}

	/*GSA*/
	.js-on	#search-mobile #search a {position: static;}
	.js-on	#search .ss-gac-m {
		clear: both;
		float: none;
		width: 246px !important;
	}
	.js-on #header {
		width: 100%;
		margin: 0;
		padding: 0;
		height: 125px !important;
	}
	.js-on #search-mobile #search {
		text-align: center;
		padding: 0;
	}
	.js-on #header  #mobile-icons {
		margin-top: 0px;
		clear: both;
		position: static;
		margin: 0 auto;
		float: none;
	}
	.js-on .back-white {display: none;}
	.js-on #content-title-head {
		display: block;
		font-size: 85%;
		vertical-align: middle;
		line-height: 1.55em;
		padding-bottom: 2px;
		min-height: 45px;
	}
	.js-on #content-title-head-hr {
		display: block;
		border-bottom: 2px dotted #272a67;
		margin: 0 0 10px 0;
	}
	.js-on #content-links-foot {width: 80%;}
	.js-on #content-title-foot {display: none;}
	.js-on .img-caption {
		padding: 0;
		width: auto;
		display: inline-block;
		width: 100%;
	}
	.js-on div.rightFloat {float: none !important;}
	.js-on #content .landing-right-col {
		margin: 0;
		width: auto;
	}
	.js-on #content .yes-no-buttons {
		float: none;
		margin: 0;
		padding: 0;
		text-align: center;
		width: 100%;
	}
	.js-on iframe[src*="map"] {width: 100% !important;}
	.js-on table.words-we-use td {
		width: 98%;
		display: block !important;
		float: left;
		clear: both;
		border-top: none;
	}
	.js-on table.words-we-use tbody > tr th + th {display: none}
	.js-on table.words-we-use td strong {width: 100%;}
	.js-on table.words-we-use {overflow-x: visible}
	.js-on #content .colFloat {width:94%;}
	.js-on .login-message {
		background-color: #FFF;
		padding: 5%;
		border: 1px solid #D3D3D3;
		border-radius: 8px;
		width: 80%;
		margin: 0 5%;
		position: absolute;
		top: 70px;
		z-index: 200;
		text-align: left;
	}
	.js-on	.income-calculator-wrap {
		width:100%!important;
		float:left;
	}
	.js-on	.income-calculator {
		margin:0 auto 20px auto!important;
		float:none;
	}


	/* Forms */
	.finding-staff, .lsv-form, .jobstreams-form, .income-declaration, .long-forms, .standdown-form {padding: 0 0 20px!important;}
	#content form fieldset {padding:0 15px 35px!important;}
    #content.form-content form fieldset {padding: 0 0 35px !important;}
	.js-on form .buttonrow .addbutton .button, .js-on form .buttonrow .addbutton .button:hover {
		background-position: 15px 10px;
		font-size: 100%;
		padding: 8px 30px 8px 40px;
		font-size: 100%;
		width: auto;
	}
	form .checkbox .label{margin-left: 30px!important;width:auto!important;}
	form .buttonrow {text-align: left;}
	form .buttonrow .submitbutton { padding: 8px 40px!important;}
}

/* -----------------------------------
500px wide
 ----------------------------------- */
@media (max-width: 500px) {
	/*Circumstance form*/
	#circumstance-form .circumstance-change .checkbox {width:100%!important;float:none!important;}

	/* Home */
	body#home .container {padding-top: 0 !important;}
	body#home.js-on div.js-on .margin-all {padding-top:0;}
	#home div.js-on #content {
		margin:0;
	}
	#home .hero-feature {
		width: auto;
		height: auto;
		min-height: auto;
		margin: 0;
		background: none;
		overflow:hidden;
	}
	#home .hero-banner {
		line-height: 1.2em;
		float: none;
		width: auto;
		margin: 0;
		padding: 0;
	}
    #home .hero-banner h1,
    #home .hero-banner .summary {
    	width: auto;
	}
    #home .hero-banner h1 {
		  padding-right: 20px;
	}
	#home .hero-banner .summary {
		padding: 0 20px 20px 20px;
		margin: 0;
		min-height: auto;
	}
	#home .hero-banner .popular-topics {
		padding:20px;
		margin: 0;
		width: auto; /* 87.6% */
	}
	#home .hero-banner .popular-topics .topics-buttons a{
		padding: .4em 14px .4em 14px;
	}
	#home div.js-on #content h2 {
		font-size: 120%;
	}
	#home #news h2{
		font-size:180% !important;
	}
	.wi-feature-tiles #story {
		grid-template-columns: repeat(1, 1fr);
	}
	.wi-news-tiles .news-grid {
		grid-template-columns: repeat(1, 1fr);
	}
	#home #news .story a {
        border-left: none;
		min-height:90px;
	}
	#home #news .story-text {
		padding:10px;
		float:none;
		width:auto;
	}
	#home #news .picture-text img {
		width:100%;
		height: auto;
	}
}

 /* -----------------------------------
 390px wide - mobile layout
 ----------------------------------- */
@media (max-width: 390px) {
	.js-on .container {padding-top: 6px!important;}
	.js-on .banner .container, .js-on .banner.container {padding-top: 0!important;} /* refactor one day */
	.js-on #banner-bg {top: 56px!important;}
   .pdf img, .rtf img, .word img, .powerpoint img, .excel img, .project img, .text img, .image img, .zip img, .mpeg img, .flashvideo img, .flash img, .odt img, .pages img, .gdoc img, .email img {
		padding-bottom: 45px!important;
	}
}

/* -----------------------------------
 410px wide - mobile layout
 ----------------------------------- */
@media (max-width: 414px) {
	.js-on #banner-bg {
		width: 559px;
		top: 56px;
		max-height: 140px;
	}
	.js-on #banner-blue  {
		height: auto;
		padding-top: 4px !important;
		height: 120px !important;
		margin-top:10px !important;
	}
	.js-on #header .logo-winz {
		background: url('../images/logo-winz.png') no-repeat;
		background: none, url("../images/logo-winz.svg") no-repeat left bottom; /* logo-winz-mob.png */
		background-size: 238px 34px;
		width: 238px;
		height: 34px;
	}
	.js-on #header #logo-msd a {
		height: 55px;
		width: 320px;
		padding:0!important;
		background: url('../images/logo-msd-mob.png') no-repeat;
		background: none,  url("../images/logo-msd-mob.svg") no-repeat; /* logo-msd-mob.png */
	}
	.js-on #header hr {
		margin-top: 12px;
		margin-bottom: 5px!important;
	}
	.js-on .container {padding-top: 6px;}
	.js-on .banner.container {padding-top: 0;}
	.js-on #nav-wrap {top:-3px;/*-74px*/}

	/* search expand */
	.js-on #header .search-shadow {
		margin: 20px 0!important;
		float:left;
	}
	body.show-search .js-on #header #search-mobile-wrap {padding: 15px 0 40px 0;}
	body.show-search { background-position: 0 55px!important;}
	body.show-search .js-on #banner-bg {top: 100px !important}


}

/* -----------------------------------
 375px wide
 ----------------------------------- */
@media (max-width: 375px) {
	.js-on .online-services-buttons  {max-width: 375px !important;}
	.js-on #header  #home-icon {margin-left:0;}
	.js-on form .buttonrow .addbutton .button, .js-on form .buttonrow .addbutton .button:hover {
		padding-left: 18px;
		padding-right: 18px;
		background-image:none;
	}
	#home .hero-feature {width: 100%;}
	#home .hero-banner .summary {
		margin-top: 0;
		margin-bottom: 0;
		font-size: 70%;
	}
}

/* -----------------------------------
 330px wide
 ----------------------------------- */
@media (max-width: 330px) {
	.js-on .container {padding-top: 10px!important;}
	#home .header-nav .container{ width: 100%; }
	.js-on #header #logo-msd a {width: 288px;}
	#header .logo-winz a {width:auto!important;}
	.js-on .mobile-nav a#home-icon-mob {display:none;}
	.js-on .site-header .nav-icon {margin-left:0;}
	.js-on .income-calculator {
		width:100%;
		float:none;
		border-radius: 0;
		padding:0;
	}
	.js-on .income-calculator form {
		border-radius: 0;
		margin: 0 0;
	}
	.js-on .income-calculator label{margin: 4px 0;}
	.js-on .income-calculator .buttonrow {border-radius: 0;}
	.js-on .income-calculator .results *, .js-on	.income-calculator .buttonrow *{width:auto!important;}
	.js-on .income-calculator #hourly .input, .js-on .income-calculator #weekly .input {width:78px; }
	.js-on .income-calculator #hourly input, .js-on .income-calculator #weekly input {width:58px; }
	.js-on .income-calculator #hourly input#numberOfHours {width: 73px !important;}
	.js-on .income-calculator select{width:220px!important;}
	.js-on .income-calculator .buttonrow {width: 100%;}

	.js-on .online-services a.finance {padding-right:0px!important;}
	.js-on .online-services .button a {padding-top:10px!important;}
	.js-on .online-services .button a div {margin-top:-2px!important;}
	.js-on .online-services .long a {padding-top:8px!important;line-height:1em!important;}
	.js-on .online-services .long a div {margin-top:0px!important;}
	.js-on .online-services .long a.apply,.js-on .online-services .long a.supplier {padding-top:18px!important;}
	.js-on .online-services .long a.apply div,.js-on .online-services .long a.supplier div {margin-top:-10px!important;}

	#home .hero-banner{margin:0;}
	#home .wi-message {
    	padding-left: 0px;
	}
    #home .hero-banner h1 {
    	width: 80%;
	}
	#home .hero-banner .summary {
		margin: 0;
		width: auto;
		font-size: 80%;
        min-height: inherit;
		overflow: hidden;
	}
    #home .hero-banner .summary p {
    	margin-top: 0;
	}

	#home #alertbox,
	#home #warning1,
	#home #warning2{
		margin-right: 10px;
		margin-left: 10px;
	}
  	#home #news #tilesIntro {
      	padding-right: 10px;
      	padding-left: 10px;
  	}
}

/* -----------------------------------
 270px wide
 ----------------------------------- */
@media (max-width: 270px) {
	.js-on .search-icon {margin-left: 0!important;}
	.js-on .container {padding-top: 3px!important;}
	.js-on #banner-blue {height: 116px !important;margin-top: 20px !important;}
	.js-on #banner-bg {top: 60px!important;}
	.js-on #header .logo-winz {
		background: url('../images/logo-winz.png') no-repeat;
		background: none, url("../images/logo-winz.svg") bottom left no-repeat; /* logo-winz-mob2.png */
		width: 210px;
		height: 30px;
	}
	.js-on #header #logo-msd a {
		height: 51px;
		width: 210px;
		padding:0!important;
		background: url('../images/logo-msd.png') no-repeat;
		background: none,  url("../images/logo-msd.svg"); /* logo-msd-mob2.png */
	}
	#header #navigation-float {
		float:left!important;
		width:auto!important;
		min-width: 213px !important;
	}
	header .mobile-nav {float: left !important;}
	.js-on .online-services a.finance {padding-right:0px!important;}
	.js-on .online-services .button a {padding-top:12px!important;}
	.js-on .online-services .button a div {margin-top:-5px!important;}
	.js-on .online-services .long a {max-width:190px;padding-top:6px!important;line-height:1.2em!important;}
	.js-on .online-services .long div {margin-top:2px!important;}
	.js-on #footer {
		padding-left: 5px !important;
		padding-right: 5px !important;
	}
}

/* -----------------------------------
 Unified footer
 ----------------------------------- */
@media (max-width: 800px) {
  .footer-links {
    grid-template-columns: repeat(1, 1fr);
    width: auto;
  }
	.footer-logo-msd, .footer-logo-nzg {
		display: block;
		margin-left: auto;
		margin-right: auto;
	}
	#footer {
    text-align: center;
  }
	.footer-logos {
    height: auto;
  }
  #shielded-logo {
    float: none;
    display: block;
    margin: 0 auto;
    padding: 20px;
  }

  .footer-link-nzg {
    margin-left: 0;
    padding-top: 20px;
  }

}

@media (min-width: 40.0625em) {
	.js-on	#footer	.footer-content, .js-on	#footer .footer-logos-container {
		padding-left: 24px;
		padding-right: 24px;
	}
	.js-on	#footer ul li a {display: inline-block;}
	.js-on	#footer .delimeter {
		padding-left: 4px;
		padding-right: 4px;
	}
}

@media (max-width: 60.0625em) {
	.js-on	#footer	.footer-link-nzg span {clear: both;}
}

/* -----------------------------------
Font scaling
 ----------------------------------- */
@media screen and (max-width: 1100px) {
	html { font-size: 95%; }
	.primary-nav { font-size: 1.3em ! important; }
	.primary-nav > a { margin-right: 35px;line-height: 1.6em ! important; }
	.primary-nav a.home-icon { background-position: 0 17px !important; }
}

@media screen and (max-width: 1000px) {
	html { font-size: 94%; }
    .primary-nav a,
	.primary-nav span {line-height: 1.8em ! important; }
}

@media screen and (max-width: 990px) {
	html { font-size: 93% ! important; }
}

@media screen and (max-width: 950px) {
	html { font-size: 87% ! important; }

	.search {
		max-width: 205px;
	}
  .links.website a::before {
    top: 4px;
  }
  .links.email a::before {
    top: 2px;
  }
}

@media screen and (max-width: 700px) {
  html { font-size: 92%; }
}

@media screen and (max-width: 600px) {
  html { font-size: 91%; }
}

@media screen and (max-width: 500px) {
  html { font-size: 90%; }
}

@media screen and (max-width: 400px) {
  html { font-size: 89%; }
  /*.account { font-size:85% }*/
}

@media screen and (max-width: 300px) {
  html { font-size: 88%; }
  /*.account { font-size:80% }*/
}

@media screen and (max-width: 280px) {
  /*.account { font-size:70% }*/
}

@media all and (max-width: 870px) and (-ms-high-contrast: none), (-ms-high-contrast: active) {
	/* IE10+ CSS */
	.wi-feature-tiles #story,
	.wi-news-tiles .news-grid {
		-ms-grid-columns: 1fr 20px 1fr;
	}
	.wi-feature-tiles .story:nth-child(2n + 1),
	.wi-news-tiles .feature:nth-child(2n + 1) {
		-ms-grid-column: 1;
	}
	.wi-feature-tiles .story:nth-child(2n),
	.wi-news-tiles .feature:nth-child(2n) {
		-ms-grid-column: 3;
	}
	.wi-feature-tiles .story:nth-child(1n + 3),
	.wi-news-tiles .feature:nth-child(1n + 3) {
		-ms-grid-row: 2;
		margin-top: 20px;
	}
	.wi-feature-tiles .story:nth-child(1n + 5) {
		-ms-grid-row: 3;
		margin-top: 20px;
	}
	.wi-feature-tiles .story:nth-child(1n + 7) {
		-ms-grid-row: 4;
		margin-top: 20px;
	}
	.wi-feature-tiles .story:nth-child(1n + 9) {
		-ms-grid-row: 5;
		margin-top: 20px;
	}

  .footer-links {
		-ms-grid-columns: 1fr;
	}
  .footer-links .link-column {
    -ms-grid-column: 1 !important;
  }
	.footer-links .link-column:nth-child(4n + 2) {
		-ms-grid-row: 2;
	}
	.footer-links .link-column:nth-child(4n + 3) {
		-ms-grid-row: 3;
	}
	.footer-links .link-column:nth-child(4n + 4) {
		-ms-grid-row: 4;
	}

 }
