/*
 * Conference supplement page template (page-conference-supplement.php).
 * Plain CSS, enqueued only on that template, so no Sass build is needed.
 * Sizes, colours and spacing follow the client's mockup (Website Supplement
 * ISPOR 2026.pptx): site font, black text, a thin brand bar under the header
 * and light blue buttons with a dark teal border.
 */

.supplement-header,
.supplement {
	color: #000;
}

.supplement-header h1,
.supplement h2,
.supplement h3 {
	font-family: inherit;
	color: inherit;
	letter-spacing: 0;
}

.supplement-bar {
	display: none;
	height: 18px;
	background: url('img/pattern.svg') center / cover no-repeat;
}

.supplement-header {
	padding-top: 1.5rem;
}

.supplement-header__eyebrow {
	font-size: 1.125rem;
	font-weight: bold;
	line-height: 1.3;
	margin-bottom: 0.5rem;
}

.supplement-header__title {
	font-size: 0.9375rem;
	font-weight: normal;
	line-height: 1.4;
	margin-bottom: 1.5rem;
}

.supplement__heading {
	font-size: 0.9375rem;
	font-weight: bold;
	line-height: 1.3;
	margin-bottom: 1rem;
}

.supplement__documents {
	margin-bottom: 2rem;
}

.supplement__authors {
	font-size: 0.875rem;
	line-height: 1.5;
	margin-bottom: 0.75rem;
}

.supplement__affiliations {
	font-size: 0.75rem;
	line-height: 1.5;
}

.supplement__authors p:last-child,
.supplement__affiliations p:last-child {
	margin-bottom: 0;
}

.supplement__details {
	margin-bottom: 1.5rem;
}

.supplement__details a,
.supplement__footnote a {
	color: inherit;
	text-decoration: underline;
}

.supplement__footnote {
	font-size: 0.8125rem;
	font-style: italic;
	margin-bottom: 4rem;
}

/* Document buttons */

.supplement-docs {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

.supplement-doc {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 3.125rem;
	padding: 0.5rem 0.75rem 0.5rem 1rem;
	background: #EAF3FA;
	border: 2px solid #064644;
	border-radius: 0.5rem;
	transition: background 0.2s;
}

.supplement-doc__cover {
	display: none;
}

.supplement-doc__body {
	flex: 1;
	min-width: 0;
}

.supplement-doc__title {
	font-size: 0.9375rem;
	font-weight: bold;
	line-height: 1.25;
	margin: 0;
}

.supplement-doc__link,
.supplement-doc__link:hover,
.supplement-doc__link:focus {
	color: inherit;
	text-decoration: none;
	outline: none;
}

/* Make the whole button clickable */
.supplement-doc__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.supplement-doc:hover {
	background: #D6E7F5;
}

.supplement-doc:focus-within {
	outline: 3px solid #1A4F7C;
	outline-offset: 2px;
}

.supplement-doc__description,
.supplement-doc__pending {
	font-size: 0.75rem;
	line-height: 1.3;
	margin: 0.25rem 0 0;
}

.supplement-doc__pending {
	font-style: italic;
}

.supplement-doc__icon {
	flex: none;
	width: 1.75rem;
	height: 1.75rem;
	fill: #1A4F7C;
}

/* Tablet up: desktop mockup sizes and order (study details before documents) */
@media (min-width: 576px) {
	.supplement-bar {
		display: block;
		height: 15px;
	}

	.supplement-header {
		padding-top: 1.625rem;
	}

	.supplement-header__eyebrow {
		font-size: 1.25rem;
	}

	.supplement-header__title {
		font-size: 1.125rem;
		margin-bottom: 1.25rem;
	}

	.supplement__layout {
		display: flex;
		flex-direction: column;
	}

	.supplement__details {
		order: -1;
		margin-bottom: 2rem;
	}

	.supplement__authors {
		font-size: 0.9375rem;
	}

	.supplement__affiliations {
		font-size: 0.75rem;
	}

	.supplement__heading {
		font-size: 1rem;
		margin-bottom: 1.25rem;
	}

	.supplement__documents {
		margin-bottom: 1.75rem;
	}

	.supplement-docs {
		grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
		gap: 1.5rem 2.375rem;
	}

	.supplement-doc {
		min-height: 4.5rem;
		gap: 0.5rem;
		padding: 0.625rem 0.75rem 0.625rem 1rem;
		border-radius: 0.625rem;
	}

	.supplement-doc__title {
		font-size: 1rem;
	}

	.supplement-doc__icon {
		width: 1.875rem;
		height: 1.875rem;
	}
}

@media (min-width: 992px) {
	.supplement-docs {
		grid-template-columns: repeat(5, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.supplement-doc {
		transition: none;
	}
}

/*
 * The footer can start on a sub-pixel, where its dark background bleeds
 * through the top row of the white angle image as a hairline. Start the
 * dark layer 2px down, still hidden under the angle's white top band.
 */
.supplement + .site-footer {
	background-color: transparent !important;
	background-image: url('img/angle-top.svg'), linear-gradient(transparent 2px, #333 2px);
	background-size: 101vw 10vw, 100% 100%;
}
