html {
    overflow-y: scroll;
}

*, *::before, *::after {
	box-sizing: border-box;
}

body {
	background: #05537D;
	margin: 0;
	padding: 0;
	font-size: 100%;
	font-family: sans-serif;
}

h3 {
	margin: 1em 0;
}

h4 {
	margin: 1em 0 0.3em 0;
}

h4 + p {
	margin-top: 0.2em;
}

.mobile-only {
	display: none;
}

/* Generic styles */
.centerBlock {
	margin: 0 auto;
}

.centerAlign {
	text-align: center;
}

.left {
	float: left;
}

.right {
	float: right;
}

.clear {
	clear: both;
}

a.noLink:link		{ color: black; text-decoration: none; }
a.noLink:visited	{ color: black; text-decoration: none; }
a.noLink:active		{ color: black; text-decoration: none; }
a.noLink:hover		{ color: black; text-decoration: none; }

a img {
	border: 0;
}

.caption {
	font-size: 0.9em;
	font-style: italic;
}

/* Page template */
.pageContainer {
	margin: 0 auto;
	max-width: 1000px;
	background-color: #043D5C;
	padding: 5px;
	transition: max-width 0.4s ease;
	overflow-x: hidden;
}

/* Header */
.headerContainer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	background-color: #E9EDF5;
	padding-top: 10px;
}

.headerLogo {
	flex: 0 0 auto;
	padding: 10px 30px 10px 10px;
}

.headerLogo img {
	max-width: 330px;
	width: 100%;
	height: auto;
	display: block;
	transition: max-width 0.4s ease;
}

.headerInformation {
	flex: 1 1 0;
	max-width: 550px;
	min-width: 250px;
	transition: max-width 0.4s ease, flex-basis 0.4s ease;
}

.headerInformation .address {
	text-align: center;
	font-size: 1em;
	font-weight: bold;
}

.headerInformation .phone {
	text-align: center;
	font-size: 1.2em;
	font-weight: bold;
	padding-bottom: 0.4em;
}

.headerInformation .hours {
	width: 100%;
	font-size: 1em;
	margin: 0.6em 0 0.8em 0;
}

.headerInformation .hours table {
	width: 85%;
	margin: 0 auto;
}

.hours .day {
	width: 60%;
}

.headerInformation .contact {
	display: flex;
	justify-content: space-around;
	/* Scale from 20px at 400px width down to 0px at 316px */
	gap: clamp(0px, calc((100vw - 687px) * 0.238), 20px);
	margin: 0 clamp(0px, calc((100vw - 687px) * 0.238), 20px);
}

.headerInformation .contact > div {
	width: 50%;
	margin: auto;
}

.headerInformation .online img {
	max-width: 285px;
	width: 100%;
	height: auto;
}

/* Divider */
.dividerContainer {
	background-color: #2D6E91;
	height: 20px;
}

/* Main layout */
.mainContainer {
	display: flex;
	background-color: #ffffff;
}

.sidebarContainer {
	flex: 0 0 216px;
	text-align: justify;
	font-size: 90%;
	background-color: #E9EDF5;
	transition: flex-basis 0.4s ease;
}

.sidebarContainer .sidebarContent {
	padding: 10px 0;
	color: white;
}

.sidebarContainer .sidebarContent .gpaLogo {
	width: 100%;
	text-align: center;
	margin: 10px 0;
}

.sidebarContainer .sidebarContent .gpaLogo img {
	width: 90%;
}

.sidebarContent .menu ul {
	margin: 0;
	padding: 5px 10px;
	list-style-type: none;
	font-size: 1.15em;
	font-family: "Trebuchet MS", sans-serif;
}

.sidebarContent .menu li {
	margin: 5px 0;
}

.sidebarContent .menu li .fa-arrow-up-right-from-square {
	opacity: 0.45;
}

.sidebarContent .menu li div {
	padding: 8px;
	background-color: #f6f6f6;
	border: 1px solid #c0c0c0;
}

.sidebarContent .menu li div:hover {
	background-color: #ADD8F0;
}

.sidebarContent .menu li div.currentPage {
	background-color: #05537D;
	color: white;
	border-color: transparent;
}

.sidebarContent .menu li div.image-only {
	padding: 0;
	line-height: 0;
}

.sidebarContent .menu .menu-text {
	display: none;
}

.sidebarContent .menu a:link		{ color: black; text-decoration: none; }
.sidebarContent .menu a:visited	{ color: black; text-decoration: none; }
.sidebarContent .menu a:active	{ color: black; text-decoration: none; }
.sidebarContent .menu a:hover	{ color: black; text-decoration: none; }

/* Body content */
.bodyContainer {
	flex: 1 1 0;
	min-width: 0;
	vertical-align: top;
	text-align: justify;
	line-height: 1.1em;
	padding: 0 10px 2em 10px;
}

.bodyContainer ul {
	text-align: left;
}

.bodyContainer .contactDetails td {
	line-height: 1.3em;
	vertical-align: top;
	padding-bottom: 0.2em;
}

.bodyContainer .contactDetails .header {
	font-weight: bold;
	width: 100px;
}

.bodyContainer table {
	border-collapse: collapse;
}

.bodyContainer table td {
	margin: 0;
	padding: 0;
	vertical-align: top;
}

.interests {
	font-size: 0.9em;
	font-style: italic;
	padding: 0 0.8em 0.3em 0.5em;
}

.front-door img {
	height: auto;
}

/* Footer */
.footerContainer {
	display: flex;
	align-items: center;
	color: #FFFFFF;
	background-color: #2D6E91;
	min-height: 34px;
	padding: 5px 0;
}

.footerContainer .copyright {
	flex: 1;
	text-align: center;
}

.footerContainer .credit {
	flex: 0 0 20%;
	text-align: right;
	font-size: 0.8em;
	padding-right: 5px;
}

.footerContainer .credit a:link    { color: #9AE9FF; }
.footerContainer .credit a:visited { color: #9AE9FF; }
.footerContainer .credit a:active  { color: #9AE9FF; }
.footerContainer .credit a:hover   { color: #9AE9FF; }

/* Fees */
table.feeTable th, table.feeTable td { padding: 5px; white-space: nowrap; }
table.feeTable tr:nth-child(even) { background: #EEE; }
table.feeTable tr:nth-child(odd)  { background: #FFF; }

/* Responsive map */
.mapContainer {
	position: relative;
	width: 100%;
	max-width: 625px;
	margin: 20px auto 0 auto;
	background-color: #eeeeee;
}

.mapContainer::before {
	content: "";
	display: block;
	padding-top: 56%;  /* 350/625 aspect ratio */
}

.mapContainer iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Fee table responsive */
table.feeTable {
	width: 100%;
}

/* ---- Responsive ---- */

@media (max-width: 700px) {
	/* Stack header vertically */
	.headerContainer {
		flex-direction: column;
		text-align: center;
	}

	.headerLogo {
		width: 100%;
		text-align: center;
	}

	.headerLogo img {
		max-width: 280px;
		margin: 0 auto;
	}

	.headerInformation {
		width: 100%;
	}

	.headerInformation .phone {
		padding-bottom: 0;
	}

	.headerInformation .contact {
		flex-direction: column;
		align-items: center;
		gap: 10px;
		margin: 0 10px 10px 10px;
	}

	.headerInformation .contact > div {
		width: auto;
		text-align: center;
	}

	/* Stack sidebar above content */
	.mainContainer {
		flex-direction: column;
	}

	.sidebarContainer {
		flex: 0 0 auto;
	}

	.sidebarContent .menu ul {
		display: flex;
		flex-wrap: wrap;
		gap: 5px;
		padding: 10px;
	}

	.sidebarContent .menu li {
		margin: 0;
	}

	.sidebarContent .menu li div {
		padding: 6px 10px;
		font-size: 0.85em;
	}

	.sidebarContent .menu li:has(div.image-only) {
		display: none;
	}

	.mobile-only {
		display: block;
	}

	.sidebarContent .menu .menu-img {
		display: none;
	}

	.sidebarContent .menu .menu-text {
		display: inline;
	}

	/* Footer stacks */
	.footerContainer {
		flex-direction: column;
		text-align: center;
		padding: 10px 5px;
	}

	.footerContainer .credit {
		text-align: center;
		padding: 3px 0;
	}

	/* Fee table scroll */
	table.feeTable {
		display: block;
		overflow-x: auto;
	}

	/* Staff two-column table to stack */
	.bodyContainer > table[style] {
		display: block;
	}

	.bodyContainer > table[style] tr,
	.bodyContainer > table[style] td {
		display: block;
		width: 100% !important;
	}
}

/* ---- Large screens ---- */

@media (min-width: 1536px) {
	.pageContainer {
		max-width: 1400px;
	}

	.sidebarContainer {
		flex: 0 0 250px;
	}

	.headerLogo img {
		max-width: 350px;
	}

	.headerInformation {
		max-width: 850px;
		flex-basis: 850px;
	}

	.headerInformation .hours {
		padding: 0 100px;
	}

	.front-door {
		max-width: 800px;
		margin: 0 auto;
	}

	.bodyContainer {
		padding: 0 20px 2em 20px;
		line-height: 1.3em;
	}
}
