/*
 * Insights (inc/insights.php). Listing: Figma 2148:45984 (chips 46034, cards 46048). Article:
 * Figma 2148:46349 (header 46394, image 46403, body 46406, related 46445). The article column is
 * 720 wide, as in the design.
 */

/* Chips (in the cream hero) */
.tmi-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 16px;
}
body .tmi-chips a.tmi-chip {
	padding: 10px 18px;
	background: var(--white, #FFFFFF);
	border: 1px solid var(--border, #9C9CA2);
	color: var(--ink, #171719);
	font-size: 14px;
	line-height: 1.5;
	text-decoration: none;
	transition: border-color var(--m-dur-s, 200ms);
}
body .tmi-chips a.tmi-chip:hover {
	border-color: var(--ink, #171719);
}
body .tmi-chips a.tmi-chip.is-on {
	background: var(--ink, #171719);
	border-color: var(--ink, #171719);
	color: var(--white, #FFFFFF);
	font-weight: 500;
}

/* Listing */
.tmi-list {
	display: flex;
	flex-direction: column;
	gap: 40px;
	width: 100%;
	transition: opacity var(--m-dur-s, 200ms);
}
.is-loading .tmi-list {
	opacity: .5;
}
body .tmi-list .tmi-list-h,
body .tmi-next h2 {
	margin: 0;
	color: var(--ink, #171719);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -.7px;
}
.tmi-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 40px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
body .tmi-card a {
	display: flex;
	flex-direction: column;
	gap: 16px;
	color: var(--ink, #171719);
	text-decoration: none;
}
.tmi-card-img {
	display: block;
	height: 260px;
	overflow: hidden;
	background: var(--surface, #FBFBFA);
}
.is-next .tmi-card-img {
	height: 230px;
}
body .tmi-card-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.tmi-card-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.tmi-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}
.tmi-tag {
	padding: 4px 10px;
	background: var(--cream, #F2EDE1);
	color: var(--tan, #6F6556);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.5;
	letter-spacing: 1.3px;
	text-transform: uppercase;
}
.tmi-date {
	color: var(--muted, #96969A);
	font-size: 13px;
	line-height: 1.55;
	white-space: pre;
}
.tmi-card-title {
	font-size: 22px;
	font-weight: 500;
	line-height: 1.36;
	letter-spacing: -.3px;
}
.is-next .tmi-card-title {
	font-size: 20px;
	line-height: 1.4;
}
.tmi-card a:hover .tmi-card-title {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}
.tmi-card-text {
	color: var(--body, #656569);
	font-size: 15px;
	line-height: 1.6;
}
body .tmi-list a.tmi-more {
	align-self: center;
	margin-top: 8px;
	padding: 14px 30px;
	border: 1px solid var(--ink, #171719);
	color: var(--ink, #171719);
	font-size: 15px;
	font-weight: 500;
	text-decoration: none;
}
body .tmi-list a.tmi-more:hover {
	background: var(--ink, #171719);
	color: var(--white, #FFFFFF);
}
.tmi-empty {
	margin: 0;
	color: var(--body, #656569);
	font-size: 16px;
}

/* Article */
.tmi-article {
	width: 100%;
}
/* 720 of text, plus the side padding: the theme makes every box border-box. */
body .tmi-head,
body .tmi-body,
body .tmi-hero figcaption {
	box-sizing: border-box;
	max-width: 760px;
	margin-inline: auto;
	padding-inline: 20px;
}
.tmi-head {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding-top: 80px;
	padding-bottom: 48px;
}
.tmi-head .tmi-date {
	font-size: 14px;
}
body .tmi-head h1 {
	margin: 0;
	color: var(--ink, #171719);
	font-size: 48px;
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -1.2px;
}
.tmi-head p {
	margin: 0;
}
.tmi-head .tmi-standfirst {
	color: var(--body, #656569);
	font-size: 19px;
	line-height: 1.68;
}
.tmi-head .tmi-byline {
	padding-top: 16px;
	border-top: 1px solid var(--line, #E4E4E7);
	color: var(--body, #656569);
	font-size: 14px;
	line-height: 1.5;
}
.tmi-hero {
	margin: 0;
}
body .tmi-hero img {
	display: block;
	width: 100%;
	height: 560px;
	object-fit: cover;
}
body .tmi-hero figcaption {
	margin-top: 0;
	margin-bottom: 0;
	padding-top: 12px;
	padding-bottom: 0;
	color: var(--muted, #96969A);
	font-style: normal;
	text-align: left;
	font-size: 13px;
	line-height: 1.55;
}

/* Body: paragraphs, headings, pull quote, numbered steps */
.tmi-body {
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding-top: 64px;
	padding-bottom: 80px;
	color: var(--ink, #171719);
}
.tmi-body > * {
	margin: 0;
}
.tmi-body p,
.tmi-body ul li {
	font-size: 18px;
	line-height: 1.78;
}
body .tmi-body h2 {
	margin: 24px 0 0;
	color: var(--ink, #171719);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -.4px;
}
body .tmi-body h3 {
	margin: 12px 0 0;
	color: var(--ink, #171719);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.35;
}
.tmi-body p a,
.tmi-body li a {
	color: var(--ink, #171719);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.tmi-body blockquote,
.tmi-body .wp-block-quote,
.tmi-body .wp-block-pullquote {
	margin: 0;
	padding: 32px 0 32px 32px;
	border: 0;
	border-left: 2px solid var(--ink, #171719);
	text-align: left;
}
.tmi-body blockquote p,
.tmi-body .wp-block-pullquote p {
	font-size: 22px;
	font-weight: 500;
	line-height: 1.5;
}
.tmi-body blockquote cite {
	display: block;
	margin-top: 12px;
	color: var(--muted, #96969A);
	font-size: 14px;
	font-style: normal;
}
.tmi-body ol {
	margin-top: -4px;
	padding: 0;
	list-style: none;
	counter-reset: tmi-step;
}
.tmi-body ol li {
	position: relative;
	padding: 16px 0 16px 52px;
	border-top: 1px solid var(--line, #E4E4E7);
	color: var(--body, #656569);
	font-size: 16px;
	line-height: 1.6;
	counter-increment: tmi-step;
}
.tmi-body ol li:first-child {
	border-top: 0;
}
.tmi-body ol li::before {
	content: counter(tmi-step, decimal-leading-zero);
	position: absolute;
	top: 19px;
	left: 0;
	color: var(--tan, #6F6556);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .8px;
}
.tmi-body ol li strong:first-child {
	display: block;
	margin-bottom: 6px;
	color: var(--ink, #171719);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.45;
}
.tmi-body figure img {
	display: block;
	width: 100%;
	height: auto;
}
.tmi-body figcaption {
	margin-top: 10px;
	color: var(--muted, #96969A);
	font-size: 13px;
}

/* Closing box */
.tmi-body .tmi-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 8px;
	padding: 32px;
	background: var(--cream, #F2EDE1);
}
.tmi-body .tmi-cta p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
}
.tmi-body .tmi-cta .tmi-cta-h {
	margin-bottom: 8px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.4;
}
body .tmi-body a.tmi-btn {
	flex: none;
	padding: 16px 30px;
	background: var(--ink, #171719);
	border: 1px solid var(--ink, #171719);
	color: var(--white, #FFFFFF);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
}
body .tmi-body a.tmi-btn:hover {
	background: var(--white, #FFFFFF);
	color: var(--ink, #171719);
}

/* Read next */
.tmi-next {
	width: 100%;
	background: var(--surface, #FBFBFA);
}
.tmi-next-in {
	display: flex;
	flex-direction: column;
	gap: 32px;
	box-sizing: border-box;
	max-width: 1320px;
	margin: 0 auto;
	padding: 80px 20px 88px;
}

@media (max-width: 1024px) {
	.tmi-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tmi-next-in {
		padding-inline: 32px;
	}
	body .tmi-head,
	body .tmi-body,
	body .tmi-hero figcaption {
		max-width: 784px;
		padding-inline: 32px;
	}
	body .tmi-hero img {
		height: 420px;
	}
}
@media (max-width: 767px) {
	.tmi-chips {
		flex-wrap: nowrap;
		margin-inline: -20px;
		padding: 16px 20px 0;
		overflow-x: auto;
		scrollbar-width: none;
	}
	.tmi-chips::-webkit-scrollbar {
		display: none;
	}
	body .tmi-chips a.tmi-chip {
		flex: none;
	}
	.tmi-list {
		gap: 28px;
	}
	.tmi-grid {
		grid-template-columns: 1fr;
		gap: 36px;
	}
	body .tmi-list .tmi-list-h,
	body .tmi-next h2 {
		font-size: 26px;
	}
	.tmi-card-img,
	.is-next .tmi-card-img {
		height: 220px;
	}
	.tmi-next-in {
		gap: 28px;
		padding: 56px 20px;
	}
	body .tmi-head,
	body .tmi-body,
	body .tmi-hero figcaption {
		padding-inline: 20px;
	}
	.tmi-head {
		gap: 18px;
		padding-top: 40px;
		padding-bottom: 32px;
	}
	body .tmi-head h1 {
		font-size: 34px;
		letter-spacing: -.8px;
	}
	.tmi-head .tmi-standfirst {
		font-size: 17px;
	}
	body .tmi-hero img {
		height: 260px;
	}
	.tmi-body {
		gap: 22px;
		padding-top: 40px;
		padding-bottom: 56px;
	}
	.tmi-body p,
	.tmi-body ul li {
		font-size: 17px;
	}
	body .tmi-body h2 {
		margin-top: 12px;
		font-size: 24px;
	}
	.tmi-body .tmi-cta {
		flex-direction: column;
		align-items: flex-start;
		padding: 24px 20px;
	}
}
