/* Rand Accordion – base styles. Block settings print more specific rules per accordion. */
.rand-acc { max-width: none; --rand-acc-speed: 350ms; }
.rand-acc .rand-acc__inner { display: flex; flex-direction: column; row-gap: 8px; }
.rand-acc .rand-acc__pane { box-sizing: border-box; margin: 0; border: 0 solid transparent; transition: box-shadow var(--rand-acc-speed) ease, border-color .2s ease; }
.rand-acc .rand-acc__heading { margin: 0; padding: 0; font-size: inherit; line-height: inherit; font-weight: inherit; }
.rand-acc .rand-acc__header {
	position: relative;
	display: flex;
	align-items: center; /* the title is always vertically centred */
	gap: 12px;
	box-sizing: border-box;
	width: 100%;
	min-height: 0;
	margin: 0;
	padding: 14px 18px;
	border: 0 solid transparent;
	border-radius: 0;
	background: #f7fafc;
	color: #4a5568;
	font: inherit;
	font-size: 18px;
	line-height: 1.4;
	text-align: left;
	text-transform: none;
	text-decoration: none;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.rand-acc .rand-acc__header:hover { background: #edf2f7; }
.rand-acc .rand-acc__pane.is-open > .rand-acc__heading > .rand-acc__header { background: #4a5568; color: #fff; }
.rand-acc .rand-acc__header:focus { outline: none; }
.rand-acc .rand-acc__header:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.rand-acc .rand-acc__title { flex: 1 1 auto; min-width: 0; margin: 0; word-wrap: break-word; white-space: normal; text-align: inherit; }
.rand-acc .rand-acc__title-icon { display: inline-flex; align-items: center; flex: 0 0 auto; line-height: 0; }
.rand-acc .rand-acc__title-icon svg { width: 1.1em; height: 1.1em; }

/* Toggle icon */
.rand-acc .rand-acc__icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	margin-left: auto;
	color: inherit;
	line-height: 0;
}
.rand-acc .rand-acc__icon svg { display: block; width: 100%; height: 100%; transition: transform var(--rand-acc-speed) ease; }
.rand-acc .rand-acc__icon path { transition: transform var(--rand-acc-speed) ease, opacity var(--rand-acc-speed) ease; transform-box: fill-box; transform-origin: center; }
.rand-acc--icon-left .rand-acc__icon { order: -1; margin-left: 0; }
.rand-acc--icon-none .rand-acc__icon { display: none; }
.rand-acc .rand-acc__icon--circle .rand-acc__i-fg { stroke: var(--rand-acc-icon-fg, #fff); }
.rand-acc .is-open > .rand-acc__heading .rand-acc__icon--arrow svg,
.rand-acc .is-open > .rand-acc__heading .rand-acc__icon--circle svg,
.rand-acc .is-open > .rand-acc__heading .rand-acc__icon--caret svg,
.rand-acc .is-open > .rand-acc__heading .rand-acc__icon--custom:not(.rand-acc__icon--swap) svg { transform: rotate(180deg); }
.rand-acc .is-open > .rand-acc__heading .rand-acc__icon--side svg { transform: rotate(90deg); }
.rand-acc .is-open > .rand-acc__heading .rand-acc__icon .rand-acc__i-v { transform: scaleY(0); opacity: 0; }
.rand-acc .rand-acc__icon--swap > span { position: absolute; inset: 0; display: flex; transition: opacity var(--rand-acc-speed) ease, transform var(--rand-acc-speed) ease; }
.rand-acc .rand-acc__icon--swap > span svg { transition: none; }
.rand-acc .rand-acc__icon--swap .rand-acc__i-open { opacity: 0; transform: rotate(-90deg); }
.rand-acc .is-open > .rand-acc__heading .rand-acc__icon--swap .rand-acc__i-closed { opacity: 0; transform: rotate(90deg); }
.rand-acc .is-open > .rand-acc__heading .rand-acc__icon--swap .rand-acc__i-open { opacity: 1; transform: none; }

/* Panel */
.rand-acc .rand-acc__panel { overflow: hidden; }
.rand-acc .rand-acc__panel[hidden] { display: none; }
.rand-acc .rand-acc__panel.is-animating { transition: height var(--rand-acc-speed) ease; }
.rand-acc .rand-acc__panel-inner {
	box-sizing: border-box;
	padding: 20px;
	border: 1px solid #eeeeee;
	border-top-width: 0;
}
.rand-acc .rand-acc__panel-inner::after { content: ""; display: table; clear: both; }
.rand-acc .rand-acc__panel-inner > :first-child { margin-top: 0; }
.rand-acc .rand-acc__panel-inner > :last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
	.rand-acc .rand-acc__panel.is-animating, .rand-acc .rand-acc__icon svg, .rand-acc .rand-acc__icon path, .rand-acc .rand-acc__icon--swap > span { transition: none; }
}

/* Editor canvas: same look as the frontend; panes open and close like on the site. */
.editor-styles-wrapper .rand-acc .rand-acc__inner > .wp-block { margin-left: 0 !important; margin-right: 0 !important; margin-top: 0; margin-bottom: 0; max-width: none; }
.editor-styles-wrapper .rand-acc .rand-acc__inner > .block-list-appender { margin: 4px 0 0; }
.editor-styles-wrapper .rand-acc .rand-acc__header { cursor: text; }
.editor-styles-wrapper .rand-acc .rand-acc__icon { cursor: pointer; }
.editor-styles-wrapper .rand-acc .rand-acc__title [data-rich-text-placeholder] { opacity: .6; }
