/*
 * FOSIA child theme.
 * The look of the site is managed in Divi 5 itself: global colours (incl. "FOSIA accent" #233dff) and the
 * "FOSIA · ..." presets (sections, rows, cards, headings, texts, buttons, button groups, footer), plus the
 * Theme Builder header and footer. Change the design there, not here.
 * Keep this file for small fixes Divi 5 cannot express.
 */

/* Blog grid (homepage, Blog page, "Keep reading", categories, search): the presentation of the former site,
   kept as the founder asked, now in FOSIA blue instead of Molti orange. The blog modules carry the class
   "molti-blog-grid". This replaces the 100 KB Molti stylesheet on Divi 5 pages. */
.molti-blog-grid .et_pb_post {
	display: flex;
	flex-direction: column;
	position: relative;
}
.molti-blog-grid .et_pb_image_container,
.molti-blog-grid .entry-featured-image-url { order: 2; }
.molti-blog-grid .entry-title { order: 3; }
.molti-blog-grid .post-content { order: 4; }
.molti-blog-grid .post-meta {
	order: 1;
	z-index: 1;
	margin: -10px 0 -13px -5px;
}
.molti-blog-grid .post-meta a {
	background: #233dff; /* FOSIA accent (global colour "FOSIA accent") */
	padding: 6px 15px;
	color: #fff !important;
	border-radius: 5px;
	margin-left: -10px;
	margin-right: 10px;
	box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.2);
	transition: .2s ease;
	text-transform: uppercase;
	font-weight: bold;
	font-size: 10px;
}
.molti-blog-grid .post-meta a:hover {
	background: #0000ff;
	box-shadow: 0 5px 20px 0 rgba(0, 0, 0, 0.25);
}
.molti-blog-grid .published {
	background: #fff;
	position: absolute;
	padding: 15px;
	border-radius: 5px;
	box-shadow: 0 5px 20px #0000001a;
	top: 155px;
	right: -18px;
	font-weight: bold;
	color: #000;
	letter-spacing: 1px;
}

/* Videos: reserve the 16:9 space before the YouTube player loads, so the page does not jump (layout shift). */
.et_pb_video_box {
	aspect-ratio: 16 / 9;
}
.et_pb_video_box iframe {
	width: 100%;
	height: 100%;
}

/* Site typeface: Georgia (Divi Customizer › body font). Divi 5 only prints that setting inside its "Critical CSS",
   which is turned off to stop the page from jumping while loading, so the typeface is set here. */
:root {
	--et_global_body_font: Georgia, "Times New Roman", serif;
	--et_global_heading_font: Georgia, "Times New Roman", serif;
}
html body,
html body button,
html body input,
html body select,
html body textarea {
	font-family: Georgia, "Times New Roman", serif;
}
