/*
 * Professionaliteit & Ethiek – interactive showcase features.
 */

/* ---------- Page transitions (progressive) ---------- */

@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}

	.site-header {
		view-transition-name: eidp-header;
	}

	::view-transition-old(root) {
		animation: eidp-vt-out .22s ease both;
	}

	::view-transition-new(root) {
		animation: eidp-vt-in .38s cubic-bezier(.2, .7, .2, 1) both;
	}
}

@keyframes eidp-vt-out {
	to {
		opacity: 0;
		transform: translateY(-8px);
	}
}

@keyframes eidp-vt-in {
	from {
		opacity: 0;
		transform: translateY(14px);
	}
}

/* ---------- Module shell ---------- */

.module {
	position: relative;
	padding: clamp(3.5rem, 8vw, 6.5rem) clamp(1.25rem, 4vw, 3rem);
	overflow: hidden;
	isolation: isolate;
	font-family: var(--f-sans);
}

.module__inner {
	max-width: 76rem;
	margin: 0 auto;
}

.module__head {
	max-width: 46rem;
	margin-bottom: clamp(2rem, 4vw, 3rem);
}

.module__kicker {
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent);
	margin: 0 0 .75rem;
}

.module__title {
	font-family: var(--f-serif);
	font-weight: 600;
	font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
	line-height: 1.05;
	letter-spacing: -.015em;
	margin: 0 0 1rem;
	color: var(--c-ink);
}

.module__intro {
	font-family: var(--f-serif);
	font-size: 1.15rem;
	line-height: 1.6;
	margin: 0;
	color: var(--c-muted);
}

.module--compass,
.module--route {
	background: var(--c-ink);
	color: var(--c-paper);
}

.module--compass .module__title,
.module--route .module__title {
	color: var(--c-paper);
}

.module--compass .module__intro,
.module--route .module__intro {
	color: rgba(246, 242, 234, .75);
}

.module--compass .module__kicker,
.module--route .module__kicker {
	color: var(--c-ethiek-light);
}

.module--route .module__kicker {
	color: var(--c-prof-light);
}

.module--compass::before,
.module--route::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(40rem 26rem at 85% 10%, rgba(173, 58, 27, .22), transparent 70%),
		radial-gradient(36rem 24rem at 5% 95%, rgba(15, 107, 115, .28), transparent 70%);
}

.pill-button {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .75rem 1.25rem;
	border-radius: 99px;
	border: 1.5px solid currentColor;
	background: transparent;
	color: inherit;
	font: 700 .95rem/1.2 var(--f-sans);
	text-decoration: none;
	cursor: pointer;
}

.pill-button--solid {
	background: var(--c-paper);
	border-color: var(--c-paper);
	color: var(--c-ink);
}

.pill-button:hover {
	transform: translateY(-1px);
}

/* ---------- Ethical compass ---------- */

.compass {
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: start;
}

.compass__dial {
	position: relative;
	max-width: 22rem;
	margin: 0 auto;
	width: 100%;
}

.compass__svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: visible;
}

.compass__ring {
	fill: none;
	stroke: rgba(246, 242, 234, .35);
	stroke-width: 1.2;
}

.compass__ring--dash {
	stroke-dasharray: 2 6;
	stroke: rgba(246, 242, 234, .5);
}

.compass__ticks line {
	stroke: rgba(246, 242, 234, .45);
	stroke-width: 1.2;
}

.compass__pole {
	fill: rgba(246, 242, 234, .85);
	font: 700 14px var(--f-sans);
}

.compass__pole--left {
	fill: var(--c-ethiek-light);
}

.compass__pole--right {
	fill: var(--c-prof-light);
}

.compass__needle {
	transform: rotate(var(--angle, 0deg));
	transition: transform 1.1s cubic-bezier(.3, 1.6, .4, 1);
}

.compass__n1 {
	fill: var(--c-prof-light);
}

.compass__n2 {
	fill: var(--c-prof);
}

.compass__s1 {
	fill: var(--c-ethiek-light);
}

.compass__s2 {
	fill: var(--c-ethiek);
}

.compass__hub {
	fill: var(--c-paper);
}

.compass__tension {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 1rem 0 0;
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.compass__tension span:first-child {
	color: var(--c-ethiek-light);
}

.compass__tension span:first-child::before {
	content: "A · ";
}

.compass__tension span:last-child {
	color: var(--c-prof-light);
	text-align: right;
}

.compass__tension span:last-child::after {
	content: " · B";
}

.compass__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1.25rem;
}

.dilemma {
	background: rgba(246, 242, 234, .06);
	border: 1px solid rgba(246, 242, 234, .14);
	border-radius: var(--radius);
	padding: clamp(1.25rem, 3vw, 2rem);
}

.dilemma__count {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: rgba(246, 242, 234, .6);
	margin: 0 0 .5rem;
}

.dilemma__title {
	font-family: var(--f-serif);
	font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
	font-weight: 600;
	color: var(--c-paper);
	margin: 0 0 .75rem;
}

.dilemma__situation {
	font-family: var(--f-serif);
	font-size: 1.12rem;
	line-height: 1.6;
	color: rgba(246, 242, 234, .88);
	margin: 0 0 1.25rem;
}

.dilemma__options {
	display: grid;
	gap: .6rem;
	margin-bottom: 1rem;
}

.dilemma__option {
	display: flex;
	align-items: flex-start;
	gap: .85rem;
	width: 100%;
	margin: 0;
	padding: .95rem 1.1rem;
	border-radius: var(--radius-s);
	border: 1.5px solid rgba(246, 242, 234, .2);
	background: transparent;
	color: var(--c-paper);
	font: 500 1rem/1.45 var(--f-sans);
	text-align: left;
}

button.dilemma__option {
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

button.dilemma__option:hover {
	border-color: var(--c-paper);
	background: rgba(246, 242, 234, .06);
	transform: translateX(3px);
}

.dilemma__letter {
	flex: none;
	display: grid;
	place-items: center;
	width: 1.8rem;
	height: 1.8rem;
	border-radius: 50%;
	font-weight: 800;
	font-size: .85rem;
	background: rgba(246, 242, 234, .12);
}

.dilemma__option[data-choice="a"] .dilemma__letter {
	color: var(--c-ethiek-light);
}

.dilemma__option[data-choice="b"] .dilemma__letter {
	color: var(--c-prof-light);
}

.dilemma__option.is-chosen {
	border-color: var(--c-paper);
	background: rgba(246, 242, 234, .12);
}

.dilemma__option {
	position: relative;
}

.dilemma__option.is-research::after {
	content: "Lijn met de interviews";
	position: absolute;
	top: -.7rem;
	right: .8rem;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: .2rem .55rem;
	border-radius: 99px;
	background: var(--c-prof-light);
	color: var(--c-ink);
}

.dilemma__option[disabled] {
	cursor: default;
	transform: none;
}

.dilemma__evidence > summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--c-prof-light);
}

.dilemma__verdict {
	margin: 1rem 0 .5rem;
	font-weight: 700;
	color: var(--c-paper);
}

.dilemma__quote {
	margin: .75rem 0 0;
	padding: 1rem 1.1rem 1rem 1.25rem;
	border-left: 3px solid var(--c-prof-light);
	background: rgba(246, 242, 234, .05);
	border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

.dilemma__quote p {
	margin: 0 0 .4rem;
	font-family: var(--f-serif);
	font-style: italic;
	font-size: 1.08rem;
	line-height: 1.55;
	color: var(--c-paper);
}

.dilemma__quote cite {
	font-style: normal;
	font-size: .85rem;
	color: rgba(246, 242, 234, .7);
}

.dilemma__next {
	margin-top: 1.25rem;
}

/* Enhanced (JS): one dilemma at a time */
.compass.is-enhanced .dilemma {
	display: none;
}

.compass.is-enhanced .dilemma.is-current {
	display: block;
	animation: eidp-rise .5s cubic-bezier(.2, .7, .2, 1) both;
}

.compass.is-enhanced .dilemma__evidence > summary {
	display: none;
}

.compass__progress {
	display: flex;
	gap: 6px;
	margin: 0;
	align-self: end;
}

.compass__progress span {
	flex: 1;
	height: 4px;
	border-radius: 2px;
	background: rgba(246, 242, 234, .16);
	transition: background .3s ease;
}

.compass__progress .is-done {
	background: var(--c-prof-light);
}

.compass__progress .is-off {
	background: var(--c-ethiek-light);
}

.compass__result {
	background: var(--c-paper);
	color: var(--c-ink);
	border-radius: var(--radius);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	animation: eidp-rise .6s cubic-bezier(.2, .7, .2, 1) both;
}

.compass__result .module__kicker {
	color: var(--c-ethiek);
}

.compass__score {
	font-family: var(--f-serif);
	font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.3rem);
	font-weight: 600;
	line-height: 1.25;
	margin: 0 0 .75rem;
}

.compass__note {
	color: var(--c-muted);
	margin: 0 0 1.5rem;
}

.compass__actions {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem;
	margin: 0;
}

.compass__result .pill-button--solid {
	background: var(--c-ink);
	border-color: var(--c-ink);
	color: var(--c-paper);
}

@media (min-width: 900px) {
	.compass {
		grid-template-columns: minmax(16rem, 22rem) 1fr;
		row-gap: 1rem;
	}

	.compass__dial {
		grid-column: 1;
		grid-row: 1 / span 3;
	}

	.compass__progress,
	.compass__list,
	.compass__result {
		grid-column: 2;
	}

	.compass__dial {
		position: sticky;
		top: 7rem;
	}

	.compass__result {
		grid-column: 2;
	}
}

@keyframes eidp-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
}

/* ---------- Perspective matrix ---------- */

.module--matrix {
	background:
		linear-gradient(rgba(13, 31, 43, .04) 1px, transparent 1px) 0 0 / 28px 28px,
		linear-gradient(90deg, rgba(13, 31, 43, .04) 1px, transparent 1px) 0 0 / 28px 28px,
		var(--c-paper-2);
	border-top: 1px solid var(--c-line);
	border-bottom: 1px solid var(--c-line);
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.matrix__filters {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: 1.25rem;
}

.matrix__filter {
	padding: .5rem 1rem;
	border-radius: 99px;
	border: 1.5px solid var(--c-line);
	background: var(--c-white);
	color: var(--c-ink);
	font: 600 .9rem var(--f-sans);
	cursor: pointer;
}

.matrix__filter.is-active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.matrix__layout {
	display: grid;
	gap: 1.5rem;
	align-items: start;
}

.matrix__scroll {
	overflow-x: auto;
	background: var(--c-white);
	border: 1px solid var(--c-line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}

.matrix__table {
	width: 100%;
	min-width: 38rem;
	border-collapse: collapse;
	font-size: .95rem;
}

.matrix__table th,
.matrix__table td {
	padding: .75rem .6rem;
	border-bottom: 1px solid var(--c-paper-2);
	text-align: center;
	transition: background .2s ease, opacity .2s ease;
}

.matrix__table thead th {
	vertical-align: bottom;
	border-bottom: 2px solid var(--c-ink);
	font-weight: 700;
	color: var(--c-ink);
}

.matrix__table thead th:first-child,
.matrix__table tbody th {
	text-align: left;
	padding-left: 1.25rem;
}

.matrix__table tbody th {
	font-weight: 600;
	color: var(--c-ink);
	white-space: nowrap;
}

.matrix__name {
	display: block;
	font-size: 1rem;
}

.matrix__role {
	display: block;
	font-size: .72rem;
	font-weight: 500;
	color: var(--c-muted);
}

.matrix__table tbody tr:hover > * {
	background: var(--accent-tint);
}

.matrix__dot {
	position: relative;
	width: 1.35rem;
	height: 1.35rem;
	padding: 0;
	border-radius: 50%;
	border: 2px solid var(--accent);
	background: var(--accent);
	cursor: pointer;
	vertical-align: middle;
	transition: transform .25s cubic-bezier(.3, 1.6, .4, 1), box-shadow .25s ease;
}

.matrix__dot.is-muted {
	background: var(--c-white);
}

.matrix__dot:hover,
.matrix__dot.is-active {
	transform: scale(1.35);
	box-shadow: 0 0 0 6px var(--accent-tint);
}

.matrix__dot.is-active::after {
	content: "";
	position: absolute;
	inset: -9px;
	border-radius: 50%;
	border: 2px solid var(--accent);
	opacity: .5;
	animation: eidp-ping 1.6s ease-out infinite;
}

@keyframes eidp-ping {
	to {
		inset: -18px;
		opacity: 0;
	}
}

.matrix__empty {
	display: inline-block;
	width: .45rem;
	height: .45rem;
	border-radius: 50%;
	background: var(--c-line);
	vertical-align: middle;
}

.matrix__sum {
	min-width: 7.5rem;
	white-space: nowrap;
}

.matrix__bar {
	display: inline-block;
	width: 4rem;
	height: .45rem;
	border-radius: 99px;
	background: linear-gradient(90deg, var(--accent) calc(var(--n) * 25%), var(--c-paper-2) 0);
	vertical-align: middle;
	margin-right: .5rem;
}

.matrix__num {
	font-size: .8rem;
	font-weight: 700;
	color: var(--c-muted);
}

.matrix.is-filtered td[data-person],
.matrix.is-filtered th[data-person] {
	opacity: .2;
}

.matrix.is-filtered .is-person {
	opacity: 1 !important;
	background: var(--accent-tint);
}

.matrix__panel {
	background: var(--c-ink);
	color: var(--c-paper);
	border-radius: var(--radius);
	padding: 1.5rem;
	position: relative;
	animation: eidp-rise .4s ease both;
}

.matrix__panel::before {
	content: "“";
	position: absolute;
	top: .2rem;
	right: 1.2rem;
	font: 700 5rem/1 var(--f-serif);
	color: var(--accent-light);
	opacity: .5;
}

.matrix__panel-theme {
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent-light);
	margin: 0 0 .75rem;
}

.matrix__panel-quote {
	margin: 0 0 1rem;
}

.matrix__panel-quote p {
	font-family: var(--f-serif);
	font-style: italic;
	font-size: 1.2rem;
	line-height: 1.5;
	margin: 0 0 .6rem;
}

.matrix__panel-quote cite {
	font-style: normal;
	font-size: .88rem;
	color: rgba(246, 242, 234, .72);
}

.matrix__hint {
	font-size: .82rem;
	color: rgba(246, 242, 234, .6);
	margin: 0;
	border-top: 1px solid rgba(246, 242, 234, .12);
	padding-top: .75rem;
}

.matrix__all {
	margin-top: 1.25rem;
	font-size: .95rem;
}

.matrix__all summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--accent-deep);
}

.matrix__all dt {
	font-weight: 700;
	margin-top: 1rem;
	color: var(--c-ink);
}

.matrix__all dd {
	margin: .35rem 0 0 1rem;
	color: var(--c-text);
}

.js .matrix__all {
	display: none;
}

@media (min-width: 1000px) {
	.matrix__layout {
		grid-template-columns: minmax(0, 1fr) 19rem;
	}

	.matrix__panel {
		position: sticky;
		top: 7rem;
	}
}

/* ---------- Value counter ---------- */

.module--values {
	background: var(--c-white);
	border-top: 1px solid var(--c-line);
	border-bottom: 1px solid var(--c-line);
	margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.values__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .4rem 1.25rem;
	font-size: .88rem;
	color: var(--c-muted);
	margin: 0 0 1.5rem;
}

.values__key {
	display: inline-block;
	width: .9rem;
	height: .9rem;
	border-radius: 3px;
	margin-right: -.8rem;
}

.values__key--prof,
.values__seg--prof {
	background: var(--c-prof);
}

.values__key--ethiek,
.values__seg--ethiek {
	background: var(--c-ethiek);
}

.values__key--gen,
.values__seg--gen {
	background: var(--c-general);
}

.values__legend .values__key {
	margin-right: .45rem;
}

.values {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: .65rem;
}

.values__row {
	display: grid;
	grid-template-columns: minmax(8rem, 12rem) 1fr 3rem;
	align-items: center;
	gap: 1rem;
}

.values__label {
	font-weight: 600;
	color: var(--c-ink);
}

.values__track {
	display: flex;
	gap: 2px;
	height: 1.35rem;
	width: var(--w);
	min-width: 4px;
	border-radius: 4px;
	overflow: hidden;
	transform-origin: 0 50%;
}

.values__seg {
	min-width: 0;
}

.values__total {
	font: 700 1.05rem var(--f-sans);
	color: var(--c-ink);
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.js .values.is-waiting .values__track {
	transform: scaleX(0);
}

.js .values .values__track {
	transition: transform 1s cubic-bezier(.2, .7, .2, 1);
	transition-delay: calc(var(--d, 0) * 60ms);
}

@media (max-width: 600px) {
	.values__row {
		grid-template-columns: 1fr 2.5rem;
		row-gap: .3rem;
	}

	.values__track {
		grid-column: 1 / -1;
		grid-row: 2;
	}
}

/* ---------- Route chart ---------- */

.route__svg {
	display: block;
	width: 100%;
	height: auto;
	color: var(--c-paper);
	overflow: visible;
}

.route__contours path,
.route__contours ellipse {
	fill: none;
	stroke: rgba(246, 242, 234, .18);
	stroke-width: 1.2;
}

.route__line {
	fill: none;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
}

.route__line--prof {
	stroke: var(--c-prof-light);
}

.route__line--ethiek {
	stroke: var(--c-ethiek-light);
}

.route__node {
	cursor: pointer;
	outline: none;
}

.route__node circle {
	fill: var(--c-ink);
	stroke-width: 3;
	transition: r .25s cubic-bezier(.3, 1.6, .4, 1), fill .2s ease;
}

.route__node--prof circle {
	stroke: var(--c-prof-light);
}

.route__node--ethiek circle {
	stroke: var(--c-ethiek-light);
}

.route__node--port circle,
.route__node--harbour circle {
	stroke: var(--c-paper);
	fill: var(--c-ink-2);
}

.route__node text {
	fill: var(--c-paper);
	font: 700 15px var(--f-sans);
	pointer-events: none;
}

.route__node .route__caption {
	font: 500 13px var(--f-sans);
	fill: rgba(246, 242, 234, .72);
	transition: fill .2s ease;
}

.route__node:hover circle,
.route__node:focus-visible circle {
	r: 23px;
}

.route__node--prof:hover circle,
.route__node--prof:focus-visible circle {
	fill: var(--c-prof);
}

.route__node--ethiek:hover circle,
.route__node--ethiek:focus-visible circle {
	fill: var(--c-ethiek);
}

.route__node:hover .route__caption,
.route__node:focus-visible .route__caption {
	fill: #fff;
	font-weight: 700;
}

.route__node:focus-visible circle {
	stroke: #ffc94d;
	stroke-width: 4;
}

.route__legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem 1.5rem;
	margin: 1.25rem 0 0;
	font-size: .9rem;
	color: rgba(246, 242, 234, .75);
}

.route__key {
	display: inline-block;
	width: 2rem;
	height: 3px;
	border-radius: 2px;
	margin-right: -.9rem;
}

.route__key--prof {
	background: var(--c-prof-light);
}

.route__key--ethiek {
	background: var(--c-ethiek-light);
}

@media (max-width: 700px) {
	.route {
		overflow-x: auto;
		margin-inline: calc(-1 * clamp(1.25rem, 4vw, 3rem));
		padding-inline: clamp(1.25rem, 4vw, 3rem);
	}

	.route__svg {
		min-width: 46rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.js .route.is-waiting .route__line {
		stroke-dashoffset: 1;
	}

	.js .route .route__line {
		transition: stroke-dashoffset 2.4s cubic-bezier(.45, .05, .2, 1);
	}

	.js .route.is-waiting .route__node {
		opacity: 0;
	}

	.js .route .route__node {
		transition: opacity .4s ease;
		transition-delay: calc(var(--i, 0) * 140ms + 300ms);
	}
}

/* ---------- Search palette ---------- */

.search-toggle__label {
	display: none;
}

.search-toggle__kbd {
	display: none;
	font: 600 .72rem var(--f-sans);
	padding: .1rem .4rem;
	border-radius: 4px;
	background: rgba(246, 242, 234, .14);
}

@media (min-width: 1280px) {
	.search-toggle__label,
	.search-toggle__kbd {
		display: inline;
	}
}

.palette {
	width: min(42rem, calc(100vw - 2rem));
	max-height: min(36rem, calc(100vh - 6rem));
	margin: 10vh auto auto;
	padding: 0;
	border: 0;
	border-radius: 18px;
	background: var(--c-white);
	color: var(--c-text);
	box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .55);
	font-family: var(--f-sans);
	overflow: hidden;
}

.palette::backdrop {
	background: rgba(13, 31, 43, .55);
	backdrop-filter: blur(4px);
}

.palette[open] {
	animation: eidp-pop .22s cubic-bezier(.2, .9, .3, 1.2) both;
}

@keyframes eidp-pop {
	from {
		opacity: 0;
		transform: translateY(-10px) scale(.97);
	}
}

.palette__box {
	display: flex;
	flex-direction: column;
	max-height: inherit;
}

.palette__bar {
	display: flex;
	align-items: center;
	gap: .75rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid var(--c-line);
	color: var(--c-muted);
}

.palette__input {
	flex: 1;
	border: 0;
	background: transparent;
	font: 500 1.15rem var(--f-sans);
	color: var(--c-ink);
	outline: none;
	min-width: 0;
}

.palette__input:focus-visible {
	box-shadow: none;
}

.palette kbd {
	font: 600 .72rem var(--f-sans);
	padding: .15rem .45rem;
	border-radius: 5px;
	border: 1px solid var(--c-line);
	background: var(--c-paper);
	color: var(--c-muted);
}

.palette__results {
	list-style: none;
	margin: 0;
	padding: .5rem;
	overflow-y: auto;
	flex: 1;
}

.palette__group {
	padding: .75rem .75rem .35rem;
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.palette__item a {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .1rem .75rem;
	padding: .7rem .85rem;
	border-radius: 10px;
	color: var(--c-ink);
	text-decoration: none;
}

.palette__item a[aria-selected="true"],
.palette__item a:hover {
	background: var(--accent-tint);
}

.palette__dot {
	grid-row: span 2;
	width: .65rem;
	height: .65rem;
	border-radius: 50%;
	margin-top: .45rem;
	background: var(--accent);
}

.palette__title {
	font-weight: 700;
}

.palette__sub {
	font-size: .88rem;
	color: var(--c-muted);
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.palette mark {
	background: #ffe27a;
	color: inherit;
	border-radius: 2px;
	padding: 0 1px;
}

.palette__empty {
	padding: 2rem 1rem;
	text-align: center;
	color: var(--c-muted);
}

.palette__foot {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.25rem;
	margin: 0;
	padding: .7rem 1.25rem;
	border-top: 1px solid var(--c-line);
	font-size: .8rem;
	color: var(--c-muted);
	background: var(--c-paper);
}

.palette__status {
	margin-left: auto;
}

/* ---------- Presentation mode ---------- */

.page-hero__present::before {
	display: none !important;
}

.present-toggle {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	margin-left: .6rem;
	padding: .35rem .85rem;
	border-radius: 99px;
	border: 1.5px solid var(--accent);
	background: transparent;
	color: var(--accent-deep);
	font: 700 .85rem var(--f-sans);
	cursor: pointer;
}

.present-toggle:hover {
	background: var(--accent);
	color: #fff;
}

.present {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	flex-direction: column;
	background: var(--c-ink);
	color: var(--c-paper);
	font-family: var(--f-sans);
}

.present__stage {
	position: relative;
	flex: 1;
	overflow: hidden;
}

.present__slide {
	position: absolute;
	inset: 0;
	overflow-y: auto;
	padding: clamp(2rem, 6vh, 5rem) clamp(1.5rem, 8vw, 9rem);
	opacity: 0;
	visibility: hidden;
	transform: translateX(40px);
	transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .55s;
}

.present__slide.is-current {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.present__slide.is-past {
	transform: translateX(-40px);
}

.present__slide > .present__content {
	max-width: 62rem;
	margin: 0 auto;
	font-family: var(--f-serif);
	font-size: clamp(1.15rem, .9rem + .9vw, 1.6rem);
	line-height: 1.55;
}

.present__slide--title {
	display: grid;
	place-items: center;
	text-align: center;
}

.present__slide--title h1 {
	font-family: var(--f-serif);
	font-size: clamp(2.6rem, 1.5rem + 5vw, 6rem);
	line-height: 1.02;
	margin: 0 0 1rem;
}

.present__slide--title p {
	font-size: 1.1rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent-light);
	font-family: var(--f-sans);
	font-weight: 700;
}

.present .present__content {
	color: rgba(246, 242, 234, .9);
}

.present .present__content .eidp-source,
.present .present__content .eidp-source a,
.present .present__content p.eidp-fulltext a + a {
	color: rgba(246, 242, 234, .85);
}

.present .copy-ref {
	display: none;
}

.present__content h2 {
	font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem);
	line-height: 1.1;
	margin: 0 0 2rem;
	color: var(--c-paper);
	padding-top: 1.25rem;
}

.present__content h3,
.present__content strong {
	color: var(--c-paper);
}

.present__content a {
	color: var(--accent-light);
}

.present__content .wp-block-group.is-style-eidp-card,
.present__content .wp-block-group.is-style-eidp-person,
.present__content .wp-block-group.is-style-eidp-definition,
.present__content .wp-block-group.is-style-eidp-example,
.present__content .is-style-eidp-article .eidp-source {
	background: rgba(246, 242, 234, .07);
	border-color: rgba(246, 242, 234, .18);
	color: var(--c-paper);
	box-shadow: none;
}

.present__content .is-style-eidp-card h3,
.present__content .is-style-eidp-person .eidp-person__name,
.present__content .is-style-eidp-definition p:not(.eidp-kicker),
.present__content .is-style-eidp-example p:not(.eidp-kicker),
.present__content .is-style-eidp-lead,
.present__content ol.is-style-eidp-route > li a {
	color: var(--c-paper);
}

.present__content .eidp-kicker,
.present__content .is-style-eidp-note p {
	color: var(--accent-light);
}

.present__content ol.is-style-eidp-questions > li,
.present__content ol.is-style-eidp-questions > li:first-child {
	border-color: rgba(246, 242, 234, .16);
}

.present__content ol.is-style-eidp-questions > li::before,
.present__content ol.is-style-eidp-route > li::before {
	color: var(--accent-light);
	border-color: var(--accent-light);
	background: transparent;
}

.present__content ol.is-style-eidp-route > li {
	color: rgba(246, 242, 234, .7);
}

.present__bar {
	display: flex;
	align-items: center;
	gap: 1rem;
	padding: .85rem clamp(1rem, 3vw, 2rem);
	border-top: 1px solid rgba(246, 242, 234, .12);
}

.present__progress {
	flex: 1;
	height: 4px;
	border-radius: 2px;
	background: rgba(246, 242, 234, .14);
	overflow: hidden;
}

.present__progress span {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, var(--c-prof-light), var(--c-ethiek-light));
	transform-origin: 0 50%;
	transition: transform .4s ease;
}

.present__count {
	font-variant-numeric: tabular-nums;
	font-size: .9rem;
	color: rgba(246, 242, 234, .75);
	min-width: 4.5rem;
	text-align: center;
}

.present__btn {
	display: inline-grid;
	place-items: center;
	width: 2.6rem;
	height: 2.6rem;
	border-radius: 50%;
	border: 1.5px solid rgba(246, 242, 234, .3);
	background: transparent;
	color: var(--c-paper);
	font-size: 1.1rem;
	cursor: pointer;
}

.present__btn:hover {
	background: var(--c-paper);
	color: var(--c-ink);
}

body.is-presenting {
	overflow: hidden;
}

/* ---------- APA copy buttons ---------- */

.copy-ref {
	display: inline-flex;
	align-items: center;
	margin-left: .5rem;
	padding: .1rem .55rem;
	border-radius: 99px;
	border: 1px solid var(--c-line);
	background: var(--c-white);
	color: var(--c-muted);
	font: 600 .75rem var(--f-sans);
	text-indent: 0;
	cursor: pointer;
	vertical-align: middle;
}

.copy-ref:hover {
	border-color: var(--accent);
	color: var(--accent-deep);
}

.copy-ref.is-done {
	background: var(--c-prof);
	border-color: var(--c-prof);
	color: #fff;
}

/* ---------- Reduced motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
	.compass__needle,
	.matrix__dot,
	.present__slide,
	.present__progress span,
	.js .values .values__track,
	button.dilemma__option {
		transition: none !important;
	}

	.compass.is-enhanced .dilemma.is-current,
	.compass__result,
	.matrix__panel,
	.palette[open] {
		animation: none;
	}

	.matrix__dot.is-active::after {
		animation: none;
		display: none;
	}
}

@media print {
	.module--compass,
	.module--route,
	.palette,
	.present,
	.present-toggle,
	.copy-ref,
	.search-toggle,
	.matrix__panel,
	.matrix__filters {
		display: none !important;
	}

	.module--matrix,
	.module--values {
		background: #fff !important;
		padding: 1rem 0;
	}

	.js .matrix__all {
		display: block;
	}

	.js .values.is-waiting .values__track {
		transform: none;
	}
}

/* ---------- Page hero illustration / photo ---------- */

.page-hero__inner {
	display: grid;
	gap: 1.5rem;
	align-items: center;
}

.page-hero__art {
	display: none;
}

.page-art {
	width: 100%;
	height: auto;
	overflow: visible;
}

.page-art__grid circle {
	fill: none;
	stroke: var(--accent);
	stroke-width: 1;
	stroke-dasharray: 2 6;
	opacity: .45;
}

.page-art__lines * {
	fill: none;
	stroke: var(--c-ink);
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.page-art__lines .a-fill {
	fill: var(--accent);
	stroke: var(--c-ink);
}

.page-art__lines .a-soft {
	fill: var(--accent-light);
}

.page-art__lines .a-wave,
.page-art__lines .a-beam {
	stroke: var(--accent);
}

.page-art__lines .a-beam {
	stroke-dasharray: 4 6;
}

.page-art__lines .a-band {
	stroke: var(--c-paper);
	stroke-width: 9;
}

.page-art__lines .a-fill-line {
	stroke: var(--accent);
	stroke-width: 5;
}

.page-hero__photo {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 999px 999px 24px 24px;
	box-shadow: 0 30px 60px -30px rgba(13, 31, 43, .55);
	border: 6px solid var(--c-white);
}

@media (min-width: 900px) {
	.page-hero__inner {
		grid-template-columns: minmax(0, 1fr) clamp(13rem, 22vw, 18rem);
		gap: 3rem;
	}

	.page-hero.has-photo .page-hero__inner {
		grid-template-columns: minmax(0, 1fr) clamp(16rem, 30vw, 24rem);
	}

	.page-hero__art {
		display: block;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.page-art__lines .a-wave {
		stroke-dasharray: 6 5;
		animation: eidp-sail 2.6s linear infinite;
	}

	.page-art {
		animation: eidp-bob 6s ease-in-out infinite;
	}
}

@keyframes eidp-bob {
	50% {
		transform: translateY(-6px) rotate(-1deg);
	}
}

/* Article motivation cards & full-text links */

.eidp-article__meta .is-style-eidp-card {
	border-top-width: 3px;
	background: var(--c-white);
}

.eidp-article__meta .is-style-eidp-card h3 {
	font-size: .78rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--accent-deep);
}

.eidp-article__meta .is-style-eidp-card p {
	font-size: .98rem;
}

p.eidp-fulltext {
	font-family: var(--f-sans);
	font-size: .95rem;
	font-weight: 600;
	margin-top: 1rem;
}

p.eidp-fulltext a:first-child {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .55rem 1rem;
	border-radius: 99px;
	background: var(--accent);
	color: #fff;
	text-decoration: none;
	margin-right: .5rem;
}

p.eidp-fulltext a:first-child::after {
	content: "↗";
}

p.eidp-fulltext a:first-child:hover {
	background: var(--accent-deep);
	color: #fff;
}

@media (max-width: 899px) {
	.compass__dial {
		max-width: 15rem;
	}
}
