/*
 * Home page: the shopper and retail promotions landing page from the client's deck.
 * Shared pieces (hero grid, phone, cards, questions, teal panel) are in style.css.
 */

/* ---------- Hero ---------- */

.r2s-hero__actions {
	gap: 0.75rem 1.25rem;
}

.r2s-hero__actions > * {
	margin: 0;
}

.r2s-hero__note {
	color: var(--wp--preset--color--muted);
}

/*
 * The home page heading: a typed first line ("Shopper stopping") over a fixed line
 * ("Prize promotions & digital activations"). Every word is laid hidden in the same
 * grid cell, so the line keeps the width and height of the longest one.
 */
.r2s-typed {
	display: grid;
	gap: 0.15em;
	max-width: 15ch;
	font-size: clamp(2.5rem, 5vw, 4.1rem);
}

.r2s-typed__line {
	display: grid;
	justify-items: start;
}

.r2s-typed__line > * {
	grid-area: 1 / 1;
}

.r2s-typed__sizer {
	visibility: hidden;
}

/* The typed word on a lime marker stroke, with a blinking cursor while it types. */
.r2s-typed__word {
	min-height: 1.05em;
	padding-inline: 0.06em;
	background: linear-gradient(transparent 58%, var(--wp--preset--color--highlight) 58%, var(--wp--preset--color--highlight) 92%, transparent 92%);
}

.r2s-typed.is-typing .r2s-typed__word::after {
	content: "";
	display: inline-block;
	width: 0.07em;
	height: 0.85em;
	margin-inline-start: 0.06em;
	background: currentColor;
	vertical-align: -0.05em;
	animation: r2s-caret 1s steps(1) infinite;
}

@keyframes r2s-caret {
	50% { opacity: 0; }
}

/* The fixed line: the same heading font, upright, a size down from the typed words. */
.r2s-typed__rest {
	display: block;
	max-width: 22ch;
	font-size: 0.6em;
	line-height: 1.1;
}

.r2s-typed__rest em {
	font-family: inherit;
	font-style: normal;
	font-variation-settings: normal;
}

/*
 * The product slideshow (plugin: includes/home-sections.php, assets/hero-showcase.js).
 * Every slide sits in the same grid cell, so they stack, and the active one fades in.
 * Each slide has its own pastel panel, the photo, a tilted label card and a link.
 */
.r2s-showcase {
	position: relative;
	display: grid;
	isolation: isolate;
}

.r2s-showcase__slides {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.r2s-showcase__slide {
	position: relative;
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-content: start;
	align-items: center;
	gap: clamp(0.75rem, 2vw, 1rem);
	padding: clamp(0.75rem, 2vw, 1.25rem);
	border-radius: var(--wp--custom--radius--panel);
	background: var(--r2s-bg);
	color: var(--r2s-ink);
	visibility: hidden;
	opacity: 0;
	transition: opacity 500ms ease, visibility 0s linear 500ms;
}

.r2s-showcase__slide.is-active {
	visibility: visible;
	opacity: 1;
	transition: opacity 500ms ease, visibility 0s;
}

.r2s-showcase__media {
	grid-column: 1 / -1;
	position: relative;
	overflow: hidden;
	border-radius: calc(var(--wp--custom--radius--panel) - 8px);
	background: var(--wp--preset--color--surface);
	aspect-ratio: 4 / 3;
}

.r2s-showcase__image,
.r2s-showcase__drawing {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.r2s-showcase__drawing {
	display: grid;
	place-items: center;
	color: var(--r2s-ink);
}

.r2s-showcase__drawing .r2s-preview {
	width: 45%;
	height: auto;
}

/* A slow zoom on the active photo, so the panel feels alive. */
@media (prefers-reduced-motion: no-preference) {
	.r2s-showcase__slide.is-active .r2s-showcase__image {
		animation: r2s-showcase-zoom 7s ease-out both;
	}
}

@keyframes r2s-showcase-zoom {
	from { transform: scale(1.06); }
	to { transform: scale(1); }
}

/* The tilted card with the product's icon and name, under the photo (never over its edge). */
.r2s-showcase__label {
	justify-self: start;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	max-width: 100%;
	margin: 0 0 0 0.25rem;
	padding: 0.6rem 1rem 0.6rem 0.6rem;
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
	box-shadow: var(--r2s-shadow);
	color: var(--wp--preset--color--ink);
	font-size: var(--wp--preset--font-size--medium);
	font-stretch: 110%;
	font-weight: 750;
	line-height: 1.15;
	transform: rotate(-2deg);
}

.r2s-showcase__label > span:last-child {
	display: grid;
}

.r2s-showcase__group {
	color: var(--wp--preset--color--muted);
	font-size: 1rem;
	font-stretch: 100%;
	font-weight: 500;
}

/* The link to the product page, beside the label card. */
.r2s-showcase__link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 44px;
	padding: 0.5rem 1.1rem;
	border-radius: var(--wp--custom--radius--pill);
	background: var(--wp--preset--color--deep);
	color: var(--wp--custom--on-deep);
	font-weight: 650;
	text-decoration: none;
}

.r2s-showcase__link:hover {
	background: var(--wp--preset--color--ink);
	text-decoration: none;
}

/* On a phone the label card and the button are a little smaller. */
@media (max-width: 559px) {
	.r2s-showcase__label {
		font-size: 1.0625rem;
	}

	.r2s-showcase__label .r2s-icon-box {
		width: 2.25rem;
		height: 2.25rem;
	}

	.r2s-showcase__link {
		padding: 0.5rem 0.9rem;
	}
}

/* Phones: the button goes under the label card, at the right. */
@media (max-width: 559px) {
	.r2s-showcase__slide {
		grid-template-columns: minmax(0, 1fr);
	}

	.r2s-showcase__link {
		justify-self: end;
	}
}

/* Story-style progress bars and the pause button, on top of the photo. */
.r2s-showcase__controls {
	position: absolute;
	z-index: 2;
	inset: calc(clamp(0.75rem, 2vw, 1.25rem) + 0.75rem) calc(clamp(0.75rem, 2vw, 1.25rem) + 0.75rem) auto;
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.r2s-showcase__controls[hidden] {
	display: none;
}

.r2s-showcase__bars {
	display: flex;
	flex: 1;
	gap: 0.3rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.r2s-showcase__bars li {
	flex: 1;
}

/* Each bar is a 44px-tall button, with the thin visible bar drawn in the middle. */
.r2s-showcase__bar {
	position: relative;
	display: block;
	width: 100%;
	height: 44px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.r2s-showcase__bar::before,
.r2s-showcase__fill {
	content: "";
	position: absolute;
	inset: calc(50% - 2px) 0 auto;
	height: 4px;
	border-radius: 2px;
}

.r2s-showcase__bar::before {
	background: rgb(255 255 255 / 0.55);
	box-shadow: 0 0 0 1px rgb(26 26 26 / 0.08);
}

.r2s-showcase__fill {
	right: auto;
	width: 0;
	background: var(--wp--preset--color--surface);
}

.r2s-showcase__bar.is-done .r2s-showcase__fill {
	width: 100%;
}

.r2s-showcase__bar.is-running .r2s-showcase__fill {
	animation: r2s-showcase-fill 5.5s linear forwards;
}

/* Paused by the button, or held while someone points at or tabs into the slideshow. */
.r2s-showcase.is-paused .r2s-showcase__fill,
.r2s-showcase.is-held .r2s-showcase__fill {
	animation-play-state: paused;
}

@keyframes r2s-showcase-fill {
	from { width: 0; }
	to { width: 100%; }
}

.r2s-showcase__bar:focus-visible {
	outline: none;
}

.r2s-showcase__bar:focus-visible::before {
	outline: 3px solid var(--wp--preset--color--ink);
	outline-offset: 3px;
}

.r2s-showcase__pause {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(26 26 26 / 0.7);
	color: var(--wp--custom--on-deep);
	cursor: pointer;
}

.r2s-showcase__pause:hover {
	background: rgb(26 26 26 / 0.9);
}

/* Two bars when playing, a triangle when paused. */
.r2s-showcase__pause-icon {
	width: 12px;
	height: 14px;
	border-inline: 4px solid currentColor;
}

.r2s-showcase.is-paused .r2s-showcase__pause-icon {
	width: 0;
	height: 0;
	border-block: 7px solid transparent;
	border-inline: 12px solid currentColor;
	border-inline-end: 0;
	margin-inline-start: 3px;
}

/* ---------- Brand names ---------- */

.r2s-logos {
	padding-block: var(--wp--preset--spacing--40) 0;
	text-align: center;
}

.r2s-logos__label {
	margin: 0 0 var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--muted);
}

.r2s-logos__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.75rem clamp(1.5rem, 4vw, 3rem);
	margin: 0;
	padding: 0;
	list-style: none;
	color: color-mix(in srgb, var(--wp--preset--color--muted) 85%, var(--wp--preset--color--background));
	font-size: var(--wp--preset--font-size--medium);
	font-stretch: 112%;
	font-weight: 700;
	letter-spacing: -0.02em;
}

/* ---------- How it works ---------- */

.r2s-steps {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: r2s-step;
}

.r2s-step {
	margin: 0 !important;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--background);
	counter-increment: r2s-step;
}

.r2s-step::before {
	content: counter(r2s-step, decimal-leading-zero);
	display: block;
	margin-block-end: var(--wp--preset--spacing--30);
	color: var(--wp--preset--color--accent-ink);
	font-family: var(--wp--preset--font-family--accent);
	font-size: 2.25rem;
	font-style: italic;
	font-weight: 350;
	line-height: 1;
	font-variation-settings: "SOFT" 100;
}

.r2s-step > * {
	margin-block: 0;
}

.r2s-step h3 {
	margin-block-end: 0.5rem;
}

.r2s-step p {
	color: var(--wp--preset--color--muted);
}

@media (min-width: 800px) {
	.r2s-steps {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- What they say ---------- */

.r2s-says {
	display: grid;
	gap: var(--wp--preset--spacing--30);
}

.r2s-says__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40) var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--r2s-bg);
	color: var(--r2s-ink);
}

.r2s-says__card[data-style="highlight"] {
	border-color: transparent;
}

.r2s-says__mark {
	font-family: var(--wp--preset--font-family--accent);
	font-size: 4.5rem;
	font-style: italic;
	line-height: 0.5;
	color: var(--wp--preset--color--accent-ink);
}

.r2s-says__card blockquote {
	margin: 0;
	padding: 0;
	border: 0;
}

.r2s-says__card blockquote p {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
	font-stretch: 105%;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.r2s-says__card blockquote em {
	font-family: var(--wp--preset--font-family--accent);
	font-weight: 400;
	font-variation-settings: "SOFT" 100;
}

.r2s-says__context {
	color: var(--wp--preset--color--muted);
}

a.r2s-says__context {
	color: var(--wp--preset--color--accent-ink);
	font-weight: 600;
}

.r2s-says__card figcaption {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-block-start: auto;
	padding-block-start: var(--wp--preset--spacing--30);
	border-block-start: 1px solid color-mix(in srgb, var(--wp--preset--color--ink) 12%, transparent);
}

.r2s-says__card figcaption > span {
	display: grid;
}

.r2s-says__card figcaption span span {
	color: var(--wp--preset--color--muted);
}

.r2s-says__photo,
.r2s-says__initials {
	flex: none;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	object-fit: cover;
}

.r2s-says__initials {
	display: grid;
	place-items: center;
	background: var(--wp--custom--tone--mint--bg);
	color: var(--wp--custom--tone--mint--ink);
	font-weight: 700;
}

@media (min-width: 800px) {
	.r2s-says {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- Gamification band: a camera-roll slideshow ---------- */

/*
 * The middle picture is just under half the width (16:9), the ones before and after it
 * sit smaller at each side, the rest wait hidden behind. gamify-reel.js sets data-pos
 * on each slide. Recommended upload: 1920 × 1080 pixels.
 */
.r2s-reel {
	--r2s-reel-width: 72%;
	--r2s-reel-shift: 64%;
	display: grid;
	gap: var(--wp--preset--spacing--30);
	overflow: hidden;
}

.r2s-reel__track {
	position: relative;
	margin: 0;
	padding: 0;
	list-style: none;
	/* Tall enough for the middle picture: its width × 9 / 16. */
	aspect-ratio: 1 / 0.405;
	touch-action: pan-y;
}

.r2s-reel__slide {
	position: absolute;
	inset: 0 auto auto 50%;
	width: var(--r2s-reel-width);
	opacity: 0;
	transform: translateX(-50%) scale(0.5);
	transition:
		transform 650ms cubic-bezier(0.22, 0.61, 0.36, 1),
		opacity 650ms ease;
	cursor: pointer;
	/* Its own layer: moving and fading it never repaints the picture. */
	will-change: transform, opacity;
	backface-visibility: hidden;
}

/* Scroll mode: gamify-reel.js moves the slides with the scrolling itself, so no delay. */
.r2s-reel.is-scrubbing .r2s-reel__slide {
	transition: none;
}

.r2s-reel__slide.is-current {
	cursor: auto;
}

.r2s-reel__slide[data-pos="0"] {
	z-index: 3;
	opacity: 1;
	transform: translateX(-50%);
	cursor: auto;
}

.r2s-reel__slide[data-pos="-1"],
.r2s-reel__slide[data-pos="1"] {
	z-index: 2;
	opacity: 0.88;
}

.r2s-reel__slide[data-pos="-1"] {
	transform: translateX(calc(-50% - var(--r2s-reel-shift))) scale(0.72);
}

.r2s-reel__slide[data-pos="1"] {
	transform: translateX(calc(-50% + var(--r2s-reel-shift))) scale(0.72);
}

.r2s-reel__slide figure {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: var(--wp--custom--radius--panel);
	box-shadow: 0 14px 30px -22px rgb(26 26 26 / 0.4);
}

.r2s-reel__slide a {
	display: block;
}

.r2s-reel__slide img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: var(--wp--preset--color--line);
}

/* The caption sits on a dark pill on the middle picture only. */
.r2s-reel__slide figcaption {
	position: absolute;
	inset: auto auto 0.75rem 0.75rem;
	max-width: calc(100% - 1.5rem);
	padding: 0.3rem 0.75rem;
	border-radius: var(--wp--custom--radius--pill);
	background: rgb(27 27 27 / 0.82);
	color: var(--wp--custom--on-deep);
	font-size: 1rem;
	font-weight: 600;
	opacity: 0;
	transition: opacity 400ms ease;
}

.r2s-reel__slide.is-current figcaption {
	opacity: 1;
}

@media (min-width: 700px) {
	.r2s-reel {
		--r2s-reel-width: 48%;
		--r2s-reel-shift: 66%;
	}

	.r2s-reel__track {
		aspect-ratio: 1 / 0.27;
	}
}

/* Without the script: an ordinary row that scrolls sideways. */
.r2s-reel:not(.is-ready) .r2s-reel__track {
	display: grid;
	grid-auto-columns: var(--r2s-reel-width);
	grid-auto-flow: column;
	gap: var(--wp--preset--spacing--30);
	aspect-ratio: auto;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
}

.r2s-reel:not(.is-ready) .r2s-reel__slide {
	position: static;
	width: auto;
	opacity: 1;
	transform: none;
	scroll-snap-align: center;
}

.r2s-reel:not(.is-ready) figcaption {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.r2s-reel__slide,
	.r2s-reel__slide figcaption {
		transition: none;
	}
}

.r2s-reel__controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--wp--preset--spacing--20);
}

.r2s-reel__controls[hidden] {
	display: none;
}

.r2s-reel__status {
	min-width: 4rem;
	margin: 0;
	color: var(--wp--preset--color--muted);
	text-align: center;
}

/* A thin bar that fills as the visitor scrolls through the pictures. */
.r2s-reel__bar {
	position: relative;
	overflow: hidden;
	width: min(12rem, 40%);
	height: 4px;
	border-radius: 2px;
	background: color-mix(in srgb, var(--wp--preset--color--ink) 15%, transparent);
}

.r2s-reel__fill {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--wp--preset--color--ink);
	transform: scaleX(0);
	transform-origin: left center;
}

/*
 * Scroll mode (gamify-reel.js): the band is as tall as the screen plus a share of
 * scrolling for each picture, and its content holds still in the middle of the screen
 * while the visitor scrolls through it. After the last picture the page carries on.
 */
.r2s-gamify.is-scroll-reel {
	height: calc(100svh + (var(--r2s-reel-count, 6) - 1) * 50svh);
	padding-block: 0;
}

.r2s-gamify__stick {
	display: grid;
	gap: var(--wp--preset--spacing--40);
}

.r2s-gamify__stick > * {
	margin: 0 !important;
}

.r2s-gamify.is-scroll-reel .r2s-gamify__stick {
	position: sticky;
	top: 0;
	box-sizing: border-box;
	height: 100svh;
	align-content: center;
	padding-block: var(--wp--preset--spacing--40);
}

/* ---------- Events: coloured text panel beside a video, the same height ---------- */

.r2s-events {
	display: grid;
	gap: var(--wp--preset--spacing--40);
	align-items: stretch;
}

.r2s-events__panel {
	display: grid;
	align-content: center;
	gap: var(--wp--preset--spacing--30);
	padding: clamp(1.5rem, 3.5vw, 2.5rem);
	border-radius: var(--wp--custom--radius--panel);
	background: var(--wp--preset--color--highlight);
	color: var(--wp--preset--color--ink);
}

/* The panel colour is chosen in Site settings > Events band. */
.r2s-events[data-style="accent"] .r2s-events__panel {
	background: var(--wp--preset--color--accent);
	color: var(--wp--custom--on-accent);
}

.r2s-events[data-style="deep"] .r2s-events__panel {
	background: var(--wp--preset--color--deep);
	color: var(--wp--custom--on-deep);
}

.r2s-events[data-style="deep"] .r2s-events__panel .wp-element-button {
	background: var(--wp--preset--color--highlight);
	color: var(--wp--preset--color--ink);
}

.r2s-events[data-style="mint"] .r2s-events__panel { background: var(--wp--custom--tone--mint--bg); color: var(--wp--custom--tone--mint--ink); }
.r2s-events[data-style="peach"] .r2s-events__panel { background: var(--wp--custom--tone--peach--bg); color: var(--wp--custom--tone--peach--ink); }
.r2s-events[data-style="sky"] .r2s-events__panel { background: var(--wp--custom--tone--sky--bg); color: var(--wp--custom--tone--sky--ink); }
.r2s-events[data-style="lavender"] .r2s-events__panel { background: var(--wp--custom--tone--lavender--bg); color: var(--wp--custom--tone--lavender--ink); }

.r2s-events__panel > * {
	margin: 0 !important;
}

.r2s-events__panel h2 {
	color: inherit;
	font-size: var(--wp--preset--font-size--x-large);
}

.r2s-events__video {
	overflow: hidden;
	border-radius: var(--wp--custom--radius--panel);
	background: var(--wp--preset--color--deep);
	aspect-ratio: 16 / 9;
}

/* The whole video always shows (logos sit at its edges); spare space stays dark. */
.r2s-events__video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: var(--wp--preset--color--deep);
}

/* No MP4 yet: a dark panel with a play symbol and "Your video here". */
.r2s-events__video--empty {
	display: grid;
	place-items: center;
	align-content: center;
	gap: 0.75rem;
	color: var(--wp--custom--deep-text);
}

.r2s-events__play {
	width: 4.5rem;
	height: 4.5rem;
	border-radius: 50%;
	background: var(--wp--preset--color--surface);
	position: relative;
}

.r2s-events__play::after {
	content: "";
	position: absolute;
	inset: 50% auto auto 54%;
	transform: translate(-50%, -50%);
	border-block: 0.75rem solid transparent;
	border-inline-start: 1.2rem solid var(--wp--preset--color--deep);
}

/*
 * Side by side, the panel and the video are always the same height: the row takes the
 * taller of the two.
 */
@media (min-width: 900px) {
	.r2s-events {
		grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	}

	/* Stretched to the row height, so the panel and the video box are the same size. */
	.r2s-events__video {
		position: relative;
		align-self: stretch;
		min-height: 18rem;
		aspect-ratio: auto;
	}

	.r2s-events__video video {
		position: absolute;
		inset: 0;
	}
}

/* ---------- Case studies on the home page ---------- */

.r2s-ccards--home {
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 700px) {
	.r2s-ccards--home {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- Latest news ---------- */

.r2s-news-cards {
	display: grid;
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
}

.r2s-news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
	transition: transform var(--wp--custom--motion--fast), box-shadow var(--wp--custom--motion--fast);
}

.r2s-news-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--r2s-shadow);
}

.r2s-news-card__media {
	display: grid;
	place-items: center;
	overflow: hidden;
	background: var(--r2s-bg);
	color: var(--r2s-ink);
	aspect-ratio: 16 / 10;
}

.r2s-news-card__media {
	position: relative;
}

.r2s-news-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.r2s-news-card__media .r2s-preview {
	width: 35%;
	height: auto;
}

.r2s-news-card__body {
	display: grid;
	gap: 0.4rem;
	padding: var(--wp--preset--spacing--40);
}

.r2s-news-card__body > * {
	margin: 0;
}

.r2s-news-card time {
	color: var(--wp--preset--color--muted);
	font-size: 1rem;
}

.r2s-news-card h3 {
	font-size: var(--wp--preset--font-size--medium);
}

.r2s-news-card h3 a {
	color: inherit;
	text-decoration: none;
}

.r2s-news-card h3 a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.r2s-news-card p {
	color: var(--wp--preset--color--muted);
}

@media (min-width: 700px) {
	.r2s-news-cards {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------- Powered by Win Mekanix ---------- */

.r2s-platform {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
	gap: var(--wp--preset--spacing--30);
	margin: 0;
	padding: 0;
	list-style: none;
}

.r2s-platform li {
	display: flex;
	gap: 1rem;
	padding: var(--wp--preset--spacing--40);
	border: 1px solid var(--wp--preset--color--line);
	border-radius: var(--wp--custom--radius--card);
	background: var(--wp--preset--color--surface);
}

.r2s-platform h3 {
	margin: 0 0 0.25rem;
	font-size: var(--wp--preset--font-size--base);
	font-stretch: 105%;
	letter-spacing: -0.01em;
}

.r2s-platform p {
	margin: 0;
	color: var(--wp--preset--color--muted);
}

/* ---------- Last call to action ---------- */

.r2s-final-cta {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--40);
	text-align: center;
}

.r2s-final-cta h2 {
	margin: 0 0 var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--xx-large);
}
