.nordemo-faq {
	margin-block: 0 73px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
	width: 100%;
}

.nordemo-faq__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.nordemo-faq--yellow {
	--faq-surface: var(--nordemo-notice-surface);
	--faq-border: var(--nordemo-notice-border);
	--faq-note: #fff8e9;
}

.nordemo-faq--blue {
	--faq-surface: var(--nordemo-surface);
	--faq-border: #eaeae9;
	--faq-note: var(--nordemo-surface-accent);
}

.nordemo-faq__item {
	background: var(--faq-surface);
	border-radius: var(--nordemo-radius);
	/* Figma strokes sit inside the frame. An inset shadow keeps the designed box height. */
	box-shadow: inset 0 0 0 1px var(--faq-border);
}

.nordemo-faq__question {
	margin: 0;
}

.nordemo-faq__toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: 100%;
	padding: 24px 32px;
	font-family: inherit;
	transition: padding-bottom 250ms ease;
	font-size: 18px;
	font-weight: 500;
	line-height: 25px;
	color: #000;
	text-align: left;
	background: none;
	border: 0;
	cursor: pointer;
}

.nordemo-faq__toggle[aria-expanded='true'] .nordemo-icon--chevron {
	transform: rotate(180deg);
}

.nordemo-icon--chevron {
	transition: transform 250ms ease;
}

.nordemo-faq__answer {
	display: grid;
	background: rgba(255, 254, 253, 0.95);
	border-radius: 0 0 var(--nordemo-radius) var(--nordemo-radius);
	grid-template-rows: 0fr;
	transition: grid-template-rows 250ms ease;
}

.nordemo-faq__question:has( .nordemo-faq__toggle[aria-expanded='true'] ) + .nordemo-faq__answer {
	grid-template-rows: 1fr;
}

/* Open: the answer panel takes over the card's lower padding, as Figma overlays it. */
.nordemo-faq__question:has( .nordemo-faq__toggle[aria-expanded='true'] ) .nordemo-faq__toggle {
	padding-bottom: 0;
}

.nordemo-faq__answer-inner {
	overflow: hidden;
}

/* The padding belongs to the content, not the clipping box, or it survives the collapse. */
.nordemo-faq__answer-inner > * {
	padding: 16px 32px 24px;
}

.nordemo-faq__answer-inner > * {
	margin: 0;
	font-size: 18px;
	line-height: 30px;
	letter-spacing: -0.0111em;
	color: #000;
}

.nordemo-faq__answer-inner a {
	color: inherit;
	text-decoration: underline;
}

/* Colour, type and icon come from the global button variants; only layout lives here. */
.nordemo-faq__cta {
	flex: none;
}

.nordemo-faq__footer {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
}

/*
 * The list variant is the tenant information page: hairline-separated rows instead of cards,
 * and the button sits inside a note panel rather than on its own.
 */
.nordemo-faq--list {
	/* The hairline between rows stays neutral grey in both colours. */
	--faq-hairline: #eaeae9;
	max-width: 824px;
	margin-inline: auto;
	gap: 40px;
}

.nordemo-faq--list .nordemo-faq__list {
	gap: 0;
	border-radius: 10px;
	/* Figma strokes sit inside the frame. An inset shadow keeps the designed row heights. */
	box-shadow: inset 0 0 0 1px var(--faq-hairline);
}

.nordemo-faq--list .nordemo-faq__item {
	background: none;
	border-radius: 0;
	box-shadow: inset 0 1px 0 var(--faq-hairline);
}

/* The first row sits against the list's own top edge. */
.nordemo-faq--list .nordemo-faq__item:first-child {
	border-radius: 10px 10px 0 0;
	box-shadow: none;
}

.nordemo-faq--list .nordemo-faq__item:last-child {
	border-radius: 0 0 10px 10px;
}

.nordemo-faq--list .nordemo-faq__item:has( .nordemo-faq__toggle[aria-expanded='true'] ) {
	background: var(--faq-surface);
}

.nordemo-faq--list .nordemo-faq__toggle {
	gap: 16px;
	padding: 20px 24px;
	font-size: 24px;
	font-weight: 600;
	line-height: 32px;
	color: var(--nordemo-text);
}

.nordemo-faq--list .nordemo-faq__answer {
	background: none;
	border-radius: 0;
}

.nordemo-faq--list .nordemo-faq__answer-inner > * {
	padding: 16px 24px 20px;
	font-size: 17px;
	line-height: 25px;
	letter-spacing: normal;
	color: var(--nordemo-text);
}

/* A footer carrying the note text becomes a panel of its own, in the list and card look alike. */
.nordemo-faq--list .nordemo-faq__footer,
.nordemo-faq__footer:has( .nordemo-faq__note ) {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 24px 32px;
	background: var(--faq-note);
	border-radius: 10px;
}

/*
 * The note panel sits 40px under the questions where a bare button keeps the plain 16. The list
 * variant's root gap is already 40, so only the card variant needs topping up — unscoped, this
 * margin pushed the Information page's panel to 64.
 */
.nordemo-faq:not( .nordemo-faq--list ) .nordemo-faq__footer:has( .nordemo-faq__note ) {
	margin-top: 24px;
}

.nordemo-faq__note {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.nordemo-faq__note-title {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 30px;
	color: #000;
}

.nordemo-faq__note-text {
	margin: 0;
	font-size: 20px;
	font-weight: 400;
	line-height: 30px;
	color: var(--nordemo-text-muted);
}

.nordemo-faq :focus-visible {
	outline: 2px solid var(--nordemo-primary);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.nordemo-faq__answer,
	.nordemo-icon--chevron {
		transition: none;
	}
}

@media (max-width: 991px) {
	.nordemo-faq {
		margin-block: 0 16px;
	}

	.nordemo-faq {
		padding-bottom: 32px;
		padding-top: 48px;
	}

	.nordemo-faq__toggle {
		padding: 24px 16px;
	}

	.nordemo-faq__answer-inner > * {
		padding: 16px 16px 24px;
	}

	.nordemo-faq__cta {
		width: 100%;
	}

	/* The narrow yellow button drops to the regular weight; only the yellow one. */
	.nordemo-button--accent.nordemo-faq__cta {
		font-weight: 500;
		color: #000;
	}

	/* The frontpage block pads itself against its neighbours; the list sits on its own page. */
	.nordemo-faq--list {
		padding: 32px 0 0;
		gap: 40px;
	}

	.nordemo-faq--list .nordemo-faq__toggle {
		gap: 16px;
		padding: 20px 16px;
		font-size: 20px;
		line-height: 31px;
	}

	.nordemo-faq--list .nordemo-faq__answer-inner > * {
		padding: 16px 16px 20px;
	}

	.nordemo-faq--list .nordemo-faq__footer {
		flex-direction: column;
		align-items: stretch;
		gap: 20px;
		padding: 24px 16px;
	}

	.nordemo-faq__note-title {
		font-size: 22px;
	}

	.nordemo-faq__note-text {
		font-size: 17px;
		line-height: 25px;
	}

}
