/******************************************************************/
/***
Logo & title block - the logo is in SVG for quality at zoom, and so we 
can change the colours based on contrast
***/
/******************************************************************/

/* General logo styles for mobile & desktop */

.logo a, 
.logo svg {
	/* prevent logo from shrinking when focus & active borders are applied */
	box-sizing: content-box;
}

.logo a {
	display: inline;
	padding: 0;
}

.logo a:hover,
.logo a:active,
.logo a:focus {
	border: none;
	background: none;
}

.logo a:focus svg {
	border-width: 2px;
	border-style: solid;
}

.logo svg {
	float: left;
}

/* Mobile logo */

.logo-mobile {
	margin-left: 0.75rem;
	margin-right: 1rem;
	max-width: 3.72rem;
}

/* Desktop logo & site name + slogan */

.site-branding {
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	flex-wrap: wrap;
	padding: 1.6rem 10px 0 10px; /* top padding is necessary to compensate for moving logo up to align with site title/slogan */
}

.logo-desktop {
	max-width: 9rem; 
	max-height:9rem;
	align-self: center;
	margin-right: 1rem;
	line-height: 0;
	padding: 0.5rem;
}

.logo-desktop svg {
	margin-top: -1.2rem;
}

.title-slogan {
	align-self: center;
}

.site-title {
	font-size: 1.25rem;
	line-height: 1;
}

.site-slogan {
	line-height: 1;
	margin-top: 0.2rem;
}

@media all and (min-width: 584px) and (max-width: 900px) {
	.site-title {
		font-size: 1.6rem;
	}
	.site-slogan {
		font-size: 1.2rem;
	}
}

@media all and (min-width: 901px) {
	.site-title {
		font-size: 2rem;
		font-weight: inherit;
	}
	.site-slogan {
		font-size: 1.4rem;
	}
}