/*-------------------------------------------------------------------------------------------*/
/* RESPONSIVE LAYOUT — phones and tablets (959px and narrower); desktop is unchanged */
/*-------------------------------------------------------------------------------------------*/

/* --- menu button: mobile only --- */
.menu-toggle {
	display: none;
}

@media screen and (max-width: 959px) {

	/* --- page width --- */
	body {
		min-width: 0;
	}
	.col-full {
		width: auto;
		padding: 0 15px;
	}
	#main,
	#main.fullwidth,
	#sidebar {
		float: none;
		width: auto;
	}
	#sidebar {
		margin-top: 30px;
	}
	img,
	iframe {
		max-width: 100%;
		box-sizing: border-box;
	}
	img {
		height: auto;
	}

	/* --- header and menu --- */
	#header {
		padding: 15px 0;
	}
	#logo {
		float: none;
		text-align: center;
	}
	.nav-wrap {
		clear: both;
	}
	.menu-toggle {
		display: block;
		width: 100%;
		margin: 15px 0 0;
		padding: 12px 15px;
		border: 0;
		border-radius: 3px;
		background: #155789;
		color: #fff;
		font: bold 15px/20px 'Droid Sans', Helvetica, Arial, sans-serif;
		text-align: left;
		cursor: pointer;
	}
	.menu-toggle:after {
		content: " \25BE";
	}
	.menu-toggle[aria-expanded="true"]:after {
		content: " \25B4";
	}
	ul#nav {
		display: none;
		float: none;
		margin: 0;
		border: 1px solid #e6e6e6;
		border-top: 0;
	}
	ul#nav.nav-open {
		display: block;
	}
	#nav li {
		float: none;
		margin: 0;
		padding: 0;
		border-bottom: 1px solid #e6e6e6;
		border-radius: 0;
		box-shadow: none;
	}
	#nav a {
		padding: 12px 15px;
		font-size: 15px;
		line-height: 20px;
	}
	#nav li ul,
	#nav li:hover ul,
	#nav li:focus-within > ul {
		position: static;
		left: auto;
		width: auto;
		padding: 0 0 0 15px;
		border: 0;
		box-shadow: none;
		background: none;
	}
	#nav li ul li {
		border-bottom: 0;
		border-top: 1px solid #efefef;
	}
	#nav li ul li a {
		width: auto;
		line-height: 20px;
		background-position: 5px 16px;
	}

	/* --- homepage slider: text only, full width --- */
	#featured.col-full {
		height: auto !important;
		padding: 25px 0 30px;
	}
	#featured .slide {
		width: 100vw;
		padding: 0 15px;
		box-sizing: border-box;
	}
	#featured .featured-image {
		display: none;
	}
	#featured h1 span {
		font-size: 26px !important;
		line-height: 1.2;
	}
	#woofader .ada-pause-wrap {
		width: auto;
	}
	#woofader .ada-pause {
		right: 15px;
	}

	/* --- homepage boxes --- */
	#mini-features .block,
	#mini-features .block.last {
		float: none;
		width: auto;
		margin: 0 0 30px;
	}
	#mini-features .block:after {
		content: "";
		display: block;
		clear: both;
	}

	/* --- content tables used for layout --- */
	.entry table,
	.entry table[role="presentation"] td {
		display: block;
		width: auto !important;
	}
	.entry table[role="presentation"] tbody,
	.entry table[role="presentation"] tr {
		display: block;
	}

	/* --- contact form --- */
	.gform_wrapper input[type=text],
	.gform_wrapper textarea {
		width: 100% !important;
		box-sizing: border-box;
	}
	.gform_wrapper .ginput_complex .ginput_left,
	.gform_wrapper .ginput_complex .ginput_right {
		float: none !important;
		width: 100% !important;
	}

	/* --- footer --- */
	#footer-widgets .left,
	#footer-widgets .right {
		float: none;
		width: auto;
		padding: 0;
		background: none;
	}
	#footer .col-left,
	#footer .col-right {
		float: none;
	}

	/* --- sidebar badges: centered 2-column grid (no floating) --- */
	#text-7 .sidebar-anniversary {
		display: block;
		margin: 0 auto;
	}
	.sidebar-badges {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 25px 20px;
		align-items: center;
		justify-items: center;
		margin-top: 10px;
	}
	.sidebar-badges .sidebar-badge {
		float: none !important;
		min-width: 0;
		max-width: 100%;
		padding-top: 0 !important;
		text-align: center;
	}
	.sidebar-badges .sidebar-badge img {
		padding-top: 0 !important;
		vertical-align: middle;
	}
	.sidebar-badges .sidebar-badges-clear {
		display: none;
	}

	/* --- article thumbnails stay beside the text but smaller on phones --- */
	.single .entry img.thumbnail {
		max-width: 40%;
	}
}

/* --- phones: sidebar badges in one centered column --- */
@media screen and (max-width: 599px) {
	.sidebar-badges {
		grid-template-columns: minmax(0, 1fr);
	}
}
