/* COVID-19 in Patients with Diabetes and Obesity sponsored content page (node 2446). Everything is scoped to .cvdo. */

@font-face {
	font-family: "Larsseit CVDO";
	src: url(/font/Larsseit.otf) format("opentype");
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: "Larsseit CVDO";
	src: url(/font/Larsseit-Bold.otf) format("opentype");
	font-weight: 700;
	font-display: swap;
}

/* The page template drops the container, so sections can run full width. */
.cvdo-page main,
.cvdo-footer {
	margin-top: 0 !important;
}

.cvdo {
	--navy: #0b2f57;
	--blue: #0069b4;
	--teal: #0f8a8c;
	--teal-soft: #eef7f7;
	--purple: #8031a7;
	--yellow: #ffc61a;
	--ink: #17222f;
	--muted: #556170;
	--line: #dfe6ee;
	--radius: 16px;
	--shadow: 0 1px 2px rgba(11, 47, 87, .06), 0 14px 32px -18px rgba(11, 47, 87, .35);

	color: var(--ink);
	font-family: "Open Sans", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.75;
}

.cvdo h1,
.cvdo h2 {
	font-family: "Larsseit CVDO", Larsseit, "Open Sans", Arial, sans-serif;
	font-weight: 700;
	line-height: 1.18;
}

.cvdo p {
	margin: 0 0 1.1em;
}

.cvdo p:last-child {
	margin-bottom: 0;
}

.cvdo a {
	color: var(--blue);
}

.cvdo-wrap {
	margin: 0 auto;
	max-width: 1180px;
	padding: 0 32px;
}

/* Title band */
.cvdo-hero {
	background: linear-gradient(120deg, var(--navy) 0%, #0d4a7d 55%, var(--teal) 100%);
	color: #fff;
	padding: 32px 0 36px;
}

.cvdo-hero h1 {
	color: #fff;
	font-size: clamp(24px, 3vw, 36px);
	letter-spacing: -.01em;
	margin: 0;
	max-width: 1000px;
}

.cvdo-hero h1::after {
	background: var(--yellow);
	border-radius: 2px;
	content: "";
	display: block;
	height: 4px;
	margin-top: 16px;
	width: 56px;
}

/* Article with sticky contents */
.cvdo-main {
	display: grid;
	gap: 64px;
	grid-template-columns: 260px minmax(0, 1fr);
	padding-bottom: 24px;
	padding-top: 64px;
}

.cvdo-toc {
	align-self: start;
	border-left: 2px solid var(--line);
	font-size: 14px;
	line-height: 1.45;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	position: sticky;
	top: 24px;
}

.cvdo-toc ol {
	counter-reset: cvdo-toc;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cvdo-toc li {
	margin: 0;
}

.cvdo-toc a {
	border-left: 2px solid transparent;
	color: var(--muted);
	display: block;
	margin-left: -2px;
	padding: 7px 0 7px 18px;
	text-decoration: none;
	transition: color .15s, border-color .15s;
}

.cvdo-toc a:hover,
.cvdo-toc a:focus {
	color: var(--navy);
	text-decoration: none;
}

.cvdo-toc a.is-active {
	border-left-color: var(--teal);
	color: var(--navy);
	font-weight: 600;
}

.cvdo-article {
	max-width: 780px;
}

/* Sections */
.cvdo-sec {
	padding: 0 0 48px;
	scroll-margin-top: 24px;
}

.cvdo-sec + .cvdo-sec {
	border-top: 1px solid var(--line);
	padding-top: 48px;
}

.cvdo-sec h2,
.cvdo-table-sec h2,
.cvdo-refs h2 {
	color: var(--navy);
	font-size: 29px;
	margin: 0 0 20px;
}

.cvdo-sec h2::before {
	background: var(--teal);
	border-radius: 2px;
	content: "";
	display: block;
	height: 4px;
	margin-bottom: 16px;
	width: 40px;
}

/* Overview: lead-in */
.cvdo-overview p:first-of-type {
	color: var(--navy);
	font-size: 20px;
	line-height: 1.65;
}

/* Integrated approach: the practical core, set apart */
.cvdo-sec.cvdo-panel {
	background: var(--teal-soft);
	border: 1px solid #cfe5e5;
	border-left: 6px solid var(--teal);
	border-radius: var(--radius);
	margin: 0 0 48px;
	padding: 40px;
}

.cvdo-panel + .cvdo-sec {
	border-top: 0;
	padding-top: 0;
}

.cvdo-panel h2::before {
	background: var(--yellow);
}

/* Conclusions */
.cvdo-sec.cvdo-conclusion {
	background: var(--navy);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	color: #fff;
	padding: 40px;
}

.cvdo-conclusion h2 {
	color: #fff;
}

.cvdo-conclusion h2::before {
	background: var(--yellow);
}

/* Table 1 */
.cvdo-table-sec {
	background: linear-gradient(#fff 0, #f5f8fb 120px);
	padding: 56px 0 64px;
	scroll-margin-top: 24px;
}

.cvdo-table-scroll {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow-x: auto;
}

.cvdo-table {
	border-collapse: collapse;
	font-size: 15px;
	line-height: 1.55;
	min-width: 760px;
	width: 100%;
}

.cvdo-table th {
	background: var(--navy);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	padding: 16px 20px;
	text-align: left;
	text-transform: uppercase;
	vertical-align: bottom;
}

.cvdo-table td {
	border-top: 1px solid var(--line);
	padding: 18px 20px;
	vertical-align: top;
}

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

.cvdo-table td:first-child {
	border-left: 5px solid var(--layer, var(--line));
	color: var(--navy);
	font-weight: 700;
	width: 19%;
}

.cvdo-table td:last-child {
	color: var(--muted);
}

.cvdo-table em {
	color: var(--muted);
	display: inline-block;
	font-size: 14px;
	margin-top: 6px;
}

/* One colour per layer of protection, outermost to innermost. */
.cvdo-table tbody tr:nth-child(1) { --layer: #7fb8d9; }
.cvdo-table tbody tr:nth-child(2) { --layer: var(--blue); }
.cvdo-table tbody tr:nth-child(3),
.cvdo-table tbody tr:nth-child(4) { --layer: var(--teal); }
.cvdo-table tbody tr:nth-child(n+5) { --layer: var(--yellow); }

/* References and sponsor */
.cvdo-refs {
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
	padding: 56px 0;
	scroll-margin-top: 24px;
}

.cvdo-refs h2 {
	font-size: 22px;
}

.cvdo-refs ol {
	column-gap: 48px;
	columns: 2;
	margin: 0;
	padding-left: 24px;
}

.cvdo-refs li {
	break-inside: avoid;
	margin-bottom: 10px;
	overflow-wrap: anywhere;
}

.cvdo-refs li::marker {
	color: var(--teal);
	font-weight: 700;
}

.cvdo-sponsor {
	background: #f7f9fb;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 14px;
	padding: 28px 0;
	text-align: center;
}

@media (max-width: 1000px) {
	.cvdo-main {
		display: block;
		padding-top: 48px;
	}

	.cvdo-toc {
		display: none;
	}

	.cvdo-article {
		max-width: none;
	}
}

@media (max-width: 860px) {
	.cvdo-page .sponsored-banner {
		background: #8031a7;
	}

	.cvdo-page .sponsored-banner h1,
	.cvdo-page .sponsored-banner h1 span {
		color: #fff;
	}

	.cvdo-refs ol {
		columns: 1;
	}

	/* Table becomes a stack of cards. */
	.cvdo-table-scroll {
		background: none;
		border: 0;
		box-shadow: none;
	}

	.cvdo-table {
		min-width: 0;
	}

	.cvdo-table thead {
		display: none;
	}

	.cvdo-table,
	.cvdo-table tbody,
	.cvdo-table tr,
	.cvdo-table td {
		display: block;
		width: 100%;
	}

	.cvdo-table tr {
		background: #fff;
		border: 1px solid var(--line);
		border-radius: 12px;
		border-top: 5px solid var(--layer, var(--line));
		box-shadow: var(--shadow);
		margin-bottom: 16px;
		overflow: hidden;
	}

	.cvdo-table td,
	.cvdo-table tbody tr:nth-child(even) td {
		background: none;
		border: 0;
		padding: 4px 20px 12px;
	}

	.cvdo-table td:first-child {
		border-left: 0;
		font-size: 18px;
		padding-top: 16px;
		width: 100%;
	}

	.cvdo-table td:not(:first-child)::before {
		color: var(--teal);
		content: attr(data-label);
		display: block;
		font-size: 12px;
		font-weight: 700;
		letter-spacing: .06em;
		text-transform: uppercase;
	}
}

@media (max-width: 520px) {
	.cvdo {
		font-size: 16px;
	}

	.cvdo-wrap {
		padding: 0 20px;
	}

	.cvdo-hero {
		padding: 24px 0 28px;
	}

	.cvdo-sec h2,
	.cvdo-table-sec h2 {
		font-size: 25px;
	}

	.cvdo-overview p:first-of-type {
		font-size: 18px;
	}

	.cvdo-sec.cvdo-panel,
	.cvdo-sec.cvdo-conclusion {
		padding: 28px 22px;
	}
}
