/* Heart Test UK */

:root {
	--teal: #00a191;
	--teal-light: #b2ece8;
	--text: #000;
	--muted: #888;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 12px;
	line-height: 1.2;
	color: var(--text);
	background: #fff;
}

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

img {
	max-width: 100%;
	height: auto;
	display: block;
}

/* HEADER */

.masthead {
	background-color: #00a291;
	margin-bottom: 20px;
}

.masthead a {
	display: block;
	max-width: 780px;
	margin: 0 auto;
}

/* LAYOUT */

.wrap {
	max-width: 780px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 225px minmax(0, 475px);
	align-items: start;
}

/* The home page sits on the ECG photo */
.home {
	background-image: url(/images/front/bg.jpg);
	background-repeat: no-repeat;
	background-position: center 85px;
}

/* MENU */

.menu ul {
	list-style: none;
	width: 220px;
}

.menu .top {
	display: block;
	padding: 5px 10px;
	font-size: 15px;
	font-weight: bold;
	color: var(--teal);
	background-color: #fff;
	cursor: pointer;
	list-style: none;
}

.menu summary::-webkit-details-marker {
	display: none;
}

.home .menu .top {
	color: #fff;
	background-color: transparent;
}

.menu .top.selected,
.home .menu .top.selected {
	color: #fff;
	background-color: var(--teal);
}

.menu ul ul {
	background-color: var(--teal-light);
}

.menu ul ul a {
	display: block;
	padding: 5px 5px 5px 25px;
	font-size: 12px;
	color: var(--teal);
}

.menu ul ul a:hover,
.menu ul ul a:focus-visible {
	background-image: url(/images/navbar_heart.jpg);
	background-position: 5px 5px;
	background-repeat: no-repeat;
}

.menu ul ul a.subselected {
	font-weight: bold;
}

/* CONTENT */

main {
	font-size: 12px;
	padding-bottom: 10px;
}

main p {
	margin: 7px 0;
}

main h2 {
	font-size: 13px;
	font-weight: bold;
	margin-top: 10px;
	scroll-margin-top: 10px;
}

.hero {
	margin-bottom: 5px;
}

h1 {
	display: block;
	margin: 0;
	background-color: var(--teal);
	color: #fff;
	font-size: 15.5px;
	font-weight: bold;
	padding: 5px;
}

.box1 {
	background-color: var(--teal-light);
	color: var(--teal);
	margin-bottom: 5px;
	padding-bottom: 10px;
}

.box1 > p {
	padding: 10px 10px 0;
	margin: 0;
}

.box1 a {
	color: var(--teal);
}

.box1 a:hover {
	text-decoration: underline;
}

.box3 {
	background-color: var(--teal);
	color: #fff;
	font-size: 15.5px;
	line-height: 1.3;
	font-weight: bold;
	padding: 5px 10px;
}

.intro {
	font-weight: bold;
}

.body {
	margin: 0 10px;
}

.quicklinks {
	padding: 10px 10px 0;
	font-weight: bold;
}

.quicklinks a {
	display: block;
	margin-bottom: 10px;
}

.quicklinks a:last-child {
	margin-bottom: 0;
}

.bullets {
	font-weight: bold;
	padding-left: 30px;
	margin: 7px 0;
}

.bullets li {
	margin-bottom: 4px;
}

.backtotop {
	display: inline-block;
	margin-top: 12px;
}

/* HOME */

.home-intro h1 {
	padding: 10px;
}

.home-list {
	padding-left: 27px;
	margin-top: 10px;
	font-size: 14.5px;
}

.home-list li {
	margin-bottom: 3px;
}

.panel {
	background-color: #fff;
	padding: 10px;
}

/* ABOUT */

.about-list {
	padding: 10px 10px 10px 23px;
	font-weight: bold;
}

.about-list li {
	margin-top: 5px;
}

.about-list li:first-child {
	margin-top: 0;
}

/* CONTACT */

.contact {
	margin-bottom: 15px;
}

.contact p {
	padding: 3px 7px;
	margin: 0;
}

.contact p:first-of-type {
	padding-top: 10px;
}

/* LINKS */

.links h2 {
	margin-top: 10px;
}

.links a:hover {
	text-decoration: underline;
}

/* SURVEY */

.survey {
	width: 100%;
	border-collapse: collapse;
	margin-top: 5px;
}

.survey th,
.survey td {
	padding: 4px 0;
	font-weight: normal;
	text-align: left;
}

.survey thead th {
	font-weight: bold;
}

.survey .score {
	width: 28px;
	text-align: center;
}

.survey tbody tr:nth-child(odd) {
	background-color: #f2fbfa;
}

.survey tbody th {
	padding-left: 4px;
}

.survey input[type="radio"] {
	accent-color: var(--teal);
	width: 15px;
	height: 15px;
	cursor: pointer;
}

.comments label {
	display: block;
	font-weight: bold;
	margin: 15px 0 5px;
}

.comments textarea {
	width: 100%;
	min-height: 90px;
	font: inherit;
	padding: 5px;
	border: 1px solid var(--teal-light);
	resize: vertical;
}

.submit {
	text-align: right;
	margin-top: 10px;
}

.button {
	background-color: #00a392;
	color: #fff;
	font: inherit;
	font-size: 13px;
	font-weight: bold;
	padding: 4px 10px;
	border: 0;
	cursor: pointer;
}

.button:hover {
	background-color: #008577;
}

.sent {
	margin-top: 15px;
	padding: 10px;
	background-color: var(--teal-light);
}

.sent textarea {
	width: 100%;
	min-height: 200px;
	font: inherit;
	padding: 5px;
	margin: 5px 0;
	border: 0;
	resize: vertical;
}

.sent a {
	color: var(--teal);
	font-weight: bold;
}

/* SMALL SCREENS */

@media (max-width: 720px) {
	body,
	main {
		font-size: 15px;
		line-height: 1.4;
	}

	.wrap {
		display: block;
		padding: 0 16px;
	}

	.home {
		background-size: 100% auto;
	}

	.menu {
		margin-bottom: 20px;
	}

	.menu ul {
		width: auto;
	}

	.menu .top {
		font-size: 17px;
		padding: 8px 10px;
	}

	/* The photo behind the menu is too busy at this size */
	.home .menu .top {
		color: var(--teal);
		background-color: rgba(255, 255, 255, 0.9);
	}

	.menu ul ul a {
		font-size: 15px;
		padding: 8px 8px 8px 25px;
	}

	.menu ul ul a:hover,
	.menu ul ul a:focus-visible {
		background-position: 5px 11px;
	}

	main h2 {
		font-size: 16px;
	}

	h1,
	.box3 {
		font-size: 17px;
	}

	.home-list {
		font-size: 16px;
	}

	.survey .score {
		width: 32px;
	}

	.survey input[type="radio"] {
		width: 20px;
		height: 20px;
	}
}
