details > summary {
	list-style: none;
}

details > summary::-webkit-details-marker {
	display: none;
}

.details > .content-wrapper {
	overflow: hidden;
	display: grid;
	/* intentionally independent from .animation as Safari 16
    would otherwise ignore the expansion animation. */
	animation-duration: 0.2s;
}

.details > .animation {
	animation-name: grid-expand;
	animation-timing-function: ease-out;
}

.details > .collapsing {
	animation-direction: reverse;
	animation-timing-function: ease-in;
}

.details > .content-wrapper > div {
	min-height: 0;
}

@keyframes grid-expand {
	0% {
		grid-template-rows: 0fr;
	}
	100% {
		grid-template-rows: 1fr;
	}
}

.block--accordion {
	border-top: 1px solid #b5c8cd;
	border-bottom: 1px solid #b5c8cd;
}

.block--accordion .details {
	padding: 20px 0;
	border-bottom: 1px solid #b5c8cd;
}

.block--accordion[data-dark-mode='true'] {
	border-top: 1px solid #ebe4de;
	border-bottom: 1px solid #ebe4de;
}

.block--accordion[data-dark-mode='true'] .details {
	border-bottom: 1px solid #ebe4de;
}

.block--accordion .details:last-of-type {
	border-bottom: none;
}

.block--accordion .details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	cursor: pointer;
}

.details-summary-content {
	display: flex;
	align-items: center;
	gap: 12px;
}

.block--accordion .details summary svg {
	transform: rotate(0deg);
	transition: transform 0.2s ease;
	height: clamp(32px, calc(32px + ((1vw - 4px) * 1.333)), 48px);
	width: clamp(32px, calc(32px + ((1vw - 4px) * 1.333)), 48px);
}

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

.block--accordion .details .inner {
	padding-top: 16px;
}

.block--accordion .details .details-number {
	font-weight: 400;
	color: var(--wp--preset--color--turquoise);
	font-family: var(--wp--preset--font-family--begum);
	line-height: 1;
	font-style: italic;
}

.block--accordion .details .details-icon {
	margin-right: 16px;
}

.block--accordion .details h4 {
	margin-bottom: 0;
}

.block--accordion[data-dark-mode='true'] .details h4 {
	color: var(--wp--preset--color--alabaster);
	font-family: var(--wp--preset--font-family--begum);
}

[data-bg-colour='oxford-navy'] h4 {
	color: var(--wp--preset--color--ash-light);
}

[data-bg-colour='oxford-navy'] .content-wrapper .inner > * {
	color: var(--wp--preset--color--ash-light);
}
