/* TreeHouse Collective - article pages (loaded only on the new article pages) */

:root {
	--th-sky: #60c0fa;
	--th-pill: #2f9be0;
	--th-deep: #3e7ca3;
	--th-deep-dark: #2f6f96;
	--th-ink: #292929;
	--th-text: #50565c;
	--th-soft: #5d6670;
	--th-band: #e6e6e6;
	--th-tint: #eef7fd;
	--th-tint-line: #cfe4f2;
	--th-line: #dde6ec;
	--th-shadow: 0 0 3px 0 rgba(0, 0, 0, .2);
}

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

.th-page {
	margin: 0;
	background: #fff;
	color: var(--th-text);
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
	font-size: 16px;
	line-height: 1.75;
	overflow-x: hidden;
}

.th-wrap {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 20px;
}

.th-page a:focus-visible {
	outline: 2px solid var(--th-deep);
	outline-offset: 2px;
	border-radius: 3px;
}

/* Header: logo and title, same order as the other article pages */
.th-head {
	padding: 26px 0 46px;
	text-align: center;
}

.th-brand {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	color: var(--th-ink);
	text-decoration: none;
}

.th-brand img {
	display: block;
	width: 120px;
	height: 120px;
	border-radius: 50%;
}

.th-brand span {
	font-family: 'Oswald', Arial, Helvetica, sans-serif;
	font-weight: 300;
	font-size: 24px;
	line-height: 1.2;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
}

.th-brand:hover span {
	color: var(--th-deep);
}

.th-head h1 {
	margin: 20px 0 0;
	font-family: 'Oswald', Arial, Helvetica, sans-serif;
	font-weight: 300;
	font-size: 54px;
	line-height: 1.12;
	color: var(--th-ink);
	text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
	text-wrap: balance;
}

/* Patterned band that carries the article, as on the other pages */
.th-main {
	padding: 48px 0 64px;
	background: var(--th-band) url(../images/bg.png);
	border-top: 2px solid #ddd;
	border-bottom: 2px solid #ddd;
}

/* Opening photo with the introduction card laid over its lower edge */
.th-lead {
	position: relative;
}

.th-lead__photo {
	margin: 0;
	overflow: hidden;
	aspect-ratio: 12 / 5;
	border-radius: 140px 140px 0 140px;
	box-shadow: var(--th-shadow);
	background: #d4dde3;
}

.th-lead__photo img,
.th-strip img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.th-lead__card {
	position: relative;
	margin: -120px 0 0 96px;
	padding: 34px 40px 36px;
	background: #fff;
	border-radius: 15px;
	box-shadow: var(--th-shadow);
}

.th-lead__card p {
	margin: 0;
	font-size: 18px;
	line-height: 1.75;
	color: #3f454a;
}

/* Section blocks */
.th-block {
	position: relative;
	margin-top: 36px;
	padding: 28px 40px 34px;
	background: #fff;
	border-radius: 15px;
	box-shadow: var(--th-shadow);
}

.th-block h2 {
	display: inline-block;
	max-width: calc(100% + 30px);
	margin: 0 0 22px -30px;
	padding: 5px 22px 7px;
	background: var(--th-pill);
	color: #fff;
	font-family: 'Oswald', Arial, Helvetica, sans-serif;
	font-weight: 400;
	font-size: 27px;
	line-height: 1.3;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, .2);
	text-wrap: balance;
	border-radius: 40px 40px 0 40px;
}

.th-block > p {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.75;
	color: var(--th-text);
}

.th-block > :last-child {
	margin-bottom: 0;
}

.th-block strong {
	color: var(--th-ink);
	font-weight: 600;
}

.th-main a {
	color: var(--th-deep);
	text-decoration: underline;
	text-decoration-color: rgba(62, 124, 163, .45);
	text-underline-offset: 3px;
}

.th-main a:hover {
	color: var(--th-deep-dark);
	text-decoration-color: currentColor;
}

/* Questions section: tinted block */
.th-block--tint {
	background: var(--th-tint);
	box-shadow: var(--th-shadow), inset 0 0 0 1px var(--th-tint-line);
}

/* Tables from the article text */
.th-table {
	width: 100%;
	margin: 6px 0 22px;
	border: 1px solid var(--th-line);
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 12px;
	overflow: hidden;
	font-size: 15.5px;
	line-height: 1.55;
	background: #fff;
}

.th-table th {
	padding: 12px 20px 11px;
	background: var(--th-tint);
	border-bottom: 2px solid var(--th-sky);
	color: var(--th-deep);
	font-family: 'Oswald', Arial, Helvetica, sans-serif;
	font-weight: 400;
	font-size: 18px;
	line-height: 1.3;
	text-align: left;
	vertical-align: middle;
}

.th-table td {
	width: 50%;
	padding: 13px 20px;
	border-top: 1px solid var(--th-line);
	color: var(--th-text);
	vertical-align: top;
	overflow-wrap: break-word;
}

.th-table tbody tr:first-child td {
	border-top: 0;
}

.th-table tbody tr:nth-child(even) td {
	background: #f8fbfd;
}

/* Question list */
.th-qlist {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin: 4px 0 22px;
	padding: 0;
	list-style: none;
}

.th-qlist li {
	position: relative;
	padding: 13px 18px 13px 52px;
	background: #fff;
	border: 1px solid var(--th-tint-line);
	border-radius: 12px 12px 0 12px;
	color: var(--th-ink);
	font-size: 16px;
	line-height: 1.55;
}

.th-qlist li:last-child:nth-child(odd) {
	grid-column: 1 / -1;
}

.th-qlist li::before {
	content: "?";
	position: absolute;
	left: 16px;
	top: 13px;
	width: 25px;
	height: 25px;
	border-radius: 50% 50% 0 50%;
	background: var(--th-pill);
	color: #fff;
	font-family: 'Oswald', Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 25px;
	text-align: center;
}

/* Photo strip between sections, with the next block laid over its lower edge */
.th-strip {
	margin: 44px 48px 0;
	overflow: hidden;
	aspect-ratio: 3 / 1;
	border-radius: 15px 15px 0 0;
	box-shadow: var(--th-shadow);
	background: #d4dde3;
}

.th-strip + .th-block {
	margin-top: -84px;
}

/* Closing note */
.th-note {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-top: 36px;
	padding: 20px 40px 20px 24px;
	background: rgba(255, 255, 255, .72);
	border: 1px solid var(--th-tint-line);
	border-radius: 15px 15px 0 15px;
}

.th-note svg {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	margin-top: 1px;
	color: var(--th-deep);
}

.th-note p {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--th-soft);
}

/* Footer */
.th-foot {
	padding: 26px 0 34px;
	text-align: center;
}

.th-foot a {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--th-ink);
	font-family: 'Oswald', Arial, Helvetica, sans-serif;
	font-weight: 300;
	font-size: 20px;
	line-height: 1.2;
	text-decoration: none;
}

.th-foot a:hover {
	color: var(--th-deep);
}

.th-foot img {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
}

@media (max-width: 900px) {
	.th-head h1 {
		font-size: 44px;
	}

	.th-lead__photo {
		border-radius: 100px 100px 0 100px;
	}

	.th-lead__card {
		margin: -90px 0 0 56px;
	}
}

@media (max-width: 680px) {
	.th-wrap {
		padding: 0 16px;
	}

	.th-head {
		padding: 22px 0 32px;
	}

	.th-brand img {
		width: 96px;
		height: 96px;
	}

	.th-brand span {
		font-size: 21px;
	}

	.th-head h1 {
		margin-top: 16px;
		font-size: 33px;
		line-height: 1.15;
	}

	.th-main {
		padding: 28px 0 40px;
	}

	.th-lead__photo {
		aspect-ratio: 16 / 10;
		border-radius: 64px 64px 0 64px;
	}

	.th-lead__card {
		margin: -48px 0 0 22px;
		padding: 22px 20px 24px;
	}

	.th-lead__card p {
		font-size: 16.5px;
		line-height: 1.7;
	}

	.th-block {
		margin-top: 26px;
		padding: 20px 20px 24px;
	}

	.th-block h2 {
		max-width: calc(100% + 10px);
		margin: 0 0 16px -10px;
		padding: 5px 16px 6px;
		font-size: 21px;
		border-radius: 28px 28px 0 28px;
	}

	.th-table {
		font-size: 14.5px;
	}

	.th-table th {
		padding: 10px 12px 9px;
		font-size: 16px;
	}

	.th-table td {
		padding: 11px 12px;
	}

	.th-qlist {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.th-qlist li {
		padding: 11px 14px 11px 46px;
		font-size: 15.5px;
	}

	.th-qlist li::before {
		left: 12px;
		top: 11px;
	}

	.th-strip {
		margin: 30px 14px 0;
		aspect-ratio: 16 / 9;
	}

	.th-strip + .th-block {
		margin-top: -40px;
	}

	.th-note {
		gap: 12px;
		margin-top: 26px;
		padding: 16px 18px 16px 16px;
	}

	.th-foot a {
		font-size: 18px;
	}
}
