/*
 * « Le Parcours » and the four cycle pages, in Arabic.
 *
 * Loaded on every page by the `assets/css/pages/` glob of functions.php,
 * after maquettes.css; every rule hangs off `[dir="rtl"]` or
 * `html[lang^="ar"]`, so the French and English pages are untouched.
 *
 * cycles.css is written in logical properties, so the layout already turns
 * round. What it does not turn:
 *
 * 1. The two coloured paths (the rail under the header, the six chapters)
 *    are 90deg gradients, maternelle on the left. maquettes.css has the
 *    270deg variant, but cycles.css loads after it at the same specificity
 *    and wins: restated here under `.cy-page`. Below 900px the chapters'
 *    path is vertical (180deg) and the rail's is hidden, so the chapters
 *    rule is held to wide screens.
 * 2. The secondary French lines of an Arabic page (`.fr`, where the French
 *    page has its Arabic `.ar` lines) take the size and colour of those
 *    lines. The face is theme.css's (`html[lang^="ar"] .fr`:
 *    Newsreader).
 * 3. A French sentence kept in French on an Arabic page carries
 *    `dir="ltr"` so its punctuation lands at its end; it stays aligned with
 *    the Arabic column, on the right.
 * 4. No letter-spacing on Arabic: it breaks the joins between letters.
 * 5. The play mark of a video slot points right in every language.
 */

@media (min-width: 901px) {
	[dir="rtl"] .cy-page .rail .wide::before {
		background: linear-gradient(270deg, var(--mat) 0 16.6%, var(--pri) 16.6% 33.3%, var(--col) 33.3% 50%, var(--lyc) 50% 66.6%, var(--bac) 66.6% 83.3%, var(--cy-onnavy2) 83.3% 100%);
	}

	[dir="rtl"] .cy-page .chaps::before {
		background: linear-gradient(270deg, var(--mat) 0 16.6%, var(--pri) 16.6% 33.3%, var(--col) 33.3% 50%, var(--lyc) 50% 66.6%, var(--bac) 66.6% 83.3%, var(--cy-line) 83.3% 100%);
	}
}

.cy-page .fr {
	line-height: 1.5;
}

.cy-page .phead .fr,
.cy-page .phead2 .fr {
	margin-block-start: 8px;
	font-size: 26px;
	color: var(--cy-ink2);
}

.cy-page .pr .fr {
	font-size: 25px;
	color: var(--cy-ink2);
}

[dir="rtl"] .cy-page [dir="ltr"] {
	text-align: right;
}

html[lang^="ar"] .cy-page .voice small {
	letter-spacing: normal;
}

[dir="rtl"] .cy-page .voice .play::before {
	margin-inline: 0 3px;
	border-inline-start: 0;
	border-inline-end: 13px solid #132a4f;
}
