.is-style-quadrille,
.is-style-quadrille-sombre,
.is-style-quadrille-fin {
	--daam-trait: var(--wp--preset--color--grille);
	--daam-pas: 32px;
	background-image:
		linear-gradient(var(--daam-trait) 1px, transparent 1px),
		linear-gradient(90deg, var(--daam-trait) 1px, transparent 1px);
	background-size: var(--daam-pas) var(--daam-pas);
	background-position: -1px -1px;
}

.is-style-quadrille-sombre {
	--daam-trait: var(--wp--preset--color--pied-grille);
}

.is-style-quadrille-fin {
	--daam-trait: var(--wp--preset--color--ombre);
	--daam-pas: 16px;
	background-position: 0 0;
}

h1,
.daam-equilibre {
	text-wrap: balance;
}

.daam-soigne {
	text-wrap: pretty;
}

.daam-insecable {
	white-space: nowrap;
}

/* Flex items that start from their block-set basis and share the free space. */
.daam-pousse {
	flex-grow: 1;
	min-width: 0;
}

.daam-pousse-large {
	flex-grow: 1.4;
	min-width: 0;
}

/* Two classes so the rule outranks core's `body .is-layout-flex { align-items: center }`. */
.wp-block-group.daam-ligne,
.wp-block-group.daam-voyant {
	align-items: baseline;
}

.wp-block-group.daam-fiche {
	grid-template-columns: auto minmax(0, 1fr);
}

/* Content box, so the 1px border adds to the 4:5 photo area as in the design. */
.daam-photo {
	box-sizing: content-box;
	aspect-ratio: 4 / 5;
	text-align: center;
}

.is-style-surtitre,
.daam-statut,
.daam-puce,
.daam-ancre a,
.daam-rendez-vous .wp-block-navigation-item__content {
	display: flex;
	align-items: center;
	gap: 12px;
}

.is-style-surtitre::before,
.daam-statut::before,
.daam-puce::before,
.daam-ancre a::before,
.daam-rendez-vous .wp-block-navigation-item__content::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	background: var(--wp--preset--color--anthracite);
}

.has-anthracite-background-color .is-style-surtitre::before {
	background: var(--wp--preset--color--blanc);
}

.daam-statut,
.daam-rendez-vous .wp-block-navigation-item__content {
	gap: 8px;
}

.daam-statut::before,
.daam-rendez-vous .wp-block-navigation-item__content::before {
	background: var(--wp--preset--color--accent);
}

.daam-rendez-vous .wp-block-navigation-item__content {
	font-weight: 600;
}

.daam-puce {
	align-items: flex-start;
}

.daam-puce::before {
	margin-top: 8px;
}

.daam-ancre a {
	min-height: 56px;
	padding-right: 16px;
	text-decoration: none;
}

.daam-ancre a::before {
	width: 10px;
	height: 10px;
}

.daam-ancre.is-vide a::before {
	box-sizing: border-box;
	border: 1px solid currentColor;
	background: none;
}

/* Touch targets of at least 44px. */
.wp-block-navigation .wp-block-navigation-item__content,
.daam-logo a,
.daam-lien a {
	display: flex;
	align-items: center;
	min-height: 44px;
}

.wp-element-button {
	display: inline-flex;
	align-items: center;
	min-height: 52px;
}

.daam-lien {
	display: flex;
}

.daam-lien a {
	text-underline-offset: 5px;
}

.daam-lien.has-mono-font-family a {
	text-underline-offset: 4px;
}

.daam-taille {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
}

/*
 * Execution log: each step row is [time 72px][gap 16][node column 12px][gap 16][action],
 * so the node column spans 88px to 100px from the row's left edge.
 * Supervision rows: the 46px left padding holds the status marker.
 */
.daam-etape,
.daam-voyant {
	position: relative;
}

.daam-etape::before,
.daam-etape::after,
.daam-voyant::before {
	content: "";
	position: absolute;
}

.daam-etape::before {
	top: 0;
	bottom: 0;
	left: 93.5px;
	width: 1px;
	background: var(--wp--preset--color--connecteur);
}

.daam-etape:first-child::before {
	top: 15px;
}

.daam-etape:last-child::before {
	bottom: auto;
	height: 15px;
}

.daam-etape::after,
.daam-voyant::before {
	width: 10px;
	height: 10px;
	background: var(--wp--preset--color--accent);
}

.daam-etape.is-alerte::after,
.daam-voyant.is-alerte::before {
	width: 12px;
	height: 11px;
	background: var(--wp--preset--color--anthracite);
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.daam-etape::after {
	top: 15px;
	left: 89px;
}

.daam-etape.is-alerte::after {
	top: 23px;
	left: 88px;
}

.daam-voyant::before {
	top: 22px;
	left: 20px;
}

.daam-voyant.is-alerte::before {
	top: 21px;
}

.daam-etape code,
.daam-voyant code {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--13);
	color: var(--wp--preset--color--secondaire);
}

.daam-voyant code {
	color: var(--wp--preset--color--texte);
}

/*
 * Linked steps: the connector is the first flex item of each step and runs 32px
 * into the column gap to reach the next square; the grid clips the overflow.
 */
.daam-etapes {
	overflow: hidden;
}

.daam-relie::before {
	content: "";
	height: 14px;
	margin-right: -32px;
	background:
		linear-gradient(var(--wp--preset--color--anthracite) 0 0) 0 0 / 14px 14px no-repeat,
		linear-gradient(var(--wp--preset--color--anthracite) 0 0) 0 50% / 100% 1px no-repeat;
}

.daam-relie.is-fin {
	position: relative;
}

.daam-relie.is-fin::before {
	margin-right: 0;
	background-size: 14px 14px, calc(100% - 8px) 1px;
}

.daam-relie.is-fin::after {
	content: "";
	position: absolute;
	top: 2px;
	right: 0;
	width: 8px;
	height: 10px;
	background: var(--wp--preset--color--anthracite);
	clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.daam-faq summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 44px;
	padding: 20px 0;
	list-style: none;
	font-family: var(--wp--preset--font-family--titres);
	font-size: var(--wp--preset--font-size--26);
	font-weight: 600;
	line-height: 1.15;
	color: var(--wp--preset--color--anthracite);
}

.daam-faq summary::-webkit-details-marker {
	display: none;
}

.daam-faq summary::after {
	content: "+";
	flex: none;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--18);
	font-weight: 400;
	color: var(--wp--preset--color--secondaire);
}

.daam-faq details[open] > summary::after {
	content: "\2212";
}

.daam-faq details > p {
	max-width: 40em;
}
