* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	background-color: #fff;
}

/* FONT */

body, table, input, button {
	font-size: 14px;
}

@media only screen and (min-width: 700px) {
	body, table, input, button {
		font-size: 18px;
	}
}

/* STRUCTURE */

header {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--secondary);
	background-color: #fff;
}

article {
	display: block;
	margin: 2em auto 4em auto;
	padding: 0 5%;
}

footer {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	margin: 2em 0 0 0;
	padding: 1em 5%;
	border-top: 1px solid var(--lightgrey);
	color: var(--grey);
	font-size: 14px;
	text-align: center;
	background-color: #fff;
}

@media only screen and (min-width: 700px) {
	footer {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

/* BANNER */

#banner {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	column-gap: 2em;
	height: 46px;
	margin: 0 auto;
	padding: 0.2em 5%;
	background-color: var(--secondary);
}

/* NAV */

nav {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	column-gap: 0;
	width: 100%;
	height: 86px;
	margin: 0 auto;
	padding: 0 5%;
}

nav img {
	width: auto;
	height: auto;
}

nav div:nth-of-type(2) { margin-left: auto } /* pushes out to right */
nav div:last-of-type { margin-left: 1em }

nav .hidden { display: none }

@media only screen and (min-width: 700px) {
	nav .hidden { display: block }
	nav .burger { display: none }
}

/* MENU */

.menu {
	display: none;
	border-bottom: 1px solid var(--secondary);
	text-align: center;
}

.menu.show {
	display: block;
}

.menu a {
	display: block;
	padding: 0.4em 1em;
}

.menu a:hover {
	background-color: var(--background);
}

/* LINKS */

a {
	color: inherit;
	text-decoration: underline;
}

a:hover {
	color: var(--primary);
	text-decoration: none;
}

#banner a {
	color: #fff;
	text-decoration: none;
}

#banner a:hover {
	color: #000;
}

nav a {
	display: block;
	color: #000;
	text-decoration: none;
	margin: 0;
	padding: 0.4em 0.6em;
	border-radius: 8px;
}

nav a:hover {
	color: var(--secondary);
	background-color: var(--tertiary);
}

footer a:hover {
	color: inherit;
}

/* PARAGRAPHS */

h1 {
	margin: 0 0 0.75em 0;
	padding: 0;
	font-size: 2em;
	color: var(--secondary);
	text-transform: uppercase;
}

h2 {
	margin: 0 0 0.75em 0;
	padding: 0;
	font-size: 1.5em;
	color: #000;
	text-transform: uppercase;
}

h3 {
	margin: 0 0 1em 0;
	padding: 0;
	font-size: 1em;
	color: #000;
	text-transform: uppercase;
}

p {
	margin: 0 0 1em 0;
	padding: 0;
}

hr {
	margin: 1em 0;
	padding: 0;
	border: 1px solid var(--lightgrey);
}

/* TABLE */

table {
	width: 100%;
	margin: 0 auto;
	padding: 0;
	border-collapse: collapse;
}

tr:first-child td, tr:first-child th { border-top: 0 }
tr td:first-child, tr th:first-child { border-left: 0 }

tr:last-child td, tr:last-child th { border-bottom: 0 }
tr td:last-child, tr th:last-child { border-right: 0 }

th, td { border: 0.8em solid transparent }

thead th, thead td {
	text-align: left;
	vertical-align: top;
	font-weight: bold;
}

tbody th {
	text-align: left;
	vertical-align: top;
	font-weight: bold;
}

tbody td {
	text-align: left;
	vertical-align: top;
}

tfoot td {
	text-align: left;
	vertical-align: top;
	font-weight: bold;
}

tfoot td {
	text-align: left;
	vertical-align: top;
}

/* IMAGES */

img.svg { height: 16px }

/* FORMS */

fieldset {
	margin: 0 0 1em 0;
	padding: 0;
	border: 0;
}

legend {

}

input {
	margin: 0;
	padding: 0.5em;
	border: 2px solid var(--lightgrey);
	border-radius: 8px;
	outline: none;
	transition: 0.5s;
}

input:focus:invalid {
	background-color: #ffdfdf;
}

input:focus:valid {
	background-color: #F0FFF0;
}

input:focus:placeholder-shown {
	background-color: #fff;
}

input:disabled {
	background-color: var(--background);
}

input[type="radio"] {
	appearance: none;
	--webkit-appearance: none;
	font-size: 0.8em;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #FFF;
	box-shadow: 0 0 0 1px rgb(0, 153, 203);
	vertical-align: middle;
}

input[type="radio"]:checked {
	background: rgb(237, 38, 89);
}

button {
	margin: 0;
	padding: 0.4em 0.6em;
	border: 0;
	background-color: var(--primary);
	color: #fff;
	border-radius: 8px;
}

button:hover {
	background-color: var(--secondary);
	cursor: pointer;
}

label {
	font-weight: bold;
}

input + input {
	margin-top: 0.2em;
}

/* ELEMENTS */

.pill {
	margin: 0 0 1em 0;
	padding: 1em;
	border-radius: 8px;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 0px 20px 0px;
	transition: 0.5s;
}

.pill:hover {
	box-shadow: rgba(0, 0, 0, 0.4) 0px 0px 20px 0px;
}

.padded {
	padding: 2em;
}

.single {
	flex-grow: 0 !important;
	min-width: 25em; /* was 20em */
}

.vstretch {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	row-gap: 1em;
}

.vcenter {

}

/* SPECIFIC */

.fill { width: 100% }

.left { text-align: left }
.centre { text-align: center }
.right { text-align: right }

/*
.blue { color: var(--secondary) }
.red { color: var(--primary) }
*/

#map {
	width: 100%;
	height:400px;
	border: 1px solid black;
}

/* ERRORS & NOTICES */

.errors {
	margin: 0 0 2em 0;
	color: #000;
	font-weight: bold;
	text-align: center;
}

.notices {
	margin: 0 0 1em 0;
	color: #000;
	font-weight: bold;
	text-align: center;
}

.errors > div + div, .notices > div + div {
	margin-top: 0.5em;
}

/* FLEX IT */

.flexit {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: stretch;
	row-gap: 0;
	column-gap: 1em;
	flex-wrap: wrap;
}

@media only screen and (min-width: 700px) {
	.flexit {
		flex-direction: row;
		justify-content: center;
		align-items: stretch;
	}
}

.flexit > * {
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 0; /* same starting size */
}

/* FLEX IT 2 */

.flexit2 {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-items: flex-start;
	row-gap: 0.5em;
	column-gap: 1em;
	flex-wrap: wrap;
}

@media only screen and (min-width: 700px) {
	.flexit2 {
		flex-direction: row;
		justify-content: space-between;
		align-items: center;
	}
}

.flexit2 > * {
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 0;
}

.flexit2 > *:last-of-type {
	align-self: flex-end;
	text-align: right;
}
