/* AHOP publication detail pages (/download/). */
body.single-wpdmpro {
	--ahop-blue: #1c84bb;
	--ahop-navy: #1d2144;
	--ahop-yellow: #ffd360;
	--ahop-ink: #20273a;
	--ahop-muted: #667085;
	--ahop-border: #dfe8ef;
	--ahop-surface: #f4f8fb;
	background: var(--ahop-surface);
}

body.single-wpdmpro main.site-main {
	max-width: none;
	margin: 0;
	padding: 0 0 clamp(56px, 7vw, 96px);
	background: var(--ahop-surface);
}

body.single-wpdmpro main.site-main > .page-header {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin: 0;
	padding: clamp(52px, 7vw, 92px) max(24px, calc((100vw - 1180px) / 2)) clamp(64px, 8vw, 108px);
	background:
		linear-gradient(rgba(29, 33, 68, .52), rgba(29, 33, 68, .52)),
		url("/wp-content/uploads/2022/07/52151788261_87ef6a0aa5_k.jpg") top center / cover no-repeat;
	border-top: 0;
}

body.single-wpdmpro main.site-main > .page-header::before,
body.single-wpdmpro main.site-main > .page-header::after {
	display: none;
}

body.single-wpdmpro main.site-main > .page-header .entry-title {
	display: block;
	max-width: 1050px;
	margin: 0;
	color: #fff;
	font-family: "Gill Sans MT", "Gill Sans", Arial, sans-serif;
	font-size: clamp(2rem, 4.2vw, 3.85rem);
	font-weight: 600;
	line-height: 1.08;
	letter-spacing: -.025em;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

body.single-wpdmpro main.site-main > .page-header .entry-title::before {
	content: "Publication";
	display: block;
	width: max-content;
	margin-bottom: 17px;
	padding: 7px 13px 6px;
	color: var(--ahop-navy);
	background: var(--ahop-yellow);
	border-radius: 4px;
	font-family: inherit;
	font-size: .78rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .11em;
	text-transform: uppercase;
}

body.single-wpdmpro main.site-main > .page-content {
	position: relative;
	z-index: 2;
	width: min(1180px, calc(100% - 48px));
	margin: -34px auto 0;
	padding: clamp(26px, 4vw, 50px);
	background: #fff;
	border: 1px solid rgba(29, 33, 68, .08);
	border-radius: 16px;
	box-shadow: 0 18px 52px rgba(29, 33, 68, .12);
}

body.single-wpdmpro .page-content > .w3eden {
	color: var(--ahop-ink);
	font-family: "Gill Sans MT", "Gill Sans", Arial, sans-serif;
	font-size: 16px;
}

/* The standard WPDM template. */
body.single-wpdmpro .page-content > .w3eden > .row {
	display: grid;
	grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
	gap: 42px;
	margin: 0;
}

body.single-wpdmpro .page-content > .w3eden > .row > [class*="col-"] {
	width: auto;
	max-width: none;
	padding: 0;
}

body.single-wpdmpro .page-content > .w3eden > .row > .col-md-12 {
	grid-column: 1 / -1;
}

body.single-wpdmpro .page-content > .w3eden > .row > .col-md-7 > h1 {
	display: none;
}

body.single-wpdmpro .page-content > .w3eden > .row > .col-md-5,
body.single-wpdmpro .wpdm-compact__sidebar {
	position: sticky;
	top: 24px;
	align-self: start;
}

body.single-wpdmpro .wpdm-button-area,
body.single-wpdmpro .wpdm-compact__card {
	padding: 20px !important;
	background: linear-gradient(145deg, #eef7fc, #f8fbfd) !important;
	border: 1px solid #cfe3ef !important;
	border-radius: 12px !important;
	box-shadow: none !important;
}

body.single-wpdmpro .wpdm-download-link.btn,
body.single-wpdmpro .wpdm-compact__card .wpdm-download-link.btn {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 13px 22px !important;
	color: var(--ahop-navy) !important;
	background: var(--ahop-yellow) !important;
	border: 0 !important;
	border-radius: 6px !important;
	box-shadow: 0 8px 20px rgba(216, 166, 31, .22);
	font-size: 1rem !important;
	font-weight: 700 !important;
	letter-spacing: .01em;
	text-decoration: none !important;
	transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

body.single-wpdmpro .wpdm-download-link.btn::before {
	content: "↓";
	margin-right: 10px;
	font-size: 1.25em;
	line-height: 1;
}

body.single-wpdmpro .wpdm-download-link.btn:hover,
body.single-wpdmpro .wpdm-download-link.btn:focus-visible {
	color: #fff !important;
	background: var(--ahop-navy) !important;
	box-shadow: 0 10px 24px rgba(29, 33, 68, .2);
	transform: translateY(-2px);
}

body.single-wpdmpro .list-group,
body.single-wpdmpro .wpdm-compact__meta {
	overflow: hidden;
	margin: 16px 0 0 !important;
	background: #fff;
	border: 1px solid var(--ahop-border) !important;
	border-radius: 10px !important;
}

body.single-wpdmpro .list-group-item,
body.single-wpdmpro .wpdm-compact__row {
	min-height: 46px;
	padding: 11px 14px !important;
	color: var(--ahop-muted);
	background: #fff !important;
	border: 0 !important;
	border-bottom: 1px solid var(--ahop-border) !important;
	font-size: .88rem !important;
}

body.single-wpdmpro .list-group-item:last-child,
body.single-wpdmpro .wpdm-compact__row:last-child {
	border-bottom: 0 !important;
}

body.single-wpdmpro .list-group .badge,
body.single-wpdmpro .wpdm-compact__row-value {
	color: var(--ahop-navy) !important;
	background: transparent !important;
	font-size: .88rem;
	font-weight: 700;
	text-align: right;
}

/* The compact WPDM template used by content-rich publications. */
body.single-wpdmpro .w3eden .wpdm-compact {
	max-width: none;
}

body.single-wpdmpro .w3eden .wpdm-compact__layout {
	display: grid;
	grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
	gap: 42px;
}

body.single-wpdmpro .w3eden .wpdm-compact__sidebar {
	width: auto;
	max-width: none;
}

body.single-wpdmpro .w3eden .wpdm-compact__description {
	color: #3f485b;
	font-size: 1.05rem;
	line-height: 1.82;
}

body.single-wpdmpro .w3eden .wpdm-compact__description p {
	margin: 0 0 1.15em;
}

body.single-wpdmpro .w3eden .wpdm-compact__description a,
body.single-wpdmpro .col-md-7 .wel a {
	color: #126b9c;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: rgba(28, 132, 187, .35);
	text-underline-offset: 3px;
}

body.single-wpdmpro .w3eden .wpdm-compact__section {
	margin-top: 34px;
	padding-top: 28px;
	border-top: 1px solid var(--ahop-border);
}

body.single-wpdmpro .w3eden .wpdm-compact__heading {
	margin: 0 0 18px !important;
	color: var(--ahop-navy);
	font-size: clamp(1.3rem, 2vw, 1.65rem);
	font-weight: 700;
}

body.single-wpdmpro .w3eden .wpdm-compact__tags a,
body.single-wpdmpro .col-md-7 .wel a.btn {
	display: inline-flex;
	align-items: center;
	margin: 0 7px 7px 0 !important;
	padding: 7px 12px !important;
	color: #26536d !important;
	background: #edf6fb !important;
	border: 1px solid #d5e9f4 !important;
	border-radius: 999px !important;
	font-size: .78rem !important;
	font-weight: 600;
	text-decoration: none;
}

body.single-wpdmpro .wpdm-compact__section .card {
	height: calc(100% - 18px);
	margin-bottom: 18px;
	background: #fff !important;
	border: 1px solid var(--ahop-border) !important;
	border-radius: 10px !important;
	box-shadow: 0 8px 24px rgba(29, 33, 68, .07);
}

body.single-wpdmpro .wpdm-compact__section .card .media-heading,
body.single-wpdmpro .wpdm-compact__section .card .media-heading a {
	color: var(--ahop-navy) !important;
	font-size: 1rem !important;
	line-height: 1.35;
	text-decoration: none;
}

body.single-wpdmpro .wpdm-compact__section .card .meta,
body.single-wpdmpro .wpdm-compact__section .card-footer {
	color: var(--ahop-muted) !important;
	background: #f8fafc !important;
}

@media (max-width: 820px) {
	body.single-wpdmpro main.site-main > .page-header {
		padding-inline: 24px;
	}

	body.single-wpdmpro main.site-main > .page-content {
		width: min(100% - 28px, 720px);
		margin-top: -24px;
		padding: 24px 18px 30px;
		border-radius: 12px;
	}

	body.single-wpdmpro .page-content > .w3eden > .row,
	body.single-wpdmpro .w3eden .wpdm-compact__layout {
		display: flex;
		flex-direction: column;
		gap: 30px;
	}

	body.single-wpdmpro .page-content > .w3eden > .row > .col-md-5,
	body.single-wpdmpro .wpdm-compact__sidebar {
		position: static;
		width: 100%;
	}

	body.single-wpdmpro .page-content > .w3eden > .row > .col-md-7,
	body.single-wpdmpro .wpdm-compact__main {
		width: 100%;
	}
}

@media (max-width: 480px) {
	body.single-wpdmpro main.site-main > .page-header {
		padding-top: 38px;
		padding-bottom: 58px;
	}

	body.single-wpdmpro main.site-main > .page-header .entry-title {
		font-size: clamp(1.75rem, 9vw, 2.25rem);
		line-height: 1.12;
	}

	body.single-wpdmpro .wpdm-compact__section .card-footer .row {
		gap: 10px;
	}

	body.single-wpdmpro .wpdm-compact__section .card-footer [class*="col-"] {
		flex: 0 0 100%;
		max-width: 100%;
		text-align: left !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.single-wpdmpro .wpdm-download-link.btn {
		transition: none;
	}
}
