/**
 * FAQ page (template "Veelgestelde vragen") – loaded on that template only.
 *
 * Header with search, topic navigation, the questions per topic and the
 * closing help block. The accordion itself (.eno-faq__item, __question,
 * __answer) is the site-wide FAQ style from project.css.
 *
 * Mobile: topics as a scrollable row of chips above the questions.
 * Desktop: topics as a sticky column left of the questions.
 */

.eno-faq-page {
	width: 100%;
}

.eno-faq-page [hidden] {
	display: none !important;
}

/* Header ------------------------------------------------------------------ */

.eno-faq-page__header {
	padding-block: 3rem 2.5rem;
}

.eno-faq-page__title {
	margin: 0;
	font-family: var(--eno-font-heading);
	font-size: var(--eno-text-headline-lg);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.eno-faq-page__intro {
	max-width: 44rem;
	margin-top: 1rem;
	color: var(--eno-color-text-muted);
	font-size: var(--eno-text-body-lg);
	line-height: 1.6;
}

.eno-faq-page__intro p {
	margin: 0 0 0.75em;
}

.eno-faq-page__intro > :last-child {
	margin-bottom: 0;
}

.eno-faq-page__intro a {
	color: var(--eno-color-orange-dark);
}

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

.eno-faq-page__search {
	position: relative;
	max-width: 40rem;
	margin-top: 2rem;
}

.eno-faq-page__search .eno-icon {
	position: absolute;
	top: 50%;
	left: 1rem;
	width: 1.375rem;
	height: 1.375rem;
	color: var(--eno-color-outline);
	transform: translateY(-50%);
	pointer-events: none;
}

.eno-faq-page__search input {
	width: 100%;
	min-height: 3.5rem;
	margin: 0;
	padding: 0.875rem 1rem 0.875rem 3.25rem;
	border: 1px solid var(--eno-color-surface-dim);
	border-radius: var(--eno-radius-lg);
	background-color: var(--eno-color-white);
	color: var(--eno-color-text);
	font-family: var(--eno-font-body);
	font-size: var(--eno-text-body);
	line-height: 1.4;
	transition: border-color 150ms var(--eno-ease), box-shadow 150ms var(--eno-ease);
}

.eno-faq-page__search input::placeholder {
	color: var(--eno-color-outline);
	opacity: 1;
}

.eno-faq-page__search input:hover {
	border-color: var(--eno-color-outline);
}

.eno-faq-page__search input:focus {
	border-color: var(--eno-color-orange);
	outline: none;
	box-shadow: 0 0 0 3px var(--eno-color-orange-tint);
}

/* Layout ------------------------------------------------------------------ */

.eno-faq-page__main {
	display: grid;
	gap: 2rem;
	padding-bottom: 5rem;
}

/* Topic navigation: chips on mobile ------------------------------------- */

.eno-faq-page__nav {
	min-width: 0;
	margin-inline: calc(var(--eno-gutter) * -1);
}

.eno-faq-page__nav-title {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.eno-faq-page__nav ul {
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0 var(--eno-gutter) 0.25rem;
	overflow-x: auto;
	list-style: none;
	scroll-padding-inline: var(--eno-gutter);
	scrollbar-width: none;
}

.eno-faq-page__nav ul::-webkit-scrollbar {
	display: none;
}

.eno-faq-page__nav li {
	flex-shrink: 0;
	margin: 0;
}

.eno-faq-page__nav a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.875rem;
	border: 1px solid var(--eno-color-surface-high);
	border-radius: var(--eno-radius-lg);
	background-color: var(--eno-color-white);
	color: var(--eno-color-text);
	font-size: var(--eno-text-label);
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 150ms var(--eno-ease), color 150ms var(--eno-ease);
}

.eno-faq-page__nav a:hover,
.eno-faq-page__nav a:focus-visible {
	border-color: var(--eno-color-orange);
	color: var(--eno-color-orange-dark);
}

.eno-faq-page__nav a:focus-visible {
	outline: 2px solid var(--eno-color-orange);
	outline-offset: 2px;
}

.eno-faq-page__count {
	min-width: 1.5rem;
	padding: 0.0625rem 0.375rem;
	border-radius: var(--eno-radius);
	background-color: var(--eno-color-surface);
	color: var(--eno-color-text-muted);
	font-size: var(--eno-text-small);
	font-weight: 600;
	text-align: center;
}

/* Topics ------------------------------------------------------------------ */

.eno-faq-page__topics {
	display: grid;
	gap: 3.5rem;
	min-width: 0;
	max-width: 52rem;
}

.eno-faq-page__topic,
.eno-faq-page .eno-faq__item {
	scroll-margin-top: 7rem;
}

.eno-faq-page__topic-title {
	margin: 0 0 1rem;
	font-family: var(--eno-font-heading);
	font-size: var(--eno-text-headline-md);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.eno-faq-page__topic-text {
	max-width: 40rem;
	margin: -0.5rem 0 1.25rem;
	color: var(--eno-color-text-muted);
	line-height: 1.6;
}

.eno-faq-page__empty {
	margin: 0;
	padding: 2rem 1.5rem;
	border: 1px dashed var(--eno-color-surface-dim);
	border-radius: var(--eno-radius-lg);
	color: var(--eno-color-text-muted);
	text-align: center;
}

/* Help block -------------------------------------------------------------- */

.eno-faq-help {
	padding-bottom: 5rem;
}

.eno-faq-help__panel {
	display: grid;
	gap: 2rem;
	padding: 2rem 1.5rem;
	border-radius: var(--eno-radius-lg);
	background-color: var(--eno-color-green-bg);
}

.eno-faq-help__title {
	margin: 0;
	font-family: var(--eno-font-heading);
	font-size: var(--eno-text-headline-md);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.eno-faq-help__text {
	max-width: 32rem;
	margin-top: 0.75rem;
	color: var(--eno-color-text-muted);
	line-height: 1.6;
}

.eno-faq-help__text p {
	margin: 0 0 0.75em;
}

.eno-faq-help__text > :last-child {
	margin-bottom: 0;
}

.eno-faq-help__text a {
	color: var(--eno-color-orange-dark);
}

.eno-faq-help__hours {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 1.25rem 0 0;
	color: var(--eno-color-green-ink);
	font-size: var(--eno-text-label);
	font-weight: 600;
}

.eno-faq-help__hours .eno-icon {
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
}

.eno-faq-help__actions {
	display: grid;
	gap: 1.25rem;
	justify-items: start;
}

.eno-faq-help__channels {
	display: grid;
	gap: 0.75rem;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
}

.eno-faq-help__channels li {
	margin: 0;
}

.eno-faq-help__channels a {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	height: 100%;
	padding: 0.875rem 1rem;
	border: 1px solid transparent;
	border-radius: var(--eno-radius-lg);
	background-color: var(--eno-color-white);
	color: var(--eno-color-text);
	text-decoration: none;
	transition: border-color 150ms var(--eno-ease);
}

.eno-faq-help__channels a:hover,
.eno-faq-help__channels a:focus-visible {
	border-color: var(--eno-color-orange);
}

.eno-faq-help__channels a:focus-visible {
	outline: 2px solid var(--eno-color-orange);
	outline-offset: 2px;
}

.eno-faq-help__channels .eno-icon {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0.5625rem;
	border-radius: 50%;
	background-color: var(--eno-color-green-soft);
	color: var(--eno-color-green-ink);
}

.eno-faq-help__channel {
	display: grid;
	min-width: 0;
}

.eno-faq-help__label {
	color: var(--eno-color-text-muted);
	font-size: var(--eno-text-small);
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.eno-faq-help__value {
	overflow: hidden;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Tablet: channels side by side. */
@media (min-width: 768px) {
	.eno-faq-help__panel {
		padding: 2.5rem;
	}

	.eno-faq-help__channels {
		grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	}
}

/* Desktop: topics as a sticky column left of the questions. */
@media (min-width: 1024px) {
	.eno-faq-page__header {
		padding-block: 4rem 3rem;
	}

	.eno-faq-page__main.has-nav {
		grid-template-columns: 15rem minmax(0, 1fr);
		gap: 5rem;
		align-items: start;
	}

	.eno-faq-page__nav {
		position: sticky;
		top: 7rem;
		margin-inline: 0;
	}

	.eno-faq-page__nav-title {
		position: static;
		width: auto;
		height: auto;
		margin: 0 0 1rem;
		overflow: visible;
		clip: auto;
		color: var(--eno-color-outline);
		font-size: var(--eno-text-small);
		font-weight: 700;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	.eno-faq-page__nav ul {
		flex-direction: column;
		gap: 0;
		padding: 0;
		overflow: visible;
		border-left: 2px solid var(--eno-color-surface-high);
	}

	.eno-faq-page__nav a {
		display: flex;
		justify-content: space-between;
		width: 100%;
		min-height: 0;
		margin-left: -2px;
		padding: 0.625rem 0 0.625rem 1rem;
		border: 0;
		border-left: 2px solid transparent;
		border-radius: 0;
		background: none;
		color: var(--eno-color-text-muted);
		font-size: var(--eno-text-body);
		font-weight: 500;
		white-space: normal;
	}

	.eno-faq-page__nav a:hover,
	.eno-faq-page__nav a:focus-visible {
		color: var(--eno-color-text);
	}

	.eno-faq-page__nav a.is-active {
		border-left-color: var(--eno-color-orange);
		color: var(--eno-color-text);
		font-weight: 700;
	}

	.eno-faq-page__topics {
		gap: 4.5rem;
	}

	.eno-faq-help {
		padding-bottom: 6rem;
	}

	.eno-faq-help__panel {
		grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
		gap: 4rem;
		align-items: center;
		padding: 3.5rem;
	}

	.eno-faq-help__title {
		font-size: var(--eno-text-headline-lg);
	}
}
