/*
 Theme Name:   Journées de la prévoyance
 Theme URI:    https://journeesdelaprevoyance.ch/
 Description:  Custom theme for the "Journées de la prévoyance" website.
 Author:       ANSAM
 Author URI:   https://ansam.ch/
 Template:     frost
 Version:      1.0.40
 Text Domain:  jdlp
*/

/*
 * Variables
 * -------------------------------------------------- */

/*
 * Base
 * -------------------------------------------------- */
.site-footer a,
.wp-block-template-part.footer a {
	text-decoration: none;
}

/* Footer: link columns two per row on mobile, social links full width */
@media (max-width: 781px) {
	.jdlp-footer-columns {
		flex-wrap: wrap !important;
		row-gap: var(--wp--preset--spacing--x-small);
	}

	.jdlp-footer-columns > .wp-block-column {
		flex: 1 1 40% !important;
	}

	.jdlp-footer-columns > .wp-block-column:last-child {
		flex-basis: 100% !important;
	}

	.jdlp-footer-columns .wp-block-social-links {
		justify-content: flex-start;
	}
}

/* Sticky footer: short pages keep the footer at the bottom of the viewport */
.wp-site-blocks {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}

/*
 * Block styles
 * -------------------------------------------------- */

/* Offset Background */
.wp-block-group.is-style-offset-background {
	position: relative;
}

.wp-block-group.is-style-offset-background::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: var(--wp--preset--spacing--medium);
	z-index: 0;
	background-color: var(--wp--preset--color--base, #ffffff);
}

.wp-block-group.is-style-offset-background > * {
	position: relative;
	z-index: 1;
}

/* Hero media (image & video) */
/* Shifted down to overlap the next section; the margin compensates so the gap above stays the block gap */
figure.jdlp-hero-media {
	--jdlp-hero-offset: 50px;
	position: relative;
	top: var(--jdlp-hero-offset);
	z-index: 1;
	margin-block-start: calc(var(--wp--custom--spacing--gap) - var(--jdlp-hero-offset));
	border-radius: var(--wp--preset--border-radius--default);
}

figure.jdlp-hero-media video {
	border-radius: var(--wp--preset--border-radius--default);
}

/* Home intro (patterns home-intro / home-intro-video, group class jdlp-home-intro): balanced
 * lines; the <br> placed for desktop widths are dropped where they would leave very uneven lines:
 * below 960px in the paragraph (one segment per line only fits from ~920px, below that "branche,"
 * and "depuis 2010," end up alone) and below 601px in the title (its first line fits from ~620px).
 * Each <br> needs a space before it ("branche, <br>dans"), otherwise hiding it glues the words
 * together. .jdlp-nowrap keeps "rendez-vous" and "2e pilier" on one line.
 * The paragraph uses `pretty`: it runs to ~8 lines on phones, beyond the 6 lines Chrome balances,
 * and `pretty` still avoids a single word on the last line.
 * The button label ("Programme du prochain rendez-vous", 287px) cannot fit on one line on phones:
 * `balance` splits it into two even lines instead of leaving one word on the second. */
.jdlp-home-intro :is(h1, .wp-block-button__link) {
	text-wrap: balance;
}

.jdlp-home-intro p {
	text-wrap: pretty;
}

.jdlp-home-intro .jdlp-nowrap {
	white-space: nowrap;
}

@media (max-width: 959px) {
	.jdlp-home-intro p br {
		display: none;
	}
}

@media (max-width: 600px) {
	.jdlp-home-intro h1 br {
		display: none;
	}
}

/* Video embeds (YouTube, Vimeo…): the Embed block has no border-radius control, so the
 * wrapper clips the iframe to the theme radius. Corners stay transparent and work on any
 * section background. If a dark fringe ever shows on the curve in a real browser, the
 * fallback is to paint the corners in the section colour instead of clipping. */
.wp-block-embed.is-type-video .wp-block-embed__wrapper {
	border-radius: var(--wp--preset--border-radius--default);
	overflow: hidden;
}

.wp-block-embed.is-type-video iframe {
	display: block;
	border: 0;
}

/* CookieYes replaces blocked video iframes with a placeholder div that has fixed inline
 * width/height and sits in the flow below the aspect-ratio spacer, doubling the block's
 * height. Pin it over the spacer like the iframe it replaces. */
.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper > .video-placeholder-youtube,
.wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper > .video-placeholder-normal {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
}

/*
 * Components
 * -------------------------------------------------- */

/* Event presentation */
@media (max-width: 781px) {
	.jdlp-event-presentation .wp-block-columns {
		flex-direction: column-reverse;
	}
}

/* Event programme */
/* Each row is a 3-cell grid: time | activity | location (right-aligned) */
/* Section sits right under the page title and directly above main's bottom padding.
   !important: the block writes its margins as inline styles. */
.wp-block-post-content > .jdlp-programme:first-child {
	margin-block-start: 0 !important;
}

.wp-block-post-content > .jdlp-programme:last-child {
	margin-block-end: 0 !important;
}

/* The flow blockGap (30px) would override the heading's x-small bottom margin */
.jdlp-programme-day > .jdlp-programme-schedule {
	margin-block-start: 0;
}

/* Background bleeds past the column so row text stays aligned with plain rows */
.jdlp-programme-highlight {
	margin-block: var(--wp--preset--spacing--xx-small);
	margin-inline: calc(-1 * var(--wp--preset--spacing--x-small));
	padding: var(--wp--preset--spacing--xx-small) var(--wp--preset--spacing--x-small);
}

.jdlp-programme-row {
	display: grid;
	grid-template-columns: 150px minmax(0, 1fr) auto;
	column-gap: var(--wp--custom--spacing--gap);
	align-items: baseline;
	padding: 6px 0;
}

.jdlp-programme-row > p {
	margin: 0;
}

.jdlp-programme-row strong {
	color: var(--wp--preset--color--contrast);
	font-weight: 700;
}

/* Frost underlines <mark> with a background gradient; keep only the inline color */
.jdlp-programme-row mark {
	background-image: none;
}

.jdlp-programme-row mark strong {
	color: inherit;
}

.jdlp-programme-location {
	text-align: right;
	font-size: var(--wp--preset--font-size--x-small);
}

@media (max-width: 781px) {
	.jdlp-programme-row {
		grid-template-columns: 100px minmax(0, 1fr);
		column-gap: var(--wp--preset--spacing--x-small);
	}

	.jdlp-programme-time {
		white-space: nowrap;
		font-size: var(--wp--preset--font-size--x-small);
	}

	.jdlp-programme-location {
		grid-column: 2;
		text-align: left;
	}

	.jdlp-programme-location:empty {
		display: none;
	}
}

/* Mobile menu overlay: match the header padding (30px, see parts/header.html) so the close icon
 * sits exactly where the hamburger icon was. Core otherwise uses the root top padding (0 → 1rem),
 * with a :not(.disable-default-overlay) selector that this one must out-rank. */
/* Menu and close icons (and their box) in black, in every state.
 * Frost turns the open button white on hover/focus inside a .has-background block (the header). */
body .wp-block-navigation .wp-block-navigation__responsive-container-open,
body .wp-block-navigation .wp-block-navigation__responsive-container-close,
body .has-background .wp-block-navigation .wp-block-navigation__responsive-container-open:is(:hover, :focus, :focus-visible, :active),
body .wp-block-navigation .wp-block-navigation__responsive-container-close:is(:hover, :focus, :focus-visible, :active) {
	color: var(--wp--preset--color--contrast);
	border-color: var(--wp--preset--color--contrast);
}

body .wp-block-navigation__responsive-container.is-menu-open:not(.disable-default-overlay) {
	padding-top: 30px;
	padding-right: 30px;
}

/* Navigation submenu */
body .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
	background-color: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--neutral);
	color: var(--wp--preset--color--contrast);
	padding: 10px;
}

body .wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 0.25em 1em;
}

/* Bloc 2 images */
body .jdlp-bloc-2-images .wp-block-cover {
	position: relative;
	min-height: 600px;
}

body .jdlp-bloc-2-images .wp-block-cover__inner-container {
	position: absolute;
	inset: 0;
	display: flex;
	justify-content: flex-end;
	align-items: stretch;
	width: 100%;
	height: 100%;
	padding: 0;
}

body .jdlp-bloc-2-images .wp-block-cover__inner-container .wp-block-image.jdlp-cover-image {
	position: absolute;
	top: 0;
	right: 0;
	display: block;
	width: 43.5%;
	height: 100%;
	max-height: 100%;
	margin: 0;
	padding: 0;
	z-index: 2;
}

body .jdlp-bloc-2-images .wp-block-cover__inner-container .wp-block-image.jdlp-cover-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 100%;
	object-fit: cover;
	margin: 0;
	padding: 0;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

@media (max-width: 781px) {
	body .jdlp-bloc-2-images .wp-block-cover {
		min-height: 0 !important;
		aspect-ratio: 4 / 3;
	}

	/* Logo: space between the image's border (set on the block in the editor) and the logo, instead of cropping it */
	body .jdlp-bloc-2-images .wp-block-cover__inner-container .wp-block-image.jdlp-cover-image img {
		box-sizing: border-box;
		padding: var(--wp--custom--spacing--gap) 15px;
		background-color: var(--wp--preset--color--base);
		object-fit: contain;
	}
}

/* Image stack */
.jdlp-image-stack {
	position: relative;
	max-width: 500px;
	height: 480px;
}

.jdlp-image-stack .jdlp-stack-back,
.jdlp-image-stack .jdlp-stack-front {
	position: absolute;
	border-radius: var(--wp--preset--border-radius--default);
	overflow: hidden;
	/* box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15); */
}

.jdlp-image-stack .jdlp-stack-back img,
.jdlp-image-stack .jdlp-stack-front img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--wp--preset--border-radius--default);
}

.jdlp-image-stack .jdlp-stack-back {
	top: 40px;
	right: 0;
	width: 70%;
	height: 90%;
	/* transform: rotate(4deg); */
	z-index: 0;
}

.jdlp-image-stack .jdlp-stack-front {
	top: 0;
	left: 0;
	width: 65%;
	height: 85%;
	z-index: 1;
}

/* People carousel
 * Photo with a fixed 4:5 ratio, caption below it in the normal flow: every
 * name starts on the same line, even when a job title wraps onto two lines.
 * (The caption used to sit absolutely at the bottom of the photo and grow
 * upwards, which shifted the names.) */
.jdlp-people-carousel-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: var(--wp--preset--border-radius--default);
}

.jdlp-workshops-carousel-card {
	position: relative;
	overflow: visible;
	border-radius: var(--wp--preset--border-radius--default);
}

/* The card uses WordPress's "constrained" layout, which gives its children
 * margin-inline: auto and a max-width. In a flex column that shrinks them to
 * their content and centres them: photo and caption must span the card. */
.jdlp-people-carousel-card > * {
	align-self: stretch;
	max-width: none;
	margin-inline: 0 !important;
}

.jdlp-people-carousel-card .jdlp-people-carousel-image {
	margin: 0;
	padding: 0;
}

.jdlp-people-carousel-card .jdlp-people-carousel-image img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 0;
	display: block;
}

.jdlp-people-carousel-card > .wp-block-group:last-child {
	flex: 1 1 auto;
	margin-block-start: 0;
}

/* Carousel cards: every card in a row has the height of the tallest one */
.wp-block-cb-carousel-v2:has(.jdlp-people-carousel-card) .swiper-slide,
.wp-block-cb-carousel-v2:has(.jdlp-workshops-carousel-card) .swiper-slide {
	display: flex;
	height: auto;
}

.wp-block-cb-carousel-v2 .swiper-slide > .jdlp-people-carousel-card,
.wp-block-cb-carousel-v2 .swiper-slide > .jdlp-workshops-carousel-card {
	flex: 1 1 auto;
	/* The workshop cards carry an inline vertical margin (x-small) that pushed
	 * the cards away from their title and from the pagination dots */
	margin-block: 0 !important;
}

/* Same gap between a section title and its carousel, whatever the markup:
 * the carousel sits right after the title group (Journée commune) or inside
 * its own wrapper group (Ateliers, Conférences).
 * Note: :has() cannot be nested in another :has(), hence one selector per case. */
.wp-block-group:has(+ .wp-block-cb-carousel-v2 .jdlp-people-carousel-card),
.wp-block-group:has(+ .wp-block-cb-carousel-v2 .jdlp-workshops-carousel-card),
.wp-block-group:has(+ .wp-block-group > .wp-block-cb-carousel-v2 .jdlp-people-carousel-card),
.wp-block-group:has(+ .wp-block-group > .wp-block-cb-carousel-v2 .jdlp-workshops-carousel-card) {
	margin-block-end: 0 !important;
}

.wp-block-group + .wp-block-cb-carousel-v2:has(.jdlp-people-carousel-card),
.wp-block-group + .wp-block-cb-carousel-v2:has(.jdlp-workshops-carousel-card),
.wp-block-group + .wp-block-group:has(> .wp-block-cb-carousel-v2 .jdlp-people-carousel-card),
.wp-block-group + .wp-block-group:has(> .wp-block-cb-carousel-v2 .jdlp-workshops-carousel-card) {
	/* Default block gap (30px): with the separator's 5px, 35px like every other section title */
	margin-block-start: var(--wp--custom--spacing--gap) !important;
}

/* Pagination dots: in the flow, 20px under the cards, so they belong to their
 * carousel and push the next section down instead of floating towards it.
 * The carousel plugin reserves 64px under .swiper for its floating dots:
 * removed, otherwise it collapses with the dots' margin. */
.wp-block-cb-carousel-v2:is(:has(.jdlp-people-carousel-card), :has(.jdlp-workshops-carousel-card)) .swiper {
	margin-bottom: 0;
}

.wp-block-cb-carousel-v2:is(:has(.jdlp-people-carousel-card), :has(.jdlp-workshops-carousel-card)) .swiper-pagination {
	position: static;
	margin-top: var(--wp--preset--spacing--x-small);
	line-height: 0;
}

/* Carousel arrows outside */
.wp-block-cb-carousel-v2:has(.jdlp-people-carousel-card),
.wp-block-cb-carousel-v2:has(.jdlp-workshops-carousel-card),
.wp-block-cb-carousel-v2.cb-single-slide {
	position: relative;
	overflow: visible;
}

.wp-block-group:has(.wp-block-cb-carousel-v2:has(.jdlp-people-carousel-card)),
.wp-block-group:has(.wp-block-cb-carousel-v2:has(.jdlp-workshops-carousel-card)),
.wp-block-group:has(.wp-block-cb-carousel-v2.cb-single-slide) {
	overflow: visible;
}

.wp-block-cb-carousel-v2:has(.jdlp-people-carousel-card) .swiper-button-prev,
.wp-block-cb-carousel-v2:has(.jdlp-people-carousel-card) .swiper-button-next,
.wp-block-cb-carousel-v2:has(.jdlp-workshops-carousel-card) .swiper-button-prev,
.wp-block-cb-carousel-v2:has(.jdlp-workshops-carousel-card) .swiper-button-next,
.wp-block-cb-carousel-v2.cb-single-slide .swiper-button-prev,
.wp-block-cb-carousel-v2.cb-single-slide .swiper-button-next {
	position: absolute;
	/* Centred on the cards, not on cards + pagination dots (20px gap + 8px dots).
	 * margin-top: Swiper's own centring offset, already handled by translateY */
	top: calc((100% - var(--wp--preset--spacing--x-small) - 8px) / 2);
	margin-top: 0;
	transform: translateY(-50%);
	z-index: 10;
}

.wp-block-cb-carousel-v2.cb-single-slide .swiper-button-prev,
.wp-block-cb-carousel-v2.cb-single-slide .swiper-button-next {
	top: 50%;
}

.wp-block-cb-carousel-v2:has(.jdlp-people-carousel-card) .swiper-button-prev,
.wp-block-cb-carousel-v2:has(.jdlp-workshops-carousel-card) .swiper-button-prev,
.wp-block-cb-carousel-v2.cb-single-slide .swiper-button-prev {
	left: -60px;
}

.wp-block-cb-carousel-v2:has(.jdlp-people-carousel-card) .swiper-button-next,
.wp-block-cb-carousel-v2:has(.jdlp-workshops-carousel-card) .swiper-button-next,
.wp-block-cb-carousel-v2.cb-single-slide .swiper-button-next {
	right: -60px;
}

/* Photo archive tiles (2-column grid of covers, see patterns/page-archives-photos.php):
 * one column on phones, otherwise "Printemps 2026" overflows its 150px tile */
@media (max-width: 600px) {
	.wp-block-group.is-layout-grid:has(> .wp-block-cover.has-aspect-ratio) {
		grid-template-columns: minmax(0, 1fr) !important;
	}
}

/* Footer copyright: on mobile, the ", " between the name and the address becomes a line break */
@media (max-width: 781px) {
	.jdlp-footer-separator {
		display: block;
		height: 0;
		overflow: hidden;
	}
}

/* Mobile: no arrows, slides are changed by swiping */
@media (max-width: 781px) {
	.wp-block-cb-carousel-v2 .swiper-button-prev,
	.wp-block-cb-carousel-v2 .swiper-button-next {
		display: none;
	}
}


/* Gallery customization */
figure.wp-block-gallery.has-nested-images .wp-block-image {
  flex-grow: inherit;
}

/* Overlay background */
.wp-lightbox-overlay .scrim {
  background-color: rgba(0, 0, 0, 0.90) !important;
}

/* Forms customization */
/* :not(#jdlp) adds id-level specificity to beat Forminator's per-form
   ".forminator-ui#forminator-module-N" rules without hardcoding each form id. */
body .forminator-ui.forminator-design--basic:not(#jdlp) .forminator-error-message,
body .forminator-ui.forminator-design--basic:not(#jdlp) .forminator-description {
  font-size: 14px;
}

/* Checkbox selection limit message (see assets/js/choice-limit.js), styled like Forminator errors. */
body .forminator-ui.forminator-design--basic:not(#jdlp) .jdlp-choice-message {
  display: block;
  margin-top: 5px;
  color: #e04562;
  font-size: 14px;
  line-height: 1.5;
}

/* Form response message: the error notice has no .forminator-error class here, so style every
   visible message that isn't a success or "sending…" (.forminator-loading) message in red. */
body .forminator-ui.forminator-design--basic:not(#jdlp) .forminator-response-message.forminator-show:not(.forminator-success):not(.forminator-loading) {
  background-color: #f9e4e8;
  border-left: 4px solid #e04562;
}

body .forminator-ui.forminator-design--basic:not(#jdlp) .forminator-response-message.forminator-show:not(.forminator-success):not(.forminator-loading) .forminator-label--notice span {
  color: #e04562;
}

/* "Sending…" message (submission indicator): neutral info notice instead of red. */
body .forminator-ui.forminator-design--basic:not(#jdlp) .forminator-response-message.forminator-show.forminator-loading {
  background-color: #f2f2f2;
  border-left: 4px solid var(--wp--preset--color--primary);
}

body .forminator-ui.forminator-design--basic:not(#jdlp) .forminator-response-message.forminator-show.forminator-loading,
body .forminator-ui.forminator-design--basic:not(#jdlp) .forminator-response-message.forminator-show.forminator-loading p,
body .forminator-ui.forminator-design--basic:not(#jdlp) .forminator-response-message.forminator-show.forminator-loading .forminator-label--notice span {
  color: var(--wp--preset--color--contrast);
}

/* Forminator buttons: match the core/button block (theme.json styles.blocks.core/button).
   Forminator's own button CSS outranks .wp-element-button, and the
   pagination (back/next/submit) buttons don't always receive that class. */
.forminator-ui.forminator-design--basic .forminator-button-submit,
.forminator-ui.forminator-design--basic .forminator-button.forminator-pagination-submit,
.forminator-ui.forminator-design--basic .forminator-button-back,
.forminator-ui.forminator-design--basic .forminator-button-next {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  border: 0;
  border-radius: var(--wp--preset--border-radius--small);
  padding: 8px 16px;
  font-family: inherit;
  font-size: var(--wp--preset--font-size--x-small);
  font-style: normal;
  font-weight: 600;
  line-height: var(--wp--custom--line-height--medium);
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
}

.forminator-ui.forminator-design--basic .forminator-button-submit:hover,
.forminator-ui.forminator-design--basic .forminator-button.forminator-pagination-submit:hover,
.forminator-ui.forminator-design--basic .forminator-button-back:hover,
.forminator-ui.forminator-design--basic .forminator-button-next:hover {
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
}

/* Keep step labels on a single line. */
body .forminator-ui.forminator-custom-form[data-design="basic"]:not(.forminator-size--small) .forminator-pagination-steps .forminator-step .forminator-step-label {
  white-space: nowrap;
}

/* Remove the border on step dots. */
body .forminator-ui.forminator-custom-form[data-design="basic"] .forminator-pagination-steps .forminator-step .forminator-step-dot {
  border-width: 0;
}

/* Steps render as <button>, which doesn't inherit the theme font. */
body .forminator-ui.forminator-custom-form[data-design="basic"] .forminator-pagination-steps .forminator-step,
body .forminator-ui.forminator-custom-form[data-design="basic"] .forminator-pagination-steps .forminator-step .forminator-step-label {
  font-family: var(--wp--preset--font-family--primary);
}

/* CookieYes banner: use the theme primary and radii instead of the plugin's default blue.
   The plugin prints its colours in an inline <style>, hence !important. */
.cky-consent-container .cky-consent-bar {
  border-radius: var(--wp--preset--border-radius--default) !important;
}

/* The .cky-modal wrapper paints its own white background, shadow and 6px radius behind
   #ckyPreferenceCenter, so its corners showed around the rounded preference center.
   Round and clip the wrapper, and let the preference center follow it. */
.cky-modal {
  border-radius: var(--wp--preset--border-radius--default) !important;
  overflow: hidden !important;
}

/* The plugin also draws a 3px #F4F4F4 border on #ckyPreferenceCenter (inline style). */
.cky-modal .cky-preference-center {
  border: 0 !important;
  border-radius: inherit !important;
}

.cky-consent-container .cky-btn,
.cky-modal .cky-btn {
  border-radius: var(--wp--preset--border-radius--small) !important;
  font-family: Open Sans, sans-serif !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 600 !important;
}

.cky-consent-container .cky-btn-accept,
.cky-consent-container .cky-btn-reject,
.cky-modal .cky-btn-accept,
.cky-modal .cky-btn-reject,
.cky-modal .cky-btn-preferences {
  background-color: var(--wp--preset--color--primary) !important;
  border-color: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--base) !important;
}

.cky-consent-container .cky-btn-customize {
  background-color: transparent !important;
  border-color: var(--wp--preset--color--primary) !important;
  color: var(--wp--preset--color--primary) !important;
}

.cky-consent-container a,
.cky-modal a {
  color: var(--wp--preset--color--primary) !important;
}

.cky-switch input[type="checkbox"]:checked {
  background-color: var(--wp--preset--color--primary) !important;
}

.cky-btn-revisit-wrapper {
  background-color: var(--wp--preset--color--primary) !important;
}

/* Post excerpt "read more" link, styled like the core/button block (theme.json styles.blocks.core/button). */
.wp-block-post-excerpt__more-link {
  display: inline-block;
  background-color: var(--wp--preset--color--primary);
  color: var(--wp--preset--color--base);
  border-radius: var(--wp--preset--border-radius--small);
  padding: 8px 16px;
  font-style: normal;
  font-weight: 600;
  text-decoration: none;
}

.wp-block-post-excerpt__more-link:hover,
.wp-block-post-excerpt__more-link:focus {
  color: var(--wp--preset--color--base);
  text-decoration: none;
}

/* Post lists repeat a separator after every item; none after the last one. */
.wp-block-post-template > li:last-child > .wp-block-separator {
  display: none;
}

/* The post-template flow layout adds margin-block-start to every item,
   on top of the separator's own margin. */
.wp-block-post-template.wp-block-post-template-is-layout-flow > li {
  margin-block-start: 0;
}
