/**
 * Pipeline page: clinical-stage chart (HTML/CSS, no status column).
 * Section 1 + note use the theme .pipeline grid (see main.css); chart spans full width.
 */

#pipeline.pipeline.pipeline--chart > .pipeline-chart {
	grid-column: 1 / -1;
	width: 100%;
	box-sizing: border-box;
}

#pipeline.pipeline.pipeline--chart > .pipeline--chart__note.pipeline__data {
	margin-top: 8px;
	margin-bottom: 96px !important;
	padding-top: 32px;
	border-top: 1px solid rgba(30, 0, 56, 0.1);
}

#pipeline.pipeline.pipeline--chart > .pipeline--chart__note.pipeline__data .note {
	margin-bottom: 0;
}

.pipeline-chart {
	font-size: 16px;
	line-height: 1.35;
	color: #1e0038;
	width: 100%;
}

.pipeline-chart__title {
	font-family: "canela", serif;
	font-size: clamp(28px, 4vw, 40px);
	line-height: 1.15;
	font-weight: 500;
	color: #1e0038;
	margin: 15px 0 8px;
	text-align: center;
}

.pipeline-chart__subtitle {
	font-size: clamp(16px, 2.2vw, 20px);
	font-weight: 700;
	color: #f6901f;
	text-align: center;
	margin: 0px 0px 28px;
	margin-bottom: 30px;
}

.pipeline-chart__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin: 0 -8px;
	padding: 0 8px 8px;
}

.pipeline-chart__table {
	width: 100%;
	min-width: 720px;
	border-collapse: collapse;
	table-layout: fixed;
	background: #fff;
	box-shadow: 0 2px 12px rgba(30, 0, 56, 0.06);
}

.pipeline-chart__table thead th {
	background: #1e0038;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0.02em;
	padding: 14px 12px;
	text-align: center;
	vertical-align: middle;
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.pipeline-chart__table thead th:first-child,
.pipeline-chart__table thead th:nth-child(2) {
	text-align: left;
}

.pipeline-chart__table tbody td {
	border: 1px solid #e0dce8;
	padding: 16px 12px;
	vertical-align: middle;
}

/* Keep each desktop program row the same visual height. */
.pipeline-chart__table tbody tr {
	height: 108px;
}

.pipeline-chart__table tbody tr:nth-child(even) td {
	background: #f5f4f8;
}

.pipeline-chart__table tbody tr:nth-child(odd) td {
	background: #fff;
}

.pipeline-chart__candidate {
	font-weight: 700;
	font-size: 17px;
	width: 14%;
}

.pipeline-chart__candidate--orange {
	color: #f6901f;
}

.pipeline-chart__candidate--purple {
	color: #6e13e5;
}

.pipeline-chart__indication {
	width: 26%;
	font-size: 15px;
	line-height: 1.4;
}

.pipeline-chart__track {
	position: relative;
	padding: 10px 8px !important;
	vertical-align: middle;
}

.pipeline-chart__phases {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	position: absolute;
	left: 8px;
	right: 8px;
	top: 8px;
	bottom: 8px;
	pointer-events: none;
}

.pipeline-chart__phase-cell {
	border-right: 1px solid #d4cfe0;
	background: transparent;
}

.pipeline-chart__phase-cell:last-child {
	border-right: none;
}

.pipeline-chart__bars {
	position: relative;
	min-height: 32px;
	z-index: 1;
}

.pipeline-chart__bar-note {
	margin: 8px 0 0;
	font-size: 14px;
	line-height: 1.35;
	color: #1e0038;
	position: relative;
	z-index: 1;
}

.pipeline-chart__bar-note em {
	font-style: italic;
}

.pipeline-chart__bars--with-note {
	display: flex;
	align-items: center;
	gap: 12px;
}

.pipeline-chart__bars--with-note .pipeline-chart__bar {
	flex: 0 0 auto;
}

.pipeline-chart__bars--with-note .pipeline-chart__bar-note {
	margin: 0;
	flex: 1 1 auto;
}

.pipeline-chart__bars--tall {
	min-height: 32px;
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
}

.pipeline-chart__bar {
	position: relative;
	height: 28px;
	max-width: 100%;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0 20px 0 12px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.03em;
	clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
	box-sizing: border-box;
}

.pipeline-chart__bar--orange {
	background: #f6901f;
}

.pipeline-chart__bar--purple {
	background: #6e13e5;
}

.pipeline-chart__bar--lavender {
	background: #d9d4ff;
	color: #1e0038;
}

.pipeline-chart__bar-label {
	position: relative;
	z-index: 1;
	white-space: nowrap;
}

.pipeline-chart__bar--partner {
	height: auto;
	min-height: 36px;
	padding: 6px 24px 6px 12px;
	gap: 8px;
	font-size: 11px;
	line-height: 1.2;
	flex-wrap: nowrap;
}

.pipeline-chart__bar-partner-label {
	position: relative;
	z-index: 1;
	white-space: nowrap;
	text-align: right;
}

.pipeline-chart__bar-partner-logo-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	padding: 0;
	border-radius: 0;
	flex-shrink: 0;
	line-height: 0;
}

.pipeline-chart__bar-partner-logo {
	position: relative;
	z-index: 1;
	display: block;
	height: 22px;
	width: auto;
	max-width: 56px;
	object-fit: contain;
	flex-shrink: 0;
}

.pipeline-chart__footer td {
	background: #f0eef5 !important;
	border-color: #d4cfe0;
	padding: 16px 12px !important;
	vertical-align: middle;
}

.pipeline-chart__footer-logo {
	width: 14%;
	vertical-align: middle;
}

.pipeline-chart__footer-brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pipeline-chart__footer-brand img {
	display: block;
	height: 36px;
	width: auto;
	max-width: 160px;
}

@media screen and (max-width: 660px) {
	#pipeline.pipeline.pipeline--chart > .pipeline--chart__note.pipeline__data {
		margin-bottom: 72px !important;
		padding-top: 24px;
	}
}

/* Mobile: stacked “cards” per program */
@media screen and (max-width: 767px) {
	.pipeline-chart__scroll {
		overflow-x: visible;
		margin: 0;
		padding: 0;
	}

	.pipeline-chart__table {
		min-width: 0;
		display: block;
		width: 100%;
		box-shadow: none;
		background: transparent;
	}

	.pipeline-chart__table thead {
		display: none;
	}

	.pipeline-chart__table tbody {
		display: block;
		width: 100%;
	}

	.pipeline-chart__table tbody tr {
		display: block;
		width: 100%;
		height: auto;
		margin-bottom: 14px;
		border: 1px solid #e0dce8;
		border-radius: 12px;
		overflow: hidden;
		box-shadow: 0 2px 10px rgba(30, 0, 56, 0.05);
		background: #fff;
	}

	.pipeline-chart__table tbody td {
		display: block;
		width: 100% !important;
		box-sizing: border-box;
		text-align: left;
		border: none;
		border-bottom: 1px solid #e0dce8;
		padding: 12px 14px !important;
	}

	.pipeline-chart__table tbody td:last-child {
		border-bottom: none;
	}

	.pipeline-chart__table tbody tr:nth-child(odd) td,
	.pipeline-chart__table tbody tr:nth-child(even) td {
		background: #fff !important;
	}

	.pipeline-chart__table tbody tr.pipeline-chart__footer td {
		background: #f0eef5 !important;
	}

	.pipeline-chart__table tbody td::before {
		content: attr(data-label);
		display: block;
		font-size: 10px;
		font-weight: 700;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: #1e0038;
		margin-bottom: 6px;
		opacity: 0.8;
	}

	.pipeline-chart__candidate {
		font-size: 16px;
	}

	.pipeline-chart__indication {
		font-size: 14px;
		line-height: 1.35;
	}

	.pipeline-chart__track {
		min-height: 0;
		padding: 12px 14px !important;
	}

	.pipeline-chart__phases {
		display: none;
	}

	.pipeline-chart__bars {
		min-height: 28px;
	}

	.pipeline-chart__bar {
		height: 26px;
		font-size: 11px;
		padding: 0 14px 0 10px;
	}

	.pipeline-chart__bars--tall {
		min-height: 28px;
		flex-wrap: wrap;
		justify-content: flex-start;
		gap: 8px;
	}

	.pipeline-chart__bars--with-note {
		flex-wrap: wrap;
		align-items: flex-start;
		gap: 6px;
	}

	.pipeline-chart__bars--with-note .pipeline-chart__bar-note {
		flex: 1 1 100%;
		font-size: 12px;
		line-height: 1.3;
	}

	.pipeline-chart__bar--partner {
		font-size: 10px;
		padding-right: 14px;
		gap: 6px;
		flex-wrap: wrap;
		justify-content: flex-end;
	}

	.pipeline-chart__bar-partner-logo {
		height: 18px;
		max-width: 48px;
	}

	.pipeline-chart__bar-partner-logo-wrap {
		padding: 0;
	}

	.pipeline-chart__footer-brand img {
		height: 30px;
	}
}
