/* ==========================================================================
   Vernais Editorial Toolkit — styles
   ========================================================================== */

/* ---- Aesthetic filter pills -------------------------------------------- */
.vernais-filter-bar {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	overflow-x: auto;
	padding-bottom: 6px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.vernais-filter-bar::-webkit-scrollbar {
	display: none;
}
.vernais-filter-bar .vf-pill {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #F5F3F0;
	color: #4D4541;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 10px 18px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}
.vernais-filter-bar .vf-pill .vf-count {
	font-weight: 500;
	opacity: 0.6;
	font-size: 12px;
}
.vernais-filter-bar .vf-pill:hover {
	background: #EFE5E1;
}
.vernais-filter-bar .vf-pill.is-active {
	background: #1A1A1A;
	color: #fff;
}
.vernais-filter-bar .vf-pill.is-active .vf-count {
	opacity: 0.7;
}

/* Hides a post/card that the filter has excluded. Toggled by script.js. */
.vernais-filtered-out {
	display: none !important;
}

/* ---- Carousel: add the class "vernais-carousel" to a Kadence Query Loop
   block's "Additional CSS Class(es)" field (Advanced panel) to turn its
   grid into an arrow-navigable horizontal scroller.                     */
.vernais-carousel .kb-query-grid-wrap,
.vernais-carousel .kb-query-items {
	display: flex !important;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 24px;
	padding-bottom: 8px;
	-ms-overflow-style: none;
	scrollbar-width: none;
}
.vernais-carousel .kb-query-grid-wrap::-webkit-scrollbar,
.vernais-carousel .kb-query-items::-webkit-scrollbar {
	display: none;
}
.vernais-carousel .kb-query-item {
	flex: 0 0 auto;
	width: 260px;
	scroll-snap-align: start;
}
.vernais-carousel-nav {
	display: inline-flex;
	gap: 8px;
	margin-left: auto;
}
.vernais-carousel-nav button {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #D8D2CC;
	background: #fff;
	color: #1A1A1A;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.vernais-carousel-nav button:hover {
	background: #F5F3F0;
}
.vernais-carousel-nav button svg {
	width: 16px;
	height: 16px;
}

/* ---- Big "01 / 02 / 03…" numbering: add the class "vernais-numbered"
   to the same Query Loop block (can be combined with vernais-carousel). */
.vernais-numbered .kb-query-grid-wrap,
.vernais-numbered .kb-query-items {
	counter-reset: vernais-item;
}
.vernais-numbered .kb-query-item {
	counter-increment: vernais-item;
	position: relative;
}
.vernais-numbered .kb-query-item::before {
	content: counter(vernais-item, decimal-leading-zero);
	display: block;
	font-family: Georgia, 'Times New Roman', serif;
	font-style: italic;
	font-size: 42px;
	line-height: 1;
	color: #8C4D40;
	margin-bottom: 10px;
}
