/* REVELARTEURS homepage candidate v0.1.1 */

.rv-site.home::before,
.rv-site.page-template-default.home::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 9999;
	opacity: 0.22;
	background:
		radial-gradient(circle at 12% 18%, rgba(160, 95, 70, 0.06), transparent 24%),
		radial-gradient(circle at 82% 8%, rgba(79, 107, 122, 0.055), transparent 22%),
		radial-gradient(circle at 72% 78%, rgba(160, 95, 70, 0.04), transparent 28%),
		linear-gradient(90deg, rgba(31,42,54,0.018) 1px, transparent 1px),
		linear-gradient(rgba(31,42,54,0.014) 1px, transparent 1px);
	background-size: auto, auto, auto, 96px 96px, 96px 96px;
	mix-blend-mode: multiply;
}

.rv-site.home #main { background: transparent; }

.rv-site .rv-home-hero > .container,
.rv-site .rv-home-hero > .av-section-color-overlay-wrap > .container {
	/* Enfold may wrap the container; target both valid structures. */
	padding-top: clamp(36px, 3vw, 52px) !important;
	padding-bottom: clamp(64px, 6vw, 96px) !important;
}

.rv-site .rv-home-hero .av-special-heading-tag,
.rv-site .rv-home-hero h1 {
	font-size: clamp(2.95rem, 4.9vw, 4.95rem);
	line-height: 0.94;
	letter-spacing: -0.026em;
	max-width: 11.6ch;
	text-wrap: balance;
}

.rv-site .rv-home-hero .rv-kicker { margin-bottom: 1rem; }

.rv-site .rv-home-hero .rv-intro,
.rv-site .rv-home-hero .rv-intro p {
	font-size: clamp(1.15rem, 1.5vw, 1.35rem);
	line-height: 1.55;
	max-width: 34rem;
}

.rv-site .rv-hero-links a {
	display: inline-block;
	margin-right: 1.4rem;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.74rem;
	letter-spacing: 0.11em;
	text-transform: uppercase;
	text-decoration: none;
	border-bottom: 1px solid var(--rv-rule);
	padding-bottom: 0.2rem;
}

.rv-site .rv-hero-media {
	position: relative;
	min-height: 520px;
}

.rv-site .rv-hero-media .avia-image-container {
	position: relative;
	z-index: 2;
}

.rv-site .rv-hero-media::before,
.rv-site .rv-hero-media::after {
	content: "";
	position: absolute;
	border: 1px solid var(--rv-rule);
	background: rgba(245,240,231,0.42);
	z-index: 1;
}

.rv-site .rv-hero-media::before {
	width: 58%;
	height: 68%;
	right: 5%;
	top: 2%;
	transform: rotate(2.2deg);
}

.rv-site .rv-hero-media::after {
	width: 42%;
	height: 44%;
	left: 2%;
	bottom: 1%;
	transform: rotate(-2.4deg);
}

.rv-site .rv-home-section > .container {
	padding-top: clamp(64px, 7vw, 96px);
	padding-bottom: clamp(64px, 7vw, 96px);
}

.rv-site .rv-section-head {
	display: flex;
	justify-content: space-between;
	align-items: end;
	gap: 2rem;
	margin-bottom: 2.25rem;
	padding-bottom: 1rem;
	border-bottom: 1px solid var(--rv-rule);
}

.rv-site .rv-section-head h2 { margin: 0; }
.rv-site .rv-section-head .rv-meta { white-space: nowrap; }

.rv-site .rv-home-card {
	background: rgba(245,240,231,0.44);
	border-top: 1px solid var(--rv-rule);
	padding-top: 1rem;
	padding-bottom: 1.5rem;
}

.rv-site .rv-home-card .avia-image-container,
.rv-site .rv-home-card img { margin-bottom: 1rem; }

.rv-site .rv-home-card h3 {
	margin-top: 0.45rem;
	margin-bottom: 0.45rem;
}

.rv-site .rv-home-card p {
	font-size: 0.98rem;
	line-height: 1.55;
}

.rv-site .rv-ecosystem-panel {
	border-top: 1px solid var(--rv-rule);
	border-bottom: 1px solid var(--rv-rule);
}

.rv-site .rv-ecosystem-panel .flex_column {
	padding-top: 1.4rem;
	padding-bottom: 1.4rem;
}

.rv-site .rv-ecosystem-panel .flex_column + .flex_column {
	border-left: 1px solid var(--rv-rule-soft);
	padding-left: 2rem;
}

.rv-site .rv-ecosystem-panel h3 { font-size: 1.5rem; }

.rv-site .rv-open-access {
	background: rgba(79,107,122,0.055);
	border-top: 1px solid var(--rv-rule);
	border-bottom: 1px solid var(--rv-rule);
}

.rv-site .rv-open-access .container {
	padding-top: 48px;
	padding-bottom: 48px;
}

.rv-site .rv-open-access h2 {
	font-size: clamp(1.8rem, 2.6vw, 2.6rem);
	max-width: 18ch;
}

.rv-site .rv-signoff {
	font-style: italic;
	color: var(--rv-rust);
}



/* v0.1.8 hero composition -------------------------------------------------- */

.rv-site .rv-home-hero .av_two_fifth {
	width: 46%;
}

.rv-site .rv-home-hero .av_three_fifth {
	width: 50%;
	margin-left: 4%;
}

.rv-site .rv-home-hero .rv-intro,
.rv-site .rv-home-hero .rv-intro p {
	max-width: 31rem;
}

.rv-site .rv-hero-media {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-height: 0;
	padding-top: 0.5rem;
}

.rv-site .rv-hero-media .avia_textblock,
.rv-site .rv-hero-media .avia-image-container {
	position: relative;
	width: min(100%, 720px);
	margin: 0 auto;
}

.rv-site .rv-hero-media .avia_textblock {
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	border: 1px solid var(--rv-rule);
	background:
		linear-gradient(rgba(245,240,231,.62), rgba(245,240,231,.62)),
		repeating-linear-gradient(
			0deg,
			rgba(31,42,54,.018) 0,
			rgba(31,42,54,.018) 1px,
			transparent 1px,
			transparent 7px
		);
}

.rv-site .rv-hero-media .avia_textblock::before {
	content: "";
	position: absolute;
	inset: 10px;
	border: 1px solid var(--rv-rule-soft);
	pointer-events: none;
}

.rv-site .rv-hero-media .avia_textblock p {
	max-width: 28ch;
	margin: 0;
	text-align: center;
	font-size: 0.94rem;
	line-height: 1.45;
	color: var(--rv-blue-gray);
}

.rv-site .rv-hero-media .avia-image-container img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0;
}

@media only screen and (max-width: 989px) {
	.rv-site .rv-home-hero .av_two_fifth,
	.rv-site .rv-home-hero .av_three_fifth {
		width: 100%;
		margin-left: 0;
	}

	.rv-site .rv-hero-media {
		margin-top: 2rem;
	}

	.rv-site .rv-hero-media .avia_textblock,
	.rv-site .rv-hero-media .avia-image-container {
		width: 100%;
	}
}

@media only screen and (max-width: 989px) {
	.rv-site .rv-hero-media { min-height: 380px; }

	.rv-site .rv-ecosystem-panel .flex_column + .flex_column {
		border-left: 0;
		border-top: 1px solid var(--rv-rule-soft);
		padding-left: 0;
	}
}

@media only screen and (max-width: 767px) {
	.rv-site.home::before,
	.rv-site.page-template-default.home::before { opacity: 0.14; }

	.rv-site .rv-home-hero > .container,
	.rv-site .rv-home-hero > .av-section-color-overlay-wrap > .container {
		padding-top: 28px !important;
		padding-bottom: 48px !important;
	}

	.rv-site .rv-home-hero .av-special-heading-tag,
	.rv-site .rv-home-hero h1 {
		font-size: clamp(2.5rem, 10.5vw, 3.7rem);
		line-height: 0.96;
	}

	.rv-site .rv-hero-media {
		min-height: 300px;
		margin-top: 2rem;
	}

	.rv-site .rv-section-head { display: block; }

	.rv-site .rv-section-head .rv-meta {
		margin-top: 0.75rem;
		white-space: normal;
	}
}


/* v0.1.6: Enfold's Color Section padding lives on .content, not only container. */
.rv-site .rv-home-hero .content {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}


/* v0.1.10 quiet homepage refinement -------------------------------------- */

/* Slightly tighten the vertical rhythm below the hero without compressing it. */
.rv-site .rv-home-section > .container,
.rv-site .rv-home-section > .av-section-color-overlay-wrap > .container {
	padding-top: clamp(56px, 5.2vw, 78px);
	padding-bottom: clamp(56px, 5.2vw, 78px);
}

/* Section headings: more editorial, less widget-like. */
.rv-site .rv-section-head {
	margin-bottom: 2rem;
	padding-bottom: 0.8rem;
	border-bottom-color: var(--rv-rule);
}

.rv-site .rv-section-head h2 {
	font-size: clamp(1.9rem, 2.6vw, 2.65rem);
	letter-spacing: -0.016em;
}

.rv-site .rv-section-head .rv-meta {
	margin-bottom: 0.12rem;
}

/* Latest entries: let content feel like index records rather than cards. */
.rv-site .rv-entry-grid .rv-home-card {
	background: transparent;
	border: 0;
	border-top: 1px solid var(--rv-rule);
	padding: 1rem 0 0.75rem;
}

.rv-site .rv-entry-grid .rv-home-card:hover {
	border-top-color: var(--rv-ink-soft);
}

.rv-site .rv-entry-grid .rv-home-card h3 {
	font-size: 1.42rem;
	margin-top: 0.48rem;
	margin-bottom: 0.45rem;
}

.rv-site .rv-entry-grid .rv-home-card p {
	max-width: 30rem;
}

/* Ecosystem: retain cards, but make them quieter and more tactile. */
.rv-site .rv-ecosystem-card {
	background: rgba(245, 240, 231, 0.28);
	border-color: var(--rv-rule-soft);
	padding: clamp(1.15rem, 1.8vw, 1.55rem);
}

.rv-site .rv-ecosystem-card:hover {
	background: rgba(245, 240, 231, 0.42);
	border-color: var(--rv-rule);
}

.rv-site .rv-ecosystem-card h3 {
	font-size: 1.42rem;
	margin-top: 0;
	margin-bottom: 0.55rem;
}

/* Open knowledge: make the strip feel like a publication note, not a CTA band. */
.rv-site .rv-open-access {
	background: rgba(79, 107, 122, 0.035);
	border-top: 1px solid var(--rv-rule);
	border-bottom: 1px solid var(--rv-rule);
}

.rv-site .rv-open-access .container,
.rv-site .rv-open-access > .av-section-color-overlay-wrap > .container {
	padding-top: clamp(42px, 4vw, 58px);
	padding-bottom: clamp(42px, 4vw, 58px);
}

.rv-site .rv-open-access h2 {
	font-size: clamp(1.65rem, 2.35vw, 2.25rem);
	line-height: 1.02;
	max-width: 15ch;
}

/* Quiet final signoff. */
.rv-site .rv-home-section.rv-rule-top:last-of-type .rv-reading {
	max-width: 48rem;
}

.rv-site .rv-home-section.rv-rule-top:last-of-type .rv-reading h2 {
	font-size: clamp(1.8rem, 2.15vw, 2.3rem);
	line-height: 1.02;
}

.rv-site .rv-signoff {
	font-size: 1rem;
	letter-spacing: 0.01em;
}

/* Keep lower-page responsive spacing civilized. */
@media only screen and (max-width: 767px) {
	.rv-site .rv-home-section > .container,
	.rv-site .rv-home-section > .av-section-color-overlay-wrap > .container {
		padding-top: 44px;
		padding-bottom: 44px;
	}

	.rv-site .rv-open-access .container,
	.rv-site .rv-open-access > .av-section-color-overlay-wrap > .container {
		padding-top: 36px;
		padding-bottom: 36px;
	}
}


/* v0.1.31 — dynamic homepage Latest feed ------------------------------- */

.rv-site .rv-home-latest-dynamic {
	width: 100%;
}

.rv-site .rv-home-latest-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.5rem, 2.5vw, 2.6rem);
	align-items: stretch;
}

.rv-site .rv-home-latest-grid .rv-home-card {
	min-width: 0;
	margin: 0;
	height: 100%;
}

.rv-site .rv-home-latest-grid .rv-home-card-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

/* A shallow photographic trace rather than a conventional thumbnail. */
.rv-site .rv-home-latest-grid .rv-home-card-media {
	display: block;
	width: 100%;
	height: clamp(64px, 5vw, 78px);
	margin: 0 0 .85rem;
	overflow: hidden;
	background: transparent;
}

.rv-site .rv-home-latest-grid .rv-home-card-media img,
.rv-site .rv-home-latest-grid .rv-home-card .rv-home-card-media-img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
	object-position: center center;
}

/* Keep the four-card rhythm when an entry intentionally has no photograph. */
.rv-site .rv-home-latest-grid .rv-home-card-media.is-empty {
	visibility: hidden;
}

.rv-site .rv-home-latest-grid .rv-home-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
}

.rv-site .rv-home-latest-grid .rv-home-card h3 {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.rv-site .rv-home-latest-grid .rv-home-card h3 a {
	color: var(--rv-ink);
	text-decoration: none;
}

.rv-site .rv-home-latest-grid .rv-home-card-excerpt {
	display: -webkit-box;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
}

.rv-site .rv-home-latest-grid .rv-home-card h3 a:hover,
.rv-site .rv-home-latest-grid .rv-home-card h3 a:focus-visible,
.rv-site .rv-home-latest-grid .rv-home-card-link a:hover,
.rv-site .rv-home-latest-grid .rv-home-card-link a:focus-visible {
	color: var(--rv-rust);
}

.rv-site .rv-home-latest-grid .rv-home-card-link {
	margin-top: auto;
	padding-top: .65rem;
}

.rv-site .rv-home-latest-empty {
	padding-top: 1rem;
	border-top: 1px solid var(--rv-rule);
	color: var(--rv-ink-soft);
}

@media only screen and (max-width: 989px) {
	.rv-site .rv-home-latest-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rv-site .rv-home-latest-grid .rv-home-card-media {
		height: clamp(76px, 9vw, 96px);
	}
}

@media only screen and (max-width: 640px) {
	.rv-site .rv-home-latest-grid {
		grid-template-columns: 1fr;
	}

	.rv-site .rv-home-latest-grid .rv-home-card-media {
		height: clamp(96px, 24vw, 140px);
	}

	.rv-site .rv-home-latest-grid .rv-home-card h3,
	.rv-site .rv-home-latest-grid .rv-home-card-excerpt {
		-webkit-line-clamp: unset;
		line-clamp: unset;
	}
}

/* v0.1.41 — administrator Studio shortcut on Latest Entries cards. */
.rv-site .rv-home-latest-grid .rv-home-card {
	position: relative;
}

.rv-site .rv-home-latest-grid .rv-card-admin-edit {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 4;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: var(--rv-ink);
	opacity: .34;
	text-decoration: none;
}

.rv-site .rv-home-latest-grid .rv-card-admin-edit svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.3;
	stroke-linecap: square;
	stroke-linejoin: miter;
}

.rv-site .rv-home-latest-grid .rv-card-admin-edit:hover,
.rv-site .rv-home-latest-grid .rv-card-admin-edit:focus-visible {
	opacity: 1;
	color: var(--rv-rust);
}
