/* Motion is an engineering default; glyphs retain the current source geometry. */
.nh-disclosure-body {
	display: flow-root;
}

.nh-navigation summary::after {
	transition: transform 200ms ease;
}

.nh-navigation details[data-nh-expanded="false"] > summary::after {
	transform: translateY(-50%) rotate(90deg);
}

.nh-navigation details[data-nh-expanded="false"] > .nh-dropdown {
	pointer-events: none;
}

/* Location state persists independently of disclosure, hover and focus state. */
.nh-navigation > .nh-current-link,
.nh-navigation > .nh-current-section > summary {
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 5px;
}

.nh-navigation .nh-dropdown > .nh-current-link {
	text-decoration: underline;
	text-decoration-thickness: 1.5px;
	text-underline-offset: 4px;
	opacity: 1;
}

:is(.nh-property-faq, .nh-partner-vacancies) .nh-faq details > summary::after {
	opacity: 1;
	background: var(--nh-mint);
	mask: url('ui-states/faq-plus.svg') center / contain no-repeat;
	transition: none;
}

:is(.nh-property-faq, .nh-partner-vacancies) .nh-faq details:where([open]:not([data-nh-expanded='false'])) > summary::after {
	mask-image: url('ui-states/faq-minus.svg');
}

:is(.nh-property-faq, .nh-partner-vacancies) .nh-faq details.nh-disclosure {
	cursor: pointer;
}

:is(.nh-property-faq, .nh-partner-vacancies) .nh-faq details:hover > summary::after {
	background-color: var(--nh-teal);
}

:is(.nh-property-faq, .nh-partner-vacancies) .nh-faq details[data-nh-pressed='true'] > summary::after {
	background-color: var(--nh-mint);
}

/* Keep the title on whole words when the desktop heading column is too narrow.
 * The supplied 1280px and 380px compositions retain their existing geometry. */
@media (701px <= width <= 1000px) {
	.nh-property-body > .nh-property-faq {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.nh-property-faq h2 {
		max-width: none;
		overflow-wrap: normal;
	}
}

/* The mobile plus begins at the summary's outer edge. Reserve breathing room
 * inside that unchanged box instead of moving the original artwork. */
@media (width <= 360px) {
	.nh-property-faq .nh-faq summary {
		padding-inline-end: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nh-navigation summary::after {
		transition: none;
	}
}

/* Keep the existing trigger-to-panel gap traversable even with a slow pointer. */
@media (width >= 701px) {
	.nh-navigation > a,
	.nh-navigation > details > summary {
		position: relative;
		z-index: 11;
	}

	.nh-navigation > details[data-nh-expanded="true"]::after {
		position: absolute;
		top: 100%;
		left: var(--nh-dropdown-bridge-left, 0);
		width: var(--nh-dropdown-bridge-width, 100%);
		height: var(--nh-dropdown-bridge, 30px);
		content: '';
	}
}
