/*
 * Details blocks ("Before you write" on the Contact page): a question with a triangle and a
 * dashed rule, the answer under it.
 */

.wp-block-details {
	padding: 14px 0;
	border-bottom: 2px dashed var(--bl-ink);
}

.wp-block-details:first-of-type {
	border-top: 2px dashed var(--bl-ink);
}

.wp-block-details summary {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: 17px;
	font-weight: 800;
	line-height: 1.35;
	list-style: none;
	cursor: pointer;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::before {
	content: "";
	flex: none;
	width: 0;
	height: 0;
	border-top: 6px solid transparent;
	border-bottom: 6px solid transparent;
	border-left: 9px solid var(--bl-ink);
	transition: transform 0.2s ease;
}

.wp-block-details[open] summary::before {
	transform: rotate(90deg);
}

.wp-block-details summary:hover {
	text-decoration: underline;
	text-decoration-color: var(--bl-coral);
	text-decoration-thickness: 3px;
	text-underline-offset: 4px;
}

.wp-block-details > :not(summary) {
	margin: 10px 0 0 19px;
	font-size: 16px;
	line-height: 1.55;
}
